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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("@progress/kendo-date-math"),require("@progress/kendo-react-intl"),require("react-dom"),require("@progress/kendo-drawing"),require("react-transition-group"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-date-math","@progress/kendo-react-intl","react-dom","@progress/kendo-drawing","react-transition-group","@progress/kendo-licensing"],t):"object"==typeof exports?exports.KendoReactScheduler=t(require("react"),require("prop-types"),require("@progress/kendo-date-math"),require("@progress/kendo-react-intl"),require("react-dom"),require("@progress/kendo-drawing"),require("react-transition-group"),require("@progress/kendo-licensing")):e.KendoReactScheduler=t(e.React,e.PropTypes,e.KendoDateMath,e.KendoReactIntl,e.ReactDOM,e.KendoDrawing,e.ReactTransitionGroup,e.KendoLicensing)}(window,(function(e,t,n,r,o,i,a,s){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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=19)}([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})),n.d(t,"useZIndexContext",(function(){return i})),n.d(t,"BrowserSupportService",(function(){return s})),n.d(t,"canUseDOM",(function(){return l})),n.d(t,"canUseRef",(function(){return u})),n.d(t,"classNames",(function(){return c})),n.d(t,"cloneDate",(function(){return d})),n.d(t,"clone",(function(){return p})),n.d(t,"cloneObject",(function(){return f})),n.d(t,"cloneValue",(function(){return h})),n.d(t,"cloneArray",(function(){return m})),n.d(t,"focusFirstFocusableChild",(function(){return v})),n.d(t,"FormComponent",(function(){return g})),n.d(t,"getTabIndex",(function(){return y})),n.d(t,"getter",(function(){return O})),n.d(t,"guid",(function(){return w})),n.d(t,"Keys",(function(){return E})),n.d(t,"noop",(function(){return S})),n.d(t,"getScrollbarWidth",(function(){return D})),n.d(t,"setScrollbarWidth",(function(){return x})),n.d(t,"setter",(function(){return _})),n.d(t,"mapTree",(function(){return M})),n.d(t,"mapTreeItem",(function(){return R})),n.d(t,"extendDataItem",(function(){return j})),n.d(t,"getItemPath",(function(){return F})),n.d(t,"validatePackage",(function(){return L})),n.d(t,"hasRelativeStackingContext",(function(){return V})),n.d(t,"dispatchEvent",(function(){return B})),n.d(t,"AsyncFocusBlur",(function(){return U})),n.d(t,"createPropsContext",(function(){return q})),n.d(t,"withPropsContext",(function(){return Y})),n.d(t,"useDir",(function(){return G})),n.d(t,"useAsyncFocusBlur",(function(){return z})),n.d(t,"useRtl",(function(){return Z})),n.d(t,"useMouse",(function(){return Q})),n.d(t,"useCustomComponent",(function(){return $})),n.d(t,"usePropsContext",(function(){return K})),n.d(t,"COLLECTION_ACTION",(function(){return X})),n.d(t,"useCollection",(function(){return J})),n.d(t,"Icon",(function(){return oe})),n.d(t,"SvgIcon",(function(){return le})),n.d(t,"Typography",(function(){return Oe})),n.d(t,"DragAndDrop",(function(){return ze})),n.d(t,"Draggable",(function(){return He})),n.d(t,"Droppable",(function(){return Ue})),n.d(t,"useDraggable",(function(){return Ae})),n.d(t,"useDroppable",(function(){return Le}));var r=n(0),o=r.createContext(0),i=function(){return r.useContext(o)};o.displayName="KendoReactZIndexContext";var a=function(){return"undefined"!=typeof document?document:{}},s=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=a();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),e}(),l=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),u=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?c.apply(void 0,e):"object"==typeof e?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")},d=function(e){return e?new Date(e.getTime()):null};function p(e){var t={};return f(e,t),t}function f(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=h(r,t[n])}}function h(e,t){if(Array.isArray(e))return m(e);if(e instanceof Date)return d(e);if(r.isValidElement(e))return r.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return f(e,n),n}return e}function m(e){return e.map((function(e){return h(e,void 0)}))}var v=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},g=function(){},y=function(e,t,n){var r="string"==typeof e?parseInt(e,void 0):e;if(NaN!==r)return void 0!==r?r:t?n?void 0:-1:0},b=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function k(e){var t=[];return e.replace(b,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),t}var C={};function O(e){if(C[e])return C[e];var t=k(e);return C[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},C[e]}C.undefined=function(){};var w=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},E={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},S=function(){},D=function(){return!(!l||!document.body)&&(new s).scrollbarWidth},x=function(){if(!l||!document.body)return!1;var e=(new s).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},I={undefined:function(e){return e}},T=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function _(e){if(I[e])return I[e];var t=k(e);return I[e]=function(e,n,r){for(var o=e,i=t.length-1,a=0;a<i&&o;a++)o=o[t[a]]=o[t[a]]||T(t[a+1],r);o[t[i]]=n},I[e]}var P=function(){return(P=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function N(e,t,n){var r;return n?P({},e,((r={})[t]=n.length?n.slice():void 0,r)):e&&e[t]?e[t].slice():[]}var M=function(e,t,n){return e.map((function(e){return function e(t,n,r){if(t[n]){var o=N(t,n).map((function(t){return e(t,n,r)}));return r(N(t,n,o))}return r(t)}(e,t,n)})).slice()},R=function(e,t,n,r){for(var o=e,i=[],a=0;a<t.length;a++)o=o[t[a]],o=Array.isArray(o)?o:o[n],i.push(o);var s=i.length>1?i[i.length-2]:e,l=t[t.length-1],u=r(s[l]);s.splice(l,1,u)},j=function(e,t,n){var r;return Object.assign({},e,e[t]?((r={})[t]=e[t].slice(),r):{},n||{})},F=function(e,t,n){var r=[],o=t.slice();if(o.length){var i=e[o.shift()||0];for(r.push(i);o.length&&n;)i=i[n][o.shift()||0],r.push(i)}return r},A=n(48);function L(e){if(void 0!==A)A.validatePackage(e);else{var t="License activation failed for "+e.name+"\n";t+="The @progress/kendo-licensing script is not loaded.\n",t+="See "+e.licensingDocsUrl+" for more information.\n",console.warn(t)}}var V=function(e){if(!l)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 r=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),r};function B(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}function z(e){var t=e.onFocus,n=e.onBlur,o=e.onSyncFocus,i=e.onSyncBlur,a=r.useRef(!1),s=r.useRef(0),l=r.useCallback((function(e){clearTimeout(s.current),s.current=window.setTimeout((function(){return e()}))}),[s]),u=r.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(s.current),o&&o.call.apply(o,[void 0].concat(e)),a.current||(a.current=!0,t&&t.call.apply(t,[void 0].concat(e)))}),[a,t,o]),c=r.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i&&i.call.apply(i,[void 0].concat(e)),l((function(){a.current&&n&&(a.current=!1,n.call.apply(n,[void 0].concat(e)))}))}),[a,l,n,i]);return r.useEffect((function(){return function(){clearTimeout(s.current)}}),[]),{onFocus:u,onBlur:c}}var H=function(){return(H=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},U=function(e){var t=e.children,n=z({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,H({},n))},K=function(e,t){return r.useContext(e)(t)},W=function(){return(W=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},q=function(){return r.createContext((function(e){return e}))},Y=function(e,t){return r.forwardRef((function(n,o){var i=K(e,n);return r.createElement(t,W({},i,{ref:o}))}))};function G(e,t,n){var o=r.useState(t),i=o[0],a=o[1];return r.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}function Z(e,t,n){var o=r.useState(t),i=o[0],a=o[1];return r.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}var X,Q=function(e,t,n){void 0===n&&(n={});var o=r.useCallback((function(r){n.onMouseDown&&n.onMouseDown.call(void 0,r),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseDown,e.onMouseDown,t]),i=r.useCallback((function(r){n.onMouseUp&&n.onMouseUp.call(void 0,r),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:r.useCallback((function(r){n.onClick&&n.onClick.call(void 0,r),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onClick,e.onClick,t]),onMouseUp:i,onMouseDown:o,onDoubleClick:r.useCallback((function(r){n.onDoubleClick&&n.onDoubleClick.call(void 0,r),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:r.useCallback((function(r){n.onMouseEnter&&n.onMouseEnter.call(void 0,r),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:r.useCallback((function(r){n.onMouseLeave&&n.onMouseLeave.call(void 0,r),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:r.useCallback((function(r){n.onMouseMove&&n.onMouseMove.call(void 0,r),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:r.useCallback((function(r){n.onMouseOut&&n.onMouseOut.call(void 0,r),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:r.useCallback((function(r){n.onMouseOver&&n.onMouseOver.call(void 0,r),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOver,e.onMouseOver,t])}},$=function(e){return r.isValidElement(e)?[e.type,e.props]:[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(X||(X={}));var J=function(e){void 0===e&&(e=[]);var t=r.useRef(e),n=r.useCallback((function(e){switch(e.type){case X.add:t.current.push(e.item);break;case X.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},ee=n(1),te={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},ne=function(){return(ne=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},re=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},oe=r.forwardRef((function(e,t){var n=e.className,o=e.name,i=e.themeColor,a=e.size,s=e.flip,l=e.style,u=re(e,["className","name","themeColor","size","flip","style"]),d=r.useRef(null),p=r.useRef(null);r.useImperativeHandle(d,(function(){return{element:p.current}})),r.useImperativeHandle(t,(function(){return d.current}));var f=r.useMemo((function(){return i||ie.themeColor}),[i]),h=r.useMemo((function(){return a||ie.size}),[a]),m=r.useMemo((function(){return s||ie.flip}),[s]),v=r.useMemo((function(){return c("k-icon","k-i-"+o,"k-color-"+f,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},te[h],n)}),[o,f,h,m,n]),g=Q(e,d);return r.createElement("span",ne({ref:p},u,g,{className:v,style:l,role:"presentation"}))}));oe.propTypes={style:ee.object,classNames:ee.string,name:ee.string,themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ee.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ee.oneOf(["default","horizontal","vertical","both"])};var ie={size:"default",themeColor:"inherit",flip:"default"};oe.displayName="KendoIcon";var ae=function(){return(ae=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},se=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},le=r.forwardRef((function(e,t){var n=e.children,o=e.className,i=e.svgClassName,a=e.icon,s=e.flip,l=e.size,u=e.style,d=e.svgStyle,p=e.themeColor,f=e.viewBox,h=se(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),m=r.useRef(null);r.useImperativeHandle(t,(function(){return{element:m.current}}));var v=r.useMemo((function(){return a?a.name:ue.icon}),[a]),g=r.useMemo((function(){return p||ue.themeColor}),[p]),y=r.useMemo((function(){return l||ue.size}),[l]),b=r.useMemo((function(){return s||ue.flip}),[s]),k=r.useMemo((function(){return f||ue.viewBox}),[f]),C=r.useMemo((function(){return c("k-svg-icon","k-color-"+g,"k-svg-i-"+v,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},te[y],o)}),[v,g,y,b,o]),O=r.useMemo((function(){return e.width&&e.height?ae({width:e.width,height:e.height},u):e.width?ae({width:e.width,height:e.width},u):e.height?ae({width:e.height,height:e.height},u):ae({},u)}),[e.width,e.height,u]);return r.createElement("span",{className:C,style:O,ref:m},r.createElement("svg",ae({className:i,style:d,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:a?a.viewBox:k,dangerouslySetInnerHTML:a?{__html:a.content}:void 0},h),a?void 0:n))}));le.propTypes={style:ee.object,classNames:ee.string,children:ee.any,icon:ee.object,themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ee.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ee.oneOf(["default","horizontal","vertical","both"])};var ue={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};le.displayName="KendoSvgIcon";var ce,de={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},pe={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},fe={xsmall:"k-m-xs",small:"k-m-sm",medium:"k-m-md",large:"k-m-lg",xlarge:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},he={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},me={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},ve={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},ge={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},ye={inherit:"k-color-inherit",primary:"k-color-primary",secondary:"k-color-secondary",tertiary:"k-color-tertiary",info:"k-color-info",success:"k-color-success",warning:"k-color-warning",error:"k-color-error",dark:"k-color-dark",light:"k-color-light",inverse:"k-color-inverse"},be=function(){return(be=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ke=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},Ce=function(e){var t=r.forwardRef((function(t,n){var o=t.className,i=t.fontSize,a=t.fontWeight,s=t.textAlign,l=t.textTransform,u=t.themeColor,c=t.margin,d=ke(t,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),p=r.useRef(null),f=r.useRef(null);r.useImperativeHandle(p,(function(){return{element:f.current,props:t}})),r.useImperativeHandle(n,(function(){return p.current}));var h=e,m=function(){if(void 0!==c){if("string"==typeof c)return[fe[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,r;null!==c[t]&&void 0!==c[t]&&e.push((n=t,r=c[t],""+me[n]+("string"==typeof r?he[r]:r)))})),e.join(" ")}}};return r.createElement(h,be({ref:f,className:["k-"+("p"===e?"paragraph":e),de[i],pe[a],ve[s],ge[l],ye[u],m(),o].filter((function(e){return void 0!==e})).join(" ")},d),t.children)}));return t.propTypes={style:ee.object,className:ee.string,fontSize:ee.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:ee.oneOf(["light","normal","bold"]),margin:ee.oneOfType([ee.number,ee.object,ee.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:ee.oneOf(["left","right","center","justify"]),textTransform:ee.oneOf(["lowercase","uppercase","capitalize"]),themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography"+e.toUpperCase(),t},Oe={h1:Ce("h1"),h2:Ce("h2"),h3:Ce("h3"),h4:Ce("h4"),h5:Ce("h5"),h6:Ce("h6"),p:Ce("p"),code:Ce("code"),pre:Ce("pre")},we=function(e,t){var n=0,r=null;return t.forEach((function(t){if(t&&e){var o=function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=Math.max(r.top,n.top),i=Math.max(r.left,n.left),a=Math.min(r.left+r.width,n.left+n.width),s=Math.min(r.top+r.height,n.top+n.height),l=a-i,u=s-o;if(i<a&&o<s){var c=r.width*r.height,d=n.width*n.height,p=l*u;return Number((p/(c+d-p)).toFixed(4))}return 0}(e,t);o>n&&(n=o,r=t)}})),r},Ee=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],r={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 o in r)if(r.hasOwnProperty(o)&&(n=e.match(r[o]))){(t={})[o]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},Se=function(e){return e&&e.ownerDocument||window.document},De=function(e){var t=Ee(),n=Se(e);return t.edge||t.safari?n.body:n.documentElement},xe=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},Ie=function(e){var t=De(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&!xe(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"}(ce||(ce={}));var Te=function(){},_e=function(e,t,n){void 0===n&&(n={});var r,o,i,a,s=n.onIsPressedChange,l=void 0===s?Te:s,u=n.onIsScrollingChange,c=void 0===u?Te:u,d=n.onVelocityChange,p=void 0===d?Te:d,f=n.onOffsetChange,h=void 0===f?Te:f,m=n.onPageOffsetChange,v=void 0===m?Te:m,g=n.onClientOffsetChange,y=void 0===g?Te:g,b=n.onScrollOffsetChange,k=void 0===b?Te:b,C=n.onInitialScrollOffsetChange,O=void 0===C?Te:C,w=t.payload,E=w.element,S=w.hint,D=e.autoScrollDirection,x=e.scrollableParent,I=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(I.type){case ce.POINTER_DOWN:if(I.type===ce.POINTER_DOWN&&(!I.originalEvent.isPrimary||0!==I.originalEvent.button))break;case ce.MOUSE_DOWN:if(I.type===ce.MOUSE_DOWN&&I.originalEvent.which&&I.originalEvent.which>1||e.ignoreMouse)break;case ce.TOUCH_START:if(I.type===ce.TOUCH_START&&1!==I.originalEvent.touches.length)break;case ce.START:var T=x||Ie(t.payload.element);O(T instanceof Window?{x:T.scrollX,y:T.scrollY}:{x:T.scrollLeft,y:T.scrollTop}),y({x:I.clientX,y:I.clientY}),v({x:I.pageX,y:I.pageY}),h({x:I.offsetX,y:I.offsetY}),l(!0),w.onPress&&w.onPress(I);break;case ce.SCROLL:if(I.type===ce.SCROLL&&!e.pressed)break;var _=x||Ie(E),P=_ instanceof Window?{x:_.scrollX,y:_.scrollY}:{x:_.scrollLeft,y:_.scrollTop};I.scrollX=P.x-e.initialScrollOffset.x,I.scrollY=P.y-e.initialScrollOffset.y,k({x:I.scrollX,y:I.scrollY});case ce.POINTER_MOVE:if(I.type===ce.POINTER_MOVE&&!I.originalEvent.isPrimary)break;case ce.MOUSE_MOVE:case ce.TOUCH_MOVE:if(I.type===ce.TOUCH_MOVE&&1!==I.originalEvent.touches.length)break;case ce.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==I.originalEvent.type&&E){var N=Se(E),M=x||Ie(N.elementFromPoint(I.clientX,I.clientY)),R=function(e,t,n){var r={x:0,y:0};return e-n.left<50?r.x=-(50-(e-n.left)):n.right-e<50&&(r.x=50-(n.right-e)),t-n.top<50?r.y=-(50-(t-n.top)):n.bottom-t<50&&(r.y=50-(n.bottom-t)),r}(I.pageX,I.pageY,function(e,t){var n=De(e);if(e===n)return{top:n.scrollTop,left:n.scrollLeft,bottom:n.scrollTop+t.innerHeight,right:n.scrollLeft+t.innerWidth};var r=e.getBoundingClientRect();return{bottom:r.top+r.height,right:r.left+r.width,left:r.left,top:r.top}}(M,function(e){var t=Se(e);return t&&t.defaultView||window}(E)));p({x:D&&!1===D.horizontal?0:R.x,y:D&&!1===D.vertical?0:R.y}),c(0!==R.y||0!==R.x)}!e.drag&&w.onDragStart&&w.onDragStart(I),w.onDrag&&w.onDrag(I);var j=we(S||E,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(S||E)}))),F=e.drops.find((function(e){return e.element===j}));F&&j&&(r=I.clientX,o=I.clientY,i=x||Ie(j),(a=i.getBoundingClientRect()).top<=o&&a.left<=r&&o<=a.bottom&&r<=a.right)&&j!==E?(e.drop&&e.drop.element)!==j?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(I),F.onDragEnter&&F.onDragEnter(I)):F.onDragOver&&F.onDragOver(I):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(I)}y({x:I.clientX,y:I.clientY}),v({x:I.pageX,y:I.pageY});break;case ce.POINTER_UP:if(I.type===ce.POINTER_UP&&!I.originalEvent.isPrimary)break;case ce.MOUSE_UP:case ce.TOUCH_END:if(I.type===ce.TOUCH_END&&1!==I.originalEvent.touches.length)break;case ce.END:l(!1),c(!1),w.onRelease&&w.onRelease(I),e.drop&&e.drop.onDrop&&e.drop.onDrop(I),w.onDragEnd&&w.onDragEnd(I);break;case ce.POINTER_CANCEL:case ce.CONTEXT_MENU:case ce.TOUCH_CANCEL:case ce.CANCEL:l(!1),c(!1),w.onDragEnd&&w.onDragEnd(I),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(I)}},Pe=function(e,t){if(e){var n,r;e===De(e)?(n=document.body.scrollHeight>window.innerHeight,r=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,r=e.offsetWidth<=e.scrollWidth);var o=e.scrollTop+t.y,i=n&&o>0&&o<e.scrollHeight,a=e.scrollLeft+t.x,s=r&&a>0&&a<e.scrollWidth;i?e.scrollTop+=t.y:n&&o<0&&(e.scrollTop=0),s?e.scrollLeft+=t.x:r&&a<0&&(e.scrollLeft=0)}},Ne=function(e,t){var n=r.useContext(e),o=n[0],i=n[1],a=r.useState(t),s=a[0],l=a[1];return[void 0!==o?o:s,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==o?i.apply(void 0,e):l(e[0])}]},Me=r.createContext([void 0,S]),Re=r.createContext([void 0,S]),je=r.createContext([[],S,S]),Fe=r.createContext([[],S,S]);function Ae(e,t,n){void 0===n&&(n={});var o=t.onPress,i=void 0===o?S:o,a=t.onRelease,s=void 0===a?S:a,l=t.onDragStart,u=void 0===l?S:l,c=t.onDrag,d=void 0===c?S:c,p=t.onDragEnd,f=void 0===p?S:p,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,C=void 0===k?null:k,O=r.useState(!1),w=O[0],E=O[1],D=r.useState(!1),x=D[0],I=D[1],T=Ne(Re)[0],_=Ne(Me),P=_[0],N=_[1],M=r.useContext(Fe)[0],R=r.useContext(je),j=R[0],F=R[1],A=R[2],L=r.useRef({x:0,y:0}),V=r.useRef(),B=r.useRef(!1),z=r.useRef(),H=r.useRef(!1),U=r.useRef({x:0,y:0}),K=r.useRef({x:0,y:0}),W=r.useRef({x:0,y:0}),q=r.useRef({x:0,y:0}),Y=r.useRef({x:0,y:0}),G=r.useRef({x:0,y:0}),Z=Boolean(window&&"undefined"!=typeof window&&window.PointerEvent),X=!g&&Z,Q=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),$=r.useCallback((function(){return m&&m.current&&m.current.element?m.current.element:m?m.current:null}),[m]),J=r.useCallback((function(){return C&&C.current&&C.current.element?C.current.element:C?C.current:null}),[C]),ee=r.useCallback((function(){return"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current&&b.boundaryElementRef.current.element?b.boundaryElementRef.current.element:"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current?b.boundaryElementRef.current:null}),[b]),te=r.useRef(null);r.useImperativeHandle(te,(function(){return{element:Q(),hint:$(),onPress:he,onDragStart:ve,onDrag:ge,onDragEnd:ye,onRelease:me,data:e.current}}));var ne=r.useCallback((function(){var e=Q();return e&&e.ownerDocument||document}),[Q]),re=r.useCallback((function(){var e=ne();return e&&e.defaultView||window}),[ne]),oe=r.useCallback((function(){return{drag:P?P.current:null,drop:T?T.current:null,drags:j.map((function(e){return e.current})),drops:M.map((function(e){return e.current})),pressed:w,ignoreMouse:B.current,scrollOffset:Y.current,offset:U.current,pageOffset:K.current,initialScrollOffset:G.current,clientOffset:W.current,initialClientOffset:q.current,velocity:L.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:ee(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:x}}),[P,T,j,M,w,b,ee,x]),ie=r.useCallback((function(e){E(e)}),[]),ae=r.useCallback((function(e){I(e)}),[]),se=r.useCallback((function(e){L.current=e}),[]),le=r.useCallback((function(e){U.current=e}),[]),ue=r.useCallback((function(e){W.current=e}),[]),ce=r.useCallback((function(e){K.current=e}),[]),de=r.useCallback((function(e){q.current=e}),[]),pe=r.useCallback((function(e){Y.current=e}),[]),fe=r.useCallback((function(e){G.current=e}),[]),he=r.useCallback((function(e){i(e)}),[i]),me=r.useCallback((function(e){s(e)}),[s]),ve=r.useCallback((function(t){N(te,{target:e.current,event:t}),u(t)}),[N,e,u]),ge=r.useCallback((function(e){d(e)}),[d]),ye=r.useCallback((function(t){H.current||(N(null,{target:e.current,event:t}),f(t))}),[f,N,e]),be=r.useCallback((function(e){_e(oe(),{event:e,payload:te.current},{onVelocityChange:se,onOffsetChange:le,onClientOffsetChange:ue,onPageOffsetChange:ce,onInitialClientOffsetChange:de,onScrollOffsetChange:pe,onInitialScrollOffsetChange:fe,onIsPressedChange:ie,onIsScrollingChange:ae})}),[oe,se,le,ce,ue,de,fe,ie,pe,ae]),ke=r.useCallback((function(e){be(e)}),[be]),Ce=r.useCallback((function(e){be(e)}),[be]),Oe=r.useCallback((function(e){be(e)}),[be]),we=r.useCallback((function(e){be(e)}),[be]),Ee=r.useCallback((function(e){be(e)}),[be]),Se=r.useCallback((function(e){be(e)}),[be]),De=r.useCallback((function(e){be(e)}),[be]),xe=r.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Te=r.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Ae=r.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Le=r.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();B.current=!0,z.current=t.setTimeout((function(){B.current=!1}),2e3)}be(e)}),[be,re]),Ve=r.useCallback((function(e){be(e)}),[be]),Be=r.useCallback((function(){var e=Q();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[Q]),ze=r.useCallback((function(){return F(te),function(){A(te)}}),[A,F]);r.useEffect((function(){var e=re();if(x){var t=J()||Ie(document.elementFromPoint(W.current.x,W.current.y));e.clearInterval(V.current),V.current=e.setInterval((function(){Pe(t,{x:L.current.x,y:L.current.y})}),50)}return function(){e.clearInterval(V.current)}}),[Q,J,re,x]),r.useEffect(Be,[Be]),r.useEffect((function(){var e=re(),t=Q(),n=ne();if(X){if(t)Ie(t).addEventListener("scroll",Ve,{passive:!0}),t.addEventListener("pointerdown",ke,{passive:!0});w&&(n.addEventListener("pointermove",Ce),n.addEventListener("pointerup",we,!0),n.addEventListener("contextmenu",xe),n.addEventListener("pointercancel",Oe,{passive:!0}))}else e.addEventListener("touchmove",S,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",Ee,{passive:!0}),g||(t.addEventListener("touchstart",Te,{passive:!0}),w&&(t.addEventListener("touchmove",Ae,{passive:!0}),t.addEventListener("touchend",Le,{passive:!0})))),w&&(n.addEventListener("mousemove",Se,{passive:!0}),n.addEventListener("mouseup",De,{passive:!0}));return function(){if(t){var r=Ie(t);r&&r.removeEventListener("scroll",Ve),t.removeEventListener("pointerdown",ke),t.removeEventListener("mousedown",Ee),t.removeEventListener("touchstart",Te),t.removeEventListener("touchmove",Ae),t.removeEventListener("touchend",Le)}n.removeEventListener("pointermove",Ce),n.removeEventListener("pointerup",we,!0),n.removeEventListener("contextmenu",xe),n.removeEventListener("pointercancel",Oe),n.removeEventListener("mousemove",Se),n.removeEventListener("mouseup",De),e.removeEventListener("touchmove",S),e.clearTimeout(z.current)}}),[w,re,Q,ne,g,X,xe,Ee,Se,De,Oe,ke,Ce,we,Le,Ae,Te,Ve]),r.useEffect((function(){return function(){H.current=!0}}),[]),r.useLayoutEffect(ze,[ze])}function Le(e,t){void 0===t&&(t={onDragEnter:S,onDragOver:S,onDragLeave:S,onDrop:S});var n=t.onDragEnter,o=void 0===n?S:n,i=t.onDragOver,a=void 0===i?S:i,s=t.onDragLeave,l=void 0===s?S:s,u=t.onDrop,c=void 0===u?S:u,d=Ne(Re)[1],p=r.useContext(Fe),f=p[1],h=p[2],m=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),v=r.useRef(null);r.useImperativeHandle(v,(function(){return{element:m(),onDragEnter:g,onDragOver:y,onDragLeave:b,onDrop:k,data:e.current}}));var g=r.useCallback((function(t){d(v,{target:e.current,event:t}),o(t)}),[d,e,o]),y=r.useCallback((function(e){a(e)}),[a]),b=r.useCallback((function(t){d(null,{target:e.current,event:t}),l(t)}),[d,e,l]),k=r.useCallback((function(t){d(null,{target:e.current,event:t}),c(t)}),[d,e,c]),C=r.useCallback((function(){return f(v),function(){h(v)}}),[h,f]);r.useLayoutEffect(C,[C])}var Ve=function(){return(Ve=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Be=function(e,t,n){var o=r.useState(t||e),i=o[0],a=o[1];return[void 0!==t?t:i,r.useCallback((function(e,t){a(e),n&&n.call(void 0,Ve({},t,{value:e}))}),[n,a])]},ze=function(e){var t=Be(null,void 0),n=t[0],o=t[1],i=Be(null,void 0),a=i[0],s=i[1],l=J([]),u=l[0],c=l[1],d=J([]),p=d[0],f=d[1];return r.createElement(Me.Provider,{value:[n,o]},r.createElement(Re.Provider,{value:[a,s]},r.createElement(je.Provider,{value:[u,function(e){c({type:X.add,item:e})},function(e){c({type:X.remove,item:e})}]},r.createElement(Fe.Provider,{value:[p,function(e){f({type:X.add,item:e})},function(e){f({type:X.remove,item:e})}]},e.children))))};ze.displayName="KendoReactDragAndDrop";var He=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null),i=r.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);r.useImperativeHandle(o,(function(){return{element:i()||null}})),r.useImperativeHandle(t,(function(){return o.current})),r.useImperativeHandle(e.childRef,(function(){return n.current}));var a=r.useCallback((function(t){e.onPress&&e.onPress({element:i(),target:o.current,event:t})}),[i,e.onPress]),s=r.useCallback((function(t){e.onRelease&&e.onRelease({element:i(),target:o.current,event:t})}),[i,e.onRelease]),l=r.useCallback((function(t){e.onDragStart&&e.onDragStart({element:i(),target:o.current,event:t})}),[e,i]),u=r.useCallback((function(t){e.onDrag&&e.onDrag({element:i(),target:o.current,event:t})}),[i,e.onDrag]),c=r.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:i(),target:o.current,event:t})}),[i,e.onDragEnd]);return Ae(n,{onPress:a,onRelease:s,onDragStart:l,onDrag:u,onDragEnd:c},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null}));He.displayName="KendoReactDraggable";var Ue=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null),i=r.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);r.useImperativeHandle(o,(function(){return{element:i()||void 0}})),r.useImperativeHandle(t,(function(){return o.current})),r.useImperativeHandle(e.childRef,(function(){return n.current}));var a=r.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:i(),target:o.current,event:t})}),[e.onDragEnter,i]),s=r.useCallback((function(t){e.onDragOver&&e.onDragOver({element:i(),target:o.current,event:t})}),[i,e.onDragOver]),l=r.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:i(),target:o.current,event:t})}),[e.onDragLeave,i]),u=r.useCallback((function(t){e.onDrop&&e.onDrop({element:i(),target:o.current,event:t})}),[e.onDrop,i]);return Le(n,{onDragEnter:a,onDragOver:s,onDragLeave:l,onDrop:u}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null}));Ue.displayName="KendoReactDroppable"},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t,n){"use strict";n.r(t),n.d(t,"Toolbar",(function(){return B})),n.d(t,"ToolbarItem",(function(){return H})),n.d(t,"ToolbarSeparator",(function(){return K})),n.d(t,"ToolbarSpacer",(function(){return W})),n.d(t,"Button",(function(){return m})),n.d(t,"ButtonGroup",(function(){return b})),n.d(t,"SplitButton",(function(){return N})),n.d(t,"SplitButtonItem",(function(){return w})),n.d(t,"DropDownButton",(function(){return A})),n.d(t,"DropDownButtonItem",(function(){return R})),n.d(t,"Chip",(function(){return ie})),n.d(t,"ChipList",(function(){return te})),n.d(t,"FloatingActionButton",(function(){return ye})),n.d(t,"FloatingActionButtonItem",(function(){return ce}));var r,o=n(0),i=n(1),a=n(2),s={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639493378,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},l=':not(.k-state-disabled):not([disabled]):not([disabled="true"])',u=["button"+l,".k-button-group > button"+l,".k-dropdown > .k-dropdown-wrap"+l,".k-colorpicker > .k-picker-wrap"+l],c={button:"k-button",flat:"k-flat",outline:"k-outline",clear:"k-button-clear",primary:"k-primary","state-selected":"k-state-selected","button-icon":"k-button-icon","button-icontext":"k-button-icontext","state-disabled":"k-state-disabled","group-start":"k-group-start","group-end":"k-group-end","button-group":"k-button-group","button-group-stretched":"k-button-group-stretched",ltr:"k-ltr",rtl:"k-rtl"},d=(r=function(e,t){return(r=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}r(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,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},h=c;var m=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,n.handleClick=function(e){n.toggleIfApplicable(),n.props.onClick&&n.props.onClick.call(void 0,e)},Object(a.validatePackage)(s),n.state={selected:!0===n.props.togglable&&!0===n.props.selected},n}return d(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return void 0!==this._selectedTemp?this._selectedTemp:this.state.selected},enumerable:!0,configurable:!0}),t.getDerivedStateFromProps=function(e,t){return e.togglable&&void 0!==e.selected&&e.selected!==t.selected?{selected:e.selected}:null},t.prototype.render=function(){var e,t=this,n=this.props,r=n.children,i=n.look,s=n.primary,l=n.togglable,u=n.icon,c=n.iconClass,d=n.imageUrl,m=n.imageAlt,v=n.className,g=(n.onClick,f(n,["children","look","primary","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick"])),y=void 0!==u||void 0!==c||void 0!==d,b=void 0!==r,k={className:Object(a.classNames)([h.button],((e={})[h[""+i]]="default"!==i,e[h.primary]=s,e[h["state-disabled"]]=this.props.disabled,e[h["state-selected"]]=this.state.selected,e[h["button-icon"]]=!b&&y,e[h["button-icontext"]]=b&&y,e),[h[""+this.props.dir]],v),onClick:this.handleClick,role:l?"checkbox":void 0,"aria-disabled":this.props.disabled||void 0,"aria-checked":l?this.state.selected:void 0},C=function(e){var t=e.imageUrl,n=e.icon,r=e.iconClass,i=e.imageAlt;if(t)return o.createElement("img",{role:"presentation",className:"k-image",alt:i,src:t});if(n){var s=Object(a.classNames)("k-icon","k-i-"+n);return o.createElement("span",{role:"presentation",className:s})}return r?o.createElement("span",{role:"presentation",className:r}):null}({icon:u,iconClass:c,imageUrl:d,imageAlt:m});return o.createElement("button",p({},k,g,{ref:function(e){return t._element=e}}),C,r)},t.prototype.toggleIfApplicable=function(){var e=this;if(this.props.togglable&&void 0===this.props.selected){var t=!this.state.selected;this._selectedTemp=t,this.setState({selected:t},(function(){return e._selectedTemp=void 0}))}},t.propTypes={children:i.node,look:i.oneOf(["default","flat","outline","clear"]),primary:i.bool,selected:i.bool,togglable:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,imageAlt:i.string},t.defaultProps={look:"default",primary:!1,togglable:!1},t}(o.Component),v=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g=function(){return(g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},y=c,b=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,Object(a.validatePackage)(s),n}return v(t,e),t.prototype.render=function(){var e,t=this,n=this.mapButtons(this.props.children),r=Object(a.classNames)([y["button-group"]],((e={})[y["state-disabled"]]=this.props.disabled,e[y["button-group-stretched"]]=!!this.props.width,e),this.props.className),i={className:r,style:{width:""+this.props.width},dir:this.props.dir,role:"group","aria-disabled":this.props.disabled};return o.createElement("div",g({ref:function(e){t._element=e}},i,{className:r}),n)},t.prototype.mapButtons=function(e){var t=this,n=o.Children.count(e),r=void 0!==this.props.dir?"rtl"===this.props.dir:this._element&&"rtl"===getComputedStyle(this._element).direction||!1;return o.Children.map(e,(function(e,i){return o.isValidElement(e)?t.renderButton(e,i,i===n-1,r):e}))},t.prototype.renderButton=function(e,t,n,r){var i,s=Object(a.classNames)(e.props.className,((i={})[y["group-start"]]=r?n:0===t,i[y["group-end"]]=r?0===t:n,i)),l=g({},this.props.width?{width:this.props.width}:{},e.props.style||{}),u=this.props.disabled||e.props.disabled,c=g({},e.props,s?{className:s}:{},Object.keys(l).length?{style:l}:{},void 0!==u?{disabled:u}:{});return o.Children.count(e.props.children)>0?o.cloneElement(e,c,e.props.children):o.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}(o.Component),k=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onClick=function(e){return t.props.onClick(e,t.props.index)},t}return k(t,e),t.prototype.render=function(){var e=this.props,t=e.dataItem,n=e.focused,r=e.id,i=e.onDown,s=e.render,l=o.createElement("li",{id:r,className:Object(a.classNames)("k-item",{"k-state-focused":n,"k-state-selected":t.selected,"k-state-disabled":t.disabled}),onClick:this.onClick,onMouseDown:i,onPointerDown:i,role:"menuItem","aria-disabled":t.disabled||void 0},this.renderContent());return void 0!==this.props.item&&void 0!==s?s.call(void 0,l,this.props):l},t.prototype.renderContent=function(){var e=this.props,t=e.dataItem,n=e.textField,r=e.index,i=this.props.dataItem.render||this.props.item||(void 0===this.props.item?this.props.render:null),a=void 0!==t.text?t.text:n?t[n]:t,s=t.icon?"k-icon k-i-"+t.icon:t.iconClass;return i&&o.createElement(i,{item:t,itemIndex:r})||[s&&o.createElement("span",{className:s,role:"presentation",key:"icon"}),t.imageUrl&&o.createElement("img",{className:"k-image",alt:"",src:t.imageUrl,role:"presentation",key:"image"}),a]},t}(o.Component),O=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype.render=function(){return null},t.propTypes={text:i.string,icon:i.string,iconClass:i.string,imageUrl:i.string,disabled:i.bool,render:i.any},t}(o.Component),E=function(e,t,n,r){if(n)return e;switch(t){case a.Keys.enter:case a.Keys.space:case a.Keys.esc:return-1;case a.Keys.up:case a.Keys.left:return Math.max(0,e-1);case a.Keys.down:case a.Keys.right:return Math.min(r-1,e+1);default:return e}},S=n(9);function D(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function x(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}var I,T,_=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),P=c,N=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(a.guid)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==a.Keys.down?n.opened&&e.keyCode===a.Keys.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var r=void 0;if(e.keyCode===a.Keys.enter||e.keyCode===a.Keys.space?(e.preventDefault(),n.dispatchClickEvent(e,t),t>=0&&(r={focusedIndex:n.opened?-1:0,opened:!n.opened},n.dispatchPopupEvent(e,r.opened))):n.opened&&e.keyCode===a.Keys.esc&&(r={focusedIndex:-1,opened:!1},n.dispatchPopupEvent(e,r.opened)),n.opened){var o=E(t,e.keyCode,e.altKey,n.buttonsData.length);o!==t&&((r=r||{}).focusedIndex=o);var i=e.keyCode===a.Keys.up||e.keyCode===a.Keys.down||e.keyCode===a.Keys.left||e.keyCode===a.Keys.right;!e.altKey&&i&&e.preventDefault()}r&&n.setState(r)}},n.onFocus=function(e){Object(a.dispatchEvent)(n.props.onFocus,e,n,void 0),n.setState({focused:!0,focusedIndex:-1})},n.onItemClick=function(e,t){var r=n.opened;r&&n.setState({focusedIndex:0,opened:!1}),n.dispatchClickEvent(e,t),r&&n.dispatchPopupEvent(e,!1)},n.onBlur=function(e){n.setState({focused:!1,focusedIndex:-1,opened:!1}),Object(a.dispatchEvent)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!1)},n.onSplitPartClick=function(e){if(n.buttonsData.length){var t=!n.opened;n.dispatchPopupEvent(e,t),n.setState({focusedIndex:t?0:-1,opened:t,focused:!0})}},n.onDownSplitPart=function(e){e.preventDefault(),n.element&&document.activeElement!==n.element&&n.element.focus()},n.onItemDown=function(e){document.activeElement===n.element&&e.preventDefault()},n.dispatchPopupEvent=function(e,t){Object(a.dispatchEvent)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(a.validatePackage)(s),n}return _(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||o.Children.toArray(this.props.children).filter((function(e){return e&&e.type===w})).map((function(e){return e.props}));var t=this.isRtl(),n=t?"rtl":void 0,r=this.props,i=r.tabIndex,s=r.disabled,l=this.state.focusedIndex;return o.createElement("div",{className:Object(a.classNames)("k-widget","k-split-button","k-button-group",[P[""+this.props.look]],{"k-state-focused":this.state.focused},this.props.className),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},o.createElement(m,{onClick:function(t){return e.onItemClick(t,-1)},disabled:s||void 0,tabIndex:i,accessKey:this.props.accessKey,className:this.props.buttonClass,icon:this.props.icon,iconClass:this.props.iconClass,imageUrl:this.props.imageUrl,look:this.props.look,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-disabled":s,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":this.props.text+" splitbutton","aria-owns":this.guid,"aria-activedescendant":l>=0?this.guid+"-"+l:void 0},this.props.text),o.createElement(m,{icon:"arrow-s",disabled:s||void 0,tabIndex:-1,look:this.props.look,onClick:this.onSplitPartClick,onMouseDown:this.onDownSplitPart,onPointerDown:this.onDownSplitPart,dir:n,"aria-label":"menu toggling button"}),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!0,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(-1===t?Object(a.dispatchEvent)(this.props.onButtonClick,e,this,void 0):Object(a.dispatchEvent)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t}))},t.prototype.renderPopup=function(e){var t=this.props.popupSettings,n=void 0===t?{}:t;return o.createElement(S.a,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(a.classNames)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||D(e),popupAlign:n.popupAlign||x(e),style:e?{direction:"rtl"}:void 0},o.createElement("ul",{className:"k-list k-reset",role:"menu",id:this.guid},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,r=t.itemRender,i=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return o.createElement(C,{dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:r,item:n,key:a,index:a,id:e.guid+"-"+a})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:i.string,onButtonClick:i.func,onFocus:i.func,onBlur:i.func,onItemClick:i.func,onOpen:i.func,onClose:i.func,text:i.string,items:i.arrayOf(i.any),textField:i.string,tabIndex:i.number,disabled:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,popupSettings:i.object,itemRender:i.any,item:i.func,look:i.string,className:i.string,buttonClass:i.string,dir:i.string},t}(o.Component),M=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(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}(o.Component),j=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),F=function(){return(F=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},A=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(a.guid)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==a.Keys.down?n.opened&&e.keyCode===a.Keys.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var r=F({},n.state);if(e.keyCode===a.Keys.enter||e.keyCode===a.Keys.space?(t>=0&&n.dispatchClickEvent(e,t),e.preventDefault(),r.focusedIndex=n.opened?-1:0,r.opened=!n.opened,n.dispatchPopupEvent(e,r.opened)):n.opened&&e.keyCode===a.Keys.esc&&(r.focusedIndex=-1,r.opened=!1,n.dispatchPopupEvent(e,r.opened)),n.opened){var o=E(t,e.keyCode,e.altKey,n.buttonsData.length);r.focusedIndex=o;var i=e.keyCode===a.Keys.up||e.keyCode===a.Keys.down||e.keyCode===a.Keys.left||e.keyCode===a.Keys.right;!e.altKey&&i&&e.preventDefault()}n.setState(r)}},n.onFocus=function(e){n.setState({focused:!0,focusedIndex:n.opened?0:-1}),Object(a.dispatchEvent)(n.props.onFocus,e,n,void 0)},n.onBlur=function(e){n.setState({focused:!1,opened:!1,focusedIndex:-1}),Object(a.dispatchEvent)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!1)},n.onItemClick=function(e,t){n.setState({focusedIndex:-1,opened:!1}),n.dispatchClickEvent(e,t),n.dispatchPopupEvent(e,!1)},n.onItemDown=function(e){document.activeElement===n.element&&e.preventDefault()},n.mouseDown=function(e){e.preventDefault()},n.onClickMainButton=function(e){if(n.buttonsData.length){var t=!n.opened;n.setState({opened:t,focused:!0,focusedIndex:t?0:-1}),n.dispatchPopupEvent(e,t)}},n.dispatchPopupEvent=function(e,t){Object(a.dispatchEvent)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(a.validatePackage)(s),n}return j(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,r=this.props,i=r.tabIndex,s=r.disabled,l=this.state.focusedIndex;return this.buttonsData=this.props.items||o.Children.toArray(this.props.children).filter((function(e){return e&&e.type===R})).map((function(e){return e.props})),o.createElement("div",{className:Object(a.classNames)("k-widget","k-dropdown-button",this.props.className,{"k-state-focused":this.state.focused}),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},o.createElement(m,{onClick:this.onClickMainButton,onMouseDown:this.mouseDown,disabled:s||void 0,tabIndex:i,accessKey:this.props.accessKey,icon:this.props.icon,iconClass:this.props.iconClass,className:this.props.buttonClass,imageUrl:this.props.imageUrl,look:this.props.look,primary:this.props.primary,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-disabled":s,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":this.props.text+" dropdownbutton","aria-owns":this.guid,"aria-activedescendant":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(a.dispatchEvent)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t})},t.prototype.renderPopup=function(e){var t=this.props.popupSettings,n=void 0===t?{}:t;return o.createElement(S.a,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(a.classNames)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||D(e),popupAlign:n.popupAlign||x(e),style:e?{direction:"rtl"}:void 0},o.createElement("ul",{className:"k-list k-reset",role:"menu",id:this.guid},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,r=t.itemRender,i=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return o.createElement(C,{dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:r,item:n,index:a,key:a,id:e.guid+"-"+a})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:i.string,primary:i.bool,onFocus:i.func,onBlur:i.func,onItemClick:i.func,onOpen:i.func,onClose:i.func,items:i.arrayOf(i.any),textField:i.string,tabIndex:i.number,disabled:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,popupSettings:i.object,itemRender:i.func,item:i.func,look:i.string,className:i.string,buttonClass:i.string,dir:i.string},t}(o.Component),L=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),V=function(){return(V=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},B=function(e){function t(n){var r=e.call(this,n)||this;return r._element=null,r.offsetHeight=0,r.offsetWidth=0,r.buttons=[],r.focusedSelector=r.selectors.map((function(e){return e+":focus"})).join(","),r.setTabIndex=function(e){var n=r.props.tabIndex,o=void 0===n?t.defaultProps.tabIndex:n;r.buttons.forEach((function(t,n){t.tabIndex=n===e?o:-1}))},r.onKeyDown=function(e){var t=e.target;if((e.keyCode===a.Keys.left||e.keyCode===a.Keys.right)&&!e.defaultPrevented&&-1!==r.buttons.findIndex((function(e){return e===t}))){var n=r.focusedIndex;e.keyCode===a.Keys.left?r.focusButton(n,n-1):r.focusButton(n,n+1)}},r.onWindowResize=function(e){var t=r.element;if(t){var n=t.offsetWidth,o=t.offsetHeight;if(r.offsetWidth!==n||r.offsetHeight!==o){r.offsetWidth=n,r.offsetHeight=o;var i={offsetWidth:r.offsetWidth,offsetHeight:r.offsetHeight};r.props.onResize&&r.props.onResize.call(void 0,V({target:r},i,{nativeEvent:e}))}}},Object(a.validatePackage)(s),r}return L(t,e),Object.defineProperty(t.prototype,"selectors",{get:function(){return this.props.buttons||u},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusedIndex",{get:function(){var e=this.element&&this.element.querySelector(this.focusedSelector);return Math.max(0,this.buttons.findIndex((function(t){return t===e})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.onWindowResize);var e=this.element;e&&(this.offsetWidth=e.offsetWidth,this.offsetHeight=e.offsetHeight,!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(0)))},t.prototype.componentDidUpdate=function(){var e=this.element;e&&!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(this.focusedIndex))},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onWindowResize),this.buttons.length=0},t.prototype.render=function(){var e=this;return o.createElement("div",{className:Object(a.classNames)("k-widget k-toolbar",this.props.className),style:this.props.style,role:"toolbar",dir:this.props.dir,ref:function(t){return e._element=t},onKeyDown:!1!==this.props.keyboardNavigation?this.onKeyDown:void 0},this.props.children)},t.prototype.focusButton=function(e,n){var r=this.props.tabIndex,o=void 0===r?t.defaultProps.tabIndex:r,i=this.buttons[n];if(i){i.tabIndex=o,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}(o.Component),z=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),H=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return z(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;return o.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}(o.PureComponent),U=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),K=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return U(t,e),t.prototype.render=function(){return o.createElement(H,{className:"k-separator"})},t}(o.PureComponent),W=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null);o.useImperativeHandle(r,(function(){return{element:n.current}})),o.useImperativeHandle(t,(function(){return{element:n.current}}));var i=o.useMemo((function(){return Object(a.classNames)("k-spacer",e.className)}),[e.className]);return o.createElement("span",{ref:n,className:i})}));W.propTypes={className:i.string},function(e){e.single="single",e.multiple="multiple",e.none="none"}(I||(I={})),function(e){e.toggle="toggle",e.remove="remove"}(T||(T={}));var q;!function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(q||(q={}));var Y;!function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(Y||(Y={}));var G=function(){return(G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Z=o.createContext([null,function(e){}]),X=o.createContext([null,function(e){}]),Q=o.createContext([null,function(e){}]),$=function(e,t,n){var r=o.useState(e),i=r[0],a=r[1];return[i,function(e){var r=function(e,t){switch(t.selection){case I.single:switch(t.type){case T.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 T.remove:return t.payload===e?null:e;default:return e}case I.multiple:switch(t.type){case T.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 T.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 I.none:return null;default:return e}}(t.state||i,G({},e,t));n&&n(r,e.event),a(r)}]},J=function(e){var t=o.useState(null),n=t[0],r=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 q.next:return n===t.items.length-1?e:t.items[n+1];case q.prev:return 0===n?e:t.items[n-1];case q.current:return t.payload;case q.reset:return null;default:return e}}(t.payload,G({},t,e));r(n)}]},ee=function(e,t,n){var r=o.useState(e),i=r[0],a=r[1];return[i,function(e){var r=function(e,t){switch(t.type){case Y.add:break;case Y.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case Y.reorder:break;default:return e}}(t.state||i,G({},e,t));n&&n(r,e.event),a(r)}]},te=o.forwardRef((function(e,t){Object(a.validatePackage)(s);var n=o.useRef(null),r=o.useRef(null),i=Object(a.useDir)(r,e.dir),l=o.useMemo((function(){return e.chip||ie}),[e.chip,ie]),u=o.useMemo((function(){return e.selection||re.selection}),[e.selection,re.selection]);o.useImperativeHandle(n,(function(){return{element:r.current,props:e}})),o.useImperativeHandle(t,(function(){return n.current}));var c=o.useCallback((function(t,r){e.onChange&&n.current&&e.onChange.call(void 0,{value:t,target:n.current,syntheticEvent:r})}),[e.onChange]),d=$(e.value||e.defaultValue,{selection:u,state:e.value},c),p=d[0],f=d[1],h=o.useCallback((function(t,r){e.onDataChange&&n.current&&e.onDataChange.call(void 0,{value:t,target:n.current,syntheticEvent:r})}),[e.onDataChange]),m=ee(e.data||e.defaultData||re.defaultData,{state:e.data,valueField:e.valueField||re.valueField},h),v=m[0],g=m[1],y=o.useCallback((function(t,n){return t.push(n[e.valueField||re.valueField]),t}),[e.valueField,re.valueField]),b=o.useMemo((function(){return e.data||v}),[e.data,v]),k=o.useMemo((function(){return e.value||p}),[e.value,p]),C=o.useMemo((function(){return b.reduce(y,[])}),[b,y]),O=J({items:C}),w=O[0],E=O[1],S=Object(a.useMouse)(e,n);return o.createElement(Z.Provider,{value:[k,f]},o.createElement(X.Provider,{value:[w,E]},o.createElement(Q.Provider,{value:[b,g]},o.createElement("div",G({ref:r},S,{role:"listbox",id:e.id,dir:i,style:e.style,tabIndex:Object(a.getTabIndex)(e.tabIndex,e.disabled,void 0),className:Object(a.classNames)("k-chip-list",{"k-rtl":"rtl"===i,"k-selection-single":"single"===u,"k-selection-multiple":"multiple"===u,"k-state-disabled":e.disabled},e.className),"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}),b.map((function(t){return o.createElement(l,{role:"option",dataItem:t,key:Object(a.getter)(e.valueField||re.valueField)(t),text:Object(a.getter)(e.textField||re.textField)(t),value:Object(a.getter)(e.valueField||re.valueField)(t)})}))))))})),ne={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},re={chip:ie,disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};te.displayName="KendoReactChipList",te.propTypes=ne,te.defaultProps=re;var oe=function(){return(oe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ie=o.forwardRef((function(e,t){Object(a.validatePackage)(s);var n=o.useRef(null),r=o.useRef(null),i=Object(a.useDir)(r,e.dir);o.useImperativeHandle(n,(function(){return{element:r.current,props:e}})),o.useImperativeHandle(t,(function(){return n.current}));var l=o.useContext(Z),u=l[0],c=l[1],d=o.useContext(X),p=d[0],f=d[1],h=o.useContext(Q)[1],m=o.useMemo((function(){return e.selected||(Array.isArray(u)?u.some((function(t){return t===e.value})):u===e.value)}),[e.selected,e.value,u]),v=o.useMemo((function(){return p===e.value}),[e.value,p]),g=o.useMemo((function(){return e.look||se.look}),[e.look]);o.useEffect((function(){v&&r.current&&r.current.focus()}),[v]);var y=o.useCallback((function(t){c({type:T.toggle,payload:e.value,event:t})}),[e.onClick,c,e.value]),b=o.useCallback((function(t){e.removable&&(h({type:Y.remove,payload:e.value,event:t}),f({type:q.reset,payload:e.value,event:t}),c({type:T.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:n.current,syntheticEvent:t}))}),[e.onRemove,e.removable,h,f,c]),k=o.useCallback((function(t){switch(t.keyCode){case a.Keys.left:f({type:q.prev,payload:e.value,event:t});break;case a.Keys.right:f({type:q.next,payload:e.value,event:t});break;case a.Keys.enter:c({type:T.toggle,payload:e.value,event:t});break;case a.Keys.delete:b(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown,f,c,b]),C=o.useCallback((function(t){f({payload:e.value,type:q.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus,f]),O=o.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),w=Object(a.useMouse)(e,n,{onClick:y});return o.createElement("div",oe({},w,{role:e.role,id:e.value,style:e.style,ref:r,dir:i,tabIndex:Object(a.getTabIndex)(e.tabIndex,e.disabled,void 0),className:Object(a.classNames)("k-chip",{"k-rtl":"rtl"===i,"k-state-disabled":e.disabled,"k-state-selected":m,"k-state-focus":v,"k-chip-success":"success"===e.type,"k-chip-warning":"warning"===e.type,"k-chip-error":"error"===e.type,"k-chip-info":"info"===e.type,"k-chip-has-icon":e.icon,"k-chip-outline":"outline"===g||"outlined"===g,"k-chip-solid":"solid"===g||"filled"===g},e.className),"aria-checked":m,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:C,onBlur:O,onKeyDown:k}),m&&o.createElement("span",{className:"k-selected-icon-wrapper"},o.createElement("span",{className:"k-selected-icon k-icon "+(e.selectedIcon||se.selectedIcon)})),e.icon&&o.createElement("span",{className:"k-icon k-chip-icon "+e.icon}),o.createElement("span",{className:"k-chip-content"},void 0!==e.children?e.children:e.text&&o.createElement("span",{"aria-label":e.text,className:"k-chip-label"},e.text)),e.removable&&o.createElement("span",{className:"k-remove-icon",onClick:b},o.createElement("span",{className:"k-icon "+e.removeIcon})))})),ae={id:i.string,text:i.string,value:i.any,type:i.oneOf(["none","success","warning","error","info"]),dir:i.oneOf(["ltr","rtl"]),removable:i.bool,removeIcon:i.string,disabled:i.bool,icon:i.string,selectedIcon:i.string,look:i.string,onRemove:i.func,dataItem:i.any,selected:i.bool,ariaDescribedBy:i.string},se={disabled:!1,removable:!1,selectedIcon:"k-i-check",look:"solid",removeIcon:"k-i-close-circle",dir:"ltr"};ie.displayName="KendoReactChip",ie.propTypes=ae,ie.defaultProps=se;var le=function(){return(le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ce=o.forwardRef((function(e,t){var n=e.className,r=e.disabled,i=e.text,s=e.icon,l=e.style,u=e.id,c=e.focused,d=e.tabIndex,p=e.index,f=e.dataItem,h=e.item,m=e.onDown,v=e.onClick,g=ue(e,["className","disabled","text","icon","style","id","focused","tabIndex","index","dataItem","item","onDown","onClick"]),y=o.useRef(null),b=o.useCallback((function(){y.current&&y.current.focus()}),[]),k=o.useCallback((function(){return{element:y.current,focus:b}}),[b]);o.useImperativeHandle(t,k);var C=o.useCallback((function(e){v&&void 0!==p&&!r&&v(e,p)}),[v,p]),O=o.useMemo((function(){return Object(a.classNames)("k-fab-item",{"k-state-focus":c,"k-state-disabled":r},n)}),[n,r,c]),w=h;return o.createElement("li",le({ref:y,id:u,className:O,style:l,role:"menuitem",tabIndex:Object(a.getTabIndex)(d,r),"aria-disabled":r,"aria-label":(i||"")+" floatingactionbutton item",onClick:C,onMouseDown:m,onPointerDown:m},g),w?o.createElement(w,{itemIndex:p,item:f}):o.createElement(o.Fragment,null,i&&o.createElement("span",{className:"k-fab-item-text"},i),s&&o.createElement("span",{className:Object(a.classNames)("k-fab-item-icon k-icon k-i-"+s)})))}));ce.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},ce.displayName="KendoFloatingActionButtonItem";var de=function(e){return"number"==typeof e?e+"px":e},pe=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},fe=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},he=function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]},me=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},ve=function(){return(ve=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ye=o.forwardRef((function(e,t){Object(a.validatePackage)(s);var n=e.align,r=void 0===n?be.align:n,i=e.alignOffset,l=e.className,u=e.disabled,c=e.icon,d=e.iconClass,p=e.id,f=e.items,h=e.item,m=e.text,v=e.positionMode,g=void 0===v?be.positionMode:v,y=e.shape,b=void 0===y?be.shape:y,k=e.size,C=void 0===k?be.size:k,O=e.style,w=e.themeColor,E=void 0===w?be.themeColor:w,D=e.tabIndex,x=e.accessKey,I=e.popupSettings,T=void 0===I?{}:I,_=e.onClick,P=e.onItemClick,N=e.onFocus,M=e.onBlur,R=e.onKeyDown,j=e.onOpen,F=e.onClose,A=ge(e,["align","alignOffset","className","disabled","icon","iconClass","id","items","item","text","positionMode","shape","size","style","themeColor","tabIndex","accessKey","popupSettings","onClick","onItemClick","onFocus","onBlur","onKeyDown","onOpen","onClose"]),L=o.useRef(null),V=o.useRef(null),B=o.useRef(null),z=o.useRef(null),H=o.useCallback((function(){V.current&&V.current.focus()}),[]),U=o.useCallback((function(){return{element:V.current,focus:H}}),[H]);o.useImperativeHandle(L,U),o.useImperativeHandle(t,(function(){return L.current}));var K=o.useState(!1),W=K[0],q=K[1],Y=o.useState(!1),G=Y[0],Z=Y[1],X=o.useState(-1),Q=X[0],$=X[1],J=o.useMemo((function(){return Object(a.guid)()}),[]),ee=Object(a.useDir)(V,e.dir),te="rtl"===ee,ne=o.useMemo((function(){return Object(a.guid)()}),[]);o.useEffect((function(){!function(e,t,n,r){var o=t.horizontal,i=t.vertical;if(e.current){var a=n&&void 0!==n.x?de(n.x):"16px",s=n&&void 0!==n.x?"calc(50% + "+de(n.x)+")":"50%",l=n&&void 0!==n.y?de(n.y):"16px",u=n&&void 0!==n.y?"calc(50% + "+de(n.y)+")":"50%";e.current.style.setProperty(he(t,r),"center"===o?s:a),e.current.style.setProperty(me(t),"middle"===i?u:l),r&&("top"!==i&&"bottom"!==i||"start"!==o||e.current.style.setProperty("left","unset"),"middle"===i&&"end"===o&&e.current.style.setProperty("right","unset"),"middle"===i&&"start"===o&&e.current.style.setProperty("left","unset"))}}(V,r,i,te)}),[V,r,i,te]),o.useEffect((function(){G&&V&&V.current&&V.current.focus()}),[G,V]);var re=o.useCallback((function(e,t){f&&Object(a.dispatchEvent)(t?j:F,e,U(),void 0)}),[j,F,f]),oe=o.useCallback((function(e){e.target&&!u&&(!f&&_?Object(a.dispatchEvent)(_,e,U(),void 0):(q(!W),Z(!0),$(W?-1:0),re(e,!W)))}),[q,Z,$,_,re,W,f,u]),ie=o.useCallback((function(e){Z(!0),$(W?0:-1),N&&Object(a.dispatchEvent)(N,e,U(),void 0)}),[N,Z,$]),ae=o.useCallback((function(e){Z(!1),q(!1),$(-1),Object(a.dispatchEvent)(M,e,U(),void 0),W&&re(e,!1)}),[M,Z,q,$,re]),se=o.useCallback((function(e){e.preventDefault()}),[]),le=o.useCallback((function(e,t){f&&(f[t].disabled||Object(a.dispatchEvent)(P,e,U(),{itemProps:f[t],itemIndex:t}))}),[P]),ue=o.useCallback((function(e,t){e.target&&f&&($(t),q(!1),le(e,t),re(e,!1))}),[$,q,le,re]),ye=o.useCallback((function(e){document.activeElement===V.current&&e.preventDefault()}),[V,document.activeElement]),ke=o.useCallback((function(e){var t=Q,n=f?f.length-1:-1,o="bottom"===r.vertical;switch(e.keyCode){case a.Keys.enter:case a.Keys.space:t>=0&&le(e,t),e.preventDefault(),q(!W),$(W?-1:0);break;case a.Keys.esc:e.preventDefault(),q(!1),$(-1);break;case a.Keys.home:e.preventDefault(),$(0);break;case a.Keys.end:e.preventDefault(),$(n);break;case a.Keys.down:case a.Keys.right:e.preventDefault(),t<n&&!o&&$(t+1),t>0&&o&&$(t-1);break;case a.Keys.up:case a.Keys.left:e.preventDefault(),t>0&&!o&&$(t-1),t<n&&o&&$(t+1)}Object(a.dispatchEvent)(R,e,U(),void 0)}),[R,Q,$,te,q]),Ce=o.useMemo((function(){return Object(a.classNames)("k-fab","k-fab-"+E,"k-fab-"+b,{"k-fab-sm":"small"===C,"k-fab-md":"medium"===C,"k-fab-lg":"large"===C,"k-state-disabled":u,"k-pos-absolute":"absolute"===g,"k-pos-fixed":"fixed"===g,"k-state-focus":G},"k-"+r.vertical+"-"+r.horizontal,l)}),[E,C,b,u,g,r,G,l]),Oe=f&&f.map((function(e,t){return o.createElement(ce,ve({},e,{key:t,index:t,id:ne+"-"+t,disabled:u||e.disabled,focused:Q===t,dataItem:e,item:h,className:Object(a.classNames)(e.className,(n=ee||"ltr",i=r.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:ue,onDown:ye}));var n,i})),we=c&&!m,Ee=(V.current?V.current.offsetWidth:0)/2-16;return o.createElement(o.Fragment,null,o.createElement("button",ve({ref:V,id:p||J,role:f?"menubutton":"button",type:"button","aria-disabled":u,"aria-expanded":f?W:void 0,"aria-haspopup":!!f,"aria-label":(m||"")+" floatingactionbutton","aria-owns":f?ne:void 0,"aria-activedescendant":Q>=0&&f?ne+"-"+Q:void 0,tabIndex:Object(a.getTabIndex)(D,u),accessKey:x,dir:ee,disabled:u,className:Ce,style:O,onClick:oe,onMouseDown:se,onFocus:ie,onBlur:ae,onKeyDown:ke},A),c?o.createElement("span",{role:"presentation",className:Object(a.classNames)("k-fab-icon k-icon k-i-"+c)}):d?o.createElement("span",{role:"presentation",className:d}):null,m&&o.createElement("span",{className:"k-fab-text"},m)),o.createElement(S.a,{ref:z,anchor:V.current,show:W,animate:T.animate,popupClass:Object(a.classNames)("k-popup-transparent k-fab-popup",T.popupClass),anchorAlign:T.anchorAlign||pe(r,te),popupAlign:T.popupAlign||fe(r,te),style:{boxShadow:"none"}},o.createElement("ul",{ref:B,role:"menu","aria-labelledby":p,id:ne,className:Object(a.classNames)("k-fab-items",{"k-fab-items-bottom":"bottom"!==r.vertical,"k-fab-items-top":"bottom"===r.vertical}),style:{paddingLeft:we?Ee:void 0,paddingRight:we?Ee:void 0}},Oe)))}));ye.propTypes={className:i.string,style:i.object,id:i.string,dir:i.string,tabIndex:i.number,accessKey:i.string,disabled:i.bool,icon:i.string,iconClass:i.string,text:i.string,alignOffset:i.shape({x:i.oneOfType([i.number,i.string]),y:i.oneOfType([i.number,i.string])}),align:i.shape({vertical:i.oneOf(["top","middle","bottom"]),horizontal:i.oneOf(["start","center","end"])}),positionMode:i.oneOf(["absolute","fixed"]),shape:i.oneOf(["rectangle","rounded","pill"]),size:i.oneOf(["small","medium","large"]),themeColor:i.oneOf(["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])};var be={align:{vertical:"bottom",horizontal:"end"},shape:"pill",size:"medium",themeColor:"primary",positionMode:"fixed"};ye.displayName="KendoFloatingActionButton"},function(e,t,n){"use strict";n.r(t),n.d(t,"FloatingLabel",(function(){return m})),n.d(t,"Label",(function(){return c})),n.d(t,"Error",(function(){return d})),n.d(t,"Hint",(function(){return p}));var r,o=n(0),i=n(1),a=n(2),s=((r={})["labels.optional"]="(Optional)",r),l=n(4),u={name:"@progress/kendo-react-labels",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639493545,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=function(e){Object(a.validatePackage)(u);var t=e.id,n=e.editorId,r=e.editorRef,i=e.editorDisabled,c=e.children,d=e.editorValid,p=e.style,f=e.className,h=e.optional,m=Object(l.useLocalization)(),v=h?m.toLanguageString("labels.optional",s["labels.optional"]):"",g=v&&o.createElement("span",{className:"k-label-optional"},v),y=o.useCallback((function(e){if(r&&r.current&&!i){r.current.focus&&(e.preventDefault(),r.current.focus());var t=r.current.actionElement;t&&(e.preventDefault(),t.click())}}),[r]),b=Object(a.classNames)({"k-label":!0,"k-label-empty":!c,"k-text-error":!1===d,"k-text-disabled":!0===i},f);return o.createElement("label",{id:t,htmlFor:n,onClick:y,style:p,className:b},c,g)};c.propTypes={id:i.string,editorId:i.string,editorRef:i.oneOfType([i.func,i.shape({current:i.any})]),editorValid:i.bool,editorDisabled:i.bool,style:i.object,className:i.string,optional:i.bool},c.displayName="KendoReactLabel";var d=function(e){Object(a.validatePackage)(u);var t=Object(a.classNames)({"k-form-error":!0,"k-text-start":"start"===e.direction,"k-text-end":"end"===e.direction},e.className);return o.createElement("div",{id:e.id,role:"alert",style:e.style,className:t},e.children)};d.propTypes={id:i.string,direction:i.oneOf(["start","end"]),children:i.oneOfType([i.element,i.node]),style:i.object,className:i.string},d.defaultProps={direction:"start"},d.displayName="KendoReactError";var p=function(e){Object(a.validatePackage)(u);var t=Object(a.classNames)({"k-form-hint":!0,"k-text-start":"start"===e.direction,"k-text-end":"end"===e.direction,"k-text-disabled":!0===e.editorDisabled},e.className);return o.createElement("div",{id:e.id,style:e.style,className:t},e.children)};p.propTypes={id:i.string,direction:i.oneOf(["start","end"]),children:i.oneOfType([i.element,i.node]),style:i.object,className:i.string,editorDisabled:i.bool},p.defaultProps={direction:"start"},p.displayName="KendoReactHint";var f,h=(f=function(e,t){return(f=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}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focused:!1},n.handleFocus=function(e){n.setState({focused:!0})},n.handleBlur=function(e){n.setState({focused:!1})},Object(a.validatePackage)(u),n}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.editorId,r=e.className,i=e.editorValue,u=e.editorPlaceholder,c=e.editorValid,d=e.editorDisabled,p=e.style,f=e.id,h=e.optional,m=Object(l.provideLocalizationService)(this),v=h?m.toLanguageString("labels.optional",s["labels.optional"]):"",g=v&&o.createElement("span",{className:"k-label-optional"},v),y=Object(a.classNames)({"k-textbox-container":!0,"k-state-focused":this.state.focused,"k-state-empty":!u&&!i&&0!==i,"k-text-disabled":d,"k-rtl":"rtl"===this.props.dir},r),b=Object(a.classNames)({"k-label":!0,"k-text-error":!1===c,"k-text-disabled":d});return o.createElement("span",{className:y,onFocus:this.handleFocus,onBlur:this.handleBlur,style:p,dir:this.props.dir},this.props.children,t?n?o.createElement("label",{id:f,htmlFor:n,className:b},t,g):o.createElement("span",{id:f,className:b},t,g):null)},t.propTypes={label:i.string,editorId:i.string,editorValue:i.oneOfType([i.string,i.bool,i.number]),editorPlaceholder:i.string,editorValid:i.bool,editorDisabled:i.bool,id:i.string,style:i.object,className:i.string,optional:i.bool},t}(o.Component);Object(l.registerForLocalization)(m)},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(17),a=n(2),s=n(12),l=n(46);function u(e,n,r){t.setField(e,r,t.getField(n,r))}t.first=function(e){return e[0]},t.last=function(e){return e[e.length-1]},t.isMultiDay=function(e){return e.end.getTime()-e.start.getTime()>new Date(0).setHours(24)},t.isGroupped=function(e){var t=new Set;return e.forEach((function(e){t.add(e.field)})),t.size===e.length},t.formatEventTime=function(e,t,n,r){return r?""+e.formatDate(t,{skeleton:"yMMMMEEEEd"}):e.formatDate(t,{skeleton:"yMMMMEEEEdhm"})+"–"+e.formatDate(n,"t")},t.addUTCDays=function(e,t){var n=new Date(e.getTime());return n.setUTCDate(n.getUTCDate()+t),n},t.dateWithTime=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes())},t.getToday=function(){return o.getDate(new Date)},t.slotDive=function(e,n,r,o){if(void 0===o&&(o=0),o===r)return null;var i=null,a=document.elementFromPoint(e,n);if(!a)return i;if("true"===a.getAttribute("data-slot"))return a;var s=a.style.pointerEvents;return a.style.pointerEvents="none",i=t.slotDive(e,n,r,o+1),a.style.pointerEvents=s,i},t.getField=function(e,t){return a.getter(t)(e)},t.setField=function(e,t,n){if(t)return a.setter(t)(e,n)},t.assignField=u,t.assignFields=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];for(var o=0;o<n.length;o++)u(e,t,n[o])},t.isPresent=function(e){return null!=e},t.isRecurringMaster=function(e){return e.recurrenceRule&&!t.isPresent(e.recurrenceId)},t.toUTCDate=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))},t.getUTCDate=function(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))},t.toUTCDateTime=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},t.toInvariantTime=function(e){var t=new Date(1980,1,1,0,0,0);return e&&t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t},t.isRecurringException=function(e){return e&&t.isPresent(e.recurrenceId)&&!e.recurrenceRule},t.isRecurring=function(e,t){var n=a.getter(t.recurrenceId||"recurrenceId")(e);return!(!a.getter(t.recurrenceRule||"recurrenceRule")(e)&&!n)},t.groupResources=function(e,t){var n=[];if(e&&e.resources&&e.resources.length)for(var r=e.resources,o=function(e){var o=t.find((function(t){return t.name===r[e]}));n.push(o)},i=0;i<r.length;i++)o(i);return n},t.findMaster=function(e,n,r){var o=t.isMaster(e,n)?t.getField(e,n.id):t.getField(e,n.recurrenceId);return r.find((function(e){return t.getField(e,n.id)===o}))},t.isMaster=function(e,n){var r=t.getField(e,n.id),o=t.getField(e,n.recurrenceId),i=t.getField(e,n.recurrenceRule);return!(!r||!i||null!=o)},t.buildException=function(e,n,r){var o=t.findMaster(e,n,r),i=a.clone(e);return u(i,o,n.id),void 0!==n.id&&t.setField(i,n.id,s.DEFAULT_ID),void 0!==n.recurrenceRule&&t.setField(i,n.recurrenceRule,void 0),void 0!==n.recurrenceId&&t.setField(i,n.recurrenceId,t.getField(o,n.id)),i},t.isException=function(e,n){return t.isPresent(t.getField(e,n.recurrenceId))&&!t.getField(e,n.recurrenceRule)};var c=function(e,t){return Math.max(e.getTime(),t.getTime())},d=function(e,t){return Math.min(e.getTime(),t.getTime())};function p(e,n){for(var r=n.data,o=0;o<r.length;o++)if(t.getField(r[o],n.valueField)===e)return o;return 0}t.intersects=function(e,t,n,r,o){return void 0===o&&(o=!1),o?c(t,r)-d(e,n)<=t.getTime()-e.getTime()+(r.getTime()-n.getTime()):c(t,r)-d(e,n)<t.getTime()-e.getTime()+(r.getTime()-n.getTime())},t.roundAllDayEnd=function(e){var t=e.start,n=e.end,r=t.stripTime(),o=n.stripTime();return o.getTime()!==n.getTime()||r.getTime()===o.getTime()?o.addDays(1):o},t.defaultModelFields={id:"id",start:"start",startTimezone:"startTimezone",originalStart:"originalStart",end:"end",endTimezone:"endTimezone",isAllDay:"isAllDay",title:"title",description:"description",recurrenceRule:"recurrenceRule",recurrenceId:"recurrenceId",recurrenceExceptions:"recurrenceExceptions"},t.getModelFields=function(e){return{fields:r({},t.defaultModelFields,e)}},t.isInTimeRange=function(e,t,n){return(t.getHours()<e.getHours()||t.getHours()===e.getHours()&&t.getMinutes()<=e.getMinutes())&&(e.getHours()<n.getHours()||n.getHours()===e.getHours()&&e.getMinutes()<n.getMinutes())},t.toSchedulerGroups=function(e,t){var n=i.toGroupResources(e,t),o=i.toFlatGroupResources(n);return 1===o.length?[{index:0,resources:(t||[]).reduce((function(e,t){return e.concat(t.data.map((function(e){return r({},e,{field:t.field,valueField:t.valueField,colorField:t.colorField,multiple:t.multiple})})))}),[])}]:o.map((function(e,t){return{index:t,resources:e}}))},t.toSchedulerResources=function(e){return(e||[]).reduce((function(e,t){return e.concat(t.data.map((function(e){return r({},e,{field:t.field,valueField:t.valueField,colorField:t.colorField,multiple:t.multiple})})))}),[])},t.generateResourceFields=function(e,t){if(!e||!e.length)return t;var n={};return e.forEach((function(e){e.resources.forEach((function(e){void 0===n[e.field]&&(n[e.field]=e[e.valueField])}))})),n},t.isBlank=function(e){return null==e},t.isNullOrEmptyString=function(e){return t.isBlank(e)||e.trim&&0===e.trim().length},t.setTime=function(e,t){var n=a.cloneDate(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},t.extractGroups=function(e,t,n,r){var o=i.toGroupResources(n,r);return i.toFlatGroupResources(o).reduce((function(n,r,o){var i=!0;return r.forEach((function(n){var r=n[n.valueField],o=e[t[n.field]||n.field];i=Array.isArray(o)?i&&o.indexOf(r)>=0:i&&o===r})),i?n.concat([{index:o,resources:r}]):n}),[])};t.extractResourceFields=function(e,t,n){var r={};return n&&n.length?(n.forEach((function(n){var o=n.data.find((function(r){return r.value===e[t[n.field]||n.field]}));o&&(r[n.field]=o.value)})),r):r},t.extractResources=function(e,n,o){void 0===o&&(o=[]);for(var i=0,a=[],s=0;s<o.length;s++){var l=o[s],u=t.getField(e,n[l.field]||l.field);Array.isArray(u)||(u=[u]);for(var c=0;c<u.length;c++){if(void 0!==u[c]){var d=p(u[c],l),f=l.data[d],h={text:t.getField(f,l.textField),color:t.getField(f,l.colorField),value:t.getField(f,l.valueField)};a.push(r({},h,{index:i}))}i++}}return a},t.shallowCompare=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},t.findMissing=function(e){var t=0,n=e.slice();return n.sort((function(e,t){return e-t})).forEach((function(e,r){n[r]===r&&(t=r+1)})),t},t.calculateOrder=function(e,n,r,o){var i;return void 0===o&&(o=!1),r.forEach((function(r){var a=[];n.sort((function(e,t){return e.props.start.getTime()-t.props.start.getTime()})).forEach((function(n){if((o||n.props.isAllDay===r.current.props.isAllDay)&&n.props.range.index===r.current.props.range.index&&n.props.group.index===r.current.props.group.index&&t.intersects(n.props.start,n.props.end,r.current.props.start,r.current.props.end)){var s=t.findMissing(a);n===e&&void 0===i&&(i=s),a.splice(s,0,s)}}))})),i},t.mapSlotsToItems=function(e,n,r){void 0===r&&(r=!1),n.forEach((function(e){return e.items.splice(0,e.items.length)})),n.forEach((function(n){var o=[];e.forEach((function(e){if((r||e.isAllDay===n.isAllDay)&&e.range.index===n.range.index&&e.group.index===n.group.index&&t.intersects(e.start,e.end,n.start,n.end)){var i=t.findMissing(o);(null===e.order||void 0===e.order||e.order<i)&&(e.order=i),o.splice(e.order,0,e.order),n.items.push(e)}}))}))},t.mapItemsToSlots=function(e,n,r){void 0===r&&(r=!1),e.forEach((function(e){return e.slots.splice(0,e.slots.length)})),e.forEach((function(e){n.forEach((function(n){(r||e.isAllDay===n.isAllDay)&&e.range.index===n.range.index&&e.group.index===n.group.index&&t.intersects(e.start,e.end,n.start,n.end)&&e.slots.push(n)}))}))},t.noop=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.findFirstItem=function(e){var t=e.props.items.find((function(e){return 0===e.order}))||e.props.items[0];return t&&t._ref.current},t.findNextItem=function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=!1);var o=e.current;if(!o||!t)return null;var i=t.filter((function(e){return null!==e.current&&null!==e.current.element})),a=l.orderBy(i,[{field:"current.props.group.index",dir:"asc"},{field:"current.props.range.index",dir:"asc"},n?{field:""}:{field:"current.props.isAllDay",dir:"desc"},{field:"current.props.start",dir:"asc"}]),s=a.findIndex((function(e){return null!==e.current&&Boolean(e.current.props.uid===o.props.uid&&(void 0===e.current.props.occurrenceId||e.current.props.occurrenceId===o.props.occurrenceId)&&e.current.props.group.index===o.props.group.index&&e.current.props.range.index===o.props.range.index&&(n||e.current.props.isAllDay===o.props.isAllDay))}));return a[s+(r?-1:1)]},t.orderSort=function(e,t){return(e.order||0)-(t.order||0)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("@progress/kendo-date-math"),require("@progress/kendo-react-intl"),require("react-dom"),require("@progress/kendo-drawing"),require("react-transition-group"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-date-math","@progress/kendo-react-intl","react-dom","@progress/kendo-drawing","react-transition-group","@progress/kendo-licensing"],t):"object"==typeof exports?exports.KendoReactScheduler=t(require("react"),require("prop-types"),require("@progress/kendo-date-math"),require("@progress/kendo-react-intl"),require("react-dom"),require("@progress/kendo-drawing"),require("react-transition-group"),require("@progress/kendo-licensing")):e.KendoReactScheduler=t(e.React,e.PropTypes,e.KendoDateMath,e.KendoReactIntl,e.ReactDOM,e.KendoDrawing,e.ReactTransitionGroup,e.KendoLicensing)}(window,(function(e,t,n,r,o,i,a,s){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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=19)}([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})),n.d(t,"useZIndexContext",(function(){return i})),n.d(t,"BrowserSupportService",(function(){return s})),n.d(t,"canUseDOM",(function(){return l})),n.d(t,"canUseRef",(function(){return u})),n.d(t,"classNames",(function(){return c})),n.d(t,"cloneDate",(function(){return d})),n.d(t,"clone",(function(){return p})),n.d(t,"cloneObject",(function(){return f})),n.d(t,"cloneValue",(function(){return h})),n.d(t,"cloneArray",(function(){return m})),n.d(t,"focusFirstFocusableChild",(function(){return v})),n.d(t,"FormComponent",(function(){return g})),n.d(t,"getTabIndex",(function(){return y})),n.d(t,"getter",(function(){return O})),n.d(t,"guid",(function(){return w})),n.d(t,"Keys",(function(){return E})),n.d(t,"noop",(function(){return S})),n.d(t,"getScrollbarWidth",(function(){return D})),n.d(t,"setScrollbarWidth",(function(){return x})),n.d(t,"setter",(function(){return _})),n.d(t,"mapTree",(function(){return M})),n.d(t,"mapTreeItem",(function(){return R})),n.d(t,"extendDataItem",(function(){return j})),n.d(t,"getItemPath",(function(){return F})),n.d(t,"validatePackage",(function(){return L})),n.d(t,"hasRelativeStackingContext",(function(){return V})),n.d(t,"dispatchEvent",(function(){return B})),n.d(t,"AsyncFocusBlur",(function(){return U})),n.d(t,"createPropsContext",(function(){return q})),n.d(t,"withPropsContext",(function(){return Y})),n.d(t,"useDir",(function(){return G})),n.d(t,"useAsyncFocusBlur",(function(){return z})),n.d(t,"useRtl",(function(){return Z})),n.d(t,"useMouse",(function(){return Q})),n.d(t,"useCustomComponent",(function(){return $})),n.d(t,"usePropsContext",(function(){return K})),n.d(t,"COLLECTION_ACTION",(function(){return X})),n.d(t,"useCollection",(function(){return J})),n.d(t,"Icon",(function(){return oe})),n.d(t,"SvgIcon",(function(){return le})),n.d(t,"Typography",(function(){return Oe})),n.d(t,"DragAndDrop",(function(){return ze})),n.d(t,"Draggable",(function(){return He})),n.d(t,"Droppable",(function(){return Ue})),n.d(t,"useDraggable",(function(){return Ae})),n.d(t,"useDroppable",(function(){return Le}));var r=n(0),o=r.createContext(0),i=function(){return r.useContext(o)};o.displayName="KendoReactZIndexContext";var a=function(){return"undefined"!=typeof document?document:{}},s=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=a();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),e}(),l=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),u=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?c.apply(void 0,e):"object"==typeof e?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")},d=function(e){return e?new Date(e.getTime()):null};function p(e){var t={};return f(e,t),t}function f(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=h(r,t[n])}}function h(e,t){if(Array.isArray(e))return m(e);if(e instanceof Date)return d(e);if(r.isValidElement(e))return r.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return f(e,n),n}return e}function m(e){return e.map((function(e){return h(e,void 0)}))}var v=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},g=function(){},y=function(e,t,n){var r="string"==typeof e?parseInt(e,void 0):e;if(NaN!==r)return void 0!==r?r:t?n?void 0:-1:0},b=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function k(e){var t=[];return e.replace(b,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),t}var C={};function O(e){if(C[e])return C[e];var t=k(e);return C[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},C[e]}C.undefined=function(){};var w=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},E={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},S=function(){},D=function(){return!(!l||!document.body)&&(new s).scrollbarWidth},x=function(){if(!l||!document.body)return!1;var e=(new s).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},I={undefined:function(e){return e}},T=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function _(e){if(I[e])return I[e];var t=k(e);return I[e]=function(e,n,r){for(var o=e,i=t.length-1,a=0;a<i&&o;a++)o=o[t[a]]=o[t[a]]||T(t[a+1],r);o[t[i]]=n},I[e]}var P=function(){return(P=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function N(e,t,n){var r;return n?P({},e,((r={})[t]=n.length?n.slice():void 0,r)):e&&e[t]?e[t].slice():[]}var M=function(e,t,n){return e.map((function(e){return function e(t,n,r){if(t[n]){var o=N(t,n).map((function(t){return e(t,n,r)}));return r(N(t,n,o))}return r(t)}(e,t,n)})).slice()},R=function(e,t,n,r){for(var o=e,i=[],a=0;a<t.length;a++)o=o[t[a]],o=Array.isArray(o)?o:o[n],i.push(o);var s=i.length>1?i[i.length-2]:e,l=t[t.length-1],u=r(s[l]);s.splice(l,1,u)},j=function(e,t,n){var r;return Object.assign({},e,e[t]?((r={})[t]=e[t].slice(),r):{},n||{})},F=function(e,t,n){var r=[],o=t.slice();if(o.length){var i=e[o.shift()||0];for(r.push(i);o.length&&n;)i=i[n][o.shift()||0],r.push(i)}return r},A=n(48);function L(e){if(void 0!==A)A.validatePackage(e);else{var t="License activation failed for "+e.name+"\n";t+="The @progress/kendo-licensing script is not loaded.\n",t+="See "+e.licensingDocsUrl+" for more information.\n",console.warn(t)}}var V=function(e){if(!l)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 r=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),r};function B(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}function z(e){var t=e.onFocus,n=e.onBlur,o=e.onSyncFocus,i=e.onSyncBlur,a=r.useRef(!1),s=r.useRef(0),l=r.useCallback((function(e){clearTimeout(s.current),s.current=window.setTimeout((function(){return e()}))}),[s]),u=r.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(s.current),o&&o.call.apply(o,[void 0].concat(e)),a.current||(a.current=!0,t&&t.call.apply(t,[void 0].concat(e)))}),[a,t,o]),c=r.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i&&i.call.apply(i,[void 0].concat(e)),l((function(){a.current&&n&&(a.current=!1,n.call.apply(n,[void 0].concat(e)))}))}),[a,l,n,i]);return r.useEffect((function(){return function(){clearTimeout(s.current)}}),[]),{onFocus:u,onBlur:c}}var H=function(){return(H=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},U=function(e){var t=e.children,n=z({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,H({},n))},K=function(e,t){return r.useContext(e)(t)},W=function(){return(W=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},q=function(){return r.createContext((function(e){return e}))},Y=function(e,t){return r.forwardRef((function(n,o){var i=K(e,n);return r.createElement(t,W({},i,{ref:o}))}))};function G(e,t,n){var o=r.useState(t),i=o[0],a=o[1];return r.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}function Z(e,t,n){var o=r.useState(t),i=o[0],a=o[1];return r.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}var X,Q=function(e,t,n){void 0===n&&(n={});var o=r.useCallback((function(r){n.onMouseDown&&n.onMouseDown.call(void 0,r),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseDown,e.onMouseDown,t]),i=r.useCallback((function(r){n.onMouseUp&&n.onMouseUp.call(void 0,r),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:r.useCallback((function(r){n.onClick&&n.onClick.call(void 0,r),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onClick,e.onClick,t]),onMouseUp:i,onMouseDown:o,onDoubleClick:r.useCallback((function(r){n.onDoubleClick&&n.onDoubleClick.call(void 0,r),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:r.useCallback((function(r){n.onMouseEnter&&n.onMouseEnter.call(void 0,r),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:r.useCallback((function(r){n.onMouseLeave&&n.onMouseLeave.call(void 0,r),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:r.useCallback((function(r){n.onMouseMove&&n.onMouseMove.call(void 0,r),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:r.useCallback((function(r){n.onMouseOut&&n.onMouseOut.call(void 0,r),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:r.useCallback((function(r){n.onMouseOver&&n.onMouseOver.call(void 0,r),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOver,e.onMouseOver,t])}},$=function(e){return r.isValidElement(e)?[e.type,e.props]:[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(X||(X={}));var J=function(e){void 0===e&&(e=[]);var t=r.useRef(e),n=r.useCallback((function(e){switch(e.type){case X.add:t.current.push(e.item);break;case X.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},ee=n(1),te={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},ne=function(){return(ne=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},re=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},oe=r.forwardRef((function(e,t){var n=e.className,o=e.name,i=e.themeColor,a=e.size,s=e.flip,l=e.style,u=re(e,["className","name","themeColor","size","flip","style"]),d=r.useRef(null),p=r.useRef(null);r.useImperativeHandle(d,(function(){return{element:p.current}})),r.useImperativeHandle(t,(function(){return d.current}));var f=r.useMemo((function(){return i||ie.themeColor}),[i]),h=r.useMemo((function(){return a||ie.size}),[a]),m=r.useMemo((function(){return s||ie.flip}),[s]),v=r.useMemo((function(){return c("k-icon","k-i-"+o,"k-color-"+f,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},te[h],n)}),[o,f,h,m,n]),g=Q(e,d);return r.createElement("span",ne({ref:p},u,g,{className:v,style:l,role:"presentation"}))}));oe.propTypes={style:ee.object,classNames:ee.string,name:ee.string,themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ee.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ee.oneOf(["default","horizontal","vertical","both"])};var ie={size:"default",themeColor:"inherit",flip:"default"};oe.displayName="KendoIcon";var ae=function(){return(ae=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},se=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},le=r.forwardRef((function(e,t){var n=e.children,o=e.className,i=e.svgClassName,a=e.icon,s=e.flip,l=e.size,u=e.style,d=e.svgStyle,p=e.themeColor,f=e.viewBox,h=se(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),m=r.useRef(null);r.useImperativeHandle(t,(function(){return{element:m.current}}));var v=r.useMemo((function(){return a?a.name:ue.icon}),[a]),g=r.useMemo((function(){return p||ue.themeColor}),[p]),y=r.useMemo((function(){return l||ue.size}),[l]),b=r.useMemo((function(){return s||ue.flip}),[s]),k=r.useMemo((function(){return f||ue.viewBox}),[f]),C=r.useMemo((function(){return c("k-svg-icon","k-color-"+g,"k-svg-i-"+v,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},te[y],o)}),[v,g,y,b,o]),O=r.useMemo((function(){return e.width&&e.height?ae({width:e.width,height:e.height},u):e.width?ae({width:e.width,height:e.width},u):e.height?ae({width:e.height,height:e.height},u):ae({},u)}),[e.width,e.height,u]);return r.createElement("span",{className:C,style:O,ref:m},r.createElement("svg",ae({className:i,style:d,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:a?a.viewBox:k,dangerouslySetInnerHTML:a?{__html:a.content}:void 0},h),a?void 0:n))}));le.propTypes={style:ee.object,classNames:ee.string,children:ee.any,icon:ee.object,themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ee.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ee.oneOf(["default","horizontal","vertical","both"])};var ue={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};le.displayName="KendoSvgIcon";var ce,de={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},pe={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},fe={xsmall:"k-m-xs",small:"k-m-sm",medium:"k-m-md",large:"k-m-lg",xlarge:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},he={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},me={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},ve={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},ge={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},ye={inherit:"k-color-inherit",primary:"k-color-primary",secondary:"k-color-secondary",tertiary:"k-color-tertiary",info:"k-color-info",success:"k-color-success",warning:"k-color-warning",error:"k-color-error",dark:"k-color-dark",light:"k-color-light",inverse:"k-color-inverse"},be=function(){return(be=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ke=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},Ce=function(e){var t=r.forwardRef((function(t,n){var o=t.className,i=t.fontSize,a=t.fontWeight,s=t.textAlign,l=t.textTransform,u=t.themeColor,c=t.margin,d=ke(t,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),p=r.useRef(null),f=r.useRef(null);r.useImperativeHandle(p,(function(){return{element:f.current,props:t}})),r.useImperativeHandle(n,(function(){return p.current}));var h=e,m=function(){if(void 0!==c){if("string"==typeof c)return[fe[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,r;null!==c[t]&&void 0!==c[t]&&e.push((n=t,r=c[t],""+me[n]+("string"==typeof r?he[r]:r)))})),e.join(" ")}}};return r.createElement(h,be({ref:f,className:["k-"+("p"===e?"paragraph":e),de[i],pe[a],ve[s],ge[l],ye[u],m(),o].filter((function(e){return void 0!==e})).join(" ")},d),t.children)}));return t.propTypes={style:ee.object,className:ee.string,fontSize:ee.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:ee.oneOf(["light","normal","bold"]),margin:ee.oneOfType([ee.number,ee.object,ee.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:ee.oneOf(["left","right","center","justify"]),textTransform:ee.oneOf(["lowercase","uppercase","capitalize"]),themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography"+e.toUpperCase(),t},Oe={h1:Ce("h1"),h2:Ce("h2"),h3:Ce("h3"),h4:Ce("h4"),h5:Ce("h5"),h6:Ce("h6"),p:Ce("p"),code:Ce("code"),pre:Ce("pre")},we=function(e,t){var n=0,r=null;return t.forEach((function(t){if(t&&e){var o=function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=Math.max(r.top,n.top),i=Math.max(r.left,n.left),a=Math.min(r.left+r.width,n.left+n.width),s=Math.min(r.top+r.height,n.top+n.height),l=a-i,u=s-o;if(i<a&&o<s){var c=r.width*r.height,d=n.width*n.height,p=l*u;return Number((p/(c+d-p)).toFixed(4))}return 0}(e,t);o>n&&(n=o,r=t)}})),r},Ee=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],r={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 o in r)if(r.hasOwnProperty(o)&&(n=e.match(r[o]))){(t={})[o]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},Se=function(e){return e&&e.ownerDocument||window.document},De=function(e){var t=Ee(),n=Se(e);return t.edge||t.safari?n.body:n.documentElement},xe=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},Ie=function(e){var t=De(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&!xe(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"}(ce||(ce={}));var Te=function(){},_e=function(e,t,n){void 0===n&&(n={});var r,o,i,a,s=n.onIsPressedChange,l=void 0===s?Te:s,u=n.onIsScrollingChange,c=void 0===u?Te:u,d=n.onVelocityChange,p=void 0===d?Te:d,f=n.onOffsetChange,h=void 0===f?Te:f,m=n.onPageOffsetChange,v=void 0===m?Te:m,g=n.onClientOffsetChange,y=void 0===g?Te:g,b=n.onScrollOffsetChange,k=void 0===b?Te:b,C=n.onInitialScrollOffsetChange,O=void 0===C?Te:C,w=t.payload,E=w.element,S=w.hint,D=e.autoScrollDirection,x=e.scrollableParent,I=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(I.type){case ce.POINTER_DOWN:if(I.type===ce.POINTER_DOWN&&(!I.originalEvent.isPrimary||0!==I.originalEvent.button))break;case ce.MOUSE_DOWN:if(I.type===ce.MOUSE_DOWN&&I.originalEvent.which&&I.originalEvent.which>1||e.ignoreMouse)break;case ce.TOUCH_START:if(I.type===ce.TOUCH_START&&1!==I.originalEvent.touches.length)break;case ce.START:var T=x||Ie(t.payload.element);O(T instanceof Window?{x:T.scrollX,y:T.scrollY}:{x:T.scrollLeft,y:T.scrollTop}),y({x:I.clientX,y:I.clientY}),v({x:I.pageX,y:I.pageY}),h({x:I.offsetX,y:I.offsetY}),l(!0),w.onPress&&w.onPress(I);break;case ce.SCROLL:if(I.type===ce.SCROLL&&!e.pressed)break;var _=x||Ie(E),P=_ instanceof Window?{x:_.scrollX,y:_.scrollY}:{x:_.scrollLeft,y:_.scrollTop};I.scrollX=P.x-e.initialScrollOffset.x,I.scrollY=P.y-e.initialScrollOffset.y,k({x:I.scrollX,y:I.scrollY});case ce.POINTER_MOVE:if(I.type===ce.POINTER_MOVE&&!I.originalEvent.isPrimary)break;case ce.MOUSE_MOVE:case ce.TOUCH_MOVE:if(I.type===ce.TOUCH_MOVE&&1!==I.originalEvent.touches.length)break;case ce.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==I.originalEvent.type&&E){var N=Se(E),M=x||Ie(N.elementFromPoint(I.clientX,I.clientY)),R=function(e,t,n){var r={x:0,y:0};return e-n.left<50?r.x=-(50-(e-n.left)):n.right-e<50&&(r.x=50-(n.right-e)),t-n.top<50?r.y=-(50-(t-n.top)):n.bottom-t<50&&(r.y=50-(n.bottom-t)),r}(I.pageX,I.pageY,function(e,t){var n=De(e);if(e===n)return{top:n.scrollTop,left:n.scrollLeft,bottom:n.scrollTop+t.innerHeight,right:n.scrollLeft+t.innerWidth};var r=e.getBoundingClientRect();return{bottom:r.top+r.height,right:r.left+r.width,left:r.left,top:r.top}}(M,function(e){var t=Se(e);return t&&t.defaultView||window}(E)));p({x:D&&!1===D.horizontal?0:R.x,y:D&&!1===D.vertical?0:R.y}),c(0!==R.y||0!==R.x)}!e.drag&&w.onDragStart&&w.onDragStart(I),w.onDrag&&w.onDrag(I);var j=we(S||E,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(S||E)}))),F=e.drops.find((function(e){return e.element===j}));F&&j&&(r=I.clientX,o=I.clientY,i=x||Ie(j),(a=i.getBoundingClientRect()).top<=o&&a.left<=r&&o<=a.bottom&&r<=a.right)&&j!==E?(e.drop&&e.drop.element)!==j?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(I),F.onDragEnter&&F.onDragEnter(I)):F.onDragOver&&F.onDragOver(I):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(I)}y({x:I.clientX,y:I.clientY}),v({x:I.pageX,y:I.pageY});break;case ce.POINTER_UP:if(I.type===ce.POINTER_UP&&!I.originalEvent.isPrimary)break;case ce.MOUSE_UP:case ce.TOUCH_END:if(I.type===ce.TOUCH_END&&1!==I.originalEvent.touches.length)break;case ce.END:l(!1),c(!1),w.onRelease&&w.onRelease(I),e.drop&&e.drop.onDrop&&e.drop.onDrop(I),w.onDragEnd&&w.onDragEnd(I);break;case ce.POINTER_CANCEL:case ce.CONTEXT_MENU:case ce.TOUCH_CANCEL:case ce.CANCEL:l(!1),c(!1),w.onDragEnd&&w.onDragEnd(I),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(I)}},Pe=function(e,t){if(e){var n,r;e===De(e)?(n=document.body.scrollHeight>window.innerHeight,r=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,r=e.offsetWidth<=e.scrollWidth);var o=e.scrollTop+t.y,i=n&&o>0&&o<e.scrollHeight,a=e.scrollLeft+t.x,s=r&&a>0&&a<e.scrollWidth;i?e.scrollTop+=t.y:n&&o<0&&(e.scrollTop=0),s?e.scrollLeft+=t.x:r&&a<0&&(e.scrollLeft=0)}},Ne=function(e,t){var n=r.useContext(e),o=n[0],i=n[1],a=r.useState(t),s=a[0],l=a[1];return[void 0!==o?o:s,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==o?i.apply(void 0,e):l(e[0])}]},Me=r.createContext([void 0,S]),Re=r.createContext([void 0,S]),je=r.createContext([[],S,S]),Fe=r.createContext([[],S,S]);function Ae(e,t,n){void 0===n&&(n={});var o=t.onPress,i=void 0===o?S:o,a=t.onRelease,s=void 0===a?S:a,l=t.onDragStart,u=void 0===l?S:l,c=t.onDrag,d=void 0===c?S:c,p=t.onDragEnd,f=void 0===p?S:p,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,C=void 0===k?null:k,O=r.useState(!1),w=O[0],E=O[1],D=r.useState(!1),x=D[0],I=D[1],T=Ne(Re)[0],_=Ne(Me),P=_[0],N=_[1],M=r.useContext(Fe)[0],R=r.useContext(je),j=R[0],F=R[1],A=R[2],L=r.useRef({x:0,y:0}),V=r.useRef(),B=r.useRef(!1),z=r.useRef(),H=r.useRef(!1),U=r.useRef({x:0,y:0}),K=r.useRef({x:0,y:0}),W=r.useRef({x:0,y:0}),q=r.useRef({x:0,y:0}),Y=r.useRef({x:0,y:0}),G=r.useRef({x:0,y:0}),Z=Boolean(window&&"undefined"!=typeof window&&window.PointerEvent),X=!g&&Z,Q=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),$=r.useCallback((function(){return m&&m.current&&m.current.element?m.current.element:m?m.current:null}),[m]),J=r.useCallback((function(){return C&&C.current&&C.current.element?C.current.element:C?C.current:null}),[C]),ee=r.useCallback((function(){return"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current&&b.boundaryElementRef.current.element?b.boundaryElementRef.current.element:"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current?b.boundaryElementRef.current:null}),[b]),te=r.useRef(null);r.useImperativeHandle(te,(function(){return{element:Q(),hint:$(),onPress:he,onDragStart:ve,onDrag:ge,onDragEnd:ye,onRelease:me,data:e.current}}));var ne=r.useCallback((function(){var e=Q();return e&&e.ownerDocument||document}),[Q]),re=r.useCallback((function(){var e=ne();return e&&e.defaultView||window}),[ne]),oe=r.useCallback((function(){return{drag:P?P.current:null,drop:T?T.current:null,drags:j.map((function(e){return e.current})),drops:M.map((function(e){return e.current})),pressed:w,ignoreMouse:B.current,scrollOffset:Y.current,offset:U.current,pageOffset:K.current,initialScrollOffset:G.current,clientOffset:W.current,initialClientOffset:q.current,velocity:L.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:ee(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:x}}),[P,T,j,M,w,b,ee,x]),ie=r.useCallback((function(e){E(e)}),[]),ae=r.useCallback((function(e){I(e)}),[]),se=r.useCallback((function(e){L.current=e}),[]),le=r.useCallback((function(e){U.current=e}),[]),ue=r.useCallback((function(e){W.current=e}),[]),ce=r.useCallback((function(e){K.current=e}),[]),de=r.useCallback((function(e){q.current=e}),[]),pe=r.useCallback((function(e){Y.current=e}),[]),fe=r.useCallback((function(e){G.current=e}),[]),he=r.useCallback((function(e){i(e)}),[i]),me=r.useCallback((function(e){s(e)}),[s]),ve=r.useCallback((function(t){N(te,{target:e.current,event:t}),u(t)}),[N,e,u]),ge=r.useCallback((function(e){d(e)}),[d]),ye=r.useCallback((function(t){H.current||(N(null,{target:e.current,event:t}),f(t))}),[f,N,e]),be=r.useCallback((function(e){_e(oe(),{event:e,payload:te.current},{onVelocityChange:se,onOffsetChange:le,onClientOffsetChange:ue,onPageOffsetChange:ce,onInitialClientOffsetChange:de,onScrollOffsetChange:pe,onInitialScrollOffsetChange:fe,onIsPressedChange:ie,onIsScrollingChange:ae})}),[oe,se,le,ce,ue,de,fe,ie,pe,ae]),ke=r.useCallback((function(e){be(e)}),[be]),Ce=r.useCallback((function(e){be(e)}),[be]),Oe=r.useCallback((function(e){be(e)}),[be]),we=r.useCallback((function(e){be(e)}),[be]),Ee=r.useCallback((function(e){be(e)}),[be]),Se=r.useCallback((function(e){be(e)}),[be]),De=r.useCallback((function(e){be(e)}),[be]),xe=r.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Te=r.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Ae=r.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Le=r.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();B.current=!0,z.current=t.setTimeout((function(){B.current=!1}),2e3)}be(e)}),[be,re]),Ve=r.useCallback((function(e){be(e)}),[be]),Be=r.useCallback((function(){var e=Q();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[Q]),ze=r.useCallback((function(){return F(te),function(){A(te)}}),[A,F]);r.useEffect((function(){var e=re();if(x){var t=J()||Ie(document.elementFromPoint(W.current.x,W.current.y));e.clearInterval(V.current),V.current=e.setInterval((function(){Pe(t,{x:L.current.x,y:L.current.y})}),50)}return function(){e.clearInterval(V.current)}}),[Q,J,re,x]),r.useEffect(Be,[Be]),r.useEffect((function(){var e=re(),t=Q(),n=ne();if(X){if(t)Ie(t).addEventListener("scroll",Ve,{passive:!0}),t.addEventListener("pointerdown",ke,{passive:!0});w&&(n.addEventListener("pointermove",Ce),n.addEventListener("pointerup",we,!0),n.addEventListener("contextmenu",xe),n.addEventListener("pointercancel",Oe,{passive:!0}))}else e.addEventListener("touchmove",S,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",Ee,{passive:!0}),g||(t.addEventListener("touchstart",Te,{passive:!0}),w&&(t.addEventListener("touchmove",Ae,{passive:!0}),t.addEventListener("touchend",Le,{passive:!0})))),w&&(n.addEventListener("mousemove",Se,{passive:!0}),n.addEventListener("mouseup",De,{passive:!0}));return function(){if(t){var r=Ie(t);r&&r.removeEventListener("scroll",Ve),t.removeEventListener("pointerdown",ke),t.removeEventListener("mousedown",Ee),t.removeEventListener("touchstart",Te),t.removeEventListener("touchmove",Ae),t.removeEventListener("touchend",Le)}n.removeEventListener("pointermove",Ce),n.removeEventListener("pointerup",we,!0),n.removeEventListener("contextmenu",xe),n.removeEventListener("pointercancel",Oe),n.removeEventListener("mousemove",Se),n.removeEventListener("mouseup",De),e.removeEventListener("touchmove",S),e.clearTimeout(z.current)}}),[w,re,Q,ne,g,X,xe,Ee,Se,De,Oe,ke,Ce,we,Le,Ae,Te,Ve]),r.useEffect((function(){return function(){H.current=!0}}),[]),r.useLayoutEffect(ze,[ze])}function Le(e,t){void 0===t&&(t={onDragEnter:S,onDragOver:S,onDragLeave:S,onDrop:S});var n=t.onDragEnter,o=void 0===n?S:n,i=t.onDragOver,a=void 0===i?S:i,s=t.onDragLeave,l=void 0===s?S:s,u=t.onDrop,c=void 0===u?S:u,d=Ne(Re)[1],p=r.useContext(Fe),f=p[1],h=p[2],m=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),v=r.useRef(null);r.useImperativeHandle(v,(function(){return{element:m(),onDragEnter:g,onDragOver:y,onDragLeave:b,onDrop:k,data:e.current}}));var g=r.useCallback((function(t){d(v,{target:e.current,event:t}),o(t)}),[d,e,o]),y=r.useCallback((function(e){a(e)}),[a]),b=r.useCallback((function(t){d(null,{target:e.current,event:t}),l(t)}),[d,e,l]),k=r.useCallback((function(t){d(null,{target:e.current,event:t}),c(t)}),[d,e,c]),C=r.useCallback((function(){return f(v),function(){h(v)}}),[h,f]);r.useLayoutEffect(C,[C])}var Ve=function(){return(Ve=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Be=function(e,t,n){var o=r.useState(t||e),i=o[0],a=o[1];return[void 0!==t?t:i,r.useCallback((function(e,t){a(e),n&&n.call(void 0,Ve({},t,{value:e}))}),[n,a])]},ze=function(e){var t=Be(null,void 0),n=t[0],o=t[1],i=Be(null,void 0),a=i[0],s=i[1],l=J([]),u=l[0],c=l[1],d=J([]),p=d[0],f=d[1];return r.createElement(Me.Provider,{value:[n,o]},r.createElement(Re.Provider,{value:[a,s]},r.createElement(je.Provider,{value:[u,function(e){c({type:X.add,item:e})},function(e){c({type:X.remove,item:e})}]},r.createElement(Fe.Provider,{value:[p,function(e){f({type:X.add,item:e})},function(e){f({type:X.remove,item:e})}]},e.children))))};ze.displayName="KendoReactDragAndDrop";var He=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null),i=r.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);r.useImperativeHandle(o,(function(){return{element:i()||null}})),r.useImperativeHandle(t,(function(){return o.current})),r.useImperativeHandle(e.childRef,(function(){return n.current}));var a=r.useCallback((function(t){e.onPress&&e.onPress({element:i(),target:o.current,event:t})}),[i,e.onPress]),s=r.useCallback((function(t){e.onRelease&&e.onRelease({element:i(),target:o.current,event:t})}),[i,e.onRelease]),l=r.useCallback((function(t){e.onDragStart&&e.onDragStart({element:i(),target:o.current,event:t})}),[e,i]),u=r.useCallback((function(t){e.onDrag&&e.onDrag({element:i(),target:o.current,event:t})}),[i,e.onDrag]),c=r.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:i(),target:o.current,event:t})}),[i,e.onDragEnd]);return Ae(n,{onPress:a,onRelease:s,onDragStart:l,onDrag:u,onDragEnd:c},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null}));He.displayName="KendoReactDraggable";var Ue=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null),i=r.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);r.useImperativeHandle(o,(function(){return{element:i()||void 0}})),r.useImperativeHandle(t,(function(){return o.current})),r.useImperativeHandle(e.childRef,(function(){return n.current}));var a=r.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:i(),target:o.current,event:t})}),[e.onDragEnter,i]),s=r.useCallback((function(t){e.onDragOver&&e.onDragOver({element:i(),target:o.current,event:t})}),[i,e.onDragOver]),l=r.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:i(),target:o.current,event:t})}),[e.onDragLeave,i]),u=r.useCallback((function(t){e.onDrop&&e.onDrop({element:i(),target:o.current,event:t})}),[e.onDrop,i]);return Le(n,{onDragEnter:a,onDragOver:s,onDragLeave:l,onDrop:u}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null}));Ue.displayName="KendoReactDroppable"},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t,n){"use strict";n.r(t),n.d(t,"Toolbar",(function(){return B})),n.d(t,"ToolbarItem",(function(){return H})),n.d(t,"ToolbarSeparator",(function(){return K})),n.d(t,"ToolbarSpacer",(function(){return W})),n.d(t,"Button",(function(){return m})),n.d(t,"ButtonGroup",(function(){return b})),n.d(t,"SplitButton",(function(){return N})),n.d(t,"SplitButtonItem",(function(){return w})),n.d(t,"DropDownButton",(function(){return A})),n.d(t,"DropDownButtonItem",(function(){return R})),n.d(t,"Chip",(function(){return ie})),n.d(t,"ChipList",(function(){return te})),n.d(t,"FloatingActionButton",(function(){return ye})),n.d(t,"FloatingActionButtonItem",(function(){return ce}));var r,o=n(0),i=n(1),a=n(2),s={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639558078,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},l=':not(.k-state-disabled):not([disabled]):not([disabled="true"])',u=["button"+l,".k-button-group > button"+l,".k-dropdown > .k-dropdown-wrap"+l,".k-colorpicker > .k-picker-wrap"+l],c={button:"k-button",flat:"k-flat",outline:"k-outline",clear:"k-button-clear",primary:"k-primary","state-selected":"k-state-selected","button-icon":"k-button-icon","button-icontext":"k-button-icontext","state-disabled":"k-state-disabled","group-start":"k-group-start","group-end":"k-group-end","button-group":"k-button-group","button-group-stretched":"k-button-group-stretched",ltr:"k-ltr",rtl:"k-rtl"},d=(r=function(e,t){return(r=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}r(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,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},h=c;var m=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,n.handleClick=function(e){n.toggleIfApplicable(),n.props.onClick&&n.props.onClick.call(void 0,e)},Object(a.validatePackage)(s),n.state={selected:!0===n.props.togglable&&!0===n.props.selected},n}return d(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return void 0!==this._selectedTemp?this._selectedTemp:this.state.selected},enumerable:!0,configurable:!0}),t.getDerivedStateFromProps=function(e,t){return e.togglable&&void 0!==e.selected&&e.selected!==t.selected?{selected:e.selected}:null},t.prototype.render=function(){var e,t=this,n=this.props,r=n.children,i=n.look,s=n.primary,l=n.togglable,u=n.icon,c=n.iconClass,d=n.imageUrl,m=n.imageAlt,v=n.className,g=(n.onClick,f(n,["children","look","primary","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick"])),y=void 0!==u||void 0!==c||void 0!==d,b=void 0!==r,k={className:Object(a.classNames)([h.button],((e={})[h[""+i]]="default"!==i,e[h.primary]=s,e[h["state-disabled"]]=this.props.disabled,e[h["state-selected"]]=this.state.selected,e[h["button-icon"]]=!b&&y,e[h["button-icontext"]]=b&&y,e),[h[""+this.props.dir]],v),onClick:this.handleClick,role:l?"checkbox":void 0,"aria-disabled":this.props.disabled||void 0,"aria-checked":l?this.state.selected:void 0},C=function(e){var t=e.imageUrl,n=e.icon,r=e.iconClass,i=e.imageAlt;if(t)return o.createElement("img",{role:"presentation",className:"k-image",alt:i,src:t});if(n){var s=Object(a.classNames)("k-icon","k-i-"+n);return o.createElement("span",{role:"presentation",className:s})}return r?o.createElement("span",{role:"presentation",className:r}):null}({icon:u,iconClass:c,imageUrl:d,imageAlt:m});return o.createElement("button",p({},k,g,{ref:function(e){return t._element=e}}),C,r)},t.prototype.toggleIfApplicable=function(){var e=this;if(this.props.togglable&&void 0===this.props.selected){var t=!this.state.selected;this._selectedTemp=t,this.setState({selected:t},(function(){return e._selectedTemp=void 0}))}},t.propTypes={children:i.node,look:i.oneOf(["default","flat","outline","clear"]),primary:i.bool,selected:i.bool,togglable:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,imageAlt:i.string},t.defaultProps={look:"default",primary:!1,togglable:!1},t}(o.Component),v=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g=function(){return(g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},y=c,b=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,Object(a.validatePackage)(s),n}return v(t,e),t.prototype.render=function(){var e,t=this,n=this.mapButtons(this.props.children),r=Object(a.classNames)([y["button-group"]],((e={})[y["state-disabled"]]=this.props.disabled,e[y["button-group-stretched"]]=!!this.props.width,e),this.props.className),i={className:r,style:{width:""+this.props.width},dir:this.props.dir,role:"group","aria-disabled":this.props.disabled};return o.createElement("div",g({ref:function(e){t._element=e}},i,{className:r}),n)},t.prototype.mapButtons=function(e){var t=this,n=o.Children.count(e),r=void 0!==this.props.dir?"rtl"===this.props.dir:this._element&&"rtl"===getComputedStyle(this._element).direction||!1;return o.Children.map(e,(function(e,i){return o.isValidElement(e)?t.renderButton(e,i,i===n-1,r):e}))},t.prototype.renderButton=function(e,t,n,r){var i,s=Object(a.classNames)(e.props.className,((i={})[y["group-start"]]=r?n:0===t,i[y["group-end"]]=r?0===t:n,i)),l=g({},this.props.width?{width:this.props.width}:{},e.props.style||{}),u=this.props.disabled||e.props.disabled,c=g({},e.props,s?{className:s}:{},Object.keys(l).length?{style:l}:{},void 0!==u?{disabled:u}:{});return o.Children.count(e.props.children)>0?o.cloneElement(e,c,e.props.children):o.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}(o.Component),k=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onClick=function(e){return t.props.onClick(e,t.props.index)},t}return k(t,e),t.prototype.render=function(){var e=this.props,t=e.dataItem,n=e.focused,r=e.id,i=e.onDown,s=e.render,l=o.createElement("li",{id:r,className:Object(a.classNames)("k-item",{"k-state-focused":n,"k-state-selected":t.selected,"k-state-disabled":t.disabled}),onClick:this.onClick,onMouseDown:i,onPointerDown:i,role:"menuItem","aria-disabled":t.disabled||void 0},this.renderContent());return void 0!==this.props.item&&void 0!==s?s.call(void 0,l,this.props):l},t.prototype.renderContent=function(){var e=this.props,t=e.dataItem,n=e.textField,r=e.index,i=this.props.dataItem.render||this.props.item||(void 0===this.props.item?this.props.render:null),a=void 0!==t.text?t.text:n?t[n]:t,s=t.icon?"k-icon k-i-"+t.icon:t.iconClass;return i&&o.createElement(i,{item:t,itemIndex:r})||[s&&o.createElement("span",{className:s,role:"presentation",key:"icon"}),t.imageUrl&&o.createElement("img",{className:"k-image",alt:"",src:t.imageUrl,role:"presentation",key:"image"}),a]},t}(o.Component),O=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype.render=function(){return null},t.propTypes={text:i.string,icon:i.string,iconClass:i.string,imageUrl:i.string,disabled:i.bool,render:i.any},t}(o.Component),E=function(e,t,n,r){if(n)return e;switch(t){case a.Keys.enter:case a.Keys.space:case a.Keys.esc:return-1;case a.Keys.up:case a.Keys.left:return Math.max(0,e-1);case a.Keys.down:case a.Keys.right:return Math.min(r-1,e+1);default:return e}},S=n(9);function D(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function x(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}var I,T,_=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),P=c,N=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(a.guid)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==a.Keys.down?n.opened&&e.keyCode===a.Keys.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var r=void 0;if(e.keyCode===a.Keys.enter||e.keyCode===a.Keys.space?(e.preventDefault(),n.dispatchClickEvent(e,t),t>=0&&(r={focusedIndex:n.opened?-1:0,opened:!n.opened},n.dispatchPopupEvent(e,r.opened))):n.opened&&e.keyCode===a.Keys.esc&&(r={focusedIndex:-1,opened:!1},n.dispatchPopupEvent(e,r.opened)),n.opened){var o=E(t,e.keyCode,e.altKey,n.buttonsData.length);o!==t&&((r=r||{}).focusedIndex=o);var i=e.keyCode===a.Keys.up||e.keyCode===a.Keys.down||e.keyCode===a.Keys.left||e.keyCode===a.Keys.right;!e.altKey&&i&&e.preventDefault()}r&&n.setState(r)}},n.onFocus=function(e){Object(a.dispatchEvent)(n.props.onFocus,e,n,void 0),n.setState({focused:!0,focusedIndex:-1})},n.onItemClick=function(e,t){var r=n.opened;r&&n.setState({focusedIndex:0,opened:!1}),n.dispatchClickEvent(e,t),r&&n.dispatchPopupEvent(e,!1)},n.onBlur=function(e){n.setState({focused:!1,focusedIndex:-1,opened:!1}),Object(a.dispatchEvent)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!1)},n.onSplitPartClick=function(e){if(n.buttonsData.length){var t=!n.opened;n.dispatchPopupEvent(e,t),n.setState({focusedIndex:t?0:-1,opened:t,focused:!0})}},n.onDownSplitPart=function(e){e.preventDefault(),n.element&&document.activeElement!==n.element&&n.element.focus()},n.onItemDown=function(e){document.activeElement===n.element&&e.preventDefault()},n.dispatchPopupEvent=function(e,t){Object(a.dispatchEvent)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(a.validatePackage)(s),n}return _(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||o.Children.toArray(this.props.children).filter((function(e){return e&&e.type===w})).map((function(e){return e.props}));var t=this.isRtl(),n=t?"rtl":void 0,r=this.props,i=r.tabIndex,s=r.disabled,l=this.state.focusedIndex;return o.createElement("div",{className:Object(a.classNames)("k-widget","k-split-button","k-button-group",[P[""+this.props.look]],{"k-state-focused":this.state.focused},this.props.className),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},o.createElement(m,{onClick:function(t){return e.onItemClick(t,-1)},disabled:s||void 0,tabIndex:i,accessKey:this.props.accessKey,className:this.props.buttonClass,icon:this.props.icon,iconClass:this.props.iconClass,imageUrl:this.props.imageUrl,look:this.props.look,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-disabled":s,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":this.props.text+" splitbutton","aria-owns":this.guid,"aria-activedescendant":l>=0?this.guid+"-"+l:void 0},this.props.text),o.createElement(m,{icon:"arrow-s",disabled:s||void 0,tabIndex:-1,look:this.props.look,onClick:this.onSplitPartClick,onMouseDown:this.onDownSplitPart,onPointerDown:this.onDownSplitPart,dir:n,"aria-label":"menu toggling button"}),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!0,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(-1===t?Object(a.dispatchEvent)(this.props.onButtonClick,e,this,void 0):Object(a.dispatchEvent)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t}))},t.prototype.renderPopup=function(e){var t=this.props.popupSettings,n=void 0===t?{}:t;return o.createElement(S.a,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(a.classNames)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||D(e),popupAlign:n.popupAlign||x(e),style:e?{direction:"rtl"}:void 0},o.createElement("ul",{className:"k-list k-reset",role:"menu",id:this.guid},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,r=t.itemRender,i=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return o.createElement(C,{dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:r,item:n,key:a,index:a,id:e.guid+"-"+a})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:i.string,onButtonClick:i.func,onFocus:i.func,onBlur:i.func,onItemClick:i.func,onOpen:i.func,onClose:i.func,text:i.string,items:i.arrayOf(i.any),textField:i.string,tabIndex:i.number,disabled:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,popupSettings:i.object,itemRender:i.any,item:i.func,look:i.string,className:i.string,buttonClass:i.string,dir:i.string},t}(o.Component),M=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(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}(o.Component),j=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),F=function(){return(F=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},A=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(a.guid)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==a.Keys.down?n.opened&&e.keyCode===a.Keys.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var r=F({},n.state);if(e.keyCode===a.Keys.enter||e.keyCode===a.Keys.space?(t>=0&&n.dispatchClickEvent(e,t),e.preventDefault(),r.focusedIndex=n.opened?-1:0,r.opened=!n.opened,n.dispatchPopupEvent(e,r.opened)):n.opened&&e.keyCode===a.Keys.esc&&(r.focusedIndex=-1,r.opened=!1,n.dispatchPopupEvent(e,r.opened)),n.opened){var o=E(t,e.keyCode,e.altKey,n.buttonsData.length);r.focusedIndex=o;var i=e.keyCode===a.Keys.up||e.keyCode===a.Keys.down||e.keyCode===a.Keys.left||e.keyCode===a.Keys.right;!e.altKey&&i&&e.preventDefault()}n.setState(r)}},n.onFocus=function(e){n.setState({focused:!0,focusedIndex:n.opened?0:-1}),Object(a.dispatchEvent)(n.props.onFocus,e,n,void 0)},n.onBlur=function(e){n.setState({focused:!1,opened:!1,focusedIndex:-1}),Object(a.dispatchEvent)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!1)},n.onItemClick=function(e,t){n.setState({focusedIndex:-1,opened:!1}),n.dispatchClickEvent(e,t),n.dispatchPopupEvent(e,!1)},n.onItemDown=function(e){document.activeElement===n.element&&e.preventDefault()},n.mouseDown=function(e){e.preventDefault()},n.onClickMainButton=function(e){if(n.buttonsData.length){var t=!n.opened;n.setState({opened:t,focused:!0,focusedIndex:t?0:-1}),n.dispatchPopupEvent(e,t)}},n.dispatchPopupEvent=function(e,t){Object(a.dispatchEvent)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(a.validatePackage)(s),n}return j(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,r=this.props,i=r.tabIndex,s=r.disabled,l=this.state.focusedIndex;return this.buttonsData=this.props.items||o.Children.toArray(this.props.children).filter((function(e){return e&&e.type===R})).map((function(e){return e.props})),o.createElement("div",{className:Object(a.classNames)("k-widget","k-dropdown-button",this.props.className,{"k-state-focused":this.state.focused}),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},o.createElement(m,{onClick:this.onClickMainButton,onMouseDown:this.mouseDown,disabled:s||void 0,tabIndex:i,accessKey:this.props.accessKey,icon:this.props.icon,iconClass:this.props.iconClass,className:this.props.buttonClass,imageUrl:this.props.imageUrl,look:this.props.look,primary:this.props.primary,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-disabled":s,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":this.props.text+" dropdownbutton","aria-owns":this.guid,"aria-activedescendant":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(a.dispatchEvent)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t})},t.prototype.renderPopup=function(e){var t=this.props.popupSettings,n=void 0===t?{}:t;return o.createElement(S.a,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(a.classNames)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||D(e),popupAlign:n.popupAlign||x(e),style:e?{direction:"rtl"}:void 0},o.createElement("ul",{className:"k-list k-reset",role:"menu",id:this.guid},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,r=t.itemRender,i=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return o.createElement(C,{dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:r,item:n,index:a,key:a,id:e.guid+"-"+a})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:i.string,primary:i.bool,onFocus:i.func,onBlur:i.func,onItemClick:i.func,onOpen:i.func,onClose:i.func,items:i.arrayOf(i.any),textField:i.string,tabIndex:i.number,disabled:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,popupSettings:i.object,itemRender:i.func,item:i.func,look:i.string,className:i.string,buttonClass:i.string,dir:i.string},t}(o.Component),L=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),V=function(){return(V=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},B=function(e){function t(n){var r=e.call(this,n)||this;return r._element=null,r.offsetHeight=0,r.offsetWidth=0,r.buttons=[],r.focusedSelector=r.selectors.map((function(e){return e+":focus"})).join(","),r.setTabIndex=function(e){var n=r.props.tabIndex,o=void 0===n?t.defaultProps.tabIndex:n;r.buttons.forEach((function(t,n){t.tabIndex=n===e?o:-1}))},r.onKeyDown=function(e){var t=e.target;if((e.keyCode===a.Keys.left||e.keyCode===a.Keys.right)&&!e.defaultPrevented&&-1!==r.buttons.findIndex((function(e){return e===t}))){var n=r.focusedIndex;e.keyCode===a.Keys.left?r.focusButton(n,n-1):r.focusButton(n,n+1)}},r.onWindowResize=function(e){var t=r.element;if(t){var n=t.offsetWidth,o=t.offsetHeight;if(r.offsetWidth!==n||r.offsetHeight!==o){r.offsetWidth=n,r.offsetHeight=o;var i={offsetWidth:r.offsetWidth,offsetHeight:r.offsetHeight};r.props.onResize&&r.props.onResize.call(void 0,V({target:r},i,{nativeEvent:e}))}}},Object(a.validatePackage)(s),r}return L(t,e),Object.defineProperty(t.prototype,"selectors",{get:function(){return this.props.buttons||u},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusedIndex",{get:function(){var e=this.element&&this.element.querySelector(this.focusedSelector);return Math.max(0,this.buttons.findIndex((function(t){return t===e})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.onWindowResize);var e=this.element;e&&(this.offsetWidth=e.offsetWidth,this.offsetHeight=e.offsetHeight,!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(0)))},t.prototype.componentDidUpdate=function(){var e=this.element;e&&!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(this.focusedIndex))},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onWindowResize),this.buttons.length=0},t.prototype.render=function(){var e=this;return o.createElement("div",{className:Object(a.classNames)("k-widget k-toolbar",this.props.className),style:this.props.style,role:"toolbar",dir:this.props.dir,ref:function(t){return e._element=t},onKeyDown:!1!==this.props.keyboardNavigation?this.onKeyDown:void 0},this.props.children)},t.prototype.focusButton=function(e,n){var r=this.props.tabIndex,o=void 0===r?t.defaultProps.tabIndex:r,i=this.buttons[n];if(i){i.tabIndex=o,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}(o.Component),z=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),H=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return z(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;return o.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}(o.PureComponent),U=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),K=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return U(t,e),t.prototype.render=function(){return o.createElement(H,{className:"k-separator"})},t}(o.PureComponent),W=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null);o.useImperativeHandle(r,(function(){return{element:n.current}})),o.useImperativeHandle(t,(function(){return{element:n.current}}));var i=o.useMemo((function(){return Object(a.classNames)("k-spacer",e.className)}),[e.className]);return o.createElement("span",{ref:n,className:i})}));W.propTypes={className:i.string},function(e){e.single="single",e.multiple="multiple",e.none="none"}(I||(I={})),function(e){e.toggle="toggle",e.remove="remove"}(T||(T={}));var q;!function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(q||(q={}));var Y;!function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(Y||(Y={}));var G=function(){return(G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Z=o.createContext([null,function(e){}]),X=o.createContext([null,function(e){}]),Q=o.createContext([null,function(e){}]),$=function(e,t,n){var r=o.useState(e),i=r[0],a=r[1];return[i,function(e){var r=function(e,t){switch(t.selection){case I.single:switch(t.type){case T.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 T.remove:return t.payload===e?null:e;default:return e}case I.multiple:switch(t.type){case T.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 T.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 I.none:return null;default:return e}}(t.state||i,G({},e,t));n&&n(r,e.event),a(r)}]},J=function(e){var t=o.useState(null),n=t[0],r=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 q.next:return n===t.items.length-1?e:t.items[n+1];case q.prev:return 0===n?e:t.items[n-1];case q.current:return t.payload;case q.reset:return null;default:return e}}(t.payload,G({},t,e));r(n)}]},ee=function(e,t,n){var r=o.useState(e),i=r[0],a=r[1];return[i,function(e){var r=function(e,t){switch(t.type){case Y.add:break;case Y.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case Y.reorder:break;default:return e}}(t.state||i,G({},e,t));n&&n(r,e.event),a(r)}]},te=o.forwardRef((function(e,t){Object(a.validatePackage)(s);var n=o.useRef(null),r=o.useRef(null),i=Object(a.useDir)(r,e.dir),l=o.useMemo((function(){return e.chip||ie}),[e.chip,ie]),u=o.useMemo((function(){return e.selection||re.selection}),[e.selection,re.selection]);o.useImperativeHandle(n,(function(){return{element:r.current,props:e}})),o.useImperativeHandle(t,(function(){return n.current}));var c=o.useCallback((function(t,r){e.onChange&&n.current&&e.onChange.call(void 0,{value:t,target:n.current,syntheticEvent:r})}),[e.onChange]),d=$(e.value||e.defaultValue,{selection:u,state:e.value},c),p=d[0],f=d[1],h=o.useCallback((function(t,r){e.onDataChange&&n.current&&e.onDataChange.call(void 0,{value:t,target:n.current,syntheticEvent:r})}),[e.onDataChange]),m=ee(e.data||e.defaultData||re.defaultData,{state:e.data,valueField:e.valueField||re.valueField},h),v=m[0],g=m[1],y=o.useCallback((function(t,n){return t.push(n[e.valueField||re.valueField]),t}),[e.valueField,re.valueField]),b=o.useMemo((function(){return e.data||v}),[e.data,v]),k=o.useMemo((function(){return e.value||p}),[e.value,p]),C=o.useMemo((function(){return b.reduce(y,[])}),[b,y]),O=J({items:C}),w=O[0],E=O[1],S=Object(a.useMouse)(e,n);return o.createElement(Z.Provider,{value:[k,f]},o.createElement(X.Provider,{value:[w,E]},o.createElement(Q.Provider,{value:[b,g]},o.createElement("div",G({ref:r},S,{role:"listbox",id:e.id,dir:i,style:e.style,tabIndex:Object(a.getTabIndex)(e.tabIndex,e.disabled,void 0),className:Object(a.classNames)("k-chip-list",{"k-rtl":"rtl"===i,"k-selection-single":"single"===u,"k-selection-multiple":"multiple"===u,"k-state-disabled":e.disabled},e.className),"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}),b.map((function(t){return o.createElement(l,{role:"option",dataItem:t,key:Object(a.getter)(e.valueField||re.valueField)(t),text:Object(a.getter)(e.textField||re.textField)(t),value:Object(a.getter)(e.valueField||re.valueField)(t)})}))))))})),ne={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},re={chip:ie,disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};te.displayName="KendoReactChipList",te.propTypes=ne,te.defaultProps=re;var oe=function(){return(oe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ie=o.forwardRef((function(e,t){Object(a.validatePackage)(s);var n=o.useRef(null),r=o.useRef(null),i=Object(a.useDir)(r,e.dir);o.useImperativeHandle(n,(function(){return{element:r.current,props:e}})),o.useImperativeHandle(t,(function(){return n.current}));var l=o.useContext(Z),u=l[0],c=l[1],d=o.useContext(X),p=d[0],f=d[1],h=o.useContext(Q)[1],m=o.useMemo((function(){return e.selected||(Array.isArray(u)?u.some((function(t){return t===e.value})):u===e.value)}),[e.selected,e.value,u]),v=o.useMemo((function(){return p===e.value}),[e.value,p]),g=o.useMemo((function(){return e.look||se.look}),[e.look]);o.useEffect((function(){v&&r.current&&r.current.focus()}),[v]);var y=o.useCallback((function(t){c({type:T.toggle,payload:e.value,event:t})}),[e.onClick,c,e.value]),b=o.useCallback((function(t){e.removable&&(h({type:Y.remove,payload:e.value,event:t}),f({type:q.reset,payload:e.value,event:t}),c({type:T.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:n.current,syntheticEvent:t}))}),[e.onRemove,e.removable,h,f,c]),k=o.useCallback((function(t){switch(t.keyCode){case a.Keys.left:f({type:q.prev,payload:e.value,event:t});break;case a.Keys.right:f({type:q.next,payload:e.value,event:t});break;case a.Keys.enter:c({type:T.toggle,payload:e.value,event:t});break;case a.Keys.delete:b(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown,f,c,b]),C=o.useCallback((function(t){f({payload:e.value,type:q.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus,f]),O=o.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),w=Object(a.useMouse)(e,n,{onClick:y});return o.createElement("div",oe({},w,{role:e.role,id:e.value,style:e.style,ref:r,dir:i,tabIndex:Object(a.getTabIndex)(e.tabIndex,e.disabled,void 0),className:Object(a.classNames)("k-chip",{"k-rtl":"rtl"===i,"k-state-disabled":e.disabled,"k-state-selected":m,"k-state-focus":v,"k-chip-success":"success"===e.type,"k-chip-warning":"warning"===e.type,"k-chip-error":"error"===e.type,"k-chip-info":"info"===e.type,"k-chip-has-icon":e.icon,"k-chip-outline":"outline"===g||"outlined"===g,"k-chip-solid":"solid"===g||"filled"===g},e.className),"aria-checked":m,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:C,onBlur:O,onKeyDown:k}),m&&o.createElement("span",{className:"k-selected-icon-wrapper"},o.createElement("span",{className:"k-selected-icon k-icon "+(e.selectedIcon||se.selectedIcon)})),e.icon&&o.createElement("span",{className:"k-icon k-chip-icon "+e.icon}),o.createElement("span",{className:"k-chip-content"},void 0!==e.children?e.children:e.text&&o.createElement("span",{"aria-label":e.text,className:"k-chip-label"},e.text)),e.removable&&o.createElement("span",{className:"k-remove-icon",onClick:b},o.createElement("span",{className:"k-icon "+e.removeIcon})))})),ae={id:i.string,text:i.string,value:i.any,type:i.oneOf(["none","success","warning","error","info"]),dir:i.oneOf(["ltr","rtl"]),removable:i.bool,removeIcon:i.string,disabled:i.bool,icon:i.string,selectedIcon:i.string,look:i.string,onRemove:i.func,dataItem:i.any,selected:i.bool,ariaDescribedBy:i.string},se={disabled:!1,removable:!1,selectedIcon:"k-i-check",look:"solid",removeIcon:"k-i-close-circle",dir:"ltr"};ie.displayName="KendoReactChip",ie.propTypes=ae,ie.defaultProps=se;var le=function(){return(le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ce=o.forwardRef((function(e,t){var n=e.className,r=e.disabled,i=e.text,s=e.icon,l=e.style,u=e.id,c=e.focused,d=e.tabIndex,p=e.index,f=e.dataItem,h=e.item,m=e.onDown,v=e.onClick,g=ue(e,["className","disabled","text","icon","style","id","focused","tabIndex","index","dataItem","item","onDown","onClick"]),y=o.useRef(null),b=o.useCallback((function(){y.current&&y.current.focus()}),[]),k=o.useCallback((function(){return{element:y.current,focus:b}}),[b]);o.useImperativeHandle(t,k);var C=o.useCallback((function(e){v&&void 0!==p&&!r&&v(e,p)}),[v,p]),O=o.useMemo((function(){return Object(a.classNames)("k-fab-item",{"k-state-focus":c,"k-state-disabled":r},n)}),[n,r,c]),w=h;return o.createElement("li",le({ref:y,id:u,className:O,style:l,role:"menuitem",tabIndex:Object(a.getTabIndex)(d,r),"aria-disabled":r,"aria-label":(i||"")+" floatingactionbutton item",onClick:C,onMouseDown:m,onPointerDown:m},g),w?o.createElement(w,{itemIndex:p,item:f}):o.createElement(o.Fragment,null,i&&o.createElement("span",{className:"k-fab-item-text"},i),s&&o.createElement("span",{className:Object(a.classNames)("k-fab-item-icon k-icon k-i-"+s)})))}));ce.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},ce.displayName="KendoFloatingActionButtonItem";var de=function(e){return"number"==typeof e?e+"px":e},pe=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},fe=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},he=function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]},me=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},ve=function(){return(ve=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ye=o.forwardRef((function(e,t){Object(a.validatePackage)(s);var n=e.align,r=void 0===n?be.align:n,i=e.alignOffset,l=e.className,u=e.disabled,c=e.icon,d=e.iconClass,p=e.id,f=e.items,h=e.item,m=e.text,v=e.positionMode,g=void 0===v?be.positionMode:v,y=e.shape,b=void 0===y?be.shape:y,k=e.size,C=void 0===k?be.size:k,O=e.style,w=e.themeColor,E=void 0===w?be.themeColor:w,D=e.tabIndex,x=e.accessKey,I=e.popupSettings,T=void 0===I?{}:I,_=e.onClick,P=e.onItemClick,N=e.onFocus,M=e.onBlur,R=e.onKeyDown,j=e.onOpen,F=e.onClose,A=ge(e,["align","alignOffset","className","disabled","icon","iconClass","id","items","item","text","positionMode","shape","size","style","themeColor","tabIndex","accessKey","popupSettings","onClick","onItemClick","onFocus","onBlur","onKeyDown","onOpen","onClose"]),L=o.useRef(null),V=o.useRef(null),B=o.useRef(null),z=o.useRef(null),H=o.useCallback((function(){V.current&&V.current.focus()}),[]),U=o.useCallback((function(){return{element:V.current,focus:H}}),[H]);o.useImperativeHandle(L,U),o.useImperativeHandle(t,(function(){return L.current}));var K=o.useState(!1),W=K[0],q=K[1],Y=o.useState(!1),G=Y[0],Z=Y[1],X=o.useState(-1),Q=X[0],$=X[1],J=o.useMemo((function(){return Object(a.guid)()}),[]),ee=Object(a.useDir)(V,e.dir),te="rtl"===ee,ne=o.useMemo((function(){return Object(a.guid)()}),[]);o.useEffect((function(){!function(e,t,n,r){var o=t.horizontal,i=t.vertical;if(e.current){var a=n&&void 0!==n.x?de(n.x):"16px",s=n&&void 0!==n.x?"calc(50% + "+de(n.x)+")":"50%",l=n&&void 0!==n.y?de(n.y):"16px",u=n&&void 0!==n.y?"calc(50% + "+de(n.y)+")":"50%";e.current.style.setProperty(he(t,r),"center"===o?s:a),e.current.style.setProperty(me(t),"middle"===i?u:l),r&&("top"!==i&&"bottom"!==i||"start"!==o||e.current.style.setProperty("left","unset"),"middle"===i&&"end"===o&&e.current.style.setProperty("right","unset"),"middle"===i&&"start"===o&&e.current.style.setProperty("left","unset"))}}(V,r,i,te)}),[V,r,i,te]),o.useEffect((function(){G&&V&&V.current&&V.current.focus()}),[G,V]);var re=o.useCallback((function(e,t){f&&Object(a.dispatchEvent)(t?j:F,e,U(),void 0)}),[j,F,f]),oe=o.useCallback((function(e){e.target&&!u&&(!f&&_?Object(a.dispatchEvent)(_,e,U(),void 0):(q(!W),Z(!0),$(W?-1:0),re(e,!W)))}),[q,Z,$,_,re,W,f,u]),ie=o.useCallback((function(e){Z(!0),$(W?0:-1),N&&Object(a.dispatchEvent)(N,e,U(),void 0)}),[N,Z,$]),ae=o.useCallback((function(e){Z(!1),q(!1),$(-1),Object(a.dispatchEvent)(M,e,U(),void 0),W&&re(e,!1)}),[M,Z,q,$,re]),se=o.useCallback((function(e){e.preventDefault()}),[]),le=o.useCallback((function(e,t){f&&(f[t].disabled||Object(a.dispatchEvent)(P,e,U(),{itemProps:f[t],itemIndex:t}))}),[P]),ue=o.useCallback((function(e,t){e.target&&f&&($(t),q(!1),le(e,t),re(e,!1))}),[$,q,le,re]),ye=o.useCallback((function(e){document.activeElement===V.current&&e.preventDefault()}),[V,document.activeElement]),ke=o.useCallback((function(e){var t=Q,n=f?f.length-1:-1,o="bottom"===r.vertical;switch(e.keyCode){case a.Keys.enter:case a.Keys.space:t>=0&&le(e,t),e.preventDefault(),q(!W),$(W?-1:0);break;case a.Keys.esc:e.preventDefault(),q(!1),$(-1);break;case a.Keys.home:e.preventDefault(),$(0);break;case a.Keys.end:e.preventDefault(),$(n);break;case a.Keys.down:case a.Keys.right:e.preventDefault(),t<n&&!o&&$(t+1),t>0&&o&&$(t-1);break;case a.Keys.up:case a.Keys.left:e.preventDefault(),t>0&&!o&&$(t-1),t<n&&o&&$(t+1)}Object(a.dispatchEvent)(R,e,U(),void 0)}),[R,Q,$,te,q]),Ce=o.useMemo((function(){return Object(a.classNames)("k-fab","k-fab-"+E,"k-fab-"+b,{"k-fab-sm":"small"===C,"k-fab-md":"medium"===C,"k-fab-lg":"large"===C,"k-state-disabled":u,"k-pos-absolute":"absolute"===g,"k-pos-fixed":"fixed"===g,"k-state-focus":G},"k-"+r.vertical+"-"+r.horizontal,l)}),[E,C,b,u,g,r,G,l]),Oe=f&&f.map((function(e,t){return o.createElement(ce,ve({},e,{key:t,index:t,id:ne+"-"+t,disabled:u||e.disabled,focused:Q===t,dataItem:e,item:h,className:Object(a.classNames)(e.className,(n=ee||"ltr",i=r.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:ue,onDown:ye}));var n,i})),we=c&&!m,Ee=(V.current?V.current.offsetWidth:0)/2-16;return o.createElement(o.Fragment,null,o.createElement("button",ve({ref:V,id:p||J,role:f?"menubutton":"button",type:"button","aria-disabled":u,"aria-expanded":f?W:void 0,"aria-haspopup":!!f,"aria-label":(m||"")+" floatingactionbutton","aria-owns":f?ne:void 0,"aria-activedescendant":Q>=0&&f?ne+"-"+Q:void 0,tabIndex:Object(a.getTabIndex)(D,u),accessKey:x,dir:ee,disabled:u,className:Ce,style:O,onClick:oe,onMouseDown:se,onFocus:ie,onBlur:ae,onKeyDown:ke},A),c?o.createElement("span",{role:"presentation",className:Object(a.classNames)("k-fab-icon k-icon k-i-"+c)}):d?o.createElement("span",{role:"presentation",className:d}):null,m&&o.createElement("span",{className:"k-fab-text"},m)),o.createElement(S.a,{ref:z,anchor:V.current,show:W,animate:T.animate,popupClass:Object(a.classNames)("k-popup-transparent k-fab-popup",T.popupClass),anchorAlign:T.anchorAlign||pe(r,te),popupAlign:T.popupAlign||fe(r,te),style:{boxShadow:"none"}},o.createElement("ul",{ref:B,role:"menu","aria-labelledby":p,id:ne,className:Object(a.classNames)("k-fab-items",{"k-fab-items-bottom":"bottom"!==r.vertical,"k-fab-items-top":"bottom"===r.vertical}),style:{paddingLeft:we?Ee:void 0,paddingRight:we?Ee:void 0}},Oe)))}));ye.propTypes={className:i.string,style:i.object,id:i.string,dir:i.string,tabIndex:i.number,accessKey:i.string,disabled:i.bool,icon:i.string,iconClass:i.string,text:i.string,alignOffset:i.shape({x:i.oneOfType([i.number,i.string]),y:i.oneOfType([i.number,i.string])}),align:i.shape({vertical:i.oneOf(["top","middle","bottom"]),horizontal:i.oneOf(["start","center","end"])}),positionMode:i.oneOf(["absolute","fixed"]),shape:i.oneOf(["rectangle","rounded","pill"]),size:i.oneOf(["small","medium","large"]),themeColor:i.oneOf(["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])};var be={align:{vertical:"bottom",horizontal:"end"},shape:"pill",size:"medium",themeColor:"primary",positionMode:"fixed"};ye.displayName="KendoFloatingActionButton"},function(e,t,n){"use strict";n.r(t),n.d(t,"FloatingLabel",(function(){return m})),n.d(t,"Label",(function(){return c})),n.d(t,"Error",(function(){return d})),n.d(t,"Hint",(function(){return p}));var r,o=n(0),i=n(1),a=n(2),s=((r={})["labels.optional"]="(Optional)",r),l=n(4),u={name:"@progress/kendo-react-labels",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639558253,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=function(e){Object(a.validatePackage)(u);var t=e.id,n=e.editorId,r=e.editorRef,i=e.editorDisabled,c=e.children,d=e.editorValid,p=e.style,f=e.className,h=e.optional,m=Object(l.useLocalization)(),v=h?m.toLanguageString("labels.optional",s["labels.optional"]):"",g=v&&o.createElement("span",{className:"k-label-optional"},v),y=o.useCallback((function(e){if(r&&r.current&&!i){r.current.focus&&(e.preventDefault(),r.current.focus());var t=r.current.actionElement;t&&(e.preventDefault(),t.click())}}),[r]),b=Object(a.classNames)({"k-label":!0,"k-label-empty":!c,"k-text-error":!1===d,"k-text-disabled":!0===i},f);return o.createElement("label",{id:t,htmlFor:n,onClick:y,style:p,className:b},c,g)};c.propTypes={id:i.string,editorId:i.string,editorRef:i.oneOfType([i.func,i.shape({current:i.any})]),editorValid:i.bool,editorDisabled:i.bool,style:i.object,className:i.string,optional:i.bool},c.displayName="KendoReactLabel";var d=function(e){Object(a.validatePackage)(u);var t=Object(a.classNames)({"k-form-error":!0,"k-text-start":"start"===e.direction,"k-text-end":"end"===e.direction},e.className);return o.createElement("div",{id:e.id,role:"alert",style:e.style,className:t},e.children)};d.propTypes={id:i.string,direction:i.oneOf(["start","end"]),children:i.oneOfType([i.element,i.node]),style:i.object,className:i.string},d.defaultProps={direction:"start"},d.displayName="KendoReactError";var p=function(e){Object(a.validatePackage)(u);var t=Object(a.classNames)({"k-form-hint":!0,"k-text-start":"start"===e.direction,"k-text-end":"end"===e.direction,"k-text-disabled":!0===e.editorDisabled},e.className);return o.createElement("div",{id:e.id,style:e.style,className:t},e.children)};p.propTypes={id:i.string,direction:i.oneOf(["start","end"]),children:i.oneOfType([i.element,i.node]),style:i.object,className:i.string,editorDisabled:i.bool},p.defaultProps={direction:"start"},p.displayName="KendoReactHint";var f,h=(f=function(e,t){return(f=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}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focused:!1},n.handleFocus=function(e){n.setState({focused:!0})},n.handleBlur=function(e){n.setState({focused:!1})},Object(a.validatePackage)(u),n}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.editorId,r=e.className,i=e.editorValue,u=e.editorPlaceholder,c=e.editorValid,d=e.editorDisabled,p=e.style,f=e.id,h=e.optional,m=Object(l.provideLocalizationService)(this),v=h?m.toLanguageString("labels.optional",s["labels.optional"]):"",g=v&&o.createElement("span",{className:"k-label-optional"},v),y=Object(a.classNames)({"k-textbox-container":!0,"k-state-focused":this.state.focused,"k-state-empty":!u&&!i&&0!==i,"k-text-disabled":d,"k-rtl":"rtl"===this.props.dir},r),b=Object(a.classNames)({"k-label":!0,"k-text-error":!1===c,"k-text-disabled":d});return o.createElement("span",{className:y,onFocus:this.handleFocus,onBlur:this.handleBlur,style:p,dir:this.props.dir},this.props.children,t?n?o.createElement("label",{id:f,htmlFor:n,className:b},t,g):o.createElement("span",{id:f,className:b},t,g):null)},t.propTypes={label:i.string,editorId:i.string,editorValue:i.oneOfType([i.string,i.bool,i.number]),editorPlaceholder:i.string,editorValid:i.bool,editorDisabled:i.bool,id:i.string,style:i.object,className:i.string,optional:i.bool},t}(o.Component);Object(l.registerForLocalization)(m)},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(17),a=n(2),s=n(12),l=n(46);function u(e,n,r){t.setField(e,r,t.getField(n,r))}t.first=function(e){return e[0]},t.last=function(e){return e[e.length-1]},t.isMultiDay=function(e){return e.end.getTime()-e.start.getTime()>new Date(0).setHours(24)},t.isGroupped=function(e){var t=new Set;return e.forEach((function(e){t.add(e.field)})),t.size===e.length},t.formatEventTime=function(e,t,n,r){return r?""+e.formatDate(t,{skeleton:"yMMMMEEEEd"}):e.formatDate(t,{skeleton:"yMMMMEEEEdhm"})+"–"+e.formatDate(n,"t")},t.addUTCDays=function(e,t){var n=new Date(e.getTime());return n.setUTCDate(n.getUTCDate()+t),n},t.dateWithTime=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes())},t.getToday=function(){return o.getDate(new Date)},t.slotDive=function(e,n,r,o){if(void 0===o&&(o=0),o===r)return null;var i=null,a=document.elementFromPoint(e,n);if(!a)return i;if("true"===a.getAttribute("data-slot"))return a;var s=a.style.pointerEvents;return a.style.pointerEvents="none",i=t.slotDive(e,n,r,o+1),a.style.pointerEvents=s,i},t.getField=function(e,t){return a.getter(t)(e)},t.setField=function(e,t,n){if(t)return a.setter(t)(e,n)},t.assignField=u,t.assignFields=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];for(var o=0;o<n.length;o++)u(e,t,n[o])},t.isPresent=function(e){return null!=e},t.isRecurringMaster=function(e){return e.recurrenceRule&&!t.isPresent(e.recurrenceId)},t.toUTCDate=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))},t.getUTCDate=function(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))},t.toUTCDateTime=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},t.toInvariantTime=function(e){var t=new Date(1980,1,1,0,0,0);return e&&t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t},t.isRecurringException=function(e){return e&&t.isPresent(e.recurrenceId)&&!e.recurrenceRule},t.isRecurring=function(e,t){var n=a.getter(t.recurrenceId||"recurrenceId")(e);return!(!a.getter(t.recurrenceRule||"recurrenceRule")(e)&&!n)},t.groupResources=function(e,t){var n=[];if(e&&e.resources&&e.resources.length)for(var r=e.resources,o=function(e){var o=t.find((function(t){return t.name===r[e]}));n.push(o)},i=0;i<r.length;i++)o(i);return n},t.findMaster=function(e,n,r){var o=t.isMaster(e,n)?t.getField(e,n.id):t.getField(e,n.recurrenceId);return r.find((function(e){return t.getField(e,n.id)===o}))},t.isMaster=function(e,n){var r=t.getField(e,n.id),o=t.getField(e,n.recurrenceId),i=t.getField(e,n.recurrenceRule);return!(!r||!i||null!=o)},t.buildException=function(e,n,r){var o=t.findMaster(e,n,r),i=a.clone(e);return u(i,o,n.id),void 0!==n.id&&t.setField(i,n.id,s.DEFAULT_ID),void 0!==n.recurrenceRule&&t.setField(i,n.recurrenceRule,void 0),void 0!==n.recurrenceId&&t.setField(i,n.recurrenceId,t.getField(o,n.id)),i},t.isException=function(e,n){return t.isPresent(t.getField(e,n.recurrenceId))&&!t.getField(e,n.recurrenceRule)};var c=function(e,t){return Math.max(e.getTime(),t.getTime())},d=function(e,t){return Math.min(e.getTime(),t.getTime())};function p(e,n){for(var r=n.data,o=0;o<r.length;o++)if(t.getField(r[o],n.valueField)===e)return o;return 0}t.intersects=function(e,t,n,r,o){return void 0===o&&(o=!1),o?c(t,r)-d(e,n)<=t.getTime()-e.getTime()+(r.getTime()-n.getTime()):c(t,r)-d(e,n)<t.getTime()-e.getTime()+(r.getTime()-n.getTime())},t.roundAllDayEnd=function(e){var t=e.start,n=e.end,r=t.stripTime(),o=n.stripTime();return o.getTime()!==n.getTime()||r.getTime()===o.getTime()?o.addDays(1):o},t.defaultModelFields={id:"id",start:"start",startTimezone:"startTimezone",originalStart:"originalStart",end:"end",endTimezone:"endTimezone",isAllDay:"isAllDay",title:"title",description:"description",recurrenceRule:"recurrenceRule",recurrenceId:"recurrenceId",recurrenceExceptions:"recurrenceExceptions"},t.getModelFields=function(e){return{fields:r({},t.defaultModelFields,e)}},t.isInTimeRange=function(e,t,n){return(t.getHours()<e.getHours()||t.getHours()===e.getHours()&&t.getMinutes()<=e.getMinutes())&&(e.getHours()<n.getHours()||n.getHours()===e.getHours()&&e.getMinutes()<n.getMinutes())},t.toSchedulerGroups=function(e,t){var n=i.toGroupResources(e,t),o=i.toFlatGroupResources(n);return 1===o.length?[{index:0,resources:(t||[]).reduce((function(e,t){return e.concat(t.data.map((function(e){return r({},e,{field:t.field,valueField:t.valueField,colorField:t.colorField,multiple:t.multiple})})))}),[])}]:o.map((function(e,t){return{index:t,resources:e}}))},t.toSchedulerResources=function(e){return(e||[]).reduce((function(e,t){return e.concat(t.data.map((function(e){return r({},e,{field:t.field,valueField:t.valueField,colorField:t.colorField,multiple:t.multiple})})))}),[])},t.generateResourceFields=function(e,t){if(!e||!e.length)return t;var n={};return e.forEach((function(e){e.resources.forEach((function(e){void 0===n[e.field]&&(n[e.field]=e[e.valueField])}))})),n},t.isBlank=function(e){return null==e},t.isNullOrEmptyString=function(e){return t.isBlank(e)||e.trim&&0===e.trim().length},t.setTime=function(e,t){var n=a.cloneDate(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},t.extractGroups=function(e,t,n,r){var o=i.toGroupResources(n,r);return i.toFlatGroupResources(o).reduce((function(n,r,o){var i=!0;return r.forEach((function(n){var r=n[n.valueField],o=e[t[n.field]||n.field];i=Array.isArray(o)?i&&o.indexOf(r)>=0:i&&o===r})),i?n.concat([{index:o,resources:r}]):n}),[])};t.extractResourceFields=function(e,t,n){var r={};return n&&n.length?(n.forEach((function(n){var o=n.data.find((function(r){return r.value===e[t[n.field]||n.field]}));o&&(r[n.field]=o.value)})),r):r},t.extractResources=function(e,n,o){void 0===o&&(o=[]);for(var i=0,a=[],s=0;s<o.length;s++){var l=o[s],u=t.getField(e,n[l.field]||l.field);Array.isArray(u)||(u=[u]);for(var c=0;c<u.length;c++){if(void 0!==u[c]){var d=p(u[c],l),f=l.data[d],h={text:t.getField(f,l.textField),color:t.getField(f,l.colorField),value:t.getField(f,l.valueField)};a.push(r({},h,{index:i}))}i++}}return a},t.shallowCompare=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},t.findMissing=function(e){var t=0,n=e.slice();return n.sort((function(e,t){return e-t})).forEach((function(e,r){n[r]===r&&(t=r+1)})),t},t.calculateOrder=function(e,n,r,o){var i;return void 0===o&&(o=!1),r.forEach((function(r){var a=[];n.sort((function(e,t){return e.props.start.getTime()-t.props.start.getTime()})).forEach((function(n){if((o||n.props.isAllDay===r.current.props.isAllDay)&&n.props.range.index===r.current.props.range.index&&n.props.group.index===r.current.props.group.index&&t.intersects(n.props.start,n.props.end,r.current.props.start,r.current.props.end)){var s=t.findMissing(a);n===e&&void 0===i&&(i=s),a.splice(s,0,s)}}))})),i},t.mapSlotsToItems=function(e,n,r){void 0===r&&(r=!1),n.forEach((function(e){return e.items.splice(0,e.items.length)})),n.forEach((function(n){var o=[];e.forEach((function(e){if((r||e.isAllDay===n.isAllDay)&&e.range.index===n.range.index&&e.group.index===n.group.index&&t.intersects(e.start,e.end,n.start,n.end)){var i=t.findMissing(o);(null===e.order||void 0===e.order||e.order<i)&&(e.order=i),o.splice(e.order,0,e.order),n.items.push(e)}}))}))},t.mapItemsToSlots=function(e,n,r){void 0===r&&(r=!1),e.forEach((function(e){return e.slots.splice(0,e.slots.length)})),e.forEach((function(e){n.forEach((function(n){(r||e.isAllDay===n.isAllDay)&&e.range.index===n.range.index&&e.group.index===n.group.index&&t.intersects(e.start,e.end,n.start,n.end)&&e.slots.push(n)}))}))},t.noop=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.findFirstItem=function(e){var t=e.props.items.find((function(e){return 0===e.order}))||e.props.items[0];return t&&t._ref.current},t.findNextItem=function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=!1);var o=e.current;if(!o||!t)return null;var i=t.filter((function(e){return null!==e.current&&null!==e.current.element})),a=l.orderBy(i,[{field:"current.props.group.index",dir:"asc"},{field:"current.props.range.index",dir:"asc"},n?{field:""}:{field:"current.props.isAllDay",dir:"desc"},{field:"current.props.start",dir:"asc"}]),s=a.findIndex((function(e){return null!==e.current&&Boolean(e.current.props.uid===o.props.uid&&(void 0===e.current.props.occurrenceId||e.current.props.occurrenceId===o.props.occurrenceId)&&e.current.props.group.index===o.props.group.index&&e.current.props.range.index===o.props.range.index&&(n||e.current.props.isAllDay===o.props.isAllDay))}));return a[s+(r?-1:1)]},t.orderSort=function(e,t){return(e.order||0)-(t.order||0)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a}));
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -13,4 +13,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
15
  ***************************************************************************** */
16
- var r=function(e,t){return(r=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 o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return le}));var r=n(0),o=n(16),i=n(1),a=function(e){e.style.transitionDuration="",e.classList.remove("k-slide-down-appear","k-slide-down-appear-active","k-slide-down-exit","k-slide-down-exit-active","k-slide-up-appear","k-slide-up-appear-active","k-slide-up-exit","k-slide-up-exit-active")},s="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),l=n(2),u="bottom",c="center",d="middle",p="left",f="right",h="top";function m(e){return e.ownerDocument||e.document||e}var v=function(e){return m(e).defaultView},g=function(e){return m(e).documentElement},y=0;function b(){if(!y&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),y=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return y}function k(e){var t=v(e),n=g(e),r={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(r.width-=b()),r}var C=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||g(e)},O=function(e){var t=e.getBoundingClientRect(),n=t.left,r=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,r=t.left,o=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=r,e.style.position=o,i}(e)),{top:r,left:n,height:t.height,width:t.width}},w=function(e,t){for(var n=[],r=e.parentNode;r&&(n.push(r),r!==t);)r=r.parentNode;return n};function E(e){var t=g(e),n=v(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var S=function(e){return e===(e.ownerDocument||{}).body?E(e):{x:e.scrollLeft,y:e.scrollTop}};var D=function(e,t){var n=v(e),r=n.getComputedStyle(e),o=O(e),i=t||C(e),a=e.ownerDocument,s=i!==a.body&&i!==a.documentElement,l={top:0,left:0};if("fixed"!==r.position&&s){var u=n.getComputedStyle(i);(l=O(i)).top+=parseInt(u.borderTopWidth,10),l.left+=parseInt(u.borderLeftWidth,10)}return{top:o.top-l.top,left:o.left-l.left,height:o.height,width:o.width}},x=function(e,t){return e?S(e):function(e){var t=C(e);return t?S(t):{x:0,y:0}}(t)};var I="fit",T="flip",_=function(e,t,n){var r=0;return e+t>n&&(r=n-(e+t)),e<0&&(r=-e),r},P=function(e){var t=e.offset,n=e.size,r=e.anchorSize,o=e.viewPortSize,i=e.anchorAlignPoint,a=e.elementAlignPoint,s=0,l=2*e.margin;if(a!==i&&!(a===c||a===d)&&!(i===c||i===d)){var u=i===h||i===p;t<0&&u?t+(s=n+r+l)+n>o&&(s=0):t>=0&&!u&&(t+n>o&&(s+=-(r+n+l)),t+s<0&&(s=0))}return s},N=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},M=function(e,t){for(var n,r,o=w(e),i=t;i&&(n=N(i),!(r=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return r};var R,j,F,A,L=(R=function(e){if(!V())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 r=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),r},F=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return F||(j=R.apply(void 0,e),F=!0),j}),V=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},B={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:L,canUseDOM:V},z=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],H=function(){return B.canUseDOM()?window:null},U=/auto|scroll/,K=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)},W=function(e){if(!e||!B.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},q=function(){return B.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},Y={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,r=e.elementRect,o=e.elementAlign,i=e.margin;void 0===i&&(i={});var a=n.horizontal,s=n.vertical,l=o.horizontal,p=o.vertical,h=i.horizontal||0,m=i.vertical||0,v=t.top,g=t.left;return s===u&&(v+=t.height),s!==c&&s!==d||(v+=Math.round(t.height/2)),p===u&&(v-=r.height,m*=-1),p!==c&&p!==d||(v-=Math.round(r.height/2),m*=-1),a===f&&(g+=t.width),a!==c&&a!==d||(g+=Math.round(t.width/2)),l===f&&(g-=r.width,h*=-1),l!==c&&l!==d||(g-=Math.round(r.width/2),h*=-1),{top:v+m,left:g+h}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=k(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=H();if(!t||!e)return[];var n=t.getComputedStyle(e);return z.map((function(e){return{key:e,value:n[e]}}))},getWindow:H,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?O(e):null},offsetAtPoint:function(e,t){if(!e)return null;var n=e.style,r=n.left,o=n.top,i=n.transition;e.style.transition="none",e.style.left=t.left+"px",e.style.top=t.top+"px";var a=O(e);return e.style.left=r,e.style.top=o,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 r=t?C(t):null,o=D(e,r),i=o.top,a=o.left,s=o.height,l=o.width,u=x(r,e),c=u.x,d=u.y,p=e.ownerDocument,f=r===p.body||r===p.documentElement?1:n;return{top:i+d*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,r=e.elementRect,o=e.elementAlign,i=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var l=r.top,u=r.left,c=r.height,d=r.width,p=a.height,f=a.width,h=s.horizontal||0,m=s.vertical||0,v=0,g=0,y=i.horizontal===T,b=i.vertical===T;i.vertical===I&&(g+=_(l,c,p)),i.horizontal===I&&(v+=_(u,d,f)),b&&(g+=P({margin:m,offset:l,size:c,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),y&&(v+=P({margin:h,offset:u,size:d,anchorSize:t.width,viewPortSize:f,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var k=y&&0!==v,C=b&&0!==g;return{flipped:k||C,flip:{horizontal:k,vertical:C},offset:{left:v,top:g}}},scrollPosition:E,scrollableParents:function(e){var t=[];if(!B.canUseDOM())return t;for(var n=e.parentElement;n;)(U.test(K(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:W,stackingElementOffset:function(e){var t=W(e);return t?O(t):null},stackingElementScroll:function(e){var t=W(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=W(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(W(e))},windowViewPort:k,zoomLevel:q,isZoomed:function(){return q()>1},zIndex:function(e,t){if(!e||!B.canUseDOM())return null;var n=M(e,t);if(!n)return null;var r=[e].concat(w(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,r=parseInt(n,10);return r>e?r:e}),0);return r?r+1:null}},G=function(e,t){return e?{x:0,y:0}:Y.scrollPosition(t)},Z=function(e){var t=e.anchor,n=e.element,r=e.anchorAlign,o=e.elementAlign,i=e.margin,a=e.offset,s=e.positionMode,l=e.scale||1,u="fixed"===s||!Y.hasOffsetParent(n)?function(e,t,n,r){var o=G(e,t),i=B.eitherRect(Y.offset(e),n),a=2*r,s=Y.stackingElementScroll(t);1!==r&&s&&(s.x/=a,s.y/=a);var l=Y.stackingElementOffset(t);return 1!==r&&l&&(l.left/=a,l.top/=a),Y.removeScroll(Y.addScroll(B.removeStackingOffset(B.scaleRect(i,r),l),s),o)}(t,n,a,l):function(e,t,n,r){var o=B.eitherRect(Y.position(e,t,r),n);return B.scaleRect(o,r)}(t,n,a,l),c=B.scaleRect(Y.offset(n),l);return Y.align({anchorAlign:r,anchorRect:u,elementAlign:o,elementRect:c,margin:i})},X=function(e){var t=e.anchor,n=e.currentLocation,r=e.element,o=e.anchorAlign,i=e.elementAlign,a=e.collisions,s=e.margin,l=e.scale||1,u=Y.offsetAtPoint(r,n),c=B.scaleRect(u,l),d=B.scaleRect(Y.offset(t),l),p=B.eitherRect(d,n),f=e.viewPort||Y.windowViewPort(r);f.width=f.width/l,f.height=f.height/l;var h=Y.restrictToView({anchorAlign:o,anchorRect:p,collisions:a,elementAlign:i,elementRect:c,margin:s,viewPort:f}),m=Y.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:m}},Q="fit",$="flip",J={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639493347,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},ee=(A=function(e,t){return(A=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}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),te=function(){return(te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ne(e,t){if(e===t)return!0;if(!!e!=!!t)return!1;var n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(e[i]!==t[i])return!1}return!0}var re,oe={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(re||(re={}));var ie=function(e){function t(t){var n=e.call(this,t)||this;return n.state={current:re.hidden,previous:re.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:re.shown,previous:n.state.current})},n.setPosition=function(e){var t=n.props,r=t.anchorAlign,o=t.popupAlign,i=t.collision,a=t.offset,s=t.anchor,l=t.margin,u=t.scale,c=t.positionMode;e.style.top="0px",e.style.left="-10000px";var d=Z({anchor:s,element:e,elementAlign:o,anchorAlign:r,offset:a,margin:l,positionMode:c,scale:u}),p=X({anchor:s,anchorAlign:r,collisions:i,element:e,currentLocation:d,elementAlign:o,margin:n.props.margin});e.style.top=p.offset.top+"px",e.style.left=p.offset.left+"px",n._flipped=p.flipped},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add("k-animation-container-shown"),n.attachRepositionHandlers(e),n.props.onOpen&&n.props.onOpen.call(void 0,{target:n}))},n.animate=function(e,t,r){!function(e,t,n,r,o){if(0===n)return o();var i="k-slide-"+t+"-"+r,l=i+"-active",u=function(){e.removeEventListener("transitionend",u),a(e),o()};e.addEventListener("transitionend",u);var c=e.ownerDocument;if(c){var d=c.defaultView;if(d){var p=function(){a(e),e.classList.add(i),d.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(l)}))};s?d.requestAnimationFrame(p):p()}}}(e,n._flipped?"up":"down",n.animationDuration[t],t,r)},n.onClosing=function(e){n.props.show||e.classList.remove("k-animation-container-shown"),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===re.hiding&&n.state.previous===re.shown&&n.setState({current:re.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.validatePackage)(J),n.reposition=function(e,t,n){var r,o,i,a;void 0===n&&(n={});var s=0;n=n||{};var l=function(){s=!1===n.leading?0:(new Date).getTime(),r=null,a=e.apply(o,i),r||(o=i=null)};return function(){var u=(new Date).getTime();s||!1!==n.leading||(s=u);var c=t-(u-s);return o=this,i=arguments,c<=0||c>t?(r&&(clearTimeout(r),r=null),s=u,a=e.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=window.setTimeout(l,c)),a}}(n.reposition.bind(n),1e3/60),n}return ee(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.show,r=e.anchor,o=e.anchorAlign,i=e.appendTo,a=e.collision,s=e.popupAlign,l=e.className,u=e.popupClass,c=e.style,d=e.offset,p=e.contentKey,f=te({},t,{props:{show:n,anchor:r,anchorAlign:o,appendTo:i,collision:a,popupAlign:s,className:l,popupClass:u,style:c,offset:d,contentKey:p}});return e.show?t.current===re.hidden||t.current===re.hiding?te({},f,{current:re.showing,previous:t.current}):t.current===re.showing?te({},f,{current:re.shown,previous:t.current}):t.current!==re.shown||ne(d,t.props.offset)&&ne(o,t.props.anchorAlign)&&ne(i,t.props.appendTo)&&ne(a,t.props.collision)&&ne(s,t.props.popupAlign)&&ne(c,t.props.style)&&r===t.props.anchor&&u===t.props.popupClass&&l===t.props.className?f:te({},f,{current:re.reposition,previous:t.current}):t.current===re.hiding||t.current===re.hidden?te({},f,{current:re.hidden,previous:t.current}):te({},f,{current:re.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===re.showing&&this._popup?this.show(this._popup):this.state.current===re.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===re.reposition&&this.state.previous===re.shown?this.setState({current:re.shown,previous:this.state.current}):this.state.current===re.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===re.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,i=t.className,a=t.popupClass,s=t.show,u=t.id,c=t.positionMode,d=this.props.appendTo?this.props.appendTo:l.canUseDOM?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===re.reposition&&this.state.previous===re.shown&&this._popup&&this.setPosition(this._popup);var p=Object.assign({},{position:c},this.props.style||{}),f=this.state.current===re.hiding;if((s||f)&&d){var h=this.getCurrentZIndex(),m=r.createElement(l.ZIndexContext.Provider,{value:h},r.createElement("div",{className:Object(l.classNames)("k-animation-container","k-animation-container-relative",i),id:u,ref:function(t){return e._popup=t},style:te({zIndex:h},p)},r.createElement("div",{className:Object(l.classNames)(a,"k-popup","k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return o.createPortal(m,d)}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=Y.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:re.reposition,previous:this.state.current})},t.propTypes={anchor:function(e){var t=e.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(e){var t=e.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:i.string,id:i.string,popupClass:i.string,collision:i.shape({horizontal:i.oneOf([Q,$]),vertical:i.oneOf([Q,$])}),anchorAlign:i.shape({horizontal:i.oneOf([p,c,f]),vertical:i.oneOf([h,c,u])}),popupAlign:i.shape({horizontal:i.oneOf([p,c,f]),vertical:i.oneOf([h,c,u])}),offset:i.shape({left:i.number,top:i.number}),children:i.oneOfType([i.element,i.node]),show:i.bool,animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),margin:i.shape({horizontal:i.number,vertical:i.number}),positionMode:i.oneOf(["fixed","absolute"]),scale:i.number},t.defaultProps={collision:{horizontal:Q,vertical:$},anchorAlign:{horizontal:p,vertical:u},popupAlign:{horizontal:p,vertical:h},offset:oe,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=l.ZIndexContext,t}(r.Component),ae=function(){return(ae=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},se=r.createContext((function(e){return e})),le=r.forwardRef((function(e,t){var n=r.useContext(se).call(void 0,e);return r.createElement(ie,ae({ref:t},n))}))},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(13)),r(n(51)),r(n(52)),r(n(53)),r(n(54))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.allEvents="scheduler.allEvents",t.allDay="scheduler.allDay",t.today="scheduler.today",t.timelineViewTitle="scheduler.timelineViewTitle",t.weekViewTitle="scheduler.weekViewTitle",t.workWeekViewTitle="scheduler.workWeekViewTitle",t.agendaViewTitle="scheduler.agendaViewTitle",t.dayViewTitle="scheduler.dayViewTitle",t.monthViewTitle="scheduler.monthViewTitle",t.deleteTitle="scheduler.deleteTitle",t.previousTitle="scheduler.previousTitle",t.nextTitle="scheduler.nextTitle",t.showFullDay="scheduler.showFullDay",t.showWorkDay="scheduler.showWorkDay",t.editorOccurrence="scheduler.editOccurrence",t.editorSeries="scheduler.editSeries",t.editorRecurringConfirmation="scheduler.editRecurringConfirmation",t.editorRecurringDialogTitle="scheduler.editRecurringDialogTitle",t.editorSave="scheduler.editSave",t.editorCancel="scheduler.editCancel",t.editorTitle="scheduler.editorTitle",t.editorEventTitle="scheduler.editorEventTitle",t.editorEventStart="scheduler.editorEventStart",t.editorEventStartTimeZone="scheduler.editorEventStartTimeZone",t.editorEventEnd="scheduler.editorEventEnd",t.editorEventEndTimeZone="scheduler.editorEventEndTimeZone",t.editorEventAllDay="scheduler.editorEventAllDay",t.editorEventDescription="scheduler.editorEventDescription",t.editorEventSeparateTimeZones="scheduler.editorEventSeparateTimeZones",t.editorEventTimeZone="scheduler.editorEventTimeZone",t.recurrenceEditorRepeat="scheduler.recurrenceEditorRepeat",t.recurrenceEditorDailyInterval="scheduler.recurrenceEditorDailyInterval",t.recurrenceEditorDailyRepeatEvery="scheduler.recurrenceEditorDailyRepeatEvery",t.recurrenceEditorWeeklyInterval="scheduler.recurrenceEditorWeeklyInterval",t.recurrenceEditorWeeklyRepeatEvery="scheduler.recurrenceEditorWeeklyRepeatEvery",t.recurrenceEditorWeeklyRepeatOn="scheduler.recurrenceEditorWeeklyRepeatOn",t.recurrenceEditorMonthlyDay="scheduler.recurrenceEditorMonthlyDay",t.recurrenceEditorMonthlyInterval="scheduler.recurrenceEditorMonthlyInterval",t.recurrenceEditorMonthlyRepeatEvery="scheduler.recurrenceEditorMonthlyRepeatEvery",t.recurrenceEditorMonthlyRepeatOn="scheduler.recurrenceEditorMonthlyRepeatOn",t.recurrenceEditorYearlyOf="scheduler.recurrenceEditorYearlyOf",t.recurrenceEditorYearlyRepeatEvery="scheduler.recurrenceEditorYearlyRepeatEvery",t.recurrenceEditorYearlyRepeatOn="scheduler.recurrenceEditorYearlyRepeatOn",t.recurrenceEditorYearlyInterval="scheduler.recurrenceEditorYearlyInterval",t.recurrenceEditorFrequenciesDaily="scheduler.recurrenceEditorFrequenciesDaily",t.recurrenceEditorFrequenciesMonthly="scheduler.recurrenceEditorFrequenciesMonthly",t.recurrenceEditorFrequenciesNever="scheduler.recurrenceEditorFrequenciesNever",t.recurrenceEditorFrequenciesWeekly="scheduler.recurrenceEditorFrequenciesWeekly",t.recurrenceEditorFrequenciesYearly="scheduler.recurrenceEditorFrequenciesYearly",t.recurrenceEditorOffsetPositionsFirst="scheduler.recurrenceEditorOffsetPositionsFirst",t.recurrenceEditorOffsetPositionsSecond="scheduler.recurrenceEditorOffsetPositionsSecond",t.recurrenceEditorOffsetPositionsThird="scheduler.recurrenceEditorOffsetPositionsThird",t.recurrenceEditorOffsetPositionsFourth="scheduler.recurrenceEditorOffsetPositionsFourth",t.recurrenceEditorOffsetPositionsLast="scheduler.recurrenceEditorOffsetPositionsLast",t.recurrenceEditorWeekdaysDay="scheduler.recurrenceEditorWeekdaysDay",t.recurrenceEditorWeekdaysWeekday="scheduler.recurrenceEditorWeekdaysWeekday",t.recurrenceEditorWeekdaysWeekendday="scheduler.recurrenceEditorWeekdaysWeekendday",t.recurrenceEditorEndAfter="scheduler.recurrenceEditorEndAfter",t.recurrenceEditorEndOccurrence="scheduler.recurrenceEditorEndOccurrence",t.recurrenceEditorEndLabel="scheduler.recurrenceEditorEndLabel",t.recurrenceEditorEndNever="scheduler.recurrenceEditorEndNever",t.recurrenceEditorEndOn="scheduler.recurrenceEditorEndOn",t.editorDelete="scheduler.editorDelete",t.deleteConfirmation="scheduler.deleteConfirmation",t.deleteRecurringConfirmation="scheduler.deleteRecurringConfirmation",t.deleteOccurrence="scheduler.deleteOccurrence",t.deleteSeries="scheduler.deleteSeries",t.deleteDialogTitle="scheduler.deleteDialogTitle",t.deleteRecurringDialogTitle="scheduler.deleteRecurringDialogTitle",t.dateTitle="scheduler.dateTitle",t.timeTitle="scheduler.timeTitle",t.eventTitle="scheduler.eventTitle",t.editorValidationRequired="scheduler.editorValidationRequired",t.editorValidationStart="scheduler.editorValidationStart",t.editorValidationEnd="scheduler.editorValidationEnd",t.noEvents="scheduler.noEvents",t.messages=((r={})[t.editorValidationRequired]="Field is required.",r[t.editorValidationStart]="Start time must be be before End time.",r[t.editorValidationEnd]="End time must be after Start time.",r[t.allEvents]="All events",r[t.allDay]="all day",r[t.today]="Today",r[t.dayViewTitle]="Day",r[t.monthViewTitle]="Month",r[t.weekViewTitle]="Week",r[t.workWeekViewTitle]="Work Week",r[t.timelineViewTitle]="Timeline",r[t.agendaViewTitle]="Agenda",r[t.deleteTitle]="Delete",r[t.previousTitle]="Previous",r[t.nextTitle]="Next",r[t.showFullDay]="Show full day",r[t.showWorkDay]="Show business hours",r[t.editorOccurrence]="Edit current occurrence",r[t.editorSeries]="Edit the series",r[t.editorRecurringConfirmation]="Do you want to edit only this event occurrence or the whole series?",r[t.editorRecurringDialogTitle]="Edit Recurring Item",r[t.editorSave]="Save",r[t.editorCancel]="Cancel",r[t.editorDelete]="Delete",r[t.editorTitle]="Event",r[t.editorEventTitle]="Title",r[t.editorEventStart]="Start",r[t.editorEventStartTimeZone]="Start Time Zone",r[t.editorEventEnd]="End",r[t.editorEventEndTimeZone]="End Time Zone",r[t.editorEventAllDay]="All Day Event",r[t.editorEventDescription]="Description",r[t.editorEventSeparateTimeZones]="End in different Time Zone",r[t.editorEventTimeZone]="Specify Time Zone",r[t.recurrenceEditorRepeat]="Repeat",r[t.recurrenceEditorDailyInterval]="day(s)",r[t.recurrenceEditorDailyRepeatEvery]="Repeat every",r[t.recurrenceEditorWeeklyInterval]="week(s)",r[t.recurrenceEditorWeeklyRepeatEvery]="Repeat every",r[t.recurrenceEditorWeeklyRepeatOn]="Repeat on",r[t.recurrenceEditorMonthlyDay]="Day",r[t.recurrenceEditorMonthlyInterval]="month(s)",r[t.recurrenceEditorMonthlyRepeatEvery]="Repeat every",r[t.recurrenceEditorMonthlyRepeatOn]="Repeat on",r[t.recurrenceEditorYearlyOf]="of",r[t.recurrenceEditorYearlyRepeatEvery]="Repeat every",r[t.recurrenceEditorYearlyRepeatOn]="Repeat on",r[t.recurrenceEditorYearlyInterval]="year(s)",r[t.recurrenceEditorFrequenciesDaily]="Daily",r[t.recurrenceEditorFrequenciesMonthly]="Monthly",r[t.recurrenceEditorFrequenciesNever]="Never",r[t.recurrenceEditorFrequenciesWeekly]="Weekly",r[t.recurrenceEditorFrequenciesYearly]="Yearly",r[t.recurrenceEditorOffsetPositionsFirst]="First",r[t.recurrenceEditorOffsetPositionsSecond]="Second",r[t.recurrenceEditorOffsetPositionsThird]="Third",r[t.recurrenceEditorOffsetPositionsFourth]="Fourth",r[t.recurrenceEditorOffsetPositionsLast]="Last",r[t.recurrenceEditorWeekdaysDay]="Day",r[t.recurrenceEditorWeekdaysWeekday]="Weekday",r[t.recurrenceEditorWeekdaysWeekendday]="Weekend Day",r[t.recurrenceEditorEndAfter]="After",r[t.recurrenceEditorEndOccurrence]="occurrence(s)",r[t.recurrenceEditorEndLabel]="End",r[t.recurrenceEditorEndNever]="Never",r[t.recurrenceEditorEndOn]="On",r[t.deleteConfirmation]="Are you sure you want to delete this event?",r[t.deleteRecurringConfirmation]="Do you want to delete only this event occurrence or the whole series?",r[t.deleteOccurrence]="Delete current occurrence",r[t.deleteSeries]="Delete the series",r[t.deleteDialogTitle]="Delete Event",r[t.deleteRecurringDialogTitle]="Delete Recurring Item",r[t.dateTitle]="Date",r[t.timeTitle]="Time",r[t.eventTitle]="Event",r[t.noEvents]="no events",r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(3);t.MS_PER_DAY=o.MS_PER_DAY,t.MIDNIGHT_INVARIANT=new Date(1980,0,1),t.MS_PER_SECOND=1e3,t.MS_PER_MINUTE=60*t.MS_PER_SECOND,t.MS_PER_HOUR=60*t.MS_PER_MINUTE,t.TIME_FORMAT="t",t.BORDER_WIDTH=1,t.DEFAULT_EVENT_HEIGHT=25,t.DAYS_IN_WEEK_COUNT=7,t.WEEKS_COUNT=6,t.HOURS_IN_DAY_COUNT=24,t.EMPTY_RESOURCE=[{}],t.OCCURRENCE_ID=0,t.DEFAULT_ID=void 0,t.DISPLAY_NONE_STYLES={display:"none"},t.VISIBILITY_HIDDEN_STYLES={visibility:"hidden"},t.DEFAULT_GROUP={index:0,resources:[]},t.MIN_DATE=new Date(1900,0,1),t.MAX_DATE=new Date(2099,11,31),t.DEFAULT_RANGE={index:0,start:t.MIN_DATE,end:t.MAX_DATE,zonedStart:r.ZonedDate.fromLocalDate(t.MIN_DATE),zonedEnd:r.ZonedDate.fromLocalDate(t.MAX_DATE)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(7),i=n(12),a=n(3);t.SchedulerElementContext=r.createContext({current:null}),t.useSchedulerElementContext=function(){return r.useContext(t.SchedulerElementContext)},t.SchedulerElementContext.displayName="SchedulerElementContext",t.SchedulerPropsContext=r.createContext({}),t.useSchedulerPropsContext=function(){return r.useContext(t.SchedulerPropsContext)},t.SchedulerPropsContext.displayName="SchedulerPropsContext",t.SchedulerViewsContext=r.createContext([]),t.useSchedulerViewsContext=function(){return r.useContext(t.SchedulerViewsContext)},t.SchedulerViewsContext.displayName="SchedulerViewsContext",t.SchedulerFieldsContext=r.createContext(o.defaultModelFields),t.useSchedulerFieldsContext=function(){return r.useContext(t.SchedulerFieldsContext)},t.SchedulerFieldsContext.displayName="SchedulerFieldsContext",t.SchedulerDateFormatContext=r.createContext({dateFormat:"{0:D}",shortDateFormat:"{0:d}"}),t.useSchedulerDateFormatContext=function(){return r.useContext(t.SchedulerDateFormatContext)},t.SchedulerDateFormatContext.displayName="SchedulerDateFormatContext",t.SchedulerGroupsContext=r.createContext([i.DEFAULT_GROUP]),t.useSchedulerGroupsContext=function(){return r.useContext(t.SchedulerGroupsContext)},t.SchedulerGroupsContext.displayName="SchedulerGroupsContext",t.SchedulerDateRangeContext=r.createContext({start:new Date,end:new Date,zonedStart:a.ZonedDate.fromLocalDate(new Date),zonedEnd:a.ZonedDate.fromLocalDate(new Date)}),t.useSchedulerDateRangeContext=function(){return r.useContext(t.SchedulerDateRangeContext)},t.SchedulerDateRangeContext.displayName="SchedulerDateRangeContext",t.SchedulerOrientationContext=r.createContext(null),t.useSchedulerOrientationContext=function(){return r.useContext(t.SchedulerOrientationContext)},t.SchedulerOrientationContext.displayName="SchedulerOrientationContext",t.SchedulerDateContext=r.createContext([new Date,o.noop]),t.useSchedulerDateContext=function(){return r.useContext(t.SchedulerDateContext)},t.SchedulerDateContext.displayName="SchedulerDateContext",t.SchedulerDataContext=r.createContext([[],o.noop]),t.useSchedulerDataContext=function(){return r.useContext(t.SchedulerDataContext)},t.SchedulerDataContext.displayName="SchedulerDataContext",t.SchedulerActiveViewContext=r.createContext(["day",o.noop]),t.useSchedulerActiveViewContext=function(){return r.useContext(t.SchedulerActiveViewContext)},t.SchedulerActiveViewContext.displayName="SchedulerActiveViewContext",t.SchedulerContext=function(e){var n=e.children,o=e.element,i=e.props,a=e.views,s=e.fields,l=e.groups,u=e.dateRange,c=e.dateFormat,d=e.orientation,p=e.date,f=e.data,h=e.activeView;return r.createElement(t.SchedulerElementContext.Provider,{value:o},r.createElement(t.SchedulerPropsContext.Provider,{value:i},r.createElement(t.SchedulerViewsContext.Provider,{value:a},r.createElement(t.SchedulerFieldsContext.Provider,{value:s},r.createElement(t.SchedulerDateFormatContext.Provider,{value:c},r.createElement(t.SchedulerGroupsContext.Provider,{value:l},r.createElement(t.SchedulerDateRangeContext.Provider,{value:u},r.createElement(t.SchedulerOrientationContext.Provider,{value:d},r.createElement(t.SchedulerDateContext.Provider,{value:p},r.createElement(t.SchedulerDataContext.Provider,{value:f},r.createElement(t.SchedulerActiveViewContext.Provider,{value:h},n)))))))))))}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(82)),r(n(83)),r(n(84)),r(n(85)),r(n(86)),r(n(87)),r(n(88)),r(n(89)),r(n(90)),r(n(91))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);t.useControlledState=function(e,t,n){var i=o.useState(t||e),a=i[0],s=i[1];return[void 0!==t?t:a,o.useCallback((function(e,t){s(e),n&&n.call(void 0,r({},t,{value:e}))}),[n,s])]}},function(e,t){e.exports=o},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.last=function(e){return e[e.length-1]},t.toFlatGroupResources=function(e,n,o,i){if(void 0===n&&(n=0),void 0===o&&(o=0),void 0===i&&(i=[]),e.length<=n)return[i];var a=[];return e[n].data.map((function(s){a.push.apply(a,t.toFlatGroupResources(e,n+1,o+1,i.concat([r({},s,{field:e[n].field,valueField:e[n].valueField,colorField:e[n].colorField,multiple:e[n].multiple})])))})),a},t.calculateEventRect=function(e,n){if(e.length<1||!e[0]._ref||!e[0]._ref.current)return null;var r=t.getRect(e[0]._ref.current.element),o={top:r.top,left:r.left,right:r.right,width:r.width,height:0};return e.forEach((function(e){if(e._ref.current){var r=t.getRect(e._ref.current.element).height;void 0!==r&&(!n&&r>=o.height?o.height=r:o.height+=r)}})),o},t.toGroupResources=function(e,t){var n=[];if(!t||!t.length)return n;if(e&&e.resources&&e.resources.length)for(var r=e.resources,o=function(e){var o=t.find((function(t){return t.name===r[e]}));n.push(o)},i=0;i<r.length;i++)o(i);return n},t.addUTCDays=function(e,t){var n=new Date(e.getTime());return n.setUTCDate(n.getUTCDate()+t),n},t.expandResources=function(e,t){void 0===t&&(t=e.length-1);var n=Math.max(0,t),o=[];e&&e.length||(e=[{}]);for(var i=(e[n].data||[]).map((function(t){return r({},t,{text:t[e[n].textField]})}))||[],a=i.length,s=1,l=0;l<=n;l++)s*=(e[l].data||[]).length||1;for(l=0;l<s;l++)i[l%a]&&o.push(i[l%a]);return o},t.resourcesByIndex=function(e,t,n){for(var r=t,o=[],i=e,a=0;a<r.length;a++){var s=r[a].data||[],l=Math.floor(i/n[a]);o.push(s[l]),i-=l*n[a]}return o},t.getRect=function(e){return e?{top:e.offsetTop,left:e.offsetLeft,right:e.offsetParent?e.offsetParent.offsetWidth-(e.offsetLeft+e.offsetWidth):0,width:e.offsetWidth,height:e.offsetHeight}:{top:0,left:0,width:0,height:0,right:0}},t.getPadding=function(e,t){return void 0===t&&(t=!1),parseFloat(window.getComputedStyle(e)[t?"paddingLeft":"paddingTop"]||"0")+parseFloat(window.getComputedStyle(e)[t?"paddingRight":"paddingBottom"]||"0")},t.getBorders=function(e,t){return void 0===t&&(t=!1),parseFloat(window.getComputedStyle(e)[t?"borderLeftWidth":"borderTopWidth"]||"0")+parseFloat(window.getComputedStyle(e)[t?"borderRightWidth":"borderBottomWidth"]||"0")},t.setRect=function(e,t,n){void 0===n&&(n=!1),e&&(void 0!==t.top&&(e.style.top=t.top+"px"),void 0!==t.left&&(e.style.left=t.left+"px"),void 0!==t.width&&(e.style.width=t.width+"px"),void 0===t.height||n||(e.style.height="number"==typeof t.height?t.height+"px":t.height),n&&(e.style.minHeight=void 0!==t.height&&t.height>0?t.height+"px":""))}},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(20);t.Scheduler=r.Scheduler,t.DATA_ACTION=r.DATA_ACTION;var o=n(81);t.AgendaView=o.AgendaView;var i=n(99);t.TimelineView=i.TimelineView;var a=n(104);t.DayView=a.DayView;var s=n(108);t.WeekView=s.WeekView;var l=n(109);t.WorkWeekView=l.WorkWeekView;var u=n(110);t.MonthView=u.MonthView;var c=n(30);t.SchedulerItem=c.SchedulerItem;var d=n(63);t.SchedulerItemContent=d.SchedulerItemContent;var p=n(31);t.SchedulerViewItem=p.SchedulerViewItem;var f=n(29);t.SchedulerEditItem=f.SchedulerEditItem;var h=n(61);t.SchedulerSlot=h.SchedulerSlot;var m=n(60);t.SchedulerViewSlot=m.SchedulerViewSlot;var v=n(22);t.SchedulerEditSlot=v.SchedulerEditSlot;var g=n(57);t.SchedulerTask=g.SchedulerTask;var y=n(56);t.SchedulerViewTask=y.SchedulerViewTask;var b=n(55);t.SchedulerEditTask=b.SchedulerEditTask;var k=n(62);t.SchedulerDrag=k.SchedulerDrag;var C=n(64);t.SchedulerResize=C.SchedulerResize;var O=n(40);t.SchedulerForm=O.SchedulerForm;var w=n(58);t.SchedulerFormEditor=w.SchedulerFormEditor;var E=n(39);t.SchedulerOccurrenceDialog=E.SchedulerOccurrenceDialog;var S=n(38);t.SchedulerRemoveDialog=S.SchedulerRemoveDialog;var D=n(49);t.SchedulerHeader=D.SchedulerHeader;var x=n(32);t.DateHeaderCell=x.DateHeaderCell;var I=n(42);t.TimeHeaderCell=I.TimeHeaderCell;var T=n(50);t.SchedulerFooter=T.SchedulerFooter;var _=n(10);t.SchedulerPropsContext=_.SchedulerPropsContext,t.useSchedulerPropsContext=_.useSchedulerPropsContext,t.SchedulerViewsContext=_.SchedulerViewsContext,t.useSchedulerViewsContext=_.useSchedulerViewsContext,t.SchedulerFieldsContext=_.SchedulerFieldsContext,t.useSchedulerFieldsContext=_.useSchedulerFieldsContext,t.SchedulerGroupsContext=_.SchedulerGroupsContext,t.useSchedulerGroupsContext=_.useSchedulerGroupsContext,t.SchedulerDateRangeContext=_.SchedulerDateRangeContext,t.useSchedulerDateRangeContext=_.useSchedulerDateRangeContext,t.SchedulerOrientationContext=_.SchedulerOrientationContext,t.useSchedulerOrientationContext=_.useSchedulerOrientationContext,t.SchedulerDateContext=_.SchedulerDateContext,t.useSchedulerDateContext=_.useSchedulerDateContext,t.SchedulerActiveViewContext=_.SchedulerActiveViewContext,t.useSchedulerActiveViewContext=_.useSchedulerActiveViewContext,t.SchedulerDataContext=_.SchedulerDataContext,t.useSchedulerDataContext=_.useSchedulerDataContext,t.SchedulerEditItemFormItemContext=_.SchedulerEditItemFormItemContext,t.useSchedulerEditItemFormItemContext=_.useSchedulerEditItemFormItemContext,t.SchedulerEditItemDragItemContext=_.SchedulerEditItemDragItemContext,t.useSchedulerEditItemDragItemContext=_.useSchedulerEditItemDragItemContext,t.SchedulerEditItemRemoveItemContext=_.SchedulerEditItemRemoveItemContext,t.useSchedulerEditItemRemoveItemContext=_.useSchedulerEditItemRemoveItemContext,t.SchedulerEditItemResizeItemContext=_.SchedulerEditItemResizeItemContext,t.useSchedulerEditItemResizeItemContext=_.useSchedulerEditItemResizeItemContext,t.SchedulerEditItemShowRemoveDialogContext=_.SchedulerEditItemShowRemoveDialogContext,t.useSchedulerEditItemShowRemoveDialogContext=_.useSchedulerEditItemShowRemoveDialogContext,t.SchedulerEditItemShowOccurrenceDialogContext=_.SchedulerEditItemShowOccurrenceDialogContext,t.useSchedulerEditItemShowOccurrenceDialogContext=_.useSchedulerEditItemShowOccurrenceDialogContext,t.SchedulerEditItemPropsContext=_.SchedulerEditItemPropsContext,t.useSchedulerEditItemPropsContext=_.useSchedulerEditItemPropsContext,t.SchedulerEditSlotPropsContext=_.SchedulerEditSlotPropsContext,t.useSchedulerEditSlotPropsContext=_.useSchedulerEditSlotPropsContext,t.SchedulerEditSlotFormItemContext=_.SchedulerEditSlotFormItemContext,t.useSchedulerEditSlotFormItemContext=_.useSchedulerEditSlotFormItemContext;var P=n(68);t.DRAG_ITEM_ACTION=P.DRAG_ITEM_ACTION;var N=n(14);t.ITEMS_FOCUS_ACTION=N.ITEMS_FOCUS_ACTION,t.SLOTS_FOCUS_ACTION=N.SLOTS_FOCUS_ACTION;var M=n(35);t.ITEMS_SELECT_ACTION=M.ITEMS_SELECT_ACTION;var R=n(66);t.REMOVE_ITEM_ACTION=R.REMOVE_ITEM_ACTION;var j=n(69);t.RESIZE_ITEM_ACTION=j.RESIZE_ITEM_ACTION;var F=n(70);t.SERIES_ACTION=F.SERIES_ACTION;var A=n(65);t.SHOW_OCCURRENCE_DIALOG_ACTION=A.SHOW_OCCURRENCE_DIALOG_ACTION;var L=n(67);t.SHOW_REMOVE_DIALOG_ACTION=L.SHOW_REMOVE_DIALOG_ACTION;var V=n(36);t.SLOTS_SELECT_ACTION=V.SLOTS_SELECT_ACTION},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),s=n(7),l=n(2),u=n(13),c=n(15),d=n(4),p=n(49),f=n(74),h=n(75),m=n(3),v=n(50),g=n(5),y=n(11),b=n(76),k=n(77),C=n(79),O=n(19),w=n(2),E=n(80);!function(e){e[e.create=0]="create",e[e.update=1]="update",e[e.remove=2]="remove"}(o=t.DATA_ACTION||(t.DATA_ACTION={})),t.Scheduler=i.forwardRef((function(e,t){w.validatePackage(E.packageMetadata);var n=e.timezone,a=e.onDataChange,p=i.useRef(null),v=i.useRef(null);i.useImperativeHandle(v,(function(){return{props:e,element:p.current}})),i.useImperativeHandle(t,(function(){return v.current}));var D=l.useRtl(p),x=d.useInternationalization(),I=d.useLocalization(),T=i.useMemo((function(){return s.getModelFields(e.modelFields)}),[e.modelFields]).fields,_=c.useControlledState(e.defaultDate||S.defaultDate,e.date,e.onDateChange),P=_[0],N=_[1],M=i.Children.toArray(e.children||[]),R=c.useControlledState(e.defaultView||M[0]&&M[0].props.name||"day",e.view,e.onViewChange),j=R[0],F=R[1],A=c.useControlledState(!0),L=A[0],V=A[1],B=M.find((function(e){return e.props.name===j}))||M[0]||i.createElement(O.DayView,null),z=e.data||S.data,H=s.toSchedulerGroups(e.group,e.resources),U=e.group&&e.group.orientation?e.group.orientation:"horizontal",K=B.props.selectedDateFormat||"{0:D}",W=B.props.selectedShortDateFormat||"{0:d}",q=B.props.slotDuration,Y=void 0!==B.props.dateRange?"function"==typeof B.props.dateRange?B.props.dateRange.call(void 0,{intl:x,date:P,timezone:n,numberOfDays:B.props.numberOfDays,workWeekStart:B.props.workWeekStart||x.firstDay(),workWeekEnd:B.props.workWeekEnd||(x.firstDay()+B.props.numberOfDays)%6}):B.props.dateRange:{start:S.defaultDate,end:S.defaultDate},G=i.useCallback((function(e){var t=e.created,n=void 0===t?[]:t,r=e.updated,o=void 0===r?[]:r,i=e.deleted;if(a){var s={created:n,updated:o,deleted:void 0===i?[]:i};a.call(void 0,s)}}),[a]),Z=i.useCallback((function(e){var t=[e.dataItem];G({created:t})}),[G]),X=i.useCallback((function(e){var t=[],n=[];if(e.series)if(Array.isArray(e.dataItem))e.dataItem.map((function(t){var r=l.clone(s.findMaster(e.dataItem,T,z)),o=l.clone(t);s.setField(o,T.originalStart,s.getField(r,T.originalStart)),s.setField(o,T.recurrenceId,s.getField(r,T.recurrenceId)),s.setField(o,T.recurrenceExceptions,s.getField(r,T.recurrenceExceptions)),n.push(o)}));else{var r=l.clone(s.findMaster(e.dataItem,T,z)),o=l.clone(e.dataItem);s.setField(o,T.originalStart,s.getField(r,T.originalStart)),s.setField(o,T.recurrenceId,s.getField(r,T.recurrenceId)),s.setField(o,T.recurrenceExceptions,s.getField(r,T.recurrenceExceptions)),n.push(o)}else if(Array.isArray(e.dataItem))e.dataItem.map((function(e){var r=null!==s.getField(e,T.recurrenceRule)&&void 0!==s.getField(e,T.recurrenceRule);if(null!==s.getField(e,T.recurrenceId)&&void 0!==s.getField(e,T.recurrenceId)&&r){var o=l.clone(s.findMaster(e,T,z)),i=s.getField(e,T.originalStart),a=s.getField(o,T.recurrenceExceptions)||[];s.setField(o,T.recurrenceExceptions,a.concat([i])),s.setField(e,T.recurrenceRule,null),n.push(o),t.push(e)}else n.push(e)}));else{var i=null!==s.getField(e.dataItem,T.recurrenceRule)&&void 0!==s.getField(e.dataItem,T.recurrenceRule);if(null!==s.getField(e.dataItem,T.recurrenceId)&&void 0!==s.getField(e.dataItem,T.recurrenceId)&&i){r=l.clone(s.findMaster(e.dataItem,T,z));var a=s.getField(e.dataItem,T.originalStart),u=s.getField(r,T.recurrenceExceptions)||[];s.setField(r,T.recurrenceExceptions,u.concat([a])),s.setField(e.dataItem,T.recurrenceRule,null),n.push(r),t.push(e.dataItem)}else n.push(e.dataItem)}G({updated:n,created:t})}),[G,T,z]),Q=i.useCallback((function(e){var t=[],n=[];if(e.series){var r=l.clone(s.findMaster(e.dataItem,T,z)),o=l.clone(e.dataItem);s.setField(o,T.originalStart,s.getField(r,T.originalStart)),s.setField(o,T.recurrenceId,s.getField(r,T.recurrenceId)),s.setField(o,T.recurrenceRule,s.getField(r,T.recurrenceRule)),s.setField(o,T.recurrenceExceptions,s.getField(r,T.recurrenceExceptions)),n.push(o)}else{if(null!==s.getField(e.dataItem,T.recurrenceRule)&&void 0!==s.getField(e.dataItem,T.recurrenceRule)){r=l.clone(s.findMaster(e.dataItem,T,z));var i=s.getField(e.dataItem,T.originalStart),a=s.getField(r,T.recurrenceExceptions)||[];s.setField(r,T.recurrenceExceptions,a.concat([i])),s.setField(e.dataItem,T.recurrenceRule,null),t.push(r)}else n.push(e.dataItem)}G({updated:t,deleted:n})}),[G,T,z]),$=i.useCallback((function(e){switch(e.type){case o.create:Z(e);break;case o.update:X(e);break;case o.remove:Q(e)}}),[Z,Q,X]),J=i.useCallback((function(e,t){F(e,r({},t,{target:v.current}))}),[F,v]),ee=i.useCallback((function(e,t){N(e,r({},t,{target:v.current}))}),[N,v]),te=i.useCallback((function(e){e.value&&N(e.value,r({},e,{target:v.current,nativeEvent:e.nativeEvent}))}),[N,v]),ne=i.useCallback((function(e){e.preventDefault();var t=B.props.numberOfDays||1,n=t>27?m.addMonths(P,Math.round(t/27)):m.addDays(P,t);N(n,event)}),[P,N,B.props.numberOfDays]),re=i.useCallback((function(e){e.preventDefault();var t=B.props.numberOfDays||1,n=t>27?m.addMonths(P,-Math.round(t/27)):m.addDays(P,-t);N(n,event)}),[P,N,B.props.numberOfDays]),oe=i.useCallback((function(e){e.preventDefault();var t=s.getToday();N(t,event)}),[N]),ie=i.useCallback((function(){V(!L)}),[V,L]),ae=i.useCallback((function(){p.current&&(p.current.style.boxShadow="0 0.5px 0.5px 0.5px rgba(0, 0, 0, .12)")}),[p]),se=i.useCallback((function(){p.current&&(p.current.style.boxShadow="")}),[p]),le=i.useMemo((function(){return r({},e.style,{height:e.height})}),[e.height,e.style]),ue=i.useMemo((function(){return l.classNames({"k-rtl":void 0!==e.rtl?e.rtl:"rtl"===D},"k-widget k-scheduler k-scheduler-flex k-floatwrap",e.className)}),[e.className,e.rtl,D]),ce=I.toLanguageString(y.today,y.messages[y.today]),de=I.toLanguageString(y.previousTitle,y.messages[y.previousTitle]),pe=I.toLanguageString(y.nextTitle,y.messages[y.nextTitle]),fe=B.props.header||e.header||S.header,he=B.props.footer||e.footer||S.footer,me=f.SchedulerNavigation,ve=h.SchedulerViewSelector;return i.createElement(u.SchedulerContext,{element:p,props:e,views:M,fields:T,groups:H,dateRange:Y,orientation:U,dateFormat:{dateFormat:K,shortDateFormat:W},date:[P,ee],activeView:[j,J],data:[z,$]},i.createElement("div",{ref:p,id:e.id,style:le,className:ue,tabIndex:e.tabIndex,dir:D,role:e.role,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,onFocus:ae,onBlur:se},i.createElement(fe,null,i.createElement(me,null,i.createElement(g.ButtonGroup,{className:"k-scheduler-navigation"},i.createElement(g.Button,{role:"button",tabIndex:-1,title:ce,"aria-label":ce,onClick:oe},ce),i.createElement(g.Button,{role:"button",tabIndex:-1,className:"k-button-icon",title:de,"aria-label":de,onClick:re},i.createElement("span",{className:"k-icon k-i-arrow-60-left"})),i.createElement(g.Button,{role:"button",tabIndex:-1,className:"k-button-icon",title:pe,"aria-label":pe,onClick:ne},i.createElement("span",{className:"k-icon k-i-arrow-60-right"})))),i.createElement(b.NavigationDatePicker,{value:P,onChange:te}),i.createElement(g.ToolbarSpacer,null),i.createElement(ve,null,i.createElement(k.ViewSelectorList,null))),B&&i.createElement(B.type,r({editable:e.editable,key:B.props.name,item:e.item,viewItem:e.viewItem,editItem:e.editItem,task:e.task,viewTask:e.viewTask,editTask:e.viewTask,slot:e.slot,viewSlot:e.viewSlot,editSlot:e.editSlot,form:e.form,onDataAction:$,showWorkHours:L},B.props)),i.createElement(he,null,q&&q<1440&&i.createElement(C.BusinessHours,null,i.createElement(g.Button,{tabIndex:-1,onClick:ie},i.createElement("span",{className:"k-icon k-i-clock"})," ",I.toLanguageString(L?y.showFullDay:y.showWorkDay,y.messages[L?y.showFullDay:y.showWorkDay]))))))}));var S={data:[],height:600,tabIndex:-1,editable:!1,defaultDate:new Date,header:p.SchedulerHeader,footer:v.SchedulerFooter,navigation:f.SchedulerNavigation,viewSelector:h.SchedulerViewSelector};t.Scheduler.propTypes={data:a.array,editable:a.oneOfType([a.bool,a.shape({add:a.bool,drag:a.bool,edit:a.bool,remove:a.bool,resize:a.bool})]),view:a.string,defaultView:a.string,date:a.any,defaultDate:a.any,rtl:a.bool,height:a.oneOfType([a.number,a.string]),children:a.any,timezone:a.string,group:a.any,resources:a.any,modelFields:a.shape({id:a.string,start:a.string,startTimezone:a.string,end:a.string,endTimezone:a.string,isAllDay:a.string,title:a.string,description:a.string,recurrenceRule:a.string,recurrenceId:a.string,recurrenceException:a.string})},t.Scheduler.defaultProps=S,t.Scheduler.displayName="KendoReactScheduler"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.SchedulerResourceIteratorContext=r.createContext({resource:{},groupIndex:0}),t.useSchedulerResourceIteratorContext=function(){return r.useContext(t.SchedulerResourceIteratorContext)}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(2),s=n(20),l=n(7),u=n(40),c=n(60),d=n(14),p=n(15),f=n(13),h=n(10),m=n(52),v=n(36);t.SchedulerEditSlot=i.forwardRef((function(e,t){var n=e._ref,u=e.onDataAction,c=e.viewSlot,y=e.form,b=e.formItem,k=(e.onFormItemChange,o(e,["_ref","onDataAction","viewSlot","form","formItem","onFormItemChange"])),C=i.useState(e.tabIndex),O=C[0],w=C[1],E=i.useRef(null),S=i.useRef(null);i.useImperativeHandle(S,(function(){return{props:e}})),i.useImperativeHandle(t,(function(){return S.current})),i.useImperativeHandle(n,(function(){return E.current}));var D=d.useEditable(e.editable),x=f.useSchedulerFieldsContext(),I=h.useSchedulerViewSlotsContext()[0],T=h.useSchedulerViewItemsContext()[0],_=h.useSchedulerViewSelectedSlotsContext(),P=_[0],N=_[1],M=h.useSchedulerViewFocusedSlotsContext()[1],R=y||g.form,j=c||g.viewSlot,F=p.useControlledState(null,b,e.onFormItemChange),A=F[0],L=F[1],V=P.some((function(t){return Boolean(t.current&&t.current.props.start.getTime()===e.start.getTime()&&t.current.props.end.getTime()===e.end.getTime()&&t.current.props.index===e.index&&t.current.props.group.index===e.group.index&&t.current.props.range.index===e.range.index&&t.current.props.isAllDay===e.isAllDay)})),B=i.useCallback((function(){var t={};if(l.setField(t,x.start,new Date(e.start.getTime())),l.setField(t,x.end,new Date(e.end.getTime())),l.setField(t,x.isAllDay,e.isAllDay),e.group.resources.length)for(var n=0;n<e.group.resources.length;n++){var r=e.group.resources[n];if(l.isGroupped(e.group.resources)){var o=l.getField(e.group.resources[n],r.valueField);l.setField(t,r.field,r.multiple?[o]:o)}else l.setField(t,r.field,r.multiple?[]:void 0)}return t}),[x.start,x.end,x.isAllDay,e.start,e.end,e.isAllDay,e.group.resources]),z=i.useCallback((function(t){D.select&&N({type:v.SLOTS_SELECT_ACTION.select,slot:E},t.syntheticEvent),e.onFocus&&e.onFocus.call(void 0,t)}),[N,D.select,e.onFocus]),H=i.useCallback((function(t){if(D.add){var n=B();L(n,t)}e.onDoubleClick&&e.onDoubleClick.call(void 0,t)}),[B,D.add,e.onDoubleClick,L]),U=i.useCallback((function(e){var t;switch(e.syntheticEvent.keyCode){case a.Keys.left:if(!I)return;e.syntheticEvent.preventDefault(),M({type:d.SLOTS_FOCUS_ACTION.left,slot:E},e.syntheticEvent);break;case a.Keys.right:if(!I)return;e.syntheticEvent.preventDefault(),M({type:d.SLOTS_FOCUS_ACTION.right,slot:E},e.syntheticEvent);break;case a.Keys.up:if(!I)return;e.syntheticEvent.preventDefault(),M({type:d.SLOTS_FOCUS_ACTION.up,slot:E},e.syntheticEvent);break;case a.Keys.down:if(!I)return;e.syntheticEvent.preventDefault(),M({type:d.SLOTS_FOCUS_ACTION.down,slot:E},e.syntheticEvent);break;case a.Keys.enter:if(!I||!D.add)return;var n=B();L(n);break;case a.Keys.tab:t=l.findFirstItem(e.target)}t&&(e.syntheticEvent.preventDefault(),t.element&&t.element.focus())}),[B,M,D.add,L,I]),K=i.useCallback((function(e){u&&u.call(void 0,{type:s.DATA_ACTION.create,series:!1,dataItem:e.value},e),L(null,e.syntheticEvent)}),[u,L]),W=i.useCallback((function(e){L(null,e.syntheticEvent)}),[L]),q=i.useCallback((function(e){L(null,e)}),[L]),Y=i.useCallback((function(e,t){L&&L(e,t)}),[L]);return i.useEffect((function(){var t=I.length&&I[0].current===E.current;w(void 0!==e.tabIndex?null===e.tabIndex?void 0:e.tabIndex:0===P.length&&t&&0===T.length?0:void 0)}),[T,e.tabIndex,P.length,I]),i.createElement(m.SchedulerEditSlotContext,{props:e,form:[A,Y]},i.createElement(j,r({},k,{_ref:E,selected:V,tabIndex:O,onFocus:z,onDoubleClick:H,onKeyDown:U})),A&&i.createElement(R,{dataItem:A,onSubmit:K,onClose:q,onCancel:W}))}));var g={viewSlot:c.SchedulerViewSlot,form:u.SchedulerForm};t.SchedulerEditSlot.defaultProps=g,t.SchedulerEditSlot.displayName="KendoReactSchedulerEditSlot"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(14),i=n(2),a=n(54),s=n(35),l=n(36),u=n(2);t.BaseView=r.forwardRef((function(e,t){var n=r.useRef(null);r.useImperativeHandle(t,(function(){return n.current}));var c=u.useCollection([]),d=c[0],p=c[1],f=u.useCollection([]),h=f[0],m=f[1],v=o.useItemsFocus(d),g=v[0],y=v[1],b=o.useSlotsFocus(h),k=b[0],C=b[1],O=s.useItemsSelection(d),w=O[0],E=O[1],S=l.useSlotsSelection(h),D=S[0],x=S[1],I=r.useCallback((function(e,t){x({type:l.SLOTS_SELECT_ACTION.reset}),E(e,t)}),[E,x]),T=r.useCallback((function(e,t){E({type:s.ITEMS_SELECT_ACTION.reset},t),x(e)}),[E,x]),_=r.useMemo((function(){return i.classNames("k-scheduler-layout k-scheduler-layout-flex",e.className)}),[e.className]);return o.useCellSync({element:n,selector:".k-group-cell",attribute:"data-depth-index",explicitDepth:!0}),o.useCellSync({element:n,selector:".k-side-cell",attribute:"data-depth-index",explicitDepth:!1}),r.createElement(a.SchedulerViewContext,{props:e.props,ranges:e.ranges,items:[d,p],slots:[h,m],selectedItems:[w,I],selectedSlots:[D,T],focusedItems:[g,y],focusedSlots:[k,C]},r.createElement("div",{ref:n,style:e.style,className:_,role:"presentation"},e.children))})),t.BaseView.displayName="KendoReactSchedulerBaseView"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(17),i=n(21);t.VerticalResourceIterator=function(e){var t=e.nested,n=e.wrapGroup,i=e.children,c=e.cellContent||p,d=o.toGroupResources(e.group,e.resources);return r.createElement("div",{className:"k-scheduler-group"},t?n?r.createElement("div",{className:"k-scheduler-row"},r.createElement("div",{className:"k-sticky-cell"},l({resources:d,children:i,cellContent:c,depth:0,groupIndex:0})),r.createElement("div",{className:"k-scheduler-cell k-group-content"},s({resources:d,children:i,cellContent:c,depth:0,groupIndex:0},!1))):s({resources:d,children:i,cellContent:c,depth:0,groupIndex:0},!0):n?r.createElement("div",{className:"k-scheduler-row"},r.createElement("div",{className:"k-sticky-cell"},a({resources:d,children:i,cellContent:c,depth:0,groupIndex:0})),r.createElement("div",{className:"k-scheduler-cell k-group-content"},i)):u({resources:d,children:i,cellContent:c,depth:0,groupIndex:0}))};var a=function(e){return r.createElement("div",{className:"k-scheduler-row"},r.createElement("div",{className:"k-scheduler-row"},e.resources.map((function(e,t){return r.createElement("div",{key:t,className:"k-scheduler-cell k-resource-cell k-heading-cell","data-depth-index":t})}))))},s=function(e,t){void 0===t&&(t=!0);var n=e.resources,o=e.children,a=e.cellContent,l=e.groupIndex,u=e.depth,c=n.length>0;if(u===n.length||!c)return r.createElement(i.SchedulerResourceIteratorContext.Provider,{value:{resource:n[u],groupIndex:c?l:0}},o);var d=n[u].data.length;return n[u].data.map((function(e,i){return r.createElement("div",{key:i,className:"k-scheduler-row"},t&&r.createElement("div",{className:"k-scheduler-cell k-group-cell k-heading-cell","data-depth-index":u},e.text),r.createElement("div",{className:"k-scheduler-cell k-group-content k-resource-row","data-depth-index":u,"data-resource-index":d*l+i},s({resources:n,children:o,cellContent:a,groupIndex:d*l+i,depth:u+1},t)))}))},l=function(e){var t=e.resources,n=e.children,o=e.cellContent,i=e.groupIndex,a=e.depth,s=t.length?t[a].data.length:0;return t[a]?t[a].data.map((function(e,u){return r.createElement("div",{key:u,className:"k-scheduler-row"},r.createElement("div",{className:"k-scheduler-cell k-resource-cell k-resource-row k-heading-cell","data-depth-index":a,"data-resource-index":s*i+u},e.text),a+1!==t.length&&r.createElement("div",{className:"k-scheduler-cell k-resource-content"},l({resources:t,children:n,cellContent:o,groupIndex:s*i+u,depth:a+1})))})):null},u=function(e){var t=e.resources,n=e.children,o=e.groupIndex,i=e.cellContent;return r.createElement("div",{className:"k-scheduler-row"},d(t),i,c(n,t,o))},c=function(e,t,n){var o=t.length>0;return r.createElement("div",{className:"k-scheduler-cell k-group-content"},r.createElement(i.SchedulerResourceIteratorContext.Provider,{value:{resource:t[n],groupIndex:o?n:void 0}},e))},d=function(e){return e.map((function(e,t){return r.createElement("div",{key:t,className:"k-scheduler-cell k-group-cell k-heading-cell","data-depth-index":t})}))};t.VerticalResourceIterator.displayName="KendoReactSchedulerVerticalResourceIterator";var p=null},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3);t.toRanges=function(e,t){for(var n=t.step,o=t.timezone,i=[],a=r.ZonedDate.fromLocalDate(e.start,o),s=r.ZonedDate.fromLocalDate(e.end,o),l=a.clone(),u=0;l.getTime()<s.getTime();u++,l=l.addTime(n)){var c=l.clone(),d=c.clone().addTime(n),p=new Date(c.getTime()),f={index:u,end:new Date(d.getTime()),start:p,zonedStart:c,zonedEnd:d};i.push(f)}return i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(44),i=n(3),a=n(7);t.toOccurrences=function(e,t){var n=t.dateRange,r=t.fields,o=t.timezone;return e.map(s(r)).reduce(l(n,o,r),[]).filter((function(e){return!a.isMaster(e.dataItem,r)}))};var s=function(e){return function(t){return{uid:r.getter(e.id||"id")(t),start:r.getter(e.start||"start")(t),startTimezone:r.getter(e.startTimezone||"startTimezone")(t),originalStart:r.getter(e.originalStart||"originalStart")(t),end:r.getter(e.end||"end")(t),endTimezone:r.getter(e.endTimezone||"endTimezone")(t),isAllDay:r.getter(e.isAllDay||"isAllDay")(t),title:r.getter(e.title||"title")(t),description:r.getter(e.description||"description")(t),occurrenceId:r.getter("occurrenceId")(t),recurrenceRule:r.getter(e.recurrenceRule||"recurrenceRule")(t),recurrenceExceptions:r.getter(e.recurrenceExceptions||"recurrenceExceptions")(t),recurrenceId:r.getter(e.recurrenceId||"recurrenceId")(t),dataItem:r.clone(t)}}},l=function(e,t,n){return function(r,o){return r.concat(Boolean(o.recurrenceRule)&&Boolean(null===o.recurrenceId||void 0===o.recurrenceId)&&a.isMaster(o.dataItem,n)?u(o,{dateRange:e,timezone:t,fields:n}).slice():[o])}},u=function(e,t){var n=t.dateRange,s=t.timezone,l=t.fields,u=e.recurrenceRule,c=o.parseRule({recurrenceRule:u});c.start||(c.start=i.ZonedDate.fromLocalDate(e.start,s)),c.end||(c.end=i.ZonedDate.fromLocalDate(e.end,s));var d=e.recurrenceExceptions;d&&(c.exceptionDates=d.map((function(e){return i.ZonedDate.fromLocalDate(e,s)})));var p=a.toUTCDateTime(n.start),f=a.toUTCDateTime(n.end),h=o.expand(c,{rangeStart:i.ZonedDate.fromUTCDate(p,s),rangeEnd:i.ZonedDate.fromUTCDate(f,s)});return h.events.length?h.events.map((function(t,n){var o=r.clone(e),i=r.clone(e.dataItem);return o.recurrenceId=o.uid,a.setField(i,l.recurrenceId,e.uid),o.originalStart=t.start.toLocalDate(),a.setField(i,l.originalStart,t.start.toLocalDate()),o.start=t.start.toLocalDate(),a.setField(i,l.start,t.start.toLocalDate()),o.end=t.end.toLocalDate(),a.setField(i,l.end,t.end.toLocalDate()),o.occurrenceId=String(n),a.setField(i,"occurrenceId",String(n)),o.dataItem=i,o})):[]}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(7),a=n(46),s=n(3);t.toItems=function(e,n,i){var u=n.timezone,c=i.groups,d=i.ranges,p=[];return a.orderBy(e,[{field:"start",dir:"asc"},{field:"end",dir:"desc"},{field:"isAllDay",dir:"desc"}]).forEach((function(e){c.forEach((function(n){var i=1===c.length?l(e,n):n;t.inGroup(e,i)&&d.forEach((function(n){if(t.inRange(e,n)){var a=o.createRef(),l=o.createRef(),c=n.end<e.end,d=e.start<n.start,f=s.ZonedDate.fromLocalDate(e.start,u),h=s.ZonedDate.fromLocalDate(e.end,u),m=r({},e,{_ref:l,itemRef:a,head:c,tail:d,order:null,zonedStart:f,zonedEnd:h,group:i,range:n,slots:[],isRecurring:Boolean(e.recurrenceRule),isException:Boolean(!e.recurrenceRule&&null!==e.recurrenceId&&void 0!==e.recurrenceId),isAllDay:Boolean(e.isAllDay)});p.push(m)}}))}))})),p};var l=function(e,t){return{index:0,resources:t.resources.filter((function(t){return u(e,t)}))}},u=function(e,t){return t.multiple?(e.dataItem[t.field]||[]).some((function(e){return t[t.valueField]===e})):e.dataItem[t.field]===t[t.valueField]};t.inGroup=function(e,t){return!t.resources.some((function(t){return t.multiple?!e.dataItem[t.field].some((function(e){return t[t.valueField]===e})):e.dataItem[t.field]!==t[t.valueField]}))},t.inSlot=function(e,t){return i.intersects(t.start,t.end,e.start,e.end)},t.inRange=function(e,t){return i.intersects(t.start,t.end,e.start,e.end)&&(void 0===t.isAllDay||void 0===e.isAllDay||e.isAllDay===t.isAllDay)}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(27)),r(n(37)),r(n(26)),r(n(25))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(39),a=n(40),s=n(38),l=n(2),u=n(62),c=n(64),d=n(31),p=n(14),f=n(10),h=n(51),m=n(103),v=n(65),g=n(66),y=n(67),b=n(68),k=n(69),C=n(70),O=n(35);t.SchedulerEditItem=o.forwardRef((function(e,t){var n=e._ref,i=e.itemRef,a=e.onDataAction,s=e.ignoreIsAllDay,l=e.viewItem,u=e.series,c=e.onSeriesChange,d=e.form,E=e.formItem,S=e.onFormItemChange,D=e.drag,x=e.dragItem,I=e.onDragItemChange,T=e.resize,_=e.resizeItem,P=e.onResizeItemChange,N=e.removeDialog,M=e.removeItem,R=e.onRemoveItemChange,j=e.occurrenceDialog,F=e.showOccurrenceDialog,A=e.onShowOccurrenceDialogChange,L=e.showRemoveDialog,V=e.onShowRemoveDialogChange,B=e.onFocus,z=e.onFocusAction,H=e.onMouseDown,U=e.onMouseDownAction,K=e.onMouseUp,W=e.onMouseUpAction,q=e.onClick,Y=e.onClickAction,G=e.onDoubleClick,Z=e.onDoubleClickAction,X=e.onRemoveClick,Q=e.onRemoveClickAction,$=e.onPress,J=e.onPressAction,ee=e.onDrag,te=e.onDragAction,ne=e.onRelease,re=e.onReleaseAction,oe=e.onResizePress,ie=e.onResizePressAction,ae=e.onResizeStartDrag,se=e.onResizeStartDragAction,le=e.onResizeEndDrag,ue=e.onResizeEndDragAction,ce=e.onResizeRelease,de=e.onResizeReleaseAction,pe=e.onOccurrenceClick,fe=e.onOccurrenceClickAction,he=e.onSeriesClick,me=e.onSeriesClickAction,ve=e.onKeyDown,ge=e.onKeyDownAction,ye=e.onKeyUp,be=e.onKeyUpAction,ke=e.onRemoveConfirm,Ce=e.onRemoveConfirmAction,Oe=e.onFormSubmit,we=e.onFormSubmitAction,Ee=e.onCancel,Se=e.onCancelAction,De=o.useState(e.tabIndex),xe=De[0],Ie=De[1],Te=o.useRef(null),_e=o.useRef(null);o.useImperativeHandle(Te,(function(){return{props:e,element:_e.current&&_e.current.element}})),o.useImperativeHandle(t,(function(){return Te.current})),o.useImperativeHandle(n,(function(){return _e.current})),o.useImperativeHandle(i,(function(){return _e.current}));var Pe=l||w.viewItem,Ne=D||w.drag,Me=T||w.resize,Re=d||w.form,je=j||w.occurrenceDialog,Fe=N||w.removeDialog,Ae=p.useEditable(e.editable),Le=f.useSchedulerViewSelectedItemsContext(),Ve=Le[0],Be=Le[1],ze=C.useSeries(null,u,c),He=ze[0],Ue=ze[2],Ke=m.useFormItem({series:He,onDataAction:a},[null,E,S]),We=Ke[0],qe=Ke[1],Ye=Ke[2],Ge=b.useDragItem({dataItem:e.dataItem,ignoreIsAllDay:e.ignoreIsAllDay,isAllDay:e.isAllDay,onDataAction:a},[null,x,I]),Ze=Ge[0],Xe=Ge[1],Qe=Ge[2],$e=k.useResizeItem({dataItem:e.dataItem,onDataAction:a},[null,_,P]),Je=$e[0],et=$e[1],tt=$e[2],nt=g.useRemoveItem({series:He,onDataAction:a},[null,M,R]),rt=nt[0],ot=nt[1],it=nt[2],at=y.useShowRemoveDialog(!1,L,V),st=at[0],lt=at[1],ut=at[2],ct=v.useShowOccurrenceDialog(!1,F,A),dt=ct[0],pt=ct[1],ft=ct[2],ht=f.useSchedulerViewItemsContext()[0],mt=f.useSchedulerViewFocusedItemsContext()[1],vt=f.useSchedulerViewFocusedSlotsContext()[1],gt=Boolean(Ve&&Ve.some((function(e){return e.current===_e.current}))),yt=o.useMemo((function(){return{selected:gt,series:He,formItem:We,dragItem:Ze,resizeItem:Je,removeItem:rt,showRemoveDialog:st,showOccurrenceDialog:dt}}),[Ze,We,rt,Je,gt,He,dt,st]),bt=o.useMemo((function(){var e;return(e={})[C.SERIES_ACTION.set]=Ue,e[C.SERIES_ACTION.toggle]=Ue,e[C.SERIES_ACTION.reset]=Ue,e[O.ITEMS_SELECT_ACTION.select]=Be,e[O.ITEMS_SELECT_ACTION.add]=Be,e[O.ITEMS_SELECT_ACTION.remove]=Be,e[O.ITEMS_SELECT_ACTION.reset]=Be,e[O.ITEMS_SELECT_ACTION.selectNext]=Be,e[O.ITEMS_SELECT_ACTION.selectPrev]=Be,e[m.FORM_ITEM_ACTION.set]=Ye,e[m.FORM_ITEM_ACTION.setMaster]=Ye,e[m.FORM_ITEM_ACTION.reset]=Ye,e[m.FORM_ITEM_ACTION.complete]=Ye,e[g.REMOVE_ITEM_ACTION.set]=it,e[g.REMOVE_ITEM_ACTION.reset]=it,e[g.REMOVE_ITEM_ACTION.complete]=it,e[v.SHOW_OCCURRENCE_DIALOG_ACTION.close]=ft,e[v.SHOW_OCCURRENCE_DIALOG_ACTION.open]=ft,e[v.SHOW_OCCURRENCE_DIALOG_ACTION.set]=ft,e[v.SHOW_OCCURRENCE_DIALOG_ACTION.toggle]=ft,e[v.SHOW_OCCURRENCE_DIALOG_ACTION.reset]=ft,e[y.SHOW_REMOVE_DIALOG_ACTION.close]=ut,e[y.SHOW_REMOVE_DIALOG_ACTION.open]=ut,e[y.SHOW_REMOVE_DIALOG_ACTION.set]=ut,e[y.SHOW_REMOVE_DIALOG_ACTION.toggle]=ut,e[y.SHOW_REMOVE_DIALOG_ACTION.reset]=ut,e[b.DRAG_ITEM_ACTION.start]=Qe,e[b.DRAG_ITEM_ACTION.drag]=Qe,e[b.DRAG_ITEM_ACTION.complete]=Qe,e[b.DRAG_ITEM_ACTION.completeOccurrence]=Qe,e[b.DRAG_ITEM_ACTION.completeSeries]=Qe,e[b.DRAG_ITEM_ACTION.set]=Qe,e[b.DRAG_ITEM_ACTION.reset]=Qe,e[b.DRAG_ITEM_ACTION.dragSelected]=Qe,e[k.RESIZE_ITEM_ACTION.start]=tt,e[k.RESIZE_ITEM_ACTION.startDrag]=tt,e[k.RESIZE_ITEM_ACTION.startDragSelected]=tt,e[k.RESIZE_ITEM_ACTION.endDrag]=tt,e[k.RESIZE_ITEM_ACTION.endDragSelected]=tt,e[k.RESIZE_ITEM_ACTION.complete]=tt,e[k.RESIZE_ITEM_ACTION.completeOccurrence]=tt,e[k.RESIZE_ITEM_ACTION.completeSeries]=tt,e[k.RESIZE_ITEM_ACTION.set]=tt,e[k.RESIZE_ITEM_ACTION.reset]=tt,e[p.ITEMS_FOCUS_ACTION.next]=mt,e[p.ITEMS_FOCUS_ACTION.prev]=mt,e[p.SLOTS_FOCUS_ACTION.left]=vt,e[p.SLOTS_FOCUS_ACTION.right]=vt,e[p.SLOTS_FOCUS_ACTION.up]=vt,e[p.SLOTS_FOCUS_ACTION.down]=vt,e.null=function(){},e}),[Qe,Ye,Be,it,tt,Ue,ft,ut,mt,vt]),kt=o.useCallback((function(t){if(z){var n=z(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e})))}B&&B.call(void 0,t)}),[bt,B,z,e,yt]),Ct=o.useCallback((function(t){if(U){var n=U(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e})))}H&&H.call(void 0,t)}),[bt,H,U,e,yt]),Ot=o.useCallback((function(t){if(W){var n=W(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e})))}K&&K.call(void 0,t)}),[bt,K,W,e,yt]),wt=o.useCallback((function(t){if(Y){var n=Y(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e})))}q&&q.call(void 0,t)}),[bt,q,Y,e,yt]),Et=o.useCallback((function(t){if(Z){var n=Z(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e})))}G&&G.call(void 0,t)}),[Z,G,e,bt,yt]),St=o.useCallback((function(t){if(Q){var n=Q(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e})))}X&&X.call(void 0,t)}),[Q,X,e,bt,yt]),Dt=o.useCallback((function(t){if(J){var n=J(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e}),t))}$&&$.call(void 0,t)}),[J,$,e,bt,yt]),xt=o.useCallback((function(t){if(te){var n=te(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r({},n,{item:_e}),t.dragEvent.originalEvent))}ee&&ee.call(void 0,t)}),[te,ee,e,bt,yt]),It=o.useCallback((function(t){if(re){var n=re(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r({},n,{item:_e}),t.dragEvent.originalEvent))}ne&&ne.call(void 0,t)}),[re,ne,e,bt,yt]),Tt=o.useCallback((function(t){if(ie){var n=ie(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r({},n,{item:_e}),t.dragEvent.originalEvent))}oe&&oe.call(void 0,t)}),[ie,oe,e,yt,bt]),_t=o.useCallback((function(t){if(se){var n=se(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r({},n,{item:_e}),t.dragEvent.originalEvent))}ae&&ae.call(void 0,t)}),[ae,se,e,bt,yt]),Pt=o.useCallback((function(t){if(ue){var n=ue(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r({},n,{item:_e}),t.dragEvent.originalEvent))}le&&le.call(void 0,t)}),[le,ue,e,bt,yt]),Nt=o.useCallback((function(t){if(de){var n=de(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r({},n,{item:_e}),t.dragEvent.originalEvent))}ce&&ce.call(void 0,t)}),[de,ce,e,bt,yt]),Mt=o.useCallback((function(t){if(we){var n=we(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e}),t))}Oe&&Oe.call(void 0,t)}),[we,Oe,e,yt,bt]),Rt=o.useCallback((function(t){if(Se){var n=Se(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e}),t))}Ee&&Ee.call(void 0,t)}),[Se,Ee,e,yt,bt]),jt=o.useCallback((function(t){if(fe){var n=fe(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e}),t))}pe&&pe.call(void 0,t)}),[fe,pe,e,yt,bt]),Ft=o.useCallback((function(t){if(me){var n=me(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e}),t))}he&&he.call(void 0,t)}),[me,he,e,yt,bt]),At=o.useCallback((function(t){if(ge){var n=ge(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t.syntheticEvent)})):bt[n.type](r({},n,{item:_e}),t.syntheticEvent))}ve&&ve.call(void 0,t)}),[ge,ve,e,yt,bt]),Lt=o.useCallback((function(t){if(be){var n=be(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t.syntheticEvent)})):bt[n.type](r({},n,{item:_e}),t.syntheticEvent))}ye&&ye.call(void 0,t)}),[be,ye,e,yt,bt]),Vt=o.useCallback((function(t){if(Ce){var n=Ce(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t.syntheticEvent)})):bt[n.type](r({},n,{item:_e}),t.syntheticEvent))}ke&&ke.call(void 0,t)}),[Ce,ke,e,yt,bt]);return o.useEffect((function(){var t=ht.length&&ht[0].current===_e.current;Ie(void 0!==e.tabIndex?null===e.tabIndex?void 0:e.tabIndex:0===Ve.length&&t?0:void 0)}),[ht,e.tabIndex,Ve.length]),o.createElement(h.SchedulerEditItemContext,{props:e,form:[We,qe,Ye],drag:[Ze,Xe,Qe],resize:[Je,et,tt],remove:[rt,ot,it],showRemoveDialog:[st,lt,ut],showOccurrenceDialog:[dt,pt,ft]},o.createElement(Pe,r({},e,{_ref:_e,itemRef:_e,selected:gt,tabIndex:xe,onKeyDown:At,onKeyUp:Lt,onFocus:kt,onMouseUp:Ot,onMouseDown:Ct,onClick:wt,onDoubleClick:Et,onRemoveClick:St,onPress:Dt,onDrag:xt,onRelease:It,onResizePress:Tt,onResizeEndDrag:Pt,onResizeStartDrag:_t,onResizeRelease:Nt})),Ze&&Ae.drag&&(Array.isArray(Ze)?Ze.map((function(t,n){return o.createElement(Ne,{key:n,ignoreIsAllDay:s,dataItem:t,vertical:e.vertical,viewItem:Pe,item:e.item})})):o.createElement(Ne,{ignoreIsAllDay:s,dataItem:Ze,vertical:e.vertical,viewItem:Pe,item:e.item})),Je&&Ae.resize&&(Array.isArray(Je)?Je.map((function(t,n){return o.createElement(Me,{key:n,format:e.format,ignoreIsAllDay:s,dataItem:t,viewItem:e.viewItem,item:e.item,vertical:e.vertical})})):o.createElement(Me,{format:e.format,ignoreIsAllDay:s,dataItem:Je,viewItem:e.viewItem,item:e.item,vertical:e.vertical})),We&&!dt&&Ae.edit&&o.createElement(Re,{dataItem:We,onSubmit:Mt,onClose:Rt,onCancel:Rt}),dt&&o.createElement(je,{dataItem:We||Ze||Je||rt,isRemove:null!==rt,onClose:Rt,onOccurrenceClick:jt,onSeriesClick:Ft}),st&&rt&&Ae.remove&&o.createElement(Fe,{dataItem:rt,onClose:Rt,onCancel:Rt,onConfirm:Vt}))}));var w={viewItem:d.SchedulerViewItem,drag:u.SchedulerDrag,resize:c.SchedulerResize,form:a.SchedulerForm,occurrenceDialog:i.SchedulerOccurrenceDialog,removeDialog:s.SchedulerRemoveDialog,onClickAction:function(e,t,n){return[{type:e.syntheticEvent.metaKey||e.syntheticEvent.ctrlKey?!n.selected||n.dragItem||n.resizeItem?O.ITEMS_SELECT_ACTION.add:O.ITEMS_SELECT_ACTION.remove:O.ITEMS_SELECT_ACTION.select}]},onDoubleClickAction:function(e,t){return t.editable?[{type:m.FORM_ITEM_ACTION.set,payload:t.dataItem},t.isRecurring&&{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.open}].filter(Boolean):[]},onRemoveClickAction:function(e,t){return t.editable?[{type:g.REMOVE_ITEM_ACTION.set,payload:t.dataItem},t.isRecurring?{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.open}:{type:y.SHOW_REMOVE_DIALOG_ACTION.open}]:[]},onPressAction:function(e,t){return t.editable?{type:b.DRAG_ITEM_ACTION.start,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onDragAction:function(e,t){return t.editable?{type:e.dragEvent.originalEvent.metaKey||e.dragEvent.originalEvent.ctrlKey?b.DRAG_ITEM_ACTION.dragSelected:b.DRAG_ITEM_ACTION.drag,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onReleaseAction:function(e,t,n){return t.editable&&n.dragItem?t.isRecurring&&!t.isException&&null===n.series?{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.open}:{type:t.isRecurring?n.series?b.DRAG_ITEM_ACTION.completeSeries:b.DRAG_ITEM_ACTION.completeOccurrence:b.DRAG_ITEM_ACTION.complete,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onResizePressAction:function(e,t){return t.editable?{type:k.RESIZE_ITEM_ACTION.start,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onResizeStartDragAction:function(e,t){return t.editable?{type:e.dragEvent.originalEvent.metaKey||e.dragEvent.originalEvent.ctrlKey?k.RESIZE_ITEM_ACTION.startDragSelected:k.RESIZE_ITEM_ACTION.startDrag,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onResizeEndDragAction:function(e,t){return t.editable?{type:e.dragEvent.originalEvent.metaKey||e.dragEvent.originalEvent.ctrlKey?k.RESIZE_ITEM_ACTION.endDragSelected:k.RESIZE_ITEM_ACTION.endDrag,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onResizeReleaseAction:function(e,t,n){return t.editable&&n.resizeItem?t.isRecurring&&!t.isException&&null===n.series?{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.open}:{type:t.isRecurring?n.series?k.RESIZE_ITEM_ACTION.completeSeries:k.RESIZE_ITEM_ACTION.completeOccurrence:k.RESIZE_ITEM_ACTION.complete,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onOccurrenceClickAction:function(e,t,n){return n.dragItem?[{type:b.DRAG_ITEM_ACTION.completeOccurrence},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.resizeItem?[{type:k.RESIZE_ITEM_ACTION.completeOccurrence},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.formItem?[{type:C.SERIES_ACTION.set,payload:!1},{type:m.FORM_ITEM_ACTION.set,payload:t.dataItem},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.removeItem?[{type:C.SERIES_ACTION.set,payload:!1},{type:g.REMOVE_ITEM_ACTION.set,payload:t.dataItem},{type:y.SHOW_REMOVE_DIALOG_ACTION.open},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:void 0},onSeriesClickAction:function(e,t,n){return n.dragItem?[{type:b.DRAG_ITEM_ACTION.completeSeries},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.resizeItem?[{type:k.RESIZE_ITEM_ACTION.completeSeries},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.formItem?[{type:C.SERIES_ACTION.set,payload:!0},{type:m.FORM_ITEM_ACTION.setMaster,payload:t.dataItem},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.removeItem?[{type:C.SERIES_ACTION.set,payload:!0},{type:g.REMOVE_ITEM_ACTION.set,payload:t.dataItem},{type:y.SHOW_REMOVE_DIALOG_ACTION.open},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:void 0},onKeyDownAction:function(e,t){switch(e.syntheticEvent.keyCode){case l.Keys.enter:return[{type:m.FORM_ITEM_ACTION.set,payload:t.dataItem},t.isRecurring&&{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.open}];case l.Keys.tab:return[{type:e.syntheticEvent.shiftKey?p.ITEMS_FOCUS_ACTION.prev:p.ITEMS_FOCUS_ACTION.next,ignoreIsAllDay:t.ignoreIsAllDay},{type:e.syntheticEvent.shiftKey?O.ITEMS_SELECT_ACTION.selectPrev:O.ITEMS_SELECT_ACTION.selectNext,ignoreIsAllDay:t.ignoreIsAllDay}];case l.Keys.up:return[Boolean(t.slots.length&&t.slots[0]._ref.current)&&{type:p.SLOTS_FOCUS_ACTION.up,slot:t.slots[0]._ref}];case l.Keys.right:return[Boolean(t.slots.length&&t.slots[0]._ref.current)&&{type:p.SLOTS_FOCUS_ACTION.right,slot:t.slots[0]._ref}];case l.Keys.down:return[Boolean(t.slots.length&&t.slots[t.slots.length-1]._ref.current)&&{type:p.SLOTS_FOCUS_ACTION.down,slot:t.slots[t.slots.length-1]._ref}];case l.Keys.left:return[Boolean(t.slots.length&&t.slots[0]._ref.current)&&{type:p.SLOTS_FOCUS_ACTION.left,slot:t.slots[0]._ref}];default:return}},onFormSubmitAction:function(e){return{type:m.FORM_ITEM_ACTION.complete,payload:e.value}},onRemoveConfirmAction:function(){return[{type:g.REMOVE_ITEM_ACTION.complete},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]},onCancelAction:function(){return[{type:C.SERIES_ACTION.reset},{type:g.REMOVE_ITEM_ACTION.reset},{type:m.FORM_ITEM_ACTION.reset},{type:b.DRAG_ITEM_ACTION.reset},{type:k.RESIZE_ITEM_ACTION.reset},{type:y.SHOW_REMOVE_DIALOG_ACTION.reset},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.reset}]}};t.SchedulerEditItem.defaultProps=w,t.SchedulerEditItem.displayName="KendoReactSchedulerEditItem"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(2),a=n(4),s=n(11),l=n(14),u=n(7);t.SchedulerItem=o.forwardRef((function(e,t){var n=e.onFocus,c=e.onBlur,d=e.onMouseDown,p=e.onClick,f=e.onMouseUp,h=e.onMouseOut,m=e.onMouseOver,v=e.onMouseEnter,g=e.onMouseLeave,y=e.onDoubleClick,b=e.onRemoveClick,k=e.onKeyUp,C=e.onKeyDown,O=e.onKeyPress,w=e.onPress,E=e.onDrag,S=e.onRelease,D=e.onResizePress,x=e.onResizeEndDrag,I=e.onResizeRelease,T=e.onResizeStartDrag,_=l.useSchedulerItem(e,t),P=_.item,N=_.element,M=o.useRef(null),R=o.useRef(null),j=o.useRef(null),F=o.useRef(null),A=l.useEditable(e.editable),L=a.useInternationalization(),V=a.useLocalization().toLanguageString(s.deleteTitle,s.messages[s.deleteTitle]),B=e.group.resources.find((function(e){return Boolean(e.colorField&&""!==e[e.colorField]&&void 0!==e[e.colorField])})),z=B&&B.colorField&&B[B.colorField],H=void 0!==e.tabIndex?null===e.tabIndex?void 0:e.tabIndex:e.selected?0:-1,U=o.useMemo((function(){return i.classNames({"k-event":!e.resizeHint,"k-state-selected":e.selected&&A.select,"k-event-drag-hint":e.dragHint,"k-scheduler-marquee":e.resizeHint,"k-marquee":e.resizeHint,"k-first":e.resizeHint&&!e.tail,"k-last":e.resizeHint&&!e.head},e.className)}),[e.resizeHint,e.selected,e.dragHint,e.tail,e.head,e.className,A.select]),K=o.useMemo((function(){return u.formatEventTime(L,e.zonedStart,e.zonedEnd,e.isAllDay)+", "+e.title}),[L,e.isAllDay,e.title,e.zonedEnd,e.zonedStart]),W=o.useMemo((function(){return r({cursor:"pointer",userSelect:"none",borderColor:e.resizeHint?void 0:z,backgroundColor:e.resizeHint?void 0:z,touchAction:"none"},e.style)}),[z,e.style,e.resizeHint]),q=o.useCallback((function(e){n&&n.call(void 0,{syntheticEvent:e,target:P.current})}),[n,P]),Y=o.useCallback((function(e){c&&c.call(void 0,{syntheticEvent:e,target:P.current})}),[c,P]),G=o.useCallback((function(e){d&&d.call(void 0,{syntheticEvent:e,target:P.current})}),[d,P]),Z=o.useCallback((function(e){p&&p.call(void 0,{syntheticEvent:e,target:P.current})}),[p,P]),X=o.useCallback((function(e){f&&f.call(void 0,{syntheticEvent:e,target:P.current})}),[f,P]),Q=o.useCallback((function(e){m&&m.call(void 0,{syntheticEvent:e,target:P.current})}),[m,P]),$=o.useCallback((function(e){h&&h.call(void 0,{syntheticEvent:e,target:P.current})}),[h,P]),J=o.useCallback((function(e){v&&v.call(void 0,{syntheticEvent:e,target:P.current})}),[v,P]),ee=o.useCallback((function(e){g&&g.call(void 0,{syntheticEvent:e,target:P.current})}),[g,P]),te=o.useCallback((function(e){y&&y.call(void 0,{syntheticEvent:e,target:P.current})}),[y,P]),ne=o.useCallback((function(e){b&&b.call(void 0,{syntheticEvent:e,target:P.current})}),[b,P]),re=o.useCallback((function(e){C&&C.call(void 0,{syntheticEvent:e,target:P.current})}),[C,P]),oe=o.useCallback((function(e){O&&O.call(void 0,{syntheticEvent:e,target:P.current})}),[O,P]),ie=o.useCallback((function(e){k&&k.call(void 0,{syntheticEvent:e,target:P.current})}),[k,P]),ae=o.useCallback((function(e){w&&w.call(void 0,{dragEvent:e,target:P.current})}),[w,P]),se=o.useCallback((function(e){E&&E.call(void 0,{dragEvent:e,target:P.current})}),[E,P]),le=o.useCallback((function(e){S&&S.call(void 0,{dragEvent:e,target:P.current})}),[S,P]),ue=o.useCallback((function(e){D&&D.call(void 0,{dragEvent:e,target:P.current})}),[D,P]),ce=o.useCallback((function(e){T&&T.call(void 0,{dragEvent:e,target:P.current})}),[T,P]),de=o.useCallback((function(e){x&&x.call(void 0,{dragEvent:e,target:P.current})}),[x,P]),pe=o.useCallback((function(e){I&&I.call(void 0,{dragEvent:e,target:P.current})}),[I,P]);return i.useDraggable(N,{onPress:ae,onDrag:se,onRelease:le}),i.useDraggable(M,{onPress:ue,onDrag:de,onRelease:pe}),i.useDraggable(R,{onPress:ue,onDrag:ce,onRelease:pe}),i.useDraggable(j,{onPress:ue,onDrag:ce,onRelease:pe}),i.useDraggable(F,{onPress:ue,onDrag:de,onRelease:pe}),o.createElement("div",{ref:N,id:e.id,style:W,tabIndex:H,className:U,"aria-label":K,"aria-selected":e.selected,onFocus:q,onBlur:Y,onMouseUp:X,onMouseDown:G,onClick:Z,onMouseOver:Q,onMouseOut:$,onMouseEnter:J,onMouseLeave:ee,onDoubleClick:te,onKeyDown:re,onKeyPress:oe,onKeyUp:ie,"data-group-index":e.group.index,"data-range-index":e.range.index},e.children,!e.resizeHint&&o.createElement("span",{className:"k-event-actions"},A.remove&&o.createElement("a",{tabIndex:-1,"aria-hidden":"true",className:"k-link k-event-delete",title:V,"aria-label":V,onClick:ne},o.createElement("span",{className:"k-icon k-i-close"})),e.head&&o.createElement("span",{className:"k-icon k-i-arrow-60-right"})),A.resize&&e.vertical&&o.createElement(o.Fragment,null,o.createElement("span",{className:"k-resize-handle k-resize-n",ref:j}),o.createElement("span",{className:"k-resize-handle k-resize-s",ref:F})),A.resize&&!e.vertical&&o.createElement(o.Fragment,null,o.createElement("span",{className:"k-resize-handle k-resize-w",ref:R}),o.createElement("span",{className:"k-resize-handle k-resize-e",ref:M})),e.resizeHint&&o.createElement(o.Fragment,null,o.createElement("div",{className:"k-marquee-color",style:{borderColor:z,backgroundColor:z}}),o.createElement("div",{className:"k-marquee-text"},!e.tail&&o.createElement("div",{className:"k-label-top"},L.formatDate(e.zonedStart,e.format)),!e.head&&o.createElement("div",{className:"k-label-bottom"},L.formatDate(e.zonedEnd,e.format)))))})),t.SchedulerItem.displayName="KendoReactSchedulerItem"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(30),s=n(7),l=n(10),u=n(17),c=n(12),d=n(4),p=n(63);t.SchedulerViewItem=i.forwardRef((function(e,t){var n=e.item,a=e._ref,h=e.itemRef,m=o(e,["item","_ref","itemRef"]),v=i.useRef(),g=i.useRef(null),y=i.useRef(null);i.useImperativeHandle(y,(function(){return{props:e,element:g.current&&g.current.element}})),i.useImperativeHandle(t,(function(){return y.current})),i.useImperativeHandle(a,(function(){return g.current})),i.useImperativeHandle(h,(function(){return g.current}));var b=n||f.item,k=d.useInternationalization(),C=l.useSchedulerViewItemsContext()[0],O=l.useSchedulerViewSlotsContext()[0],w=l.useSchedulerElementContext(),E=i.useState(!0),S=E[0],D=E[1],x=i.useState(!1),I=x[0],T=x[1],_=i.useState(0),P=_[0],N=_[1],M=i.useMemo((function(){return e.isAllDay?k.toString(e.zonedStart,"t"):k.format("{0:t} - {1:t}",e.zonedStart,e.zonedEnd)}),[k,e.isAllDay,e.zonedEnd,e.zonedStart]),R=i.useMemo((function(){return"("+M+"): "+e.title}),[M,e.title]),j=function(e,t){var n=1;return e.forEach((function(e){var r=t.filter((function(t){return F(e.current.props,t.props)}));r.length>n&&(n=r.length)})),n},F=function(t,n){return s.intersects(t.start,t.end,n.start,n.end)&&t.group.index===n.group.index&&t.range.index===n.range.index&&(e.ignoreIsAllDay||t.isAllDay===n.isAllDay)},A=function(){var t=(O||[]).filter((function(t){return t.current&&F(t.current.props,e)}));if(0!==t.length){var n=s.first(t);if(n.current&&g.current){var r=u.getRect(n.current.element);u.setRect(g.current.element,r)}}else D(!1)},L=function(){var t=g.current&&g.current.element;if(t){var n=(O||[]).filter((function(t){return t.current&&F(t.current.props,e)})),r=[],o=[],i=[];(C||[]).forEach((function(e){e.current&&(e.current.props.dragHint?o.push(e.current):e.current.props.resizeHint?i.push(e.current):r.push(e.current))}));var a=e.dragHint||e.resizeHint?s.calculateOrder(g.current,e.dragHint?o:i,n,e.ignoreIsAllDay):e.order||0,l=e.dragHint||e.resizeHint?j(n,e.dragHint?o:i):j(n,r),d=function(e,t){return e.map((function(e){return t.filter((function(t){return F(e.current.props,t.props)}))}))}(n,r),p=0,f=u.getRect(t);if(d.forEach((function(n){var r=0;n.forEach((function(n){s.intersects(n.props.start,n.props.end,e.start,e.end)&&!e.dragHint&&!e.resizeHint&&n.props._maxSiblingsPerSlot&&n.props._maxSiblingsPerSlot>l&&n.element!==t&&(l=n.props._maxSiblingsPerSlot);var o=u.getRect(n.element);null!==n.props.order&&n.props.order<a&&(r=o.top+o.height-f.top-c.BORDER_WIDTH*a+1)})),r>p&&(p=r)})),0!==n.length){f.width=e.vertical?f.width/l-c.BORDER_WIDTH-20/l:f.width*n.length-c.BORDER_WIDTH-20,f.height=e.vertical?f.height*n.length-c.BORDER_WIDTH:(e.resizeHint||e.dragHint)&&l<=1?f.height:e.style&&e.style.height?e.style.height:25,f.left=e.vertical?f.left+a*f.width+c.BORDER_WIDTH*a:f.left,f.top=e.vertical?f.top:f.top+p+c.BORDER_WIDTH*a,N(l),u.setRect(t,f),T(!0),D(!0)}else D(!1)}},V=i.useCallback((function(){void 0!==v.current&&window.cancelAnimationFrame(v.current),v.current=window.requestAnimationFrame((function(){A(),L()}))}),[A,L]);return i.useEffect(A),i.useEffect(L),i.useEffect((function(){if(w.current){var e=new window.ResizeObserver(V);return e.observe(w.current),function(){e.disconnect()}}}),[V,w]),i.createElement(b,r({},m,{_ref:g,_maxSiblingsPerSlot:P,itemRef:g,style:r({visibility:I?void 0:"hidden",display:S?void 0:"none"},e.style)}),!e.resizeHint&&i.createElement("span",{className:"k-event-actions"},e.tail&&i.createElement("span",{className:"k-icon k-i-arrow-60-left"}),e.isRecurring&&!e.isException&&i.createElement("span",{className:"k-icon k-i-reload"}),!e.isRecurring&&e.isException&&i.createElement("span",{className:"k-icon k-i-non-recurrence"})),!e.resizeHint&&i.createElement("div",{title:R},!e.isAllDay&&i.createElement(p.SchedulerItemContent,{className:"k-event-template k-event-time "},R),i.createElement(p.SchedulerItemContent,{className:"k-event-template"},e.title)))}));var f={item:a.SchedulerItem};t.SchedulerViewItem.defaultProps=f,t.SchedulerViewItem.displayName="KendoReactSchedulerViewItem"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(4),s=n(2);t.DateHeaderCell=i.forwardRef((function(e,t){var n=e.as,u=void 0===n?l.as:n,c=o(e,["as"]),d=i.useRef(null),p=i.useRef(null),f=a.useInternationalization(),h=i.useMemo((function(){return s.classNames("k-scheduler-cell k-heading-cell",e.className)}),[e.className]);return i.useImperativeHandle(p,(function(){return{element:d.current&&d.current.element?d.current.element:d.current,props:e}})),i.useImperativeHandle(t,(function(){return p.current})),i.createElement(u,r({ref:u!==l.as?void 0:d},c,{className:h}),i.createElement("span",{className:"k-link k-nav-day"},f.formatDate(e.date,e.format)))}));var l={as:i.forwardRef((function(e,t){e.as,e.format,e.start,e.end;var n=o(e,["as","format","start","end"]);return i.createElement("div",r({},n,{ref:t}))})),format:"d"};t.DateHeaderCell.defaultProps=l,t.DateHeaderCell.displayName="KendoReactSchedulerDateHeaderCell"},function(e,t,n){"use strict";n.r(t),n.d(t,"PickerWrap",(function(){return Kt})),n.d(t,"ToggleButton",(function(){return Ut})),n.d(t,"Calendar",(function(){return ft})),n.d(t,"CalendarPropsContext",(function(){return pt})),n.d(t,"CalendarViewEnum",(function(){return C})),n.d(t,"CalendarCell",(function(){return T})),n.d(t,"CalendarWeekCell",(function(){return M})),n.d(t,"CalendarHeaderTitle",(function(){return Pe})),n.d(t,"CalendarNavigationItem",(function(){return rt})),n.d(t,"DateInput",(function(){return zt})),n.d(t,"DateInputPropsContext",(function(){return Bt})),n.d(t,"DatePicker",(function(){return $t})),n.d(t,"DatePickerPropsContext",(function(){return Qt})),n.d(t,"TimePicker",(function(){return Wn})),n.d(t,"TimePickerPropsContext",(function(){return Kn})),n.d(t,"MultiViewCalendar",(function(){return nr})),n.d(t,"MultiViewCalendarPropsContext",(function(){return tr})),n.d(t,"DateRangePicker",(function(){return lr})),n.d(t,"DateRangePickerPropsContext",(function(){return sr})),n.d(t,"DateTimePicker",(function(){return vr})),n.d(t,"DateTimePickerPropsContext",(function(){return mr}));var r,o,i,a,s,l=n(0),u=n(1),c=n(2),d=n(3),p=n(4),f={name:"@progress/kendo-react-dateinputs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639493579,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"},h=function(){function e(e,t,n){void 0===e&&(e=0),this.total=e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var r=0,o=0;o<e;o++)this.offsets.push(r),r+=t,this.heights.push(t)}return e.prototype.height=function(e){return this.heights[e]},e.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},e.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},e.prototype.index=function(e){for(var t=0;t<this.offsets.length;t++){if(e===this.offsets[t])return t;if(e<this.offsets[t])return t-1}return this.total-1},e.prototype.offset=function(e){return this.offsets[e]},e.prototype.totalHeight=function(){return this.heights.reduce((function(e,t){return e+t}),0)},e.prototype.updateRowHeight=function(e,t){this.heights[e]+=t,this.offsets=function(e,t,n){return e.slice(0,t+1).concat(e.slice(t+1).map((function(e){return e+n})))}(this.offsets,e,t)},e}(),m=function(e){return Math.max(e,0)},v=function(e){this.offset=e},g=function(e){this.skip=e},y=function(){function e(e,t){this.onScrollAction=e,this.onPageAction=t,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}return e.prototype.create=function(e,t,n,r,o,i,a){void 0===o&&(o=0),void 0===i&&(i=0),void 0===a&&(a="vertical"),this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=r,this.lastScrollTop=0,this.topOffset=o,this.bottomOffset=i,this.direction=a;var s=this.rowsForHeight(o),l=m(t-s);this.onScrollAction(new v(this.rowOffset(l))),this.onPageAction(new g(l))},e.prototype.onScroll=function(e){var t=e.scrollLeft,n=e.scrollTop,r=e.offsetHeight,o=e.offsetWidth,i="vertical"===this.direction?n:t,a="vertical"===this.direction?r:o;if(this.lastScrollTop!==i){var s=this.lastScrollTop>=i;this.lastScrollTop=i;var l=this.rowHeightService.index(m(i-this.topOffset)),u=this.rowHeightService.index(m(i+a-this.bottomOffset));if(!s&&u>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=l,this.onScrollAction(new v(this.rowOffset(l))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new g(this.firstLoaded))),s&&l<=this.firstLoaded){var c=Math.floor(.3*this.take);this.firstLoaded=m(l-c),this.onScrollAction(new v(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new g(this.firstLoaded))}}},e.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},e.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},e}(),b=(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});!function(e){e[e.Backward=0]="Backward",e[e.Forward=1]="Forward"}(s||(s={}));var k,C,O=((o={})[s.Forward]=function(e){return function(t){return t+e}},o[s.Backward]=function(e){return function(t){return t-e}},o),w=((i={})[s.Forward]=function(e){return function(t){return Math.min(t,e)}},i[s.Backward]=function(e){return function(t){return Math.max(t,e)}},i),E=((a={})[s.Forward]=function(e){return function(t){return t<e}},a[s.Backward]=function(e){return function(t){return t>e}},a),S=function(e){function t(n){var r=e.call(this,n)||this;return r.animationInProgress=!1,r.scrollTo=function(e){var t="vertical"===r.direction?"scrollTop":"scrollLeft";r.scrollContainer&&(r.scrollContainer[t]=e)},r.scrollToIndex=function(e){void 0!==r.scrollToIndexTimeout&&window.cancelAnimationFrame(r.scrollToIndexTimeout),r.rowHeightService&&(r.scrollToIndexTimeout=window.requestAnimationFrame((function(){r.animationInProgress=!1,r.scrollTo(r.rowHeightService.offset(e))})))},r.animateToIndex=function(e){if(r.rowHeightService&&window){window.cancelAnimationFrame(r.cancelAnimation);var t=r.rowHeightService.offset(e),n=r.getContainerScrollDirection(t),o=r.scrollRange(t,n),i=o.start,a=o.end;if(i!==a){var s=r.scrollStep(i,a),l=O[n](s),u=w[n](a),c=E[n](l(a)),d=function(e){r.animationInProgress=!0;var t=l(e);r.scrollTo(u(t)),c(t)?r.cancelAnimation=window.requestAnimationFrame((function(){d(t)})):r.animationInProgress=!1};r.cancelAnimation=window.requestAnimationFrame((function(){d(i)}))}}},r.scrollToBottom=function(){r.rowHeightService&&r.scrollTo(r.rowHeightService.totalHeight()+r.props.bottomOffset)},r.scrollStep=function(e,n){var o=r.props.scrollDuration||t.defaultProps.scrollDuration;return Math.abs(n-e)/(o/17)},r.scrollRange=function(e,t){var n=r.containerScrollPosition;if(parseInt(""+e,10)===parseInt(""+n,10))return{start:e,end:e};var o,i,a,l=r.containerMaxScroll(),u=t===s.Backward?1:-1,c=(o=n,i=e,a=r.props.maxScrollDifference,Math.min(Math.abs(i-o),a)),d=Math.min(e,l);return{start:Math.min(Math.max(d+u*c,0),l),end:d}},r.containerMaxScroll=function(){return r.containerScrollSize-r.containerOffsetSize},r.getContainerScrollDirection=function(e){return e<r.containerScrollPosition?s.Backward:s.Forward},r.initServices=function(e){void 0===e&&(e=r.props);var t="vertical"===r.direction?e.itemHeight:e.itemWidth;void 0!==t&&(r.rowHeightService=new h(e.total,t,0),r.scrollerService.create(r.rowHeightService,e.skip,e.take,e.total,e.topOffset,r.scrollOffsetSize,r.direction))},r.getContainerProperty=function(e){return r.scrollContainer?r.scrollContainer[e]:0},r.handleScroll=function(e){if(r.scrollContainer&&r.rowHeightService){var t=e.target;r.scrollerService.onScroll({scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,offsetHeight:t.offsetHeight,offsetWidth:t.offsetWidth});var n=r.rowHeightService.index(r.containerScrollPosition-r.props.topOffset),o=r.props.onScrollAction,i={index:n,target:t,scrollAction:r.scrollAction,pageAction:r.pageAction,animationInProgress:r.animationInProgress};r.props.onScroll&&r.props.onScroll.call(void 0,e),o&&o.call(void 0,i),r.scrollAction=void 0,r.pageAction=void 0}},r.handleScrollAction=function(e){r.scrollAction=e},r.handlePageAction=function(e){r.pageAction=e},r.scrollerService=new y(r.handleScrollAction,r.handlePageAction),r}return b(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.scrollContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"direction",{get:function(){return void 0!==this.props.direction?this.props.direction:t.defaultProps.direction},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollOffsetSize",{get:function(){return void 0!==this.props.scrollOffsetSize?this.props.scrollOffsetSize:t.defaultProps.scrollOffsetSize},enumerable:!0,configurable:!0}),t.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},t.prototype.itemIndex=function(e){return this.rowHeightService?this.rowHeightService.index(e):0},t.prototype.itemOffset=function(e){return this.rowHeightService?this.rowHeightService.offset(e):0},t.prototype.isIndexVisible=function(e){if(!this.rowHeightService)return!1;var t=this.containerScrollPosition,n=t+this.containerOffsetSize,r=this.rowHeightService.offset(e),o=r+this.rowHeightService.height(e);return r>=t&&o<=n},t.prototype.isListScrolled=function(e){return!!this.rowHeightService&&this.containerScrollPosition!==this.rowHeightService.offset(e)},t.prototype.componentDidMount=function(){var e=this.props.onMount;e&&e.call(void 0,this)},t.prototype.render=function(){var e=this;this.lastTotal===this.props.total&&this.lastDirection===this.direction&&this.lastTake===this.props.take||(this.initServices(),this.lastTotal=this.props.total,this.lastDirection=this.direction,this.lastTake=this.props.take);var t=""+((this.rowHeightService?this.rowHeightService.totalHeight():0)+this.props.bottomOffset),n="vertical"===this.direction?{height:t+"px"}:{width:t+"px"},r=Object(c.classNames)("k-content k-calendar-content k-scrollable",{"k-scrollable-horizontal":"horizontal"===this.direction},this.props.className),o=Object(c.classNames)("k-scrollable-placeholder",{"k-scrollable-horizontal-placeholder":"horizontal"===this.direction});return l.createElement("div",{ref:function(t){e.scrollContainer=t},onScroll:this.handleScroll,className:r,tabIndex:this.props.tabIndex,role:this.props.role},this.props.children,l.createElement("div",{style:n,className:o}))},t.propTypes={bottomOffset:u.number.isRequired,className:u.string,direction:u.oneOf(["horizontal","vertical"]),forceScroll:u.bool,itemHeight:u.number,itemWidth:u.number,maxScrollDifference:u.number,onScroll:u.func,onScrollAction:u.func,scrollDuration:u.number,scrollOffsetSize:u.number,skip:u.number.isRequired,tabIndex:u.number,take:u.number.isRequired,topOffset:u.number.isRequired,total:u.number.isRequired,role:u.string},t.defaultProps={direction:"vertical",forceScroll:!1,scrollOffsetSize:0,maxScrollDifference:100,scrollDuration:100},t}(l.Component),D=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),x=function(){return(x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},I=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},T=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){var n=t.props,r=n.onClick,o=n.value;r&&r.call(void 0,o,e)},t.handleMouseEnter=function(){var e=t.props,n=e.onMouseEnter,r=e.value;n&&n.call(void 0,r)},t.handleMouseLeave=function(){var e=t.props,n=e.onMouseLeave,r=e.value;n&&n.call(void 0,r)},t}return D(t,e),t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=t.value,r=I(t,["value"]),o=e.value,i=I(e,["value"]);return!((!(n&&o)||n.getTime()===o.getTime())&&function(e,t){var n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(e[i]!==t[i])return!1}return!0}(r,i))},t.prototype.render=function(){var e=this.props,t=e.className,n=(e.formattedValue,e.isWeekend),r=e.isFocused,o=(e.isInRange,e.isSelected),i=e.isRangeStart,a=e.isRangeMid,s=e.isRangeEnd,u=e.isRangeSplitStart,d=e.isRangeSplitEnd,p=e.isToday,f=e.isDisabled,h=(e.view,e.value,I(e,["className","formattedValue","isWeekend","isFocused","isInRange","isSelected","isRangeStart","isRangeMid","isRangeEnd","isRangeSplitStart","isRangeSplitEnd","isToday","isDisabled","view","value"])),m="end"===this.props.activeRangeEnd&&s,v="start"===this.props.activeRangeEnd&&i,g=Object(c.classNames)("k-calendar-td",{"k-range-end":s,"k-range-mid":a,"k-range-split-end":d,"k-range-split-start":u,"k-range-start":i,"k-state-active":v||m,"k-state-pending-focus":r,"k-state-selected":o||i||s,"k-today":p,"k-weekend":n,"k-state-disabled":f},t);return l.createElement("td",x({},h,{className:g,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}),l.createElement("span",{className:"k-link"},this.props.children))},t}(l.Component),_=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),P=function(){return(P=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(e.firstDate,N(e,["className","firstDate"]));return l.createElement("td",P({className:Object(c.classNames)("k-calendar-td",t)},n),this.props.children)},t}(l.Component);!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Up=2]="Up",e[e.Down=3]="Down",e[e.PrevView=4]="PrevView",e[e.NextView=5]="NextView",e[e.FirstInView=6]="FirstInView",e[e.LastInView=7]="LastInView",e[e.LowerView=8]="LowerView",e[e.UpperView=9]="UpperView"}(k||(k={})),function(e){e[e.month=0]="month",e[e.year=1]="year",e[e.decade=2]="decade",e[e.century=3]="century"}(C||(C={}));var R={start:null,end:null};function j(e){var t=function(t,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];if(null===n[r])return null;var a=t?e.isRequired:e;return a.apply(void 0,[n,r].concat(o))},n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}var F,A,L,V,B,z=function(e,t,n){return void 0===t||void 0===n||t<=e&&e<=n?e:e<t?t:n},H=new Date(1980,0,1),U=new Date(1900,0,1),K=new Date(2099,11,31),W=new Date(1980,0,1),q=new Date(1980,0,1,23,59,59),Y=function(e,t){var n=Object(d.cloneDate)(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},G=function(){return Object(d.getDate)(new Date)},Z=function(e,t,n){return!e||!(t&&t>e||n&&n<e)},X=function(e,t,n){return null===e||!(t&&Object(d.getDate)(t)>Object(d.getDate)(e)||n&&Object(d.getDate)(n)<Object(d.getDate)(e))},Q=function(e,t){var n=t||R,r=n.start,o=n.end;return!(!r||!o)&&(r<e&&e<o)},$=function(e,t,n){void 0===n&&(n=1);for(var r=[],o=e;o<t;o+=n)r.push(o);return r},J=function(e,t,n){return t.getTime()<=e.getTime()&&e.getTime()<=n.getTime()},ee=function(e,t){return e.slice(t).concat(e.slice(0,t))},te=function(e,t,n){return e?t&&e<t?Object(d.cloneDate)(t):n&&e>n?Object(d.cloneDate)(n):e:e},ne=function(e){return function(t,n,r){void 0===n&&(n=""),void 0===r&&(r={});var o=document.createElement(e);return o.className=n,Object.keys(r).map((function(e){return o.style[e]=r[e]})),"string"==typeof t?o.innerHTML=t||"":(t||[]).forEach((function(e){return e&&o.appendChild(e)})),o}},re=[[]],oe=((F={})[k.Left]=function(e){return Object(d.addDecades)(e,-1)},F[k.Up]=function(e){return Object(d.addDecades)(e,-5)},F[k.Right]=function(e){return Object(d.addDecades)(e,1)},F[k.Down]=function(e){return Object(d.addDecades)(e,5)},F[k.PrevView]=function(e){return Object(d.addCenturies)(e,-1)},F[k.NextView]=function(e){return Object(d.addCenturies)(e,1)},F[k.FirstInView]=function(e){return Object(d.firstDecadeOfCentury)(e)},F[k.LastInView]=function(e){return Object(d.lastDecadeOfCentury)(e)},F),ie=function(){function e(){}return e.prototype.addToDate=function(e,t){return Object(d.addCenturies)(e,t)},e.prototype.datesList=function(e,t){return $(0,t).map((function(t){return Object(d.addCenturies)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,s=e.selectedDate,l=e.selectionRange,u=void 0===l?R:l,c=e.viewDate;if(!c)return re;var p=$(0,4),f=Object(d.firstDecadeOfCentury)(c),h=Object(d.lastDecadeOfCentury)(c),m=G();return $(0,3).map((function(e){var l=Object(d.addDecades)(f,4*e);return p.map((function(e){var c=t.normalize(Object(d.addDecades)(l,e),a,i),p=t.isEqual(c,u.start),v=t.isEqual(c,u.end),g=!p&&!v&&Q(c,u),y=o&&(Array.isArray(s)?t.isSelectedFromArray(c,s,a,i):Z(s,a,i)&&t.isEqual(c,s));return J(c,f,h)?{formattedValue:t.value(c),id:""+n+c.getTime(),isFocused:t.isEqual(c,r),isSelected:y,isWeekend:!1,isInRange:Z(c,a,i),isRangeStart:p,isRangeMid:g,isRangeEnd:v,isRangeSplitEnd:g&&t.isEqual(c,h),isRangeSplitStart:g&&t.isEqual(c,f),isToday:t.isEqual(c,m),title:t.cellTitle(c),value:c}:null}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){Z(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isEqual=function(e,t){return!(!e||!t)&&Object(d.firstYearOfDecade)(e).getFullYear()===Object(d.firstYearOfDecade)(t).getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+99},e.prototype.isInRange=function(e,t,n){var r=Object(d.firstYearOfDecade)(e).getFullYear(),o=!t||Object(d.firstYearOfDecade)(t).getFullYear()<=r,i=!n||r<=Object(d.firstYearOfDecade)(n).getFullYear();return o&&i},e.prototype.isInSameView=function(e,t){return 0===Object(d.durationInCenturies)(e,t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},e.prototype.move=function(e,t){var n=oe[t];return n?n(e):e},e.prototype.cellTitle=function(e){return Object(d.firstYearOfDecade)(e).getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?Object(d.firstDecadeOfCentury)(e).getFullYear().toString():""},e.prototype.title=function(e){return e?Object(d.firstDecadeOfCentury)(e).getFullYear()+" - "+Object(d.lastDecadeOfCentury)(e).getFullYear():""},e.prototype.rowLength=function(e){return 4},e.prototype.skip=function(e,t){return Object(d.durationInCenturies)(t,e)},e.prototype.total=function(e,t){return Object(d.durationInCenturies)(e,t)+1},e.prototype.value=function(e){return e?Object(d.firstYearOfDecade)(e).getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),Object(d.durationInCenturies)(e,t)<n?Object(d.addCenturies)(e,-1):e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(d.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(d.cloneDate)(n):e},e}(),ae=[[]],se=((A={})[k.Left]=function(e){return Object(d.addYears)(e,-1)},A[k.Up]=function(e){return Object(d.addYears)(e,-5)},A[k.Right]=function(e){return Object(d.addYears)(e,1)},A[k.Down]=function(e){return Object(d.addYears)(e,5)},A[k.PrevView]=function(e){return Object(d.addDecades)(e,-1)},A[k.NextView]=function(e){return Object(d.addDecades)(e,1)},A[k.FirstInView]=function(e){return Object(d.firstYearOfDecade)(e)},A[k.LastInView]=function(e){return Object(d.lastYearOfDecade)(e)},A),le=function(){function e(){}return e.prototype.addToDate=function(e,t){return Object(d.addDecades)(e,t)},e.prototype.datesList=function(e,t){return $(0,t).map((function(t){return Object(d.addDecades)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,s=e.selectedDate,l=e.selectionRange,u=void 0===l?R:l,c=e.viewDate;if(!c)return ae;var p=$(0,4),f=Object(d.firstYearOfDecade)(c),h=Object(d.lastYearOfDecade)(c),m=G();return $(0,3).map((function(e){var l=Object(d.addYears)(f,4*e);return p.map((function(e){var c=t.normalize(Object(d.addYears)(l,e),a,i),p=t.isEqual(c,u.start),v=t.isEqual(c,u.end),g=!p&&!v&&Q(c,u),y=o&&(Array.isArray(s)?t.isSelectedFromArray(c,s,a,i):Z(s,a,i)&&t.isEqual(c,s));return J(c,f,h)?{formattedValue:t.value(c),id:""+n+c.getTime(),isFocused:t.isEqual(c,r),isSelected:y,isWeekend:!1,isInRange:Z(c,a,i),isRangeStart:p,isRangeMid:g,isRangeEnd:v,isRangeSplitEnd:g&&t.isEqual(c,h),isRangeSplitStart:g&&t.isEqual(c,f),isToday:t.isEqual(c,m),title:t.cellTitle(c),value:c}:null}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){Z(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+9},e.prototype.isInRange=function(e,t,n){var r=e.getFullYear(),o=!t||t.getFullYear()<=r,i=!n||r<=n.getFullYear();return o&&i},e.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},e.prototype.isInSameView=function(e,t){return 0===Object(d.durationInDecades)(e,t)},e.prototype.move=function(e,t){var n=se[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?Object(d.firstYearOfDecade)(e).getFullYear().toString():""},e.prototype.title=function(e){return e?Object(d.firstYearOfDecade)(e).getFullYear()+" - "+Object(d.lastYearOfDecade)(e).getFullYear():""},e.prototype.rowLength=function(e){return 4},e.prototype.skip=function(e,t){return Object(d.durationInDecades)(t,e)},e.prototype.total=function(e,t){return Object(d.durationInDecades)(e,t)+1},e.prototype.value=function(e){return e?e.getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),Object(d.durationInDecades)(e,t)<n?Object(d.addDecades)(e,-1):e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(d.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(d.cloneDate)(n):e},e}(),ue=[[]],ce=((L={})[k.Left]=function(e){return Object(d.addDays)(e,-1)},L[k.Up]=function(e){return Object(d.addWeeks)(e,-1)},L[k.Right]=function(e){return Object(d.addDays)(e,1)},L[k.Down]=function(e){return Object(d.addWeeks)(e,1)},L[k.PrevView]=function(e){return Object(d.addMonths)(e,-1)},L[k.NextView]=function(e){return Object(d.addMonths)(e,1)},L[k.FirstInView]=function(e){return Object(d.firstDayOfMonth)(e)},L[k.LastInView]=function(e){return Object(d.lastDayOfMonth)(e)},L),de=function(){function e(e){this.intl=e}return e.prototype.addToDate=function(e,t){return Object(d.addMonths)(e,t)},e.prototype.datesList=function(e,t){return $(0,t).map((function(t){return Object(d.addMonths)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,s=e.selectedDate,l=e.selectionRange,u=void 0===l?R:l,c=e.viewDate;if(!c)return ue;var p=Object(d.firstDayOfMonth)(c),f=Object(d.lastDayOfMonth)(c),h=Object(d.dayOfWeek)(p,this.intl.firstDay(),-1),m=$(0,7),v=G();return $(0,6).map((function(e){var l=Object(d.addDays)(h,7*e);return m.map((function(e){var c=t.normalize(Object(d.addDays)(l,e),a,i);if(c<p||c>f)return null;var h=t.isEqual(c,u.start),m=t.isEqual(c,u.end),g=!h&&!m&&Q(c,u),y=o&&(Array.isArray(s)?t.isSelectedFromArray(c,s,a,i):Z(s,a,i)&&t.isEqual(c,s));return{formattedValue:t.value(c),id:""+n+c.getTime(),isFocused:t.isEqual(c,r),isSelected:y,isInRange:Z(c,a,i),isWeekend:t.isWeekend(c),isRangeStart:h,isRangeMid:g,isRangeEnd:m,isRangeSplitStart:g&&t.isEqual(c,p),isRangeSplitEnd:g&&t.isEqual(c,f),isToday:t.isEqual(c,v),title:t.cellTitle(c),value:c}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&Object(d.getDate)(e).getTime()===Object(d.getDate)(t).getTime()},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){Z(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isInArray=function(e,t){return!!t.length&&Object(d.firstDayOfMonth)(t[0])<=e&&e<=Object(d.lastDayOfMonth)(t[t.length-1])},e.prototype.isInRange=function(e,t,n){var r=Object(d.getDate)(e),o=!t||Object(d.getDate)(t)<=r,i=!n||r<=Object(d.getDate)(n);return o&&i},e.prototype.isInSameView=function(e,t){return 0===Object(d.durationInMonths)(e,t)},e.prototype.isRangeStart=function(e){return!e.getMonth()},e.prototype.move=function(e,t){var n=ce[t];return n?n(e):e},e.prototype.cellTitle=function(e){return this.intl.formatDate(e,"D")},e.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},e.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},e.prototype.rowLength=function(e){return 7+(e?1:0)},e.prototype.skip=function(e,t){return Object(d.durationInMonths)(t,e)},e.prototype.total=function(e,t){return Object(d.durationInMonths)(e,t)+1},e.prototype.value=function(e){return e?e.getDate().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),Object(d.durationInMonths)(e,t)<n?Object(d.addMonths)(e,-1):e},e.prototype.isWeekend=function(e){var t=e.getDay();return 6===t||0===t},e.prototype.abbrMonthNames=function(){return this.intl.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(d.getDate)(t):e>n&&this.isEqual(e,n)?Object(d.getDate)(n):e},e.prototype.wideMonthNames=function(){return this.intl.dateFormatNames({nameType:"wide",type:"months"})},e}(),pe=[[]],fe=((V={})[k.Left]=function(e){return Object(d.addMonths)(e,-1)},V[k.Up]=function(e){return Object(d.addMonths)(e,(t=e.getMonth())>4?-5:t<2?-2:-7);var t},V[k.Right]=function(e){return Object(d.addMonths)(e,1)},V[k.Down]=function(e){return Object(d.addMonths)(e,(t=e.getMonth())<7?5:t<10?7:2);var t},V[k.PrevView]=function(e){return Object(d.addYears)(e,-1)},V[k.NextView]=function(e){return Object(d.addYears)(e,1)},V[k.FirstInView]=function(e){return Object(d.firstMonthOfYear)(e)},V[k.LastInView]=function(e){return Object(d.lastMonthOfYear)(e)},V),he=function(){function e(e){this._intl=e}return e.prototype.addToDate=function(e,t){return Object(d.addYears)(e,t)},e.prototype.datesList=function(e,t){return $(0,t).map((function(t){return Object(d.addYears)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,s=e.selectedDate,l=e.selectionRange,u=void 0===l?R:l,c=e.viewDate;if(!c)return pe;var p=this.abbrMonthNames(),f=Object(d.firstMonthOfYear)(c),h=Object(d.lastMonthOfYear)(c),m=f.getFullYear(),v=$(0,4),g=G();return $(0,3).map((function(e){var l=Object(d.addMonths)(f,4*e);return v.map((function(e){var c=t.normalize(Object(d.addMonths)(l,e),a,i);if(m<c.getFullYear())return null;var v=t.isEqual(c,u.start),y=t.isEqual(c,u.end),b=!v&&!y&&Q(c,u),k=o&&(Array.isArray(s)?t.isSelectedFromArray(c,s,a,i):Z(s,a,i)&&t.isEqual(c,s));return{formattedValue:p[c.getMonth()],id:""+n+c.getTime(),isFocused:t.isEqual(c,r),isSelected:k,isInRange:Z(c,a,i),isWeekend:!1,isRangeStart:v,isRangeMid:b,isRangeEnd:y,isRangeSplitEnd:b&&t.isEqual(c,h),isRangeSplitStart:b&&t.isEqual(c,f),isToday:t.isEqual(c,g),title:t.cellTitle(c),value:c}}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){Z(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isEqual=function(e,t){return!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()},e.prototype.isInRange=function(e,t,n){var r=Object(d.createDate)(e.getFullYear(),e.getMonth(),1),o=!t||Object(d.createDate)(t.getFullYear(),t.getMonth(),1)<=r,i=!n||r<=Object(d.createDate)(n.getFullYear(),n.getMonth(),1);return o&&i},e.prototype.isInSameView=function(e,t){return 0===Object(d.durationInYears)(e,t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},e.prototype.move=function(e,t){var n=fe[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},e.prototype.navigationTitle=function(e){return this.title(e)},e.prototype.title=function(e){return e?e.getFullYear().toString():""},e.prototype.rowLength=function(e){return 4},e.prototype.skip=function(e,t){return Object(d.durationInYears)(t,e)},e.prototype.total=function(e,t){return Object(d.durationInYears)(e,t)+1},e.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),Object(d.durationInYears)(e,t)<n?Object(d.addYears)(e,-1):e},e.prototype.abbrMonthNames=function(){return this._intl.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(d.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(d.cloneDate)(n):e},e}(),me=((B={})[C.month]=de,B[C.year]=he,B[C.decade]=le,B[C.century]=ie,B),ve=function(){function e(e){this.bottom=C.month,this.top=C.century,this.onViewChanged=e}return e.prototype.configure=function(e,t){this.bottom=e,this.top=t},e.prototype.service=function(e,t){return new me[""+e](t)},e.prototype.moveDown=function(e,t){this.move(e,-1,t)},e.prototype.moveUp=function(e,t){this.move(e,1,t)},e.prototype.moveToBottom=function(e){e!==this.bottom&&this.onViewChanged({view:this.bottom})},e.prototype.canMoveDown=function(e){return this.bottom<e},e.prototype.canMoveUp=function(e){return e<this.top},e.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},e.prototype.move=function(e,t,n){var r=this.clamp(function(e,t){var n=C[C[e+t]];return void 0!==n?n:e}(e,t));r!==e&&this.onViewChanged({view:r},n)},e}(),ge=function(){function e(){this.didCalculate=!1}return e.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){var t=this;if(c.canUseDOM){var n,r=ne("div"),o=ne("ul"),i=ne("li"),a=ne("td"),s=ne("th"),l=ne("tr"),u=ne("tbody"),d=ne("thead"),p=ne("table"),f=function(){return r('\n <span class="k-calendar-title">March 2017</span>\n <span class="k-calendar-today">TODAY</span>\n ',"k-calendar-header")},h=function(e,t){return new Array(e).fill("1").map(t)},m=function(e){return r(e,"k-content k-scrollable")},v=function(){return c.canUseDOM?(n||(n=r([m([o([i("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),n):null},g=function(e,t,n){var o,i=e.cells,v=e.rows;return function(){return c.canUseDOM?(o||(o=function(e,t,n){return r(n?[f(),p([d([l([s("MO")])])],"k-calendar-weekdays"),m([e,e])]:[f(),m([e,e])],t,{left:"-10000px",position:"absolute"})}(function(e,t){return void 0===t&&(t=1),p([u([l([s("1")])].concat(h(e,(function(){return l(h(t,(function(e){return a('<span class="k-link">'+e+"</span>")})))}))))])}(v,i),t,n)),o):null}},y=function(e){return e.querySelector(".k-scrollable")},b=function(e){var t=y(e);return t.className=t.className+" k-scrollable-horizontal",e},k=g({cells:7,rows:6},"k-calendar-view k-calendar-monthview",!0),C=g({cells:5,rows:3},"k-calendar-view k-calendar-yearview",!1),O=g({cells:5,rows:2},"k-calendar-view k-calendar-decadeview",!1),w=function(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight},E=function(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth},S=function(e){return e.querySelector("tbody")};this.didCalculate=!0,e&&(this.hostContainer=e),this.batch(k(),(function(e){var n=S(e);t.calendarHeight=w(e),t.monthViewHeight=w(n),t.headerHeight=w(n.children[0]),t.scrollableContentHeight=w(y(e))})),this.batch(b(k()),(function(e){var n=S(e);t.calendarWidth=E(e),t.monthViewWidth=E(n),t.scrollableContentWidth=E(y(e))})),this.batch(C(),(function(e){t.yearViewHeight=w(S(e)),t.scrollableYearContentHeight=w(y(e))})),this.batch(b(C()),(function(e){t.yearViewWidth=E(S(e))})),this.batch(O(),(function(e){t.decadeViewHeight=w(S(e)),t.centuryViewHeight=t.decadeViewHeight})),this.batch(b(O()),(function(e){t.decadeViewWidth=E(S(e)),t.centuryViewWidth=t.decadeViewWidth})),this.batch(v(),(function(e){t.navigationItemHeight=w(e.querySelector("li"))}))}},e.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},e.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},e.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case C.month:return this["month"+n];case C.year:return this["year"+n];case C.decade:return this["decade"+n];case C.century:return this["century"+n];default:return 1}},e.prototype.batch=function(e,t){var n=this.hostContainer||document.body,r=n.appendChild(e);t(r),n.removeChild(r)},e}(),ye={33:k.PrevView,34:k.NextView,35:k.LastInView,36:k.FirstInView,37:k.Left,38:k.Up,39:k.Right,40:k.Down,"meta+38":k.UpperView,"meta+40":k.LowerView},be=function(){function e(e){this.bus=e}return e.prototype.action=function(e){var t=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return ye[t]},e.prototype.move=function(e,t,n,r,o){return r?t===k.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n,o),e):t===k.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n,o),e):r.move(e,t):e},e}(),ke=function(){function e(e){this.dom=e,this.monthScrolled=!1,this.navScrolled=!1}return e.prototype.configure=function(e){var t=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=function(e){return function(t){return Math.floor(t/e)}}(t),this.powerByMagnitude=function(e){return function(t){return t*e}}(t)},e.prototype.sync=function(e,t,n){if(e&&t){if(this.navigator=e,this.view=t,n.target===this.navigator.element){if(this.monthScrolled)return void(this.monthScrolled=!1);this.navScrolled=!0,this.scrollSiblingOf(this.navigator.element)}if(n.target===this.view.element){if(this.navScrolled)return void(this.navScrolled=!1);this.monthScrolled=!0,this.scrollSiblingOf(this.view.element)}}},e.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),n=this.calculateScroll(t,e.scrollTop);t.scrollTo(n)},e.prototype.siblingComponent=function(e){return this.navigator.element===e?this.view:this.navigator},e.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},e}(),Ce=function(){function e(e){this.intl=e}return e.prototype.getWeekNames=function(e){void 0===e&&(e=!1);var t=ee(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t},e}(),Oe=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),we=function(){return(we=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ee=function(e){return l.createElement("td",{key:e,className:"k-calendar-td"}," ")},Se=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildWeekNumber=function(e,n){if(!t.firstDate(e))return Ee("week-cell-"+n);var r=t.firstDate(e),o=t.getWeekNumber(r),i="kendo-react-calendar-week-cell-"+o,a={className:"k-alt",value:o,firstDate:r};return t.props.weekCell?l.createElement(t.props.weekCell,we({},a,{key:i}),o):l.createElement(M,we({},a,{key:i}),o)},t.buildRow=function(e){return e.map((function(e,n){if(!e)return Ee(n);var r={"aria-selected":e.isSelected},o="kendo-react-calendar-cell-"+e.value.getTime(),i=we({},r,e,{isDisabled:!e.isInRange,view:t.props.activeView,onClick:t.handleClick,onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave});return t.props.cell?l.createElement(t.props.cell,we({},i,{key:o}),e.formattedValue):l.createElement(T,we({},i,{key:o}),e.formattedValue)}))},t.firstDate=function(e){var n=t.firstWeekDateContext(e);return n?n.value:null},t.firstWeekDateContext=function(e){if(!t.weekNumber)return null;for(var n=0,r=e[n];!r&&n<e.length;)r=e[++n];return r},t.handleClick=function(e,n){var r=t.props.onChange;if(r){var o={value:Object(d.cloneDate)(e),target:t,nativeEvent:n&&n.nativeEvent,syntheticEvent:n};r.call(void 0,o)}},t.handleMouseEnter=function(e){var n=t.props.onCellEnter;n&&n.call(void 0,Object(d.cloneDate)(e))},t.handleMouseLeave=function(e){var n=t.props.onCellLeave;n&&n.call(void 0,Object(d.cloneDate)(e))},t}return Oe(t,e),Object.defineProperty(t.prototype,"min",{get:function(){return this.props.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.props.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isHorizontal",{get:function(){return"horizontal"===this.props.direction},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isMonthView",{get:function(){return this.props.activeView===C.month},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===C.month)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedDate",{get:function(){return void 0!==this.props.selectedDate?this.props.selectedDate:t.defaultProps.selectedDate},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;this.intl=Object(p.provideIntlService)(this),this.weekService=new Ce(this.intl);var t=this.weekService.getWeekNames(this.weekNumber),n=this.props.service.rowLength(this.weekNumber),r=this.props.service.title(this.props.viewDate),o=G(),i=Y(this.props.viewDate,o),a=this.props.service.data({cellUID:this.props.cellUID,min:this.min,max:this.max,focusedDate:this.props.focusedDate,isActiveView:!this.props.bus.canMoveDown(this.props.activeView),selectedDate:this.selectedDate,selectionRange:this.props.selectionRange,viewDate:i});return l.createElement(l.Fragment,null,this.isMonthView&&this.isHorizontal&&l.createElement("thead",{role:"rowgroup",className:"k-calendar-thead"},l.createElement("tr",{role:"row",className:"k-calendar-tr"},t.map((function(e,t){return l.createElement("th",{key:t,className:"k-calendar-th"},e)})))),l.createElement("tbody",{role:"rowgroup",className:"k-calendar-tbody"},!this.isHorizontal&&l.createElement("tr",{role:"presentation",className:"k-calendar-tr"},l.createElement("th",{scope:"col",colSpan:n,className:"k-calendar-th"},r)),a.map((function(t,n){return l.createElement("tr",{role:"row",className:"k-calendar-tr",key:n},e.weekNumber&&e.buildWeekNumber(t,n),e.buildRow(t))}))))},t.prototype.getWeekNumber=function(e){return this.weekNumber?Object(d.weekInYear)(e,this.intl.firstDay()):null},t.propTypes={activeRangeEnd:u.oneOf(["start","end",null]),activeView:u.number.isRequired,cellUID:u.string.isRequired,direction:u.oneOf(["horizontal","vertical"]),focusedDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onChange:u.func,selectedDate:u.oneOfType([u.instanceOf(Date),u.arrayOf(u.instanceOf(Date))]),showWeekNumbers:u.bool,viewDate:u.instanceOf(Date).isRequired},t.defaultProps={direction:"vertical",selectedDate:G(),showWeekNumbers:!1},t}(l.Component);Object(p.registerForIntl)(Se);var De,xe=n(5),Ie=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Te=function(){return(Te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},Pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ie(t,e),t.prototype.render=function(){var e=this.props,t=(e.view,_e(e,["view"]));return l.createElement(xe.Button,Te({type:"button",look:"flat"},t),this.props.children)},t}(l.PureComponent),Ne=new Date(1980,0,1),Me=new Date(1900,0,1),Re=new Date(2099,11,31),je=new Date(1980,0,1),Fe=new Date(1980,0,1,23,59,59),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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Le=function(){return(Le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ve=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getTitle=function(){if(!t.props.currentDate)return"";var e=t.rangeLength-1,n=t.props.service.title(t.props.currentDate),r=t.props.service.addToDate(t.props.currentDate,e);return e<1||!t.props.service.isInRange(r,t.min,t.max)?n:n+" - "+t.props.service.title(r)},t.handleTitleClick=function(e){t.canMoveUp&&t.props.bus.moveUp(t.props.activeView,e)},t}return Ae(t,e),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rangeLength",{get:function(){return void 0!==this.props.rangeLength?this.props.rangeLength:t.defaultProps.rangeLength},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canMoveUp",{get:function(){return this.props.bus.canMoveUp(this.props.activeView)},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this.getTitle(),t=Object(c.classNames)("k-calendar-title"),n={children:e,value:e,view:this.props.activeView,className:t,onClick:this.handleTitleClick,disabled:!this.canMoveUp},r=this.props.headerTitle?l.createElement(this.props.headerTitle,Le({},n),e):l.createElement(Pe,Le({},n),e);return l.createElement("div",{className:"k-calendar-header k-hstack"},r,l.createElement("span",{className:"k-spacer"}),l.createElement("span",{className:"k-calendar-nav k-hstack"},this.props.commands))},t.propTypes={activeView:u.number.isRequired,currentDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,rangeLength:u.number},t.defaultProps={rangeLength:1,min:Me,max:Re},t}(l.Component);Object(p.registerForLocalization)(Ve);var Be="multiviewcalendar.prevView",ze="multiviewcalendar.nextView",He="dateinput.increment",Ue="dateinput.decrement",Ke="daterangepicker.swapStartEnd",We="daterangepicker.separator",qe="datetimepicker.toggleDateTimeSelector",Ye="timepicker.selectNow",Ge="timepicker.toggleClock",Ze=((De={})["calendar.today"]="TODAY",De["timepicker.now"]="NOW",De["timepicker.set"]="Set",De["timepicker.cancel"]="Cancel",De["datetimepicker.date"]="Date",De["datetimepicker.time"]="Time",De["datetimepicker.cancel"]="Cancel",De["datetimepicker.set"]="Set",De["daterangepicker.start"]="Start",De["daterangepicker.end"]="End",De[We]=" ",De[Ye]="Select Now",De["timepicker.toggleTimeSelector"]="Toggle TimeSelector",De[Ge]="Toggle Clock",De[He]="Increase value",De[Ue]="Decrease value",De["datepicker.toggleCalendar"]="Toggle calendar",De[Be]="Navigate to previous view",De[ze]="Navigate to next view",De[Ke]="Swap start and end values",De[qe]="Toggle date-time selector",De),Xe=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.todayIsInRange&&t.props.onClick&&t.props.onClick.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:te(G(),t.min,t.max),target:t,isTodayClick:!0})},t}return Xe(t,e),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"todayIsInRange",{get:function(){return Z(G(),Object(d.getDate)(this.min),Object(d.getDate)(this.max))},enumerable:!0,configurable:!0}),t.prototype.render=function(){this.localization=Object(p.provideLocalizationService)(this);var e=this.localization.toLanguageString("calendar.today",Ze["calendar.today"]),t=Object(c.classNames)("k-nav-today",{"k-state-disabled":this.props.disabled});return l.createElement("span",{className:t,onClick:this.handleClick},e)},t.propTypes={max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onClick:u.func,disabled:u.bool},t.defaultProps={min:Me,max:Re},t}(l.Component);Object(p.registerForLocalization)(Qe);var $e=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Je=function(e){function t(t){var n=e.call(this,t)||this;return n.isActive=!1,n.animateToIndex=!0,n.shouldScroll=!1,n.focusActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-state-focused"),t=n._element.querySelector(".k-state-pending-focus");e&&e[0]&&e[0].classList.remove("k-state-focused"),t&&t.classList.add("k-state-focused"),n.isActive=!0}},n.blurActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-state-focused");e&&e.classList.remove("k-state-focused"),n.isActive=!1}},n.handleVirtualizationMount=function(e){if(n.virtualization=e,n.virtualization&&n.table){n.table.style.transform="translateY("+n.viewOffset+"px)";var t=te(n.props.focusedDate,n.props.min,n.props.max),r=n.props.service.skip(t,n.props.min);n.virtualization.scrollToIndex(r)}},n.buildMonthView=function(e,t){return l.createElement("table",{key:"calendar-view-list-weekdays",className:"k-calendar-table k-calendar-weekdays"},l.createElement("colgroup",null,e.map((function(e,t){return l.createElement("col",{key:t})}))),l.createElement("thead",{className:"k-calendar-thead"},l.createElement("tr",{className:"k-calendar-tr"},t.map((function(e,t){return l.createElement("th",{key:t,className:"k-calendar-th"},e)})))))},n.buildDates=function(e,t){var r=n.props.cellUID;return l.createElement("table",{className:"k-calendar-table",ref:function(e){return n.table=e}},l.createElement("colgroup",null,e.map((function(e,t){return l.createElement("col",{key:t})}))),t.map((function(e){return l.createElement(Se,{ref:function(e){n.calendarView||(n.calendarView=e)},key:e.getTime(),activeView:n.props.activeView,viewDate:e,min:n.props.min,max:n.props.max,cellUID:r,focusedDate:n.props.focusedDate,cell:n.props.cell,selectedDate:n.props.value,showWeekNumbers:n.weekNumber,onChange:n.handleDateChange,bus:n.props.bus,service:n.props.service,weekCell:n.props.weekCell})})))},n.calculateHeights=function(){if(n.props.dom){var e=n.props.activeView===C.month?n.props.dom.scrollableContentHeight:n.props.dom.scrollableYearContentHeight;n.bottomOffset=e-n.props.dom.viewHeight(n.props.activeView),n.viewOffset=-1*n.props.dom.headerHeight,n.viewHeight=n.props.dom.viewHeight(n.props.activeView)||1}},n.getTake=function(e,t){return Math.min(t-e,n.take)},n.handleScrollAction=function(e){var t=e.index,r=e.scrollAction,o=e.pageAction,i=o?o.skip:n.state.skip;if(n.state.index===t&&n.state.skip===i||n.setState({index:t,skip:i}),n.table&&r){var a="translateY("+r.offset+"px)";n.table.style.transform=a}},n.handleTodayClick=function(e){n.shouldScroll=!0,n.handleDateChange.call(void 0,e,!0)},n.handleDateChange=function(e,t){void 0===t&&(t=!1);var r=n.props.onChange;if(r){var o={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:Object(d.cloneDate)(e.value),target:n,isTodayClick:t};r.call(void 0,o)}},n.lastView=n.props.activeView,n.lastFocus=n.props.focusedDate,n.state={skip:n.props.service.skip(n.props.focusedDate,n.props.min),index:n.props.service.skip(n.props.focusedDate,n.props.min)},n}return $e(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weekNames",{get:function(){this.intl=Object(p.provideIntlService)(this);var e=ee(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===C.month)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"take",{get:function(){return void 0!==this.props.take?this.props.take:t.defaultProps.take},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"todayIsInRange",{get:function(){return Z(G(),Object(d.getDate)(this.props.min),Object(d.getDate)(this.props.max))},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){this.shouldScroll=!1,void 0!==this.indexToScroll&&this.virtualization&&this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.isActive&&this.focusActiveDate(),this.lastView=this.props.activeView,this.indexToScroll=void 0},t.prototype.render=function(){var e=this;this.calculateHeights();var t=this.lastView!==this.props.activeView,n=te(this.props.focusedDate,this.props.min,this.props.max),r=t?this.props.service.skip(n,this.props.min):this.state.skip,o=this.props.service.total(this.props.min,this.props.max),i=this.getTake(r,o),a=this.props.service.addToDate(this.props.min,r),s=this.props.service.addToDate(this.props.min,this.state.index),u=new Array(this.props.service.rowLength(this.weekNumber)).fill(""),p=this.props.activeView!==this.lastView;this.animateToIndex=!p,(p||!Object(d.isEqualDate)(this.lastFocus,n)||this.shouldScroll||!this.props.shouldScroll||this.props.shouldScroll())&&(this.indexToScroll=this.props.service.skip(n,this.props.min)),this.lastFocus=n;var f=Object(c.classNames)("k-calendar-view k-vstack",{"k-calendar-monthview":this.props.activeView===C.month,"k-calendar-yearview":this.props.activeView===C.year,"k-calendar-decadeview":this.props.activeView===C.decade,"k-calendar-centuryview":this.props.activeView===C.century}),h=this.buildDates(u,this.props.service.datesList(a,i)),m=l.createElement(l.Fragment,null,l.createElement(Ve,{key:"calendar-view-list-header",currentDate:s,min:this.props.min,max:this.props.max,activeView:this.props.activeView,bus:this.props.bus,service:this.props.service,headerTitle:this.props.headerTitle,commands:l.createElement(l.Fragment,null,l.createElement(Qe,{min:this.props.min,max:this.props.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}))}),this.props.activeView===C.month&&this.buildMonthView(u,this.weekNames),l.createElement(S,{key:"calendar-view-list-content",skip:r,take:this.take,total:o,itemHeight:this.viewHeight,topOffset:this.viewOffset,bottomOffset:this.bottomOffset,scrollOffsetSize:this.viewOffset,maxScrollDifference:this.viewHeight,onScroll:this.props.onScroll,onScrollAction:this.handleScrollAction,onMount:this.handleVirtualizationMount,children:h}));return l.createElement("div",{ref:function(t){e._element=t},className:f},this.props.dom.didCalculate?m:null)},t.propTypes={activeView:u.number.isRequired,bottomOffset:u.number,cellUID:u.string.isRequired,focusedDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onChange:u.func,showWeekNumbers:u.bool,smoothScroll:u.bool,take:u.number,value:u.instanceOf(Date),viewHeight:u.number,viewOffset:u.number},t.defaultProps={take:5,showWeekNumbers:!1,smoothScroll:!0},t}(l.Component);Object(p.registerForIntl)(Je);var et=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tt=function(){return(tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},nt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},rt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){var n=t.props,r=n.onClick,o=n.value;r&&r.call(void 0,o,e)},t}return et(t,e),t.prototype.render=function(){var e=this.props,t=e.isRangeStart,n=(e.value,e.text,nt(e,["isRangeStart","value","text"]));return l.createElement("li",tt({},n,{onClick:this.handleClick}),l.createElement("span",{className:Object(c.classNames)({"k-calendar-navigation-marker":t})},this.props.children))},t}(l.Component),ot=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),it=function(){return(it=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},at=function(e){function t(t){var n=e.call(this,t)||this;n.topOffset=0,n.handleVirtualizationMount=function(e){if(n.virtualization=e,n.virtualization&&n.list){n.list.style.transform="translateY("+n.topOffset+"px)";var t=te(n.props.focusedDate,n.props.min,n.props.max),r=n.props.service.skip(t,n.props.min);n.virtualization.scrollToIndex(r)}},n.buildNavigationItem=function(e){var t=n.props.service.navigationTitle(e),r=n.props.service.isRangeStart(e),o="kendo-react-calendar-nav-item-"+e.getTime(),i={text:t,value:e,isRangeStart:r,view:n.props.activeView,onClick:n.handleDateChange};return n.props.navigationItem?l.createElement(n.props.navigationItem,it({},i,{key:o}),t):l.createElement(rt,it({},i,{key:o}),t)},n.calculateHeights=function(){var e=n.props.dom.calendarHeight;n.itemHeight=n.props.dom.navigationItemHeight||1,n.maxViewHeight=n.props.dom.monthViewHeight,n.topOffset=(e-n.itemHeight)/2,n.bottomOffset=e-n.itemHeight},n.handleDateChange=function(e,t){var r=n.props.onChange;if(r){var o={value:Object(d.cloneDate)(e),target:n,nativeEvent:t&&t.nativeEvent,syntheticEvent:t};r.call(void 0,o)}},n.handleScrollAction=function(e){var t=e.scrollAction,r=e.pageAction,o=r?r.skip:n.state.skip;if(n.state.skip!==o&&n.setState({skip:o}),n.list&&t){var i="translateY("+t.offset+"px)";n.list.style.transform=i}},n.lastView=n.props.activeView,n.lastFocus=n.props.focusedDate;var r=n.props.service.skip(n.props.focusedDate,n.props.min),o=n.props.service.total(n.props.min,n.props.max);return n.state={skip:r-n.getTake(r,o)>0?r:0},n}return ot(t,e),Object.defineProperty(t.prototype,"take",{get:function(){return void 0!==this.props.take?this.props.take:t.defaultProps.take},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){void 0!==this.indexToScroll&&this.virtualization&&this.virtualization.scrollToIndex(this.indexToScroll),this.lastView=this.props.activeView,this.lastFocus=this.props.focusedDate,this.indexToScroll=void 0},t.prototype.render=function(){var e=this;this.calculateHeights();var t=this.lastView!==this.props.activeView,n=te(this.props.focusedDate,this.props.min,this.props.max),r=t?this.props.service.skip(n,this.props.min):this.state.skip,o=this.props.service.total(this.props.min,this.props.max),i=this.getTake(r,o),a=this.props.service.addToDate(this.props.min,r),s=this.props.service.datesList(a,i);this.props.activeView===this.lastView&&Object(d.isEqual)(n,this.lastFocus)||(this.indexToScroll=this.props.service.skip(n,this.props.min));var u=l.createElement(S,{skip:r,take:this.take,total:o,itemHeight:this.itemHeight,topOffset:this.topOffset,bottomOffset:this.bottomOffset,onScroll:this.props.onScroll,maxScrollDifference:this.maxViewHeight,onScrollAction:this.handleScrollAction,onMount:this.handleVirtualizationMount},l.createElement("ul",{ref:function(t){e.list=t},className:"k-reset"},s.map((function(t){return e.buildNavigationItem(t)}))));return l.createElement("div",{className:"k-calendar-navigation"},l.createElement("span",{className:"k-calendar-navigation-highlight"}),this.props.dom.didCalculate?u:null)},t.prototype.getTake=function(e,t){return Math.min(t-e,this.take)},t.propTypes={activeView:u.number.isRequired,focusedDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onChange:u.func,take:u.number},t.defaultProps={take:30},t}(l.Component),st=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lt=function(){return(lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ut=function(e){return e?e.virtualization:null},ct=function(e,t,n,r){return void 0===e&&(e=dt.defaultProps.min),void 0===t&&(t=dt.defaultProps.max),void 0!==r?null!==r&&Z(Object(d.getDate)(r),e,t)?r:null:null!==n&&Z(Object(d.getDate)(n),e,t)?n:null},dt=function(e){function t(n){var r=e.call(this,n)||this;r.cellUID=Object(c.guid)(),r.id=Object(c.guid)(),r.isActive=!1,r.didNavigationChange=!1,r.focus=function(){r._element&&r._element.focus()},r.shouldScroll=function(){return r.didNavigationChange},r.handleScroll=function(e){r.scrollSyncService&&r.scrollSyncService.sync(ut(r.Navigation),ut(r.calendarViewList),e)},r.handleNavigationChange=function(e){if(!r.props.disabled){r.didNavigationChange=!0;var t=Object(d.cloneDate)(e.value);r.setState({focusedDate:t})}},r.handleViewChange=function(e){var t=e.view;r.scrollSyncService.configure(t),r.setState({activeView:t})},r.handleDateChange=function(e){var t=Object(d.cloneDate)(e.value),n=Object(d.cloneDate)(e.value),o=r.bus.canMoveDown(r.state.activeView);if(!r.props.disabled){if(o){if(!e.isTodayClick)return r.bus.moveDown(r.state.activeView,e.syntheticEvent),void r.setState({focusedDate:n});r.bus.moveToBottom(r.state.activeView)}r.setState({value:t,focusedDate:n}),r.valueDuringOnChange=t;var i=r.props.onChange;if(i){var a={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:t,target:r};i.call(void 0,a)}r.valueDuringOnChange=void 0}},r.handleFocus=function(e){if(r.isActive=!0,r.calendarViewList){r.calendarViewList.focusActiveDate();var t=r.props.onFocus;t&&t.call(void 0,e)}},r.handleBlur=function(e){if(r.isActive=!1,r.calendarViewList){r.calendarViewList.blurActiveDate();var t=r.props.onBlur;t&&t.call(void 0,e)}},r.handleKeyDown=function(e){if(e.keyCode===c.Keys.enter){if(null!==r.value&&Object(d.isEqualDate)(r.focusedDate,r.value)){var t=te(r.focusedDate,r.min,r.max);ut(r.calendarViewList).scrollToIndex(r.service.skip(t,r.min))}var n={syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.focusedDate,target:r};r.handleDateChange.call(void 0,n)}else{var o=te(r.navigation.move(r.focusedDate,r.navigation.action(e),r.state.activeView,r.service,e),r.min,r.max);if(Object(d.isEqualDate)(r.focusedDate,o))return;r.setState({focusedDate:o})}e.preventDefault()},r.handleMouseDown=function(e){e.preventDefault()},r.handleClick=function(e){r._element&&r._element.focus({preventScroll:!0})},Object(c.validatePackage)(f);var o=ct(r.min,r.max,r.props.defaultValue||t.defaultProps.defaultValue,r.props.value);return r.state={value:o,activeView:z(C[n.defaultActiveView],r.bottomView,r.topView),focusedDate:te(n.focusedDate||o||G(),r.min,r.max)},r.dom=new ge,r.bus=new ve(r.handleViewChange),r.navigation=new be(r.bus),r.oldValue=o,r}return st(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return Object(d.getDate)(void 0!==this.props.min?this.props.min:t.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return Object(d.getDate)(void 0!==this.props.max?this.props.max:t.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomView",{get:function(){return C[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topView",{get:function(){return C[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;Promise.resolve().then((function(){e._element&&(e.dom.calculateHeights(e._element),e.scrollSyncService=new ke(e.dom),e.scrollSyncService.configure(e.state.activeView),e.forceUpdate())}))},t.prototype.componentDidUpdate=function(e,t){t.activeView!==this.state.activeView&&this.scrollSyncService.configure(this.state.activeView),this.calendarViewList&&(this.isActive?this.calendarViewList.focusActiveDate:this.calendarViewList.blurActiveDate)(),this.didNavigationChange=!1,this.oldValue=this.value},t.prototype.render=function(){var e=this;this.props._ref&&this.props._ref(this);var n=null!==this.value&&null!==this.oldValue?!Object(d.isEqualDate)(this.value,this.oldValue):this.value!==this.oldValue,r=z(this.state.activeView,C[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView],C[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]),o=ct(this.min,this.max,this.value,this.value),i=o?Object(d.getDate)(o):null;this.focusedDate=Object(d.getDate)(te(n&&null!==o?o:this.state.focusedDate,this.min,this.max)),this.intl=Object(p.provideIntlService)(this),this.bus.configure(this.bottomView,this.topView),this.service=this.bus.service(r,this.intl);var a=Object(c.classNames)("k-widget k-calendar k-calendar-infinite",{"k-state-disabled":this.props.disabled,"k-week-number":this.props.weekNumber},this.props.className),s={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},u=[this.props.navigation&&l.createElement(at,{key:0,ref:function(t){e.Navigation=t},activeView:this.state.activeView,focusedDate:this.focusedDate,min:this.min,max:this.max,onScroll:this.handleScroll,onChange:this.handleNavigationChange,service:this.service,dom:this.dom,navigationItem:this.props.navigationItem}),l.createElement(Je,{key:1,ref:function(t){e.calendarViewList=t},activeView:this.state.activeView,focusedDate:this.focusedDate,min:this.min,max:this.max,bus:this.bus,shouldScroll:this.shouldScroll,onScroll:this.handleScroll,service:this.service,cell:this.props.cell,weekCell:this.props.weekCell,dom:this.dom,smoothScroll:this.props.smoothScroll,showWeekNumbers:this.props.weekNumber,onChange:this.handleDateChange,value:i,cellUID:this.cellUID,headerTitle:this.props.headerTitle})];return l.createElement("div",lt({},s,{ref:function(t){e._element=t},className:a,id:this.props.id||this.id,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,role:"grid",tabIndex:this.props.disabled?void 0:this.props.tabIndex||0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onClick:this.handleClick}),u)},t.displayName="Calendar",t.propTypes={className:u.string,defaultActiveView:u.oneOf(["month","year","decade","century"]),defaultValue:u.instanceOf(Date),disabled:u.bool,focusedDate:u.instanceOf(Date),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,max:u.instanceOf(Date),min:u.instanceOf(Date),navigation:u.bool,smoothScroll:u.bool,onBlur:u.func,onChange:u.func,onFocus:u.func,tabIndex:u.number,value:u.instanceOf(Date),weekNumber:u.bool,topView:function(e,t,n){var r=e[t],o=e.bottomView;return r&&o&&C[r]<C[o]?new Error("Invalid prop + "+t+" suplied to "+n+".\n "+t+" can not be smaller than bottomView.\n "):null},bottomView:function(e,t,n){var r=e[t],o=e.topView;return r&&o&&C[r]>C[o]?new Error("Invalid prop + "+t+" suplied to "+n+".\n "+t+" can not be bigger than topView.\n "):null}},t.defaultProps={disabled:!1,min:Me,max:Re,navigation:!0,defaultActiveView:"month",defaultValue:null,smoothScroll:!0,topView:"century",bottomView:"month"},t}(l.Component),pt=Object(c.createPropsContext)(),ft=Object(c.withPropsContext)(pt,dt);ft.displayName="KendoReactCalendar",Object(p.registerForIntl)(dt);var ht=function(){this.symbols=""},mt=function(e,t){return e[t.pattern[0]]=t.type,e},vt=["k-widget","k-dateinput"],gt=function(){function e(e,t,n){this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.leadingZero=null,this.typedMonthPart="",this.knownParts="adHhmMsEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",y:"y"},this._value=Object(d.getDate)(new Date),this.intlProvider=e,this.formatPlaceholder=t,this.format=n,this.monthNames=this.allFormatedMonths()}return Object.defineProperty(e.prototype,"intl",{get:function(){return this.intlProvider()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e.prototype.setValue=function(e){e?Object(d.isEqual)(e,this._value)||(this._value=Object(d.cloneDate)(e),this.modifyExisting(!0)):(this._value=Object(d.getDate)(new Date),this.modifyExisting(!1))},e.prototype.hasValue=function(){var e=this;return this.intl.splitDateFormat(this.format).reduce((function(t,n){return t||"literal"!==n.type&&"dayperiod"!==n.type&&e.getExisting(n.pattern[0])}),!1)},e.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return Object(d.cloneDate)(this.value)},e.prototype.getTextAndFormat=function(){return this.merge(this.intl.formatDate(this.value,this.format),this.dateFormatString(this.value,this.format))},e.prototype.modifyExisting=function(e){for(var t=this.dateFormatString(this.value,this.format).symbols,n=0;n<t.length;n++)this.setExisting(t[n],e)},e.prototype.getExisting=function(e){switch(e){case"y":return this.year;case"M":case"L":return this.month;case"d":return this.date;case"E":return this.date&&this.month&&this.year;case"h":case"H":return this.hours;case"m":return this.minutes;case"s":return this.seconds;default:return!0}},e.prototype.setExisting=function(e,t){switch(e){case"y":this.year=t,!1===t&&this._value.setFullYear(2e3);break;case"M":this.month=t,!1===t&&this._value.setMonth(0);break;case"d":this.date=t;break;case"h":case"H":this.hours=t;break;case"m":this.minutes=t;break;case"s":this.seconds=t;break;default:return}},e.prototype.modifyPart=function(e,t){var n=Object(d.cloneDate)(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=Object(d.addMonths)(this.value,t);break;case"d":case"E":n.setDate(n.getDate()+t);break;case"h":case"H":n.setHours(n.getHours()+t);break;case"m":n.setMinutes(n.getMinutes()+t);break;case"s":n.setSeconds(n.getSeconds()+t);break;case"a":n.setHours(n.getHours()+12*t)}this.setExisting(e,!0),this._value=n},e.prototype.parsePart=function(e,t){var n;if(this.resetLeadingZero(),!t)return this.setExisting(e,!1),{value:null};for(var r=this.intl.formatDate(this.value,this.format),o=this.dateFormatString(this.value,this.format),i=o.symbols,a=!1,s="",l="",u="",c=0;c<r.length;c++)i[c]===e?(l+=this.getExisting(e)?r[c]:"0",a=!0):a?u+=r[c]:s+=r[c];for(var p=null,f=this.matchMonth(t);l.length>0&&"0"===l.charAt(0);)l=l.slice(1);l.length>=4&&(l="");for(c=0;c<2;c++){var h=l+t,m=parseInt(h,10);if(!(p=this.intl.parseDate(s+h+u,this.format))&&!isNaN(m)&&!isNaN(parseInt(t,10))){if("M"===e&&!f){var v=m-1;v>-1&&v<12&&((p=Object(d.cloneDate)(this.value)).setMonth(v),p.getMonth()!==v&&(p=Object(d.lastDayOfMonth)(Object(d.addMonths)(p,-1))))}"y"===e&&(p=Object(d.createDate)(parseInt(h,10),this.month?this.value.getMonth():0,this.date?this.value.getDate():1,this.hours?this.value.getHours():0,this.minutes?this.value.getMinutes():0,this.seconds?this.value.getSeconds():0,this.milliseconds?this.value.getMilliseconds():0),this.date&&p.getDate()!==this.value.getDate()&&(p=Object(d.lastDayOfMonth)(Object(d.addMonths)(p,-1))))}if(p)return this._value=p,this.setExisting(e,!0),{value:this.value};l=""}return f&&(p=this.intl.parseDate(s+f+u,this.format))?(this._value=p,this.setExisting(e,!0),{value:this.value}):("0"===t&&(this.leadingZero=this.isAbbrMonth(o.partMap,e)?null:((n={})[e]=!0,n),this.setExisting(e,!1)),{value:null})},e.prototype.symbolMap=function(e){return this.intl.splitDateFormat(this.format).reduce(mt,{})[e]},e.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.leadingZero=null,e},e.prototype.isAbbrMonth=function(e,t){var n=this.partPattern(e,t);return"month"===n.type&&n.names},e.prototype.partPattern=function(e,t){return e.filter((function(e){return-1!==e.pattern.indexOf(t)}))[0]},e.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),0===this.monthNames.length)return"";for(;this.typedMonthPart.length>0;){for(var t=0;t<this.monthNames.length;t++)if(0===this.monthNames[t].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[t];var n=parseInt(this.typedMonthPart,10);if(n>=1&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""},e.prototype.allFormatedMonths=function(){for(var e=this.intl.splitDateFormat(this.format),t=0;t<e.length;t++)if("month"===e[t].type&&e[t].names)return this.intl.dateFormatNames(e[t].names);return[]},e.prototype.dateFormatString=function(e,t){for(var n=this.intl.splitDateFormat(t),r=[],o=[],i=0;i<n.length;i++)for(var a=this.intl.formatDate(e,{pattern:n[i].pattern}).length;a>0;)r.push(this.symbols[n[i].pattern[0]]||"_"),o.push(n[i]),a--;var s=new ht;return s.symbols=r.join(""),s.partMap=o,s},e.prototype.merge=function(e,t){for(var n="",r="",o=t.symbols,i=o.length-1;i>=0;i--)if(-1===this.knownParts.indexOf(o[i])||this.getExisting(o[i]))n=e[i]+n,r=o[i]+r;else{for(var a=o[i];i>=0&&a===o[i];)i--;for(i++,n=this.leadingZero&&this.leadingZero[a]?"0"+n:this.dateFieldName(t.partMap[i])+n;r.length<n.length;)r=o[i]+r}return{text:n,format:r}},e.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]?t[e.type]:"formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t}))},e}(),yt=n(6),bt="dayperiod",kt="hour",Ct="minute",Ot="second",wt=function(e){return function(t,n){var r=Object(d.cloneDate)(t);return r[e](n),r}},Et=[{type:kt,getter:function(e){return e.getHours()}},{type:Ct,getter:function(e){return e.getMinutes()}},{type:Ot,getter:function(e){return e.getSeconds()}},{type:"millisecond",getter:function(e){return e.getMilliseconds()}}],St=function(e){return function(t){return e.map(function(e){return function(t){return e[t.type]?(n=t.getter,function(e,t){return n(t)}):function(e){return function(t,n){return e(t)}}(t.getter);var n}}(function(e){return e.reduce((function(e,t){return e[t.type]=t.type,e}),{})}(t)))}}(Et),Dt=function(e){return function(t,n){return e.map((function(e){var r=Math.floor(t[e.type]);return r?function(e,t,n,r){return function(o){var i=e(o),a=e(n);return"hour"===r?i-(i-a)%t:o.getTime()<=n.getTime()&&0!==i&&i<=a?Math.ceil(i/t)*t:i-i%t}}(e.getter,r,n,e.type):e.getter}))}}(Et),xt=function(e){return function(t){var n=Object(d.cloneDate)(t);return n.setHours.apply(n,e.map((function(e){return e(n)}))),n}},It=wt("setHours"),Tt=wt("setMinutes"),_t=wt("setSeconds"),Pt=function(){return new Date},Nt=function(e,t,n){void 0===n&&(n=1);for(var r=[],o=e;o<t;o+=n)r.push(o);return r},Mt=function(e,t,n){return{candidateValue:Y(H,e),maxValue:Object(d.addDays)(Y(H,n),t.getHours()<n.getHours()?0:1),minValue:Y(H,t)}},Rt=function(e,t,n){if(!e||!t||!n)return!0;var r=Mt(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return i<=o&&o<=a},jt=function(e,t){if(null===e||null===t)return!1;var n=Y(H,e),r=Y(H,t);return n.getTime()<r.getHours()},Ft=function(e,t){if(null===e||null===t)return!1;var n=Y(H,e);return Y(H,t).getTime()<n.getHours()},At=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lt=function(){return(Lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Vt=function(e){function t(n){var r=e.call(this,n)||this;return r.kendoDate=null,r.paste=!1,r._element=null,r._wrapper=null,r._inputId=Object(c.guid)(),r.focus=function(){r._element&&r._element.focus()},r.setValidity=function(){r.element&&r.element.setCustomValidity&&r.element.setCustomValidity(r.validity.valid?"":r.props.validationMessage||t.defaultProps.validationMessage)},r.updateOnPaste=function(e){if(r.element&&r.kendoDate){var t=Object(p.provideIntlService)(r).parseDate(r.element.value,r.props.format)||r.value,n=r.value;r.kendoDate.setValue(t),r.triggerChange(e,n)}},r.spinnersMouseDown=function(e){e.preventDefault(),r.element&&document.activeElement!==r.element&&r.element.focus({preventScroll:!0})},r.handlePaste=function(){r.paste=!0},r.elementChange=function(e){if(r.element&&r.kendoDate){if(r.paste)return r.updateOnPaste(e),void(r.paste=!1);var t=r.kendoDate.getTextAndFormat(),n=t.text,o=t.format;r.currentFormat=o;var i=r.value,a=function(e,t,n,r){var o=e[r+e.length-n.length],i=e.substring(0,r+e.length-n.length),a=n.substring(0,r),s=[];if(i===a&&r>0)return s.push([t[r-1],a[r-1]]),s;if(0===i.indexOf(a)&&(0===a.length||t[a.length-1]!==t[a.length])){var l="";1===a.length&&s.push([t[0],a[0]]);for(var u=a.length;u<i.length;u++)t[u]!==l&&"_"!==t[u]&&(l=t[u],s.push([l,""]));return s}if(0===a.indexOf(i)||"_"===t[r-1]){var c=t[0];for(u=Math.max(0,i.length-1);u<t.length;u++)if("_"!==t[u]){c=t[u];break}return[[c,a[r-1]]]}return" "===a[a.length-1]||a[a.length-1]===o?[[t[r-1],"_"]]:[[t[r-1],a[r-1]]]}(n,r.currentFormat,r.element.value,r.selection.start),s=1===a.length&&"_"===a[0][1];if(!s)for(var l=0;l<a.length;l++)r.kendoDate.parsePart(a[l][0],a[l][1]);a.length&&"_"!==a[0][0]&&r.setSelection(r.selectionBySymbol(a[0][0])),s&&r.switchDateSegment(1),r.triggerChange(e,i)}},r.elementClick=function(e){r.setSelection(r.selectionByIndex(r.selection.start))},r.nativeWheel=function(e){e.preventDefault()},r.wheel=function(e){document.activeElement===r.element&&(e.nativeEvent.deltaY<0&&r.increasePart(e),e.nativeEvent.deltaY>0&&r.decreasePart(e))},r.increasePart=function(e){r.modifyDateSegmentValue(1,e)},r.decreasePart=function(e){r.modifyDateSegmentValue(-1,e)},r.elementKeyDown=function(e){if(!e.altKey){switch(e.keyCode){case 37:r.switchDateSegment(-1);break;case 38:r.modifyDateSegmentValue(1,e);break;case 39:r.switchDateSegment(1);break;case 40:r.modifyDateSegmentValue(-1,e);break;default:return}e.preventDefault()}},r.elementOnFocus=function(e){r.wrapper&&r.wrapper.classList.add("k-state-focused"),r.setState({focused:!0})},r.elementOnBlur=function(e){r.wrapper&&r.wrapper.classList.remove("k-state-focused"),r.setState({focused:!1})},Object(c.validatePackage)(f),r.state={focused:!1},r}return At(t,e),t.prototype.componentDidMount=function(){this.setValidity(),this.wrapper&&this.wrapper.addEventListener("wheel",this.nativeWheel,{passive:!1})},t.prototype.componentDidUpdate=function(e,t){this._lastSelectedSymbol&&t.focused===this.state.focused?this.setSelection(this.selectionBySymbol(this._lastSelectedSymbol)):this.selection.start===this.selection.end&&this.setSelection({start:0,end:this.currentFormat.length}),this.setValidity()},t.prototype.componentWillUnmount=function(){this.wrapper&&this.wrapper.removeEventListener("wheel",this.nativeWheel)},t.prototype.render=function(){var e=this;this.props._ref&&(this.props._ref.current=this);var n=Object(p.provideLocalizationService)(this),r=Lt({},t.defaultProps,this.props),o=r.min,i=r.max,a=r.name,s=r.label,u=r.id,d=this.text,f=d===this.props.placeholder?"":d,h=d===this.props.placeholder?d:void 0,m=u||this._inputId,v=!this.validityStyles||this.validity.valid,g={"aria-valuemin":null===o?void 0:o.getTime(),"aria-valuemax":null===i?void 0:i.getTime(),"aria-valuetext":f};null!==this.value&&(g["aria-valuenow"]=this.value.getTime());var y=vt.slice();this.props.className&&y.push(this.props.className);var b=l.createElement(c.AsyncFocusBlur,{onFocus:this.elementOnFocus,onBlur:this.elementOnBlur},(function(t){var r=t.onFocus,o=t.onBlur;return l.createElement("span",{style:s?void 0:{width:e.props.width},dir:e.props.dir,className:y.join(" "),onFocus:r,onBlur:o},l.createElement("span",{className:Object(c.classNames)("k-dateinput-wrap",{"k-state-disabled":e.props.disabled,"k-state-invalid":!v}),ref:function(t){e._wrapper=t}},l.createElement("input",Lt({role:"spinbutton",tabIndex:e.props.tabIndex,disabled:e.props.disabled,title:void 0!==e.props.title?e.props.title:d,type:"text",spellCheck:!1,autoComplete:"off",autoCorrect:"off",className:"k-input",id:m,"aria-labelledby":e.props.ariaLabelledBy,"aria-describedby":e.props.ariaDescribedBy,"aria-expanded":e.props.ariaExpanded,"aria-haspopup":e.props.ariaHasPopup,onWheel:e.wheel,onClick:e.elementClick,onInput:e.elementChange,onPaste:e.handlePaste,onKeyDown:e.elementKeyDown,onChange:c.noop,value:f,placeholder:h,name:a},g,{ref:function(t){return e._element=t}})),e.props.children,e.props.spinners&&l.createElement("span",{className:"k-select",onMouseDown:e.spinnersMouseDown},l.createElement("span",{className:"k-link k-link-increase","aria-label":n.toLanguageString(He,Ze[He]),title:n.toLanguageString(He,Ze[He]),onClick:e.increasePart},l.createElement("span",{className:"k-icon k-i-arrow-n"})),l.createElement("span",{className:"k-link k-link-decrease","aria-label":n.toLanguageString(Ue,Ze[Ue]),title:n.toLanguageString(Ue,Ze[Ue]),onClick:e.decreasePart},l.createElement("span",{className:"k-icon k-i-arrow-s"})))))}));return s?l.createElement(yt.FloatingLabel,{label:s,editorId:m,editorValue:d,editorValid:v,editorDisabled:this.props.disabled,children:b,style:{width:this.props.width}}):b},Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:this.kendoDate&&this.kendoDate.getDateObject()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){var e=Lt({},zt.defaultProps,this.props),n=e.formatPlaceholder,r=void 0===n?t.defaultProps.formatPlaceholder:n,o=e.format,i=void 0===o?t.defaultProps.format:o,a=e.value,s=e.defaultValue;null===this.kendoDate?(this.kendoDate=new gt(this.intl.bind(this),r,i),this.kendoDate.setValue(a||s||null)):(this.kendoDate.format=i,this.kendoDate.formatPlaceholder=r),void 0!==a&&this.value!==a&&this.kendoDate.setValue(a);var l=this.kendoDate.getTextAndFormat(),u=l.text,c=l.format;return this.currentFormat=c,null===e.placeholder||void 0===e.placeholder||this.state.focused||this.kendoDate.hasValue()?u:e.placeholder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e,t,n,r=(e=this.value,t=this.min,n=this.max,(null===e||!(t&&t>e||n&&n<e))&&Rt(this.value,this.props.minTime,this.props.maxTime)),o=void 0!==this.props.validationMessage,i=(!this.required||null!==this.value)&&r,a=void 0!==this.props.valid?this.props.valid:i;return{customError:o,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:a,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapper",{get:function(){return this._wrapper},enumerable:!0,configurable:!0}),t.prototype.intl=function(){return Object(p.provideIntlService)(this)},Object.defineProperty(t.prototype,"selection",{get:function(){var e={start:0,end:0};return null!==this.element&&void 0!==this.element.selectionStart&&(e={start:this.element.selectionStart,end:this.element.selectionEnd}),e},enumerable:!0,configurable:!0}),t.prototype.setSelection=function(e){var t=this;this._lastSelectedSymbol=this.currentFormat[e.start],window.requestAnimationFrame((function(){t.element&&document.activeElement===t.element&&t.element.setSelectionRange(e.start,e.end)}))},t.prototype.triggerChange=function(e,t){this.valueDuringOnChange=this.value,this.forceUpdate(),this.props.onChange&&!Object(d.isEqual)(t,this.value)&&this.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:this.value,target:this}),this.valueDuringOnChange=void 0},t.prototype.selectionBySymbol=function(e){for(var t=-1,n=0,r=0;r<this.currentFormat.length;r++)this.currentFormat[r]===e&&(n=r+1,-1===t&&(t=r));return t<0&&(t=0),{start:t,end:n}},t.prototype.selectionByIndex=function(e){for(var t={start:e,end:e},n=e,r=e-1;n<this.currentFormat.length||r>=0;n++,r--){if(n<this.currentFormat.length&&"_"!==this.currentFormat[n]){t=this.selectionBySymbol(this.currentFormat[n]);break}if(r>=0&&"_"!==this.currentFormat[r]){t=this.selectionBySymbol(this.currentFormat[r]);break}}return t},t.prototype.switchDateSegment=function(e){var t=this.selection,n=t.start,r=t.end;if(n<r&&this.currentFormat[n]!==this.currentFormat[r-1])this.setSelection(this.selectionByIndex(e>0?n:r-1));else{for(var o=this.currentFormat[n],i=n+e;i>0&&i<this.currentFormat.length&&(this.currentFormat[i]===o||"_"===this.currentFormat[i]);)i+=e;if("_"!==this.currentFormat[i]){for(var a=i;a>=0&&a<this.currentFormat.length&&this.currentFormat[a]===this.currentFormat[i];)a+=e;i>a&&(a+1!==n||i+1!==r)?this.setSelection({start:a+1,end:i+1}):i<a&&(i!==n||a!==r)&&this.setSelection({start:i,end:a})}}},t.prototype.modifyDateSegmentValue=function(e,t){if(this.kendoDate){var n=this.value,r=this.currentFormat[this.selection.start],o=this.kendoDate.symbolMap(r),i=((this.props.steps||{})[o]||1)*e;this.kendoDate.modifyPart(r,i),this.triggerChange(t,n)}},t.displayName="DateInput",t.propTypes={value:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),width:u.oneOfType([u.string,u.number]),tabIndex:u.number,title:u.string,steps:u.shape({year:u.number,month:u.number,day:u.number,hour:u.number,minute:u.number,second:u.number}),min:u.instanceOf(Date),max:u.instanceOf(Date),disabled:u.bool,spinners:u.bool,name:u.string,dir:u.string,label:u.string,id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,ariaExpanded:u.oneOfType([u.bool]),onChange:u.func,validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool},t.defaultProps={format:"d",formatPlaceholder:"wide",spinners:!1,disabled:!1,max:Object(d.cloneDate)(K),min:Object(d.cloneDate)(U),minTime:Object(d.cloneDate)(je),maxTime:Object(d.cloneDate)(Fe),required:!1,validityStyles:!0,validationMessage:"Please enter a valid value!",placeholder:null},t}(l.Component),Bt=Object(c.createPropsContext)(),zt=Object(c.withPropsContext)(Bt,Vt);zt.displayName="KendoReactDateInput",Object(p.registerForIntl)(Vt),Object(p.registerForLocalization)(Vt);var Ht=n(9),Ut=l.forwardRef((function(e,t){var n=Object(c.classNames)("k-select",e.className);return l.createElement("a",{ref:t,id:e.id,role:"button",style:e.style,className:n,tabIndex:e.tabIndex,title:e.title,"aria-label":e.title,onMouseDown:e.onMouseDown,onClick:e.onClick,onMouseUp:e.onMouseUp},e.children)})),Kt=l.forwardRef((function(e,t){var n=e._ref,r=l.useRef(null);l.useImperativeHandle(t,(function(){return r.current})),l.useImperativeHandle(n,(function(){return r.current}));var o=l.useMemo((function(){return Object(c.classNames)(e.className,"k-picker-wrap")}),[e.className]);return l.createElement("span",{ref:r,id:e.id,style:e.style,className:o,tabIndex:e.tabIndex},e.children)})),Wt=function(){return(Wt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},qt=function(e){var t,n,r,o,i=(t=e.dateInput,n=l.useState(!1),r=n[0],o=n[1],l.useEffect((function(){t.current&&o(Boolean(t.current.text))})),{editorValue:r});return l.createElement(yt.FloatingLabel,Wt({},e,i))},Yt=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gt=function(){return(Gt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Zt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},Xt=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=Object(c.guid)(),r._element=null,r._wrapper=null,r._dateInput=l.createRef(),r._calendar=null,r.shouldFocusDateInput=!1,r.focus=function(){r.dateInput&&r.dateInput.focus()},r.setCalendarRef=function(e){r._calendar=e},r.nextValue=function(e,t){return void 0!==e.value?e.value:t.value},r.nextShow=function(e,t){return void 0!==e.show?e.show:t.show},r.handleInputValueChange=function(e){r.handleValueChange(e.value,e)},r.handleCalendarValueChange=function(e){var t=r.mergeTime(e.value);r.handleValueChange(t,e)},r.handleValueChange=function(e,t){r.setState({value:Object(d.cloneDate)(e||void 0),show:!1}),r.valueDuringOnChange=e,r.showDuringOnChange=!1,r.shouldFocusDateInput=!0;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:r.value,show:r.show,target:r}),r.valueDuringOnChange=void 0,r.showDuringOnChange=void 0},r.handleFocus=function(){r.setState({focused:!0})},r.handleBlur=function(){r.setState({focused:!1}),r.setShow(!1)},r.handleIconClick=function(){r.props.disabled||(r.shouldFocusDateInput=!0,r.setShow(!r.show))},r.handleIconMouseDown=function(e){e.preventDefault()},r.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===c.Keys.esc)return r.shouldFocusDateInput=!0,void r.setShow(!1);!t||n!==c.Keys.up&&n!==c.Keys.down||(e.preventDefault(),e.stopPropagation(),r.shouldFocusDateInput=n===c.Keys.up,r.setShow(n===c.Keys.down))},Object(c.validatePackage)(f),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r}return Yt(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?Object(d.cloneDate)(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInputComp",{get:function(){return this.props.dateInput||t.defaultProps.dateInput},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"toggleButtonComp",{get:function(){return this.props.toggleButton||t.defaultProps.toggleButton},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calendarComp",{get:function(){return this.props.calendar||t.defaultProps.calendar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"popupComp",{get:function(){return this.props.popup||t.defaultProps.popup},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pickerWrapComp",{get:function(){return this.props.pickerWrap||t.defaultProps.pickerWrap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=X(this.value,this.min,this.max),t=void 0!==this.props.validationMessage,n=(!this.required||null!==this.value)&&e,r=void 0!==this.props.valid?this.props.valid:n;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:r,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){this._calendar&&this._calendar.element&&this.show&&!this.prevShow&&this._calendar.element.focus({preventScroll:!0}),this.dateInput&&this.dateInput.element&&!this.show&&this.shouldFocusDateInput&&this.dateInput.element.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.tabIndex,o=t.title,i=t.id,a=t.format,s=t.formatPlaceholder,u=t.min,f=t.max,h=t.weekNumber,m=t.focusedDate,v=t.className,g=t.width,y=t.name,b=t.validationMessage,k=t.required,C=t.validityStyles,O=t.ariaLabelledBy,w=t.ariaDescribedBy,E=this.props.popupSettings,S=E.popupClass,D=Zt(E,["popupClass"]),x=this.show,I=this.value,T=I&&Object(d.getDate)(I),_=!this.validityStyles||this.validity.valid,P=Object(c.classNames)("k-widget k-datepicker",v),N=Object(c.classNames)("k-picker-wrap",{"k-state-invalid":!_,"k-state-disabled":n,"k-state-focused":this.state.focused}),M=Object(c.classNames)("k-calendar-container k-group k-reset",S),R={disabled:n,format:a,formatPlaceholder:s,id:i,ariaLabelledBy:O,ariaDescribedBy:w,max:f,min:u,name:y,onChange:this.handleInputValueChange,required:k,tabIndex:x?-1:r,title:o,valid:this.validity.valid,validationMessage:b,validityStyles:C,value:I,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show},j=Gt({show:x,anchor:this._wrapper||this._element,className:M,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},D),F={disabled:n,value:T,min:u,max:f,weekNumber:h,focusedDate:m,onChange:this.handleCalendarValueChange},A=l.createElement(c.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},(function(t){var n=t.onFocus,r=t.onBlur;return l.createElement("span",{role:"group","aria-expanded":e.show,ref:function(t){e._element=t},className:P,onKeyDown:e.handleKeyDown,style:{width:g},onFocus:n,onBlur:r},l.createElement(e.pickerWrapComp,{_ref:function(t){e._wrapper=t},className:N},l.createElement(e.dateInputComp,Gt({_ref:e._dateInput},R)),l.createElement(e.toggleButtonComp,{onMouseDown:e.handleIconMouseDown,onClick:e.handleIconClick,title:Object(p.provideLocalizationService)(e).toLanguageString("datepicker.toggleCalendar",Ze["datepicker.toggleCalendar"]),className:"k-select"},l.createElement("span",{className:"k-icon k-i-calendar"}))),l.createElement(e.popupComp,Gt({},j),l.createElement(e.calendarComp,Gt({_ref:e.setCalendarRef},F))))}));return this.props.label?l.createElement(qt,{dateInput:this._dateInput,label:this.props.label,editorId:i,editorValid:_,editorDisabled:this.props.disabled,children:A,style:{width:this.props.width}}):A},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.prototype.mergeTime=function(e){return this.value&&e?Y(e,this.value):e},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.displayName="DatePicker",t.propTypes={className:u.string,defaultShow:u.bool,defaultValue:u.instanceOf(Date),disabled:u.bool,focusedDate:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,min:u.instanceOf(Date),max:u.instanceOf(Date),name:u.string,popupSettings:u.shape({animate:u.bool,appendTo:u.any,popupClass:u.string}),show:u.bool,tabIndex:u.number,title:u.string,value:u.instanceOf(Date),weekNumber:u.bool,width:u.oneOfType([u.number,u.string]),validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool},t.defaultProps={defaultShow:!1,defaultValue:null,dateInput:zt,calendar:ft,toggleButton:Ut,popup:Ht.a,pickerWrap:Kt,disabled:!1,format:"d",max:K,min:U,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0},t}(l.Component),Qt=Object(c.createPropsContext)(),$t=Object(c.withPropsContext)(Qt,Xt);$t.displayName="KendoReactDatePicker",Object(p.registerForLocalization)(Xt);var Jt,en,tn,nn=function(e,t){var n=Object(d.cloneDate)(e);return n.setHours(t),n},rn=function(e){return null!==e&&e<12},on=function(e,t,n){return!t&&!n||e>=t&&e<=n},an=function(e,t,n){return!t&&!n||e>=t||e<=n},sn=function(){function e(e){this.intl=e}return e.prototype.apply=function(e,t){var n=e.getHours(),r=rn(n),o=rn(t.getHours());if(r&&o||!r&&!o)return e;var i=this.normalizedRange(),a=i[0],s=i[1],l=void 0===s?24:s,u=n+(o?-12:12);return nn(e,Math.min(Math.max(a,u),l||24))},e.prototype.configure=function(e){var t=e.min,n=void 0===t?this.min:t,r=e.max,o=void 0===r?this.max:r,i=e.part,a=void 0===i?this.part:i;this.min=n,this.max=o,this.part=a},e.prototype.data=function(e){var t=this.part.names;if(!t)return[];var n,r=[],o=this.normalizedRange(),i=o[0],a=o[1],s=this.intl.dateFormatNames(t);return rn(i)&&r.push({text:s.am,value:nn(this.min,i)}),null!==(n=a)&&(!n||n>11)&&r.push({text:s.pm,value:nn(this.min,Math.max(12,a))}),this.min.getHours()!==i?r.reverse():r},e.prototype.isRangeChanged=function(e,t){return!1},e.prototype.limitRange=function(e,t,n){return[e,t]},e.prototype.total=function(){var e=this.normalizedRange(),t=e[0],n=e[1];return(t||n)&&(t>11||n<12)?1:2},e.prototype.selectedIndex=function(e){if(!this.valueInList(e))return-1;var t=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?t:0===t?1:0},e.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?an:on)(e.getHours(),this.min.getHours(),this.max.getHours())},e.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]},e}(),ln=function(){function e(){this.didCalculate=!1}return e.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){if(c.canUseDOM){var t=ne("div"),n=ne("ul"),r=ne("li"),o=t([t([t([n([r("<span>02</span>","k-item")],"k-reset")],"k-time-container k-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}),i=e&&e.querySelector(".k-time-container")||document.body,a=i.appendChild(o);this.timeListHeight=a.querySelector(".k-scrollable").offsetHeight,this.itemHeight=a.querySelector("li").offsetHeight,i.removeChild(a),this.didCalculate=!0}},e}(),un=(Jt=24,function(e){return e%Jt}),cn=function(e,t){return un(24+e-t)},dn=function(e){return function(t,n){return!n||Object(d.getDate)(t).getTime()===Object(d.getDate)(n).getTime()?t:It(t,e)}},pn=dn(0),fn=dn(23),hn=function(){function e(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return It(e,t.getHours())},e.prototype.configure=function(e){var t=this,n=e.boundRange,r=void 0===n?this.boundRange:n,o=e.insertUndividedMax,i=void 0===o?this.insertUndividedMax:o,a=e.min,s=void 0===a?this.min:a,l=e.max,u=void 0===l?this.max:l,c=e.part,d=e.step,p=void 0===d?this.step:d;this.boundRange=r,this.insertUndividedMax=i,this.toListItem=function(e){var n=It(H,e);return{text:t.intl.formatDate(n,c.pattern),value:n}},this.min=s,this.max=u,this.step=p},e.prototype.data=function(e){var t,n,r=this,o=this.range(e)[0],i=(t=o,n=this.step,function(e){return un(t+e*n)}),a=Nt(0,this.countFromMin(e)).map((function(e){return r.toListItem(i(e))}));return this.addLast(a),e&&this.addMissing(a,e),a},e.prototype.isRangeChanged=function(e,t){return!Object(d.isEqual)(this.min,e)||!Object(d.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return this.boundRange?[pn(e,n),fn(t,n)]:[e,t]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e))},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getHours());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],r=t[1];return Math.floor(cn(r,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(It(this.max,this.lastHour(e)))},e.prototype.divideByStep=function(e){return cn(e.getHours(),this.min.getHours())/this.step},e.prototype.lastHour=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],r=t[1];return[n.getHours(),r.getHours()]},e}(),mn=function(e){return function(t){return t%e}}(60),vn=function(e,t){return mn(60+e-t)},gn=function(e){return function(t,n){return!n||t.getHours()===n.getHours()?t:Tt(t,e)}},yn=gn(0),bn=gn(59),kn=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return Tt(e,t.getMinutes())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,r=void 0===n?this.insertUndividedMax:n,o=e.min,i=void 0===o?this.min:o,a=e.max,s=void 0===a?this.max:a,l=e.part,u=e.step,c=void 0===u?this.step:u;this.insertUndividedMax=r,this.toListItem=function(e){var n=Tt(H,e);return{text:t.intl.formatDate(n,l.pattern),value:n}},this.min=i,this.max=s,this.step=c},e.prototype.data=function(e){var t,n,r=this,o=this.range(e)[0],i=(t=o,n=this.step,function(e){return mn(t+e*n)}),a=Nt(0,this.countFromMin(e)).map((function(e){return r.toListItem(i(e))}));return this.addLast(a),e&&this.addMissing(a,e),a},e.prototype.isRangeChanged=function(e,t){return!Object(d.isEqual)(this.min,e)||!Object(d.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return[yn(e,n),bn(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e))},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getMinutes());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],r=t[1];return Math.floor(vn(r,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(Tt(this.max,this.lastMinute(e)))},e.prototype.divideByStep=function(e){return vn(e.getMinutes(),this.min.getMinutes())/this.step},e.prototype.lastMinute=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],r=t[1];return[n.getMinutes(),r.getMinutes()]},e}(),Cn=function(e){return function(t){return t%e}}(60),On=function(e,t){return Cn(60+e-t)},wn=function(e){return function(t,n){return!n||t.getMinutes()===n.getMinutes()&&t.getHours()===n.getHours()?t:_t(t,e)}},En=wn(0),Sn=wn(59),Dn=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return _t(e,t.getSeconds())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,r=void 0===n?this.insertUndividedMax:n,o=e.min,i=void 0===o?this.min:o,a=e.max,s=void 0===a?this.max:a,l=e.part,u=e.step,c=void 0===u?this.step:u;this.insertUndividedMax=r,this.toListItem=function(e){var n=_t(H,e);return{text:t.intl.formatDate(n,l.pattern),value:n}},this.min=i,this.max=s,this.step=c},e.prototype.data=function(e){var t,n,r=this,o=this.range(e)[0],i=(t=o,n=this.step,function(e){return Cn(t+e*n)}),a=Nt(0,this.countFromMin(e)).map((function(e){return r.toListItem(i(e))}));return this.addLast(a),e&&this.addMissing(a,e),a},e.prototype.isRangeChanged=function(e,t){return!Object(d.isEqual)(this.min,e)||!Object(d.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return[En(e,n),Sn(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e))},e.prototype.divideByStep=function(e){return On(e.getSeconds(),this.min.getSeconds())/this.step},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getSeconds());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],r=t[1];return Math.floor(On(r,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(_t(this.max,this.lastSecond(e)))},e.prototype.lastSecond=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],r=t[1];return[n.getSeconds(),r.getSeconds()]},e}(),xn=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),In=((en={})[c.Keys.end]=function(e,t){return e[e.length-1]},en[c.Keys.home]=function(e,t){return e[0]},en[c.Keys.up]=function(e,t){return e[t-1]},en[c.Keys.down]=function(e,t){return e[t+1]},en),Tn=((tn={})[bt]=sn,tn[kt]=hn,tn[Ct]=kn,tn[Ot]=Dn,tn),_n=function(e){function t(n){var r=e.call(this,n)||this;return r.animateToIndex=!1,r.focus=function(e){Promise.resolve().then((function(){r.element&&r.element.focus(e)}))},r.itemOffset=function(e){if(!r.virtualization)return-1;var t=r.service.selectedIndex(r.props.value),n=r.virtualization.activeIndex(),o=r.virtualization.itemOffset(n),i=Math.abs(Math.ceil(e)-o);if(t===n&&i<2)return o;var a=t>n;return a&&i>=r.bottomThreshold||!a&&i>r.topThreshold?r.virtualization.itemOffset(n+1):o},r.calculateHeights=function(){r.dom.didCalculate&&(r.itemHeight=r.dom.itemHeight,r.listHeight=r.dom.timeListHeight,r.topOffset=(r.listHeight-r.itemHeight)/2,r.bottomOffset=r.listHeight-r.itemHeight,r.topThreshold=.05*r.itemHeight,r.bottomThreshold=.95*r.itemHeight)},r.configureServices=function(e){var t=void 0===e?r.props:e,n=t.min,o=t.max,i=t.value,a=r.service.limitRange(n||r.min,o||r.max,i||r.props.value),s=a[0],l=a[1];r.service.configure(r.serviceSettings({min:s,max:l}))},r.serviceSettings=function(e){var n={boundRange:r.props.boundRange||t.defaultProps.boundRange,insertUndividedMax:!1,min:Object(d.cloneDate)(r.min),max:Object(d.cloneDate)(r.max),part:r.props.part,step:r.step},o=Object.assign({},n,e);return o.boundRange="hour"!==o.part.type||r.props.boundRange||t.defaultProps.boundRange,o},r.handleScrollAction=function(e){var t=e.target,n=e.animationInProgress;if(r.virtualization&&t&&!n){r.animateToIndex=!1;var o=r.virtualization.itemIndex(r.itemOffset(t.scrollTop)),i=r.service.data(r.props.value)[o];r.handleChange(i)}},r.handleFocus=function(e){var t=r.props.onFocus;t&&t.call(void 0,e)},r.handleBlur=function(e){var t=r.props.onBlur;t&&t.call(void 0,e)},r.handleMouseOver=function(){r._element&&document&&document.activeElement!==r._element&&r.props.show&&r._element.focus({preventScroll:!0})},r.handleKeyDown=function(e){var t=e.keyCode;t!==c.Keys.down&&t!==c.Keys.up&&t!==c.Keys.end&&t!==c.Keys.home||e.preventDefault();var n=(In[e.keyCode]||c.noop)(r.service.data(r.props.value),r.service.selectedIndex(r.props.value));n&&r.handleChange(n)},r.handleChange=function(e){var t=r.service.apply(r.props.value,e.value);if(r.props.value.getTime()!==t.getTime()){r.setState({value:t});var n=r.props.onChange;n&&n.call(void 0,t)}},r.dom=new ln,r}return xn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.props.min||t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.props.max||t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"step",{get:function(){return void 0!==this.props.step&&0!==this.props.step?Math.floor(this.props.step):t.defaultProps.step},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;Promise.resolve().then((function(){e._element&&(e.dom.calculateHeights(e._element),e.forceUpdate())}))},t.prototype.componentDidUpdate=function(){if(this.virtualization){var e=this.service.selectedIndex(this.props.value);this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](e),this.animateToIndex=!0}},t.prototype.render=function(){var e=this;if(this.props.part.type&&Tn[this.props.part.type]){this.calculateHeights(),this.intl=Object(p.provideIntlService)(this),this.service=new Tn[this.props.part.type](this.intl),this.configureServices();var t=this.service.data(this.props.value),n="translateY("+this.topOffset+"px)",r=this.service.total(this.props.value),o=l.createElement("ul",{style:{transform:n,msTransform:n},className:"k-reset"},t.map((function(t,n){return l.createElement("li",{key:n,className:"k-item",onClick:function(){e.handleChange(t)}},l.createElement("span",null,t.text))})));return l.createElement("div",{className:"k-time-list",id:String(this.props.id||""),tabIndex:this.props.disabled?-1:0,ref:function(t){e._element=t},onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseOver:this.handleMouseOver},this.dom.didCalculate?l.createElement(S,{bottomOffset:this.bottomOffset,children:o,className:"k-time-container",itemHeight:this.itemHeight,maxScrollDifference:this.listHeight,onScrollAction:this.handleScrollAction,ref:function(t){e.virtualization=t},role:"presentation",skip:0,tabIndex:-1,take:r,topOffset:this.topOffset,total:r}):l.createElement("div",{className:"k-time-container"},o))}},t.propTypes={id:u.number,max:u.instanceOf(Date),min:u.instanceOf(Date),part:function(e,t,n){var r=e[t];if(!r||!Tn[r.type])throw new Error("\n Invalid prop '"+t+"' supplied to "+n+".\n Supported part types are hour|minute|second|dayperiod.\n ");return null},step:function(e,t,n){var r=e[t];if(void 0!==r&&r<=0)throw new Error("\n Invalid prop '"+t+"' supplied to "+n+".\n "+t+" cannot be less than 1.\n ");return null},value:u.instanceOf(Date),smoothScroll:u.bool,show:u.bool},t.defaultProps={boundRange:!1,max:q,min:H,step:1,smoothScroll:!0},t}(l.Component);Object(p.registerForIntl)(_n);var Pn,Nn=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mn=function(){return(Mn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Rn=new RegExp(kt+"|"+Ct+"|"+Ot+"|"+bt+"|literal");!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(Pn||(Pn={}));var jn=function(e){function t(n){var r=e.call(this,n)||this;return r.timeLists=[],r.focus=function(e){Promise.resolve().then((function(){var t=r.timeLists[0];-1===r.state.activeListIndex&&!r.hasActiveButton()&&t&&t.element&&t.focus(e)}))},r.timeFormatReducer=function(e,t){return e+t.pattern},r.timeFormatFilter=function(e,t,n){var r=t>=1&&n[t-1];return r&&r&&"literal"===e.type?Rn.test(r.type||""):Rn.test(e.type||"")},r.focusList=function(e){r.timeLists.length&&r.timeLists.reduce(r.listReducer,[]).map((function(t){return e===Pn.Right?t.next:t.prev})).map((function(e){return e&&e.element&&e.element.focus({preventScroll:!0})}))},r.listReducer=function(e,t,n,o){return e.length||t.props.id!==r.state.activeListIndex?e:[{next:o[n+1]||t,prev:o[n-1]||t}]},r.showNowButton=function(){return!r.hasSteps()&&r.props.nowButton&&Rt(Pt(),r.min,r.max)},r.handleKeyDown=function(e){switch(e.keyCode){case c.Keys.left:return e.preventDefault(),void r.focusList(Pn.Left);case c.Keys.right:return e.preventDefault(),void r.focusList(Pn.Right);default:return}},r.handleListBlur=function(){r.nextTick((function(){r.setState({activeListIndex:-1})}))},r.handleListFocus=function(e){clearTimeout(r.nextTickId),r.setState({activeListIndex:e})},r.handleChange=function(e){var t=r.props.onChange;t&&t.call(void 0,e)},r.snapTime=xt(Dt(r.props.steps,r.props.min||t.defaultProps.min)),r.state={activeListIndex:-1},r.hasActiveButton=r.hasActiveButton.bind(r),r}return Nn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return function(e,t,n){if(!e||!t||!n)return e;var r=Mt(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return o<i?Y(e,t):o>a?Y(e,n):e}(this.snapTime(Object(d.cloneDate)(this.props.value||H)),this.min,this.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"intl",{get:function(){return Object(p.provideIntlService)(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.snapTime(this.props.min||t.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.snapTime(this.props.max||t.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"steps",{get:function(){return this.props.steps||t.defaultProps.steps},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"boundRange",{get:function(){return void 0!==this.props.boundRange?this.props.boundRange:t.defaultProps.boundRange},enumerable:!0,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.componentDidMount=function(){var e=this.props.onMount;e&&e.call(void 0,this.value)},t.prototype.render=function(){var e=this,n=this.props,r=n.format,o=n.smoothScroll,i=n.onNowClick,a=n.className,s=n.disabled;this.snapTime=xt(Dt(this.steps,this.min)),this.dateFormatParts=this.intl.splitDateFormat(r||t.defaultProps.format).filter(this.timeFormatFilter);var u=Object(c.classNames)({"k-state-disabled":s},a,"k-time-part");this.timeLists=[];var d=Object(p.provideLocalizationService)(this),f=d.toLanguageString(Ye,Ze[Ye]);return l.createElement("div",{className:u},l.createElement("div",{className:"k-time-header"},l.createElement("span",{className:"k-title"},this.intl.formatDate(this.value,this.dateFormatParts.reduce(this.timeFormatReducer,""))),this.showNowButton()&&l.createElement(xe.Button,Mn({type:"button",ref:function(t){e._nowButton=t},className:"k-time-now",look:"flat",primary:!0,title:f},{"aria-label":f},{onClick:i,tabIndex:s?-1:0}),d.toLanguageString("timepicker.now",Ze["timepicker.now"]))),l.createElement("div",{className:"k-time-list-container",onKeyDown:this.handleKeyDown},l.createElement("span",{className:"k-time-highlight"}),this.dateFormatParts.map((function(t,n){return"literal"!==t.type?l.createElement("div",{key:n,className:Object(c.classNames)("k-time-list-wrapper",{"k-state-focused":n===e.state.activeListIndex}),role:"presentation",tabIndex:-1},l.createElement("span",{className:"k-title",onMouseDown:function(e){e.preventDefault()}},e.intl.dateFieldName(t)),l.createElement(_n,{min:e.min,max:e.max,boundRange:e.boundRange,part:t,step:t.type?e.steps[t.type]:1,smoothScroll:o,ref:function(t){t&&e.timeLists.push(t)},id:n,onFocus:function(){e.handleListFocus(n)},onBlur:e.handleListBlur,onChange:e.handleChange,value:e.value,disabled:s,show:e.props.show})):l.createElement("div",{key:n,className:"k-time-separator"},t.pattern)}))))},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.hasActiveButton=function(){return this._nowButton&&document.activeElement===this._nowButton.element},t.prototype.hasSteps=function(){var e=this,t=Object.keys(this.steps);return t.length!==t.reduce((function(t,n){return t+e.steps[n]}),0)},t.propTypes={cancelButton:u.bool,disabled:u.bool,format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),max:u.instanceOf(Date),min:u.instanceOf(Date),nowButton:u.bool,steps:u.shape({hour:u.number,minute:u.number,second:u.number}),smoothScroll:u.bool,tabIndex:u.number,value:u.instanceOf(Date),show:u.bool},t.defaultProps={value:null,disabled:!1,nowButton:!0,cancelButton:!0,format:"hh:mm a",min:W,max:q,steps:{},boundRange:!1},t}(l.Component);Object(p.registerForIntl)(jn),Object(p.registerForLocalization)(jn);var Fn,An=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ln=function(){return(Ln=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(Fn||(Fn={}));var Vn=function(e){function t(n){var r=e.call(this,n)||this;return r.focusActiveList=function(){r.timePart&&r.timePart.focus({preventScroll:!0})},r.handleKeyDown=function(e){switch(e.keyCode){case c.Keys.enter:return void(r.hasActiveButton()||r.handleAccept(e));default:return}},r.handleAccept=function(e){var t=r.mergeValue(Object(d.cloneDate)(r.value||Pt()),r.timePart?r.timePart.value:r.current);r.setState({value:t}),r.valueDuringOnChange=t;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.value,target:r}),r.valueDuringOnChange=void 0},r.handleReject=function(e){r.setState({current:r.value});var t=r.props.onReject;t&&t.call(void 0,e)},r.handleNowClick=function(e){var t=r.mergeValue(Object(d.cloneDate)(r.value||Pt()),Pt());r.setState({current:t,value:t}),r.valueDuringOnChange=t;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.value,target:r}),r.valueDuringOnChange=void 0},r.handleChange=function(e){r.setState({current:e})},r.dateFormatParts=r.intl.splitDateFormat(r.props.format||t.defaultProps.format),r.mergeValue=function(e){return function(t,n){return t.setHours.apply(t,e.map((function(e){return e(t,n)}))),t}}(St(r.dateFormatParts)),r.hasActiveButton=r.hasActiveButton.bind(r),r.state={current:r.props.value||H,value:r.props.value||t.defaultProps.value},r}return An(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?Object(d.cloneDate)(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"intl",{get:function(){return Object(p.provideIntlService)(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return null!==this.state.current?Object(d.cloneDate)(this.state.current):null},enumerable:!0,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,t=this.props,n=t.format,r=t.cancelButton,o=t.disabled,i=t.tabIndex,a=t.className,s=t.smoothScroll,u=t.min,d=t.max,f=t.boundRange,h=t.nowButton,m=t.steps,v=Object(p.provideLocalizationService)(this),g=v.toLanguageString("timepicker.cancel",Ze["timepicker.cancel"]),y=v.toLanguageString("timepicker.set",Ze["timepicker.set"]);return l.createElement("div",{ref:function(t){e._element=t},tabIndex:o?void 0:i||0,className:Object(c.classNames)("k-timeselector k-reset",a,{"k-state-disabled":o}),onKeyDown:this.handleKeyDown},l.createElement(jn,{ref:function(t){e.timePart=t},value:this.current,onChange:this.handleChange,onNowClick:this.handleNowClick,format:n,smoothScroll:s,min:u,max:d,boundRange:f,disabled:o,nowButton:h,steps:m,show:this.props.show}),l.createElement("div",{className:"k-time-footer k-actions k-hstack k-justify-content-stretch"},r&&l.createElement(xe.Button,Ln({type:"button",ref:function(t){e._cancelButton=t},className:"k-time-cancel",onClick:this.handleReject,title:g},{"aria-label":g}),g),l.createElement(xe.Button,Ln({type:"button",ref:function(t){e._acceptButton=t},className:"k-time-accept",primary:!0,onClick:this.handleAccept,title:y},{"aria-label":y}),y)))},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.hasActiveButton=function(){return!(!this._acceptButton||!this._acceptButton.element)&&(this._acceptButton&&document.activeElement===this._acceptButton.element||this._cancelButton&&document.activeElement===this._cancelButton.element)},t.propTypes={cancelButton:u.bool,className:u.string,disabled:u.bool,format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),max:u.instanceOf(Date),min:u.instanceOf(Date),nowButton:u.bool,steps:u.shape({hour:u.number,minute:u.number,second:u.number}),smoothScroll:u.bool,tabIndex:u.number,value:u.instanceOf(Date),show:u.bool},t.defaultProps={value:null,disabled:!1,cancelButton:!0,format:"t",min:W,max:q,boundRange:!1},t}(l.Component);Object(p.registerForIntl)(Vn),Object(p.registerForLocalization)(Vn);var Bn=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zn=function(){return(zn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Hn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},Un=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=Object(c.guid)(),r._element=null,r._wrapper=null,r._dateInput=l.createRef(),r._timeSelector=null,r.shouldFocusDateInput=!1,r.focus=function(){r.dateInput&&r.dateInput.focus()},r.setTimeSelectorRef=function(e){r._timeSelector=e},r.nextValue=function(e,t){return void 0!==e.value?e.value:t.value},r.nextShow=function(e,t){return void 0!==e.show?e.show:t.show},r.handleInputValueChange=function(e){var t=r.mergeTime(e.value);r.handleValueChange(zn({},e,{value:t}))},r.handleValueChange=function(e){r.setState({value:Object(d.cloneDate)(e.value),show:!1}),r.valueDuringOnChange=e.value,r.showDuringOnChange=!1,r.shouldFocusDateInput=!0;var t=r.props.onChange;t&&t.call(void 0,{syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:r.value,show:r.show,target:r}),r.valueDuringOnChange=void 0,r.showDuringOnChange=void 0},r.handleFocus=function(){r.setState({focused:!0})},r.handleBlur=function(){r.setState({focused:!1}),r.setShow(!1)},r.handleValueReject=function(e){r.setShow(!1)},r.handleIconClick=function(e){r.props.disabled||(r.shouldFocusDateInput=!0,r.setShow(!r.show))},r.handleIconMouseDown=function(e){e.preventDefault()},r.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===c.Keys.esc)return r.shouldFocusDateInput=!0,void r.setShow(!1);!t||n!==c.Keys.up&&n!==c.Keys.down||(e.preventDefault(),e.stopPropagation(),r.shouldFocusDateInput=n===c.Keys.up,r.setShow(n===c.Keys.down))},Object(c.validatePackage)(f),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r.normalizeTime=r.normalizeTime.bind(r),r.setShow=r.setShow.bind(r),r.nextTick=r.nextTick.bind(r),r.mergeTime=r.mergeTime.bind(r),r}return Bn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timeSelector",{get:function(){return this._timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?Object(d.cloneDate)(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=this.value&&this.normalizeTime(this.value),t=this.normalizeTime(this.min),n=this.normalizeTime(this.max),r=function(e,t,n){if(null===e)return!0;var r=Mt(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return i<=o&&o<=a}(e,t,n),o=void 0!==this.props.validationMessage,i=(!this.required||null!==this.value)&&r,a=void 0!==this.props.valid?this.props.valid:i;return{customError:o,rangeOverflow:Ft(e,n),rangeUnderflow:jt(e,t),valid:a,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"popupSettings",{get:function(){return this.props.popupSettings||t.defaultProps.popupSettings},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInputComp",{get:function(){return this.props.dateInput||t.defaultProps.dateInput},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.componentDidUpdate=function(){this._timeSelector&&this.show&&!this.prevShow?this._timeSelector.focusActiveList():this.dateInput&&this.dateInput.element&&!this.show&&this.shouldFocusDateInput&&this.dateInput.element.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.tabIndex,o=t.title,i=t.id,a=t.className,s=t.format,u=t.formatPlaceholder,d=t.smoothScroll,f=t.width,h=t.name,m=t.steps,v=t.cancelButton,g=t.nowButton,y=t.validationMessage,b=t.required,k=t.validityStyles,C=t.ariaLabelledBy,O=t.ariaDescribedBy,w=this.popupSettings,E=w.popupClass,S=Hn(w,["popupClass"]),D=!this.validityStyles||this.validity.valid,x=Object(c.classNames)("k-widget k-timepicker",a),I=Object(c.classNames)("k-picker-wrap",{"k-state-invalid":!D,"k-state-disabled":n,"k-state-focused":this.state.focused}),T=Object(c.classNames)("k-group k-reset",E),_={disabled:n,format:s,formatPlaceholder:u,id:i,ariaLabelledBy:C,ariaDescribedBy:O,max:this.normalizeTime(this.max),min:this.normalizeTime(this.min),name:h,onChange:this.handleInputValueChange,required:b,steps:m,tabIndex:this.show?-1:r,title:o,valid:this.validity.valid,validationMessage:y,validityStyles:k,value:this.value&&this.normalizeTime(this.value),label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show},P=zn({show:this.show,animate:null!==this._wrapper,anchor:this._wrapper,className:T,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},S),N=l.createElement(Vn,{ref:this.setTimeSelectorRef,show:this.show,cancelButton:v,disabled:n,nowButton:g,format:s,min:this.min,max:this.max,steps:m,smoothScroll:d,value:this.value,onChange:this.handleValueChange,onReject:this.handleValueReject}),M=Object(p.provideLocalizationService)(this),R=M.toLanguageString(Ge,Ze[Ge]),j=M.toLanguageString("timepicker.toggleTimeSelector",Ze["timepicker.toggleTimeSelector"]),F=l.createElement(c.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},(function(t){var n=t.onFocus,r=t.onBlur;return l.createElement("div",{ref:function(t){e._element=t},className:x,onKeyDown:e.handleKeyDown,style:{width:f},onFocus:n,onBlur:r},l.createElement("span",{ref:function(t){e._wrapper=t},className:I},l.createElement(e.dateInputComp,zn({_ref:e._dateInput},_)),l.createElement("span",zn({role:"button",onMouseDown:e.handleIconMouseDown,onClick:e.handleIconClick,title:j,className:"k-select"},{"aria-controls":e._popupId,"aria-label":R}),l.createElement("span",{className:"k-icon k-i-clock"}))),e.props.popup?l.createElement(e.props.popup,zn({},P),N):l.createElement(Ht.a,zn({},P),N))}));return this.props.label?l.createElement(qt,{dateInput:this._dateInput,label:this.props.label,editorId:i,editorValid:D,editorDisabled:this.props.disabled,children:F,style:{width:this.props.width}}):F},t.prototype.normalizeTime=function(e){return Y(H,e)},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.mergeTime=function(e){return this.value&&e?Y(this.value,e):e},t.displayName="TimePicker",t.propTypes={className:u.string,cancelButton:u.bool,nowButton:u.bool,defaultShow:u.bool,defaultValue:u.instanceOf(Date),disabled:u.bool,format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,min:u.instanceOf(Date),max:u.instanceOf(Date),name:u.string,popupSettings:u.shape({animate:u.bool,appendTo:u.any,popupClass:u.string}),show:u.bool,steps:u.shape({hour:u.number,minute:u.number,second:u.number}),smoothScroll:u.bool,tabIndex:u.number,title:u.string,value:u.instanceOf(Date),width:u.oneOfType([u.number,u.string]),validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool},t.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"t",max:q,min:W,popupSettings:{},tabIndex:0,steps:{},required:!1,validityStyles:!0,dateInput:zt},t}(l.Component),Kn=Object(c.createPropsContext)(),Wn=Object(c.withPropsContext)(Kn,Un);Wn.displayName="KendoReactTimePicker",Object(p.registerForLocalization)(Un);var qn=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yn=function(e){function t(t){var n=e.call(this,t)||this;return n.isActive=!1,n.focusActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-state-focused"),t=n._element.querySelector(".k-state-pending-focus");e&&e[0]&&e[0].classList.remove("k-state-focused"),t&&t.classList.add("k-state-focused"),n.isActive=!0}},n.blurActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-state-focused");e&&e.classList.remove("k-state-focused"),n.isActive=!1}},n.rotateSelectionRange=function(e){if(null===e.start||null===e.end)return e;var t=e.end<e.start;return{start:t?e.end:e.start,end:t?e.start:e.end}},n.handleDateChange=function(e,t){void 0===t&&(t=!1);var r=n.props.onChange;if(r){var o={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:Object(d.cloneDate)(e.value),target:n,isTodayClick:t};r.call(void 0,o)}},n}return qn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===C.month)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(){this.isActive&&this.focusActiveDate()},t.prototype.render=function(){var e=this,t=this.props.allowReverse?this.rotateSelectionRange(this.props.selectionRange):this.props.selectionRange,n=Object(c.classNames)("k-calendar-view k-hstack k-align-items-start k-justify-content-center",{"k-calendar-monthview":this.props.activeView===C.month,"k-calendar-yearview":this.props.activeView===C.year,"k-calendar-decadeview":this.props.activeView===C.decade,"k-calendar-centuryview":this.props.activeView===C.century});return l.createElement("div",{ref:function(t){e._element=t},className:n},this.props.dates.map((function(n){return l.createElement("table",{className:"k-calendar-table k-calendar-content k-content",key:n.getTime()},l.createElement(Se,{bus:e.props.bus,service:e.props.service,key:n.getTime(),direction:"horizontal",activeView:e.props.activeView,cellUID:e.props.cellUID,viewDate:n,min:e.min,max:e.max,focusedDate:e.props.focusedDate,selectionRange:t,selectedDate:e.props.value,showWeekNumbers:e.weekNumber,onChange:e.handleDateChange,onCellEnter:e.props.onCellEnter,cell:e.props.cell,weekCell:e.props.weekCell}))})))},t.defaultProps={showWeekNumbers:!1,views:2,take:2,allowReverse:!0,min:Me,max:Re},t}(l.Component),Gn=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zn=function(){return(Zn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Xn=function(e,t,n){return void 0===e&&(e=er.defaultProps.min),void 0===t&&(t=er.defaultProps.max),n instanceof Date&&!Array.isArray(n)&&Z(Object(d.getDate)(n),e,t)?Object(d.getDate)(n):null},Qn=function(e,t,n){return void 0===e&&(e=er.defaultProps.min),void 0===t&&(t=er.defaultProps.max),Array.isArray(n)?n.filter((function(n){return Z(n,e,t)})).map((function(e){return Object(d.getDate)(e)})):null},$n=function(e){return"object"!=typeof e||e instanceof Date||null===e||Array.isArray(e)?R:e},Jn=function(e,t,n){return e||t&&t[0]||n&&n.start},er=function(e){function t(n){var r=e.call(this,n)||this;r.selectedDate=null,r.selectedMultiple=null,r.selectedRange=R,r.cellUID=Object(c.guid)(),r.activeRangeEnd="start",r.wrapperID=Object(c.guid)(),r.isActive=!1,r.calculateFocusFromValue=!0,r.focus=function(){r._element&&r._element.focus()},r.clampRange=function(e){return{start:e,end:null}},r.rangeWithFocused=function(e,t){return{start:e.start,end:null===e.end&&null!==e.start&&r.isActive?t:e.end}},r.generateRange=function(e,t){var n=t.end,o=t.start,i=null!==t.start&&e.getTime()<=t.start.getTime();return!r.props.allowReverse&&i?{start:e,end:r.selectedRange.start}:"end"!==r.activeRange?{start:e,end:n}:{start:o||r.selectedDate,end:e}},r.canNavigate=function(e){if(!r.service)return!1;var t=r.service.move(r.focusedDate,e);return r.min<=t&&t<=r.max||r.service.isInSameView(t,r.min)||r.service.isInSameView(t,r.max)},r.isListInRange=function(e){return r.min<e[0]&&r.max>e[Math.max(0,(r.props.views||t.defaultProps.views)-1)]},r.navigate=function(e){r.calculateFocusFromValue=!1;var t=r.move(e);r.setState({focusedDate:t})},r.move=function(e){return r.clampDate(r.service.move(r.focusedDate,e))},r.clampDate=function(e){return te(e,r.min,r.max)},r.shouldAutoCorrect=function(e,t){var n=t.end,o=t.start;return"end"!==r.activeRange?null!==n&&e>n:null!==o&&e<o},r.handleCellEnter=function(e){"range"===r.props.mode&&(r.calculateFocusFromValue=!1,r.setState({focusedDate:e}))},r.handleMouseDown=function(e){e.preventDefault()},r.handleClick=function(e){r._element&&r._element.focus({preventScroll:!0})},r.handleFocus=function(e){if(r.isActive=!0,r.calendarViewList){r.calendarViewList.focusActiveDate();var t=r.props.onFocus;t&&t.call(void 0,e)}},r.handleBlur=function(e){if(r.isActive=!1,r.calendarViewList){r.calendarViewList.blurActiveDate();var t=r.props.onBlur;t&&t.call(void 0,e)}},r.handleTodayClick=function(e){r.todayIsInRange&&r.handleDateChange.call(void 0,e,!0)},r.handlePrevButtonClick=function(){r.navigate(k.PrevView)},r.handleNextButtonClick=function(){r.navigate(k.NextView)},r.handleKeyDown=function(e){if(e.keyCode===c.Keys.enter){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.focusedDate,target:r};r.handleDateChange.call(void 0,t)}else{var n=te(r.navigation.move(r.focusedDate,r.navigation.action(e),r.state.activeView,r.service,e),r.min,r.max);if(Object(d.isEqualDate)(r.focusedDate,n))return;r.calculateFocusFromValue=!1,r.setState({focusedDate:n})}e.preventDefault()},r.handleViewChange=function(e){var t=e.view;r.calculateFocusFromValue=!1,r.setState({activeView:t})},r.handleDateChange=function(e){var t=Object(d.cloneDate)(e.value),n=r.bus.canMoveDown(r.state.activeView);if(!r.props.disabled){if(n){if(!e.isTodayClick)return r.bus.moveDown(r.state.activeView,e.syntheticEvent),void r.setState({focusedDate:t});r.bus.moveToBottom(r.state.activeView)}var o;switch(r.calculateFocusFromValue=!0,r.props.mode){case"single":o=Object(d.cloneDate)(e.value);break;case"multiple":if(Array.isArray(r.selectedMultiple)){var i=r.selectedMultiple.slice(),a=-1;i.forEach((function(t,n){Object(d.isEqualDate)(t,e.value)&&(a=n)})),-1!==a?i.splice(a,1):i.push(Object(d.cloneDate)(e.value)),o=i.slice()}else o=r.selectedDate?[Object(d.cloneDate)(r.selectedDate),Object(d.cloneDate)(e.value)]:[Object(d.cloneDate)(e.value)];break;case"range":o=null!==r.selectedRange.start&&null!==r.selectedRange.end&&"start"===r.activeRange?r.clampRange(e.value):r.generateRange(e.value,r.selectedRange),r.activeRangeEnd="end"!==r.activeRange?"end":"start";break;default:o=Object(d.cloneDate)(e.value)}r.valueDuringOnChange=o,r.setState({value:o,focusedDate:t}),r.valueDuringOnChange=o;var s=r.props.onChange;if(s){var l={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:o,target:r};s.call(void 0,l)}r.valueDuringOnChange=void 0}};var o=void 0!==n.value?n.value:n.defaultValue||t.defaultProps.defaultValue,i=Xn(r.min,r.max,o),a=Qn(r.min,r.max,o),s=$n(o),l=Jn(i,a,s),u=z(C[n.defaultActiveView],r.bottomView,r.topView),p=te(n.focusedDate||l||G(),r.min,r.max);return r.state={value:o,activeView:u,focusedDate:p},r.activeRangeEnd=function(e,t){return null===e.start&&null===t?"start":null===e.end?"end":"start"}(s,i),r.bus=new ve(r.handleViewChange),r.navigation=new be(r.bus),r.calculateFocusFromValue=!1,r.lastView=u,r.lastViewsCount=r.props.views||Yn.defaultProps.views,r}return Gn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusedDate",{get:function(){return Object(d.cloneDate)(this._focusedDate)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return Object(d.getDate)(void 0!==this.props.min?this.props.min:t.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return Object(d.getDate)(void 0!==this.props.max?this.props.max:t.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomView",{get:function(){return C[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topView",{get:function(){return C[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeRange",{get:function(){return void 0!==this.props.activeRangeEnd?this.props.activeRangeEnd:this.activeRangeEnd},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"todayIsInRange",{get:function(){return Z(G(),Object(d.getDate)(this.min),Object(d.getDate)(this.max))},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.calculateFocusFromValue=!0},t.prototype.componentDidUpdate=function(){this.calendarViewList&&(this.isActive?this.calendarViewList.focusActiveDate:this.calendarViewList.blurActiveDate)();var e=Xn(this.min,this.max,this.value);this.calculateFocusFromValue=Boolean(this.selectedDate&&e&&this.selectedDate.getTime()&&e.getTime()),this.lastView=this.state.activeView,this.lastViewsCount=this.props.views||Yn.defaultProps.views},t.prototype.render=function(){var e=this;this.props._ref&&this.props._ref(this),this.intl=Object(p.provideIntlService)(this),this.localization=Object(p.provideLocalizationService)(this),this.bus.configure(this.bottomView,this.topView);var t=z(this.state.activeView,this.bottomView,this.topView);this.service=this.bus.service(t,this.intl),this.selectedDate=Xn(this.min,this.max,this.value),this.selectedMultiple=Qn(this.min,this.max,this.value),this.selectedRange=$n(this.value);var n=Jn(this.selectedDate,this.selectedMultiple,this.selectedRange);this._focusedDate=te(this.calculateFocusFromValue&&null!==n?n:this.state.focusedDate,this.min,this.max);var r=Object(c.classNames)("k-widget k-calendar k-calendar-range",{"k-state-disabled":this.props.disabled},this.props.className),o=this.rangeWithFocused(this.selectedRange,this.focusedDate),i={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},a=this.localization.toLanguageString(Be,Ze[Be]),s=this.localization.toLanguageString(ze,Ze[ze]),u=!this.canNavigate(k.PrevView),f=!this.canNavigate(k.NextView),h={"aria-disabled":u},m={"aria-disabled":f},v=this.lastView!==t,g=this.dates&&this.service.isInArray(this.focusedDate,this.dates),y=this.lastViewsCount!==this.props.views;(!g||v||y)&&(this.dates=this.service.datesList(this.focusedDate,this.props.views||Yn.defaultProps.views));var b=Object(d.cloneDate)(this.dates&&this.dates[0]?this.dates[0]:G());return l.createElement("div",Zn({ref:function(t){e._element=t},className:r,id:this.props.id||this.wrapperID,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,role:"grid",tabIndex:this.props.disabled?void 0:this.props.tabIndex,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseDown:this.handleMouseDown,onClick:this.handleClick,onKeyDown:this.handleKeyDown},i),l.createElement(Ve,{key:".kendo.calendar.header."+b.getTime(),activeView:t,currentDate:b,min:this.min,max:this.max,rangeLength:this.props.views,bus:this.bus,service:this.service,headerTitle:this.props.headerTitle,commands:l.createElement(l.Fragment,null,l.createElement(xe.Button,Zn({type:"button",className:"k-nav-prev",icon:"arrow-chevron-left",look:"flat",title:a,disabled:u,onClick:this.handlePrevButtonClick},h)),l.createElement(Qe,{min:this.min,max:this.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}),l.createElement(xe.Button,Zn({type:"button",className:"k-nav-next",icon:"arrow-chevron-right",look:"flat",title:s,disabled:f,onClick:this.handleNextButtonClick},m)))}),l.createElement(Yn,{ref:function(t){e.calendarViewList=t},dates:this.dates,activeView:t,focusedDate:this.focusedDate,min:this.min,max:this.max,bus:this.bus,service:this.service,selectionRange:o,value:this.selectedMultiple||this.selectedDate,cellUID:this.cellUID,views:this.props.views,onChange:this.handleDateChange,showWeekNumbers:this.props.weekNumber,onCellEnter:this.handleCellEnter,cell:this.props.cell,weekCell:this.props.weekCell,headerTitle:this.props.headerTitle}))},t.displayName="MultiViewCalendar",t.propTypes={activeRangeEnd:u.oneOf(["start","end"]),allowReverse:u.bool,bottomView:u.oneOf(["month","year","decade","century"]),className:u.string,defaultActiveView:u.oneOf(["month","year","decade","century"]),defaultValue:u.oneOfType([j(u.instanceOf(Date)),u.arrayOf(u.instanceOf(Date)),u.shape({start:j(u.instanceOf(Date)),end:j(u.instanceOf(Date))})]),disabled:u.bool,focusedDate:u.instanceOf(Date),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,max:u.instanceOf(Date),min:u.instanceOf(Date),mode:u.oneOf(["single","multiple","range"]),onBlur:u.func,onChange:u.func,onFocus:u.func,tabIndex:u.number,topView:u.oneOf(["month","year","decade","century"]),value:u.oneOfType([j(u.instanceOf(Date)),u.arrayOf(u.instanceOf(Date)),u.shape({start:j(u.instanceOf(Date).isRequired),end:j(u.instanceOf(Date).isRequired)})]),views:function(e,t,n){var r=e[t];return void 0!==r&&r<1?new Error("Invalid prop '"+t+"' supplied to'"+n+"'. The '"+t+"' property cannot be less than 1'"):null},weekNumber:u.bool},t.defaultProps={disabled:!1,min:Me,max:Re,navigation:!0,defaultActiveView:"month",defaultValue:null,topView:"century",tabIndex:0,bottomView:"month",views:2,allowReverse:!1},t}(l.Component),tr=Object(c.createPropsContext)(),nr=Object(c.withPropsContext)(tr,er);nr.displayName="KendoReactMultiViewCalendar",Object(p.registerForIntl)(er),Object(p.registerForLocalization)(er);var rr=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),or=function(){return(or=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ir={display:"inline-block"},ar=function(e){function t(n){var r=e.call(this,n)||this;return r._element=null,r._wrapper=null,r._calendar=null,r._startDateInput=l.createRef(),r._endDateInput=l.createRef(),r._popupId=Object(c.guid)(),r._startInputId=Object(c.guid)(),r._endInputId=Object(c.guid)(),r.shouldFocusDateInput=!1,r.shouldFocusCalendar=!1,r.focus=function(){r.startDateInput&&r.startDateInput.focus()},r.setCalendarRef=function(e){r._calendar=e},r.focusCalendarElement=function(){r._calendar&&r._calendar.element&&r._calendar.element.focus({preventScroll:!0})},r.calculateValue=function(e,t){return(void 0!==e.value?e.value:t.value)||R},r.calculateShow=function(e,t){return void 0!==e.show?e.show:t.show},r.handleReverseClick=function(e){var t={start:r.value.end,end:r.value.start},n={syntheticEvent:e,nativeEvent:e.nativeEvent};r.handleChange(t,n)},r.handleReverseMouseDown=function(e){e.preventDefault()},r.handleFocus=function(e){clearTimeout(r.nextTickId),r.shouldFocusDateInput||r.setShow(!0),r.startDateInput&&r.startDateInput.element&&r.startDateInput.element.classList.add("k-state-focused"),r.endDateInput&&r.endDateInput.element&&r.endDateInput.element.classList.add("k-state-focused");var t=r.props.onFocus;t&&t.call(void 0,e)},r.handleBlur=function(e){r.nextTick((function(){r.startDateInput&&r.startDateInput.element&&r.startDateInput.element.classList.remove("k-state-focused"),r.endDateInput&&r.endDateInput.element&&r.endDateInput.element.classList.remove("k-state-focused"),r.setShow(!1)}));var t=r.props.onBlur;t&&t.call(void 0,e)},r.handleEndChange=function(e){var t={start:r.value.start,end:Object(d.cloneDate)(e.value||void 0)};r.handleChange(t,e)},r.handleStartChange=function(e){var t={start:Object(d.cloneDate)(e.value||void 0),end:r.value.end};r.handleChange(t,e)},r.extractRangeFromValue=function(e){if(!(Array.isArray(e.value)||e.value instanceof Date))return e.value||R;var t=Array.isArray(e.value)?e.value[0]:e.value;return{start:null!==r.value.end?t:r.value.start,end:null!==r.value.start?t:r.value.end}},r.handleCalendarChange=function(e){var t=r.extractRangeFromValue(e);r.handleChange(t,e)},r.handleKeyDown=function(e){var t=e.keyCode,n=e.altKey;t===c.Keys.esc?(e.preventDefault(),r.shouldFocusDateInput=!0,r.setShow(!1)):n&&t===c.Keys.down?(e.preventDefault(),r.shouldFocusCalendar=!0,r.setShow(!0)):t===c.Keys.tab&&r.show&&r._calendar&&r._calendar.element&&r.endDateInput&&r.endDateInput.element&&document&&document.activeElement===r.endDateInput.element&&(e.preventDefault(),r.focusCalendarElement())},r.handleChange=function(e,t){r.setState({value:e}),r.valueDuringOnChange=e;var n=r.props.onChange;if(n){var o={syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:r.value,show:r.show,target:r};n.call(void 0,o)}r.valueDuringOnChange=void 0},Object(c.validatePackage)(f),r.state={show:r.props.show||r.props.defaultShow||t.defaultProps.defaultShow,value:r.props.value||r.props.defaultValue||t.defaultProps.defaultValue},r.nextTick=r.nextTick.bind(r),r.setShow=r.setShow.bind(r),r.focusCalendarElement=r.focusCalendarElement.bind(r),r.focusDateInputElement=r.focusDateInputElement.bind(r),r}return rr(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startDateInput",{get:function(){return this._startDateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endDateInput",{get:function(){return this._endDateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return(void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value)||R},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.shouldFocusCalendar&&this.focusCalendarElement(),this.shouldFocusDateInput&&this.focusDateInputElement(),this.shouldFocusCalendar=!1,this.shouldFocusDateInput=!1},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,t=this.value||R,n=(this.props.startDateInputSettings||{}).id||this._startInputId,r=(this.props.endDateInputSettings||{}).id||this._endInputId,o=Object(c.classNames)("k-daterangepicker",{"k-state-disabled":this.props.disabled},this.props.className),i=Object(p.provideLocalizationService)(this),a=i.toLanguageString("daterangepicker.start",Ze["daterangepicker.start"]),s=i.toLanguageString("daterangepicker.end",Ze["daterangepicker.end"]),u=i.toLanguageString(We,Ze[We]),d=or({label:a,format:this.props.format,min:this.min,max:this.max,id:this._startInputId,disabled:this.props.disabled,valid:this.props.valid,ariaHasPopup:!0,ariaExpanded:this.show},this.props.startDateInputSettings,{value:t.start,onChange:this.handleStartChange}),f=or({label:s,format:this.props.format,min:this.min,max:this.max,id:this._endInputId,disabled:this.props.disabled,valid:this.props.valid,ariaHasPopup:!0,ariaExpanded:this.show},this.props.endDateInputSettings,{value:t.end,onChange:this.handleEndChange}),h=or({animate:null!==this._wrapper,anchor:this._wrapper,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},this.props.popupSettings,{show:this.show}),m=or({min:this.min,max:this.max,allowReverse:this.props.allowReverse,mode:"range",focusedDate:this.props.focusedDate,disabled:this.props.disabled},this.props.calendarSettings,{value:t,onChange:this.handleCalendarChange}),v=this.props.calendar?l.createElement(this.props.calendar,or({},m)):l.createElement(nr,or({},m,{ref:this.setCalendarRef})),g=l.createElement(xe.Button,or({className:"k-select",look:"flat",title:Object(p.provideLocalizationService)(this).toLanguageString(Ke,Ze[Ke]),onMouseDown:this.handleReverseMouseDown,onClick:this.handleReverseClick},{"aria-controls":n+" "+r,"aria-label":Object(p.provideLocalizationService)(this).toLanguageString(Ke,Ze[Ke])}),l.createElement("span",{style:{transform:"rotate(90deg)"},className:"k-icon k-i-arrows-swap"}));return l.createElement("span",{ref:function(t){e._element=t},className:o,style:this.props.style,id:this.props.id,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,tabIndex:this.props.tabIndex,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown},l.createElement("span",{ref:function(t){e._wrapper=t},className:"k-daterangepicker-wrap",style:ir},this.props.startDateInput?l.createElement(this.props.startDateInput,or({},d)):l.createElement(zt,or({},d,{ref:this._startDateInput})),(this.props.allowReverse||this.props.calendarSettings&&this.props.calendarSettings.allowReverse)&&this.props.swapButton?g:u,this.props.endDateInput?l.createElement(this.props.endDateInput,or({},f)):l.createElement(zt,or({},f,{ref:this._endDateInput}))),this.props.popup?l.createElement(this.props.popup,or({},h),v):l.createElement(Ht.a,or({},h),v))},t.prototype.focusDateInputElement=function(){document&&this.startDateInput&&this.startDateInput.element&&this.endDateInput&&this.endDateInput.element&&(null!==this.value.start&&null===this.value.end||document.activeElement===this.endDateInput.element?document.activeElement!==this.startDateInput.element&&this.endDateInput.element.focus({preventScroll:!0}):this.startDateInput.element.focus({preventScroll:!0}))},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.displayName="DateRangePicker",t.propTypes={allowReverse:u.bool,calendarSettings:u.any,className:u.string,defaultShow:u.bool,defaultValue:u.shape({start:j(u.instanceOf(Date).isRequired),end:j(u.instanceOf(Date).isRequired)}),disabled:u.bool,endDateInputSettings:u.shape(Vt.propTypes),focusedDate:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,max:u.instanceOf(Date),min:u.instanceOf(Date),onBlur:u.func,onChange:u.func,onFocus:u.func,popupSettings:u.any,show:u.bool,startDateInputSettings:u.any,style:u.any,swapButton:u.any,tabIndex:u.number,value:u.shape({start:j(u.instanceOf(Date).isRequired),end:j(u.instanceOf(Date).isRequired)})},t.defaultProps={allowReverse:!1,defaultShow:!1,defaultValue:R,disabled:!1,format:"d",max:Re,min:Me,swapButton:!1},t}(l.Component),sr=Object(c.createPropsContext)(),lr=Object(c.withPropsContext)(sr,ar);lr.displayName="KendoReactDateRangePicker",Object(p.registerForLocalization)(ar);var ur=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cr=function(){return(cr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},dr=function(e){function t(t){var n=e.call(this,t)||this;return n._calendarWrap=null,n.focus=function(e){Promise.resolve().then((function(){"time"===n.state.tab&&n._timePart&&n._timePart.focus(e);var t=n.calendarElement();"date"===n.state.tab&&t&&t.focus(e)}))},n.calendarElement=function(){return n._calendar&&n._calendar.element||n._calendarWrap&&n._calendarWrap.querySelector(".k-widget.k-calendar")},n.move=function(e){if(!("right"===e&&"time"===n.state.tab||"left"===e&&"date"===n.state.tab)){var t="left"===e?"date":"time";n.shouldFocusPart=!0,n.setState({tab:t})}},n.handleReject=function(e){n.setState({dateValue:n.props.value,timeValue:n.props.value||Ne});var t=n.mergeDate(n.props.value,n.props.value||Ne);if(n.props.onReject){var r={nativeEvent:e.nativeEvent,syntheticEvent:e,target:n,value:t};n.props.onReject.call(void 0,r)}},n.handleAccept=function(e,t){if(n.state.dateValue&&n.state.timeValue&&n.hasDateValue){var r=n.mergeDate(n.state.dateValue,t||n.state.timeValue);n.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r,target:n})}},n.handleNowClick=function(e){n.setState({timeValue:Pt()}),n.handleAccept(e,Pt())},n.handleCalendarValueChange=function(e){e.syntheticEvent.stopPropagation(),n.setState({dateValue:e.value,tab:"time"}),n.shouldFocusPart=!0},n.handleTimeListContainerChange=function(e){n.setState({timeValue:e})},n.handleDateClick=function(e){e.stopPropagation(),n.move("left")},n.handleTimeClick=function(e){e.stopPropagation(),n.move("right")},n.handleKeyDown=function(e){var t=e.keyCode,r=e.altKey;switch(t){case c.Keys.enter:return void(!n.hasActiveButton()&&n.hasDateValue&&n.handleAccept(e));case c.Keys.left:if(!r)return;return void n.move("left");case c.Keys.right:if(!r)return;return void n.move("right");default:return}},n.handleTimePartMount=function(e){n.setState({timeValue:e})},n.state={tab:"date",dateValue:n.props.value,timeValue:n.props.value||Ne},n}return ur(t,e),Object.defineProperty(t.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timePart",{get:function(){return this._timePart},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasDateValue",{get:function(){return null!==this.state.dateValue},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(){this.shouldFocusPart&&this.focus({preventScroll:!0}),this.shouldFocusPart=!1},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.cancelButton,o=t.min,i=t.max,a=t.weekNumber,s=t.focusedDate,u=t.format,d=Object(c.classNames)({"k-date-tab":"date"===this.state.tab,"k-time-tab":"time"===this.state.tab,"k-state-disabled":n},"k-datetime-wrap"),f=Object(p.provideLocalizationService)(this),h=f.toLanguageString("datetimepicker.date",Ze["datetimepicker.date"]),m=f.toLanguageString("datetimepicker.time",Ze["datetimepicker.time"]),v=f.toLanguageString("datetimepicker.cancel",Ze["datetimepicker.cancel"]),g=f.toLanguageString("datetimepicker.set",Ze["datetimepicker.set"]),y={min:o,max:i,weekNumber:a,focusedDate:s,disabled:n||"date"!==this.state.tab,value:this.state.dateValue,onChange:this.handleCalendarValueChange,navigation:!1};return l.createElement("div",{onKeyDown:this.handleKeyDown,className:d,tabIndex:-1},l.createElement("div",{className:"k-datetime-buttongroup"},l.createElement(xe.ButtonGroup,{width:"100%"},l.createElement(xe.Button,{type:"button",selected:"date"===this.state.tab,togglable:!0,onClick:this.handleDateClick},h),l.createElement(xe.Button,{type:"button",selected:"time"===this.state.tab,togglable:!0,onClick:this.handleTimeClick},m))),l.createElement("div",{className:"k-datetime-selector"},l.createElement("div",{className:"k-datetime-calendar-wrap",ref:function(t){return e._calendarWrap=t}},this.props.calendar?l.createElement(this.props.calendar,cr({},y)):l.createElement(ft,cr({ref:function(t){e._calendar=t}},y))),l.createElement("div",{className:"k-datetime-time-wrap"},l.createElement(jn,{key:1,onNowClick:this.handleNowClick,disabled:n||"time"!==this.state.tab,ref:function(t){e._timePart=t},min:this.minTime||W,max:this.maxTime||q,steps:this.props.steps,value:this.state.timeValue,format:u,onChange:this.handleTimeListContainerChange,onMount:this.handleTimePartMount}))),l.createElement("div",{className:"k-datetime-footer k-actions k-hstack k-justify-content-stretch"},r&&l.createElement(xe.Button,cr({type:"button",ref:function(t){e._cancelButton=t},className:"k-time-cancel",onClick:this.handleReject,title:v},{"aria-label":v}),v),l.createElement(xe.Button,cr({type:"button",ref:function(t){e._acceptButton=t},className:"k-time-accept",disabled:!this.hasDateValue,onClick:this.handleAccept,title:g},{"aria-label":g}),g)))},Object.defineProperty(t.prototype,"minTime",{get:function(){return void 0!==this.props.minTime?this.props.minTime:this.normalizeRange(this.props.min,this.state.dateValue)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxTime",{get:function(){return void 0!==this.props.maxTime?this.props.maxTime:this.normalizeRange(this.props.max,this.state.dateValue)},enumerable:!0,configurable:!0}),t.prototype.normalizeRange=function(e,t){return Object(d.isEqualDate)(e,t||G())?e:null},t.prototype.hasActiveButton=function(){return!!this._acceptButton&&(this._acceptButton&&document.activeElement===this._acceptButton.element||this._cancelButton&&document.activeElement===this._cancelButton.element)},t.prototype.mergeTime=function(e,t){return e&&t?Y(t,e):t},t.prototype.mergeDate=function(e,t){return e?Y(e||G(),t):t},t}(l.Component);Object(p.registerForLocalization)(dr);var pr=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fr=function(){return(fr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},hr=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=Object(c.guid)(),r._element=null,r._wrapper=null,r._dateInput=l.createRef(),r._dateTimeSelector=null,r.shouldFocusDateInput=!1,r.prevShow=!1,r.focus=function(){var e=r.dateInputElement();e&&e.focus()},r.handleReject=function(){r.shouldFocusDateInput=!0,r.setShow(!1)},r.handleValueChange=function(e){r.setState({value:Object(d.cloneDate)(e.value||void 0),show:!1}),r.valueDuringOnChange=e.value,r.showDuringOnChange=!1,r.shouldFocusDateInput=!0;var t=r.props.onChange;t&&t.call(void 0,{syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:r.value,show:r.show,target:r}),r.valueDuringOnChange=void 0,r.showDuringOnChange=void 0},r.handleFocus=function(){r.setState({focused:!0})},r.handleBlur=function(){r.setState({focused:!1}),r.setShow(!1)},r.handleDateIconClick=function(){r.props.disabled||(r.shouldFocusDateInput=!0,r.setShow(!r.show))},r.handleIconMouseDown=function(e){e.preventDefault()},r.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===c.Keys.esc)return r.shouldFocusDateInput=!0,void r.setShow(!1);!t||n!==c.Keys.up&&n!==c.Keys.down||(e.preventDefault(),e.stopPropagation(),r.shouldFocusDateInput=n===c.Keys.up,r.setShow(n===c.Keys.down))},r.dateInputElement=function(){return r.dateInput&&r.dateInput.element||r._wrapper&&r._wrapper.querySelector(".k-dateinput-wrap > input.k-input")},Object(c.validatePackage)(f),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r}return pr(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?Object(d.cloneDate)(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=X(this.value,this.min,this.max)&&Rt(this.value,this.props.minTime||je,this.props.maxTime||q),t=void 0!==this.props.validationMessage,n=(!this.required||null!==this.value)&&e,r=void 0!==this.props.valid?this.props.valid:n;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:r,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInputComp",{get:function(){return this.props.dateInput||t.defaultProps.dateInput},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){var e=this.dateInputElement();this._dateTimeSelector&&this.show&&!this.prevShow&&this._dateTimeSelector.focus({preventScroll:!0}),e&&!this.show&&this.shouldFocusDateInput&&e.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.tabIndex,o=t.title,i=t.id,a=t.format,s=t.formatPlaceholder,u=t.min,d=t.max,f=t.weekNumber,h=t.focusedDate,m=t.className,v=t.width,g=t.name,y=t.validationMessage,b=t.required,k=t.validityStyles,C=t.cancelButton,O=t.minTime,w=t.maxTime,E=t.ariaLabelledBy,S=t.ariaDescribedBy,D=t.popup,x=void 0===D?Ht.a:D,I=t.calendar,T=!this.validityStyles||this.validity.valid,_=Object(c.classNames)("k-widget k-datetimepicker",{"k-state-invalid":!T},m),P=Object(c.classNames)("k-picker-wrap",{"k-state-disabled":n,"k-state-focused":this.state.focused}),N={id:i,ariaLabelledBy:E,ariaDescribedBy:S,format:a,formatPlaceholder:s,disabled:n,title:o,validityStyles:k,validationMessage:y,required:b,min:u,max:d,minTime:O,maxTime:w,name:g,tabIndex:this.show?-1:r,valid:this.validity.valid,value:this.value,onChange:this.handleValueChange,steps:this.props.steps,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show},M=l.createElement(c.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncFocus:this.props.onFocus,onSyncBlur:this.props.onBlur},(function(t){var r=t.onFocus,o=t.onBlur;return l.createElement("div",{ref:function(t){e._element=t},className:_,onKeyDown:e.handleKeyDown,style:{width:v},onFocus:r,onBlur:o},l.createElement("div",{ref:function(t){e._wrapper=t},className:P},l.createElement(e.dateInputComp,fr({_ref:e._dateInput},N)),l.createElement("span",fr({role:"button",onMouseDown:e.handleIconMouseDown,onClick:e.handleDateIconClick,title:Object(p.provideLocalizationService)(e).toLanguageString(qe,Ze[qe]),className:"k-select"},{"aria-controls":e._popupId,"aria-label":Object(p.provideLocalizationService)(e).toLanguageString(qe,Ze[qe])}),l.createElement("span",{className:"k-link k-link-date"},l.createElement("span",{className:"k-icon k-i-calendar"})))),l.createElement(x,{show:e.show,animate:null!==e._wrapper,anchor:e._wrapper,className:"k-datetime-container k-group k-reset",id:e._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},l.createElement(dr,{ref:function(t){e._dateTimeSelector=t},cancelButton:C,steps:e.props.steps,value:e.value,onChange:e.handleValueChange,onReject:e.handleReject,disabled:n,weekNumber:f,min:e.min,max:e.max,minTime:O,maxTime:w,focusedDate:h,format:a,calendar:I})))}));return this.props.label?l.createElement(qt,{dateInput:this._dateInput,label:this.props.label,editorId:i,editorValid:T,editorDisabled:this.props.disabled,children:M,style:{width:this.props.width}}):M},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.displayName="DateTimePicker",t.propTypes={className:u.string,defaultShow:u.bool,defaultValue:u.instanceOf(Date),disabled:u.bool,focusedDate:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,min:u.instanceOf(Date),max:u.instanceOf(Date),name:u.string,popupSettings:u.shape({animate:u.bool,appendTo:u.any,popupClass:u.string}),show:u.bool,tabIndex:u.number,title:u.string,value:u.instanceOf(Date),weekNumber:u.bool,width:u.oneOfType([u.number,u.string]),validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool,cancelButton:u.bool},t.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"g",max:K,min:U,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0,cancelButton:!0,dateInput:zt},t}(l.Component),mr=Object(c.createPropsContext)(),vr=Object(c.withPropsContext)(mr,hr);vr.displayName="KendoReactDateTimePicker",Object(p.registerForLocalization)(hr)},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),i=n(7);!function(e){e.select="ITEMS_SELECT_SELECT",e.selectNext="ITEMS_SELECT_SELECT_NEXT",e.selectPrev="ITEMS_SELECT_SELECT_PREV",e.reset="ITEMS_SELECT_RESET",e.add="ITEMS_SELECT_ADD",e.remove="ITEMS_SELECT_REMOVE"}(r=t.ITEMS_SELECT_ACTION||(t.ITEMS_SELECT_ACTION={})),t.useItemsSelection=function(e){var t=o.useState([]),n=t[0],a=t[1],s=o.useCallback((function(t,o){switch(t.type){case r.select:if(!t.item)return;a([t.item]);break;case r.selectNext:if(!t.item||!t.item.current||!e)return;(s=i.findNextItem(t.item,e,t.ignoreIsAllDay,!1))&&(o.preventDefault(),a([s]));break;case r.selectPrev:if(!t.item||!t.item.current||!e)return;var s;(s=i.findNextItem(t.item,e,t.ignoreIsAllDay,!0))&&(o.preventDefault(),a([s]));break;case r.reset:a([]);break;case r.add:if(!t.item)return;n.some((function(e){return e===t.item}))||a(n.concat([t.item]));break;case r.remove:if(!t.item)return;a(n.filter((function(e){return e!==t.item})).slice())}}),[e,n]);return[n,s]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0);!function(e){e.select="SLOTS_SELECT_SELECT",e.reset="SLOTS_SELECT_RESET",e.add="SLOTS_SELECT_ADD"}(r=t.SLOTS_SELECT_ACTION||(t.SLOTS_SELECT_ACTION={})),t.useSlotsSelection=function(e){var t=o.useState([]),n=t[0],i=t[1],a=o.useCallback((function(e){switch(e.type){case r.select:if(!e.slot)return;i([e.slot]);break;case r.reset:i([]);break;case r.add:if(!e.slot)return;n.some((function(t){return t===e.slot}))||i(n.concat([e.slot]))}}),[n]);return[n,a]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(3),i=n(12);t.toSlots=function(e,t,n){var a=t.step,s=n.groups,l=n.ranges,u=[];return s.forEach((function(e){l.forEach((function(t){for(var n=t.zonedStart,s=t.zonedEnd,l=s.timezoneOffset-n.timezoneOffset,c=n.clone(),d=0,p=l<0?l*i.MS_PER_MINUTE*-1:0;c.getTime()<s.getTime();d++,c=c.addTime(a)){var f=r.createRef(),h=c.clone(),m=c.addTime(a),v=(m.timezoneOffset-h.timezoneOffset)*i.MS_PER_MINUTE,g=a<Math.abs(v);p&&g&&(p-=a,c=c.addTime(-a));var y=new Date(h.getTime()),b={_ref:f,index:d,end:new Date(m.getTime()),start:y,zonedStart:h,zonedEnd:m,range:t,group:e,items:[],isAllDay:o.MS_PER_DAY<=a};u.push(b)}}))})),u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(16),i=n(47),a=n(4),s=n(11),l=n(2);t.SchedulerRemoveDialog=r.forwardRef((function(e,t){var n=e.onClose,u=e.onCancel,c=e.onConfirm,d=r.useRef(null);r.useImperativeHandle(d,(function(){return{props:e}})),r.useImperativeHandle(t,(function(){return d.current}));var p=a.useLocalization(),f=p.toLanguageString(s.editorCancel,s.messages[s.editorCancel]),h=p.toLanguageString(s.editorDelete,s.messages[s.editorDelete]),m=p.toLanguageString(s.deleteConfirmation,s.messages[s.deleteConfirmation]),v=p.toLanguageString(s.deleteDialogTitle,s.messages[s.deleteDialogTitle]),g=r.useCallback((function(e){var t=e.syntheticEvent;n&&n.call(void 0,{syntheticEvent:t})}),[n]),y=r.useCallback((function(e){u&&u.call(void 0,{syntheticEvent:e,value:null})}),[u]),b=r.useCallback((function(e){c&&c.call(void 0,{syntheticEvent:e,value:null})}),[c]);return l.canUseDOM?o.createPortal(r.createElement(i.Dialog,{title:v,onClose:g},m,r.createElement(i.DialogActionsBar,null,r.createElement("button",{className:"k-button",onClick:y},f),r.createElement("button",{className:"k-button",onClick:b},h))),document&&document.body):null})),t.SchedulerRemoveDialog.displayName="KendoReactSchedulerRemoveDialog"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(16),i=n(47),a=n(4),s=n(11),l=n(2);t.SchedulerOccurrenceDialog=r.forwardRef((function(e,t){var n=e.isRemove,u=e.onClose,c=e.onSeriesClick,d=e.onOccurrenceClick,p=r.useRef(null);r.useImperativeHandle(p,(function(){return{props:e}})),r.useImperativeHandle(t,(function(){return p.current}));var f=a.useLocalization(),h=function(e){return f.toLanguageString(e,s.messages[e])},m=h(s.editorOccurrence),v=h(s.editorSeries),g=h(s.editorRecurringConfirmation),y=h(s.editorRecurringDialogTitle),b=h(s.deleteOccurrence),k=h(s.deleteSeries),C=h(s.deleteRecurringDialogTitle),O=h(s.deleteRecurringConfirmation),w=n?C:y,E=n?O:g,S=n?b:m,D=n?k:v,x=r.useCallback((function(e){var t=e.syntheticEvent;u&&u.call(void 0,{syntheticEvent:t,value:null,target:p.current})}),[u]),I=r.useCallback((function(e){c&&c.call(void 0,{syntheticEvent:e,value:null,target:p.current})}),[c]),T=r.useCallback((function(e){d&&d.call(void 0,{syntheticEvent:e,value:null,target:p.current})}),[d]);return l.canUseDOM?o.createPortal(r.createElement(i.Dialog,{title:w,onClose:x},E,r.createElement(i.DialogActionsBar,null,r.createElement("button",{className:"k-button",onClick:T},S),r.createElement("button",{className:"k-button",onClick:I},D))),document&&document.body):null})),t.SchedulerOccurrenceDialog.displayName="KendoReactSchedulerSchedulerOccurrenceDialog"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(16),s=n(2),l=n(73),u=n(47),c=n(4),d=n(58),p=n(10),f=n(11);t.SchedulerForm=i.forwardRef((function(e,t){var n=e.onCancel,m=e.onClose,v=e.onSubmit,g=e.editor,y=e.dialog,b=void 0===y?h.dialog:y,k=e.validator,C=void 0===k?h.validator:k,O=o(e,["onCancel","onClose","onSubmit","editor","dialog","validator"]),w=i.useRef(null);i.useImperativeHandle(w,(function(){return{props:e}})),i.useImperativeHandle(t,(function(){return w.current}));var E=c.useLocalization(),S=p.useSchedulerFieldsContext(),D=i.useMemo((function(){return E.toLanguageString(f.editorValidationRequired,f.messages[f.editorValidationRequired])}),[E]),x=i.useMemo((function(){return E.toLanguageString(f.editorValidationEnd,f.messages[f.editorValidationEnd])}),[E]),I=i.useMemo((function(){return E.toLanguageString(f.editorSave,f.messages[f.editorSave])}),[E]),T=i.useMemo((function(){return E.toLanguageString(f.editorCancel,f.messages[f.editorCancel])}),[E]),_=i.useMemo((function(){return E.toLanguageString(f.editorTitle,f.messages[f.editorTitle])}),[E]),P=i.useMemo((function(){return E.toLanguageString(f.editorValidationStart,f.messages[f.editorValidationStart])}),[E]),N=i.useCallback((function(e){n&&n.call(void 0,{value:null,syntheticEvent:e,target:w.current})}),[n]),M=i.useCallback((function(e){var t=e.syntheticEvent;m&&m.call(void 0,{value:null,syntheticEvent:t,target:w.current})}),[m]),R=i.useCallback((function(e,t){v&&v.call(void 0,{value:e,syntheticEvent:t,target:w.current})}),[v]),j=i.useCallback((function(e,t){return Boolean(e&&t(S.end)&&e.getTime()>t(S.end).getTime())?P:void 0}),[S,P]),F=i.useCallback((function(e,t){return Boolean(e&&t(S.start)&&e.getTime()<t(S.start).getTime())?x:void 0}),[S,x]),A=i.useCallback((function(e){return e?void 0:D}),[D]),L=i.useCallback((function(e,t){var n={};n[S.start]=[A(t(S.start)),j(t(S.start),t)].filter(Boolean).reduce((function(e,t){return e||t}),""),n[S.end]=[A(t(S.start)),F(t(S.start),t)].filter(Boolean).reduce((function(e,t){return e||t}),"");var o=C(e,t);return r({},n,o)}),[F,S.end,S.start,A,j,C]);return s.canUseDOM?a.createPortal(i.createElement(l.Form,r({initialValues:e.dataItem,onSubmit:R,validator:L,render:function(e){return i.createElement(b,{title:_,minWidth:600,onClose:M,className:"k-scheduler-edit-dialog"},i.createElement(d.SchedulerFormEditor,r({},e,{as:g})),i.createElement(u.DialogActionsBar,null,i.createElement("button",{className:"k-button",disabled:!e.allowSubmit,onClick:e.onSubmit},I),i.createElement("button",{className:"k-button",onClick:N},T)))}},O)),document&&document.body):null}));var h={dialog:u.Dialog,validator:function(){return{}}};t.SchedulerForm.defaultProps=h,t.SchedulerForm.displayName="KendoReactSchedulerForm"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(17),a=n(12),s=n(21);t.HorizontalResourceIterator=function(e){var n=e.nested,r=e.children,a=e.rowContentProps,s=e.rowContent||t.DefaultRowContent,c=e.childRowContent||s,d=i.toGroupResources(e.group,e.resources);return o.createElement("div",{className:"k-scheduler-group k-group-horizontal"},n?l({resources:d,children:r,nested:n,groupIndex:0,rowContent:s,rowContentProps:a,childRowContent:c}):u({resources:d,children:r,rowContent:s,nested:!!n,groupIndex:0,rowContentProps:a,childRowContent:c}))};var l=function(e){var t=e.resources,n=e.rowContent,a=e.nested,s=e.children,c=e.groupIndex,d=e.rowContentProps,p=e.childRowContent;if(c===t.length)return u({resources:t,rowContent:n,children:s,nested:a,groupIndex:c,rowContentProps:d,childRowContent:p});var f=i.expandResources(t,c),h=n;return o.createElement(o.Fragment,null,a?o.createElement("div",{className:"k-scheduler-row"},o.createElement(h,r({resources:t,groupIndex:c},d),f.map((function(e,t){return o.createElement("div",{key:t,className:"k-scheduler-cell k-heading-cell"},e.text)})))):o.createElement(h,r({resources:t,groupIndex:c},d),f.map((function(e,t){return o.createElement("div",{key:t,className:"k-scheduler-cell k-heading-cell"},e.text)}))),l({resources:t,children:s,nested:a,rowContent:n,childRowContent:p,groupIndex:c+1}))},u=function(e){var t=e.resources,n=e.childRowContent,l=e.children,u=e.rowContentProps,c=i.expandResources(t,t.length-1),d=n,p=t.length>0;return o.createElement("div",{className:"k-scheduler-row"},o.createElement(d,r({resources:t},u),(c.length?c:a.EMPTY_RESOURCE).map((function(e,t){return o.createElement("div",{key:t,className:"k-scheduler-cell k-group-cell"},o.createElement(s.SchedulerResourceIteratorContext.Provider,{value:{resource:e,groupIndex:p?t:0}},l))}))))};t.HorizontalResourceIterator.displayName="KendoReactSchedulerHorizontalResourceIterator",t.DefaultRowContent=function(e){return e.children}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(4),s=n(2);t.TimeHeaderCell=i.forwardRef((function(e,t){var n=e.as,u=void 0===n?l.as:n,c=o(e,["as"]),d=i.useRef(null),p=i.useRef(null),f=a.useInternationalization(),h=i.useMemo((function(){return s.classNames("k-scheduler-cell k-heading-cell",e.className)}),[e.className]);return i.useImperativeHandle(p,(function(){return{element:d.current&&d.current.element?d.current.element:d.current,props:e}})),i.useImperativeHandle(t,(function(){return p.current})),i.createElement(u,r({ref:u!==l.as?void 0:d},c,{className:h}),f.formatDate(e.date,e.format))}));var l={as:i.forwardRef((function(e,t){e.as,e.format,e.start,e.end;var n=o(e,["as","format","start","end"]);return i.createElement("div",r({},n,{ref:t}))})),format:"t"};t.TimeHeaderCell.defaultProps=l,t.TimeHeaderCell.displayName="KendoReactSchedulerTimeHeaderCell"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(3),s=n(23),l=n(41),u=n(105),c=n(24),d=n(106),p=n(107),f=n(2),h=n(7),m=n(4),v=n(12),g=n(28),y=n(22),b=n(29),k=n(13),C=n(21),O=n(71),w=n(32),E=o.createElement("div",{className:"k-scheduler-cell k-side-cell"});t.MultiDayView=function(e){var n=k.useSchedulerPropsContext(),i=n.group,S=n.timezone,D=n.resources,x=m.useInternationalization(),I=e.editItem||b.SchedulerEditItem,T=e.editSlot||y.SchedulerEditSlot,_=e.showWorkHours,P=e.numberOfDays||t.defaultProps.numberOfDays,N=e.slotDivisions||t.defaultProps.slotDivisions,M=e.slotDuration||t.defaultProps.slotDuration,R=e.workWeekStart||t.defaultProps.workWeekStart,j=e.workWeekEnd||t.defaultProps.workWeekEnd,F=x.parseDate(e.workDayStart||e.isWorkDayStart||t.defaultProps.isWorkDayStart),A=x.parseDate(e.workDayEnd||e.isWorkDayEnd||t.defaultProps.isWorkDayEnd),L=x.parseDate(e.startTime||t.defaultProps.startTime),V=x.parseDate(e.endTime||t.defaultProps.endTime),B=k.useSchedulerDataContext()[0],z=k.useSchedulerGroupsContext(),H=k.useSchedulerOrientationContext(),U=k.useSchedulerFieldsContext(),K=k.useSchedulerDateRangeContext(),W=o.useMemo((function(){return _?F:L}),[_,F,L]),q=o.useMemo((function(){return _?A:V}),[_,A,V]),Y=o.useMemo((function(){return g.toRanges(K,{step:a.MS_PER_DAY*P,timezone:S}).map((function(e){return r({},e,{isAllDay:!0})}))}),[K.start.getTime(),K.end.getTime(),P]),G=o.useMemo((function(){return g.toRanges(K,{step:a.MS_PER_DAY,timezone:S}).map((function(e){return r({},e,{isAllDay:!1})}))}),[K.start.getTime(),K.end.getTime(),S]),Z=o.useMemo((function(){return g.toSlots(K,{step:a.MS_PER_DAY},{groups:z,ranges:Y})}),[K.start.getTime(),K.end.getTime(),S,Y,z]),X=o.useMemo((function(){return g.toSlots(K,{step:M*v.MS_PER_MINUTE/N},{groups:z,ranges:G}).filter((function(e){return q.getTime()===W.getTime()||h.isInTimeRange(e.zonedStart,W,q)}))}),[K.start.getTime(),K.end.getTime(),M,N,W.getTime(),q.getTime(),z,G]),Q=o.useMemo((function(){return g.toOccurrences(B,{dateRange:K,fields:U,timezone:S})}),[B,K.start.getTime(),K.end.getTime(),U,S]),$=o.useMemo((function(){return Q.filter((function(e){return e.isAllDay}))}),[Q]),J=o.useMemo((function(){return Q.filter((function(e){return!e.isAllDay}))}),[Q]),ee=o.useMemo((function(){return g.toItems($,{timezone:S},{groups:z,ranges:Y})}),[Q,S,z,Y]),te=o.useMemo((function(){return g.toItems(J,{timezone:S},{groups:z,ranges:G}).filter((function(e){return W.getTime()===q.getTime()||h.isInTimeRange(e.zonedStart,W,q)||h.isInTimeRange(e.zonedEnd,W,q)||h.isInTimeRange(new Date(e.zonedEnd.getTime()-(e.zonedEnd.getTime()-e.zonedStart.getTime())/2),W,q)}))}),[Q,S,z,G,W.getTime(),q.getTime()]);o.useMemo((function(){return h.mapItemsToSlots(ee,Z,!1)}),[ee,Z]),o.useMemo((function(){return h.mapSlotsToItems(ee,Z,!1)}),[ee,Z]),o.useMemo((function(){return h.mapItemsToSlots(te,X,!1)}),[te,X]),o.useMemo((function(){return h.mapSlotsToItems(te,X,!1)}),[te,X]);var ne=o.createElement(C.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return o.createElement("div",{className:"k-scheduler-row",key:n},G.map((function(t,n){return o.createElement(w.DateHeaderCell,{as:e.dateHeaderCell,key:n,date:a.ZonedDate.fromLocalDate(new Date(t.zonedEnd.getTime()-(t.zonedEnd.getTime()-t.zonedStart.getTime())/2),S),start:t.start,end:t.end,format:{skeleton:"MEd"}})})))})),re=o.createElement(C.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return o.createElement("div",{key:n,className:"k-scheduler-row"},Y.map((function(t,i){return Z.filter((function(e){return e.group.index===n&&e.range.index===i})).map((function(t,i,a){return o.createElement(T,r({},t,{onDataAction:e.onDataAction,form:e.form,slot:e.slot,viewSlot:e.viewSlot,key:t.start.getTime()+":"+t.group.index,row:0,col:"horizontal"===H?a.length*(n||0)+i:i,isWorkDay:0<=t.zonedStart.getDay()+(P-R)&&(t.zonedStart.getDay()+(P-R))%P<=j+(P-R),expandable:!0}))}))})))})),oe=o.useMemo((function(){return f.classNames("k-scheduler-day-view",e.className)}),[e.className]);return o.createElement(o.Fragment,null,o.createElement(s.BaseView,{id:e.id,props:e,style:e.style,className:oe,ranges:Y.concat(G),slots:Z.concat(X)},o.createElement("div",{className:"k-scheduler-head"},"horizontal"===H?o.createElement(o.Fragment,null,o.createElement(l.HorizontalResourceIterator,{nested:!0,group:i,resources:D,rowContent:u.DayViewGroupRowContent,childRowContent:u.DayViewGroupRowContent},ne),o.createElement(l.HorizontalResourceIterator,{group:i,resources:D,rowContent:d.DayViewAllDayRowContent,childRowContent:d.DayViewAllDayRowContent},re),ee.map((function(t){return o.createElement(I,r({key:t.isRecurring?t.uid+":"+t.group.index+":"+t.range.index+":"+t.originalStart:t.uid+":"+t.group.index+":"+t.range.index},t,{form:e.form,onDataAction:e.onDataAction,item:e.item,viewItem:e.viewItem,editable:e.editable,vertical:!1}))}))):o.createElement(c.VerticalResourceIterator,{group:i,resources:D,cellContent:E},ne)),o.createElement("div",{className:"k-scheduler-body"},"horizontal"===H?o.createElement(o.Fragment,null,X.filter((function(e){return 0===e.group.index&&0===e.range.index})).map((function(t,n){return o.createElement(o.Fragment,{key:t.index},o.createElement(l.HorizontalResourceIterator,{nested:!1,group:i,resources:D,rowContent:p.DayViewRowContent,rowContentProps:{timeHeaderCell:e.timeHeaderCell,isMaster:n%N==0,isLast:(n+1)%N==0,slot:t}},o.createElement(C.SchedulerResourceIteratorContext.Consumer,null,(function(i){var a=i.groupIndex;return o.createElement("div",{className:f.classNames("k-scheduler-row",{"k-middle-row":!((n+1)%N==0)})},G.map((function(i,s){return X.filter((function(e){return e.index===t.index&&e.range.index===s&&e.group.index===a})).map((function(t){return o.createElement(T,r({key:t.start.getTime()+":"+t.group.index},t,{onDataAction:e.onDataAction,slot:e.slot,viewSlot:e.viewSlot,form:e.form,row:n+1,col:G.length*(a||0)+s,isWorkHour:h.isInTimeRange(t.zonedStart,F,A),isWorkDay:0<=t.zonedStart.getDay()+(P-R)&&(t.zonedStart.getDay()+(P-R))%P<=j+(P-R),editable:e.editable}))}))})))}))))})),e.currentTimeMarker&&h.intersects(h.first(G).start,h.last(G).end,new Date,new Date,!0)&&o.createElement(O.CurrentTimeMarker,null)):o.createElement(o.Fragment,null,o.createElement(c.VerticalResourceIterator,{nested:!0,group:i,resources:D},o.createElement(C.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return o.createElement(o.Fragment,{key:n},o.createElement("div",{className:"k-scheduler-row"},o.createElement(d.DayViewAllDayRowContent,{groupIndex:n},Y.map((function(t,i){var a=X.filter((function(e){return e.group.index===n&&0===e.range.index})).length;return Z.filter((function(e){return e.group.index===n&&e.range.index===i})).map((function(t,i){return o.createElement(T,r({slot:e.slot,viewSlot:e.viewSlot,form:e.form},t,{onDataAction:e.onDataAction,key:t.start.getTime()+":"+t.group.index,className:"k-scheduler-alldays-slot",row:a*(n||0)+1*(n||0),col:i,expandable:!0}))}))})))),X.filter((function(e){return e.group.index===n&&0===e.range.index})).map((function(t,i,a){return o.createElement("div",{className:"k-scheduler-row",key:t.index},o.createElement(p.DayViewRowContent,{slot:t,isMaster:i%N==0,isLast:(i+1)%N==0,timeHeaderCell:e.timeHeaderCell},G.map((function(s,l){return X.filter((function(e){return e.index===t.index&&e.group.index===n&&e.range.index===l})).map((function(t){return o.createElement(T,r({slot:e.slot,viewSlot:e.viewSlot,form:e.form,onDataAction:e.onDataAction},t,{key:t.start.getTime()+":"+t.group.index,row:a.length*(n||0)+i+1*(n||0)+1,col:l,editable:e.editable,isWorkHour:h.isInTimeRange(t.zonedStart,F,A),isWorkDay:0<=t.zonedStart.getDay()+(P-R)&&(t.zonedStart.getDay()+(P-R))%P<=j+(P-R)}))}))}))))})),e.currentTimeMarker&&h.intersects(h.first(G).start,h.last(G).end,new Date,new Date,!0)&&o.createElement(O.CurrentTimeMarker,{groupIndex:n}))}))),ee.map((function(t){return o.createElement(I,r({key:t.isRecurring?t.uid+":"+t.group.index+":"+t.range.index+":"+t.originalStart:t.uid+":"+t.group.index+":"+t.range.index},t,{onDataAction:e.onDataAction,viewItem:e.viewItem,item:e.item,form:e.form,editable:e.editable,vertical:!1}))}))),te.map((function(t){return o.createElement(I,r({key:t.isRecurring?t.uid+":"+t.group.index+":"+t.range.index+":"+t.originalStart:t.uid+":"+t.group.index+":"+t.range.index},t,{format:"t",onDataAction:e.onDataAction,viewItem:e.viewItem,item:e.item,form:e.form,editable:e.editable,vertical:!0}))})))))};t.defaultProps={name:"multi-day",title:"Multi Day",currentTimeMarker:!0,dateRange:function(e){var t=e.date,n=e.numberOfDays,r=void 0===n?1:n,o=e.timezone,i=a.ZonedDate.fromLocalDate(t,o),s=a.getDate(i),l=a.addDays(s,r),u=a.ZonedDate.fromUTCDate(h.toUTCDateTime(s),o),c=a.ZonedDate.fromUTCDate(h.toUTCDateTime(l),o);return{start:new Date(u.getTime()),end:new Date(c.getTime()),zonedStart:u,zonedEnd:c}},selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}",numberOfDays:1,startTime:"00:00",endTime:"23:59",isWorkDayStart:"08:00",isWorkDayEnd:"17:00",workWeekStart:a.Day.Monday,workWeekEnd:a.Day.Friday,step:1,slotDivisions:2,slotDuration:60,showCurrentTime:!0,defaultShowWorkHours:!0},t.MultiDayView.propTypes={currentTimeMarker:i.bool,name:i.string,numberOfDays:i.number,startTime:i.string,endTime:i.string,workDayStart:i.string,workDayEnd:i.string,workWeekStart:i.number,workWeekEnd:i.any,slotDivisions:i.number,slotDuration:i.number,showWorkHours:i.bool,selectedDateFormat:i.string,selectedShortDateFormat:i.string},t.MultiDayView.defaultProps=t.defaultProps,t.MultiDayView.displayName="KendoReactSchedulerMultiDayView"},function(e,t,n){"use strict";n.r(t),n.d(t,"expand",(function(){return Gt})),n.d(t,"parseRule",(function(){return Qt})),n.d(t,"serializeRule",(function(){return Jt}));var r={};n.r(r),n.d(r,"byMonth",(function(){return Et})),n.d(r,"byMonthDay",(function(){return St})),n.d(r,"byYearDay",(function(){return Dt})),n.d(r,"byWeekNumber",(function(){return xt})),n.d(r,"byWeekDay",(function(){return It})),n.d(r,"byHour",(function(){return Tt})),n.d(r,"byMinute",(function(){return _t})),n.d(r,"bySecond",(function(){return Pt}));var o=n(3),i=n(8),a=function(e){return e instanceof Array&&e.length>0},s=function(e){return a(e.bySecond)||a(e.byMinute)||a(e.byHour)||a(e.byYearDay)||a(e.byMonthDay)||a(e.byWeekDay)||a(e.byMonth)||a(e.byWeekNumber)},l=function(e){for(var t=e.split(";"),n=[],r=null,o=0;o<t.length;o++){var i=t[o].split(":"),a=i[0],s=i[1],l=void 0===s?"":s,u=a.indexOf("TZID");-1!==u&&(r=a.substring(u).split("=")[1]),n=l.split(",").map((function(e){return it(e,r)}))}return n.length&&null!==n[0]?n:null},u=function(e){var t=l(e);return null===t?null:t[0]},c={en:{name:"en",identity:{version:{_number:"$Revision: 12418 $",_cldrVersion:"29"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"€","symbol-alt-narrow":"€"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},day:{wide:"day",short:"day",narrow:"day"},weekday:{wide:"day of the week"},dayperiod:{wide:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},millisecond:{wide:"millisecond",short:"ms",narrow:"ms"},zone:{wide:"time zone"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};function d(e){return"string"==typeof e}var p=/\{(\d+)}?\}/g,f=function(e){var t=e.name,n=e.message;if(!t||!n)throw new Error("{ name: string, message: string } object is required!");this.name=t,this.message=n};f.prototype.formatMessage=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=h(e),r=this.message.replace(p,(function(e,t){return n[parseInt(t,10)]}));return this.name+": "+r},f.prototype.error=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new Error(this.formatMessage(e))};var h=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},m=function(e){return Object.keys(e).reduce((function(t,n){return t[n]=new f({name:n,message:e[n]}),t}),{})}({NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."});var v=c;function g(e){return d(e)?y(e):e}function y(e){if(v[e])return v[e];if(v.supplemental.likelySubtags){var t=e.split("-"),n=t[0],r=t.slice(1),o=function(e,t){for(var n=v.supplemental.likelySubtags,r=0;r<t.length;r++){var o=n[e+"-"+t[r]];if(o)return o}if(n[e])return n[e]}(n,r),i=o?function(e,t){var n=e.split("-"),r=n[0],o=n[1],i=n[2];return v[e]||-1!==t.indexOf(i)&&v[r+"-"+i]||-1!==t.indexOf(o)&&v[r+"-"+o]||v[r]}(o,r):null;if(i)return i}throw m.NoLocale.error(e)}function b(e){if(e.territory)return e.territory;var t,n=e.name,r=e.identity;return t=r&&r.territory?r.territory:function(e,t){var n=v.supplemental.likelySubtags,r=e.split("-");if(n){var o=n[e]||n[r[0]];o&&(r=o.split("-"))}if(t)for(var i=r.length-1;i>=1;i--){var a=r[i];a!==t.variant&&a!==t.script||r.splice(i,1)}var s=r.length;if(s>1)return r[s-1].toUpperCase()}(n,r),e.territory=t,t}function k(e,t){var n,r=t.type,o=t.nameType,i=t.standAlone,a=t.lower,s=i?"stand-alone":"format",l=(a?"lower-":"")+o,u=g(e).calendar[r][s],c=u[l];return!c&&a&&(c=u[l]=(n=u[o],Array.isArray(n)?function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toLowerCase());return t}(n):function(e){var t={};for(var n in e)t[n]=e[n].toLowerCase();return t}(n))),c}function C(e){var t=e.split("-"),n=parseInt(t[0],10),r=parseInt(t[1],10)-1,o=parseInt(t[2],10);return new Date(n,r,o)}var O=m.NoCurrency,w=m.NoCurrencyDisplay,E=m.NoSupplementalCurrency,S=m.NoCurrencyRegion,D=m.NoValidCurrency,x={"001":"USD",150:"EUR"};function I(e,t,n){var r=g(e).numbers.currencies;if(r){var o=r[t];if(o)return o;if(n)throw w.error()}else if(n)throw O.error()}function T(e,t){if(void 0===t&&(t=!0),x[e])return x[e];var n=v.supplemental.currencyData;if(n){var r=n.region[e];if(r)return function(e){for(var t,n,r,o,i=0;i<e.length;i++){var a=e[i],s=Object.keys(a)[0],l=a[s];if("XXX"!==s&&"false"!==l._tender&&l._from)if(l._to){if(!r){var u=C(l._from),c=C(l._to);(!n||n.to<c||n.from<u)&&(t=s,n={from:u,to:c})}}else{var d=C(l._from);(!o||o<d)&&(r=s,o=d)}}return r||t}(r);if(t)throw S.error(e)}else if(t)throw E.error()}function _(e,t){var n=g(e),r=n.numbers;if(!r.localeCurrency){var o=T(b(n),t);if(!o&&t)throw D.error(n.name);r.localeCurrency=o}return r.localeCurrency}var P=["sun","mon","tue","wed","thu","fri","sat"],N=m.NoWeekData,M=m.NoFirstDay;m.NoWeekData;function R(e){return 1/e==-1/0}function j(e,t){return void 0===t&&(t={}),t.currency||(t.currency=_(e,!0)),function(e,t){var n=t.value,r=t.currency,o=t.currencyDisplay;if(void 0===o&&(o="symbol"),"code"===o)return r;var i=I(e,r,!0);return"symbol"===o?i["symbol-alt-narrow"]||i.symbol:void 0===typeof n||1!==n?i["displayName-count-other"]:i["displayName-count-one"]}(e,t)}function F(e,t,n,r,o){var i=o.numbers.symbols,a=e.indexOf(i.decimal),s=r.groupSize.slice(),l=s.shift(),u=-1!==a?a:n+1,c=e.substring(t,u),d=e,p=c.length;if(p>=l){for(var f=p,h=[];f>-1;){var m=c.substring(f-l,f);m&&h.push(m),f-=l;var v=s.shift();if(0===(l=void 0!==v?v:l)){(m=c.substring(0,f))&&h.push(m);break}}c=h.reverse().join(i.group),d=e.substring(0,t)+c+e.substring(u)}return d}function A(e){return"currency"===e||"accounting"===e}function L(e,t,n){void 0===t&&(t=2),void 0===n&&(n=!1);var r=t-String(e).length,o=e;if(r>0){var i=new Array(r+1).join("0");o=n?e+i:i+e}return o}function V(e,t){var n=e,r=t||0;return n=n.toString().split("e"),n=(n=Math.round(Number(n[0]+"e"+(n[1]?Number(n[1])+r:r)))).toString().split("e"),(n=Number(n[0]+"e"+(n[1]?Number(n[1])-r:-r))).toFixed(Math.min(r,20))}var B=/0+$/;function z(e){var t,n=e.minimumFractionDigits,r=e.maximumFractionDigits,o=e.style,i=A(o);return i&&(t=function(e){var t=2,n=2,r=((v.supplemental.currencyData||{}).fractions||{})[e];return r&&r._digits&&(n=t=parseInt(r._digits,10)),{minimumFractionDigits:t,maximumFractionDigits:n}}(e.currency)),void 0===n&&(n=i?t.minimumFractionDigits:0),void 0===r&&(r="percent"===o?Math.max(n,0):i?Math.max(n,t.maximumFractionDigits):Math.max(n,3)),{minimumFractionDigits:n,maximumFractionDigits:r}}var H=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g;function U(e,t){var n=e.format;-1!==n.indexOf("%")&&(e.style="percent",e.symbol=t.numbers.symbols.percentSign,e.number*=100),-1!==n.indexOf("$")&&(e.style="currency",e.symbol=j(t))}function K(e){var t=e.format;if(t.indexOf("'")>-1||t.indexOf('"')>-1||t.indexOf("\\")>-1){var n=e.literals=[];e.format=t.replace(H,(function(e){var t=e.charAt(0).replace("\\",""),r=e.slice(1).replace(t,"");return n.push(r),"__??__"}))}}var W=/(\.(?:[0-9]*[1-9])?)0+$/g,q=/\.$/,Y=/\,/g;function G(e){var t,n,r,o=e.number,i=e.format,a=i.indexOf(".");if(-1!==a){var s=i.lastIndexOf("0")-a,l=i.lastIndexOf("#")-a,u=s>-1,c=l>-1,d=o.toString().split("e"),p=(d=(d=d[1]?V(o,Math.abs(d[1])):d[0]).split(".")[1]||"").length,f=-1;u||c?u&&s>l?p=s:l>s&&(c&&p>l?p=l:u&&p<s&&(p=s),f=u?s:0):(e.format=i.substring(0,a)+i.substring(a+1),a=-1,p=0),p>-1&&(o=V(o,p),f>-1&&(t=o,r=0===(n=f)?W:new RegExp("(\\.[0-9]{"+n+"}[1-9]*)0+$","g"),o=t.replace(r,"$1").replace(q,"")))}else o=V(o);e.negative&&-1*o>=0&&!e.negativeZero&&(e.negative=!1),e.number=o,e.decimalIndex=a}function Z(e,t,n){return-1===e&&-1!==t?t:-1!==e&&-1===t?e:n?Math.min(e,t):Math.max(e,t)}function X(e,t){var n=e.number;return-1!==e.start&&(n=function(e,t){var n=e;if(t)for(var r=t.length,o=0;o<r;o++)n=n.replace("__??__",t[o]);return n}(n=function(e,t,n){var r=e;if("currency"===t||"percent"===t){r="";for(var o=0,i=e.length;o<i;o++){var a=e.charAt(o);r+="$"===a||"%"===a?n:a}}return r}(n=function(e,t){var n=e.start,r=e.end,o=e.negative,i=e.negativeZero,a=e.format,s=e.decimalIndex,l=e.lastZeroIndex,u=e.hasNegativeFormat,c=e.hasGroup,d=e.number,p=d.toString().split("."),f=a.length,h=p[0],m=p[1]||"",v=h.length,g="";d=a.substring(0,n),!o&&!i||u||(d+="-");for(var y=n;y<f;y++){var b=a.charAt(y);if(-1===s){if(r-y<v){d+=h;break}}else if(-1!==l&&l<y&&(g=""),s-y<=v&&s-y>-1&&(d+=h,y=s),s===y){d+=(m?t.numbers.symbols.decimal:"")+m,y+=r-s+1;continue}"0"===b?(d+=b,g=b):"#"===b&&(d+=g)}return c&&(d=F(d,n+(o&&!u?1:0),Math.max(r,v+n),t.numbers.decimal,t)),r>=n&&(d+=a.substring(r+1)),d}(e,t),e.style,e.symbol),e.literals)),n}function Q(e,t,n){var r={negative:e<0,number:Math.abs(e),negativeZero:R(e),format:t};return function(e){var t=e.number,n=e.format;if(n=n.split(";"),(e.negative||e.negativeZero)&&n[1])n=n[1],e.hasNegativeFormat=!0;else if(0===t){var r=n[2];n=r||n[0],r&&function(e){return-1===e.indexOf("#")&&-1===e.indexOf("0")}(r)&&(e.constant=r)}else n=n[0];e.format=n}(r),r.constant?r.constant:(K(r),U(r,n),function(e){e.hasGroup=e.format.indexOf(",")>-1,e.hasGroup&&(e.format=e.format.replace(Y,""))}(r),G(r),function(e){var t=e.format,n=t.indexOf("#"),r=t.indexOf("0"),o=Z(n,r,!0),i=Z(n=t.lastIndexOf("#"),r=t.lastIndexOf("0"));o===t.length&&(i=o),e.start=o,e.end=i,e.lastZeroIndex=r}(r),X(r,n))}var $=/^(n|c|p|e|a)(\d*)$/i;function J(e){return d(e)?function(e){var t=$.exec(e);if(t){var n={style:"decimal"},r=t[1].toLowerCase();return"c"===r?n.style="currency":"a"===r?n.style="accounting":"p"===r?n.style="percent":"e"===r&&(n.style="scientific"),t[2]&&(n.minimumFractionDigits=n.maximumFractionDigits=parseInt(t[2],10)),n}}(e):e}function ee(e,t,n){if(void 0===t&&(t="n"),void 0===n&&(n="en"),null==e)return"";if(!isFinite(e))return String(e);var r,o=y(n),i=J(t);if(i){var a=i.style||"decimal";r=function(e,t,n){var r=n.numbers.symbols,o=t.style,i=A(o);if("scientific"===o)return(void 0!==t.minimumFractionDigits?e.toExponential(t.minimumFractionDigits):e.toExponential()).replace(".",r.decimal);var a,s=e;i&&(t.value=s,a=j(n,t)),"percent"===o&&(s*=100,a=r.percentSign);var l=z(t),u=l.minimumFractionDigits,c=(s=V(s,l.maximumFractionDigits))<0,d=R(e),p=s.split("."),f=p[0],h=L(p[1]?p[1].replace(B,""):"",u,!0);c&&(f=f.substring(1)),t.minimumIntegerDigits&&(f=L(f,t.minimumIntegerDigits));var m,v=!1!==t.useGrouping?F(f,0,f.length,t,n):f;if(h&&(v+=r.decimal+h),i&&"name"===t.currencyDisplay)m=function(e,t){var n=e.numbers.currency,r=1!==t?n["unitPattern-count-other"]:n["unitPattern-count-one"];return t<0&&(r=r.replace("n","-n")),r}(n,e);else{var g=t.patterns;m=c||d?g[1]||"-"+g[0]:g[0]}return"n"!==m||c?function(e,t,n){for(var r="",o=0,i=t.length;o<i;o++){var a=t.charAt(o);r+="n"===a?e:"$"===a||"%"===a?n:a}return r}(v,m,a):v}(e,Object.assign({},o.numbers[a],i),o)}else r=Q(e,t,o);return r}function te(e){return"number"==typeof e}var ne=/\{(\d+)}/g;function re(e){var t=arguments;return e.replace(ne,(function(e,n){return t[parseInt(n,10)+1]}))}var oe=[2,1,5,3,4],ie={};ie[(-2).toString()]=8,ie[(-1).toString()]=6,ie[2..toString()]=6,ie[1..toString()]=3;var ae={numeric:1,"2-digit":2,short:3,long:4,narrow:5},se=/[hHmsSzZoOvVxX]/;var le=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function(e){return e.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],ue={e:"c",E:"c",M:"L",Q:"q"},ce={},de={};function pe(e){return ce[e]||(ce[e]=new RegExp(e+"+")),ce[e]}function fe(e){for(var t=[],n=e.charAt(0),r=n,o=1;o<e.length;o++){var i=e.charAt(o);i===r?n+=i:(t.push(n),n=r=i)}return t.push(n),t}function he(e,t){var n,r,o=e.length,i=-Number.MAX_VALUE;for(var a in t){for(var s=[],l=a.replace("v","z"),u=0,c=0;c<o;c++){var d=e[c],p=(pe(d[0]).exec(l)||[])[0];if(p){if(l=l.replace(p,""),p.length!==d.length){var f=Math.max(Math.min(oe[p.length]-oe[d.length],2),-2);u-=ie[f]}}else u-=120;if(s.push(p),u<i)break}l.length&&(u-=20*fe(l).length),u>i&&(i=u,n=s,r=t[a])}r=r.replace("v","z");for(var h=0;h<o;h++){var m=n[h];if(m&&m!==e[h]){var v=n[h][0];r=r.replace(pe(v),e[h]),ue[v]&&(r=r.replace(pe(ue[v]),e[h]))}}return r}function me(e,t){var n=t.calendar.dateTimeFormats.availableFormats;if(n[e])return n[e];if(de[t.name]&&de[t.name][e])return de[t.name][e];var r,o=e.search(se);if(o>0){var i=e.substr(0,o),a=e.substr(o);r=re(t.calendar.dateTimeFormats.short,n[a]||he(fe(a),n),n[i]||he(fe(i),n))}else r=he(fe(e),n);return function(e,t,n){de[n]||(de[n]={}),de[n][e]=t}(e,r,t.name),r}function ve(e,t){var n,r=t.calendar;if(d(e))n=r.patterns[e]?r.patterns[e]:e;else if(e){if(e.pattern)return e.pattern;var o=e.skeleton;o||(e.datetime?n=re(r.dateTimeFormats[e.datetime],r.timeFormats[e.datetime],r.dateFormats[e.datetime]):e.date?n=r.dateFormats[e.date]:e.time?n=r.timeFormats[e.time]:o=function(e){for(var t=[],n=0;n<le.length;n++){var r=le[n],o=e[r.key];if(o){var i=r.specifier||r.getSpecifier(e);t.push(i.repeat(ae[o]))}}return t.join("")}(e)),o&&(n=me(o,t))}return n||(n=r.patterns.d),n}function ge(e){var t;return e<=3?t="abbreviated":4===e?t="wide":5===e?t="narrow":6===e&&(t="short"),t}function ye(e,t,n,r,o){return k(e,{type:t,nameType:ge(n),standAlone:r,lower:o})}function be(e){return"function"==typeof e}function ke(e){return Boolean(e)&&be(e.getTime)&&be(e.getMonth)}var Ce=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function Oe(e,t,n){var r=function(e){var t=g(e);if(!isNaN(t.firstDay))return t.firstDay;var n=v.supplemental.weekData;if(!n)throw N.error();var r=n.firstDay[b(t)]||n.firstDay["001"];if(!r)throw M.error();return t.firstDay=P.indexOf(r),t.firstDay}(n);return(e<r?7-r+e:e-r)+1}function we(e,t,n,r){return t<=2?L(e+1,t):ye(n,"months",t,r)[e]}function Ee(e,t,n,r){var o=Math.floor(e.getMonth()/3);return t<3?o+1:ye(n,"quarters",t,r)[o]}function Se(e,t,n){var r=n.shortHours,o=n.optionalMinutes,i=n.separator,a=n.localizedName,s=n.zZeroOffset,l=e.getTimezoneOffset()/60;if(0===l&&s)return"Z";var u=l<=0?"+":"-",c=Math.abs(l).toString().split("."),d=c[1]||0,p=u+(r?c[0]:L(c[0],2));(!d&&o||(p+=(i?":":"")+L(d,2)),a)&&(p=re(0===l?t.calendar.gmtZeroFormat:t.calendar.gmtFormat,p));return p}function De(e,t,n,r){return t<3?Oe(e.getDay(),0,n):ye(n,"days",t,r)[e.getDay()]}var xe={};function Ie(e,t,n){if(void 0===n&&(n="en"),!ke(e))return null==e?"":e;var r=y(n);return ve(t,r).replace(Ce,(function(t){var n=t.length;return t.includes("'")||t.includes('"')?t.slice(1,n-1):xe[t[0]](e,n,r)}))}function Te(e,t,n){var r=e.getTimezoneOffset(),o=new Date(e.getTime()+6e4*(t-n)),i=o.getTimezoneOffset();return new Date(o.getTime()+6e4*(i-r))}xe.d=function(e,t){return L(e.getDate(),t)},xe.E=function(e,t,n){return ye(n,"days",t)[e.getDay()]},xe.M=function(e,t,n){return we(e.getMonth(),t,n,!1)},xe.L=function(e,t,n){return we(e.getMonth(),t,n,!0)},xe.y=function(e,t){var n=e.getFullYear();return 2===t&&(n%=100),L(n,t)},xe.h=function(e,t){return L(e.getHours()%12||12,t)},xe.H=function(e,t){return L(e.getHours(),t)},xe.k=function(e,t){return L(e.getHours()||24,t)},xe.K=function(e,t){return L(e.getHours()%12,t)},xe.m=function(e,t){return L(e.getMinutes(),t)},xe.s=function(e,t){return L(e.getSeconds(),t)},xe.S=function(e,t){var n=e.getMilliseconds();return 0!==n?L(String(n/1e3).split(".")[1].substr(0,t),t,!0):L("",t)},xe.a=function(e,t,n){return ye(n,"dayPeriods",t)[e.getHours()<12?"am":"pm"]},xe.z=function(e,t,n){return Se(e,n,{shortHours:t<4,optionalMinutes:t<4,separator:!0,localizedName:!0})},xe.Z=function(e,t,n){return Se(e,n,{separator:t>3,localizedName:4===t,zZeroOffset:5===t})},xe.x=function(e,t,n){return Se(e,n,{optionalMinutes:1===t,separator:3===t||5===t})},xe.X=function(e,t,n){return Se(e,n,{optionalMinutes:1===t,separator:3===t||5===t,zZeroOffset:!0})},xe.G=function(e,t,n){var r=e.getFullYear()>=0?1:0;return ye(n,"eras",t)[r]},xe.e=De,xe.c=function(e,t,n){return De(e,t,n,!0)},xe.q=function(e,t,n){return Ee(e,t,n,!0)},xe.Q=Ee;var _e=/([+|\-]\d{1,2})(:?)(\d{2})?/,Pe=/^\/Date\((.*?)\)\/$/,Ne=/[+-]\d*/,Me={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},Re=/\d+/,je=/^ */,Fe=/ *$/,Ae=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],Le=["G","g","F","Y","y","M","m","D","d","y","T","t"];function Ve(e,t,n){return!(e>=t&&e<=n)}function Be(e,t){for(var n=t.format,r=t.idx,o=0;n[r]===e;)o++,r++;return o>0&&(r-=1),t.idx=r,o}function ze(e,t){var n=e?Me[e]||new RegExp("^\\d{1,"+e+"}"):Re,r=t.value.substr(t.valueIdx,e).match(n);return r?(r=r[0],t.valueIdx+=r.length,parseInt(r,10)):null}function He(e,t,n){for(var r,o,i,a=0,s=e.length,l=0,u=0;a<s;a++)o=(r=e[a]).length,i=t.value.substr(t.valueIdx,o),n&&(i=i.toLowerCase()),i===r&&o>l&&(l=o,u=a);return l?(t.valueIdx+=l,u+1):null}function Ue(e){var t=!1;return e.value.charAt(e.valueIdx)===e.format[e.idx]&&(e.valueIdx++,t=!0),t}function Ke(e,t,n){var r=n.shortHours,o=n.noSeparator,i=n.optionalMinutes,a=n.localizedName,s=n.zLiteral;if(e.UTC=!0,s&&"Z"===e.value.charAt(e.valueIdx))return e.valueIdx++,!1;if(a&&!He(function(e){var t=e.gmtFormat,n=e.gmtZeroFormat;if(!t)throw m.NoGMTInfo.error();return[t.replace("{0}","").toLowerCase(),n.replace("{0}","").toLowerCase()]}(t.calendar),e,!0))return!0;var l=_e.exec(e.value.substr(e.valueIdx,6));if(!l)return!a;var u=l[1],c=l[3],d=parseInt(u,10),p=l[2],f=parseInt(c,10);return!!(isNaN(d)||!r&&3!==u.length||!i&&isNaN(f)||o&&p)||(isNaN(f)&&(f=null),!!(Ve(d,-12,13)||f&&Ve(f,0,59))||(e.valueIdx+=l[0].length,e.hoursOffset=d,void(e.minutesOffset=f)))}function We(e,t,n){var r=Be(e,t),o=ye(n,"months",r,"L"===e,!0),i=r<3?ze(2,t):He(o,t,!0);if(null===i||Ve(i,1,12))return!0;t.month=i-1}function qe(e,t,n){var r=Be(e,t),o=ye(n,"days",r,"c"===e,!0),i=r<3?ze(1,t):He(o,t,!0);if(!i&&0!==i||Ve(i,1,7))return!0}var Ye={};function Ge(e,t){return""+je.exec(t)[0]+e+Fe.exec(t)[0]}function Ze(e,t,n){for(var r=ve(t,n).split(""),o={format:r,idx:0,value:Ge(e,t),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},i=r.length,a=!1;o.idx<i;o.idx++){var s=r[o.idx];if(a)"'"===s&&(a=!1),Ue(o);else if(Ye[s]){if(Ye[s](o,n))return null}else if("'"===s)a=!0,Ue(o);else if(!Ue(o))return null}return o.valueIdx<e.length?null:function(e){var t,n=e.year,r=e.month,o=e.day,i=e.hours,a=e.minutes,s=e.seconds,l=e.milliseconds,u=e.pmHour,c=e.UTC,d=e.hoursOffset,p=e.minutesOffset,f=null!==i||null!==a||s||null,h=new Date;return null===n&&null===r&&null===o&&f?(n=h.getFullYear(),r=h.getMonth(),o=h.getDate()):(null===n&&(n=h.getFullYear()),null===o&&(o=1)),u&&i<12&&(i+=12),c?(d&&(i+=-d),p&&(a+=-p*(d<0?-1:1)),t=new Date(Date.UTC(n,r,o,i,a,s,l))):function(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}(t=new Date(n,r,o,i,a,s,l),i),n<100&&t.setFullYear(n),t.getDate()!==o&&void 0===c?null:t}(o)||null}function Xe(e){if(e&&0===e.indexOf("/D")){var t=Pe.exec(e);if(t){t=t[1];var n=Ne.exec(t.substring(1));return t=new Date(parseInt(t,10)),n&&(r=n[0],o="-"===r.substr(0,1)?-1:1,i=r.substring(1),n=o*(i=60*parseInt(i.substr(0,2),10)+parseInt(i.substring(2),10)),t=Te(t,t.getTimezoneOffset(),0),t=Te(t,0,-1*n)),t}}var r,o,i}function Qe(e,t,n){if(void 0===n&&(n="en"),!e)return null;if(ke(e))return e;var r=String(e).trim(),o=Xe(r);if(o)return o;for(var i=y(n),a=t||function(e){for(var t=[],n=e.patterns,r=Le.length,o=0;o<r;o++)t.push(n[Le[o]]);return t.concat(Ae)}(i.calendar),s=(a=Array.isArray(a)?a:[a]).length,l=0;l<s;l++)if(o=Ze(r,a[l],i))return o;return o}Ye.d=function(e){Be("d",e);var t=ze(2,e);if(null===t||Ve(t,1,31))return!0;null===e.day&&(e.day=t)},Ye.E=function(e,t){if(null===He(ye(t,"days",Be("E",e),!1,!0),e,!0))return!0},Ye.M=function(e,t){return We("M",e,t)},Ye.L=function(e,t){return We("L",e,t)},Ye.y=function(e){var t=Be("y",e),n=ze(1===t?void 0:t,e);if(null===n)return!0;if(2===t){var r=(new Date).getFullYear();(n=r-r%100+n)>2029&&(n-=100)}e.year=n},Ye.h=function(e){Be("h",e);var t=ze(2,e);if(12===t&&(t=0),null===t||Ve(t,0,11))return!0;e.hours=t},Ye.K=function(e){Be("K",e);var t=ze(2,e);if(null===t||Ve(t,0,11))return!0;e.hours=t},Ye.a=function(e,t){var n=ye(t,"dayPeriods",Be("a",e),!1,!0),r=He([n.pm],e,!0);if(!r&&!He([n.am],e,!0))return!0;e.pmHour=r},Ye.H=function(e){Be("H",e);var t=ze(2,e);if(null===t||Ve(t,0,23))return!0;e.hours=t},Ye.k=function(e){Be("k",e);var t=ze(2,e);if(null===t||Ve(t,1,24))return!0;e.hours=24===t?0:t},Ye.m=function(e){Be("m",e);var t=ze(2,e);if(null===t||Ve(t,0,59))return!0;e.minutes=t},Ye.s=function(e){Be("s",e);var t=ze(2,e);if(null===t||Ve(t,0,59))return!0;e.seconds=t},Ye.S=function(e){var t=Be("S",e),n=e.value.substr(e.valueIdx,t),r=null;if(isNaN(parseInt(n,10))||(r=V(r=parseFloat("0."+n,10),3),r*=1e3,e.valueIdx+=t),null===r||Ve(r,0,999))return!0;e.milliseconds=r},Ye.z=function(e,t){var n=Be("z",e)<4,r=Ke(e,t,{shortHours:n,optionalMinutes:n,localizedName:!0});if(r)return r},Ye.Z=function(e,t){var n=Be("Z",e),r=Ke(e,t,{noSeparator:n<4,zLiteral:5===n,localizedName:4===n});if(r)return r},Ye.x=function(e,t){var n=Be("x",e),r=Ke(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n});if(r)return r},Ye.X=function(e,t){var n=Be("X",e),r=Ke(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n,zLiteral:!0});if(r)return r},Ye.G=function(e,t){var n=ye(t,"eras",Be("G",e),!1,!0);if(null===He([n[0],n[1]],e,!0))return!0},Ye.e=function(e,t){return qe("e",e,t)},Ye.c=function(e,t){return qe("c",e,t)};function $e(e,t,n){if(t){if(ke(e))return Ie(e,t,n);if(te(e))return ee(e,t,n)}return null!=e?e:""}var Je=function(e){if(!e||0===e.length)return"";var t=e[0].timezone,n="Etc/UTC"===t,r=n?"Z":"";return(t&&!n?";TZID="+t:"")+":"+e.map((function(e){return Ie(e,"yyyyMMddTHHmmss")+r})).join(",")+" "},et=function(e,t){if(!t)return!1;var n=t.start,r=t.end;return e<n||e>r||0===e&&n<0},tt=function(e,t){return e-t},nt=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=parseInt(e[r],10);if(isNaN(o)||et(o,t))return[];n.push(o)}return n.sort(tt)},rt=["yyyyMMddTHHmmssSSSXXX","yyyyMMddTHHmmssXXX","yyyyMMddTHHmmss","yyyyMMddTHHmm","yyyyMMddTHH","yyyyMMdd"];function ot(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))}var it=function(e,t){var n=Qe(e)||Qe(e,rt);if(!n)return null;var r=t?ot(n):n;return o.ZonedDate.fromUTCDate(r,t||"Etc/UTC")},at={SU:o.Day.Sunday,MO:o.Day.Monday,TU:o.Day.Tuesday,WE:o.Day.Wednesday,TH:o.Day.Thursday,FR:o.Day.Friday,SA:o.Day.Saturday},st=function(e){return at[e]},lt=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],o=st(r.substring(r.length-2).toUpperCase());if(void 0===o)return[];t.push({offset:parseInt(r.substring(0,r.length-2),10)||0,day:o})}return t},ut=function(e,t,n){void 0===n&&(n=1),t=(t-e.getUTCDay()+7*n)%7,e.setUTCDate(e.getUTCDate()+t)},ct=function(e,t){return e+(e<t?7:0)},dt=function(e,t){return e-t},pt=function(e,t){var n=7-(ot(Object(o.firstDayOfMonth)(e)).getUTCDay()+7-(t||7))||7;return n<0&&(n+=7),Math.ceil((e.getUTCDate()-n)/7)+1},ft=function(e,t){var n=(e=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))).getUTCFullYear();void 0!==t?(ut(e,t,-1),e.setUTCDate(e.getUTCDate()+4)):e.setUTCDate(e.getUTCDate()+(4-(e.getUTCDay()||7)));var r=Math.floor((e.getTime()-Date.UTC(n,0,1,-6))/864e5);return 1+Math.floor(r/7)},ht=function(e,t,n){var r=t.offset;if(!r)return pt(e,n);var o=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+1,0)),i=pt(o,n),a=ct(t.day,n),s=a<ct(new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1)).getUTCDay(),n),l=a>ct(o.getUTCDay(),n);return r<0?r=i+(r+1-(l?1:0)):s&&(r+=1),i-=l?1:0,r<(s?1:0)||r>i?null:r},mt=function(e,t,n){return pt(e,n)===ht(e,t,n)},vt=function(e,t){return pt(new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+1,0)),t)},gt=[0,31,60,91,121,152,182,213,244,274,305,335,366],yt=[0,31,59,90,120,151,181,212,243,273,304,334,365],bt=function(e){return(e=e.getUTCFullYear())%4==0&&e%100!=0||e%400==0},kt=function(e){var t=e.getUTCMonth();return(bt(e)?gt[t]:yt[t])+e.getUTCDate()},Ct=[31,28,31,30,31,30,31,31,30,31,30,31],Ot=function(e){var t=e.getUTCMonth();return 1===t?1===new Date(Date.UTC(e.getUTCFullYear(),1,29)).getUTCMonth()?29:28:Ct[t]},wt=function(e,t,n){for(var r=e.length,o=[],i=0;i<r;i++){var a=e[i];if(n&&(a=n(a)),t===a)return null;t<a&&o.push(a)}return o},Et=function(e,t,n){var r=n.byMonth,o=wt(r,e.getUTCMonth()+1),i=!1;return null!==o&&(o.length?e.setUTCMonth(o[0]-1,1):e.setUTCFullYear(e.getUTCFullYear()+1,r[0]-1,1),i=!0),i},St=function(e,t,n){var r,o=!1;function i(e){return e<0&&(e=r+e+1),e}for(;e<=t;){var a=e.getUTCMonth();r=Ot(e);var s=wt(n.byMonthDay,e.getUTCDate(),i);if(null===s)return o;if(o=!0,s.length){if(e.setUTCMonth(a,s.sort(dt)[0]),a===e.getUTCMonth())break}else e.setUTCMonth(a+1,1)}return o},Dt=function(e,t,n){var r,o=!1;function i(e){return e<0&&(e=r+e),e}for(;e<t;){r=bt(e)?366:365;var a=wt(n.byYearDay,kt(e),i);if(null===a)return o;if(o=!0,r=e.getUTCFullYear(),a.length){e.setUTCFullYear(r,0,a.sort(dt)[0]);break}e.setUTCFullYear(r+1,0,1)}return o},xt=function(e,t,n){var r=n.weekStart||o.Day.Monday,i=!1;function a(e){return e<0&&(e=53+e),e}for(;e<t;){var s=wt(n.byWeekNumber,ft(e,r),a);if(null===s)return i;i=!0;var l=e.getUTCFullYear();if(s.length){var u=7*s.sort(dt)[0]-1;e.setUTCFullYear(l,0,u),ut(e,r,-1);break}e.setUTCFullYear(l+1,0,1)}return i},It=function(e,t,n){var r=n.byWeekDay,i=n.weekStart||o.Day.Monday,a=function(e,t,n){for(var r,o,i,a,s=ct(t.getUTCDay(),n),l=e.length,u=[],c=0;c<l;c++)if(o=e[c],a=pt(t,n),null!==(r=ht(t,o,n)))if(a<r)u.push(o);else if(a===r)if(s<(i=ct(o.day,n)))u.push(o);else if(s===i)return null;return u}(r,e,i);if(null===a)return!1;a[0]||(a=r,ut(e,i));var s=a.map((function(n){var r=Object(o.cloneDate)(e),a=n.day;if(n.offset)for(;r<=t&&!mt(r,n,i);)pt(r,i)===vt(r,i)?r.setUTCMonth(r.getUTCMonth()+1,1):(r.setUTCDate(r.getUTCDate()+7),ut(r,i,-1));return r.getUTCDay()!==a&&ut(r,a),r})).sort((function(e,t){return e.getTime()-t.getTime()}))[0];return s&&e.setTime(s),!0},Tt=function(e,t,n){var r=n.byHour,o=!1,i=n._startTime,a=i.getUTCHours(),s=wt(r,a);return null!==s&&(o=!0,e.setUTCHours(a),s.length?(s=s[0],e.setUTCHours(s)):(s=e.getUTCHours(),e.setUTCDate(e.getUTCDate()+1),s=r[0],e.setUTCHours(s)),n.byMinute&&e.setUTCMinutes(0),i.setUTCHours(s,e.getUTCMinutes())),o},_t=function(e,t,n){var r=n.byMinute,o=e.getUTCMinutes(),i=wt(r,o),a=n._startTime.getUTCHours(),s=!1;return null!==i&&(s=!0,i.length?i=i[0]:(a+=1,i=r[0]),n.bySecond&&e.setUTCSeconds(0),e.setUTCHours(a,i),a%=24,n._startTime.setUTCHours(a,i,e.getUTCSeconds())),s},Pt=function(e,t,n){var r=n.bySecond,o=wt(r,e.getUTCSeconds()),i=n._startTime.getUTCHours(),a=e.getUTCMinutes(),s=!1;return null!==o&&(s=!0,o.length?e.setUTCSeconds(o[0]):(a+=1,e.setUTCMinutes(a,r[0]),a>59&&(a%=60,i=(i+1)%24)),n._startTime.setUTCHours(i,a,e.getUTCSeconds())),s},Nt=["byMonth","byWeekNumber","byYearDay","byMonthDay","byWeekDay","byHour","byMinute","bySecond"],Mt=Nt.length,Rt=function(e,t){var n;return 0!==e&&e<t?n=t-e:(n=e%t)&&(n=t-n),n},jt=function(){function e(){}return e.prototype.next=function(e,t){var n,r,o=t._startTime;if(t.bySecond)r=e.getUTCSeconds()+1,e.setUTCSeconds(r),o.setUTCSeconds(r);else{if(!t.byMinute)return!1;n=e.getUTCMinutes()+1,e.setUTCMinutes(n),o.setUTCMinutes(n)}return!0},e.prototype.normalize=function(e){var t=e.rule;4===e.idx&&t.byHour&&(t._startTime.setUTCHours(0),this._hour(e.date,t))},e.prototype.limit=function(e,t,n){for(var o,i=n.interval||1;e<=t;){var a=void 0,s=void 0,l=e.getUTCDate();for(o=0;o<Mt;o++){var u=Nt[o];if(n[u]){if(a=r[u](e,t,n),void 0!==s&&a)break;s=a}a&&this.normalize({date:e,rule:n,day:l,idx:o})}if((1===i||!this.interval(n,e))&&o===Mt)break}},e.prototype.interval=function(e,t){var n,r,i=e._startPeriod.toUTCDate(),a=t.getUTCHours(),l=e.weekStart,u=e.interval,c=e.freq,d=new Date(t),p=!1,f=0,h=0,m=1;if("hourly"===c)r=e._startTime.getUTCHours(),d=d.getTime(),a!==r&&(d+=(r-a)*o.MS_PER_HOUR),d-=i.getTime(),n=Math.floor(d/o.MS_PER_HOUR),0!==(f=Rt(n,u))&&(this._hour(t,e,f),p=!0);else if("daily"===c)!function(e,t){e.setTime(e.getTime()+t)}(d,-i),n=Math.round(d/o.MS_PER_DAY),0!==(f=Rt(n,u))&&(this._date(t,e,f),p=!0);else if("weekly"===c){f=this.getNumberOfWeeksBetweenDates(i,t),ct(t.getUTCDay(),l)<ct(i.getUTCDay(),l)&&(f+=1),0!==(f=Rt(f,u))&&(ut(t,e.weekStart,-1),t.setUTCDate(t.getUTCDate()+7*f),p=!0)}else"monthly"===c?(n=t.getUTCFullYear()-i.getUTCFullYear(),n=t.getUTCMonth()-i.getUTCMonth()+12*n,0!==(f=Rt(n,u))&&(m=s(e)?1:t.getDate(),t.setUTCFullYear(t.getUTCFullYear(),t.getUTCMonth()+f,m),p=!0)):"yearly"===c&&(n=t.getUTCFullYear()-i.getUTCFullYear(),f=Rt(n,u),e.byMonth||(h=t.getUTCMonth()),e.byYearDay||e.byMonthDay||e.byWeekDay||(m=t.getUTCDate()),0!==f&&(t.setUTCFullYear(t.getUTCFullYear()+f,h,m),p=!0));return p},e.prototype._hour=function(e,t,n){var r=t._startTime,o=r.getUTCHours();n&&(o+=n),e.setUTCHours(o),o%=24,r.setUTCHours(o)},e.prototype._date=function(e,t,n){e.setUTCDate(e.getUTCDate()+n)},e.prototype.getNumberOfWeeksBetweenDates=function(e,t){var n=(t.getTime()-e.getTime())/6048e5,r=Math.floor(n);return n-r>.99&&(r=Math.round(n)),r},e}(),Ft=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.b(t,e),t.prototype.next=function(e,t){return jt.prototype.next.call(this,e,t)||this._hour(e,t,1),!1},t.prototype.normalize=function(e){var t=e.rule;4===e.idx&&(t._startTime.setUTCHours(0),this._hour(e.date,t))},t}(jt),At=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.b(t,e),t.prototype.next=function(e,t){return jt.prototype.next.call(this,e,t)||this[t.byHour?"_hour":"_date"](e,t,1),!1},t}(jt),Lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.b(t,e),t.prototype.setup=function(e,t){e.byWeekDay||(e.byWeekDay=[{day:t.getUTCDay(),offset:0}])},t}(At),Vt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.b(t,e),t.prototype.next=function(e,t){var n;if(!jt.prototype.next.call(this,e,t))if(t.byHour)this._hour(e,t,1);else if(t.byMonthDay||t.byWeekDay||t.byYearDay||t.byWeekNumber)this._date(e,t,1);else{for(n=e.getUTCDate(),e.setUTCMonth(e.getUTCMonth()+1);e.getUTCDate()!==n;)e.setUTCDate(n);this._hour(e,t)}return!1},t.prototype.normalize=function(t){var n=t.rule,r=t.date;0!==t.idx||n.byMonthDay||n.byWeekDay?e.prototype.normalize.call(this,t):r.setUTCDate(t.day)},t.prototype.setup=function(e,t,n){e.byMonthDay||e.byWeekDay||n.setUTCDate(t.getUTCDate())},t}(jt),Bt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.b(t,e),t.prototype.next=function(e,t){var n;if(!jt.prototype.next.call(this,e,t))if(t.byHour)this._hour(e,t,1);else if(t.byMonthDay||t.byWeekDay||t.byYearDay||t.byWeekNumber)this._date(e,t,1);else if(t.byMonth){for(n=e.getUTCDate(),e.setUTCMonth(e.getUTCMonth()+1);e.getUTCDate()!==n;)e.setUTCDate(n);this._hour(e,t)}else e.setUTCFullYear(e.getUTCFullYear()+1),this._hour(e,t);return!1},t.prototype.setup=function(){},t}(Vt),zt={hourly:new Ft,daily:new At,weekly:new Lt,monthly:new Vt,yearly:new Bt},Ht=function(e){return o.ZonedDate.fromLocalDate(e.toLocalDate(),e.timezone)},Ut=function(e){return e.getHours()*o.MS_PER_HOUR+e.getMinutes()*o.MS_PER_MINUTE+1e3*e.getSeconds()+e.getMilliseconds()},Kt=function(e,t){if(!e)return!1;for(var n=t.getTime()-t.getMilliseconds(),r=e.length,o=0;o<r;o++)if(e[o].getTime()===n)return!0;return!1},Wt=function(e,t){var n=e.toUTCDate();switch(t.freq){case"yearly":n.setUTCFullYear(n.getUTCFullYear(),11,31);break;case"monthly":n.setUTCFullYear(n.getUTCFullYear(),n.getUTCMonth()+1,0);break;case"weekly":ut(n,t.weekStart,-1),n.setUTCDate(n.getUTCDate()+6)}return t.byHour&&n.setUTCHours(23),t.byMinute&&n.setUTCMinutes(59),t.bySecond&&n.setUTCSeconds(59),o.ZonedDate.fromUTCDate(n,e.timezone)},qt=function(e,t,n){for(var r,o=e.length,i=[],a=0,s=n.length;a<s;a++){(r=n[a])<0?r=o+r:r-=1;var l=e[r];l&&l.start>=t&&i.push(l)}return i},Yt=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];o&&!Kt(t,o.start)&&n.push(o)}return n};function Gt(e,t){var n=t.rangeStart,r=t.rangeEnd;if(!e)return{success:!0,errorMessage:"",events:[]};var i,a=e.freq,s=zt[a],l=e.start,u=function(e,t){return t.getTime()-e.getTime()}(e.start,e.end);if(e.start.getTime()>e.end.getTime())return{success:!1,errorMessage:"Invalid recurrence rule: Start date ("+e.start+")is greater than End date "+e.start,events:[]};if(!s)return{success:!1,errorMessage:'Invalid recurrence frequency "'+a+'"',events:[]};var c=[],d=e.bySetPosition,p=d?0:1,f=e.exceptionDates,h=n.toTimezone(l.timezone),m=h,v=r.toTimezone(l.timezone),g=e.count;e.until&&e.until.getTime()<v.getTime()&&(v=e.until.clone());var y=h.getHours(),b=h.getMinutes(),k=h.getSeconds(),C="yearly"===a||"monthly"===a||"weekly"===a;if(h.getTime()<l.getTime()||g||e.interval>1||C)h=l.clone();else{e.byHour||(y=l.getHours()),e.byMinute||(b=l.getMinutes()),e.bySecond||(k=l.getSeconds());var O=h.toUTCDate();O.setUTCHours(y,b,k,l.getMilliseconds()),h=o.ZonedDate.fromUTCDate(O,h.timezone)}if(e._startPeriod=h.clone(),d){if(h=function(e,t){var n=e.toUTCDate();switch(t.freq){case"yearly":n.setUTCFullYear(n.getFullYear(),0,1);break;case"monthly":n.setUTCFullYear(n.getFullYear(),n.getMonth(),1);break;case"weekly":ut(n,t.weekStart,-1)}return t.byHour&&n.setUTCHours(0),t.byMinute&&n.setUTCMinutes(0),t.bySecond&&n.setUTCSeconds(0),o.ZonedDate.fromUTCDate(n,e.timezone)}(h,e),v=Wt(v,e),Ut(v)-Ut(h)<0){var w=v.toUTCDate();w.setUTCHours(h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()),v=o.ZonedDate.fromUTCDate(w,v.timezone)}e._startPeriod=h.clone(),i=Wt(h,e)}var E=Ut(h);e._startTime=new Date(E);var S=h.toUTCDate();for(s.setup&&(s.setup(e,l,S),h=o.ZonedDate.fromUTCDate(S,h.timezone)),S=h.toUTCDate(),s.limit(S,v.toUTCDate(),e),h=o.ZonedDate.fromUTCDate(S,h.timezone);h<=v;){var D=h.addTime(u);if(((h>=m||D>m)&&!Kt(f,h)||d)&&(c.push({start:Ht(h),end:Ht(D)}),"hourly"!==a&&"minutely"!==a&&"secondly"!==a||(E=Ut(Ht(h)),e._startTime=new Date(E))),d){if(S=h.toUTCDate(),s.next(S,e),s.limit(S,v.toUTCDate(),e),(h=o.ZonedDate.fromUTCDate(S,h.timezone))>i){var x=qt(c.slice(p),l,d);x=Yt(x,f),c=c.slice(0,p).concat(x),i=Wt(h,e),p=c.length}if(g&&g===p)break}else{if(g&&g===p)break;p+=1,S=h.toUTCDate(),s.next(S,e),s.limit(S,v.toUTCDate(),e),h=o.ZonedDate.fromUTCDate(S,h.timezone)}}return{success:!0,errorMessage:"",events:c}}var Zt=function(e,t){return e+(e<t?7:0)},Xt=function(e){var t=e.byWeekDay,n=e.weekStart;t&&t.sort(function(e){return function(t,n){return Zt(t.day,e)-Zt(n.day,e)}}(n))},Qt=function(e){if(!e)return null;var t,n,r,o,i=e.recurrenceRule,a=e.weekStart,c=void 0===a?0:a,d={},p=0;if(!i)return null;var f=i.split("\n");for(f[1]||-1===i.indexOf("DTSTART")&&-1===i.indexOf("DTEND")&&-1===i.indexOf("EXDATE")||(f=i.split(" ")),p=0,r=f.length;p<r;p++){var h=(f[p]||"").trim();-1!==h.indexOf("DTSTART")?d.start=u(h):-1!==h.indexOf("DTEND")?d.end=u(h):-1!==h.indexOf("EXDATE")?d.exceptionDates=l(h):-1!==h.indexOf("RRULE")?o=h.substring(6):h.trim()&&(o=h)}for(p=0,r=(o=o.split(";")).length;p<r;p++)switch(n=((t=o[p].split("="))[1]||"").trim().split(","),t[0].trim().toUpperCase()){case"FREQ":d.freq=n[0].toLowerCase();break;case"UNTIL":d.until=it(n[0]);break;case"COUNT":d.count=parseInt(n[0],10);break;case"INTERVAL":d.interval=parseInt(n[0],10);break;case"BYSECOND":d.bySecond=nt(n,{start:0,end:60});break;case"BYMINUTE":d.byMinute=nt(n,{start:0,end:59});break;case"BYHOUR":d.byHour=nt(n,{start:0,end:23});break;case"BYMONTHDAY":d.byMonthDay=nt(n,{start:-31,end:31});break;case"BYYEARDAY":d.byYearDay=nt(n,{start:-366,end:366});break;case"BYMONTH":d.byMonth=nt(n,{start:1,end:12});break;case"BYDAY":d.byWeekDay=lt(n);break;case"BYWEEKNO":d.byWeekNumber=nt(n,{start:-53,end:53});break;case"BYSETPOS":d.bySetPosition=nt(n,{start:-366,end:366});break;case"WKST":d.weekStart=st(n[0])}return void 0===d.freq||void 0!==d.count&&d.until?null:(void 0===d.weekStart&&(d.weekStart=c),d.interval||(d.interval=1),d.bySetPosition&&!s(d)&&(d.bySetPosition=[]),Xt(d),d)},$t={0:"SU",1:"MO",2:"TU",3:"WE",4:"TH",5:"FR",6:"SA"},Jt=function(e,t){if(!e||!e.freq)return null;var n=e.weekStart,r="FREQ="+e.freq.toUpperCase(),o="",i="",a="",s=e.until;return e.interval>1&&(r+=";INTERVAL="+e.interval),e.count&&(r+=";COUNT="+e.count),s&&(r+=";UNTIL="+$e(s.toTimezone("Etc/UTC"),"yyyyMMddTHHmmss")+"Z"),e.byMonth&&(r+=";BYMONTH="+e.byMonth),e.byWeekNumber&&(r+=";BYWEEKNO="+e.byWeekNumber),e.byYearDay&&(r+=";BYYEARDAY="+e.byYearDay),e.byMonthDay&&(r+=";BYMONTHDAY="+e.byMonthDay),e.byWeekDay&&(r+=";BYDAY="+function(e){for(var t,n=e.length,r=[],o=0;o<n;o++){var i=e[o];"string"==typeof i?t=i:(t=""+$t[i.day],i.offset&&(t=i.offset+t)),r.push(t)}return r.toString()}(e.byWeekDay)),e.byHour&&(r+=";BYHOUR="+e.byHour),e.byMinute&&(r+=";BYMINUTE="+e.byMinute),e.bySecond&&(r+=";BYSECOND="+e.bySecond),e.bySetPosition&&(r+=";BYSETPOS="+e.bySetPosition),void 0!==n&&(r+=";WKST="+$t[n]),e.start&&(i="DTSTART"+Je([e.start])),e.end&&(a="DTEND"+Je([e.end])),e.exceptionDates&&(o="EXDATE"+Je(e.exceptionDates)),(i||a||o)&&(r=i+a+o+"RRULE:"+r),r}},function(e,t,n){"use strict";n.r(t),n.d(t,"getValueMap",(function(){return un})),n.d(t,"getMultiSelectTreeValue",(function(){return cn})),n.d(t,"AutoComplete",(function(){return se})),n.d(t,"AutoCompletePropsContext",(function(){return ae})),n.d(t,"DropDownList",(function(){return q})),n.d(t,"DropDownListPropsContext",(function(){return W})),n.d(t,"ComboBox",(function(){return ne})),n.d(t,"ComboBoxPropsContext",(function(){return te})),n.d(t,"MultiSelect",(function(){return ke})),n.d(t,"MultiSelectPropsContext",(function(){return be})),n.d(t,"MultiColumnComboBox",(function(){return De})),n.d(t,"MultiColumnComboBoxPropsContext",(function(){return Se})),n.d(t,"DropDownTree",(function(){return Xt})),n.d(t,"DropDownTreePropsContext",(function(){return Zt})),n.d(t,"MultiSelectTree",(function(){return sn})),n.d(t,"MultiSelectTreePropsContext",(function(){return an}));var r,o,i=n(0),a=n(1),s=n(2),l=n(6),u=n(9),c=(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(){return(d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.width,r=e.dir,o=e.itemsCount,a=e.popupSettings;return i.createElement(u.a,d({style:{width:n,direction:r},contentKey:o&&o.join()},a),t)},t}(i.Component),f=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.render=function(){var e=this;return i.createElement("span",{className:"k-list-filter"},i.createElement("input",{ref:function(t){return e.input=t},value:this.props.value||"",className:"k-textbox",onChange:this.props.onChange,onKeyDown:this.props.onKeyDown}),i.createElement("span",{className:"k-icon k-i-search"}))},t}(i.Component),m=function(e){return null!=e},v=function(e,t,n){if(!m(e))return!1;var r=String(e);return n&&(r=r.toLowerCase()),0===r.indexOf(t)},g=function(e,t,n){var r=-1;if(t){t=t.toLowerCase();for(var o=0;o<e.length;o++){var i=(b(e[o],n)||"")+"";if(i&&i.toLowerCase().startsWith(t)){r=o;break}}}return r},y=function(e,t,n,r){void 0===r&&(r=!1);var o=function(e){return r?e:e.toLowerCase()};return e.findIndex((function(e){return n?o(b(e,n))===o(t):o(t)===o(e.toString())}))},b=function(e,t){if(t&&m(e)){var n=t.split("."),r=e;return n.forEach((function(e){r=r?r[e]:void 0})),r}return e},k=function(e,t,n){t.forEach((function(t){var r=e.findIndex((function(e){return C(e,t,n)}));-1!==r&&e.splice(r,1)}))},C=function(e,t,n){return e===t||m(e)===m(t)&&b(e,n)===b(t,n)},O=function(e,t,n){if(t){var r=y(e,t,n,!0);return-1!==r?e[r]:e[g(e,t,n)]}return e[0]},w=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()},E=function(e,t,n){return!!e==!!t&&e.text===t.text&&(e===t||function(e,t,n){if(void 0===e&&(e=[]),void 0===t&&(t=[]),e===t)return!0;if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!C(e[r],t[r],n))return!1;return!0}(e.data,t.data,n))},S=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D=function(e){return e.preventDefault()},x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.defaultItem,r=e.textField;return i.createElement("div",{onClick:this.props.onClick,onMouseDown:D,className:Object(s.classNames)("k-list-optionlabel",{"k-state-selected":t})},b(n,r)||"")},t}(i.Component),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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),T=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){return t.props.onClick(t.props.index,e)},t}return I(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.group,r=e.dataItem,o=e.render,a=i.createElement("li",{id:this.props.id,role:"option","aria-selected":t,className:Object(s.classNames)("k-item",{"k-state-selected":t,"k-state-focused":this.props.focused,"k-first":Boolean(n)}),onClick:this.handleClick},b(r,this.props.textField).toString(),void 0!==n?i.createElement("div",{className:"k-group"},n):null);return void 0!==o?o.call(void 0,a,this.props):a},t}(i.Component),_=n(4),P="dropdowns.nodata",N="dropdowns.clear",M=((o={})[N]="clear",o[P]="NO DATA FOUND.",o),R=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return R(t,e),t.prototype.renderItems=function(){var e=this,t=this.props,n=t.textField,r=t.valueField,o=t.groupField,a=t.optionsGuid,s=t.skip,l=void 0===s?0:s,u=t.focusedIndex,c=t.highlightSelected,d=void 0===c||c,p=t.value,f=t.data,h=t.itemRender,m=Array.isArray(p);return f.map((function(t,s){var c,v,g=l+s,y=d&&(!m&&C(t,p,r)||m&&-1!==p.findIndex((function(e){return C(e,t,r)}))),k=void 0;return s>0&&void 0!==o&&(c=b(t,o),v=b(f[s-1],o),c&&v&&c!==v&&(k=c)),i.createElement(T,{id:"option-"+a+"-"+g,dataItem:t,selected:y,focused:u===s,index:g,key:g,onClick:e.props.onClick,textField:n,group:k,render:h})}))},t.prototype.renderNoValueElement=function(e){var t=this.props.noDataRender,n=i.createElement("div",{className:"k-nodata"},i.createElement("div",null,e.toLanguageString(P,M[P])));return t?t.call(void 0,n):n},t.prototype.render=function(){var e=Object(_.provideLocalizationService)(this),t=this.props,n=t.id,r=t.show,o=t.wrapperCssClass,a=t.wrapperStyle,s=t.listStyle,l=t.listRef,u=t.wrapperRef,c=t.listClassName,d=void 0===c?"k-list":c,p=this.renderItems();return p.length?i.createElement("div",{className:o,style:a,ref:u,onMouseDown:this.props.onMouseDown,onBlur:this.props.onBlur,onScroll:this.props.onScroll,unselectable:"on"},i.createElement("ul",{id:n,role:"listbox","aria-hidden":!r||void 0,className:d+" k-reset",ref:l,style:s},p)):this.renderNoValueElement(e)},t}(i.Component),F=j;Object(_.registerForLocalization)(j);var A=function(){function e(){var e=this;this.containerHeight=0,this.skip=0,this.total=0,this.enabled=!1,this.pageSize=0,this.itemHeight=0,this.prevScrollPos=0,this.listTranslate=0,this.scrollSyncing=!1,this.scrollerRef=function(t){var n=e;n.container=t,t&&(t.setAttribute("unselectable","on"),window.setTimeout(n.calcScrollElementHeight.bind(n),0))},this.calcScrollElementHeight=function(){e.scrollSyncing=!0;var t=!1;e.itemHeight=e.list?e.list.children[0].offsetHeight:e.itemHeight,e.containerHeight=Math.min(1533915,e.itemHeight*e.total);var n=e.containerHeight;return e.scrollElement&&(t=e.scrollElement.style.height!==n+"px")&&(e.scrollElement.style.height=n+"px"),e.scrollSyncing=!1,t},this.scrollHandler=this.scrollHandler.bind(this)}return Object.defineProperty(e.prototype,"translate",{get:function(){return this.listTranslate},enumerable:!0,configurable:!0}),e.prototype.changePage=function(e,t){var n=Math.min(Math.max(0,e),this.total-this.pageSize);n!==this.skip&&this.PageChange({skip:n,take:this.pageSize},t)},e.prototype.translateTo=function(e){this.listTranslate=e,this.list&&(this.list.style.transform="translateY("+e+"px)")},e.prototype.reset=function(){this.container&&(this.calcScrollElementHeight(),this.container.scrollTop=0,this.translateTo(0))},e.prototype.scrollToEnd=function(){this.container&&this.list&&(this.calcScrollElementHeight(),this.container.scrollTop=this.container.scrollHeight-this.container.offsetHeight,this.translateTo(this.container.scrollHeight-this.list.offsetHeight))},e.prototype.localScrollUp=function(e){var t,n=this.itemHeight,r=this.container.scrollTop,o=this.listTranslate,i=r-o;if(!(i>n)){for(t=0;t<this.skip&&!(o+n+i<=r);t++)o-=n;if(o=this.validateTranslate(o),this.skip-t<=0&&o>=r)return this.translateTo(0),this.changePage(0,e),void(this.container.scrollTop=0);o!==this.listTranslate&&(this.translateTo(o),this.changePage(this.skip-t,e))}},e.prototype.localScrollDown=function(e){var t,n=this.itemHeight,r=this.container.scrollTop,o=this.listTranslate,i=this.list.children.length;for(t=0;t<i&&!(o+n>=r);t++)o+=n;o=this.validateTranslate(o),t>=i&&this.skip+t>=this.total?(this.translateTo(o),this.changePage(this.total-1,e)):o!==this.listTranslate&&(this.translateTo(o),this.changePage(this.skip+t,e))},e.prototype.scrollNonStrict=function(e){var t=this.total*this.prevScrollPos/this.containerHeight,n=Math.min(Math.floor(t),this.total-1),r=this.containerHeight*t/this.total;r=this.validateTranslate(r),this.translateTo(r),this.changePage(n,e)},e.prototype.scrollHandler=function(e){var t=this.container?this.container.scrollTop:0,n=this.prevScrollPos;this.prevScrollPos=t,this.enabled&&this.list&&this.container&&!this.scrollSyncing&&(t-n<=0&&t>this.listTranslate-this.list.scrollHeight/10?this.localScrollUp(e):t-n>0&&t<this.listTranslate+2*this.list.scrollHeight/3?this.localScrollDown(e):this.scrollNonStrict(e))},e.prototype.validateTranslate=function(e){return e=Math.max(0,e),e=Math.min(this.containerHeight-this.list.offsetHeight,e)},e}(),L=function(){function e(){}return e.prototype.navigate=function(e){var t=e.keyCode;return t===s.Keys.up||t===s.Keys.left?this.next({current:e.current,min:e.min,max:e.max,step:-1}):t===s.Keys.down||t===s.Keys.right?this.next({current:e.current,min:e.min,max:e.max,step:1}):t===s.Keys.home?0:t===s.Keys.end?e.max:void 0},e.prototype.next=function(e){return m(e.current)?Math.min(e.max,Math.max(e.current+e.step,e.min)):e.min},e}(),V=function(){return(V=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},B=function(){function e(e){var t=this;this.vs=new A,this.navigation=new L,this.handleItemClick=function(e,n){var r=t.initState();r.syntheticEvent=n,t.component.handleItemSelect(e,r),t.togglePopup(r),t.applyState(r)},this.handleFocus=function(e){if(!t.component.state.focused){var n=t.initState();n.data.focused=!0,n.events.push({type:"onFocus"}),n.syntheticEvent=e,t.applyState(n)}},this.filterChanged=function(e,n){var r=t.component.props,o=r.textField;r.filterable&&n.events.push({type:"onFilterChange",filter:{field:o,operator:"contains",ignoreCase:!0,value:e}})},this.togglePopup=function(e){var n=t.component.props,r=void 0!==n.opened?n.opened:t.component.state.opened;void 0===n.opened&&(e.data.opened=!r),r?e.events.push({type:"onClose"}):(e.events.push({type:"onOpen"}),t.calculatePopupWidth())},this.pageChange=function(e,n){var r=t.initState();r.syntheticEvent=n,t.triggerOnPageChange(r,e.skip,e.take),t.applyState(r)},this.scrollToVirtualItem=function(e,n){var r=t.vs;if(r.enabled=!1,0===e.skip)r.reset();else if(e.skip+e.pageSize===e.total)r.scrollToEnd();else{var o=r.translate;0===o&&(r.calcScrollElementHeight(),o=r.itemHeight*e.skip,r.translateTo(o-r.itemHeight)),r.container&&(r.container.scrollTop=o),t.scrollToItem(n,!0)}window.setTimeout((function(){return r.enabled=!0}),10)},this.renderScrollWrapper=function(e,n){var r=t.getPopupSettings(),o=t.vs;return o.enabled?i.createElement("div",{onScroll:function(e){o.scrollHandler(e),n&&n.call(void 0,e)},ref:o.scrollerRef,style:{height:r.height,overflowY:"scroll"}},e):e},this.renderScrollElement=function(){var e=t.vs;return e.enabled&&i.createElement("div",{ref:function(t){return e.scrollElement=t},key:"scrollElementKey"})},this.listBoxId=Object(s.guid)(),this.guid=Object(s.guid)(),this.component=e,this.vs.PageChange=this.pageChange}return e.prototype.didMount=function(){var e=this.component.props,t=e.popupSettings||{},n=e.style||{},r=t.width,o=!0===e.opened;void 0===r&&this.calculatePopupWidth(),void 0===e.dir&&void 0===n.direction&&(this.calculateDir(),o=!0),o&&this.component.forceUpdate()},e.prototype.calculateDir=function(){var e=this.component.element;e&&e.ownerDocument&&e.ownerDocument.defaultView&&(this.dirCalculated=e.ownerDocument.defaultView.getComputedStyle(e).direction||void 0)},e.prototype.calculatePopupWidth=function(){this.wrapper&&(this.popupWidth=this.wrapper.offsetWidth+"px")},e.prototype.scrollToItem=function(e,t){var n=this.list||this.vs.list;if(n&&e>=0){var r=this.vs,o=r.container||n.parentNode,i=void 0!==t?t:r.enabled;!function(e,t,n,r,o){var i=e.offsetHeight,a=t.children.item(n),s=a.offsetTop+(o?r-e.scrollTop:0),l=a.offsetHeight;if(o){var u=0;s+l>i?u=s+l-i:s<0&&(u=s),0!==u?e.scrollTop+=u:0===e.scrollTop&&0!==r&&(e.scrollTop=r)}else s+l>i+e.scrollTop?e.scrollTop=s+l-i:s<e.scrollTop&&(e.scrollTop-=e.scrollTop-s)}(o,n,e,r.translate,i)}},e.prototype.initState=function(){return{data:{},events:[],syntheticEvent:void 0}},e.prototype.applyState=function(e){var t=this;Object.keys(e.data).length>0&&this.component.setState(e.data);var n={syntheticEvent:e.syntheticEvent,nativeEvent:e.syntheticEvent?e.syntheticEvent.nativeEvent:void 0,target:this.component,value:this.component.value};e.events.forEach((function(e){var r=e.type;delete e.type;var o=r&&t.component.props[r];o&&o.call(void 0,V({},n,e))}))},e.prototype.triggerOnPageChange=function(e,t,n){var r=this.component.props.virtual;if(r){var o=Math.min(Math.max(0,t),Math.max(0,r.total-n));o!==r.skip&&e.events.push({type:"onPageChange",page:{skip:o,take:n}})}},e.prototype.triggerPageChangeCornerItems=function(e,t){var n=this.component.props,r=n.data,o=void 0===r?[]:r,i=n.dataItemKey,a=n.virtual,s=void 0!==n.opened?n.opened:this.component.state.opened;e&&a&&this.vs.enabled&&(a.skip>0&&C(e,o[0],i)?this.triggerOnPageChange(t,a.skip-1,a.pageSize):!s&&a.skip+a.pageSize<a.total&&C(e,o[o.length-1],i)&&this.triggerOnPageChange(t,a.skip+1,a.pageSize))},e.prototype.getPopupSettings=function(){return Object.assign({},e.defaultProps.popupSettings,this.component.props.popupSettings)},e.basicPropTypes={opened:a.bool,disabled:a.bool,dir:a.string,tabIndex:a.number,accessKey:a.string,data:a.array,textField:a.string,className:a.string,label:a.string,loading:a.bool,popupSettings:a.shape({animate:a.oneOfType([a.bool,a.shape({openDuration:a.number,closeDuration:a.number})]),popupClass:a.string,className:a.string,appendTo:a.any,width:a.oneOfType([a.string,a.number]),height:a.oneOfType([a.string,a.number])}),onOpen:a.func,onClose:a.func,onFocus:a.func,onBlur:a.func,onChange:a.func,itemRender:a.func,listNoDataRender:a.func,focusedItemIndex:a.func,header:a.node,footer:a.node},e.propTypes=V({},e.basicPropTypes,{value:a.any,defaultValue:a.any,filterable:a.bool,filter:a.string,virtual:a.shape({pageSize:a.number.isRequired,skip:a.number.isRequired,total:a.number.isRequired}),onFilterChange:a.func,onPageChange:a.func}),e.defaultProps={popupSettings:{height:"200px"},required:!1,validityStyles:!0},e}(),z={name:"@progress/kendo-react-dropdowns",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639493676,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"},H=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),U=function(){return(U=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},K=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.base=new B(n),n.searchState={word:"",last:""},n._skipFocusEvent=!1,n._filterInput=null,n._navigated=!1,n.focus=function(){n.base.wrapper&&n.base.wrapper.focus()},n.handleItemSelect=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.virtual,s=r.dataItemKey,l=r.defaultItem,u=a?a.skip:0,c=-1===e&&void 0!==l?l:i[e-u],d=!C(c,n.value,s);n.triggerOnChange(c,t),d&&n.base.triggerPageChangeCornerItems(c,t)},n.renderDropDownWrapper=function(){var e=n.props,t=e.dataItemKey,r=e.data,o=void 0===r?[]:r,a=e.textField,l=e.disabled,u=e.tabIndex,c=e.loading,d=e.iconClassName,p=e.virtual,f=void 0===p?{skip:0}:p,h=e.valueRender,m=n.state.focused,v=void 0!==n.props.opened?n.props.opened:n.state.opened,g=n.value,y=o.findIndex((function(e){return C(e,g,t)})),k=b(g,a),O=i.createElement("span",{className:"k-input"},k),w=void 0!==h?h.call(void 0,O,g):O;return i.createElement("span",{ref:function(e){return n.base.wrapper=e},role:"listbox",tabIndex:Object(s.getTabIndex)(u,l),accessKey:n.props.accessKey,className:Object(s.classNames)("k-dropdown-wrap",{"k-state-focused":m,"k-state-disabled":l}),onKeyDown:n.handleKeyDown,onKeyPress:n.handleKeyPress,onClick:l?void 0:n.handleWrapperClick,"aria-disabled":l||void 0,"aria-haspopup":!0,"aria-expanded":v||!1,"aria-owns":n.base.listBoxId,"aria-activedescendant":v?"option-"+n.base.guid+"-"+(y+f.skip):void 0,"aria-label":n.props.label,"aria-labelledby":n.props.ariaLabelledBy,"aria-describedby":n.props.ariaDescribedBy,id:n.props.id,title:n.props.title},w,i.createElement("span",{className:"k-select"},i.createElement("span",{className:Object(s.classNames)("k-icon",d,{"k-i-arrow-s":!c&&!d,"k-i-loading":c&&!d})})),n.dummySelect(g))},n.dummySelect=function(e){return i.createElement("select",{name:n.props.name,ref:function(e){n._select=e},tabIndex:-1,"aria-hidden":!0,title:n.props.label,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},i.createElement("option",{value:n.props.valueMap?n.props.valueMap.call(void 0,e):e}))},n.renderListContainer=function(){var e=n.props,t=e.header,r=e.footer,o=e.dir,a=e.data,l=void 0===a?[]:a,u=n.base,c=u.getPopupSettings(),d=void 0!==n.props.opened?n.props.opened:n.state.opened,f=void 0!==n.props.virtual,h=void 0!==c.width?c.width:u.popupWidth,m={dir:void 0!==o?o:u.dirCalculated,width:h,popupSettings:{popupClass:c.popupClass,className:Object(s.classNames)("k-list-container k-reset",c.className),animate:c.animate,anchor:n.element,show:d,onOpen:n.onPopupOpened,onClose:n.onPopupClosed,appendTo:c.appendTo},itemsCount:[l.length]};return i.createElement(p,U({},m),n.renderListFilter(),f&&n.renderDefaultItem(),f&&t,n.base.renderScrollWrapper(i.createElement(i.Fragment,null,!f&&n.renderDefaultItem(),!f&&t,n.renderList(),!f&&r,n.base.renderScrollElement())),f&&r)},n.renderList=function(){var e=n.props,t=e.data,r=void 0===t?[]:t,o=e.textField,a=e.dataItemKey,s=e.virtual,l=void 0===s?{skip:0}:s,u=e.listNoDataRender,c=e.itemRender,d=n.base.vs,p=l.skip,f=void 0!==n.props.opened?n.props.opened:n.state.opened,h=n.base.getPopupSettings(),m="translateY("+d.translate+"px)";return i.createElement(F,{id:n.base.listBoxId,show:f,data:r.slice(),focusedIndex:n.focusedIndex(),value:n.value,textField:o,valueField:a,optionsGuid:n.base.guid,listRef:function(e){return d.list=n.base.list=e},wrapperStyle:d.enabled?{float:"left",width:"100%"}:{maxHeight:h.height},wrapperCssClass:d.enabled?void 0:"k-list-scroller",listStyle:d.enabled?{transform:m}:void 0,key:"listkey",skip:p,onClick:n.handleItemClick,itemRender:c,noDataRender:u})},n.renderListFilter=function(){var e=void 0!==n.props.filter?n.props.filter:n.state.text;return n.props.filterable&&i.createElement(h,{value:e,ref:function(e){return n._filterInput=e&&e.input},onChange:n.handleListFilterChange,onKeyDown:n.handleKeyDown})},n.renderDefaultItem=function(){var e=n.props,t=e.textField,r=e.defaultItem,o=e.dataItemKey;return void 0!==r&&i.createElement(x,{defaultItem:r,textField:t,selected:C(n.value,r,o),key:"defaultitemkey",onClick:n.handleDefaultItemClick})},n.search=function(e){clearTimeout(n._typingTimeout),n.props.filterable||(n._typingTimeout=window.setTimeout((function(){return n.searchState.word=""}),n.props.delay),n.selectNext(e))},n.selectNext=function(e){var t,r=n.props,o=r.data,i=void 0===o?[]:o,a=r.dataItemKey,s=i.map((function(e,t){return{item:e,itemIndex:t}})),l=n.searchState.word,u=n.searchState.last,c=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0}(l,u),d=s.length,p=Math.max(0,i.findIndex((function(e){return C(e,n.value,a)})));n.props.defaultItem&&(t={item:n.props.defaultItem,itemIndex:-1},d+=1,p+=1),s=function(e,t,n){var r=e;return n&&(r=[n].concat(r)),r.slice(t).concat(r.slice(0,t))}(s,p+=c?1:0,t);for(var f,h,m,g=0,y=n.props,k=y.textField,O=y.ignoreCase;g<d;g++)if(f=b(s[g].item,k),h=c&&v(f,u,O),m=v(f,l,O),h||m){g=s[g].itemIndex;break}if(g!==d){var w=n.base.initState();w.syntheticEvent=e,n.handleItemSelect(g,w),n.applyState(w),n._valueDuringOnChange=void 0}},n.handleKeyDown=function(e){var t=n.props,r=t.data,o=void 0===r?[]:r,i=t.filterable,a=t.disabled,l=t.leftRightKeysNavigation,u=void 0===l||l,c=t.virtual,d=void 0===c?{skip:0,total:0,pageSize:0}:c,p=void 0!==n.props.opened?n.props.opened:n.state.opened,f=e.keyCode,h=f===s.Keys.home||f===s.Keys.end,m=f===s.Keys.up||f===s.Keys.down,v=!p&&(e.altKey&&f===s.Keys.down||f===s.Keys.enter||f===s.Keys.space),g=p&&(e.altKey&&f===s.Keys.up||f===s.Keys.esc),y=u&&(f===s.Keys.left||f===s.Keys.right),b=m||!i&&(y||h),k=n.base.initState();if(k.syntheticEvent=e,!a){if(h&&n.base.vs.enabled)f===s.Keys.home?0!==d.skip?(n.base.triggerOnPageChange(k,0,d.pageSize),n._navigated=!0):n.triggerOnChange(o[0],k):d.skip<d.total-d.pageSize?(n.base.triggerOnPageChange(k,d.total-d.pageSize,d.pageSize),n._navigated=!0):n.triggerOnChange(o[o.length-1],k);else if(p&&f===s.Keys.enter){var C=n.focusedIndex();void 0!==C&&n.handleItemSelect(C,k),n.base.togglePopup(k),e.preventDefault()}else v||g?(n.base.togglePopup(k),e.preventDefault()):b&&(n.onNavigate(k,f),e.preventDefault());n.applyState(k)}},n.handleItemClick=function(e,t){n.base.handleItemClick(e,t),n._valueDuringOnChange=void 0},n.handleFocus=function(e){n._skipFocusEvent||n.base.handleFocus(e)},n.handleBlur=function(e){if(!n._skipFocusEvent&&n.state.focused){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n.base.initState();r.syntheticEvent=e,r.data.focused=!1,r.events.push({type:"onBlur"}),t&&n.base.togglePopup(r),n.applyState(r)}},n.handleDefaultItemClick=function(e){var t=n.base.initState();t.syntheticEvent=e,n.base.togglePopup(t),n.triggerOnChange(n.props.defaultItem,t),n.applyState(t)},n.handleWrapperClick=function(e){var t=n.base.initState();t.syntheticEvent=e,n.state.focused||(t.data.focused=!0),n.base.togglePopup(t),n.applyState(t)},n.handleKeyPress=function(e){if(!n.props.filterable&&0!==e.which&&e.keyCode!==s.Keys.enter){var t=String.fromCharCode(e.charCode||e.keyCode);n.props.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),n.searchState={word:n.searchState.word+t,last:n.searchState.last+t},n.search(e)}},n.handleListFilterChange=function(e){var t=n.base.initState();t.syntheticEvent=e,void 0===n.props.filter&&(t.data.text=e.target.value),n.base.filterChanged(e.target.value,t),n.applyState(t)},n.onPopupOpened=function(){n._filterInput&&n.focusElement(n._filterInput)},n.onPopupClosed=function(){n.state.focused&&window.setTimeout((function(){n.state.focused&&n.base.wrapper&&n.focusElement(n.base.wrapper)}))},n.setValidity=function(){n._select&&n._select.setCustomValidity&&n._select.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please select a value from the list!")},Object(s.validatePackage)(z),n}return H(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actionElement",{get:function(){return this.base.wrapper},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e;return void 0!==this._valueDuringOnChange?e=this._valueDuringOnChange:void 0!==this.props.value?e=this.props.value:void 0!==this.state.value?e=this.state.value:void 0!==this.props.defaultValue&&(e=this.props.defaultValue),m(e)||void 0===this.props.defaultItem||(e=this.props.defaultItem),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){var e=this.props,t=e.data,n=void 0===t?[]:t,r=e.dataItemKey,o=this.value;return n.findIndex((function(e){return C(e,o,r)}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=!this.required||null!==this.value&&""!==this.value&&void 0!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.dataItemKey,a=n.virtual,s=e.virtual?e.virtual.total:0,l=void 0!==this.props.opened?this.props.opened:this.state.opened,u=void 0!==e.opened?e.opened:t.opened,c=!u&&l;if(this.base.getPopupSettings().animate||c&&this.onPopupOpened(),a&&a.total!==s)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var d=this.value,p=void 0!==e.value?e.value:t.value,f=o.findIndex((function(e){return C(e,d,i)})),h=!C(p,d,i);c&&a?this.base.scrollToVirtualItem(a,f):c&&!a||l&&u&&d&&h&&!this._navigated?this.base.scrollToItem(f):l&&u&&this._navigated&&(this._navigated&&a&&0===a.skip?this.base.vs.reset():this._navigated&&a&&a.skip===a.total-a.pageSize&&this.base.vs.scrollToEnd())}this._navigated=!1,this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var e=this,t=this.props,n=t.style,r=t.className,o=t.label,a=t.dir,u=t.virtual,c=void 0!==this.props.opened?this.props.opened:this.state.opened,d=b(this.value,this.props.textField),p=!this.validityStyles||this.validity.valid,f=this.base;f.vs.enabled=void 0!==u,void 0!==u&&(f.vs.skip=u.skip,f.vs.total=u.total,f.vs.pageSize=u.pageSize);var h=i.createElement("span",{ref:function(t){return e._element=t},className:Object(s.classNames)("k-widget k-dropdown",{"k-state-invalid":!p},r),style:o?U({},n,{width:void 0}):n,dir:a,onMouseDown:c?w:void 0,onFocus:this.handleFocus,onBlur:this.handleBlur},this.renderDropDownWrapper(),this.renderListContainer());return o?i.createElement(l.FloatingLabel,{label:o,editorValue:d,editorValid:p,editorDisabled:this.props.disabled,style:{width:n?n.width:void 0},children:h}):h},t.prototype.onNavigate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.defaultItem,a=n.dataItemKey,s=n.virtual,l=void 0===s?{skip:0,total:0,pageSize:0}:s,u=this.base.vs,c=this.value,d=o.findIndex((function(e){return C(e,c,a)})),p=this.base.navigation.navigate({current:l.skip+d,max:(u.enabled?l.total:o.length)-1,min:void 0!==i?-1:0,keyCode:t});void 0!==p&&this.handleItemSelect(p,e),this.applyState(e)},t.prototype.focusedIndex=function(){var e=m(this.props.filter)?this.props.filter:this.state.text,t=this.props,n=t.data,r=void 0===n?[]:n,o=t.virtual,i=void 0===o?{skip:0}:o,a=t.dataItemKey,s=t.textField,l=t.focusedItemIndex,u=this.value,c=!(r.findIndex((function(e){return C(e,u,a)}))<0&&!this.props.defaultItem);return!c&&e&&0===i.skip?l?l(r,e,s):r.indexOf(O(r,e,s)):c||0!==i.skip?void 0:0},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),window.setTimeout((function(){return t._skipFocusEvent=!1}),30)},t.prototype.triggerOnChange=function(e,t){C(this.value,e,this.props.dataItemKey)||(void 0===this.props.value&&(t.data.value=e),this._valueDuringOnChange=e,t.events.push({type:"onChange"}))},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.displayName="DropDownList",t.propTypes=U({delay:a.number,ignoreCase:a.bool,iconClassName:a.string,defaultItem:a.any,valueRender:a.func,valueMap:a.func,validationMessage:a.string,required:a.bool,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,leftRightKeysNavigation:a.bool,title:a.string},B.propTypes),t.defaultProps=U({delay:500,tabIndex:0,ignoreCase:!0},B.defaultProps,{required:!1}),t}(i.Component),W=Object(s.createPropsContext)(),q=Object(s.withPropsContext)(W,K);q.displayName="KendoReactDropDownList";var Y=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),G=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){return e.preventDefault()},t}return Y(t,e),t.prototype.render=function(){var e=Object(_.provideLocalizationService)(this).toLanguageString(N,M[N]);return i.createElement("span",{className:"k-icon k-clear-value k-i-close",role:"button",onClick:this.props.onClick,onMouseDown:this.onMouseDown,tabIndex:-1,title:e,key:"clearbutton"})},t}(i.Component),Z=G;Object(_.registerForLocalization)(G);var X=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return X(t,e),Object.defineProperty(t.prototype,"input",{get:function(){return this._input},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e){var t=e.value,n=e.suggestedText,r=this.props,o=r.value,i=r.suggestedText,a=r.focused,s=this.input,l=t!==o||i!==n,u=l&&t.startsWith(o)&&!(n&&i&&n.endsWith(i));a&&s&&document.activeElement!==s&&s.focus(),i&&l&&!u&&s&&s.setSelectionRange(o.length-i.length,o.length)},t.prototype.render=function(){var e=this,t=this.props,n=t.expanded,r=void 0!==n&&n,o=t.disabled,a=t.role,s=void 0===a?"listbox":a,l=t.render,u=i.createElement("span",{className:"k-searchbar",key:"searchbar"},i.createElement("input",{autoComplete:"off",id:this.props.id,type:"text",size:this.props.size,placeholder:this.props.placeholder,className:"k-input",tabIndex:this.props.tabIndex,accessKey:this.props.accessKey,role:s,name:this.props.name,value:this.props.value,onChange:this.props.onChange,ref:function(t){return e._input=t},onKeyDown:this.props.onKeyDown,onFocus:this.props.onFocus,onBlur:this.props.onBlur,"aria-disabled":o||void 0,disabled:o||void 0,readOnly:this.props.readOnly||void 0,"aria-haspopup":"listbox","aria-expanded":r,"aria-owns":this.props.owns,"aria-activedescendant":r?this.props.activedescendant:void 0,"aria-describedby":this.props.ariaDescribedBy,"aria-labelledby":this.props.ariaLabelledBy}));return[l?l.call(void 0,u):u,!this.props.loading&&this.props.clearButton&&i.createElement(Z,{onClick:this.props.clearButtonClick,key:"clearbutton"}),this.props.loading&&i.createElement("span",{className:"k-icon k-i-loading",key:"loading"})]},t}(i.Component),$=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),J=function(){return(J=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ee=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.base=new B(n),n._inputId=Object(s.guid)(),n._suggested="",n.itemHeight=0,n.focus=function(){n._input&&n._input.focus()},n.handleItemSelect=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.virtual,s=r.dataItemKey,l=i[e-(a?a.skip:0)],u=!C(l,n.value,s);n.triggerOnChange(l,t),void 0!==n.state.text&&(t.data.text=void 0),u&&n.base.triggerPageChangeCornerItems(l,t)},n.toggleBtnClick=function(e){var t=n.base.initState();t.syntheticEvent=e,n.base.togglePopup(t),n.applyState(t)},n.onScroll=function(e){var t=n.props,r=t.data,o=void 0===r?[]:r,i=t.groupField;if(i&&o.length){for(var a=n.base,s=a.vs,l=a.list,u=n.itemHeight=n.itemHeight||(s.enabled?s.itemHeight:l?l.children[0].offsetHeight:0),c=e.target.scrollTop-s.skip*u,d=o[0][i],p=1;p<o.length&&!(u*p>c);p++)o[p]&&o[p][i]&&(d=o[p][i]);d!==n.state.group&&n.setState({group:d})}},n.handleItemClick=function(e,t){n.base.handleItemClick(e,t),n._valueDuringOnChange=void 0},n.handleBlur=function(e){if(n.state.focused){var t=n.base.initState();t.data.focused=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,n.applyValueOnRejectSuggestions(e.currentTarget.value,t)}},n.onInputKeyDown=function(e){var t=e.keyCode,r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=n.base.initState();if(o.syntheticEvent=e,!e.altKey&&(t===s.Keys.up||t===s.Keys.down))return e.preventDefault(),n.onNavigate(o,t),void n.applyState(o);var i=function(){e.preventDefault(),n.base.togglePopup(o),n.applyState(o)};r?e.altKey&&t===s.Keys.up?i():t===s.Keys.enter?(e.preventDefault(),n.applyValueOnEnter(e.currentTarget.value,o)):t===s.Keys.esc&&n.applyValueOnRejectSuggestions(e.currentTarget.value,o):e.altKey&&t===s.Keys.down&&i()},n.inputOnChange=function(e){var t=n.base.initState();t.syntheticEvent=e;var r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=e.currentTarget,i=o.value;if(n.props.suggest){var a=o.selectionEnd===i.length,s=void 0!==n.props.filter?n.props.filter:n.state.text;m(s)||(s=b(n.value,n.props.textField)||"");var l=s&&s===i,u=s&&s.length>i.length;l||u||!a?n._suggested="":n.suggestValue(i)}void 0===n.props.filter&&(t.data.text=i),void 0!==n.state.focusedItem&&(t.data.focusedItem=void 0),r||n.base.togglePopup(t),n.base.filterChanged(i,t),n.applyState(t)},n.clearButtonClick=function(e){var t=n.base.initState();t.syntheticEvent=e,e.stopPropagation(),n._suggested="",n.base.filterChanged("",t),void 0===n.props.filter&&void 0!==n.state.text&&(t.data.text=void 0),n.triggerOnChange(null,t),(void 0!==n.props.opened?n.props.opened:n.state.opened)&&n.base.togglePopup(t),n.applyState(t)},n.setValidity=function(){n._input&&n._input.setCustomValidity&&n._input.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please enter a valid value!")},Object(s.validatePackage)(z),n}return $(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this._valueDuringOnChange?this._valueDuringOnChange:void 0!==this.props.value?this.props.value:void 0!==this.state.value?this.state.value:void 0!==this.props.defaultValue?this.props.defaultValue:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){var e=this.props,t=e.data,n=void 0===t?[]:t,r=e.dataItemKey,o=this.value;return n.findIndex((function(e){return C(e,o,r)}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=!this.required||null!==this.value&&""!==this.value&&void 0!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.dataItemKey,a=n.virtual,s=e.virtual?e.virtual.total:0,l=void 0!==this.props.opened?this.props.opened:this.state.opened,u=void 0!==e.opened?e.opened:t.opened,c=!u&&l,d=this.value;if(this._valueOnDidUpdate=d,a&&a.total!==s)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var p=void 0!==e.value?e.value:t.value,f=o.findIndex((function(e){return C(e,d,i)})),h=!C(p,d,i);c&&a?this.base.scrollToVirtualItem(a,f):(c&&!a||l&&u&&d&&h)&&this.base.scrollToItem(f)}c&&this._input&&this._input.focus(),this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var e=this,n=this.props,r=n.dir,o=n.disabled,a=n.clearButton,u=void 0===a?t.defaultProps.clearButton:a,c=n.label,d=n.textField,p=n.className,f=n.style,h=n.loading,v=n.iconClassName,g=n.virtual,y=this.state.focused,k=!this.validityStyles||this.validity.valid,C=void 0!==this.props.filter?this.props.filter:this.state.text,O=b(this.value,d),w=m(C)?C:O,E=u&&(!!w||m(this.value)),S=this.base,D=S.vs,x=this.props.id||this._inputId;D.enabled=void 0!==g,void 0!==g&&(D.skip=g.skip,D.total=g.total,D.pageSize=g.pageSize);var I=i.createElement("span",{className:Object(s.classNames)("k-widget k-combobox",{"k-combobox-clearable":u,"k-state-invalid":!k},p),ref:function(t){return e._element=t},style:c?J({},f,{width:void 0}):f,dir:r},i.createElement("span",{ref:function(e){return S.wrapper=e},className:Object(s.classNames)("k-dropdown-wrap",{"k-state-disabled":o,"k-state-focused":y&&!o})},this.renderSearchBar(E,w||"",x),i.createElement("span",{className:"k-select",onClick:this.toggleBtnClick,onMouseDown:function(e){return e.preventDefault()}},i.createElement("span",{className:Object(s.classNames)("k-icon",v,{"k-i-arrow-s":!h&&!v,"k-i-loading":h&&!v})}))),this.renderListContainer());return c?i.createElement(l.FloatingLabel,{label:c,editorId:x,editorValue:w,editorValid:k,editorDisabled:o,style:{width:f?f.width:void 0},children:I}):I},t.prototype.onNavigate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.virtual,a=void 0===i?{skip:0}:i,s=this.props.filter?this.props.filter:this.state.text,l=this.getFocusedIndex(),u=this.base.vs,c=this.value;if(this._suggested="",-1===l||m(c))if(""===s)this.handleItemSelect(0,e);else{var d=a.skip+l,p=this.base.navigation.navigate({keyCode:t,current:d,max:(u.enabled?u.total:o.length)-1,min:0});void 0!==p&&this.handleItemSelect(p,e)}else this.handleItemSelect(l,e)},t.prototype.applyValueOnEnter=function(e,t){var n,r=this.props,o=r.data,i=void 0===o?[]:o,a=r.textField,s=r.allowCustom,l=void 0!==this.props.opened?this.props.opened:this.state.opened,u=b(this.value,a)===e?this.index:y(i,e,a),c=-1!==u,d=void 0;if(this._suggested="",c)d=i[u];else{if(!s)return this.selectFocusedItem(e,t);d=void 0!==a?((n={})[a]=e,n):e}this.triggerOnChange(d,t),l&&this.base.togglePopup(t),void 0===this.props.filter&&void 0!==this.state.text&&(t.data.text=void 0),this.applyState(t)},t.prototype.applyValueOnRejectSuggestions=function(e,t){var n,r=this.props,o=r.data,i=void 0===o?[]:o,a=r.textField,s=r.allowCustom,l=void 0!==this.props.opened?this.props.opened:this.state.opened,u=b(this.value,a);if(this._suggested="",e===u||""===e&&!m(u))return l&&this.base.togglePopup(t),this.applyState(t);var c=y(i,e,a,!0),d=null;-1!==c?d=i[c]:s&&(d=e?a?((n={})[a]=e,n):e:null),this.triggerOnChange(d,t),void 0!==this.state.text&&(t.data.text=void 0,this.base.filterChanged("",t)),l&&this.base.togglePopup(t),this.applyState(t)},t.prototype.selectFocusedItem=function(e,t){var n=void 0!==this.props.opened?this.props.opened:this.state.opened,r=this.props,o=r.data,i=void 0===o?[]:o,a=r.textField,s=r.virtual,l=void 0===s?{skip:0}:s,u=r.focusedItemIndex,c=void 0===u?g:u,d=l.skip,p=""===e&&0===d?0:c(i,e,a);return-1!==p?this.handleItemSelect(p+d,t):(this.triggerOnChange(null,t),void 0!==this.state.text&&(t.data.text=void 0)),n&&this.base.togglePopup(t),this.applyState(t)},t.prototype.renderListContainer=function(){var e=this.base,t=this.props,n=t.dir,r=t.header,o=t.footer,a=t.data,l=void 0===a?[]:a,u=t.groupField,c=void 0!==this.props.opened?this.props.opened:this.state.opened,d=e.getPopupSettings(),f=void 0!==d.width?d.width:e.popupWidth,h=this.state.group;return void 0===h&&void 0!==u&&(h=b(l[0],u)),i.createElement(p,{width:f,popupSettings:{animate:d.animate,anchor:this.element,show:c,popupClass:d.popupClass,className:Object(s.classNames)("k-list-container k-reset",d.className),appendTo:d.appendTo},dir:void 0!==n?n:this.base.dirCalculated,itemsCount:[l.length]},r,h&&i.createElement("div",{className:"k-group-header"},h),e.renderScrollWrapper([this.renderList(),e.renderScrollElement()],this.onScroll),o)},t.prototype.renderList=function(){var e=this,t=this.base,n=this.props,r=n.textField,o=n.dataItemKey,a=n.listNoDataRender,s=n.itemRender,l=n.data,u=void 0===l?[]:l,c=n.virtual,d=void 0===c?{skip:0}:c,p=t.getPopupSettings(),f=t.vs,h=d.skip,v=void 0!==this.props.opened?this.props.opened:this.state.opened,g="translateY("+f.translate+"px)",y=v?this.getFocusedIndex():void 0,k=void 0!==this.props.filter?this.props.filter:this.state.text,C=b(this.value,r),O=m(k)&&k!==C?null:this.value,w=this.props.list||F;return i.createElement(w,{id:t.listBoxId,show:v,data:u,focusedIndex:y,value:O,textField:r,valueField:o,groupField:this.props.groupField,optionsGuid:t.guid,listRef:function(t){f.list=e.base.list=t,e.itemHeight=0},wrapperStyle:f.enabled?{float:"left",width:"100%"}:{maxHeight:p.height},wrapperCssClass:f.enabled?void 0:"k-list-scroller",listStyle:f.enabled?{transform:g}:void 0,key:"listkey",skip:h,onClick:this.handleItemClick,itemRender:s,noDataRender:a,onMouseDown:function(e){return e.preventDefault()},onScroll:this.onScroll})},t.prototype.renderSearchBar=function(e,t,n){var r=this,o=this.props,a=o.placeholder,s=o.tabIndex,l=o.disabled,u=o.data,c=void 0===u?[]:u,d=o.dataItemKey,p=o.virtual,f=void 0===p?{skip:0}:p,h=void 0!==this.props.opened?this.props.opened:this.state.opened,m=this.value,v=Math.max(0,c.findIndex((function(e){return C(e,m,d)})));return this._suggested&&!C(this._valueOnDidUpdate,m,d)&&(this._suggested=""),i.createElement(Q,{id:n,placeholder:a,tabIndex:s||void 0,accessKey:this.props.accessKey,value:t+this._suggested,suggestedText:this._suggested,ref:function(e){return r._input=e&&e.input},onKeyDown:this.onInputKeyDown,onChange:this.inputOnChange,onFocus:this.base.handleFocus,onBlur:this.handleBlur,disabled:l,expanded:h,owns:this.base.listBoxId,activedescendant:this.base.guid+"-"+(v+f.skip),role:"combobox",clearButton:e,clearButtonClick:this.clearButtonClick,ariaLabelledBy:this.props.ariaLabelledBy,ariaDescribedBy:this.props.ariaDescribedBy,render:this.props.valueRender})},t.prototype.triggerOnChange=function(e,t){var n=this.value;!m(n)&&!m(e)||C(n,e,this.props.dataItemKey)||(void 0===this.props.value&&(t.data.value=e),this._valueDuringOnChange=e,t.events.push({type:"onChange"}))},t.prototype.getFocusedIndex=function(){var e=this.value,t=this.props,n=t.data,r=void 0===n?[]:n,o=t.textField,i=t.dataItemKey,a=t.virtual,s=void 0===a?{skip:0}:a,l=t.focusedItemIndex,u=void 0===l?g:l,c=this.props.filter?this.props.filter:this.state.text;return m(e)&&void 0===c?r.findIndex((function(t){return C(t,e,i)})):c?u(r,c,o):0===s.skip?0:-1},t.prototype.suggestValue=function(e){var t=this.props,n=t.data,r=t.textField;this._suggested=function(e,t,n){void 0===t&&(t=[]);var r="";if(e){var o=t[g(t,e,n)];if(o){var i=b(o,n);e.toLowerCase()!==i.toLowerCase()&&(r=i.substring(e.length))}}return r}(e,n,r)},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.displayName="ComboBox",t.propTypes=J({},B.propTypes,{dataItemKey:a.string,groupField:a.string,suggest:a.bool,placeholder:a.string,allowCustom:a.bool,clearButton:a.bool,iconClassName:a.string,validationMessage:a.string,required:a.bool,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,list:a.any,valueRender:a.func}),t.defaultProps=J({},B.defaultProps,{allowCustom:!1,clearButton:!0,required:!1}),t}(i.Component),te=Object(s.createPropsContext)(),ne=Object(s.withPropsContext)(te,ee);ne.displayName="KendoReactComboBox";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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),oe=function(){return(oe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ie=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.base=new B(n),n._inputId=Object(s.guid)(),n._suggested="",n.focus=function(){n._input&&n._input.focus()},n.handleItemSelect=function(e,t){var r=n.props.data,o=b((void 0===r?[]:r)[e],n.props.textField);n.triggerOnChange(o,t)},n.itemFocus=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.textField,s=i[e];C(n.state.focusedItem,s,a)||(t.data.focusedItem=s)},n.togglePopup=function(e){n.base.togglePopup(e)},n.setValidity=function(){n._input&&n._input.setCustomValidity&&n._input.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please enter a valid value!")},n.handleItemClick=function(e,t){n.base.handleItemClick(e,t),n._valueDuringOnChange=void 0},n.onChangeHandler=function(e){var t=n.base.initState(),r=e.currentTarget,o=r.value,i=r.selectionEnd===o.length;t.syntheticEvent=e;var a=n._suggested,s=n.value,l=s&&s.substring(0,s.length-a.length),u=l&&l===o,c=l&&l.length>o.length,d=n.props.suggest,p=void 0!==n.props.opened?n.props.opened:n.state.opened;if(void 0!==d&&!1!==d){u||c||!i?n._suggested="":n.suggestValue(o);var f=o+n._suggested,h={userInput:o,value:n._suggested};n.triggerOnChange(f,t,{suggestion:h})}else n._suggested="",n.triggerOnChange(o,t);(!p&&o||p&&!o)&&n.togglePopup(t),t.data.focusedItem=void 0,n.applyState(t)},n.clearButtonClick=function(e){var t=n.base.initState(),r=void 0!==n.props.opened?n.props.opened:n.state.opened;t.syntheticEvent=e;n._suggested="",n.triggerOnChange("",t),void 0!==n.state.focusedItem&&(t.data.focusedItem=void 0),r&&n.togglePopup(t),n.applyState(t)},n.onInputKeyDown=function(e){var t=e.keyCode,r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=n.base.initState();o.syntheticEvent=e;var i=function(){r&&e.preventDefault()};t===s.Keys.enter||t===s.Keys.esc?(i(),n.applyInputValue(e.currentTarget.value,o,e.keyCode)):t!==s.Keys.up&&t!==s.Keys.down||(i(),n.onNavigate(o,t))},n.handleBlur=function(e){if(n.state.focused){var t=n.base.initState();t.data.focused=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,n.applyInputValue(e.currentTarget.value,t)}},Object(s.validatePackage)(z),n}return re(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this._valueDuringOnChange?this._valueDuringOnChange:void 0!==this.props.value?this.props.value:void 0!==this.state.value?this.state.value:void 0!==this.props.defaultValue?this.props.defaultValue:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=!this.required||""!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n=this.props.data,r=void 0===n?[]:n,o=e.data,i=void 0===o?[]:o,a=this.focusedIndex(),s=r[a],l=i!==r,u=void 0!==s&&t.focusedItem!==s,c=void 0!==this.props.opened?this.props.opened:this.state.opened,d=void 0!==e.opened?e.opened:t.opened;(c&&(u||l)||!d&&c)&&this.base.scrollToItem(a),this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var e=this,t=this.props,n=t.dir,r=t.disabled,o=t.label,a=t.className,u=t.style,c=t.loading,d=t.suggest,p=!this.validityStyles||this.validity.valid,f=this.state.focused,h=this.base,m=this.value,v=!1!==this.props.clearButton&&!c&&!!m,g=this.props.id||this._inputId;"string"==typeof d&&(this._suggested=d);var y=i.createElement("span",{className:Object(s.classNames)("k-widget k-autocomplete",a,{"k-state-disabled":r,"k-state-focused":f&&!r,"k-state-invalid":!p}),ref:function(t){e._element=t,h.wrapper=t},style:o?oe({},u,{width:void 0}):u,dir:n},this.renderSearchBar(v,m||"",g),c&&i.createElement("span",{className:"k-icon k-i-loading"}),this.renderListContainer());return o?i.createElement(l.FloatingLabel,{label:o,editorId:g,editorValue:m,editorValid:p,editorDisabled:r,style:{width:u?u.width:void 0},children:y}):y},t.prototype.onNavigate=function(e,t){var n=this,r=this.value,o=this.props,i=o.data,a=void 0===i?[]:i,s=o.textField,l=o.focusedItemIndex,u=void 0!==this.state.focusedItem?a.findIndex((function(e){return C(e,n.state.focusedItem,s)})):l?l(a,r,s):a.indexOf(O(a,r,s)),c=this.base.navigation.navigate({keyCode:t,current:u,max:a.length-1,min:0});void 0!==c&&this.itemFocus(c,e),this.applyState(e)},t.prototype.applyInputValue=function(e,t,n){var r=void 0!==this.props.opened?this.props.opened:this.state.opened,o=this.props,i=o.data,a=void 0===i?[]:i,l=o.textField;if(this._suggested="",r&&n===s.Keys.enter){var u=b(a[this.focusedIndex(e)],l);this.triggerOnChange(u,t)}r&&this.togglePopup(t),this.applyState(t)},t.prototype.renderSearchBar=function(e,t,n){var r=this,o=this.base,a=this.props,s=a.placeholder,l=a.tabIndex,u=a.disabled,c=a.readonly,d=this.state.focused,p=void 0!==this.props.opened?this.props.opened:this.state.opened;return i.createElement(Q,{id:n,placeholder:s,tabIndex:l||void 0,accessKey:this.props.accessKey,value:t,suggestedText:this._suggested,focused:d,name:this.props.name,ref:function(e){return r._input=e&&e.input},onKeyDown:this.onInputKeyDown,onChange:this.onChangeHandler,onFocus:o.handleFocus,onBlur:this.handleBlur,disabled:u,readOnly:c,expanded:p,owns:o.listBoxId,activedescendant:"option-"+o.guid+"-"+this.focusedIndex(),role:"combobox",clearButton:e,clearButtonClick:this.clearButtonClick,ariaLabelledBy:this.props.ariaLabelledBy,ariaDescribedBy:this.props.ariaDescribedBy,render:this.props.valueRender})},t.prototype.renderListContainer=function(){var e=this.base,t=this.props,n=t.dir,r=t.header,o=t.footer,a=t.data,l=void 0===a?[]:a,u=e.getPopupSettings(),c=void 0!==this.props.opened?this.props.opened:this.state.opened,d=void 0!==u.width?u.width:e.popupWidth;return i.createElement(p,{width:d,popupSettings:{animate:u.animate,anchor:this.element,show:c,popupClass:u.popupClass,className:Object(s.classNames)("k-list-container k-reset",u.className),appendTo:u.appendTo},dir:void 0!==n?n:this.base.dirCalculated,itemsCount:[l.length]},r,this.renderList(),o)},t.prototype.renderList=function(){var e=this.base,t=e.getPopupSettings(),n=this.props,r=n.textField,o=n.data,a=void 0===o?[]:o,s=n.listNoDataRender,l=n.itemRender,u=this.value,c=void 0!==this.props.opened?this.props.opened:this.state.opened;return i.createElement(F,{id:e.listBoxId,show:c,data:a.slice(),focusedIndex:this.focusedIndex(),value:u,textField:r,valueField:r,highlightSelected:!1,optionsGuid:e.guid,listRef:function(t){return e.list=t},wrapperStyle:{maxHeight:t.height},wrapperCssClass:"k-list-scroller",onClick:this.handleItemClick,itemRender:l,noDataRender:s,onMouseDown:function(e){return e.preventDefault()}})},t.prototype.triggerOnChange=function(e,t,n){(this.value!==e||n)&&(t.data.value=e,this._valueDuringOnChange=e,t.events.push(oe({type:"onChange"},n||{})))},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.prototype.suggestValue=function(e){if(this._suggested="",e){var t=this.props,n=t.data,r=void 0===n?[]:n,o=t.textField,i=r[g(r,e,o)];if(i){var a=b(i,o);e.toLowerCase()!==a.toLowerCase()&&(this._suggested=a.substring(e.length))}}},t.prototype.focusedIndex=function(e){var t=this,n=this.props,r=n.data,o=void 0===r?[]:r,i=n.textField,a=n.focusedItemIndex,s=void 0!==e?e:this.value;return void 0!==this.state.focusedItem?o.findIndex((function(e){return C(e,t.state.focusedItem,i)})):a?a(o,s,i):Math.max(0,o.indexOf(O(o,s,i)))},t.displayName="AutoComplete",t.propTypes=oe({},B.basicPropTypes,{suggest:a.oneOfType([a.bool,a.string]),placeholder:a.string,value:a.string,defaultValue:a.string,validationMessage:a.string,required:a.bool,readonly:a.bool,clearButton:a.bool,valueRender:a.func,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string}),t.defaultProps=oe({},B.defaultProps),t}(i.Component),ae=Object(s.createPropsContext)(),se=Object(s.withPropsContext)(ae,ie);se.displayName="KendoReactAutoComplete";var le,ue=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ce=function(e){return e.preventDefault()},de=function(e){return e.stopPropagation()},pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ue(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.guid,o=this.props.tag;return i.createElement("ul",{className:"k-reset",role:"listbox",id:"tagslist-"+r},n.map((function(t,a){var s=o?i.createElement(o,{tagData:t,guid:r,focusedTag:e.props.focused,onTagDelete:e.props.onTagDelete}):i.createElement("li",{className:t===e.props.focused?"k-button k-state-focused":"k-button",key:t.text+a,id:"tag-"+r+"-"+t.text.replace(/\s+/g,"-"),onMouseDown:ce,onClick:de,"aria-selected":!0,role:"option","aria-setsize":n.length},i.createElement("span",null,t.text),i.createElement("span",{"aria-label":"delete",className:"k-select",onClick:function(n){return e.props.onTagDelete.call(void 0,t.data,n)}},i.createElement("span",{className:"k-icon k-i-close"})));return e.props.tagRender?e.props.tagRender(t,s):s})))},t}(i.Component);!function(e){e[e.PopupList=0]="PopupList",e[e.TagsList=1]="TagsList"}(le||(le={}));var fe,he=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),me=function(){return(me=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ve=function(e){return e.preventDefault()},ge=function(e){return e===fe.CustomItem};!function(e){e[e.None=0]="None",e[e.ListItem=1]="ListItem",e[e.CustomItem=2]="CustomItem"}(fe||(fe={}));var ye=function(e){function t(t){var n=e.call(this,t)||this;return n.state={activedescendant:le.PopupList},n._valueItemsDuringOnChange=null,n._inputId=Object(s.guid)(),n.base=new B(n),n._tags=[],n._skipFocusEvent=!1,n.scrollToFocused=!1,n.focus=function(){n._input&&n._input.focus()},n.handleItemSelect=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.dataItemKey,s=r.virtual,l=i[e-(s?s.skip:0)],u=n.value.findIndex((function(e){return C(e,l,a)})),c=[];-1!==u?(c=n.value).splice(u,1):c=n.value.concat([l]),(void 0!==n.props.filter?n.props.filter:n.state.text)&&(n.state.text&&(t.data.text=""),n.base.filterChanged("",t)),void 0!==n.state.focusedIndex&&(t.data.focusedIndex=void 0),n.triggerOnChange(c,t),n.base.triggerPageChangeCornerItems(l,t)},n.onTagDelete=function(e,t){var r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=n.base.initState();o.syntheticEvent=t,r&&n.base.togglePopup(o),n.state.focused||(o.data.focused=!0,n.focus());var i=n.value;k(i,e,n.props.dataItemKey),n.triggerOnChange(i,o),n.applyState(o)},n.itemFocus=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.allowCustom,s=r.virtual,l=s?s.skip:0,u=void 0!==n.props.filter?n.props.filter:n.state.text,c=n.getFocusedState().focusedIndex,d=a&&u,p=i[e-l];p&&c!==e?n.state.focusedIndex!==e&&(t.data.focusedIndex=e,t.data.activedescendant=le.PopupList):d&&-1===e&&void 0!==n.state.focusedIndex&&(t.data.focusedIndex=void 0),n.base.triggerPageChangeCornerItems(p,t)},n.searchbarRef=function(e){var t=n._input=e&&e.input;t&&n.state.focused&&window.setTimeout((function(){return t.focus()}),0)},n.onChangeHandler=function(e){var t=n.base.initState(),r=e.currentTarget.value,o=void 0!==n.props.opened?n.props.opened:n.state.opened;t.syntheticEvent=e,void 0===n.props.filter&&(t.data.text=r),t.data.focusedIndex=void 0,o||n.base.togglePopup(t),n.base.filterChanged(r,t),n.applyState(t)},n.clearButtonClick=function(e){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n.base.initState();r.syntheticEvent=e,e.stopPropagation(),n.value.length>0&&n.triggerOnChange([],r),void 0!==n.state.focusedIndex&&(r.data.focusedIndex=void 0),t&&n.base.togglePopup(r);var o=void 0!==n.props.filter?n.props.filter:n.state.text;m(o)&&""!==o&&n.base.filterChanged("",r),n.state.text&&(r.data.text=""),n.applyState(r)},n.onInputKeyDown=function(e){var t=e.keyCode,r=void 0!==n.props.filter?n.props.filter:n.state.text,o=void 0!==n.props.opened?n.props.opened:n.state.opened,i=n.getFocusedState().focusedItem,a=n.base.initState();if(a.syntheticEvent=e,!r&&n.value.length>0&&(t===s.Keys.left||t===s.Keys.right||t===s.Keys.home||t===s.Keys.end||t===s.Keys.delete||t===s.Keys.backspace))return n.onTagsNavigate(e,a);var l=function(){e.preventDefault(),n.base.togglePopup(a),n.applyState(a)};o?e.altKey&&t===s.Keys.up?l():t===s.Keys.up||t===s.Keys.down?(e.preventDefault(),n.onNavigate(a,t)):t===s.Keys.enter?(e.preventDefault(),n.props.allowCustom&&r&&null===i?n.customItemSelect(e):n.selectFocusedItem(e)):t===s.Keys.esc&&l():e.altKey&&t===s.Keys.down&&l()},n.renderListContainer=function(){var e=n.base,t=n.props,r=t.header,o=t.footer,a=t.allowCustom,l=t.dir,u=t.data,c=void 0===u?[]:u,d=n.base.getPopupSettings(),f=void 0!==n.props.opened?n.props.opened:n.state.opened,h=void 0!==n.props.filter?n.props.filter:n.state.text,m=void 0!==n.props.virtual,v=void 0!==d.width?d.width:e.popupWidth,g={dir:void 0!==l?l:e.dirCalculated,width:v,popupSettings:{popupClass:d.popupClass,className:Object(s.classNames)("k-list-container k-reset",d.className),animate:d.animate,anchor:n.element,show:f,onOpen:n.onPopupOpened,onClose:n.onPopupClosed,appendTo:d.appendTo},itemsCount:[c.length,n.value.length]},y=n.getFocusedState().focusedType,b=a&&h&&i.createElement("div",{className:"k-list",key:"customitem",onClick:n.customItemSelect,onMouseDown:ve},i.createElement("div",{className:Object(s.classNames)("k-item k-custom-item",{"k-state-focused":ge(y)})},h,i.createElement("span",{className:"k-icon k-i-plus",style:{float:"right"}})));return i.createElement(p,me({},g),m&&r,n.base.renderScrollWrapper(i.createElement(i.Fragment,null,!m&&r,b,n.renderList(),!m&&o,n.base.renderScrollElement())),m&&o)},n.renderList=function(){var e=n.props,t=e.data,r=void 0===t?[]:t,o=e.textField,a=e.listNoDataRender,s=e.itemRender,l=e.dataItemKey,u=e.virtual,c=n.base.vs,d=u?u.skip:0,p=void 0!==n.props.opened?n.props.opened:n.state.opened,f=n.getFocusedState().focusedIndex,h=n.base.getPopupSettings(),m="translateY("+c.translate+"px)";return i.createElement(F,{id:n.base.listBoxId,show:p,data:r.slice(),focusedIndex:f-d,value:n.value,textField:o,valueField:l,optionsGuid:n.base.guid,listRef:function(e){c.list=n.base.list=e},wrapperStyle:c.enabled?{float:"left",width:"100%"}:{maxHeight:h.height},wrapperCssClass:c.enabled?void 0:"k-list-scroller",listStyle:c.enabled?{transform:m}:void 0,key:"listKey",skip:d,onClick:n.handleItemClick,itemRender:s,noDataRender:a,onMouseDown:ve,onBlur:n.handleBlur})},n.customItemSelect=function(e){var t,r=void 0!==n.props.filter?n.props.filter:n.state.text,o=n.props.textField;if(r){var i=n.base.initState();i.syntheticEvent=e;var a=o?((t={})[o]=r,t):r;void 0!==n.state.text&&(i.data.text=""),i.data.focusedIndex=void 0,n.base.filterChanged("",i);var s=n.value.concat([a]);n.triggerOnChange(s,i),n.base.togglePopup(i),n.applyState(i)}},n.handleWrapperClick=function(e){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n._input;!t&&r&&n.focusElement(r);var o=n.base.initState();o.syntheticEvent=e,n.state.focused||(o.events.push({type:"onFocus"}),o.data.focused=!0),n.base.togglePopup(o),n.applyState(o)},n.handleItemClick=function(e,t){var r=n.base.initState();r.syntheticEvent=t,n.handleItemSelect(e,r),n.props.autoClose&&n.base.togglePopup(r),n.applyState(r)},n.handleBlur=function(e){if(n.state.focused&&!n._skipFocusEvent){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n.base.initState(),o=n.props,i=o.allowCustom,a=o.filterable;r.syntheticEvent=e,r.data.focused=!1,r.events.push({type:"onBlur"}),t&&(n.state.opened&&(r.data.opened=!1),r.events.push({type:"onClose"})),i||a||!n.state.text||(r.data.text=""),n.applyState(r)}},n.handleFocus=function(e){n._skipFocusEvent||n.base.handleFocus(e)},n.onPopupOpened=function(){n._input&&n.state.focused&&n.focusElement(n._input)},n.onPopupClosed=function(){n.state.focused&&window.setTimeout((function(){n.state.focused&&n.focusElement(n._input)}),0)},n.setValidity=function(){n._input&&n._input.setCustomValidity&&n._input.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please enter a valid value!")},Object(s.validatePackage)(z),n}return he(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=[];return this._valueItemsDuringOnChange?e.push.apply(e,this._valueItemsDuringOnChange):this.props.value?e.push.apply(e,this.props.value):this.state.value?e.push.apply(e,this.state.value):this.props.defaultValue&&e.push.apply(e,this.props.defaultValue),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=!this.required||null!==this.value&&this.value.length>0&&void 0!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n=this.props.virtual,r=n?n.skip:0,o=e.virtual?e.virtual.total:0,i=void 0!==this.props.opened?this.props.opened:this.state.opened,a=void 0!==e.opened?e.opened:t.opened,s=!a&&i,l=a&&!i;if(!this.base.getPopupSettings().animate&&l&&this.onPopupClosed(),n&&n.total!==o)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var u=this.getFocusedState(),c=u.focusedItem,d=u.focusedIndex;s&&n?this.base.scrollToVirtualItem(n,d-r):s&&!n?this.base.scrollToItem(d):i&&a&&c&&this.scrollToFocused&&this.base.scrollToItem(d-r)}this.scrollToFocused=!1,this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.onNavigate=function(e,t){var n=this.props,r=n.allowCustom,o=n.data,i=void 0===o?[]:o,a=void 0!==this.props.opened?this.props.opened:this.state.opened,l=void 0!==this.props.filter?this.props.filter:this.state.text,u=this.getFocusedState(),c=u.focusedType,d=u.focusedIndex,p=r&&l,f=ge(c),h=this.base,m=h.vs;if(a&&t===s.Keys.up&&f)void 0!==this.state.focusedIndex&&(e.data.focusedIndex=void 0);else{var v=h.navigation.navigate({keyCode:t,current:d,max:(m.enabled?m.total:i.length)-1,min:p?-1:0});void 0!==v&&(this.itemFocus(v,e),this.scrollToFocused=!0)}this.applyState(e)},t.prototype.render=function(){var e=this,t=this.props,n=t.style,r=t.className,o=t.label,a=t.dir,u=t.disabled,c=t.tags,d=t.textField,p=t.dataItemKey,f=t.virtual,h=this.state,m=h.focused,v=h.text,g=h.focusedTag,y=this.base.vs,k=this.props.id||this._inputId;y.enabled=void 0!==f,void 0!==f&&(y.skip=f.skip,y.total=f.total,y.pageSize=f.pageSize);var C=[];void 0===c?this.value.forEach((function(e){C.push({text:b(e,d),data:[e]})})):C.push.apply(C,c),this.setItems(C,this._tags);var O=!this.validityStyles||this.validity.valid,S=i.createElement("span",{ref:function(t){return e._element=t},className:Object(s.classNames)("k-widget k-multiselect",r,{"k-state-focused":m&&!u,"k-state-invalid":!O,"k-state-disabled":u}),style:o?me({},n,{width:void 0}):n,dir:a,onFocus:this.handleFocus,onBlur:this.handleBlur},i.createElement("div",{onClick:this.handleWrapperClick,ref:function(t){return e.base.wrapper=t},className:"k-multiselect-wrap k-floatwrap",onMouseDown:w},C.length>0&&i.createElement(pe,{tagRender:this.props.tagRender,onTagDelete:this.onTagDelete,data:C,guid:this.base.guid,focused:g?C.find((function(e){return E(e,g,p)})):void 0}),this.renderSearchbar(k)),this.renderListContainer());return o?i.createElement(l.FloatingLabel,{label:o,editorId:k,editorValue:v||b(this.value[0],d),editorValid:O,editorDisabled:u,style:{width:n?n.width:void 0},children:S}):S},t.prototype.renderSearchbar=function(e){var t=this.state,n=t.activedescendant,r=t.focusedTag,o=this.props,a=o.disabled,s=o.placeholder,l=o.ariaDescribedBy,u=(void 0!==this.props.filter?this.props.filter:this.state.text)||"",c=void 0!==this.props.opened?this.props.opened:this.state.opened,d=this.getFocusedState().focusedIndex,p=!!u||this.value.length>0,f=0!==this.value.length||u?void 0:s,h=n===le.TagsList&&void 0!==r?"tag-"+this.base.guid+"-"+r.text.replace(/\s+/g,"-"):"option-"+this.base.guid+"-"+d;return i.createElement(Q,{id:e,size:Math.max((f||"").length,u.length,1),tabIndex:this.props.tabIndex,accessKey:this.props.accessKey,placeholder:f,value:u,onChange:this.onChangeHandler,onKeyDown:this.onInputKeyDown,ref:this.searchbarRef,disabled:a,expanded:c,owns:this.base.listBoxId,activedescendant:h,ariaDescribedBy:"tagslist-"+this.base.guid+(l?" "+l:""),clearButton:p,clearButtonClick:this.clearButtonClick,loading:this.props.loading,ariaLabelledBy:this.props.ariaLabelledBy})},t.prototype.onTagsNavigate=function(e,t){var n=e.keyCode,r=this.state.focusedTag,o=this._tags,i=this.props.dataItemKey,a=r?o.findIndex((function(e){return E(e,r,i)})):-1,l=void 0,u=-1!==a;if(n===s.Keys.left)l=o[a=u?Math.max(0,a-1):o.length-1];else if(n===s.Keys.right)a===o.length-1?l=void 0:u&&(l=o[a=Math.min(o.length-1,a+1)]);else if(n===s.Keys.home)l=o[0];else if(n===s.Keys.end)l=o[o.length-1];else if(n===s.Keys.delete){if(u){var c=this.value;k(c,o[a].data,i),this.triggerOnChange(c,t)}}else if(n===s.Keys.backspace){c=this.value;if(u)k(c,o[a].data,i),this.triggerOnChange(c,t);else if(!u&&o.length){var d=o.pop();k(c,d.data,i),this.triggerOnChange(c,t)}}l!==r&&(t.data.focusedTag=l,t.data.activedescendant=le.TagsList),this.applyState(t)},t.prototype.triggerOnChange=function(e,t){void 0===this.props.value&&(t.data.value=e.slice()),this._valueItemsDuringOnChange=[],this.setItems(e,this._valueItemsDuringOnChange),t.events.push({type:"onChange"})},t.prototype.selectFocusedItem=function(e){var t=this.props,n=t.data,r=void 0===n?[]:n,o=t.virtual,i=this.getFocusedState().focusedIndex;void 0!==r[i-(o?o.skip:0)]&&this.handleItemClick(i,e)},t.prototype.setItems=function(e,t){t.length=0,t.push.apply(t,e)},t.prototype.getFocusedState=function(){var e,t=this.state.focusedIndex,n=void 0!==this.props.filter?this.props.filter:this.state.text,r=this.props,o=r.allowCustom,i=r.data,a=void 0===i?[]:i,s=r.dataItemKey,l=r.virtual,u=r.textField,c=r.focusedItemIndex,d=void 0===c?g:c,p=l&&l.skip||0;if(void 0!==t)return{focusedIndex:t,focusedItem:a[t-p],focusedType:fe.ListItem};var f=this.value;if(o&&n)return{focusedItem:null,focusedIndex:-1,focusedType:fe.CustomItem};if(n)return{focusedItem:a[e=d(a,n,u)],focusedIndex:e+p,focusedType:fe.ListItem};if(f.length){var h=f[f.length-1];return e=a.findIndex((function(e){return C(e,h,s)})),void 0!==a[e]?{focusedIndex:e+p,focusedItem:a[e],focusedType:fe.ListItem}:{focusedType:fe.None,focusedIndex:-1}}return 0===p?{focusedItem:a[0],focusedIndex:0,focusedType:fe.ListItem}:{focusedType:fe.None,focusedIndex:-1}},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),window.setTimeout((function(){return t._skipFocusEvent=!1}),0)},t.prototype.applyState=function(e){this.base.applyState(e),this._valueItemsDuringOnChange=null},t.displayName="MultiSelect",t.propTypes=me({},B.propTypes,{autoClose:a.bool,value:a.arrayOf(a.any),defaultValue:a.arrayOf(a.any),dataItemKey:a.string,placeholder:a.string,tags:a.arrayOf(a.shape({text:a.string,data:a.arrayOf(a.any)})),tagRender:a.func,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string}),t.defaultProps=me({},B.defaultProps,{autoClose:!0,required:!1}),t}(i.Component),be=Object(s.createPropsContext)(),ke=Object(s.withPropsContext)(be,ye);ke.displayName="KendoReactMultiSelect";var Ce=function(){return(Ce=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Oe=function(e){return i.createElement(F,Ce({},e,{listClassName:"k-grid-list"}))},we=function(){return(we=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},Se=Object(s.createPropsContext)(),De=i.forwardRef((function(e,t){var n=Object(s.usePropsContext)(Se,e),r=i.useRef(null),o=i.useRef(null),a=Object(s.getScrollbarWidth)(),l=n.columns,u=void 0===l?Ie.columns:l,c=n.popupSettings,d=void 0===c?Ie.popupSettings:c,p=n.onOpen,f=n.onClose,h=n.onFocus,m=n.onBlur,v=n.onChange,g=n.onFilterChange,y=n.onPageChange,b=Ee(n,["columns","popupSettings","onOpen","onClose","onFocus","onBlur","onChange","onFilterChange","onPageChange"]);i.useImperativeHandle(r,(function(){return{element:o.current&&o.current.element,focus:function(){o.current&&o.current.focus()},get value(){return o.current&&o.current.value},get name(){return o.current&&o.current.name},props:n}})),i.useImperativeHandle(t,(function(){return r.current}));var k=i.useMemo((function(){return"calc("+u.map((function(e){return t=e.width,n=Ie.width,t?"number"==typeof t?t+"px":t:n;var t,n})).filter(Boolean).join(" + ")+" + "+a+"px)"}),[u,a]),C=i.useMemo((function(){return i.createElement(i.Fragment,null,n.header,i.createElement("div",{className:"k-grid-header"},i.createElement("div",{className:"k-grid-header-wrap"},i.createElement("table",{role:"presentation"},i.createElement("colgroup",null,u.map((function(e,t){return i.createElement("col",{key:e.uniqueKey?e.uniqueKey:t,style:{width:e.width?e.width:Ie.width}})}))),i.createElement("tbody",null,i.createElement("tr",null,u.map((function(e,t){return i.createElement("th",{key:e.uniqueKey?e.uniqueKey:t,className:"k-header"},e.header||" ")}))))))))}),[n.header,u]),O=n.virtual?n.virtual.skip:0,w=i.useCallback((function(e,t){var r,o,a,l=u.map((function(e,n){return i.createElement("span",{className:"k-cell",style:{width:e.width?e.width:Ie.width},key:e.uniqueKey?e.uniqueKey:n},e.field?Object(s.getter)(e.field)(t.dataItem):"")})),c=void 0,d=n.data||[],p=t.index-O;void 0!==n.groupField&&(r=(a=Object(s.getter)(n.groupField))(d[p]),o=a(d[p-1]),r&&o&&r!==o&&(c=r)),c&&l.push(i.createElement("div",{key:"group",className:"k-cell k-group-cell"},i.createElement("span",null,c)));var f=i.cloneElement(e,we({},e.props),l);return n.itemRender?n.itemRender.call(void 0,f,t):f}),[u,n.groupField,n.itemRender,n.data,O]),E=i.useCallback((function(e,t){e&&e.call(void 0,we({},t,{target:r.current}))}),[]),S=i.useCallback((function(e){return E(p,e)}),[p]),D=i.useCallback((function(e){return E(f,e)}),[f]),x=i.useCallback((function(e){return E(h,e)}),[h]),I=i.useCallback((function(e){return E(m,e)}),[m]),T=i.useCallback((function(e){return E(v,e)}),[v]),_=i.useCallback((function(e){return E(g,e)}),[g]),P=i.useCallback((function(e){return E(y,e)}),[y]);i.useEffect((function(){Object(s.setScrollbarWidth)()}));var N=i.useCallback((function(e){return i.createElement(Oe,we({},e))}),[]);return i.createElement(ne,we({},b,{list:N,popupSettings:we({width:k},d,{popupClass:"k-dropdowngrid-popup",className:Object(s.classNames)("k-popup-flush",d.className)}),ref:o,header:C,itemRender:w,onOpen:S,onClose:D,onFocus:x,onBlur:I,onChange:T,onFilterChange:_,onPageChange:P}))})),xe=we({},ee.propTypes,{columns:a.any.isRequired}),Ie={columns:[],popupSettings:{},width:"200px"};De.displayName="KendoMultiColumnComboBox",De.propTypes=xe,De.defaultProps=Ie;function Te(e,t,n){if(Fe(e))return t[Number(e)];var r=t[Number(_e(e))],o=r&&r[n]||[];return o.length?Te(Pe(e),o,n):void 0}function _e(e){return je(e)?e:e.split("_")[0]}function Pe(e){if(je(e))return e;var t=e.indexOf("_");return e.substring(t+1)}function Ne(e){return Me("0",e)}function Me(e,t){return e=e.toString(),t?t+"_"+e:e}function Re(e){var t=e.lastIndexOf("_");return t<0?"":e.substring(0,t)}function je(e){return""===e||e.indexOf("_")<0}function Fe(e){return""!==e&&e.indexOf("_")<0}function Ae(e){return e.split("_")}function Le(e){var t=e.lastIndexOf("_");return t<0?e:e.substring(t+1)}var Ve=function(){function e(){this.objects=[]}return e.prototype.init=function(e){for(var t,n=0;n<e.length;n++)n%5e4==0&&(t={},this.objects.push(t)),t[e[n]]=!0},e.prototype.hasId=function(e){return this.objects.some((function(t){return t[e]}))},e}();function Be(e,t){var n=(e||"").split("."),r=t;return n.forEach((function(e){r=r?r[e]:void 0})),r}function ze(e,t){var n=Be(t,e);return Boolean(n&&n.length)}function He(e,t){return t.expanded(e)&&ze(e,t.getChildrenField())}function Ue(e,t,n,r){var o=[],i=new Ve;return i.init(e),function e(t,n,r,o,i,a){for(var s=0;s<r.length;s++){var l=r[s],u=Me(s,o);t.hasId(Be(n,l))&&i.push(u),ze(l,a)&&e(t,n,Be(a,l),u,i,a)}}(i,t,n,"",o,r),o}function Ke(e,t,n){for(var r=Ae(e),o=t,i=0;i<r.length;i++){var a=o[Number(r[i])];if(n.disabled(a))return!1;o=a[n.getChildrenField()]}return!0}function We(e,t,n,r,o){switch(r){case s.Keys.left:return Fe(t)||o.expanded(e)&&Ke(t,n,o)?t:Re(t);case s.Keys.right:return He(e,o)?Ne(t):t;case s.Keys.up:return i=Number(Le(t)),a=Re(t),i?function e(t,n,r){var o=Te(t,n,r.getChildrenField());return He(o,r)?e(Me(o[r.getChildrenField()].length-1,t),n,r):t}(Me(i-1,a),n,o):Fe(t)?t:a;case s.Keys.down:return He(e,o)?Ne(t):function e(t,n,r){var o=Re(t),i=o?Te(o,n,r.getChildrenField()):void 0,a=i?i[r.getChildrenField()]:n,s=Number(Le(t));return s<a.length-1?Me(s+1,o):i?e(o,n,r):void 0}(t,n,o)||t;case s.Keys.home:return"0";case s.Keys.end:return function(){var e,t=(n.length-1).toString(),r=n[n.length-1];for(;He(r,o);)e=r[o.getChildrenField()],t=Me(e.length-1,t),r=e[e.length-1];return t}();default:return t}var i,a}var qe=n(34),Ye=function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop),r=parseFloat(t.marginBottom);return e.offsetHeight+n+r},Ge=function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginLeft),r=parseFloat(t.marginRight);return e.offsetWidth+n+r},Ze={"animation-container":"k-animation-container","animation-container-relative":"k-animation-container-relative","animation-container-fixed":"k-animation-container-fixed","push-right-enter":"k-push-right-enter","push-right-appear":"k-push-right-appear","push-right-enter-active":"k-push-right-enter-active","push-right-appear-active":"k-push-right-appear-active","push-right-exit":"k-push-right-exit","push-right-exit-active":"k-push-right-exit-active","push-left-enter":"k-push-left-enter","push-left-appear":"k-push-left-appear","push-left-enter-active":"k-push-left-enter-active","push-left-appear-active":"k-push-left-appear-active","push-left-exit":"k-push-left-exit","push-left-exit-active":"k-push-left-exit-active","push-down-enter":"k-push-down-enter","push-down-appear":"k-push-down-appear","push-down-enter-active":"k-push-down-enter-active","push-down-appear-active":"k-push-down-appear-active","push-down-exit":"k-push-down-exit","push-down-exit-active":"k-push-down-exit-active","push-up-enter":"k-push-up-enter","push-up-appear":"k-push-up-appear","push-up-enter-active":"k-push-up-enter-active","push-up-appear-active":"k-push-up-appear-active","push-up-exit":"k-push-up-exit","push-up-exit-active":"k-push-up-exit-active",expand:"k-expand","expand-vertical-enter":"k-expand-vertical-enter","expand-vertical-appear":"k-expand-vertical-appear","expand-vertical-enter-active":"k-expand-vertical-enter-active","expand-vertical-appear-active":"k-expand-vertical-appear-active","expand-vertical-exit":"k-expand-vertical-exit","expand-vertical-exit-active":"k-expand-vertical-exit-active","expand-horizontal-enter":"k-expand-horizontal-enter","expand-horizontal-appear":"k-expand-horizontal-appear","expand-horizontal-enter-active":"k-expand-horizontal-enter-active","expand-horizontal-appear-active":"k-expand-horizontal-appear-active","expand-horizontal-exit":"k-expand-horizontal-exit","expand-horizontal-exit-active":"k-expand-horizontal-exit-active","child-animation-container":"k-child-animation-container","fade-enter":"k-fade-enter","fade-appear":"k-fade-appear","fade-enter-active":"k-fade-enter-active","fade-appear-active":"k-fade-appear-active","fade-exit":"k-fade-exit","fade-exit-active":"k-fade-exit-active","zoom-in-enter":"k-zoom-in-enter","zoom-in-appear":"k-zoom-in-appear","zoom-in-enter-active":"k-zoom-in-enter-active","zoom-in-appear-active":"k-zoom-in-appear-active","zoom-in-exit":"k-zoom-in-exit","zoom-in-exit-active":"k-zoom-in-exit-active","zoom-out-enter":"k-zoom-out-enter","zoom-out-appear":"k-zoom-out-appear","zoom-out-enter-active":"k-zoom-out-enter-active","zoom-out-appear-active":"k-zoom-out-appear-active","zoom-out-exit":"k-zoom-out-exit","zoom-out-exit-active":"k-zoom-out-exit-active","slide-in-appear":"k-slide-in-appear",centered:"k-centered","slide-in-appear-active":"k-slide-in-appear-active","slide-down-enter":"k-slide-down-enter","slide-down-appear":"k-slide-down-appear","slide-down-enter-active":"k-slide-down-enter-active","slide-down-appear-active":"k-slide-down-appear-active","slide-down-exit":"k-slide-down-exit","slide-down-exit-active":"k-slide-down-exit-active","slide-up-enter":"k-slide-up-enter","slide-up-appear":"k-slide-up-appear","slide-up-enter-active":"k-slide-up-enter-active","slide-up-appear-active":"k-slide-up-appear-active","slide-up-exit":"k-slide-up-exit","slide-up-exit-active":"k-slide-up-exit-active","slide-right-enter":"k-slide-right-enter","slide-right-appear":"k-slide-right-appear","slide-right-enter-active":"k-slide-right-enter-active","slide-right-appear-active":"k-slide-right-appear-active","slide-right-exit":"k-slide-right-exit","slide-right-exit-active":"k-slide-right-exit-active","slide-left-enter":"k-slide-left-enter","slide-left-appear":"k-slide-left-appear","slide-left-enter-active":"k-slide-left-enter-active","slide-left-appear-active":"k-slide-left-appear-active","slide-left-exit":"k-slide-left-exit","slide-left-exit-active":"k-slide-left-exit-active","reveal-vertical-enter":"k-reveal-vertical-enter","reveal-vertical-appear":"k-reveal-vertical-appear","reveal-vertical-enter-active":"k-reveal-vertical-enter-active","reveal-vertical-appear-active":"k-reveal-vertical-appear-active","reveal-vertical-exit":"k-reveal-vertical-exit","reveal-vertical-exit-active":"k-reveal-vertical-exit-active","reveal-horizontal-enter":"k-reveal-horizontal-enter","reveal-horizontal-appear":"k-reveal-horizontal-appear","reveal-horizontal-enter-active":"k-reveal-horizontal-enter-active","reveal-horizontal-appear-active":"k-reveal-horizontal-appear-active","reveal-horizontal-exit":"k-reveal-horizontal-exit","reveal-horizontal-exit-active":"k-reveal-horizontal-exit-active"},Xe=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qe=function(){return(Qe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},Je=Ze,et=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xe(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.children,r=t.style,o=t.appear,a=t.enter,l=t.exit,u=t.transitionName,c=t.transitionEnterDuration,d=t.transitionExitDuration,p=t.className,f=t.onEnter,h=t.onEntering,m=t.onEntered,v=t.onExit,g=t.onExiting,y=t.onExited,b=t.onAfterExited,k=t.mountOnEnter,C=t.unmountOnExit,O=t.animationEnteringStyle,w=t.animationEnteredStyle,E=t.animationExitingStyle,S=t.animationExitedStyle,D=$e(t,["children","style","appear","enter","exit","transitionName","transitionEnterDuration","transitionExitDuration","className","onEnter","onEntering","onEntered","onExit","onExiting","onExited","onAfterExited","mountOnEnter","unmountOnExit","animationEnteringStyle","animationEnteredStyle","animationExitingStyle","animationExitedStyle"]),x=Object(s.classNames)(p,Je["child-animation-container"]),I=Qe({transitionDelay:"0ms"},r),T={entering:Qe({transitionDuration:c+"ms"},O),entered:Qe({},w),exiting:Qe({transitionDuration:d+"ms"},E),exited:Qe({},S)},_={in:this.props.in,appear:o,enter:a,exit:l,mountOnEnter:k,unmountOnExit:C,timeout:{enter:c,exit:d},onEnter:function(t){f&&f.call(void 0,{animatedElement:t,target:e})},onEntering:function(t){h&&h.call(void 0,{animatedElement:t,target:e})},onEntered:function(t){m&&m.call(void 0,{animatedElement:t,target:e})},onExit:function(t){v&&v.call(void 0,{animatedElement:t,target:e})},onExiting:function(t){g&&g.call(void 0,{animatedElement:t,target:e})},onExited:function(t){b&&b.call(void 0,{animatedElement:t,target:e}),y&&y.call(void 0,{animatedElement:t,target:e})},classNames:{appear:Je[u+"-appear"]||u+"-appear",appearActive:Je[u+"-appear-active"]||u+"-appear-active",enter:Je[u+"-enter"]||u+"-enter",enterActive:Je[u+"-enter-active"]||u+"-enter-active",exit:Je[u+"-exit"]||u+"-exit",exitActive:Je[u+"-exit-active"]||u+"-exit-active"}};return i.createElement(qe.CSSTransition,Qe({},_,D),(function(t){return i.createElement("div",{style:Qe({},I,T[t]),className:x,ref:function(t){e._element=t}},n)}))},t.propTypes={in:a.bool,children:a.oneOfType([a.arrayOf(a.node),a.node]),transitionName:a.string.isRequired,className:a.string,appear:a.bool,enter:a.bool,exit:a.bool,transitionEnterDuration:a.number.isRequired,transitionExitDuration:a.number.isRequired,mountOnEnter:a.bool,unmountOnExit:a.bool,animationEnteringStyle:a.object,animationEnteredStyle:a.object,animationExitingStyle:a.object,animationExitedStyle:a.object},t.defaultProps={mountOnEnter:!0,unmountOnExit:!1,onEnter:s.noop,onEntering:s.noop,onEntered:s.noop,onExit:s.noop,onExiting:s.noop,onExited:s.noop,onAfterExited:s.noop,animationEnteringStyle:{},animationEnteredStyle:{},animationExitingStyle:{},animationExitedStyle:{}},t}(i.Component),tt={name:"@progress/kendo-react-animation",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639493314,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"},nt=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rt=function(){return(rt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},it=Ze,at=function(e){function t(t){var n=e.call(this,t)||this;return Object(s.validatePackage)(tt),n}return nt(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.style,r=e.children,o=e.component,a=e.className,l=e.childFactory,u=(e.stackChildren,e.componentChildStyle),c=e.componentChildClassName,d=ot(e,["id","style","children","component","className","childFactory","stackChildren","componentChildStyle","componentChildClassName"]),p={id:t,style:n,component:o,childFactory:l,className:Object(s.classNames)(it["animation-container"],it["animation-container-relative"],a)},f=i.Children.map(r||null,(function(e){return i.createElement(et,rt({},d,{style:u,className:c}),e)}));return i.createElement(qe.TransitionGroup,rt({},p),f)},t.propTypes={children:a.oneOfType([a.arrayOf(a.node),a.node]),childFactory:a.any,className:a.string,component:a.string,id:a.string,style:a.any,transitionName:a.string.isRequired,appear:a.bool.isRequired,enter:a.bool.isRequired,exit:a.bool.isRequired,transitionEnterDuration:a.number.isRequired,transitionExitDuration:a.number.isRequired},t.defaultProps={component:"div"},t}(i.Component),st=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lt=function(){return(lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ut=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ct=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}st(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=ut(e,["children"]);return i.createElement(at,lt({},{transitionName:"fade"},n),t)},t.propTypes={children:a.oneOfType([a.arrayOf(a.node),a.node]),childFactory:a.any,className:a.string,component:a.string,id:a.string,style:a.any},t.defaultProps={appear:!1,enter:!0,exit:!1,transitionEnterDuration:500,transitionExitDuration:500}}(i.Component),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),dt=function(){return(dt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},pt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ft=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}ct(t,e),t.prototype.render=function(){var e=this.props,t=e.direction,n=e.children,r=pt(e,["direction","children"]),o={transitionName:"expand-"+t};return i.createElement(at,dt({},o,r),n)},t.propTypes={children:a.oneOfType([a.arrayOf(a.node),a.node]),childFactory:a.any,className:a.string,direction:a.oneOf(["horizontal","vertical"]),component:a.string,id:a.string,style:a.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"vertical"}}(i.Component),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ht=function(){return(ht=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},mt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},vt={position:"absolute",top:"0",left:"0"},gt=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}ft(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.direction,r=mt(e,["children","direction"]);return i.createElement(at,ht({},r,{transitionName:"push-"+n,animationExitingStyle:this.props.stackChildren?vt:void 0}),t)},t.propTypes={children:a.oneOfType([a.arrayOf(a.node),a.node]),childFactory:a.any,className:a.string,direction:a.oneOf(["up","down","left","right"]),component:a.string,id:a.string,style:a.any,stackChildren:a.bool},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"right",stackChildren:!1}}(i.Component),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),yt=function(){return(yt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},bt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},kt=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}gt(t,e),t.prototype.render=function(){var e=this.props,t=e.direction,n=e.children,r=bt(e,["direction","children"]),o={transitionName:"slide-"+t};return i.createElement(at,yt({},o,r),n)},t.propTypes={children:a.oneOfType([a.arrayOf(a.node),a.node]),childFactory:a.any,className:a.string,direction:a.oneOf(["up","down","left","right"]),component:a.string,id:a.string,style:a.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"down"}}(i.Component),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Ct=function(){return(Ct=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},wt={position:"absolute",top:"0",left:"0"},Et=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}kt(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.direction,r=Ot(e,["children","direction"]);return i.createElement(at,Ct({},r,{transitionName:"zoom-"+n,animationExitingStyle:this.props.stackChildren?wt:void 0}),t)},t.propTypes={children:a.oneOfType([a.arrayOf(a.node),a.node]),childFactory:a.any,className:a.string,direction:a.oneOf(["in","out"]),component:a.string,id:a.string,style:a.any,stackChildren:a.bool},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"out",stackChildren:!1}}(i.Component),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),St=function(){return(St=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Dt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},xt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={maxHeight:void 0,maxWidth:void 0},t.componentWillEnter=function(e){var n=t.props,r=n.onEnter,o=n.onBeforeEnter;o&&o.call(void 0,e),t.updateContainerDimensions(e.animatedElement,(function(){r&&r.call(void 0,e)}))},t.componentIsEntering=function(e){var n=t.props.onEntering;t.updateContainerDimensions(e.animatedElement,(function(){n&&n.call(void 0,e)}))},t.componentWillExit=function(e){var n=t.props.onExit;t.updateContainerDimensions(e.animatedElement,(function(){n&&n.call(void 0,e)}))},t.updateContainerDimensions=function(e,n){void 0===n&&(n=s.noop);var r=e.firstChild;if(r){var o=Ye(r),i=Ge(r);t.setState({maxHeight:o,maxWidth:i},n)}},t}return Et(t,e),t.prototype.render=function(){var e,t=this.props,n=t.direction,r=t.children,o=t.childFactory,a=Dt(t,["direction","children","childFactory"]),s=this.state,l=s.maxHeight,u=s.maxWidth,c={maxHeight:(e="vertical"===n?{maxHeight:l?l+"px":null}:{maxWidth:u?u+"px":null}).maxHeight,maxWidth:e.maxWidth};return i.createElement(at,St({},a,{childFactory:function(t){var n=o?o(t):t;return n.props.in?n:i.cloneElement(n,St({},n.props,{style:St({},n.props.style,{maxHeight:e.maxHeight,maxWidth:e.maxWidth})}))},onEnter:this.componentWillEnter,onEntering:this.componentIsEntering,onExit:this.componentWillExit,animationEnteringStyle:c,transitionName:"reveal-"+n}),r)},t.propTypes={children:a.oneOfType([a.arrayOf(a.node),a.node]),childFactory:a.any,className:a.string,direction:a.oneOf(["horizontal","vertical"]),component:a.string,id:a.string,style:a.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"vertical"},t}(i.Component),It=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tt=function(){return(Tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},_t=i.createContext((function(e){return e})),Pt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.itemGuid=Object(s.guid)(),t.onCheckChange=function(e){t.props.onCheckChange(e,t.item,t.itemId)},t.onExpandChange=function(e){t.props.onExpandChange(e,t.item,t.itemId)},t.onItemClick=function(e){t.props.onItemClick(e,t.item,t.itemId)},t.onPress=function(e){t.props.onPress(e.event,t.item,t.itemId)},t.onDrag=function(e){t.props.onDrag(e.event,t.item,t.itemId)},t.onRelease=function(e){t.props.onRelease(e.event,t.item,t.itemId)},t.assignDraggableMeta=function(e){e&&(e._kendoItemId=t.props.itemId,e._kendoTreeViewGuid=t.props.treeGuid)},t}return It(t,e),t.prototype.render=function(){var e=this,t=this.renderSubitemsIfApplicable(),n=this.renderItemInPart();return i.createElement("li",{className:this.getRootClassName(),tabIndex:this.tabIndex,role:"treeitem","aria-expanded":this.ariaExpanded,"aria-selected":this.ariaSelected,"aria-checked":this.ariaChecked,"aria-disabled":!!this.fieldsSvc.disabled(this.item)||void 0,ref:function(t){return e.itemElement=t}},i.createElement("div",{className:"k-mid",ref:this.assignDraggableMeta},this.renderExpandIcon(),this.renderCheckbox(),this.props.draggable?i.createElement(s.Draggable,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease},n):n),this.props.animate?i.createElement(xt,{transitionEnterDuration:200,transitionExitDuration:200,style:{display:"block"},children:t}):t)},t.prototype.componentDidMount=function(){var e=this.props.focusedItemId,t=this.itemId;e&&e===t&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement&&(this.checkboxElement.indeterminate=this.fieldsSvc.checkIndeterminate(this.item))},t.prototype.componentDidUpdate=function(e){var t=this.props.focusedItemId;if(t&&t!==e.focusedItemId&&t===this.itemId&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement){var n=this.fieldsSvc.checkIndeterminate(this.item);n!==e.fieldsService.checkIndeterminate(e.item)&&(this.checkboxElement.indeterminate=n)}},t.prototype.renderCheckbox=function(){var e=this;return this.props.checkboxes?i.createElement("div",{className:"k-checkbox-wrapper"},i.createElement("input",{type:"checkbox",className:"k-checkbox",checked:Boolean(this.fieldsSvc.checked(this.item)),id:this.itemGuid,tabIndex:-1,onChange:this.onCheckChange,ref:function(t){return e.checkboxElement=t}}),i.createElement("label",{className:"k-checkbox-label",htmlFor:this.itemGuid})):void 0},t.prototype.renderExpandIcon=function(){return this.props.expandIcons&&(this.fieldsSvc.hasChildren(this.item)||ze(this.item,this.fieldsSvc.getChildrenField()))?i.createElement("span",{className:this.getIconClassName(),onClick:this.onExpandChange}):void 0},t.prototype.renderSubitemsIfApplicable=function(){var e=this;return He(this.item,this.fieldsSvc)?i.createElement("ul",{className:"k-content",role:"group"},this.fieldsSvc.children(this.item).map((function(t,n){return i.createElement(Nt,{item:t,itemId:Me(n,e.itemId),treeGuid:e.props.treeGuid,animate:e.props.animate,focusedItemId:e.props.focusedItemId,tabbableItemId:e.props.tabbableItemId,fieldsService:e.props.fieldsService,itemUI:e.props.itemUI,checkboxes:e.props.checkboxes,ariaMultiSelectable:e.props.ariaMultiSelectable,onItemClick:e.props.onItemClick,onFocusDomElNeeded:e.props.onFocusDomElNeeded,draggable:e.props.draggable,onPress:e.props.onPress,onDrag:e.props.onDrag,onRelease:e.props.onRelease,expandIcons:e.props.expandIcons,onExpandChange:e.props.onExpandChange,onCheckChange:e.props.onCheckChange,key:n})}))):void 0},t.prototype.renderItemInPart=function(){return i.createElement("span",{className:this.getContentClassName(),style:{touchAction:"none"},onClick:this.onItemClick},this.props.itemUI?i.createElement(this.props.itemUI,{item:this.item,itemHierarchicalIndex:this.itemId}):this.fieldsSvc.text(this.item))},Object.defineProperty(t.prototype,"fieldsSvc",{get:function(){return this.props.fieldsService},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemId",{get:function(){return this.props.itemId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{get:function(){return(this.props.focusedItemId||this.props.tabbableItemId)===this.itemId?0:-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){return this.fieldsSvc.hasChildren(this.item)||ze(this.item,this.fieldsSvc.getChildrenField())?Boolean(this.fieldsSvc.expanded(this.item)):void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaChecked",{get:function(){return this.props.checkboxes?this.fieldsSvc.checked(this.item)?"true":this.fieldsSvc.checkIndeterminate(this.item)?"mixed":"false":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaSelected",{get:function(){return!!this.fieldsSvc.selected(this.item)||(this.props.ariaMultiSelectable?!!this.fieldsSvc.disabled(this.item)&&void 0:void 0)},enumerable:!0,configurable:!0}),t.prototype.getIconClassName=function(){return Object(s.classNames)("k-icon",{"k-i-expand":!this.fieldsSvc.expanded(this.item),"k-i-collapse":this.fieldsSvc.expanded(this.item),"k-i-loading":this.fieldsSvc.expanded(this.item)&&!ze(this.item,this.fieldsSvc.getChildrenField())})},t.prototype.getRootClassName=function(){return Object(s.classNames)("k-item k-treeview-item",{"k-state-disabled":this.fieldsSvc.disabled(this.item)})},t.prototype.getContentClassName=function(){return Object(s.classNames)("k-in",{"k-state-focused":this.props.focusedItemId===this.itemId,"k-state-selected":this.fieldsSvc.selected(this.item)})},t}(i.Component),Nt=i.forwardRef((function(e,t){var n=i.useContext(_t).call(void 0,e);return i.createElement(Pt,Tt({ref:t},n))}));Nt.displayName="TreeViewItem";var Mt=function(){function e(e){this.expandField=e.expandField,this.selectField=e.selectField,this.hasChildrenField=e.hasChildrenField,this.childrenField=e.childrenField,this.textField=e.textField,this.disableField=e.disableField,this.checkField=e.checkField,this.checkIndeterminateField=e.checkIndeterminateField,this.focusIdField=e.focusIdField}return e.prototype.expanded=function(e){return Be(this.expandField,e)},e.prototype.selected=function(e){return Be(this.selectField,e)},e.prototype.text=function(e){return Be(this.textField,e)},e.prototype.disabled=function(e){return Be(this.disableField,e)},e.prototype.hasChildren=function(e){return Be(this.hasChildrenField,e)},e.prototype.children=function(e){var t=Be(this.childrenField,e);return t||[]},e.prototype.checked=function(e){return Be(this.checkField,e)},e.prototype.checkIndeterminate=function(e){return Be(this.checkIndeterminateField,e)},e.prototype.focusId=function(e){return this.focusIdField&&Be(this.focusIdField,e)},e.prototype.getChildrenField=function(){return this.childrenField},e}(),Rt={name:"@progress/kendo-react-treeview",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639493641,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"},jt=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ft=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:"0"},n.allowExplicitFocus=!1,n.treeGuid=Object(s.guid)(),n._element=null,n.onFocusDomElNeeded=function(e){n.allowExplicitFocus&&n.focusDomItem(e)},n.onCheckChange=function(e,t,r){n.setFocus(r),n.dispatchCheckChange(e,t,r)},n.onExpandChange=function(e,t,r){n.setFocus(r),n.dispatchExpandChange(e,t,r)},n.onPress=function(e,t,r){n.props.onItemDragStart&&n.props.onItemDragStart.call(void 0,{target:n,item:t,itemHierarchicalIndex:r})},n.onDrag=function(e,t,r){var o=e.pageX,i=e.pageY,a=e.clientX,s=e.clientY;n.props.onItemDragOver&&n.props.onItemDragOver.call(void 0,{target:n,item:t,itemHierarchicalIndex:r,pageX:o,pageY:i,clientX:a,clientY:s})},n.onRelease=function(e,t,r){var o=e.pageX,i=e.pageY,a=e.clientX,s=e.clientY;n.props.onItemDragEnd&&n.props.onItemDragEnd.call(void 0,{target:n,item:t,itemHierarchicalIndex:r,pageX:o,pageY:i,clientX:a,clientY:s})},n.onItemClick=function(e,t,r){n.setFocus(r),n.dispatchItemClick(e,t,r)},n.onFocus=function(){clearTimeout(n.blurRequest),void 0===n.state.focusedItemId&&n.data.length&&n.setFocus(n.state.tabbableItemId)},n.onBlur=function(){clearTimeout(n.blurRequest),n.blurRequest=window.setTimeout((function(){return n.setFocus(void 0)}),0)},n.onKeyDown=function(e){var t=n.getFocusedItem();if(t){var r=We(t,n.state.focusedItemId,n.data,e.keyCode,n.fieldsSvc);r!==n.state.focusedItemId&&(e.preventDefault(),n.allowExplicitFocus=!0,n.setFocus(r)),n.dispatchEventsOnKeyDown(e,t)}},Object(s.validatePackage)(Rt),n}return jt(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;return this.fieldsSvc=new Mt(this.props),i.createElement("div",{className:"k-widget k-treeview"+(this.props.className?" "+this.props.className:""),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,role:"tree","aria-multiselectable":!!this.ariaMultiSelectable||void 0,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],ref:function(t){return e._element=t},tabIndex:this.props.tabIndex},i.createElement("ul",{className:"k-treeview-lines k-group",role:"group"},this.data.map((function(t,n){return i.createElement(Nt,{item:t,itemId:n.toString(),treeGuid:e.treeGuid,animate:e.props.animate,focusedItemId:e.state.focusedItemId,tabbableItemId:e.state.tabbableItemId,fieldsService:e.fieldsSvc,itemUI:e.props.item,checkboxes:e.props.checkboxes,ariaMultiSelectable:e.ariaMultiSelectable,onItemClick:e.onItemClick,onFocusDomElNeeded:e.onFocusDomElNeeded,draggable:e.props.draggable,onPress:e.onPress,onDrag:e.onDrag,onRelease:e.onRelease,expandIcons:e.props.expandIcons,onExpandChange:e.onExpandChange,onCheckChange:e.onCheckChange,key:n})}))))},t.prototype.componentDidUpdate=function(){this.allowExplicitFocus=!1,this.refocusDueToFocusIdField()},t.prototype.dispatchEventsOnKeyDown=function(e,t){var n=this,r=function(){return Ke(n.state.focusedItemId,n.data,n.fieldsSvc)};e.keyCode===s.Keys.left&&this.fieldsSvc.expanded(t)&&r()||e.keyCode===s.Keys.right&&!this.fieldsSvc.expanded(t)&&(this.fieldsSvc.hasChildren(t)||ze(t,this.props.childrenField))&&r()?this.dispatchExpandChange(e,t,this.state.focusedItemId):e.keyCode===s.Keys.enter&&r()?this.dispatchItemClick(e,t,this.state.focusedItemId):e.keyCode===s.Keys.space&&r()&&(e.preventDefault(),this.dispatchCheckChange(e,t,this.state.focusedItemId))},t.prototype.setFocus=function(e){if(e)if(this.fieldsSvc.focusIdField){var t=this.getItemById(e);this.setState({focusedItemId:e,focusedItemPublicId:this.fieldsSvc.focusId(t)})}else this.setState({focusedItemId:e});else this.setState((function(e){return{focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:e.focusedItemId}}))},t.prototype.getFocusedItem=function(){return this.state.focusedItemId?this.getItemById(this.state.focusedItemId):void 0},t.prototype.getItemById=function(e){return Te(e,this.data,this.props.childrenField||"items")},t.prototype.dispatchCheckChange=function(e,t,n){Object(s.dispatchEvent)(this.props.onCheckChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchExpandChange=function(e,t,n){Object(s.dispatchEvent)(this.props.onExpandChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchItemClick=function(e,t,n){Object(s.dispatchEvent)(this.props.onItemClick,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.refocusDueToFocusIdField=function(){if(this.fieldsSvc.focusIdField){var e=this.state.focusedItemPublicId;if(e){var t=this.props.getFocusHierarchicalIndex?this.props.getFocusHierarchicalIndex(e):(n=e,r=this.fieldsSvc.focusIdField,o=this.data,i=this.props.childrenField,(a=Ue([n],r,o,i)).length?a[0]:void 0);t!==this.state.focusedItemId&&(this.allowExplicitFocus=!0,this.setState({focusedItemId:t}))}}var n,r,o,i,a},Object.defineProperty(t.prototype,"ariaMultiSelectable",{get:function(){return!0===this.props["aria-multiselectable"]||"true"===this.props["aria-multiselectable"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.data||[]},enumerable:!0,configurable:!0}),t.prototype.focusDomItem=function(e){e.focus()},Object.defineProperty(t.prototype,"guid",{get:function(){return this.treeGuid},enumerable:!0,configurable:!0}),t.propTypes={data:a.arrayOf(a.any),animate:a.bool,tabIndex:a.number,focusIdField:a.string,getHierarchicalIndexById:a.func,onExpandChange:a.func,onItemClick:a.func,expandField:a.string,selectField:a.string,childrenField:a.string,hasChildrenField:a.string,textField:a.string,disableField:a.string,item:a.any,"aria-multiselectable":function(e,t,n){return void 0!==e[t]&&!0!==e[t]&&!1!==e[t]&&"true"!==e[t]&&"false"!==e[t]?new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Validation failed."):null},"aria-label":a.string,"aria-labelledby":a.string},t.defaultProps={animate:!0,expandField:"expanded",selectField:"selected",hasChildrenField:"hasChildren",childrenField:"items",textField:"text",disableField:"disabled",checkField:"checked",checkIndeterminateField:"checkIndeterminate"},t}(i.Component);var At=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lt=function(){return(Lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={visible:!1,top:0,left:0,text:"",operationClassName:"k-i-cancel"},t}At(t,e),t.prototype.render=function(){var e={top:this.state.top+"px",left:this.state.left+"px"};return this.state.visible&&i.createElement("div",{className:"k-header k-drag-clue",style:Lt({},this.props.style,e)},i.createElement("span",{className:Object(s.classNames)("k-icon k-drag-status k-icon-with-modifier",this.state.operationClassName)},i.createElement("span",{className:"k-icon k-icon-modifier"})),this.state.text)},t.prototype.show=function(e,t,n,r){this.setState({visible:!0,top:e,left:t,text:n,operationClassName:r})},t.prototype.hide=function(){this.setState({visible:!1})},t.defaultProps={style:{display:"block",position:"absolute",zIndex:2e4,padding:"4px 6px"}}})(i.PureComponent),function(){function e(e){this.event=e,this.initialized=!1,this.itemId=e.itemHierarchicalIndex,this.treeViewGuid=e.target.guid}e.prototype.init=function(){return this.initialized||(this.setDestimationMeta(document.elementFromPoint(this.event.clientX,this.event.clientY)),this.initialized=!0),this},Object.defineProperty(e.prototype,"isDropAllowed",{get:function(){return!!(this.initialized&&this.destItemId&&this.destTreeViewGuid)&&!(this.destTreeViewGuid+"_"+this.destItemId+"_").startsWith(this.treeViewGuid+"_"+this.itemId+"_")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destinationMeta",{get:function(){return{itemHierarchicalIndex:this.destItemId,treeViewGuid:this.destTreeViewGuid}},enumerable:!0,configurable:!0}),e.prototype.getDropOperation=function(){if(this.initialized&&this.isDropAllowed){var e=this.destDomNodeWithMeta.getBoundingClientRect(),t=e.top;return t+e.height-this.event.clientY<6?"after":this.event.clientY-t<6?"before":"child"}},e.prototype.setDestimationMeta=function(e){for(var t=e;t&&!t._kendoItemId;)t=t.parentNode;t&&t._kendoItemId&&(this.destDomNodeWithMeta=t,this.destItemId=t._kendoItemId,this.destTreeViewGuid=t._kendoTreeViewGuid)}}();function Vt(e,t,n){var r=i.useState(t),o=r[0],a=r[1];return i.useEffect((function(){void 0!==o&&e.current&&a(e.current.offsetWidth)}),n),o}var Bt=function(e){return i.createElement("div",{className:"k-nodata"},i.createElement("div",null,e.children))},zt=function(){return(zt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ht=function(e){return i.createElement(i.Fragment,null,e.children)},Ut=function(e){return e.split("_").map((function(e){return parseInt(e,10)}))},Kt="selected",Wt="items",qt={animate:!0,width:"200px",height:"200px"},Yt=!1,Gt=!0,Zt=Object(s.createPropsContext)(),Xt=i.forwardRef((function(e,t){Object(s.validatePackage)(z);var n=Object(s.usePropsContext)(Zt,e),r=i.useMemo((function(){return Object(s.guid)()}),[]),o=n.id||r,a=n.data,c=void 0===a?[]:a,d=n.dataItemKey,p=n.popupSettings,f=void 0===p?{}:p,h=n.style,v=void 0===h?{}:h,g=n.opened,y=n.disabled,k=n.onOpen,O=void 0===k?s.noop:k,w=n.onClose,E=void 0===w?s.noop:w,S=n.placeholder,D=n.label,x=n.name,I=n.selectField,T=void 0===I?Kt:I,R=n.subItemsField,j=void 0===R?Wt:R,F=n.validationMessage,A=n.valid,L=n.required,V=void 0===L?Yt:L,B=n.validityStyles,H=void 0===B?Gt:B,U=Object(s.getTabIndex)(n.tabIndex,y),K=i.useRef(null),W=i.useRef(null),q=i.useRef(null),Y=i.useRef(null),G=i.useRef(null),Z=i.useRef(!1),X=i.useState(void 0),Q=X[0],$=X[1],J=void 0!==n.value,ee=J?n.value:void 0!==Q?Q:n.defaultValue,te=m(ee),ne=te?b(ee,n.textField):"",re=function(e,t){var n=e.validationMessage,r=e.valid,o=e.required;return{customError:void 0!==n,valid:Boolean(void 0!==r?r:!o||t),valueMissing:!t}}({validationMessage:F,valid:A,required:V},te),oe=i.useCallback((function(){return W.current&&W.current.focus()}),[]);i.useImperativeHandle(K,(function(){return{props:n,element:W.current,actionElement:W.current,focus:oe}})),i.useImperativeHandle(t,(function(){return K.current}));var ie=Object(s.useRtl)(W,n.dir),ae=void 0!==f.width?f.width:void 0!==v.width?v.width:qt.width,se=Vt(W,ae),le=zt({width:se},void 0!==ie?{direction:ie}:{}),ue=i.useState(!1),ce=ue[0],de=ue[1],pe=void 0!==g?g:ce,fe=i.useState(!1),he=fe[0],me=fe[1],ve=i.useState(""),ge=ve[0],ye=ve[1],be=i.useCallback((function(){Y.current&&Y.current.setCustomValidity&&Y.current.setCustomValidity(re.valid?"":void 0===F?"Please select a value from the list!":F)}),[F,re]);i.useEffect(be);var ke=i.useCallback((function(e){if(!pe){if(O){var t=zt({},e);O.call(void 0,t)}void 0===g&&de(!0)}}),[pe,g,O]),Ce=i.useCallback((function(e){if(pe){if(E){var t=zt({},e);E.call(void 0,t)}void 0===g&&de(!1)}}),[pe,g,E]),Oe=i.useCallback((function(e){if(!e.isDefaultPrevented()&&K.current){me(!0);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:K.current};(pe?Ce:ke)(t)}}),[pe,g,O,E]),we=i.useCallback((function(e){Z.current=!0,e(),window.setTimeout((function(){return Z.current=!1}),0)}),[]),Ee=i.useCallback((function(e){var t=e.keyCode,n=e.altKey,r=G.current&&G.current.element;if(K.current&&(!e.isDefaultPrevented()||q.current!==e.target)){var o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:K.current};if(pe)if(t===s.Keys.esc||n&&t===s.Keys.up)Ce(o);else if(r&&r.querySelector(".k-state-focused")&&(t===s.Keys.up||t===s.Keys.down||t===s.Keys.left||t===s.Keys.right||t===s.Keys.home||t===s.Keys.end)){if(t===s.Keys.up&&q.current){var i=Array.from(r.querySelectorAll(".k-treeview-item")),a=i.slice().reverse().find((function(e){return Boolean(e&&e.querySelector(".k-state-focused"))}));if(a&&0===i.indexOf(a))return we((function(){De(q.current)}))}we(s.noop)}else t===s.Keys.down&&we((function(){De(q.current||r)}));else n&&t===s.Keys.down&&ke(o)}}),[pe,g,O,E]),Se=i.useCallback((function(e){var t=e.keyCode;e.altKey||t!==s.Keys.up&&t!==s.Keys.down||(e.preventDefault(),we(t===s.Keys.up?function(){De(W.current)}:function(){De(G.current&&G.current.element)}))}),[]),De=i.useCallback((function(e){e&&we((function(){return e.focus()}))}),[]),xe=i.useCallback((function(){!he&&pe?Ce({target:K.current}):n.filterable?De(q.current):De(G.current&&G.current.element)}),[E,n.filterable,he,g,pe]),Ie=i.useCallback((function(){he&&De(W.current)}),[he]),Te=i.useCallback((function(e){if(!he&&!Z.current&&(me(!0),n.onFocus&&K.current)){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:K.current};n.onFocus.call(void 0,t)}}),[he,n.onFocus]),_e=i.useCallback((function(e){if(he&&!Z.current&&K.current){me(!1);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:K.current};if(n.onBlur){var r=zt({},t);n.onBlur.call(void 0,r)}Ce(t)}}),[he,n.onBlur,pe,g,E]),Pe=i.useCallback((function(){he&&we(s.noop)}),[he]),Ne=i.useCallback((function(e,t,r){if(n.onChange){var o=zt({value:t,level:r?Ut(r):[]},e);n.onChange.call(void 0,o)}J||$(t)}),[n.onChange,J]),Me=i.useCallback((function(e){if(!C(e.item,ee,d)&&K.current){var t=e.item,n=e.itemHierarchicalIndex,r=e.nativeEvent,o={syntheticEvent:e.syntheticEvent,nativeEvent:r,target:K.current};Ne(o,t,n),Ce(o)}}),[J,ee,n.onChange,d,pe,g,E]),Re=i.useCallback((function(e){if(K.current){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:K.current};Ne(t,null),Ce(t),e.preventDefault()}}),[J,n.onChange,pe,g,E]),je=i.useCallback((function(e){if(n.onExpandChange&&K.current){var t=e.item,r=e.itemHierarchicalIndex,o=e.nativeEvent,i=e.syntheticEvent,a={level:Ut(r),item:t,nativeEvent:o,syntheticEvent:i,target:K.current};n.onExpandChange.call(void 0,a)}}),[n.onExpandChange]),Fe=i.useCallback((function(e){if(n.onFilterChange&&K.current){var t={filter:{field:n.textField,operator:"contains",value:e.target.value},syntheticEvent:e,nativeEvent:e.nativeEvent,target:K.current};n.onFilterChange.call(void 0,t),void 0===n.filter&&ye(e.target.value)}}),[n.onFilterChange,n.filter,n.textField]),Ae=i.useMemo((function(){return J||!te?c:Object(s.mapTree)(c,j,(function(e){var t;return Object(s.extendDataItem)(e,j,((t={})[T]=C(e,ee,d),t))}))}),[c,ee,J,te,T,j]),Le=n.listNoData||Bt,Ve=n.valueHolder||Ht,Be=Object(_.useLocalization)(),ze=!H||re.valid,He=i.createElement("span",{className:Object(s.classNames)("k-widget k-dropdowntree k-dropdowntree-clearable",n.className),tabIndex:U,accessKey:n.accessKey,id:o,style:D?zt({},v,{width:void 0}):v,dir:ie,ref:W,onKeyDown:y?void 0:Ee,onMouseDown:Pe,onFocus:Te,onBlur:_e,role:"listbox","aria-haspopup":"true","aria-expanded":pe,"aria-disabled":y,"aria-label":D,"aria-labelledby":n.ariaLabelledBy,"aria-describedby":n.ariaDescribedBy},i.createElement("span",{className:Object(s.classNames)("k-dropdown-wrap",{"k-state-focused":he,"k-state-disabled":y,"k-state-invalid":!ze}),onClick:y?void 0:Oe},i.createElement("span",{className:"k-input"},i.createElement(Ve,{item:ee},ne||S)),te&&!y&&i.createElement("span",{onClick:Re,className:"k-icon k-clear-value k-i-close",title:Be.toLanguageString(N,M[N]),role:"button",tabIndex:-1,onMouseDown:function(e){return e.preventDefault()}}),i.createElement("span",{className:"k-select","aria-label":"select"},i.createElement("span",{className:Object(s.classNames)("k-icon",{"k-i-arrow-60-down":!n.loading,"k-i-loading":n.loading})})),i.createElement("select",{name:x,ref:Y,tabIndex:-1,"aria-hidden":!0,title:D,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},i.createElement("option",{value:n.valueMap?n.valueMap.call(void 0,ee):ee}))),i.createElement(u.a,{className:Object(s.classNames)("k-list-container k-group k-reset k-popup-dropdowntree",f.className,{"k-rtl":"rtl"===ie}),popupClass:f.popupClass,style:le,animate:f.animate,anchor:W.current,show:pe,onOpen:xe,onClose:Ie,appendTo:f.appendTo},n.filterable&&i.createElement("span",{className:"k-list-filter"},i.createElement("input",{className:"k-textbox",tabIndex:U,ref:q,value:void 0===n.filter?ge:n.filter,onChange:Fe,onKeyDown:Se}),i.createElement("span",{className:"k-icon k-i-zoom"})),c.length>0?i.createElement(Ft,{ref:G,tabIndex:U,data:Ae,focusIdField:d,textField:n.textField,selectField:T,expandField:n.expandField,childrenField:j,expandIcons:!0,onItemClick:Me,onExpandChange:je,item:n.item}):i.createElement(Le,null,Be.toLanguageString(P,M[P]))));return D?i.createElement(l.FloatingLabel,{label:D,editorValue:ne,editorPlaceholder:S,editorValid:ze,editorDisabled:y,editorId:o,style:{width:v?v.width:void 0},children:He,dir:ie}):He})),Qt={opened:a.bool,disabled:a.bool,dir:a.string,tabIndex:a.number,accessKey:a.string,data:a.array,value:a.any,valueMap:a.func,placeholder:a.string,dataItemKey:a.string.isRequired,textField:a.string.isRequired,selectField:a.string,expandField:a.string,subItemsField:a.string,className:a.string,style:a.object,label:a.string,validationMessage:a.string,validityStyles:a.bool,valid:a.bool,required:a.bool,name:a.string,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,filterable:a.bool,filter:a.string,loading:a.bool,popupSettings:a.shape({animate:a.oneOfType([a.bool,a.shape({openDuration:a.number,closeDuration:a.number})]),popupClass:a.string,className:a.string,appendTo:a.any,width:a.oneOfType([a.string,a.number]),height:a.oneOfType([a.string,a.number])}),onOpen:a.func,onClose:a.func,onFocus:a.func,onBlur:a.func,onChange:a.func,onFilterChange:a.func,onExpandChange:a.func,item:a.func,valueHolder:a.func,listNoData:a.func};Xt.displayName="KendoReactDropDownTree",Xt.propTypes=Qt;var $t=function(){return($t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Jt="checkField",en="checkIndeterminateField",tn="items",nn={animate:!0,width:"200px",height:"200px"},rn=!1,on=!0,an=Object(s.createPropsContext)(),sn=i.forwardRef((function(e,t){var n=Object(s.usePropsContext)(an,e);Object(s.validatePackage)(z);var r=i.useMemo((function(){return Object(s.guid)()}),[]),o=n.id||r,a=n.data,c=void 0===a?[]:a,d=n.dataItemKey,p=n.popupSettings,f=void 0===p?{}:p,h=n.style,m=void 0===h?{}:h,v=n.opened,g=n.disabled,y=n.onOpen,k=void 0===y?s.noop:y,O=n.onClose,w=void 0===O?s.noop:O,S=n.placeholder,D=n.label,x=n.name,I=n.checkField,T=void 0===I?Jt:I,R=n.checkIndeterminateField,j=void 0===R?en:R,F=n.subItemsField,A=void 0===F?tn:F,L=n.validationMessage,V=n.valid,B=n.tags,H=n.value,U=n.required,K=void 0===U?rn:U,W=n.validityStyles,q=void 0===W?on:W,Y=Object(s.getTabIndex)(n.tabIndex,g),G=i.useRef(null),Z=i.useRef(null),X=i.useRef(null),Q=i.useRef(null),$=i.useRef(null),J=i.useRef(!1),ee=i.useRef([]),te=i.useRef(null),ne=i.useState(),re=ne[0],oe=ne[1],ie=i.useState(!1),ae=ie[0],se=ie[1],le=i.useState(!1),ue=le[0],ce=le[1],de=i.useState(""),fe=de[0],he=de[1],me=void 0!==v?v:ae,ve=Boolean(Array.isArray(H)&&H.length),ge=function(e,t){var n=e.validationMessage,r=e.valid,o=e.required;return{customError:void 0!==n,valid:Boolean(void 0!==r?r:!o||t),valueMissing:!t}}({validationMessage:L,valid:V,required:K},ve),ye=Object(s.useRtl)(Z,n.dir),be=void 0!==f.width?f.width:void 0!==m.width?m.width:nn.width,ke=Vt(Z,be),Ce=$t({width:ke},void 0!==ye?{direction:ye}:{}),Oe=i.useCallback((function(){return Z.current&&Z.current.focus()}),[]);ee.current=void 0===B?(H||[]).map((function(e){return{text:b(e,n.textField),data:[e]}})):B.slice(),i.useImperativeHandle(G,(function(){return{props:n,element:Z.current,actionElement:Z.current,focus:Oe}})),i.useImperativeHandle(t,(function(){return G.current}));var we=i.useCallback((function(){Q.current&&Q.current.setCustomValidity&&Q.current.setCustomValidity(ge.valid?"":void 0===L?"Please select a value from the list!":L)}),[L,ge]);i.useEffect(we),i.useEffect((function(){te.current&&me&&te.current.setPosition(te.current._popup)}),[H,me]);var Ee=i.useCallback((function(e,t,r){if(n.onChange){var o=$t({items:t,operation:r},e);n.onChange.call(void 0,o)}}),[n.onChange]),Se=i.useCallback((function(e){if(!C(e.item,H,d)&&G.current){var t=e.item,n=e.nativeEvent,r={syntheticEvent:e.syntheticEvent,nativeEvent:n,target:G.current};Ee(r,[t],"toggle")}}),[H,d,Ee]),De=i.useCallback((function(e){if(!me){if(k){var t=$t({},e);k.call(void 0,t)}void 0===v&&se(!0)}}),[me,v,k]),xe=i.useCallback((function(e){if(me){if(w){var t=$t({},e);w.call(void 0,t)}void 0===v&&se(!1)}}),[me,v,w]),Ie=i.useCallback((function(e){J.current=!0,e(),window.setTimeout((function(){return J.current=!1}),0)}),[]),Te=i.useCallback((function(e){e&&Ie((function(){return e.focus()}))}),[Ie]),_e=i.useCallback((function(){!ue&&me?xe({target:G.current}):n.filterable?Te(X.current):Te($.current&&$.current.element)}),[ue,me,Te,xe,n.filterable]),Pe=i.useCallback((function(){ue&&Te(Z.current)}),[ue,Te]),Ne=i.useCallback((function(e){if(!ue&&!J.current&&(ce(!0),n.onFocus&&G.current)){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};n.onFocus.call(void 0,t)}}),[ue,n.onFocus]),Me=i.useCallback((function(e){if(ue&&!J.current&&G.current){ce(!1);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};if(n.onBlur){var r=$t({},t);n.onBlur.call(void 0,r)}xe(t)}}),[ue,n.onBlur,me,v,w]),Re=i.useCallback((function(){ue&&Ie(s.noop)}),[ue,Ie]),je=i.useCallback((function(e){if(!e.isDefaultPrevented()&&G.current){ce(!0);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};me||De(t)}}),[me,De]),Fe=i.useCallback((function(e){var t=e.keyCode,n=e.altKey,r=$.current&&$.current.element;if(G.current&&(!e.isDefaultPrevented()||X.current!==e.target)){var o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};if(H&&H.length>0&&(t===s.Keys.left||t===s.Keys.right||t===s.Keys.home||t===s.Keys.end||t===s.Keys.delete)){var i=ee.current,a=re?i.findIndex((function(e){return E(e,re,d)})):-1,l=void 0,u=-1!==a;t===s.Keys.left?l=i[a=u?Math.max(0,a-1):i.length-1]:t===s.Keys.right?a===i.length-1?l=void 0:u&&(l=i[a=Math.min(i.length-1,a+1)]):t===s.Keys.home?l=i[0]:t===s.Keys.end?l=i[i.length-1]:t===s.Keys.delete&&u&&Ee(o,i[a].data,"delete"),l!==re&&oe(l)}if(me)if(t===s.Keys.esc||n&&t===s.Keys.up)xe(o);else if(r&&r.querySelector(".k-state-focused")&&(t===s.Keys.up||t===s.Keys.down||t===s.Keys.left||t===s.Keys.right||t===s.Keys.home||t===s.Keys.end)){if(t===s.Keys.up&&X.current){var c=Array.from(r.querySelectorAll(".k-treeview-item")),p=c.slice().reverse().find((function(e){return Boolean(e&&e.querySelector(".k-state-focused"))}));if(p&&0===c.indexOf(p))return Ie((function(){Te(X.current)}))}Ie(s.noop)}else t===s.Keys.down&&Ie((function(){Te(X.current||r)}));else n&&t===s.Keys.down&&De(o)}}),[me,xe,Te,Ie,De,re,d,H,Ee]),Ae=i.useCallback((function(e){var t=e.keyCode;e.altKey||t!==s.Keys.up&&t!==s.Keys.down||(e.preventDefault(),Ie(t===s.Keys.up?function(){Te(Z.current)}:function(){Te($.current&&$.current.element)}))}),[Te,Ie]),Le=i.useCallback((function(e){if(G.current){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};Ee(t,[],"clear"),xe(t),e.preventDefault()}}),[Ee,xe]),Ve=i.useCallback((function(e,t){xe({target:G.current}),ue||Te(X.current),Ee({syntheticEvent:t,nativeEvent:t.nativeEvent,target:G.current},e,"delete")}),[Ee,xe,Te,ue]),Be=i.useCallback((function(e){if(n.onExpandChange&&G.current){var t=e.item,r=e.itemHierarchicalIndex,o=e.nativeEvent,i=e.syntheticEvent,a={level:(s=r,s.split("_").map((function(e){return parseInt(e,10)}))),item:t,nativeEvent:o,syntheticEvent:i,target:G.current};n.onExpandChange.call(void 0,a)}var s}),[n.onExpandChange]),ze=i.useCallback((function(e){if(n.onFilterChange&&G.current){var t={filter:{field:n.textField,operator:"contains",value:e.target.value},syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};n.onFilterChange.call(void 0,t),void 0===n.filter&&he(e.target.value)}}),[n.onFilterChange,n.filter,n.textField]),He=n.listNoData||Bt,Ue=Object(_.useLocalization)(),Ke=!q||ge.valid,We=i.createElement("span",{className:Object(s.classNames)("k-widget k-dropdowntree",n.className,{"k-state-focused":ue&&!g,"k-state-invalid":!Ke,"k-state-disabled":g}),tabIndex:Y,accessKey:n.accessKey,id:o,style:D?$t({},m,{width:void 0}):m,dir:ye,ref:Z,onKeyDown:g?void 0:Fe,onMouseDown:Re,onFocus:Ne,onBlur:Me,role:"listbox","aria-haspopup":"true","aria-expanded":me,"aria-disabled":g,"aria-label":D,"aria-labelledby":n.ariaLabelledBy,"aria-describedby":n.ariaDescribedBy},i.createElement("span",{className:Object(s.classNames)("k-multiselect-wrap k-floatwrap",{"k-state-focused":ue,"k-state-disabled":g,"k-state-invalid":!Ke}),onClick:g?void 0:je},ee.current.length>0&&i.createElement(pe,{tag:n.tag,onTagDelete:Ve,data:ee.current,guid:r,focused:re?ee.current.find((function(e){return E(e,re,d)})):void 0}),n.loading&&i.createElement("span",{className:Object(s.classNames)("k-icon",{"k-i-loading":n.loading})}),ve&&!g&&i.createElement("span",{onClick:Le,className:"k-icon k-clear-value k-i-close",title:Ue.toLanguageString(N,M[N]),role:"button",tabIndex:-1,onMouseDown:function(e){return e.preventDefault()}}),i.createElement("select",{name:x,ref:Q,tabIndex:-1,"aria-hidden":!0,title:D,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},i.createElement("option",{value:n.valueMap?n.valueMap.call(void 0,H):H}))),i.createElement(u.a,{popupClass:f.popupClass,className:Object(s.classNames)("k-list-container k-group k-reset k-popup-dropdowntree",f.className,{"k-rtl":"rtl"===ye}),style:Ce,animate:f.animate,anchor:Z.current,show:me,onOpen:_e,onClose:Pe,appendTo:f.appendTo,ref:te},n.filterable&&i.createElement("span",{className:"k-list-filter"},i.createElement("input",{className:"k-textbox",tabIndex:Y,ref:X,value:void 0===n.filter?fe:n.filter,onChange:ze,onKeyDown:Ae}),i.createElement("span",{className:"k-icon k-i-zoom"})),c.length>0?i.createElement(Ft,{ref:$,tabIndex:Y,data:c,focusIdField:d,textField:n.textField,checkField:T,checkIndeterminateField:j,expandField:n.expandField,childrenField:A,expandIcons:!0,onItemClick:Se,onCheckChange:Se,onExpandChange:Be,checkboxes:!0,item:n.item}):i.createElement(He,null,Ue.toLanguageString(P,M[P]))));return D?i.createElement(l.FloatingLabel,{label:D,editorValue:ve,editorPlaceholder:S,editorValid:Ke,editorDisabled:g,editorId:o,style:{width:m?m.width:void 0},children:We,dir:ye}):We})),ln={opened:a.bool,disabled:a.bool,dir:a.string,tabIndex:a.number,accessKey:a.string,data:a.array,value:a.any,valueMap:a.func,placeholder:a.string,dataItemKey:a.string.isRequired,textField:a.string.isRequired,checkField:a.string,checkIndeterminateField:a.string,expandField:a.string,subItemsField:a.string,className:a.string,style:a.object,label:a.string,validationMessage:a.string,validityStyles:a.bool,valid:a.bool,required:a.bool,name:a.string,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,filterable:a.bool,filter:a.string,loading:a.bool,tags:a.arrayOf(a.shape({text:a.string,data:a.arrayOf(a.any)})),popupSettings:a.shape({animate:a.oneOfType([a.bool,a.shape({openDuration:a.number,closeDuration:a.number})]),popupClass:a.string,className:a.string,appendTo:a.any,width:a.oneOfType([a.string,a.number]),height:a.oneOfType([a.string,a.number])}),onOpen:a.func,onClose:a.func,onFocus:a.func,onBlur:a.func,onChange:a.func,onFilterChange:a.func,onExpandChange:a.func,item:a.func,listNoData:a.func};sn.displayName="KendoReactMultiSelectTree",sn.propTypes=ln;var un=function(e,t){var n={};return e&&e.length&&e.forEach((function(e){n[t(e)]=!0})),n},cn=function(e,t){var n=t.items,r=t.dataItemKey,o=t.value,i=t.subItemsField,a=void 0===i?"items":i,l=t.operation,u=Object(s.getter)(r),c=un(o,u);if("clear"===l)return[];if("delete"===l){var d=un(n,u);return o.filter((function(e){return!d[u(e)]}))}for(var p,f,h=n[0],m=u(h),v=Object(s.getter)(a),g=e.slice(),y=[];g.length;){var b=g.pop();if(m===u(b)){p=y.map((function(e){return e.item})),f=b;break}y&&y.length&&y[y.length-1].parentPosition===g.length&&y.pop(),(D=v(b))&&D.length&&(y.push({item:b,parentPosition:g.length}),g.push.apply(g,D))}for(var k=(v(f)||[]).slice(),C=[];k.length;){b=k.pop();C.push(b),(D=v(b))&&D.length&&k.push.apply(k,D)}var O=[];if(!c[m]){O.push.apply(O,o),O.push(f),O.push.apply(O,C.filter((function(e){return!c[u(e)]})));for(var w=p.filter((function(e){return!c[u(e)]})),E=un(O,u),S=w.length-1;S>-1;S--){var D,x=w[S];if((D=v(x)).filter((function(e){return E[u(e)]})).length<D.length)break;O.push(x),E[u(x)]=!0}}else{var I=u(f),T=un(C,u),_=un(p,u);O.push.apply(O,o.filter((function(e){var t=u(e);return!T[t]&&I!==t&&!_[t]})))}return O}},function(e,t,n){"use strict";n.r(t),n.d(t,"isCompositeFilterDescriptor",(function(){return v})),n.d(t,"toODataString",(function(){return q})),n.d(t,"toDataSourceRequestString",(function(){return Ne})),n.d(t,"toDataSourceRequest",(function(){return Me})),n.d(t,"translateDataSourceResultGroups",(function(){return Ke})),n.d(t,"translateAggregateResults",(function(){return We})),n.d(t,"orderBy",(function(){return yt})),n.d(t,"process",(function(){return Ct})),n.d(t,"distinct",(function(){return kt})),n.d(t,"getter",(function(){return X})),n.d(t,"filterBy",(function(){return ft})),n.d(t,"compileFilter",(function(){return pt})),n.d(t,"groupBy",(function(){return vt})),n.d(t,"composeSortDescriptors",(function(){return Xe})),n.d(t,"normalizeFilters",(function(){return P})),n.d(t,"normalizeGroups",(function(){return ht})),n.d(t,"aggregateBy",(function(){return at}));var r,o,i,a,s,l=function(e){return null!=e},u=function(e){return null==e},c=function(e){return Array.isArray(e)},d=function(e){return"function"==typeof e},p=function(e){return"string"==typeof e},f=function(e){return!function(e){return u(e)||0===e.trim().length}(e)},h=function(e){return!isNaN(e-parseFloat(e))},m=function(e){return e&&e.getTime},v=function(e){return l(e.filters)},g=n(8),y=function(e,t,n){return function(r){return e(r)?t(r):n(r)}},b=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduceRight((function(e,t){return t(e)}),t)}},k=function(e){return e},C=function(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e()?""+t[0]+n[0]+t[1]:n[0]}},O=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},w=function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:"'"+n.replace(/'/g,"''")+"'",field:t,ignoreCase:r,operator:o}},E=function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:""+encodeURIComponent(n),field:t,ignoreCase:r,operator:o}},S=function(e){var t=e.field,n=e.value,o=e.ignoreCase,i=e.operator;return{field:C((function(){return o}))(r||(r=g.c(["tolower(",")"],["tolower(",")"])),t),value:n,ignoreCase:o,operator:i}},D=function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:n,field:t.replace(/\./g,"/"),ignoreCase:r,operator:o}},x=function(e){return p(e.value)},I=function(e){return m(e.value)},T=function(e,t){return function(n){return C((function(){return n.filters.length>1}))(o||(o=g.c(["(",")"],["(",")"])),n.filters.map(e).join(t(n)))}},_=function(e){e.filters&&(e.filters=e.filters.map((function(e){var t,n=Object.assign({},e);return!v(e)&&p(e.operator)&&(n.operator={"!=":"neq","<":"lt","<=":"lte","==":"eq",">":"gt",">=":"gte",equal:"eq",equals:"eq",equalto:"eq",ge:"gte",greater:"gt",greaterthan:"gt",greaterthanequal:"gte",isempty:"isempty",isequalto:"eq",isgreaterthan:"gt",isgreaterthanorequalto:"gte",islessthan:"lt",islessthanorequalto:"lte",isnotempty:"isnotempty",isnotequalto:"neq",isnull:"isnull",le:"lte",less:"lt",lessthan:"lt",lessthanequal:"lte",ne:"neq",notequal:"neq",notequals:"neq",notequalto:"neq",notsubstringof:"doesnotcontain"}[(t=e.operator).toLowerCase()]||t),v(e)&&_(n),n})))},P=function(e){return l(e)&&(e=function(e){return v(e)?Object.assign({},e):{filters:c(e)?e:[e],logic:"and"}}(e),_(e)),e},N=function(e){var t=e.operator;return function(e){var n=e.field,r=e.value;return n+" "+t+" "+r}},M=function(e){return b(e,E,w,S,D)},R=function(e){return M((t=e.operator,function(e){var n=e.field,r=e.value;return t+"("+n+","+r+")"}));var t},j=function(e){return b(N(e),D,(t=e.utcDates,function(e){var n=e.field,r=e.value,o=e.ignoreCase,i=e.operator;return{value:JSON.stringify(t?r:O(r)).replace(/"/g,""),field:n,ignoreCase:o,operator:i}}));var t},F=function(e){return y(I,j(e),function(e){return b(N(e),D)}(e))},A=function(e){return y(x,function(e){return M(N(e))}(e),F(e))},L=function(e){return e+" eq -1"},V=function(e){return b(e,D)},B=function(e){return" "+e.logic+" "},z=function(e){return function(t){return function(e,t){return{contains:R(g.a({},t,{operator:"contains"})),doesnotcontain:b(L,R(g.a({},t,{operator:"indexof"}))),endswith:R(g.a({},t,{operator:"endswith"})),eq:A(g.a({},t,{operator:"eq"})),gt:A(g.a({},t,{operator:"gt"})),gte:A(g.a({},t,{operator:"ge"})),isempty:V((function(e){return e.field+" eq ''"})),isnotempty:V((function(e){return e.field+" ne ''"})),isnotnull:V((function(e){return e.field+" ne null"})),isnull:V((function(e){return e.field+" eq null"})),lt:A(g.a({},t,{operator:"lt"})),lte:A(g.a({},t,{operator:"le"})),neq:A(g.a({},t,{operator:"ne"})),startswith:R(g.a({},t,{operator:"startswith"}))}[e]}(t.operator,e)(t)}},H=function(e){return T((function(t){return y(v,H(e),z(e))(t)}),B)},U=function(e,t){return void 0===t&&(t={}),e.filters&&e.filters.length?"$filter="+H(t)(P(e)):""},K=(i="",function(){return i}),W=function(e,t){return y(l,(n=e[0],function(e){return n+e}),K)(t);var n},q=function(e,t){return void 0===t&&(t={}),Object.keys(e).map(function(e,t){return function(n){return{filter:U(t.filter||{},e),skip:W(a||(a=g.c(["$skip=",""],["$skip=",""])),t.skip),sort:(r=t.sort||[],o=r.filter((function(e){return l(e.dir)})).map((function(e){var t=e.field.replace(/\./g,"/");return"desc"===e.dir?t+" desc":t})).join(","),o?"$orderby="+o:o),take:W(s||(s=g.c(["$top=",""],["$top=",""])),t.take)}[n];var r,o}}(t,e)).filter(f).join("&")},Y={},G=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;Y[void 0]=function(e){return e};var Z,X=function(e,t){var n=e+t;if(Y[n])return Y[n];var r=[];return e.replace(G,(function(e,t,n,o){r.push(l(t)?t:n||o)})),Y[n]=function(e){for(var n=e,o=0;o<r.length;o++)if(n=n[r[o]],!l(n)&&t)return n;return n},Y[n]},Q=function(e){return function(t){return[e,t]}},$=function(){return null},J=function(e){return function(t){return l(e(t))}},ee=function(e){return function(t){return function(e){return l(e)&&c(e)&&e.length>0}(e(t))}},te=function(e,t){return y(e,t,$)},ne=function(e,t){return function(n){return e(n).map(t).join("~")}},re=b.apply(void 0,[['"',""],[":","-"]].map((function(e){var t=e[0],n=e[1];return function(e){return e.replace(new RegExp(t,"g"),n)}}))),oe=(Z=".",function(e){return e.slice(0,e.indexOf(Z))}),ie=function(e){var t=e.field,n=e.dir;return t+"-"+(void 0===n?"asc":n)},ae=X("take"),se=X("aggregates"),le=X("skip"),ue=X("group"),ce=X("sort",!0),de=ne(ce,ie),pe=ne(ue,ie),fe=ne(se,(function(e){return e.field+"-"+e.aggregate})),he=b((function(e){return"datetime'"+e+"'"}),oe,re,JSON.stringify,O),me=b(Q("page"),(function(e){var t=e.skip,n=e.take;return Math.floor((t||0)/n)+1})),ve=b(Q("pageSize"),ae),ge=b(Q("group"),pe),ye=b(Q("sort"),de),be=b(Q("aggregate"),fe),ke=te(J(le),me),Ce=te(J(ae),ve),Oe=te(ee(ue),ge),we=te(J(se),be),Ee=b(te(ee(ce),ye),(function(e){return Object.assign({},e,{sort:(ce(e)||[]).filter((function(e){var t=e.dir;return f(t)}))})})),Se=function(e){var t=e.field;return f(t)},De=function(e){return e.field+"~"+e.operator+"~"+e.value},xe=y(I,b(De,(function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:he(n),field:t,ignoreCase:r,operator:o}})),De),Ie=function(e){return"~"+e.logic+"~"},Te=function(e){return T((function(t){return y(v,Te(e),function(e){return te(Se,y(x,b(De,w,e?E:k),xe))}(e))(t)}),Ie)},_e=function(e,t){var n=e.filter;if(n&&n.filters){var r=Te(t)(n);if(r.length)return["filter",r]}return null},Pe=function(e,t){return void 0===t&&(t=!0),function(n){return{aggregates:we(e),filter:_e(e,t),group:Oe(e),skip:ke(e),sort:Ee(e),take:Ce(e)}[n]}},Ne=function(e){return(t=Object.keys(e).map(Pe(e)).filter(l),t.reduce((function(e,t){var n=t[0],r=t[1];return e.concat([n+"="+r])}),[])).join("&");var t},Me=function(e){return Object.keys(e).map(Pe(e,!1)).filter(l).reduce((function(e,t){var n,r=t[0],o=t[1];return g.a({},e,((n={})[r]=o,n))}),{})},Re=function(e,t,n){return t[e]=n,t},je=function(e){return function(t){var n,r=t[e];return l(r)?r:t[(n=e,n.replace(/(^[A-Z])/g,(function(e,t){return t.toLowerCase()})))]}},Fe=je("Member"),Ae=je("AggregateMethodName"),Le=je("Value"),Ve=function(e){return function(t){return Object.keys(t).reduce(e.bind(null,t),{})}},Be=Ve((function(e,t,n){return Re(n.toLowerCase(),t,e[n])})),ze=Ve((function(e,t,n){return Re(n,t,Be(e[n]))})),He=function(e,t){return l(e)?e:t},Ue=b((function(e){var t=e.field,n=e.hasSubgroups,r=e.value,o=e.aggregates,i=e.items;return{aggregates:ze(o),field:t,items:n?i.map(Ue):i,value:r}}),(function(e){return{aggregates:e.Aggregates||e.aggregates,field:e.Member||e.member||e.field,hasSubgroups:e.HasSubgroups||e.hasSubgroups||!1,items:e.Items||e.items,value:He(e.Key,He(e.key,e.value))}})),Ke=function(e){return e.map(Ue)},We=function(e){return(e||[]).reduce((function(e,t){return Re(Fe(t),e,Re(Ae(t).toLowerCase(),e[Fe(t)]||{},Le(t)))}),{})},qe=function(e,t){return u(e)?e===t?0:-1:u(t)?1:e.localeCompare?e.localeCompare(t):e>t?1:e<t?-1:0},Ye=function(e,t){return qe(t,e)},Ge=function(e){var t=X(e.field,!0);return function(n,r){return("asc"===e.dir?qe:Ye)(t(n),t(r))}},Ze=function(e,t){return 0},Xe=function(e){return e.filter((function(e){return l(e.dir)})).map((function(e){return Ge(e)})).reduce((function(e,t){return function(n,r){return e(n,r)||t(n,r)}}),Ze)},Qe=function(e){var t=X(e,!0),n=0;return function(r,o){r[e]=r[e]||{};var i=t(o),a=function(e){return(e=l(e)&&e.getTime?e.getTime():e)+""}(i),s=r[e][a]||{__position:n++,aggregates:{},items:[],value:i};return s.items.push(o),r[e][a]=s,r}},$e=function(e){var t=e.map((function(e){var t=X(e.field,!0),n=(e.aggregate||"").toLowerCase(),r=X(n,!0);return function(o,i){var a=o[e.field]||{},s=r(a)||{average:function(){var e=0,t=0;return{calc:function(n){h(n)?(e+=n,t++):e=n},result:function(){return h(e)?e/t:e}}},count:function(){var e=0;return{calc:function(){return e++},result:function(){return e}}},max:function(){var e=Number.NEGATIVE_INFINITY;return{calc:function(t){(e=h(e)||m(e)?e:t)<t&&(h(t)||m(t))&&(e=t)},result:function(){return e}}},min:function(){var e=Number.POSITIVE_INFINITY;return{calc:function(t){(e=h(e)||m(e)?e:t)>t&&(h(t)||m(t))&&(e=t)},result:function(){return e}}},sum:function(){var e=0;return{calc:function(t){t=l(t)?t:0,e+=t},result:function(){return e}}}}[n]();return s.calc(t(i)),a[e.aggregate]=s,o[e.field]=a,o}}));return function(e,n){return t.reduce((function(e,t){return t(e,n)}),e)}},Je=function(e,t){return e.push(t),e},et=function(e){return function(t){return function(n,r,o){return t(n,e(r,o))}}},tt=function(e){return function(t){return function(n,r){return e(r)?t(n,r):n}}},nt=function(e){return l(e.__value)},rt=function(e){return nt(e)?e:{__value:e,reduced:!0}},ot=function(e,t,n){for(var r=t,o=0,i=n.length;o<i;o++)if(r=e(r,n[o],o),nt(r)){r=r.__value;break}return r},it=et((function(e){return e})),at=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=it);var r={};return t.length?function(e){return void 0===e&&(e={}),Object.keys(e).forEach((function(t){var n=e[t];Object.keys(n).forEach((function(e){n[e]=n[e].result()}))})),e}(ot(n($e(t)),r,e)):r},st={or:{concat:function(e,t){return function(n){return e(n)||t(n)}},identity:function(){return!1}},and:{concat:function(e,t){return function(n){return e(n)&&t(n)}},identity:function(){return!0}}},lt={contains:function(e,t){return(e||"").indexOf(t)>=0},doesnotcontain:function(e,t){return-1===(e||"").indexOf(t)},doesnotendwith:function(e,t){return(e||"").indexOf(t,(e||"").length-(t||"").length)<0},doesnotstartwith:function(e,t){return-1===(e||"").lastIndexOf(t,0)},endswith:function(e,t){return(e||"").indexOf(t,(e||"").length-(t||"").length)>=0},eq:function(e,t){return e===t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t},isempty:function(e){return""===e},isnotempty:function(e){return""!==e},isnotnull:function(e){return l(e)},isnull:function(e){return u(e)},lt:function(e,t){return e<t},lte:function(e,t){return e<=t},neq:function(e,t){return e!=t},startswith:function(e,t){return 0===(e||"").lastIndexOf(t,0)}},ut=/^\/Date\((.*?)\)\/$/,ct=function(e){var t=e.field,n=e.ignoreCase,r=e.value,o=e.operator;t=l(t)?t:function(e){return e},n=!l(n)||n;var i=function(e,t,n){if(!l(t))return e;var r=e;if(p(t)){var o=ut.exec(t);o?t=new Date(+o[1]):r=function(t){var r=e(t);return"string"==typeof r&&n?r.toLowerCase():h(r)?r+"":r}}return m(t)?function(e){var t=r(e);return m(t)?t.getTime():t}:r}(d(t)?t:X(t,!0),r,n);r=function(e,t){if(null!=e&&p(e)){var n=ut.exec(e);if(n)return new Date(+n[1]).getTime();if(t)return e.toLowerCase()}else if(null!=e&&m(e))return e.getTime();return e}(r,n);var a=d(o)?o:lt[o];return function(e){return a(i(e),r,n)}},dt=function(e){var t=st[e.logic];return e.filters.filter(l).map((function(e){return v(e)?dt(e):ct(e)})).reduce(t.concat,t.identity)},pt=function(e){return e&&0!==e.filters.length?dt(e):function(){return!0}},ft=function(e,t){return!l(t)||v(t)&&0===t.filters.length?e:e.filter(pt(P(t)))},ht=function(e){return(e=c(e)?e:[e]).map((function(e){return Object.assign({dir:"asc"},e)}))},mt=et((function(e){return e})),vt=function(e,t,n,r){if(void 0===t&&(t=[]),void 0===n&&(n=mt),void 0===r&&(r=e),!(t=ht(t)).length)return e;var o=t[0],i=ot(n(Qe(o.field)),{},e),a=[];return Object.keys(i).forEach((function(e){Object.keys(i[e]).forEach((function(n){var s=i[e][n],u={},c=r;l(o.aggregates)&&(c=ft(r,{field:o.field,ignoreCase:!1,operator:"eq",value:s.value}),u=at(c,o.aggregates)),a[s.__position]={aggregates:u,field:e,items:t.length>1?vt(s.items,t.slice(1),mt,c):s.items,value:s.value}}))})),a},gt=function(e,t,n,r){if(!(n-t<2)){var o=t+n>>>1;gt(e,t,o,r),gt(e,o,n,r),function(e,t,n,r,o){for(var i=n-t,a=r-n,s=[],l=0;l<i;l++)s.push(e[t+l]);var u=0,c=n,d=t;do{o(e[c],s[u])<0?(e[d++]=e[c++],a--):(e[d++]=s[u++],i--)}while(a>0&&i>0);for(;i;)e[d++]=s[u++],i--;for(;a;)e[d++]=e[c++],a--}(e,t,o,n,r)}},yt=function(e,t){if(t.some((function(e){return l(e.dir)}))){e=e.slice(0);var n=Xe(t);gt(e,0,e.length,n)}return e},bt=function(e,t){return e===t},kt=function(e,t){return void 0===t&&(t=bt),function(e,t){return e.filter((function(e,n,r){return r.findIndex(t.bind(null,e))===n}))}(e,function(e){if(p(e)){var t=X(e);e=function(e,n){return t(e)===t(n)}}return e}(t))},Ct=function(e,t){var n=t.skip,r=t.take,o=t.filter,i=t.sort,a=t.group,s=ht(a||[]).concat(i||[]);s.length&&(e=yt(e,s));var u,c=l(o)&&tt.length,d=l(a)&&a.length;if(!c&&!d)return{data:r?e.slice(n,n+r):e,total:e.length};var p,f,h=[];if(c?(u=function(e,t){for(var n=0,r=0,o=e.length;r<o;r++)t(e[r])&&n++;return n}(e,p=pt(P(o))),h.push(tt(p))):u=e.length,l(n)&&l(r)&&(h.push((f=n,function(e){return function(t,n){return f--<=0?e(t,n):t}})),h.push(function(e){return function(t){return function(n,r){return e-- >0?t(n,r):rt(n)}}}(r))),h.length){var m=b.apply(void 0,h);return{data:d?vt(e,a,m,function(e,t){return t?e.filter(t):e}(e,p)):ot(m(Je),[],e),total:u}}return{data:d?vt(e,a):e,total:u}}},function(e,t,n){"use strict";n.r(t),n.d(t,"Dialog",(function(){return y})),n.d(t,"DialogActionsBar",(function(){return l})),n.d(t,"DialogPropsContext",(function(){return g})),n.d(t,"Window",(function(){return M})),n.d(t,"WindowActionsBar",(function(){return x})),n.d(t,"WindowPropsContext",(function(){return N}));var r=n(0),o=n(16),i=n(1),a=function(e){var t=e.children,n=e.onCloseButtonClick,o=e.id,i=e.closeIcon;return r.createElement("div",{className:"k-window-titlebar k-dialog-titlebar k-header",id:o},r.createElement("div",{className:"k-window-title k-dialog-title"},t),r.createElement("div",{className:"k-window-actions k-dialog-actions"},i&&r.createElement("a",{href:"#",role:"button","aria-label":"Close",onClick:n,className:"k-button k-flat k-button-icon k-window-action k-dialog-action k-dialog-close"},r.createElement("span",{className:"k-icon k-i-x"}))))},s=n(2),l=function(e){var t=e.layout,n=void 0===t?d.layout:t,o=e.children,i=Object(s.classNames)("k-dialog-buttongroup","k-actions","k-hstack",{"k-justify-content-start":"start"===n,"k-justify-content-center":"center"===n,"k-justify-content-end":"end"===n,"k-justify-content-stretch":"stretched"===n});return r.createElement("div",{className:i},o)};l.propTypes={children:i.any,layout:i.oneOf(["start","center","end","stretched"])};var u,c,d={layout:"stretched"},p={name:"@progress/kendo-react-dialogs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639493851,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"},f=function(e,t,n){var r=e;if(t&&t.defaultView){var o=t.querySelectorAll(".k-window:not(.k-dialog), .k-dialog-wrapper"),i=!1;return o.forEach((function(e){var o=t.defaultView.getComputedStyle(e,null);if(e.getAttribute("data-windowid")!==n&&null!==o.zIndex){var a=parseInt(o.zIndex,10);a>=r&&(r=a,i=!0)}})),i?r+2:r}return r},h=(u=function(e,t){return(u=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}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(){return(m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},v=function(e){function t(t){var n=e.call(this,t)||this;return n._id=Object(s.guid)(),n.titleId=n.generateTitleId(),n.onCloseDialog=function(e){e.preventDefault(),Object(s.dispatchEvent)(n.props.onClose,e,n,void 0)},n.onKeyDown=function(e){e.keyCode===s.Keys.esc&&n.props.onClose&&(e.preventDefault(),n.onCloseDialog(e));var t=n.element;if(t&&e.keyCode===s.Keys.tab){var r=t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),o=r[0],i=r[r.length-1],a=n.getDocument();e.shiftKey?a&&a.activeElement===o&&(i.focus(),e.preventDefault()):a&&a.activeElement===i&&(o.focus(),e.preventDefault())}},n.getCurrentZIndex=function(){return n.state?n.state.zIndex>(n.context?n.context+2:0)?n.state.zIndex:n.context+2:n.context?n.context:10002},n.getDocument=function(){return n.props.appendTo?n.props.appendTo.ownerDocument:document},Object(s.validatePackage)(p),n.state={zIndex:f(n.getCurrentZIndex(),n.getDocument(),n._id)},n}return h(t,e),t.prototype.componentDidMount=function(){this.element&&this.props.autoFocus&&this.element.focus()},t.prototype.render=function(){var e,t=this,n=void 0!==this.props.id?this.props.id:this.titleId,i=this.props,l=i.title,u=i.width,c=i.height,d=i.children,p=i.minWidth,f=i.dir,h=i.style,v=i.contentStyle,g=r.Children.toArray(d),y=this.getContent(g),b=this.getActionBar(g),k=l?{"aria-labelledby":n}:null,C=void 0===this.props.closeIcon||this.props.closeIcon,O=this.getCurrentZIndex(),w=r.createElement(s.ZIndexContext.Provider,{value:O},r.createElement("div",m({},((e={})["data-windowid"]=this._id,e),{className:"k-dialog-wrapper"+(this.props.className?" "+this.props.className:""),onKeyDown:this.onKeyDown,tabIndex:0,dir:f,style:m({zIndex:O},h),ref:function(e){return t.element=e}}),r.createElement("div",{className:"k-overlay"}),r.createElement("div",m({},k,{className:"k-widget k-window k-dialog",role:"dialog",style:{width:u,height:c,minWidth:p}}),this.props.title&&r.createElement(a,{closeIcon:C,onCloseButtonClick:this.onCloseDialog,id:n},l),r.createElement("div",{className:"k-window-content k-dialog-content",style:v},y),b)));return s.canUseDOM?o.createPortal(w,this.props.appendTo||document.body):null},t.prototype.getActionBar=function(e){return e.filter((function(e){return e&&e.type===l}))},t.prototype.getContent=function(e){return e.filter((function(e){return e&&e.type!==l}))},t.prototype.generateTitleId=function(){return"dialog-title"+this._id},t.displayName="Dialog",t.propTypes={title:i.any,id:i.string,dir:i.string,style:i.object,closeIcon:i.bool,width:i.oneOfType([i.number,i.string]),height:i.oneOfType([i.number,i.string]),minWidth:i.oneOfType([i.number,i.string]),autoFocus:i.bool},t.defaultProps={autoFocus:!1},t.contextType=s.ZIndexContext,t}(r.Component),g=Object(s.createPropsContext)(),y=Object(s.withPropsContext)(g,v);y.displayName="KendoReactDialog",function(e){e.DEFAULT="DEFAULT",e.FULLSCREEN="FULLSCREEN",e.MINIMIZED="MINIMIZED"}(c||(c={}));var b=function(){return(b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},k=function(e){var t=e.children,n=e.onCloseButtonClick,o=e.onMinimizeButtonClick,i=e.onFullScreenButtonClick,a=e.onRestoreButtonClick,s=e.onDoubleClick,l=e.stage,u=e.forwardedRef,d=e.minimizeButton?r.createElement(e.minimizeButton,{onClick:o,stage:l}):r.createElement("button",{className:"k-button-icon k-button k-flat",onClick:o},r.createElement("span",{className:"k-icon k-i-window-minimize",role:"presentation"})),p=e.maximizeButton?r.createElement(e.maximizeButton,{onClick:i,stage:l}):r.createElement("button",{className:"k-button-icon k-button k-flat",onClick:i},r.createElement("span",{className:"k-icon k-i-window-maximize",role:"presentation"})),f=e.restoreButton?r.createElement(e.restoreButton,{onClick:a,stage:l}):r.createElement("button",{className:"k-button-icon k-button k-flat",onClick:a},r.createElement("span",{className:"k-icon k-i-window-restore",role:"presentation"})),h=e.closeButton?r.createElement(e.closeButton,{onClick:n,stage:l}):r.createElement("button",{className:"k-button-icon k-button k-flat",onClick:n},r.createElement("span",{className:"k-icon k-i-close",role:"presentation"}));return r.createElement("div",{className:"k-window-titlebar k-dialog-titlebar",style:{touchAction:"none"},ref:u,onDoubleClick:s},r.createElement("div",{className:"k-window-title"},t||""),r.createElement("div",{className:"k-window-actions"},l===c.DEFAULT&&d,l===c.DEFAULT&&p,l!==c.DEFAULT&&f,h))},C=r.forwardRef((function(e,t){return r.createElement(k,b({},e,{forwardedRef:t}))})),O=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),w=["n","e","s","w","se","sw","ne","nw"],E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype.render=function(){var e=this;return r.createElement("div",null," ",w.map((function(t,n){return r.createElement(s.Draggable,{key:n,onDrag:function(n){var r=n.event;r.originalEvent.preventDefault(),e.props.onResize(r,{end:!1,direction:t})},onRelease:function(n){var r=n.event;r.originalEvent.preventDefault(),e.props.onResize(r,{end:!0,direction:t})}},r.createElement("div",{className:"k-resize-handle k-resize-"+t,style:{display:"block",touchAction:"none"}}))})))},t}(r.Component),S=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.shouldComponentUpdate=function(e){return e.shouldUpdateOnDrag||!e.isDragging},t.prototype.render=function(){return this.props.children},t}(r.Component),x=function(e){var t=e.layout,n=void 0===t?I.layout:t,o=e.children,i=Object(s.classNames)("k-window-buttongroup","k-actions","k-hstack",{"k-justify-content-start":"start"===n,"k-justify-content-center":"center"===n,"k-justify-content-end":"end"===n,"k-justify-content-stretch":"stretched"===n});return r.createElement("div",{className:i},o)};x.propTypes={children:i.any,layout:i.oneOf(["start","center","end","stretched"])};var I={layout:"end"},T=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_=function(){return(_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},P=function(e){function t(t){var n=e.call(this,t)||this;return n.offSetCoordinates={x:0,y:0},n._id=Object(s.guid)(),n.onKeyDown=function(e){if(e.target===e.currentTarget){var t=n.props.minWidth||120,r=n.props.minHeight||100;if(e.ctrlKey&&n.props.resizable){switch(e.keyCode){case s.Keys.up:e.preventDefault(),r<=n.height-5&&n.setState({height:n.height-5});break;case s.Keys.down:e.preventDefault(),n.setState({height:n.height+5});break;case s.Keys.left:t<=n.width-5&&n.setState({width:n.width-5});break;case s.Keys.right:n.setState({width:n.width+5});break;default:return}n.dispatchMoveEvent(n.props.onResize,e,!1,void 0)}else if(e.altKey)switch(e.keyCode){case s.Keys.up:n.windowStage===c.MINIMIZED?(n.handleRestore(e),Object(s.dispatchEvent)(n.props.onStageChange,e,n,{state:c.DEFAULT})):n.windowStage===c.DEFAULT&&(n.handleFullscreen(e),Object(s.dispatchEvent)(n.props.onStageChange,e,n,{state:c.FULLSCREEN}));break;case s.Keys.down:n.windowStage===c.FULLSCREEN?(n.handleRestore(e),Object(s.dispatchEvent)(n.props.onStageChange,e,n,{state:c.DEFAULT})):n.windowStage===c.DEFAULT&&(n.handleMinimize(e),Object(s.dispatchEvent)(n.props.onStageChange,e,n,{state:c.MINIMIZED}))}else{if(!e.ctrlKey)switch(e.keyCode){case s.Keys.esc:return void(n.props.onClose&&n.handleCloseWindow(e));case s.Keys.up:n.setState({top:n.state.top-5});break;case s.Keys.down:n.setState({top:n.state.top+5});break;case s.Keys.left:n.setState({left:n.state.left-5});break;case s.Keys.right:n.setState({left:n.state.left+5});break;default:return}n.dispatchMoveEvent(n.props.onMove,e,!1,void 0)}}},n.onPress=function(e){var t=e.event;n.windowCoordinatesState.differenceLeft=t.pageX-n.left,n.windowCoordinatesState.differenceTop=t.pageY-n.top},n.onDrag=function(e){var t=e.event;t.originalEvent.preventDefault(),n.windowStage!==c.FULLSCREEN&&n.props.draggable&&(n.setState({top:Math.max(t.pageY-n.windowCoordinatesState.differenceTop,0),left:t.pageX-n.windowCoordinatesState.differenceLeft,isDragging:!0}),n.props.onMove&&n.dispatchMoveEvent(n.props.onMove,t,!0,!1))},n.onRelease=function(e){var t=e.event;n.windowStage!==c.FULLSCREEN&&n.props.draggable&&n.props.onMove&&n.dispatchMoveEvent(n.props.onMove,t,!0,!0),n.setState({isDragging:!1})},n.onFocus=function(){n._blurTimeout?(clearTimeout(n._blurTimeout),n._blurTimeout=void 0):n.setState({focused:!0,zIndex:f(n.getCurrentZIndex(),n.getDocument(),n._id)})},n.onBlur=function(){clearTimeout(n._blurTimeout);var e=n.getWindow();e&&(n._blurTimeout=e.setTimeout((function(){n.setState({focused:!1}),n._blurTimeout=void 0})))},n.getInitialTop=function(){if(void 0!==n.props.top)return n.props.top;if(void 0!==n.props.initialTop)return n.props.initialTop;var e=300;if(void 0!==n.props.height?e=n.props.height:void 0!==n.props.initialHeight&&(e=n.props.initialHeight),n.props.appendTo)return n.props.appendTo.offsetHeight/2-e/2;var t=n.getWindow();return t?t.innerHeight/2-e/2:0},n.getInitialLeft=function(){if(void 0!==n.props.left)return n.props.left;if(void 0!==n.props.initialLeft)return n.props.initialLeft;var e=300;if(void 0!==n.props.width?e=n.props.width:void 0!==n.props.initialWidth&&(e=n.props.initialWidth),n.props.appendTo)return n.props.appendTo.offsetWidth/2-e/2;var t=n.getWindow();return t?t.innerWidth/2-e/2:0},n.getInitialWidth=function(){var e=300;return void 0!==n.props.width?e=n.props.width:void 0!==n.props.initialWidth&&(e=n.props.initialWidth),e},n.getInitialHeight=function(){var e=300;return void 0!==n.props.height?e=n.props.height:void 0!==n.props.initialHeight&&(e=n.props.initialHeight),e},n.handleMinimize=function(e){e.preventDefault(),n.windowCoordinatesState.leftBeforeAction=n.left,n.windowCoordinatesState.topBeforeAction=n.top,n.windowCoordinatesState.widthBeforeAction=n.width,n.windowCoordinatesState.heightBeforeAction=n.height,n.setState({stage:c.MINIMIZED,height:0}),Object(s.dispatchEvent)(n.props.onStageChange,e,n,{state:c.MINIMIZED})},n.handleFullscreen=function(e){e.preventDefault(),n.windowCoordinatesState.leftBeforeAction=n.left,n.windowCoordinatesState.topBeforeAction=n.top,n.windowCoordinatesState.widthBeforeAction=n.width,n.windowCoordinatesState.heightBeforeAction=n.height;var t=n.getWindow(),r=t?t.innerWidth:0,o=t?t.innerHeight:0;n.setState({left:0,top:0,width:n.props.appendTo?n.props.appendTo.offsetWidth:r,height:n.props.appendTo?n.props.appendTo.offsetHeight:o,stage:c.FULLSCREEN}),Object(s.dispatchEvent)(n.props.onStageChange,e,n,{state:c.FULLSCREEN})},n.handleRestore=function(e){e.preventDefault(),n.windowStage===c.FULLSCREEN?n.setState({stage:c.DEFAULT,left:n.windowCoordinatesState.leftBeforeAction,top:n.windowCoordinatesState.topBeforeAction,width:n.windowCoordinatesState.widthBeforeAction,height:n.windowCoordinatesState.heightBeforeAction}):n.windowStage===c.MINIMIZED&&n.setState({stage:c.DEFAULT,height:n.windowCoordinatesState.heightBeforeAction}),Object(s.dispatchEvent)(n.props.onStageChange,e,n,{state:c.DEFAULT})},n.handleCloseWindow=function(e){e.preventDefault(),Object(s.dispatchEvent)(n.props.onClose,e,n,{state:void 0})},n.handleDoubleClick=function(e){n.windowStage===c.FULLSCREEN||n.windowStage===c.MINIMIZED?n.handleRestore(e):n.handleFullscreen(e)},n.handleResize=function(e,t){var r=n.props.appendTo?e.pageX-n.offSetCoordinates.x:e.pageX,o=n.props.appendTo?e.pageY-n.offSetCoordinates.y:e.pageY,i=n.width,a=n.height,s=n.props.minWidth||120,l=n.props.minHeight||100,u=n.top-o,c=n.left-r,d=r-n.left,p=o-n.top,f=Object.assign({},n.state,{isDragging:!t.end});t.direction.indexOf("n")>=0&&l-(a+u)<0&&(n.top>0&&(f.height=a+u),f.top=o),t.direction.indexOf("s")>=0&&l-p<0&&(f.height=p),t.direction.indexOf("w")>=0&&s-(i+c)<0&&(n.left>0&&(f.width=i+c),f.left=r),t.direction.indexOf("e")>=0&&s-d<0&&(f.width=d),n.setState(f),n.dispatchMoveEvent(n.props.onResize,e,!0,t.end)},n.dispatchMoveEvent=function(e,t,r,o){e&&e.call(void 0,{nativeEvent:t.nativeEvent?t.nativeEvent:t.originalEvent,drag:r,end:o,target:n,left:n.state.left,top:n.state.top,width:n.state.width,hight:n.state.height,height:n.state.height})},n.handleBrowserWindowResize=function(){if(n.windowStage===c.FULLSCREEN){var e=n.getWindow(),t=e?e.innerWidth:0,r=e?e.innerHeight:0;n.setState({width:n.props.appendTo?n.props.appendTo.offsetWidth:t,height:n.props.appendTo?n.props.appendTo.offsetHeight:r})}},n.getCurrentZIndex=function(){return n.state?n.state.zIndex>(n.context?n.context+2:0)?n.state.zIndex:n.context+2:n.context?n.context:10002},n.getDocument=function(){return n.props.appendTo?n.props.appendTo.ownerDocument:document},n.getWindow=function(){var e=n.getDocument();return e&&e.defaultView},Object(s.validatePackage)(p),n.state={stage:n.props.stage||c.DEFAULT,isDragging:!1,top:n.getInitialTop(),left:n.getInitialLeft(),width:n.getInitialWidth(),height:n.getInitialHeight(),focused:!0,zIndex:f(n.getCurrentZIndex(),n.getDocument(),n._id)},n.windowCoordinatesState={leftBeforeAction:n.getInitialLeft(),topBeforeAction:n.getInitialTop(),widthBeforeAction:n.getInitialWidth(),heightBeforeAction:n.getInitialHeight()},n}return T(t,e),t.prototype.componentDidMount=function(){var e=this.getWindow();e&&e.addEventListener("resize",this.handleBrowserWindowResize);var t=this.getDocument();if(this.props.appendTo&&t){var n=this.props.appendTo.getBoundingClientRect(),r=t.body.getBoundingClientRect();this.offSetCoordinates.x=n.left-r.left,this.offSetCoordinates.y=n.top-r.top}},t.prototype.componentWillUnmount=function(){var e=this.getWindow();e&&e.removeEventListener("resize",this.handleBrowserWindowResize)},t.prototype.componentDidUpdate=function(){var e=this.getDocument();if(this.props.appendTo&&e){var t=this.props.appendTo.getBoundingClientRect(),n=e.body.getBoundingClientRect();this.offSetCoordinates.x=t.left-n.left,this.offSetCoordinates.y=t.top-n.top}},t.prototype.render=function(){var e,t=this,n=r.Children.toArray(this.props.children),i=this.getContent(n),a=this.getActionBar(n),l=this.getCurrentZIndex(),u=Object(s.classNames)("k-widget","k-window",this.props.className,{"k-window-minimized":"MINIMIZED"===this.state.stage},{"k-window-focused":this.state.focused}),d=r.createElement(s.ZIndexContext.Provider,{value:l},r.createElement(r.Fragment,null,this.props.modal&&r.createElement("div",{className:"k-overlay",style:_({zIndex:l},this.props.overlayStyle)}),r.createElement("div",_({},((e={})["data-windowid"]=this._id,e),{tabIndex:0,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,ref:function(e){t.windowElement=e,t.element=e},className:u,style:_({top:this.top,left:this.left,width:this.width,height:this.height||"",zIndex:l},this.props.style)}),r.createElement(D,{shouldUpdateOnDrag:this.props.shouldUpdateOnDrag||!1,isDragging:this.state.isDragging},r.createElement(s.Draggable,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease,ref:function(e){return t.draggable=e}},r.createElement(C,{stage:this.windowStage,onDoubleClick:this.props.doubleClickStageChange?this.handleDoubleClick:void 0,onMinimizeButtonClick:this.handleMinimize,onFullScreenButtonClick:this.handleFullscreen,onRestoreButtonClick:this.handleRestore,onCloseButtonClick:this.handleCloseWindow,closeButton:this.props.closeButton,minimizeButton:this.props.minimizeButton,maximizeButton:this.props.maximizeButton,restoreButton:this.props.restoreButton},this.props.title)),this.windowStage!==c.MINIMIZED?r.createElement(r.Fragment,null,r.createElement("div",{className:"k-window-content"},i),a):null,this.windowStage===c.DEFAULT&&this.props.resizable?r.createElement(E,{onResize:this.handleResize}):null))));return s.canUseDOM?o.createPortal(d,this.props.appendTo||document.body):null},Object.defineProperty(t.prototype,"top",{get:function(){return this.windowStage!==c.FULLSCREEN?Math.max(this.props.top||this.state.top,0):0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this.windowStage!==c.FULLSCREEN?Math.max(this.props.left||this.state.left,0):0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){var e=this.props.width||this.state.width;if(this.windowStage===c.FULLSCREEN){if(this.props.appendTo)return e=this.props.appendTo.offsetWidth;var t=this.getWindow();e=t?t.innerWidth:0}return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){var e=this.props.height||this.state.height;if(this.windowStage===c.FULLSCREEN){if(this.props.appendTo)return e=this.props.appendTo.offsetHeight;var t=this.getWindow();e=t?t.innerHeight:0}else this.windowStage===c.MINIMIZED&&(e=0);return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"windowStage",{get:function(){return this.props.stage||this.state.stage},enumerable:!0,configurable:!0}),t.prototype.getActionBar=function(e){return e.filter((function(e){return e&&e.type===x}))},t.prototype.getContent=function(e){return e.filter((function(e){return e&&e.type!==x}))},t.displayName="Window",t.propTypes={width:i.number,height:i.number,left:i.number,top:i.number,initialWidth:i.number,initialHeight:i.number,initialLeft:i.number,initialTop:i.number,minWidth:i.number,minHeight:i.number,resizable:i.bool,draggable:i.bool,title:i.any,shouldUpdateOnDrag:i.bool,stage:i.oneOf(["DEFAULT","MINIMIZED","FULLSCREEN"]),className:i.string,style:i.object,overlayStyle:i.object},t.defaultProps={minWidth:120,minHeight:100,resizable:!0,draggable:!0,modal:!1,doubleClickStageChange:!0},t.contextType=s.ZIndexContext,t}(r.Component),N=Object(s.createPropsContext)(),M=Object(s.withPropsContext)(N,P);M.displayName="KendoReactWindow"},function(e,t){e.exports=s},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(2),s=n(5);t.SchedulerHeader=i.forwardRef((function(e,t){var n=e.className,l=o(e,["className"]),u=i.useRef(null),c=i.useRef(null);i.useImperativeHandle(c,(function(){return{element:u.current,props:e}})),i.useImperativeHandle(t,(function(){return c.current}));var d=i.useMemo((function(){return a.classNames("k-scheduler-toolbar",n)}),[n]);return i.createElement(s.Toolbar,r({ref:function(e){e&&(u.current=e.element)},className:d},l),e.children)})),t.SchedulerHeader.displayName="KendoReactSchedulerHeader"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(2),s=n(5);t.SchedulerFooter=i.forwardRef((function(e,t){e.className;var n=e.style,l=o(e,["className","style"]),u=i.useRef(null),c=i.useRef(null);i.useImperativeHandle(u,(function(){return{element:c.current,props:e}})),i.useImperativeHandle(t,(function(){return u.current}));var d=i.useMemo((function(){return a.classNames("k-scheduler-footer",e.className)}),[e.className]);return i.createElement(s.Toolbar,r({ref:function(e){e&&(c.current=e.element)},className:d,style:r({boxShadow:"none"},n)},l),e.children)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(2);t.SchedulerEditItemPropsContext=r.createContext([null]),t.useSchedulerEditItemPropsContext=function(){return r.useContext(t.SchedulerEditItemPropsContext)},t.SchedulerEditItemPropsContext.displayName="SchedulerEditItemPropsContext",t.SchedulerEditItemFormItemContext=r.createContext([null,o.noop,o.noop]),t.useSchedulerEditItemFormItemContext=function(){return r.useContext(t.SchedulerEditItemFormItemContext)},t.SchedulerEditItemFormItemContext.displayName="SchedulerEditItemFormItemContext",t.SchedulerEditItemDragItemContext=r.createContext([null,o.noop,o.noop]),t.useSchedulerEditItemDragItemContext=function(){return r.useContext(t.SchedulerEditItemDragItemContext)},t.SchedulerEditItemDragItemContext.displayName="SchedulerEditItemDragItemContext",t.SchedulerEditItemResizeItemContext=r.createContext([null,o.noop,o.noop]),t.useSchedulerEditItemResizeItemContext=function(){return r.useContext(t.SchedulerEditItemResizeItemContext)},t.SchedulerEditItemResizeItemContext.displayName="SchedulerEditItemResizeItemContext",t.SchedulerEditItemRemoveItemContext=r.createContext([null,o.noop,o.noop]),t.useSchedulerEditItemRemoveItemContext=function(){return r.useContext(t.SchedulerEditItemRemoveItemContext)},t.SchedulerEditItemRemoveItemContext.displayName="SchedulerEditItemRemoveItemContext",t.SchedulerEditItemShowRemoveDialogContext=r.createContext([!1,o.noop,o.noop]),t.useSchedulerEditItemShowRemoveDialogContext=function(){return r.useContext(t.SchedulerEditItemShowRemoveDialogContext)},t.SchedulerEditItemShowRemoveDialogContext.displayName="SchedulerEditItemShowRemoveDialogContext",t.SchedulerEditItemShowOccurrenceDialogContext=r.createContext([!1,o.noop,o.noop]),t.useSchedulerEditItemShowOccurrenceDialogContext=function(){return r.useContext(t.SchedulerEditItemShowOccurrenceDialogContext)},t.SchedulerEditItemShowOccurrenceDialogContext.displayName="SchedulerEditItemShowOccurrenceDialogContext",t.SchedulerEditItemContext=function(e){var n=e.props,o=e.form,i=e.drag,a=e.resize,s=e.remove,l=e.showRemoveDialog,u=e.showOccurrenceDialog,c=e.children;return r.createElement(t.SchedulerEditItemPropsContext.Provider,{value:n},r.createElement(t.SchedulerEditItemFormItemContext.Provider,{value:o},r.createElement(t.SchedulerEditItemDragItemContext.Provider,{value:i},r.createElement(t.SchedulerEditItemResizeItemContext.Provider,{value:a},r.createElement(t.SchedulerEditItemRemoveItemContext.Provider,{value:s},r.createElement(t.SchedulerEditItemShowRemoveDialogContext.Provider,{value:l},r.createElement(t.SchedulerEditItemShowOccurrenceDialogContext.Provider,{value:u},c)))))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.SchedulerEditSlotPropsContext=r.createContext([null]),t.useSchedulerEditSlotPropsContext=function(){return r.useContext(t.SchedulerEditSlotPropsContext)},t.SchedulerEditSlotPropsContext.displayName="SchedulerEditSlotPropsContext",t.SchedulerEditSlotFormItemContext=r.createContext([null]),t.useSchedulerEditSlotFormItemContext=function(){return r.useContext(t.SchedulerEditSlotFormItemContext)},t.SchedulerEditSlotFormItemContext.displayName="SchedulerEditSlotFormItemContext",t.SchedulerEditSlotContext=function(e){var n=e.props,o=e.form,i=e.children;return r.createElement(t.SchedulerEditSlotPropsContext.Provider,{value:n},r.createElement(t.SchedulerEditSlotFormItemContext.Provider,{value:o},i))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.SchedulerEditTaskRemoveItemContext=r.createContext([null]),t.useSchedulerEditTaskRemoveItemContext=function(){return r.useContext(t.SchedulerEditTaskRemoveItemContext)},t.SchedulerEditTaskShowRemoveDialogContext=r.createContext([!1]),t.useSchedulerEditTaskShowRemoveDialogContext=function(){return r.useContext(t.SchedulerEditTaskShowRemoveDialogContext)},t.SchedulerEditTaskShowOccurrenceDialogContext=r.createContext([!1]),t.useSchedulerEditTaskShowOccurrenceDialogContext=function(){return r.useContext(t.SchedulerEditTaskShowOccurrenceDialogContext)},t.SchedulerEditTaskContext=function(e){return r.createElement(t.SchedulerEditTaskRemoveItemContext.Provider,{value:e.remove},r.createElement(t.SchedulerEditTaskShowRemoveDialogContext.Provider,{value:e.showRemoveDialog},r.createElement(t.SchedulerEditTaskShowOccurrenceDialogContext.Provider,{value:e.showOccurrenceDialog},e.children)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(7);t.SchedulerViewPropsContext=r.createContext({}),t.useSchedulerViewPropsContext=function(){return r.useContext(t.SchedulerViewPropsContext)},t.SchedulerViewPropsContext.displayName="SchedulerViewPropsContext",t.SchedulerViewRangesContext=r.createContext([]),t.useSchedulerViewRangesContext=function(){return r.useContext(t.SchedulerViewRangesContext)},t.SchedulerViewRangesContext.displayName="SchedulerViewRangesContext",t.SchedulerViewSlotsContext=r.createContext([[],o.noop]),t.useSchedulerViewSlotsContext=function(){return r.useContext(t.SchedulerViewSlotsContext)},t.SchedulerViewSlotsContext.displayName="SchedulerViewSlotsContext",t.SchedulerViewItemsContext=r.createContext([[],o.noop]),t.useSchedulerViewItemsContext=function(){return r.useContext(t.SchedulerViewItemsContext)},t.SchedulerViewItemsContext.displayName="SchedulerViewItemsContext",t.SchedulerViewSelectedSlotsContext=r.createContext([[],o.noop]),t.useSchedulerViewSelectedSlotsContext=function(){return r.useContext(t.SchedulerViewSelectedSlotsContext)},t.SchedulerViewSelectedSlotsContext.displayName="SchedulerViewSelectedSlotsContext",t.SchedulerViewSelectedItemsContext=r.createContext([[],o.noop]),t.useSchedulerViewSelectedItemsContext=function(){return r.useContext(t.SchedulerViewSelectedItemsContext)},t.SchedulerViewSelectedItemsContext.displayName="SchedulerViewSelectedItemsContext",t.SchedulerViewFocusedItemsContext=r.createContext([[],o.noop]),t.useSchedulerViewFocusedItemsContext=function(){return r.useContext(t.SchedulerViewFocusedItemsContext)},t.SchedulerViewFocusedItemsContext.displayName="SchedulerViewFocusedItemsContext",t.SchedulerViewFocusedSlotsContext=r.createContext([[],o.noop]),t.useSchedulerViewFocusedSlotsContext=function(){return r.useContext(t.SchedulerViewFocusedSlotsContext)},t.SchedulerViewFocusedSlotsContext.displayName="SchedulerViewFocusedSlotsContext",t.SchedulerViewContext=function(e){var n=e.children,o=e.props,i=e.ranges,a=e.slots,s=e.items,l=e.selectedSlots,u=e.selectedItems,c=e.focusedItems,d=e.focusedSlots;return r.createElement(t.SchedulerViewPropsContext.Provider,{value:o},r.createElement(t.SchedulerViewRangesContext.Provider,{value:i},r.createElement(t.SchedulerViewSlotsContext.Provider,{value:a},r.createElement(t.SchedulerViewItemsContext.Provider,{value:s},r.createElement(t.SchedulerViewSelectedSlotsContext.Provider,{value:l},r.createElement(t.SchedulerViewSelectedItemsContext.Provider,{value:u},r.createElement(t.SchedulerViewFocusedItemsContext.Provider,{value:c},r.createElement(t.SchedulerViewFocusedSlotsContext.Provider,{value:d},n))))))))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(56),s=n(15),l=n(14),u=n(7),c=n(20),d=n(38),p=n(39),f=n(13),h=n(53);t.SchedulerEditTask=i.forwardRef((function(e,t){var n=e._ref,a=e.onDataAction,d=e.viewTask,p=e.removeDialog,v=e.removeItem,g=e.onRemoveItemChange,y=e.occurrenceDialog,b=e.showOccurrenceDialog,k=e.onShowOccurrenceDialogChange,C=e.showRemoveDialog,O=e.onShowRemoveDialogChange,w=o(e,["_ref","onDataAction","viewTask","removeDialog","removeItem","onRemoveItemChange","occurrenceDialog","showOccurrenceDialog","onShowOccurrenceDialogChange","showRemoveDialog","onShowRemoveDialogChange"]),E=i.useRef(null);i.useImperativeHandle(E,(function(){return{props:e,element:E.current&&E.current.element}})),i.useImperativeHandle(n,(function(){return E.current})),i.useImperativeHandle(t,(function(){return E.current}));var S=d||m.viewTask,D=y||m.occurrenceDialog,x=p||m.removeDialog,I=l.useEditable(e.editable),T=f.useSchedulerFieldsContext(),_=f.useSchedulerDataContext(),P=_[0],N=_[1],M=i.useState(null),R=M[0],j=M[1],F=s.useControlledState(null,v,g),A=F[0],L=F[1],V=s.useControlledState(!1,C,O),B=V[0],z=V[1],H=s.useControlledState(!1,b,k),U=H[0],K=H[1],W=i.useCallback((function(t){I.remove&&(L(e.dataItem,t),e.isRecurring?K(!0,t):z(!0,t))}),[L,e.dataItem,e.isRecurring,K,z]),q=i.useCallback((function(e){j(null),L(null,e),z(!1,e),K(!1,e)}),[j,L,z,K]),Y=i.useCallback((function(e){a&&A&&a.call(void 0,{type:c.DATA_ACTION.remove,series:R,dataItem:A}),L(null,e),z(!1,e)}),[A,N,z]),G=i.useCallback((function(e,t){L&&L(e,t)}),[L]),Z=i.useCallback((function(e,t){z&&z(e,t)}),[z]),X=i.useCallback((function(e,t){K&&K(e,t)}),[K]),Q=i.useCallback((function(t){A&&(j(!1),L(e.dataItem,t),z(!0,t)),K(!1,t)}),[j,e.dataItem,A,L,z]),$=i.useCallback((function(e){if(A){j(!0);var t=u.findMaster(A,T,P);L(t,e),z(!0,e)}K(!1,e)}),[T,A,j,L,z,K]);return i.createElement(h.SchedulerEditTaskContext,{remove:[A,G],showRemoveDialog:[B,Z],showOccurrenceDialog:[U,X]},i.createElement(S,r({_ref:E},w,{onRemoveClick:W})),U&&i.createElement(D,{dataItem:A,isRemove:null!==A,onClose:q,onOccurrenceClick:Q,onSeriesClick:$}),B&&i.createElement(x,{dataItem:A,onClose:q,onCancel:q,onConfirm:Y}))}));var m={viewTask:a.SchedulerViewTask,occurrenceDialog:p.SchedulerOccurrenceDialog,removeDialog:d.SchedulerRemoveDialog};t.SchedulerEditTask.defaultProps=m,t.SchedulerEditTask.displayName="KendoReactSchedulerEditTask"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(57);t.SchedulerViewTask=i.forwardRef((function(e,t){var n=e.task,a=e._ref,l=o(e,["task","_ref"]),u=i.useRef(null),c=i.useRef(null);i.useImperativeHandle(c,(function(){return{props:e,element:u.current&&u.current.element}})),i.useImperativeHandle(a,(function(){return u.current})),i.useImperativeHandle(t,(function(){return c.current}));var d=n||s.task;return i.createElement(d,r({},l,{_ref:u}))}));var s={task:a.SchedulerTask};t.SchedulerViewTask.defaultProps=s,t.SchedulerViewTask.displayName="KendoReactSchedulerViewTask"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(4),i=n(11),a=n(2),s=n(14);t.SchedulerTask=r.forwardRef((function(e,t){var n=e._ref,l=e.onRemoveClick,u=r.useRef(null),c=r.useRef(null);r.useImperativeHandle(u,(function(){return{props:e,element:c.current}})),r.useImperativeHandle(t,(function(){return u.current})),r.useImperativeHandle(n,(function(){return u.current}));var d=s.useEditable(e.editable),p=o.useLocalization().toLanguageString(i.deleteTitle,i.messages[i.deleteTitle]),f=e.group.resources.find((function(e){return Boolean(e.colorField&&void 0!==e[e.colorField])})),h=f&&f.colorField&&f[f.colorField],m=r.useCallback((function(e){l&&l.call(void 0,{syntheticEvent:e,target:u.current})}),[l,u]),v=r.useMemo((function(){return a.classNames("k-task",e.className)}),[e.className]);return r.createElement("div",{id:e.id,ref:c,style:e.style,className:v,tabIndex:e.tabIndex||void 0},h&&r.createElement("span",{className:"k-scheduler-mark",style:{color:h,backgroundColor:h}}),e.isRecurring&&r.createElement("span",{className:"k-icon k-i-reload"}),e.isException&&r.createElement("span",{className:"k-icon k-i-non-recurrence"}),e.title,d.remove&&r.createElement("a",{className:"k-link k-event-delete",title:p,"aria-label":p,onClick:m},r.createElement("span",{className:"k-icon k-i-close"})))})),t.SchedulerTask.displayName="KendoReactSchedulerTask"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(3),s=n(6),l=n(4),u=n(73),c=n(72),d=n(33),p=n(11),f=n(10),h=n(92),m=n(2),v=n(93),g=n(96),y=n(97);t.SchedulerFormEditor=i.forwardRef((function(e,t){var n=i.useRef(null),c=i.useRef(null),h=a.timezoneNames(),v=l.useLocalization(),g=f.useSchedulerFieldsContext(),y=f.useSchedulerPropsContext(),k=y.resources,C=y.timezone;i.useImperativeHandle(c,(function(){return{element:n.current&&n.current.element?n.current.element:n.current,props:e}})),i.useImperativeHandle(t,(function(){return c.current}));var O=e.as,w=void 0===O?b.as:O,E=o(e,["as"]),S=e.titleLabel,D=void 0===S?b.titleLabel:S,x=e.titleError,I=void 0===x?b.titleError:x,T=e.titleEditor,_=void 0===T?b.titleEditor:T,P=e.startLabel,N=void 0===P?b.startLabel:P,M=e.startError,R=void 0===M?b.startError:M,j=e.startEditor,F=void 0===j?b.startEditor:j,A=e.startTimezoneLabel,L=void 0===A?b.startTimezoneLabel:A,V=e.startTimezoneError,B=void 0===V?b.startTimezoneError:V,z=e.startTimezoneEditor,H=void 0===z?b.startTimezoneEditor:z,U=e.startTimezoneCheckedLabel,K=void 0===U?b.startTimezoneCheckedLabel:U,W=e.startTimezoneCheckedEditor,q=void 0===W?b.startTimezoneCheckedEditor:W,Y=e.endLabel,G=void 0===Y?b.endLabel:Y,Z=e.endError,X=void 0===Z?b.endError:Z,Q=e.endEditor,$=void 0===Q?b.endEditor:Q,J=e.endTimezoneLabel,ee=void 0===J?b.endTimezoneLabel:J,te=e.endTimezoneError,ne=void 0===te?b.endTimezoneError:te,re=e.endTimezoneEditor,oe=void 0===re?b.endTimezoneEditor:re,ie=e.endTimezoneCheckedLabel,ae=void 0===ie?b.endTimezoneCheckedLabel:ie,se=e.endTimezoneCheckedEditor,le=void 0===se?b.endTimezoneCheckedEditor:se,ue=e.allDayLabel,ce=void 0===ue?b.allDayLabel:ue,de=e.allDayEditor,pe=void 0===de?b.allDayEditor:de,fe=e.recurrenceEditor,he=void 0===fe?b.recurrenceEditor:fe,me=e.descriptionLabel,ve=void 0===me?b.descriptionLabel:me,ge=e.descriptionEditor,ye=void 0===ge?b.descriptionEditor:ge,be=e.descriptionError,ke=void 0===be?b.descriptionError:be,Ce=e.resourceLabel,Oe=void 0===Ce?b.resourceLabel:Ce,we=e.resourceEditor,Ee=void 0===we?b.resourceEditor:we,Se=e.valueGetter(g.start)||new Date,De=e.valueGetter(g.startTimezone)||C||"",xe=e.valueGetter(g.endTimezone)||C||"",Ie=i.useMemo((function(){return v.toLanguageString(p.editorValidationRequired,p.messages[p.editorValidationRequired])}),[v]),Te=i.useState(Boolean(e.valueGetter(g.startTimezone))),_e=Te[0],Pe=Te[1],Ne=i.useState(Boolean(e.valueGetter(g.endTimezone))),Me=Ne[0],Re=Ne[1],je=i.useCallback((function(t){t.value||(e.onChange(g.startTimezone,{value:null}),e.onChange(g.endTimezone,{value:null}),Re(t.value)),Pe(t.value)}),[e.onChange,g.startTimezone,g.endTimezone]),Fe=i.useCallback((function(t){t.value||e.onChange(g.endTimezone,{value:null}),Re(t.value)}),[e.onChange]),Ae=i.useCallback((function(e){return e?void 0:Ie}),[Ie]),Le=i.useCallback((function(e,t){return _e?Ae(t(g.startTimezone)):void 0}),[Ae,_e,g.startTimezone]),Ve=i.useCallback((function(e,t){return _e&&Me?Ae(t(g.endTimezone))||Ae(t(g.startTimezone)):void 0}),[Ae,_e,Me,g.startTimezone,g.endTimezone]),Be=i.useMemo((function(){return m.classNames("k-scheduler-edit-form",e.className)}),[e.className]);return i.createElement(w,r({ref:w===b.as?n:void 0},E,{className:Be}),i.createElement(i.Fragment,null,i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.title,component:D,editorId:"k-scheduler-editor-title"},v.toLanguageString(p.editorEventTitle,p.messages[p.editorEventTitle])),i.createElement("div",{className:"k-form-field-wrap"},i.createElement(u.Field,{id:"k-scheduler-editor-title",name:g.title,field:g.title,component:_}),e.errors[g.title]&&i.createElement(u.Field,{name:g.title,component:I},e.errors[g.title]))),i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.start,component:N,editorId:"k-scheduler-editor-start"},v.toLanguageString(p.editorEventStart,p.messages[p.editorEventStart])),i.createElement("div",{className:"k-form-field-wrap",style:{display:"flex"}},i.createElement("div",null,i.createElement(u.Field,{id:"k-scheduler-editor-start",name:g.start,width:"auto",component:F,as:e.valueGetter(g.isAllDay)?d.DatePicker:d.DateTimePicker,timezone:C}),e.errors[g.start]&&i.createElement(u.Field,{name:g.start,component:R},e.errors[g.start]))," ",i.createElement("div",null,i.createElement(q,{id:"k-scheduler-editor-set-start-timezone",onChange:je,value:_e})," ",i.createElement(K,{className:"k-checkbox-label",editorId:"k-scheduler-editor-set-start-timezone"},v.toLanguageString(p.editorEventTimeZone,p.messages[p.editorEventTimeZone]))))),_e&&i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.start,component:L},v.toLanguageString(p.editorEventStartTimeZone,p.messages[p.editorEventStartTimeZone])),i.createElement("div",{className:"k-form-field-wrap"},i.createElement(u.Field,{component:H,value:De,validator:Le,data:h,name:g.startTimezone}),e.errors[g.startTimezone]&&i.createElement(u.Field,{name:g.startTimezone,component:B},e.errors[g.startTimezone]))),i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.end,component:G,editorId:"k-scheduler-editor-end"},v.toLanguageString(p.editorEventEnd,p.messages[p.editorEventEnd])),i.createElement("div",{className:"k-form-field-wrap",style:{display:"flex"}},i.createElement("div",null,i.createElement(u.Field,{id:"k-scheduler-editor-end",name:g.end,width:"auto",component:$,as:e.valueGetter(g.isAllDay)?d.DatePicker:d.DateTimePicker,timezone:C}),e.errors[g.end]&&i.createElement(u.Field,{name:g.end,component:X},e.errors[g.end]))," ",i.createElement("div",null,_e&&i.createElement(i.Fragment,null,i.createElement(le,{id:"k-scheduler-editor-set-end-timezone",onChange:Fe,value:Me})," ",i.createElement(ae,{className:"k-checkbox-label",editorId:"k-scheduler-editor-set-end-timezone"},v.toLanguageString(p.editorEventSeparateTimeZones,p.messages[p.editorEventSeparateTimeZones])))))),Me&&i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.endTimezone,component:ee},v.toLanguageString(p.editorEventEndTimeZone,p.messages[p.editorEventEndTimeZone])),i.createElement("div",{className:"k-form-field-wrap"},i.createElement(u.Field,{value:xe,data:h,validator:Ve,component:oe,name:g.endTimezone}),e.errors[g.endTimezone]&&i.createElement(u.Field,{name:g.endTimezone,component:ne},e.errors[g.endTimezone]))),i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.isAllDay,component:s.Label}),i.createElement("div",{className:"k-form-field-wrap"},i.createElement(u.Field,{id:"k-is-allday-checkbox",name:g.isAllDay,component:pe})," ",i.createElement(u.Field,{name:g.isAllDay,field:g.isAllDay,editorId:"k-is-allday-checkbox",className:"k-checkbox-label",component:ce},v.toLanguageString(p.editorEventAllDay,p.messages[p.editorEventAllDay])))),i.createElement(u.Field,{component:he,field:g.recurrenceRule,name:g.recurrenceRule,start:Se}),i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.description,component:ve},v.toLanguageString(p.editorEventDescription,p.messages[p.editorEventDescription])),i.createElement("div",{className:"k-form-field-wrap"},i.createElement(u.Field,{component:ye,name:g.description,rows:1,id:"k-event-description",style:{width:"100%"}}),e.errors[g.description]&&i.createElement(u.Field,{name:g.description,component:ke},e.errors[g.description]))),(k||[]).map((function(e){return i.createElement("div",{key:e.field},i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:e.field,component:Oe}),i.createElement(s.Label,null,e.name),i.createElement(u.Field,{name:e.field,component:Ee,resource:e,multiple:e.multiple,data:e.data,textField:e.textField,valueField:e.valueField,colorField:e.colorField})))}))))}));var b={as:i.forwardRef((function(e,t){return i.createElement(u.FormElement,{ref:t,id:e.id,style:e.style,tabIndex:e.tabIndex,className:e.className,horizontal:e.horizontal,children:e.children})})),titleLabel:s.Label,titleError:s.Error,titleEditor:c.Input,startLabel:s.Label,startError:s.Error,startEditor:y.ZonedDateTime,startTimezoneLabel:s.Label,startTimezoneError:s.Error,startTimezoneEditor:h.FilterableComboBox,startTimezoneCheckedLabel:s.Label,startTimezoneCheckedEditor:c.Checkbox,endLabel:s.Label,endError:s.Error,endEditor:y.ZonedDateTime,endTimezoneLabel:s.Label,endTimezoneError:s.Error,endTimezoneEditor:h.FilterableComboBox,endTimezoneCheckedLabel:s.Label,endTimezoneCheckedEditor:c.Checkbox,allDayLabel:s.Label,allDayEditor:c.Checkbox,recurrenceEditor:v.RecurrenceEditor,descriptionLabel:s.Label,descriptionEditor:c.TextArea,descriptionError:s.Error,resourceLabel:s.Label,resourceEditor:g.ResourceEditor};t.SchedulerFormEditor.displayName="KendoReactSchedulerFormEditor",t.SchedulerFormEditor.defaultProps=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),o=n(44),i=n(3);t.capitalize=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.OFFSET_POSITIONS=["first","second","third","fourth","last"],t.FREQUENCIES=["never","daily","weekly","monthly","yearly"],t.dayRule=[{day:0,offset:0},{day:1,offset:0},{day:2,offset:0},{day:3,offset:0},{day:4,offset:0},{day:5,offset:0},{day:6,offset:0}],t.weekdayRule=[{day:1,offset:0},{day:2,offset:0},{day:3,offset:0},{day:4,offset:0},{day:5,offset:0}],t.weekendRule=[{day:0,offset:0},{day:6,offset:0}],t.weekDayRuleFromString=function(e){switch(e){case"day":return t.dayRule;case"weekday":return t.weekdayRule;case"weekend":return t.weekendRule}},t.getRule=function(e){return o.parseRule({recurrenceRule:e})||{}},t.getFrequencies=function(e){return t.FREQUENCIES.map((function(n){return{value:n,text:e("Frequencies"+t.capitalize(n))}}))},t.getFrequency=function(e){return r.isPresent(e)&&!r.isNullOrEmptyString(e.freq)?e.freq:"never"},t.getUntil=function(e){return r.isPresent(e.until)?i.toLocalDate(e.until):null},t.getMonths=function(e){return e.dateFormatNames({type:"months",nameType:"wide"}).map((function(e,t){return{text:e,value:t+1}}))},t.getWeekDays=function(e){var t=e.firstDay(),n=e.dateFormatNames({type:"days",nameType:"abbreviated"}).map((function(e,t){return{text:e,value:t}}));return n.slice(t).concat(n.slice(0,t))},t.getWeekDay=function(e,t,n){return e.find((function(e){var o;if(r.isPresent(t.byWeekDay))switch(t.byWeekDay.length){case 7:o="day";break;case 5:o="weekday";break;case 2:o="weekend";break;case 1:o=t.byWeekDay[0].day;break;default:o=n.getDay()}return o===e.value}))||e[0]},t.getExtendedWeekDays=function(e,t){var n=e.firstDay(),r=e.dateFormatNames({type:"days",nameType:"wide"}).map((function(e,t){return{text:e,value:t}})),o=r.slice(n).concat(r.slice(0,n));return[{text:t("WeekdaysDay"),value:"day"},{text:t("WeekdaysWeekday"),value:"weekday"},{text:t("WeekdaysWeekendday"),value:"weekend"}].concat(o)},t.getOffset=function(e,t){return e.find((function(e){return e.value===(t.bySetPosition?t.bySetPosition[0]:t.byWeekDay&&t.byWeekDay[0]?t.byWeekDay[0].offset:1)}))||e[0]},t.getOffsets=function(e){var n=[1,2,3,4,-1];return t.OFFSET_POSITIONS.map((function(r,o){return{text:e("OffsetPositions"+t.capitalize(r)),value:n[o]}}))},t.getEndRule=function(e){return r.isPresent(e.count)?"count":r.isPresent(e.until)?"until":"never"},t.getRepeatOnRule=function(e){return r.isPresent(e.byWeekDay)?"weekday":r.isPresent(e.byMonthDay)?"monthday":void 0},t.getMonth=function(e,t){return e.find((function(e){return(t.byMonth?t.byMonth[0]:null)===e.value}))||e[0]},t.getMonthDay=function(e,t){return r.isPresent(e.byMonthDay)&&e.byMonthDay.length>0?e.byMonthDay[0]:t.getDate()},t.getUntilEnd=function(e,t){var n=e,o=t;return r.isPresent(o)?o:new Date(n.getFullYear(),n.getMonth(),n.getDate(),23,59,59)},t.getUntilMin=function(e,t){var n=e,o=t;return r.isPresent(o)&&o<n?o:n}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(61),s=n(14);t.SchedulerViewSlot=i.forwardRef((function(e,t){var n=e.slot,a=e._ref,u=o(e,["slot","_ref"]),c=n||l.slot,d=i.useRef(null),p=i.useRef(null);return i.useImperativeHandle(d,(function(){return{props:e}})),i.useImperativeHandle(a,(function(){return p.current})),i.useImperativeHandle(t,(function(){return d.current})),s.useSlotExpand(p,e.expandable),i.createElement(c,r({},u,{_ref:p}))}));var l={slot:a.SchedulerSlot,expandable:!1};t.SchedulerViewSlot.defaultProps=l,t.SchedulerViewSlot.displayName="KendoReactSchedulerViewSlot"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(2),a=n(7),s=n(4),l=n(98);t.SchedulerSlot=o.forwardRef((function(e,t){var n=e.onFocus,u=e.onBlur,c=e.onClick,d=e.onMouseEnter,p=e.onMouseLeave,f=e.onMouseOut,h=e.onMouseOver,m=e.onDoubleClick,v=e.onKeyDown,g=e.onKeyPress,y=e.onKeyUp,b=l.useSchedulerSlot(e,t),k=b.slot,C=b.element,O=s.useInternationalization(),w=void 0!==e.tabIndex?null===e.tabIndex?void 0:e.tabIndex:e.selected?0:-1,E=o.useMemo((function(){return i.classNames(e.className,"k-scheduler-cell k-slot-cell",{"k-nonwork-hour":!e.isWorkHour||!e.isWorkDay,"k-state-selected":e.selected})}),[e.className,e.selected,e.isWorkHour,e.isWorkDay]),S=o.useMemo((function(){return r({userSelect:"none"},e.style)}),[e.style]),D=o.useMemo((function(){return""+a.formatEventTime(O,e.zonedStart,e.zonedEnd,e.isAllDay||!1)}),[O,e.isAllDay,e.zonedEnd,e.zonedStart]),x=o.useCallback((function(e){n&&n.call(void 0,{syntheticEvent:e,target:k.current})}),[n,k]),I=o.useCallback((function(e){u&&u.call(void 0,{syntheticEvent:e,target:k.current})}),[u,k]),T=o.useCallback((function(e){c&&c.call(void 0,{syntheticEvent:e,target:k.current})}),[c,k]),_=o.useCallback((function(e){h&&h.call(void 0,{syntheticEvent:e,target:k.current})}),[h,k]),P=o.useCallback((function(e){f&&f.call(void 0,{syntheticEvent:e,target:k.current})}),[f,k]),N=o.useCallback((function(e){d&&d.call(void 0,{syntheticEvent:e,target:k.current})}),[d,k]),M=o.useCallback((function(e){p&&p.call(void 0,{syntheticEvent:e,target:k.current})}),[p,k]),R=o.useCallback((function(e){m&&m.call(void 0,{syntheticEvent:e,target:k.current})}),[m,k]),j=o.useCallback((function(e){v&&v.call(void 0,{syntheticEvent:e,target:k.current})}),[v,k]),F=o.useCallback((function(e){g&&g.call(void 0,{syntheticEvent:e,target:k.current})}),[g,k]),A=o.useCallback((function(e){y&&y.call(void 0,{syntheticEvent:e,target:k.current})}),[y,k]);return o.createElement("div",{ref:C,id:e.id,style:S,className:E,tabIndex:w,"aria-label":D,"aria-selected":e.selected,onFocus:x,onBlur:I,onClick:T,onMouseEnter:N,onMouseLeave:M,onMouseOver:_,onMouseOut:P,onDoubleClick:R,onKeyDown:j,onKeyPress:F,onKeyUp:A,"data-slot":!0,"data-slot-allday":e.isAllDay,"data-slot-start":e.start.getTime(),"data-slot-end":e.end.getTime(),"data-slot-group":e.group.index,"data-slot-range":e.range.index,"data-slot-index":e.index},e.children)}));t.SchedulerSlot.defaultProps={isWorkHour:!0,isWorkDay:!0},t.SchedulerSlot.displayName="KendoReactSchedulerSlot"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(28),a=n(30),s=n(31),l=n(10),u=n(13),c=n(7);t.SchedulerDrag=function(e){var t=l.useSchedulerViewRangesContext(),n=u.useSchedulerPropsContext().timezone,a=u.useSchedulerGroupsContext(),s=u.useSchedulerFieldsContext(),p=u.useSchedulerDateRangeContext(),f=l.useSchedulerViewSlotsContext()[0],h=e.viewItem||d.viewItem,m=o.useMemo((function(){return i.toOccurrences([e.dataItem],{dateRange:p,fields:s,timezone:n})}),[e.dataItem,p,s,n]),v=o.useMemo((function(){return i.toItems(m,{timezone:n},{groups:a,ranges:t})}),[m,n,a,t]),g=(f||[]).map((function(e){return e.current.props}));return c.mapItemsToSlots(v,g),o.createElement(o.Fragment,null,v.map((function(t,n){return o.createElement(h,r({key:n},t,{item:e.item,dragHint:!0,vertical:e.vertical,ignoreIsAllDay:e.ignoreIsAllDay}))})))};var d={viewItem:s.SchedulerViewItem,item:a.SchedulerItem};t.SchedulerDrag.defaultProps=d,t.SchedulerDrag.displayName="KendoReactSchedulerDrag"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(2);t.SchedulerItemContent=o.forwardRef((function(e,t){var n=o.useMemo((function(){return i.classNames("k-event-template",e.className)}),[e.className]);return o.createElement("div",r({ref:t},e,{className:n}))}))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(28),a=n(30),s=n(31),l=n(10),u=n(13),c=n(7);t.SchedulerResize=function(e){var t=l.useSchedulerViewRangesContext(),n=u.useSchedulerPropsContext().timezone,a=u.useSchedulerGroupsContext(),s=u.useSchedulerFieldsContext(),p=u.useSchedulerDateRangeContext(),f=l.useSchedulerViewSlotsContext()[0],h=e.viewItem||d.viewItem,m=o.useMemo((function(){return i.toOccurrences([e.dataItem],{dateRange:p,fields:s,timezone:n})}),[e.dataItem,p.start.getTime(),p.end.getTime(),s,n]),v=o.useMemo((function(){return i.toItems(m,{timezone:n},{groups:a,ranges:t})}),[m,n,a,t]),g=(f||[]).map((function(e){return e.current.props}));return c.mapItemsToSlots(v,g),o.createElement(o.Fragment,null,v.map((function(t,n){return o.createElement(h,r({key:n},t,{format:e.format,item:e.item,resizeHint:!0,vertical:e.vertical,ignoreIsAllDay:e.ignoreIsAllDay}))})))};var d={viewItem:s.SchedulerViewItem,item:a.SchedulerItem};t.SchedulerResize.defaultProps=d,t.SchedulerResize.displayName="KendoReactSchedulerResize"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(15);!function(e){e.set="SHOW_OCCURRENCE_DIALOG_SET",e.open="SHOW_OCCURRENCE_DIALOG_OPEN",e.close="SHOW_OCCURRENCE_DIALOG_CLOSE",e.reset="SHOW_OCCURRENCE_DIALOG_RESET",e.toggle="SHOW_OCCURRENCE_DIALOG_TOGGLE"}(r=t.SHOW_OCCURRENCE_DIALOG_ACTION||(t.SHOW_OCCURRENCE_DIALOG_ACTION={}));t.useShowOccurrenceDialog=function(e,t,n){var i=o.useControlledState(e,t,n),a=i[0],s=i[1];return[a,s,function(e){var t=function(e,t){switch(t.type){case r.reset:return!1;case r.set:return t.payload;case r.open:return!0;case r.close:return!1;case r.toggle:return!e;default:return e}}(a,e);s(t)}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(15),i=n(20);!function(e){e.set="REMOVE_ITEM_SET",e.reset="REMOVE_ITEM_RESET",e.complete="REMOVE_ITEM_COMPLETE"}(r=t.REMOVE_ITEM_ACTION||(t.REMOVE_ITEM_ACTION={})),t.useRemoveItem=function(e,t){var n=o.useControlledState.apply(void 0,t),a=n[0],s=n[1];return[a,s,function(t){var n;switch(t.type){case r.set:n=t.payload;break;case r.reset:n=null;break;case r.complete:e.onDataAction&&a&&e.onDataAction.call(void 0,{type:i.DATA_ACTION.remove,series:e.series,dataItem:a}),n=null;break;default:n=a}s(n)}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(15);!function(e){e.set="SHOW_REMOVE_DIALOG_SET",e.open="SHOW_REMOVE_DIALOG_OPEN",e.close="SHOW_REMOVE_DIALOG_CLOSE",e.reset="SHOW_REMOVE_DIALOG_RESET",e.toggle="SHOW_REMOVE_DIALOG_TOGGLE"}(r=t.SHOW_REMOVE_DIALOG_ACTION||(t.SHOW_REMOVE_DIALOG_ACTION={}));t.useShowRemoveDialog=function(e,t,n){var i=o.useControlledState(e,t,n),a=i[0],s=i[1];return[a,s,function(e){var t=function(e,t){switch(t.type){case r.reset:return!1;case r.set:return t.payload;case r.open:return!0;case r.close:return!1;case r.toggle:return!e;default:return e}}(a,e);s(t)}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(2),i=n(0),a=n(10),s=n(15),l=n(19),u=n(7);!function(e){e.set="DRAG_ITEM_SET",e.start="DRAG_ITEM_START",e.drag="DRAG_ITEM_DRAG",e.complete="DRAG_ITEM_COMPLETE",e.completeOccurrence="DRAG_ITEM_COMPLETE_OCCURRENCE",e.completeSeries="DRAG_ITEM_COMPLETE_SERIES",e.reset="DRAG_ITEM_RESET",e.dragSelected="DRAG_ITEM_DRAG_SELECTED"}(r=t.DRAG_ITEM_ACTION||(t.DRAG_ITEM_ACTION={})),t.useDragItem=function(e,t){var n=i.useRef(0),c=i.useRef(0),d=i.useRef(0),p=i.useRef(null),f=s.useControlledState.apply(void 0,t),h=f[0],m=f[1],v=a.useSchedulerViewSelectedItemsContext()[0],g=a.useSchedulerFieldsContext(),y=a.useSchedulerGroupsContext();return[h,m,function(t){var i;switch(t.type){case r.set:i=t.payload;break;case r.reset:i=null;break;case r.dragSelected:if(Math.abs(c.current-t.payload.x)<10&&Math.abs(d.current-t.payload.y)<10)return;if(!(E=u.slotDive(t.payload.x,t.payload.y,7)))return;if(E===p.current)return;var a=o.clone(e.dataItem),s=E.getAttribute("data-slot-start"),f="true"===E.getAttribute("data-slot-allday");if(!e.ignoreIsAllDay&&f!==e.isAllDay)return;var b=new Date(u.getField(a,g.start)),k=Number(s)-b.getTime(),C=v.map((function(e){if(!e.current)return null;var t=o.clone(e.current.props.dataItem),n=new Date(e.current.props.start.getTime()+k),r=new Date(e.current.props.end.getTime()+k);return u.setField(t,g.start,n),u.setField(t,g.end,r),t})).filter(Boolean);p.current=E,i=C.slice();break;case r.start:var O=t.payload.x,w=t.payload.y;if(c.current=O,d.current=w,!(E=u.slotDive(O,w,7)))return;a=o.clone(e.dataItem),s=E.getAttribute("data-slot-start"),b=u.getField(a,g.start);if(null===s)return;n.current=Number(s)-new Date(b).getTime();break;case r.drag:if(Math.abs(c.current-t.payload.x)<10&&Math.abs(d.current-t.payload.y)<10)return;var E;if(!(E=u.slotDive(t.payload.x,t.payload.y,7)))return;if(E===p.current)return;var S=o.clone(e.dataItem),D=(s=E.getAttribute("data-slot-start"),E.getAttribute("data-slot-group"));f="true"===E.getAttribute("data-slot-allday");if(!e.ignoreIsAllDay&&f!==e.isAllDay)return;b=new Date(u.getField(S,g.start));var x=new Date(u.getField(S,g.end)).getTime()-b.getTime(),I=new Date(Number(s)-Number(n.current)),T=new Date(Number(s)-Number(n.current)+x),_=y.find((function(e){return e.index===Number(D)}));u.setField(S,g.start,I),u.setField(S,g.end,T),_&&y.length>1&&_.resources.forEach((function(e){e.multiple||u.setField(S,e.field,e[e.valueField])})),p.current=E,S&&(i=S);break;case r.complete:i=null,e.onDataAction&&h&&e.onDataAction.call(void 0,{type:l.DATA_ACTION.update,series:!1,dataItem:h});break;case r.completeOccurrence:i=null;var P=Array.isArray(h)?h.slice():o.clone(h);e.onDataAction&&h&&e.onDataAction.call(void 0,{type:l.DATA_ACTION.update,series:!1,dataItem:P});break;case r.completeSeries:i=null;var N=void 0;if(Array.isArray(h))N=h.map((function(e){var t=o.clone(e);return u.setField(t,g.start,u.getField(e,g.start)),u.setField(t,g.end,u.getField(e,g.end)),t}));else{var M=o.clone(h);u.setField(M,g.start,u.getField(h,g.start)),u.setField(M,g.end,u.getField(h,g.end)),N=M}e.onDataAction&&N&&e.onDataAction.call(void 0,{type:l.DATA_ACTION.update,series:!0,dataItem:N});break;default:i=h}m(i)}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(2),i=n(0),a=n(10),s=n(15),l=n(20),u=n(7);!function(e){e.set="RESIZE_ITEM_SET",e.start="RESIZE_ITEM_START",e.startDrag="RESIZE_ITEM_START_DRAG",e.startDragSelected="RESIZE_ITEM_START_DRAG_SELECTED",e.endDrag="RESIZE_ITEM_END_DRAG",e.endDragSelected="RESIZE_ITEM_END_DRAG_SELECTED",e.complete="RESIZE_ITEM_COMPLETE",e.completeOccurrence="RESIZE_ITEM_COMPLETE_OCCURRENCE",e.completeSeries="RESIZE_ITEM_COMPLETE_SERIES",e.reset="RESIZE_ITEM_RESET"}(r=t.RESIZE_ITEM_ACTION||(t.RESIZE_ITEM_ACTION={})),t.useResizeItem=function(e,t){var n=i.useRef(null),c=s.useControlledState.apply(void 0,t),d=c[0],p=c[1],f=a.useSchedulerViewSelectedItemsContext()[0],h=a.useSchedulerFieldsContext();return[d,p,function(t,i){var a=d;switch(t.type){case r.set:a=t.payload;break;case r.reset:a=null;break;case r.start:i.stopPropagation(),i.preventDefault();var s=t.payload.x,c=t.payload.y;if(!(w=u.slotDive(s,c,7)))return;if(w===n.current)return;var m=w.getAttribute("data-slot-start"),v=new Date(Number(m)),g=o.clone(e.dataItem);if(v>=u.getField(g,h.end))return;u.setField(g,h.start,v),n.current=w,a=g;break;case r.startDragSelected:i.stopPropagation(),i.preventDefault();s=t.payload.x,c=t.payload.y,g=o.clone(e.dataItem);if(!(w=u.slotDive(s,c,7)))return;if(w===n.current)return;m=w.getAttribute("data-slot-start");var y=new Date(u.getField(g,h.start)),b=(v=new Date(Number(m))).getTime()-y.getTime(),k=!1,C=f.map((function(e){if(!e.current)return null;var t=o.clone(e.current.props.dataItem),n=new Date(e.current.props.start.getTime()+b);if(!(n>=u.getField(t,h.end)))return u.setField(t,h.start,n),t;k=!0})).filter(Boolean);k||(a=C.slice());break;case r.startDrag:s=t.payload.x,c=t.payload.y;if(!(w=u.slotDive(s,c,7)))return;if(w===n.current)return;m=w.getAttribute("data-slot-start");if((v=new Date(Number(m)))>=(g=o.clone(e.dataItem)).end)return;u.setField(g,h.start,v),n.current=w,a=g;break;case r.endDrag:s=t.payload.x,c=t.payload.y;if(!(w=u.slotDive(s,c,7)))return;if(w===n.current)return;var O=w.getAttribute("data-slot-end");if((E=new Date(Number(O)))<=(g=o.clone(e.dataItem)).start)return;u.setField(g,h.end,E),n.current=w,a=g;break;case r.endDragSelected:i.stopPropagation(),i.preventDefault();var w;s=t.payload.x,c=t.payload.y,g=o.clone(e.dataItem);if(!(w=u.slotDive(s,c,7)))return;if(w===n.current)return;O=w.getAttribute("data-slot-start");var E,S,D=new Date(u.getField(g,h.end)),x=(E=new Date(Number(O))).getTime()-D.getTime();C=f.map((function(e){if(!e.current)return null;var t=o.clone(e.current.props.dataItem),n=new Date(e.current.props.end.getTime()+x);if(!(n<=u.getField(t,h.start)))return u.setField(t,h.end,n),t;S=!0})).filter(Boolean);S||(a=C.slice());break;case r.complete:case r.completeOccurrence:a=null,e.onDataAction&&d&&e.onDataAction.call(void 0,{type:l.DATA_ACTION.update,series:!1,dataItem:d});break;case r.completeSeries:a=null;var I=void 0;if(Array.isArray(d))I=d.map((function(e){var t=o.clone(e);return u.setField(t,h.start,u.getField(e,h.start)),u.setField(t,h.end,u.getField(e,h.end)),t}));else{var T=o.clone(d);u.setField(T,h.start,u.getField(d,h.start)),u.setField(T,h.end,u.getField(d,h.end)),I=T}e.onDataAction&&I&&e.onDataAction.call(void 0,{type:l.DATA_ACTION.update,series:!0,dataItem:I});break;default:a=null}p(a)}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(15);!function(e){e.reset="SERIES_RESET",e.set="SERIES_SET",e.toggle="SERIES_TOGGLE"}(r=t.SERIES_ACTION||(t.SERIES_ACTION={}));t.useSeries=function(e,t,n){var i=o.useControlledState(e,t,n),a=i[0],s=i[1];return[a,s,function(e){var t=function(e,t){switch(t.type){case r.reset:return null;case r.set:return t.payload;case r.toggle:return!e;default:return e}}(a,e);s(t)}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(16),i=n(3),a=n(2),s=n(10),l=n(7),u=n(17);t.CurrentTimeMarker=function(e){var t,n=r.useState(!1),d=n[0],p=n[1],f=s.useSchedulerElementContext(),h=s.useSchedulerPropsContext(),m=r.useRef(void 0),v=r.useRef(null),g=r.useRef(null),y=e.updateInterval||c.updateInterval,b=r.useState(!1)[1],k=a.useDir(g,!0===h.rtl?"rtl":void 0),C=s.useSchedulerViewSlotsContext()[0],O=r.useCallback((function(){if(C){var t,n,r,o=C.filter((function(t){return t.current&&(void 0===e.groupIndex||null===e.groupIndex||t.current.props.group.index===e.groupIndex)&&(e.vertical?l.intersects(new Date,new Date,t.current.props.start,t.current.props.end,!0):l.isInTimeRange(new Date,t.current.props.start,t.current.props.end))&&!t.current.props.isAllDay}));if(o&&o.length&&v.current&&g.current){var a=l.first(o);if(!a.current)return;var s=e.vertical?function(e){var t=0;return e.forEach((function(e){if(e.current){var n=u.getRect(e.current.element);t+=n.height}})),t}(o):function(e){var t=0;return e.forEach((function(e){if(e.current){var n=u.getRect(e.current.element);t+=n.width}})),t}(o),c=u.getRect(a.current.element),d=u.getRect(v.current),f=(e.vertical?c.width:c.height)/(a.current.props.end.getTime()-a.current.props.start.getTime()),h=(Date.now()-(t=new Date,n=a.current.props.start,r=i.cloneDate(t),r.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),r).getTime())*f,m="rtl"===k,y=e.vertical?c.top:c.top+h-d.height/2,b=m?"right":"left",O=e.vertical?c[b]+h-d.width/2:c[b];e.vertical?v.current.style[b]=O+"px":v.current.style.top=y+"px",g.current.style[b]=O+"px",g.current.style.top=y+"px",g.current.style[e.vertical?"height":"width"]=s-1+"px",p(!0)}else p(!1)}}),[C,e.groupIndex,e.vertical,k]),w=r.useCallback((function(){O(),b((function(e){return!e}))}),[O]);r.useEffect((function(){if(f.current&&window){clearInterval(m.current),m.current=window.setInterval(w,y);var e=new window.ResizeObserver(w);return e.observe(f.current),function(){clearInterval(m.current),e.disconnect()}}}),[O,w,f,y]),r.useEffect(O);var E=r.createElement("div",{ref:v,className:a.classNames("k-current-time",{"k-current-time-arrow-right":!e.vertical&&"rtl"!==k,"k-current-time-arrow-left":!e.vertical&&"rtl"===k,"k-current-time-arrow-down":e.vertical}),style:{transform:e.vertical?"rtl"===k?"translateX(50%)":"translateX(-50%)":"translateY(-50%)",visibility:d?void 0:"hidden"}});return r.createElement(r.Fragment,null,e.attachArrow&&e.attachArrow.current?o.createPortal(E,e.attachArrow.current):E,r.createElement("div",{className:"k-current-time",ref:g,style:(t={transform:e.vertical?"translateX(-50%)":"translateY(-50%)"},t[e.vertical?"width":"height"]="1px",t.visibility=d?void 0:"hidden",t)}))};var c={updateInterval:6e4};t.CurrentTimeMarker.defaultProps=c},function(e,t,n){"use strict";n.r(t),n.d(t,"ColorGradient",(function(){return z})),n.d(t,"ColorGradientPropsContext",(function(){return B})),n.d(t,"ColorPalette",(function(){return Y})),n.d(t,"ColorPalettePropsContext",(function(){return q})),n.d(t,"ColorPickerPropsContext",(function(){return ee})),n.d(t,"ColorPicker",(function(){return te})),n.d(t,"FlatColorPicker",(function(){return ne})),n.d(t,"Input",(function(){return de})),n.d(t,"InputPropsContext",(function(){return ce})),n.d(t,"MaskedTextBox",(function(){return Te})),n.d(t,"MaskedTextBoxPropsContext",(function(){return Ie})),n.d(t,"NumericTextBoxPropsContext",(function(){return $e})),n.d(t,"NumericTextBox",(function(){return Je})),n.d(t,"Slider",(function(){return st})),n.d(t,"SliderPropsContext",(function(){return at})),n.d(t,"SLIDER_LABEL_ATTRIBUTE",(function(){return tt})),n.d(t,"SliderLabel",(function(){return nt})),n.d(t,"RangeSliderPropsContext",(function(){return pt})),n.d(t,"RangeSlider",(function(){return ft})),n.d(t,"Switch",(function(){return kt})),n.d(t,"SwitchPropsContext",(function(){return bt})),n.d(t,"CheckboxPropsContext",(function(){return wt})),n.d(t,"Checkbox",(function(){return Et})),n.d(t,"RadioGroupPropsContext",(function(){return _t})),n.d(t,"RadioGroup",(function(){return Pt})),n.d(t,"RadioButtonPropsContext",(function(){return xt})),n.d(t,"RadioButton",(function(){return It})),n.d(t,"TextAreaPropsContext",(function(){return jt})),n.d(t,"TextArea",(function(){return Ft})),n.d(t,"RatingPropsContext",(function(){return Yt})),n.d(t,"Rating",(function(){return Gt})),n.d(t,"RatingItem",(function(){return At}));var r=n(0),o=n(1),i=n(2),a={name:"@progress/kendo-react-inputs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639493726,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"},s=function(e){return null!=e},l=function(e,t,n){return!s(e)||isNaN(e)||e<=t?t:e>=n?n:e},u=n(18),c=function(e,t,n){void 0===n&&(n=!0);if(-1===["hex","rgba"].indexOf(t))throw new Error("Unsupported color output format '"+t+"'. The available options are 'hex' or 'rgba'.");if(s(e)){var r=Object(u.parseColor)(e.trim(),n);if(s(r))return"hex"===t?r.toCss():r.toCssRgba()}},d=function(e,t){void 0===t&&(t=!0);var n=Object(u.parseColor)(e,t);return s(n)?n.toHSV():{}},p=function(e,t){void 0===t&&(t=!0);var n=Object(u.parseColor)(e,t);return s(n)?n.toBytes():{}},f=function(e){var t=l(e.h,0,359.9),n=l(e.s,0,1),r=l(e.v,0,1),o=l(e.a,0,1);return u.Color.fromHSV(t,n,r,o).toCssRgba()},h=function(e){return f({h:e,s:1,v:1,a:1})},m=function(e,t){var n=l(e.r,0,255),r=l(e.g,0,255),o=l(e.b,0,255),i=l(e.a,0,1),a=l(t.r,0,255),s=l(t.g,0,255),u=l(t.b,0,255);return{r:Math.round((1-i)*a+i*n),g:Math.round((1-i)*s+i*r),b:Math.round((1-i)*u+i*o)}},v=function(e){var t=[e.r,e.g,e.b].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*t[0]+.7152*t[1]+.0722*t[2]},g=function(e,t){return n=v(m(e,t)),r=v(m(t,{r:0,g:0,b:0,a:1})),(Math.max(n,r)+.05)/(Math.min(n,r)+.05);var n,r},y={};var b,k,C=(b=function(e,t){return(b=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}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),O=function(e){function t(t){var n=e.call(this,t)||this;return n.onChange=function(e){var t=e.target.value,r=c(t,"rgba");n.setState({hex:t}),s(r)&&n.props.onHexChange(t,r,e)},n.onBlur=function(){s(c(n.state.hex,"rgba"))||n.setState({hex:n.state.originalHex})},n.state={hex:n.props.hex,originalHex:n.props.hex},n}return C(t,e),t.prototype.render=function(){return r.createElement("input",{value:this.state.hex,className:"k-input",onChange:this.onChange,onBlur:this.onBlur,disabled:this.props.disabled})},t.getDerivedStateFromProps=function(e,t){return e.hex!==t.originalHex?{hex:e.hex,originalHex:e.hex}:null},t}(r.Component),w=n(5),E=n(6),S=n(4),D=((k={})["numerictextbox.increment"]="Increase value",k["numerictextbox.decrement"]="Decrease value",k["slider.increment"]="Increase",k["slider.decrement"]="Decrease",k["slider.dragTitle"]="Drag",k["colorGradient.r"]="r",k["colorGradient.g"]="g",k["colorGradient.b"]="b",k["colorGradient.a"]="a",k["colorGradient.hex"]="hex",k["colorGradient.contrastRatio"]="Contrast ratio",k["colorGradient.colorGradientAALevel"]="AA",k["colorGradient.colorGradientAAALevel"]="AAA",k["colorGradient.colorGradientPass"]="Pass",k["colorGradient.colorGradientFail"]="Fail",k["flatColorPicker.cancelBtn"]="Cancel",k["flatColorPicker.applyBtn"]="Apply",k["checkbox.validation"]="Please check this box if you want to proceed!",k["checkbox.optionalText"]="(Optional)",k["radioButton.validation"]="Please select option if you want to proceed!",k["switch.validation"]="Please turn on if you want to proceed!",k),x=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),I=function(){return(I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},T=["rgba","rgb","hex"],_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={inputMode:T[1]},t.onRgbaRChange=function(e){t.dispatchRgbaChange({r:e.value},e)},t.onRgbaGChange=function(e){t.dispatchRgbaChange({g:e.value},e)},t.onRgbaBChange=function(e){t.dispatchRgbaChange({b:e.value},e)},t.onRgbaAChange=function(e){t.dispatchRgbaChange({a:e.value},e)},t}return x(t,e),t.prototype.render=function(){var e=Object(S.provideLocalizationService)(this),t=e.toLanguageString("colorGradient.r",D["colorGradient.hex"]),n=e.toLanguageString("colorGradient.r",D["colorGradient.r"]),o=e.toLanguageString("colorGradient.r",D["colorGradient.g"]),i=e.toLanguageString("colorGradient.r",D["colorGradient.b"]),a=e.toLanguageString("colorGradient.r",D["colorGradient.a"]);return r.createElement("div",{className:"k-colorgradient-inputs k-hstack"},r.createElement("div",{className:"k-vstack"},r.createElement(w.Button,{look:"flat",icon:"arrows-kpi",className:"k-colorgradient-toggle-mode k-icon-button",onClick:this.onToggleModeChange.bind(this)})),"hex"===this.state.inputMode&&r.createElement("div",{className:"k-vstack k-flex-1"},r.createElement("span",{className:"k-hex-value k-textbox"},r.createElement(O,{hex:this.props.hex,onHexChange:this.props.onHexChange,disabled:this.props.disabled})),r.createElement(E.Label,{className:"k-colorgradient-input-label"},t)),("rgb"===this.state.inputMode||"rgba"===this.state.inputMode)&&r.createElement(r.Fragment,null,r.createElement("div",{className:"k-vstack"},r.createElement(Je,{value:this.props.rgba.r,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaRChange,disabled:this.props.disabled}),r.createElement(E.Label,{className:"k-colorgradient-input-label"},n)),r.createElement("div",{className:"k-vstack"},r.createElement(Je,{value:this.props.rgba.g,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaGChange,disabled:this.props.disabled}),r.createElement(E.Label,{className:"k-colorgradient-input-label"},o)),r.createElement("div",{className:"k-vstack"},r.createElement(Je,{value:this.props.rgba.b,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaBChange,disabled:this.props.disabled}),r.createElement(E.Label,{className:"k-colorgradient-input-label"},i))),"rgba"===this.state.inputMode&&r.createElement("div",{className:"k-vstack"},this.props.opacity&&r.createElement(Je,{value:this.props.rgba.a,min:0,max:1,step:.01,spinners:!1,format:"n2",onChange:this.onRgbaAChange,disabled:this.props.disabled}),this.props.opacity&&r.createElement(E.Label,{className:"k-colorgradient-input-label"},a)))},t.prototype.dispatchRgbaChange=function(e,t){var n=I({},this.props.rgba);void 0!==e.r&&(n.r=e.r),void 0!==e.g&&(n.g=e.g),void 0!==e.b&&(n.b=e.b),void 0!==e.a&&(n.a=e.a),this.props.onRgbaChange(n,t)},t.prototype.onToggleModeChange=function(){var e=T.length-1===T.indexOf(this.state.inputMode)?0:T.indexOf(this.state.inputMode)+1;if(this.props.opacity)this.setState({inputMode:T[e]});else{var t="rgba"===T[e]?e+1:e;this.setState({inputMode:T[t]})}},t}(r.Component),P=_;Object(S.registerForIntl)(_),Object(S.registerForLocalization)(_);var N=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return N(t,e),t.prototype.render=function(){var e=Object(S.provideLocalizationService)(this),t=e.toLanguageString("colorGradient.contrastRatio",D["colorGradient.contrastRatio"]),n=e.toLanguageString("colorGradient.colorGradientAALevel",D["colorGradient.colorGradientAALevel"]),o=e.toLanguageString("colorGradient.colorGradientAAALevel",D["colorGradient.colorGradientAAALevel"]),i=e.toLanguageString("colorGradient.colorGradientPass",D["colorGradient.colorGradientPass"]),a=e.toLanguageString("colorGradient.colorGradientFail",D["colorGradient.colorGradientFail"]),s=g(this.props.rgba,this.props.bgColor),l=4.5.toFixed(1),u=7..toFixed(1),c=t+": "+s.toFixed(2),d=n+": "+l,p=o+": "+u,f=r.createElement("span",{className:"k-contrast-validation k-text-success"},i," ",r.createElement("span",{className:"k-icon k-i-check"})),h=r.createElement("span",{className:"k-contrast-validation k-text-error"},a," ",r.createElement("span",{className:"k-icon k-i-close"}));return r.createElement("div",{className:"k-vbox k-colorgradient-color-contrast"},r.createElement("div",{className:"k-contrast-ratio"},r.createElement("span",{className:"k-contrast-ratio-text"},c),s>=4.5?r.createElement("span",{className:"k-contrast-validation k-text-success"},r.createElement("span",{className:"k-icon k-i-check"}),s>=7&&r.createElement("span",{className:"k-icon k-i-check"})):r.createElement("span",{className:"k-contrast-validation k-text-error"},r.createElement("span",{className:"k-icon k-i-close"}))),r.createElement("div",null,r.createElement("span",null,d),s>=4.5?f:h),r.createElement("div",null,r.createElement("span",null,p),s>=7?f:h))},t}(r.Component);Object(S.registerForLocalization)(M);var R=function(e,t){return 0===e.length?"":'<path d="'+e.reduce((function(e,n,r,o){return 0===r?"M "+n[0]+","+n[1]:e+" "+t(n,r,o)}),"")+'" fill="none" stroke="white" stroke-width="1"/>'},j=function(e,t){var n=t[0]-e[0],r=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(r,2)),angle:Math.atan2(r,n)}},F=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return F(t,e),t.prototype.renderSvgCurveLine=function(){var e,t,n=this,r=this.props.metrics,o=function(e,t,i,a,s){var l=(i+a)/2,u=Object.assign({},n.props.hsva,{s:t/r.width,v:1-l/r.height}),c=g(p(f(u)),p(n.props.backgroundColor||""));return i+.5>a?c<e+1&&c>e-1?l:null:s(c,e)?o(e,t,i,a-(a-i)/2,s):o(e,t,i+(a-i)/2,a,s)},i=function(e,t,n){void 0===n&&(n=!1);for(var i=[],a=0;a<=r.width;a+=r.width/t){var s=o(e,a,0,r.height,n?function(e,t){return e<t}:function(e,t){return e>t});null!==s&&i.push([a,s])}return i},a=(t=j,e=function(e,n,r,o){var i=t(n||e,r||e),a=i.angle+(o?Math.PI:0),s=.1*i.length;return[e[0]+Math.cos(a)*s,e[1]+Math.sin(a)*s]},function(t,n,r){var o=e(r[n-1],r[n-2],t),i=o[0],a=o[1],s=e(t,r[n-1],r[n+1],!0);return"C "+i+","+a+" "+s[0]+","+s[1]+" "+t[0]+","+t[1]});return R(i(4.5,16),a)+R(i(4.5,16,!0),a)+R(i(7,16),a)+R(i(7,16,!0),a)},t.prototype.shouldComponentUpdate=function(e){return e.hsva.h!==this.props.hsva.h||e.hsva.a!==this.props.hsva.a||this.props.backgroundColor!==e.backgroundColor},t.prototype.render=function(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"k-color-contrast-svg",dangerouslySetInnerHTML:{__html:this.renderSvgCurveLine()},style:{position:"absolute",overflow:"visible",pointerEvents:"none",left:0,top:0,zIndex:3}})},t}(r.Component),L=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),V=function(e){function t(n){var r=e.call(this,n)||this;r.onHexChange=function(e,t,n){if(r.isUncontrolled){var o=d(t);r.setState({hsva:o,backgroundColor:h(o.h),rgba:p(t),hex:e})}else!function(e,t,n){y[e]={value:t,hex:n}}(r.state.guid,t,e);r.dispatchChangeEvent(t,n,n.nativeEvent)},r.onRgbaChange=function(e,t){var n=function(e){var t=l(e.r,0,255),n=l(e.g,0,255),r=l(e.b,0,255),o=l(e.a,0,1);return u.Color.fromBytes(t,n,r,o).toCssRgba()}(e);if(r.isUncontrolled){var o=d(n),i=c(n,"hex");r.setState({hsva:o,backgroundColor:h(o.h),rgba:e,hex:i})}else!function(e,t,n){y[e]={value:t,rgba:n}}(r.state.guid,n,e);r.dispatchChangeEvent(n,t.syntheticEvent,t.nativeEvent)},r.onAlphaSliderChange=function(e){r.handleHsvaChange(Object.assign({},r.state.hsva,{a:e.value/100}),e.syntheticEvent,e.nativeEvent)},r.onHueSliderChange=function(e){r.handleHsvaChange(Object.assign({},r.state.hsva,{h:e.value}),e.syntheticEvent,e.nativeEvent)},r.onDrag=function(e){r.gradientWrapper.classList.add("k-dragging"),r.changePosition(e.event)},r.onRelease=function(){r.gradientWrapper.classList.remove("k-dragging")},r.onGradientWrapperClick=function(e){r.changePosition(e)},r.changePosition=function(e){var t=r.getGradientRectMetrics(),n=e.clientX-t.left,o=e.clientY-t.top,i=l(n,0,t.width),a=l(o,0,t.height),s=Object.assign({},r.state.hsva,{s:i/t.width,v:1-a/t.height});r.handleHsvaChange(s,e,e.nativeEvent)},r.onFocus=function(e){r.props.onFocus&&r.props.onFocus.call(void 0,{nativeEvent:e,target:r})},r.focus=function(){Object(i.focusFirstFocusableChild)(r.wrapper)},Object(i.validatePackage)(a);var o=n.value||n.defaultValue||c("rgba(255, 255, 255, 1)","rgba");return r.state=Object.assign({},t.getStateFromValue(o),{isFirstRender:!0,guid:Object(i.guid)()}),r}return L(t,e),t.getDerivedStateFromProps=function(e,n){return e.value&&!n.isFirstRender?t.getStateFromValue(e.value,n.guid):null},t.prototype.componentDidMount=function(){this.setAlphaSliderBackground(this.state.backgroundColor),this.state.isFirstRender&&this.setState({isFirstRender:!1})},t.prototype.componentWillUnmount=function(){var e;e=this.state.guid,delete y[e]},t.prototype.componentDidUpdate=function(e,t){t.backgroundColor!==this.state.backgroundColor&&this.setAlphaSliderBackground(this.state.backgroundColor)},t.prototype.renderRectangleDragHandle=function(){var e={};if(!this.state.isFirstRender){var t=this.getGradientRectMetrics(),n=(1-this.state.hsva.v)*t.height,o=this.state.hsva.s*t.width;e.top=n+"px",e.left=o+"px"}return r.createElement("div",{className:"k-hsv-draghandle k-draghandle",style:e})},t.prototype.handleHsvaChange=function(e,t,n){var r=f(e);if(this.isUncontrolled){var o=c(r,"hex");this.setState({hsva:e,backgroundColor:h(e.h),rgba:p(r),hex:o})}else!function(e,t,n){y[e]={value:t,hsva:n}}(this.state.guid,r,e);this.dispatchChangeEvent(r,t,n)},t.prototype.dispatchChangeEvent=function(e,t,n){this.props.onChange&&this.props.onChange.call(void 0,{syntheticEvent:t,nativeEvent:n,target:this,value:e})},t.getStateFromValue=function(e,t){s(c(e,"hex"))||(e="rgba(255, 255, 255, 1)");var n=function(e,t){if(e){var n=y[e];return n&&n.value===t?n.hsva:void 0}}(t,e)||d(e),r=function(e,t){if(e){var n=y[e];return n&&n.value===t?n.rgba:void 0}}(t,e)||p(e),o=function(e,t){if(e){var n=y[e];return n&&n.value===t?n.hex:void 0}}(t,e)||c(e,"hex");return{hsva:n,backgroundColor:h(n.h),rgba:r,hex:o}},t.prototype.setAlphaSliderBackground=function(e){this.props.opacity&&this.alphaSlider&&this.alphaSlider.sliderTrack&&(this.alphaSlider.sliderTrack.style.background="linear-gradient(to top, transparent, "+e+")")},Object.defineProperty(t.prototype,"isUncontrolled",{get:function(){return void 0===this.props.value},enumerable:!0,configurable:!0}),t.prototype.getGradientRectMetrics=function(){return this.gradientWrapper.getBoundingClientRect()},t.prototype.render=function(){var e=this,t=Object(i.classNames)("k-colorgradient",{"k-state-disabled":this.props.disabled});return r.createElement("div",{id:this.props.id,className:t,"aria-disabled":this.props.disabled?"true":void 0,style:this.props.style,ref:function(t){return e.wrapper=t},tabIndex:Object(i.getTabIndex)(this.props.tabIndex,this.props.disabled),"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,onFocus:this.onFocus},r.createElement("div",{className:"k-colorgradient-canvas k-hstack"},r.createElement("div",{className:"k-hsv-rectangle",style:{background:this.state.backgroundColor}},r.createElement(i.Draggable,{onDrag:this.onDrag,onRelease:this.onRelease,ref:function(t){return e.gradientWrapper=t?t.element:void 0}},r.createElement("div",{className:"k-hsv-gradient",style:{touchAction:"none"},onClick:this.onGradientWrapperClick},this.renderRectangleDragHandle())),this.props.backgroundColor&&!this.state.isFirstRender&&r.createElement(A,{metrics:this.gradientWrapper?this.getGradientRectMetrics():void 0,hsva:this.state.hsva,backgroundColor:this.props.backgroundColor})),r.createElement("div",{className:"k-hsv-controls k-hstack"},r.createElement(st,{value:this.state.hsva.h,buttons:!1,vertical:!0,min:0,max:360,step:5,onChange:this.onHueSliderChange,className:"k-hue-slider k-colorgradient-slider",disabled:this.props.disabled}),this.props.opacity&&r.createElement(st,{value:s(this.state.hsva.a)?100*this.state.hsva.a:100,buttons:!1,vertical:!0,min:0,max:100,step:1,onChange:this.onAlphaSliderChange,className:"k-alpha-slider k-colorgradient-slider",disabled:this.props.disabled,ref:function(t){return e.alphaSlider=t}}))),r.createElement(P,{rgba:this.state.rgba,onRgbaChange:this.onRgbaChange,hex:this.state.hex,onHexChange:this.onHexChange,opacity:this.props.opacity,disabled:this.props.disabled}),this.props.backgroundColor&&r.createElement(M,{bgColor:p(this.props.backgroundColor),rgba:this.state.rgba}))},t.displayName="ColorGradient",t.propTypes={defaultValue:o.string,value:o.string,onChange:o.func,onFocus:o.func,opacity:o.bool,backgroundColor:o.string,disabled:o.bool,style:o.any,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string},t.defaultProps={opacity:!0},t}(r.Component),B=Object(i.createPropsContext)(),z=Object(i.withPropsContext)(B,V);z.displayName="KendoReactColorGradient";var H=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],s(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var r=e.slice(n,t+n);this.colorRows.push(r)}}},e.prototype.getCellCoordsFor=function(e){var t=this;if(s(e)){var n=e?Object(u.parseColor)(e,!0):e,r=[e];s(n)&&r.push(n.toCss(),n.toCssRgba());for(var o=function(e){for(var n=function(n){if(r.some((function(r){return r===t.colorRows[e][n]})))return{value:{row:e,col:n}}},o=0;o<i.colorRows[e].length;o++){var a=n(o);if("object"==typeof a)return a}},i=this,a=0;a<this.colorRows.length;a++){var l=o(a);if("object"==typeof l)return l.value}}},e.prototype.getColorAt=function(e){if(s(e)&&s(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(s(e)&&s(e.row)&&s(e.col)))return{row:0,col:0};var r=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:r,col:this.clampIndex(e.col+t,this.colorRows[r].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e}(),U={basic:{colors:["#000000","#7f7f7f","#880015","#ed1c24","#ff7f27","#fff200","#22b14c","#00a2e8","#3f48cc","#a349a4"," ffffff","#c3c3c3","#b97a57","#ffaec9","#ffc90e","#efe4b0","#b5e61d","#99d9ea","#7092be","#c8bfe7"],columns:10},office:{colors:["#ffffff","#000000","#e6e6e6","#435569","#4371c4","#ed7e32","#a5a4a5","#febf04","#5a9bd5","#71ae48","#f2f2f3","#7f7f7f","#d1cece","#d5dde3","#dae1f4","#fce5d4","#deeded","#fff2cc","#deeaf6","#e1efd9","#d7d8d8","#585959","#aeabab","#adbaca","#b4c5e7","#f6caac","#dbdbdb","#ffe498","#bcd6ee","#c5e0b2","#bfbfc0","#3f3f3f","#767070","#8595b1","#8fabdb","#f5b183","#c9c8c9","#fed965","#9bc4e5","#a8d08d","#a5a5a6","#262625","#393939","#334050","#2e5496","#c45a11","#7b7b7a","#bf9000","#2f75b5","#548235","#7f7f7f","#0b0c0c","#161616","#222a34","#203764","#843d0b","#525252","#7f6000","#1d4d79","#375623"],columns:10},apex:{colors:["#ffffff","#000000","#c9c2d1","#69676d","#ceb966","#9cb084","#6bb1c9","#6585cf","#7e6bc9","#a379bb","#f2f2f2","#7f7f7f","#f4f2f5","#e0e0e2","#f5f1e0","#ebefe6","#e1eff4","#e0e6f5","#e5e1f4","#ece4f1","#d8d8d8","#595959","#e9e6ec","#c2c1c5","#ebe3c1","#d7dfcd","#c3dfe9","#c1ceeb","#cbc3e9","#dac9e3","#bfbfbf","#3f3f3f","#dedae3","#a4a3a8","#e1d5a3","#c3cfb5","#a6d0de","#a2b5e2","#b1a6de","#c7aed6","#a5a5a5","#262626","#9688a5","#4e4d51","#ae9638","#758c5a","#3d8da9","#365bb0","#533da9","#7d4d99","#7f7f7f","#0c0c0c","#635672","#343336","#746425","#4e5d3c","#295e70","#243c75","#372970","#533366"],columns:10},austin:{colors:["#ffffff","#000000","#caf278","#3e3d2d","#94c600","#71685a","#ff6700","#909465","#956b43","#fea022","#f2f2f2","#7f7f7f","#f4fce4","#dddcd0","#efffc0","#e3e1dc","#ffe0cb","#e8e9df","#ece1d6","#feecd2","#d8d8d8","#595959","#e9f9c9","#bbb9a1","#dfff82","#c8c3ba","#ffc299","#d2d4c0","#dac3ad","#fed9a6","#bfbfbf","#3f3f3f","#dff7ae","#ada598","#cfff43","#ada598","#ffa365","#bcbfa1","#c8a585","#fec67a","#a5a5a5","#262626","#a9ea25","#2e2d21","#6f9400","#544e43","#bf4d00","#6c6f4b","#6f5032","#d77b00","#7f7f7f","#0c0c0c","#74a50f","#1f1e16","#4a6300","#38342d","#7f3300","#484a32","#4a3521","#8f5200"],columns:10},clarity:{colors:["#ffffff","#292934","#f3f2dc","#d2533c","#93a299","#ad8f67","#726056","#4c5a6a","#808da0","#79463d","#f2f2f2","#e7e7ec","#e7e5b9","#f6dcd8","#e9ecea","#eee8e0","#e4dedb","#d8dde3","#e5e8ec","#e9d6d3","#d8d8d8","#c4c4d1","#d5d185","#edbab1","#d3d9d6","#ded2c2","#c9beb8","#b2bcc8","#ccd1d9","#d3aea7","#bfbfbf","#8a8aa3","#aca73b","#e4978a","#bec7c1","#cdbba3","#af9e94","#8c9bac","#b2bac6","#bd857c","#a5a5a5","#56566e","#56531d","#a43925","#6b7c72","#866b48","#554840","#39434f","#5c697b","#5a342d","#7f7f7f","#3b3b4b","#22210b","#6d2619","#47534c","#594730","#39302b","#262d35","#3d4652","#3c231e"],columns:10},slipstream:{colors:["#ffffff","#000000","#b4dcfa","#212745","#4e67c8","#5eccf3","#a7ea52","#5dceaf","#ff8021","#f14124","#f2f2f2","#7f7f7f","#8bc9f7","#c7cce4","#dbe0f4","#def4fc","#edfadc","#def5ef","#ffe5d2","#fcd9d3","#d8d8d8","#595959","#4facf3","#909aca","#b8c2e9","#beeafa","#dbf6b9","#beebdf","#ffcca6","#f9b3a7","#bfbfbf","#3f3f3f","#0d78c9","#5967af","#94a3de","#9ee0f7","#caf297","#9de1cf","#ffb279","#f68d7b","#a5a5a5","#262626","#063c64","#181d33","#31479f","#11b2eb","#81d319","#34ac8b","#d85c00","#c3260c","#7f7f7f","#0c0c0c","#021828","#101322","#202f6a","#0b769c","#568c11","#22725c","#903d00","#821908"],columns:10},metro:{colors:["#ffffff","#000000","#d6ecff","#4e5b6f","#7fd13b","#ea157a","#feb80a","#00addc","#738ac8","#1ab39f","#f2f2f2","#7f7f7f","#a7d6ff","#d9dde4","#e5f5d7","#fad0e4","#fef0cd","#c5f2ff","#e2e7f4","#c9f7f1","#d8d8d8","#595959","#60b5ff","#b3bcca","#cbecb0","#f6a1c9","#fee29c","#8be6ff","#c7d0e9","#94efe3","#bfbfbf","#3f3f3f","#007dea","#8d9baf","#b2e389","#f272af","#fed46b","#51d9ff","#aab8de","#5fe7d5","#a5a5a5","#262626","#003e75","#3a4453","#5ea226","#af0f5b","#c58c00","#0081a5","#425ea9","#138677","#7f7f7f","#0c0c0c","#00192e","#272d37","#3f6c19","#750a3d","#835d00","#00566e","#2c3f71","#0c594f"],columns:10},flow:{colors:["#ffffff","#000000","#dbf5f9","#04617b","#0f6fc6","#009dd9","#0bd0d9","#10cf9b","#7cca62","#a5c249","#f2f2f2","#7f7f7f","#b2e9f2","#b4ecfc","#c7e2fa","#c4eeff","#c9fafc","#c9faed","#e4f4df","#edf2da","#d8d8d8","#595959","#76d9e8","#6adafa","#90c6f6","#89deff","#93f5f9","#94f6db","#cae9c0","#dbe6b6","#bfbfbf","#3f3f3f","#21b2c8","#20c8f7","#59a9f2","#4fceff","#5df0f6","#5ff2ca","#b0dfa0","#c9da91","#a5a5a5","#262626","#105964","#02485c","#0b5394","#0075a2","#089ca2","#0b9b74","#54a838","#7e9532","#7f7f7f","#0c0c0c","#062328","#01303d","#073763","#004e6c","#05686c","#07674d","#387025","#546321"],columns:10},hardcover:{colors:["#ffffff","#000000","#ece9c6","#895d1d","#873624","#d6862d","#d0be40","#877f6c","#972109","#aeb795","#f2f2f2","#7f7f7f","#e1dca5","#f2e0c6","#f0d0c9","#f6e6d5","#f5f2d8","#e7e5e1","#fbc7bc","#eef0e9","#d8d8d8","#595959","#d0c974","#e6c28d","#e2a293","#eeceaa","#ece5b2","#cfccc3","#f78f7a","#dee2d4","#bfbfbf","#3f3f3f","#a29a36","#daa454","#d4735e","#e6b681","#e2d88c","#b7b2a5","#f35838","#ced3bf","#a5a5a5","#262626","#514d1b","#664515","#65281a","#a2641f","#a39428","#655f50","#711806","#879464","#7f7f7f","#0c0c0c","#201e0a","#442e0e","#431b11","#6c4315","#6d621a","#433f35","#4b1004","#5a6243"],columns:10},trek:{colors:["#ffffff","#000000","#fbeec9","#4e3b30","#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529","#f2f2f2","#7f7f7f","#f7e09e","#e1d6cf","#fcecd5","#eddfda","#f0e7e5","#f3eae1","#ece9e3","#f5e3d1","#d8d8d8","#595959","#f3cc5f","#c4ad9f","#f9d9ab","#dcc0b6","#e1d0cc","#e7d5c4","#d9d4c7","#ebc7a3","#bfbfbf","#3f3f3f","#d29f0f","#a78470","#f6c781","#cba092","#d2b9b2","#dbc1a7","#c6bfab","#e1ac76","#a5a5a5","#262626","#694f07","#3a2c24","#c87d0e","#7b4b3a","#926255","#a17242","#7b7153","#90571e","#7f7f7f","#0c0c0c","#2a1f03","#271d18","#855309","#523226","#614138","#6b4c2c","#524b37","#603a14"],columns:10},verve:{colors:["#ffffff","#000000","#d2d2d2","#666666","#ff388c","#e40059","#9c007f","#68007f","#005bd3","#00349e","#f2f2f2","#7f7f7f","#bdbdbd","#e0e0e0","#ffd7e8","#ffc6dc","#ffb8f1","#f1b2ff","#c3dcff","#b8cfff","#d8d8d8","#595959","#9d9d9d","#c1c1c1","#ffafd1","#ff8eba","#ff71e4","#e365ff","#87baff","#72a0ff","#bfbfbf","#3f3f3f","#696969","#a3a3a3","#ff87ba","#ff5597","#ff2ad7","#d519ff","#4b98ff","#2b71ff","#a5a5a5","#262626","#343434","#4c4c4c","#e90062","#ab0042","#75005f","#4e005f","#00449e","#002676","#7f7f7f","#0c0c0c","#151515","#333333","#9b0041","#72002c","#4e003f","#34003f","#002d69","#00194f"],columns:10},monochrome:{colors:["#000000","#1a1a1a","#333333","#4d4d4d","#666666","#808080","#999999","#b3b3b3","#cccccc","#e6e6e6","#f2f2f2","#ffffff"],columns:12}},K=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),W=function(e){function t(t){var n=e.call(this,t)||this;return n.wrapper=null,n.guid=Object(i.guid)(),n.focus=function(){n.wrapper&&n.wrapper.focus()},n.onKeyDown=function(e){switch(e.keyCode){case i.Keys.down:n.handleCellNavigation(0,1);break;case i.Keys.up:n.handleCellNavigation(0,-1);break;case i.Keys.right:n.handleCellNavigation(1,0);break;case i.Keys.left:n.handleCellNavigation(-1,0);break;case i.Keys.enter:n.handleEnter(e);break;default:return}e.preventDefault()},n.onColorClick=function(e,t){n.isUncontrolled?n.setState({selectedColor:e,focusedColor:e}):n.setState({focusedColor:e}),n.dispatchChangeEvent(e,t)},n.onFocus=function(e){n.setState({focusedColor:n.state.selectedColor||n.paletteService.colorRows[0][0]}),n.props.onFocus&&n.props.onFocus.call(void 0,{nativeEvent:e,target:n})},n.onBlur=function(){n.setState({focusedColor:void 0})},Object(i.validatePackage)(a),n.state={selectedColor:void 0!==n.props.value?n.props.value:n.props.defaultValue,isFirstRender:!0},n}return K(t,e),t.prototype.render=function(){var e=this,t=this.getPaletteInfo(),n=this.paletteService=new H;n.setColorMatrix(t.colors,t.columns);var o=n.getCellCoordsFor(this.state.selectedColor),a=n.getCellCoordsFor(this.state.focusedColor),s=Object(i.classNames)("k-colorpalette",{"k-state-disabled":this.props.disabled});return t.colors.length?r.createElement("div",{id:this.props.id,className:s,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,"aria-disabled":this.props.disabled?"true":void 0,"aria-activedescendant":o&&this.createCellId(o),"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,tabIndex:Object(i.getTabIndex)(this.props.tabIndex,this.props.disabled),ref:function(t){return e.wrapper=t}},r.createElement("div",{className:"k-colorpalette-table-wrap",role:"grid"},r.createElement("table",{className:"k-colorpalette-table k-palette",role:"presentation"},r.createElement("tbody",null,this.renderRows(n.colorRows,o,a))))):""},t.getDerivedStateFromProps=function(e,t){if(t.isFirstRender||void 0===e.value){if(t.isFirstRender)return{isFirstRender:!1}}else{if(""===e.value&&void 0!==t.selectedColor)return{selectedColor:void 0};if(""!==e.value&&e.value!==t.selectedColor)return{selectedColor:e.value}}return null},t.prototype.handleCellNavigation=function(e,t){if(this.focusedColorCooridanates){var n=this.paletteService.getNextCell(this.focusedColorCooridanates,e,t);this.setState({focusedColor:this.paletteService.getColorAt(n)})}else this.setState({focusedColor:this.paletteService.colorRows[0][0]})},t.prototype.handleEnter=function(e){this.isUncontrolled&&this.setState({selectedColor:this.state.focusedColor}),this.dispatchChangeEvent(this.state.focusedColor,e)},t.prototype.dispatchChangeEvent=function(e,t){Object(i.dispatchEvent)(this.props.onChange,t,this,{value:e,rgbaValue:c(e,"rgba")})},Object.defineProperty(t.prototype,"focusedColorCooridanates",{get:function(){return this.state.focusedColor?this.paletteService.getCellCoordsFor(this.state.focusedColor):void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isUncontrolled",{get:function(){return void 0===this.props.value},enumerable:!0,configurable:!0}),t.prototype.getPaletteInfo=function(){if("string"==typeof this.props.palette){var e=U[this.props.palette];return s(e)?{colors:e.colors,columns:this.props.columns||e.columns||10}:{colors:[],columns:0}}return{colors:this.props.palette||[],columns:this.props.columns||10}},t.prototype.renderRows=function(e,t,n){var o=this;return e.map((function(e,i){return r.createElement("tr",{role:"row",key:i},o.renderColumns(e,i,t,n))}))},t.prototype.renderColumns=function(e,t,n,o){var a=this,s=void 0!==n&&n.row===t,l=n&&n.col,u=void 0!==o&&o.row===t,c=o&&o.col,d="number"!=typeof this.props.tileSize?this.props.tileSize:{width:this.props.tileSize,height:this.props.tileSize},p=d.width+"px",f=d.height+"px";return e.map((function(e,n){var o=s&&l===n,d=Object(i.classNames)("k-colorpalette-tile",{"k-state-selected":o,"k-state-focus":u&&c===n});return r.createElement("td",{className:d,"aria-label":e,"aria-selected":!!o||!!a.props.disabled&&void 0,style:{backgroundColor:e,width:p,height:f,minWidth:p},onClick:function(t){return a.onColorClick(e,t)},id:a.createCellId({row:t,col:n}),key:n})}))},t.prototype.createCellId=function(e){return this.guid+"_"+e.row+"_"+e.col},t.displayName="ColorPalette",t.propTypes={palette:o.oneOfType([o.arrayOf(o.string.isRequired),o.string]),columns:o.number,tileSize:o.any,defaultValue:o.string,value:o.string,disabled:o.bool,tabIndex:o.number,onChange:o.func,onFocus:o.func,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string},t.defaultProps={palette:"office",tileSize:24},t}(r.Component),q=Object(i.createPropsContext)(),Y=Object(i.withPropsContext)(q,W);Y.displayName="KendoReactColorPalette";var G=n(9),Z=function(){return(Z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},X=function(e){var t=e.popupSettings||{},n="rtl"===e.dir?"right":"left",o=r.useMemo((function(){return{horizontal:n,vertical:"bottom"}}),[n]),a=r.useMemo((function(){return{horizontal:n,vertical:"top"}}),[n]);return r.createElement(r.Fragment,null,e.input,e.button,r.createElement(G.a,Z({style:Z({},(t||{}).style,{direction:e.dir})},t,{anchor:e.popupAnchor,anchorAlign:o,popupAlign:a,show:e.open,onOpen:e.onOpen,onClose:e.onClose,className:Object(i.classNames)("k-reset",t.className)}),e.content))};X.displayName="KendoPickerComponent";var Q=function(){return(Q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},$={palette:"office",tileSize:24},J=function(e){return void 0!==e},ee=Object(i.createPropsContext)(),te=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=Object(i.usePropsContext)(ee,e),o=n.popupSettings,s=n.gradientSettings,l=n.paletteSettings,u=n.valid,c=n.disabled,d=n.tabIndex,p=n.view,f=n.icon,h=n.onChange,m=n.onFocus,v=n.onBlur,g=n.onActiveColorClick,y=r.useRef(null),b=r.useRef(null),k=r.useRef(null),C=r.useRef(),O=r.useRef(null),w=r.useCallback((function(){y.current&&y.current.focus()}),[]);r.useImperativeHandle(t,(function(){return{element:y.current,actionElement:O.current,focus:w}}));var E=r.useState(!1),S=E[0],D=E[1],x=r.useState(n.defaultValue),I=x[0],T=x[1],_=r.useState(!1),P=_[0],N=_[1],M=J(n.value),R=J(n.open),j=M?n.value:I,F=R?n.open:P,A=r.useCallback((function(e,t){R||(!e&&!t&&y&&y.current&&y.current.focus(),N(e))}),[R]),L=r.useCallback((function(e){var t=e.altKey,n=e.keyCode;if(n!==i.Keys.esc)return n!==i.Keys.enter||R?void(!t||n!==i.Keys.up&&n!==i.Keys.down||(e.preventDefault(),e.stopPropagation(),n===i.Keys.up&&y&&y.current&&(y.current.focus(),A(!1)),n===i.Keys.down&&A(!0))):(e.preventDefault(),e.stopPropagation(),void A(!F));A(!1)}),[F,R]),V=r.useCallback((function(){R||(b.current?b.current.focus():k.current&&k.current.focus())}),[R]),B=r.useCallback((function(){A(!F,!0)}),[F]),H=r.useCallback((function(e){g&&g.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:j})}),[g,j]),U=r.useCallback((function(e){C.current?(clearTimeout(C.current),C.current=void 0):D(!0),m&&m.call(void 0,{nativeEvent:e.nativeEvent,syntheticEvent:e})}),[m]),K=r.useCallback((function(){A(!1,!0),D(!1),C.current=void 0}),[]),W=r.useCallback((function(e){clearTimeout(C.current),C.current=window.setTimeout(K),v&&v.call(void 0,{nativeEvent:e.nativeEvent,syntheticEvent:e})}),[v]),q=r.useCallback((function(e,t){var n=t?e.rgbaValue:e.value;M||T(n),t&&A(!1),h&&h.call(void 0,{value:n,nativeEvent:e.nativeEvent,syntheticEvent:e.syntheticEvent})}),[M,h]),G=r.useCallback((function(e){return q(e,!0)}),[J,q]),Z=Object(i.useDir)(y,n.dir),$=n.iconClassName||f&&"k-icon k-i-"+f,te=Object(i.classNames)({"k-widget":!0,"k-colorpicker":!0,"k-state-invalid":!1===u}),ne=r.useMemo((function(){return Object(i.classNames)({"k-picker-wrap":!0,"k-state-disabled":c,"k-state-focused":S})}),[S,c]);return r.createElement("span",{className:te,dir:Z},r.createElement("span",{id:n.id,"aria-labelledby":n.ariaLabelledBy,"aria-describedby":n.ariaDescribedBy,className:ne,ref:y,tabIndex:Object(i.getTabIndex)(d,c),title:n.title,onKeyDown:L,onFocus:U,onBlur:W},r.createElement(X,{dir:Z,open:F,onOpen:V,popupAnchor:y.current||void 0,popupSettings:Q({},o),input:$?r.createElement("span",{onClick:H,className:Object(i.classNames)("k-tool-icon",$)},r.createElement("span",{className:"k-selected-color",style:{backgroundColor:j}})):r.createElement("span",{onClick:H,className:"k-selected-color",style:{backgroundColor:j}},!j&&r.createElement("span",{className:"k-icon k-i-line"})),button:r.createElement("span",{onClick:B,className:"k-select",ref:O},r.createElement("span",{className:"k-icon k-i-arrow-s"})),content:r.createElement(r.Fragment,null,("combo"===p||"gradient"===p)&&r.createElement(z,Q({},s,{tabIndex:0,ref:b,value:j,onChange:q})),("combo"===p||"palette"===p)&&r.createElement(Y,Q({},l,{ref:k,value:j,onChange:G})))})))}));te.propTypes={value:o.string,defaultValue:o.string,disabled:o.bool,view:o.oneOf(["gradient","palette","combo"]),dir:o.string,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string},te.defaultProps={view:"palette",gradientSettings:{opacity:!0},paletteSettings:$},te.displayName="KendoColorPicker";var ne=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=r.useRef(null),o=r.useRef(null),s=r.useRef(null),l=r.useState("ColorGradient"===(e.view||"ColorGradient")),u=l[0],c=l[1],d=r.useState("rgba(255, 255, 255, 1)"),p=d[0],f=d[1],h=r.useState("rgba(255, 255, 255, 1)"),m=h[0],v=h[1],g=r.useCallback((function(){n.current&&n.current.focus()}),[n]);r.useImperativeHandle(n,(function(){return{element:o.current,focus:g,props:e}})),r.useImperativeHandle(t,(function(){return n.current}));var y=r.useCallback((function(e){("ColorGradient"===e&&!u||"ColorPalette"===e&&u)&&c(!u)}),[u]),b=r.useCallback((function(){f("rgba(255, 255, 255, 1)")}),[]),k=r.useCallback((function(e){f(e.value)}),[]),C=r.useCallback((function(){v(p)}),[p]),O=r.useCallback((function(){v("rgba(255, 255, 255, 1)")}),[]),E=r.useCallback((function(){f(m)}),[m]),S=r.useCallback((function(){o.current&&o.current.focus()}),[o]),x=r.useCallback((function(){v(p)}),[p]);return r.createElement("div",{id:e.id,style:e.style,ref:o,tabIndex:Object(i.getTabIndex)(e.tabIndex,e.disabled),className:Object(i.classNames)("k-flatcolorpicker k-coloreditor",{"k-state-disabled":e.disabled},e.className),onBlur:x},e.header||r.createElement("div",{className:"k-coloreditor-header k-hstack"},r.createElement("div",{className:"k-coloreditor-header-actions k-hstack"},r.createElement(w.ButtonGroup,null,r.createElement(w.Button,{type:"button",togglable:!0,look:"flat",selected:u,onClick:function(){return y("ColorGradient")}},r.createElement("span",{className:"k-icon k-i-color-canvas"})),r.createElement(w.Button,{type:"button",togglable:!0,look:"flat",selected:!u,onClick:function(){return y("ColorPalette")}},r.createElement("span",{className:"k-icon k-i-palette"})))),r.createElement("div",{className:"k-spacer"}),r.createElement("div",{className:"k-coloreditor-header-actions k-hstack"},e.showClearButton&&oe.showClearButton&&r.createElement(w.Button,{type:"button",look:"flat",onClick:b},r.createElement("span",{className:"k-icon k-i-reset-color"})),e.showPreview&&oe.showPreview&&r.createElement("div",{className:"k-coloreditor-preview k-vstack"},r.createElement("span",{className:"k-coloreditor-preview-color k-color-preview",style:{background:p}}),r.createElement("span",{className:"k-coloreditor-current-color k-color-preview",style:{background:m},onClick:E})))),r.createElement("div",{className:"k-coloreditor-views k-vstack"},u?r.createElement(z,{ref:s,value:p,onChange:k,onFocus:S}):r.createElement(Y,{value:p,onChange:k,onFocus:S})),e.showButtons&&oe.showButtons&&r.createElement("div",{className:"k-coloreditor-footer k-actions k-actions-end"},r.createElement(w.Button,{type:"button",className:"k-coloreditor-cancel",onClick:O},D["flatColorPicker.cancelBtn"]),r.createElement(w.Button,{type:"button",className:"k-coloreditor-apply k-primary",onClick:C},D["flatColorPicker.applyBtn"])))})),re={id:o.string,value:o.string,view:o.string,header:o.elementType,showClearButton:o.bool,showPreview:o.bool,showButtons:o.bool},oe={showClearButton:!0,showPreview:!0,showButtons:!0};ne.displayName="KendoFlatColorPicker",ne.propTypes=re,ne.defaultProps=oe;var ie,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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),se=function(){return(se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},le=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ue=function(e){function t(n){var r=e.call(this,n)||this;return r._inputId=Object(i.guid)(),r.focus=function(){r._input&&r._input.focus()},r.isInvalid=function(e){var t=!1;for(var n in e)e.hasOwnProperty(n)&&(t=t||e[n]);return t},r.setValidity=function(){r._input&&r._input.setCustomValidity&&(r.validity.valid||!r.validityStyles?r._input.classList.remove("k-state-invalid"):r._input.classList.add("k-state-invalid"),r._input.setCustomValidity(r.validity.valid?"":r.props.validationMessage||""))},r.handleChange=function(e){r.setState({value:e.target.value}),r.valueDuringOnChange=e.target.value,r.props.onChange&&r.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:e.target.value,target:r}),r.valueDuringOnChange=void 0},r.handleAutoFill=function(e){if("autoFillStart"===e.animationName){var t=e.target.parentNode;t&&t.classList.contains("k-state-empty")&&t.classList.remove("k-state-empty")}},Object(i.validatePackage)(a),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue},r}return ae(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._input},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e={badInput:!!this._input&&this._input.validity.badInput,patternMismatch:!!this._input&&this._input.validity.patternMismatch,rangeOverflow:!!this._input&&this._input.validity.rangeOverflow,rangeUnderflow:!!this._input&&this._input.validity.rangeUnderflow,stepMismatch:!!this._input&&this._input.validity.stepMismatch,tooLong:!!this._input&&this._input.validity.tooLong,typeMismatch:!!this._input&&this._input.validity.typeMismatch,valueMissing:!!this._input&&this._input.validity.valueMissing};return se({},e,{customError:void 0!==this.props.validationMessage,valid:void 0!==this.props.valid?this.props.valid:!this._input||!this.isInvalid(e)})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.setValidity()},t.prototype.render=function(){var e=this,t=this.props,n=t.className,o=t.label,a=t.id,s=(t.validationMessage,t.defaultValue,t.valid,t.visited,t.touched,t.modified,t.ariaLabelledBy),l=t.ariaDescribedBy,u=(t.validityStyles,t.style),c=le(t,["className","label","id","validationMessage","defaultValue","valid","visited","touched","modified","ariaLabelledBy","ariaDescribedBy","validityStyles","style"]),d=a||this._inputId,p=!this.validityStyles||this.validity.valid,f=Object(i.classNames)(n,"k-textbox"),h=r.createElement("input",se({"aria-labelledby":s,"aria-describedby":l},c,{style:o?void 0:u,value:this.value,id:d,className:f,onChange:this.handleChange,onAnimationStart:this.handleAutoFill,ref:function(t){e._input=t}}));return o?r.createElement(E.FloatingLabel,{label:o,editorId:d,editorValue:String(this.value),editorValid:p,editorDisabled:c.disabled,editorPlaceholder:c.placeholder,children:h,style:u,dir:c.dir}):h},t.displayName="Input",t.propTypes={label:o.string,validationMessage:o.string,required:o.bool,validate:o.bool,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string},t.defaultProps={defaultValue:"",required:!1,validityStyles:!0},t}(r.Component),ce=Object(i.createPropsContext)(),de=Object(i.withPropsContext)(ce,ue);de.displayName="KendoReactInput",function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(ie||(ie={}));var pe=function(){function e(e,t,n){void 0===n&&(n=ie.Undefined),this.value=e,this.rest=t,this.type=n}return e.prototype.map=function(t){return new e(t(this.value),this.rest)},e.prototype.chain=function(e){return e(this.value,this.rest)},e.prototype.fold=function(e,t){return e(this.value,this.rest)},e.prototype.concat=function(e){return this.map((function(t,n){return e.chain((function(e,n){return t.concat([e])}))}))},e.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},e}(),fe=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.input=e,this.control=t,this.inputCursor=0,this.controlCursor=0}return e.prototype.eof=function(){return this.inputCursor>=this.input.length},e.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},e.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},e.prototype.eat_input=function(){this.inputCursor++},e.prototype.eat_control=function(){this.controlCursor++},e.prototype.eat=function(){this.inputCursor++,this.controlCursor++},e}(),he=function(e){return(e||"").split("")},me=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof fe?this.parse(e):this.parse(new fe(he(e),he(t)))},e.prototype.map=function(t){var n=this;return new e((function(e){return n.parse(e).map(t)}))},e.prototype.chain=function(t){var n=this;return new e((function(e){return n.parse(e).chain((function(e,n){return t(e).run(n)}))}))},e.prototype.isLiteral=function(e){return this.run(e).type===ie.Literal},e}(),ve=function(e,t){return new me((function(n){var r=n.next().char,o=e[r];return"\\"===r?(r=n.next().char,new pe(t.literal(r),n)):new pe(o?t.mask(o):t.literal(r),n)}))},ge=function(e){var t=e.prompt,n=e.promptPlaceholder;return new me((function(e){var r=e.next().char;return new pe(r===t?n:r,e)}))},ye=function(e){return new me((function(t){var n=t.next().char;return new pe(e?n:"",t)}))},be=function(e){return e.reduce((function(e,t){return n=t,e.chain((function(e){return n.map((function(t){return e.concat([t])}))}));var n}),(t=[],new me((function(e){return new pe(t,e)}))));var t},ke=function(e){return new me((function(t){for(var n=new pe([],t);!t.eof();)n=n.concat(e.run(t));return n}))},Ce=function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}return e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,r=e.prompt,o=void 0===r?"":r,i=e.promptPlaceholder,a=void 0===i?" ":i,s=e.rules,l=void 0===s?{}:s,u=e.includeLiterals,c=void 0!==u&&u;this.mask=n,this.prompt=o,this.promptPlaceholder=a,this.rules=l,this.includeLiterals=c,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return be(this.validationTokens).run(e).fold((function(e){t=e.join("")})),t},e.prototype.rawValue=function(e){void 0===e&&(e="");var t=e;return this.rawTokens.length?(be(this.rawTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskRaw=function(e){void 0===e&&(e="");var t=e;return this.maskTokens.length?(be(this.maskTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},e.prototype.maskInRange=function(e,t,n,r){var o="",i=r,a=t.split("").slice(0,n),s=t.split("").slice(r);return be(this.maskTokens.slice(n,r)).run(e).fold((function(e){o=a.concat(e).concat(s).join("")})),{selection:i,value:o}},e.prototype.maskRemoved=function(e,t,n){var r=this,o="",i=n,a=e.split("").slice(n),s=e.split("").slice(0,n).join(""),l=this.maskTokens.length-(e.length-n);return be(this.maskTokens.slice(0,l)).run(s,t).fold((function(e){i=r.adjustPosition(e,i),o=e.concat(a).join("")})),{selection:i,value:o}},e.prototype.adjustPosition=function(e,t){var n=e[t];return this.maskTokens[t].isLiteral(n)||n===this.prompt?t:t+1},e.prototype.maskInserted=function(e,t,n){var r=this,o="",i=n,a=e.slice(0,n);return be(this.unmaskTokens).run(a,t).chain((function(e){i=e.join("").length;var n=t.slice(i);return be(r.maskTokens).run(e.join("")+n,t)})).fold((function(e){o=e.join("")})),{selection:i,value:o}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return t=e,new me((function(e){return e.peek().char===t?(e.eat(),new pe(t,e,ie.Literal)):new pe(t,e,ie.Literal)}));var t},mask:function(n){return function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new me((function(r){for(;!r.eof();){var o=r.peek(),i=o.char,a=o.control;if(i===a&&a===t)return r.eat(),new pe(t,r,ie.Mask);if(e.test(i))return r.eat(),new pe(i,r,ie.Mask);if(i===n)return r.eat(),new pe(t,r,ie.Mask);r.eat_input()}return r.eat(),new pe(t,r,ie.Mask)}))}}({prompt:e,promptPlaceholder:t})(n)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return t=e,new me((function(e){return e.eof()?new pe("",e):(e.peek().char===t&&e.eat(),new pe(t,e))}));var t},mask:function(t){return(n=e.prompt,function(e){return new me((function(t){for(;!t.eof();){var r=t.peek(),o=r.char,i=r.control;if(o===n&&i===n)return t.eat(),new pe(o,t);if(e.test(o))return t.eat(),new pe(o,t);t.eat_input()}return t.eat(),new pe("",t)}))})(t);var n}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder,n=this.includeLiterals;return{literal:function(e){return ye(n)},mask:function(n){return ge({prompt:e,promptPlaceholder:t})}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return ye(!1)},mask:function(t){return ge({prompt:e,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),e.prototype.tokenize=function(){var e=this;ke(ve(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),ke(ve(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),ke(ve(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),ke(ve(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e}(),Oe={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},we=function(){return!1},Ee=function(e,t){if(!!e!=!!t)return!1;if(e===t||!e||!t)return!0;var n=!0;for(var r in e)if(e[r]!==t[r]){n=!1;break}if(n)for(var r in t)if(!e.hasOwnProperty(r)){n=!1;break}return n},Se=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),De=function(){return(De=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},xe=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n._inputId="k-"+Object(i.guid)(),n._service=new Ce,n._isPasted=!1,n._selection=[null,null],n._input=null,n.focus=function(){n._input&&n._input.focus()},n.pasteHandler=function(e){var t=e.target,r=t.selectionStart,o=t.selectionEnd;o!==r&&(n._isPasted=!0,n._selection=[r||0,o||0])},n.onChangeHandler=function(e){var t=e.currentTarget,r=t.value,o=n._selection[0]||0,i=n._selection[1]||0;if(!n.props.mask)return n._isPasted=!1,n._selection=[null,null],void n.triggerOnChange(r,e);var a,s=n.value;if(n._isPasted){n._isPasted=!1;var l=s.length-i,u=r.length-l;a=n._service.maskInRange(r.slice(o,u),s,o,i)}else a=n._service.maskInput(r,s,t.selectionStart||0);n._selection=[a.selection,a.selection],n.triggerOnChange(a.value,e)},n.focusHandler=function(e){n.state.focused||(n.setState({focused:!0}),n.props.onFocus&&n.props.onFocus.call(void 0,{target:n,syntheticEvent:e,nativeEvent:e.nativeEvent}))},n.blurHandler=function(e){n.state.focused&&(n.setState({focused:!1}),n.props.onBlur&&n.props.onBlur.call(void 0,{target:n,syntheticEvent:e,nativeEvent:e.nativeEvent}))},n.setValidity=function(){n.element&&n.element.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"")},Object(i.validatePackage)(a),n}return Se(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._input},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this._valueDuringOnChange?this._valueDuringOnChange:void 0!==this.props.value?this.props.value:void 0!==this.state.value?this.state.value:void 0!==this.props.defaultValue?this.props.defaultValue:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rawValue",{get:function(){return this._service.rawValue(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=this.value,t=this._service.validationValue(e);return{customError:void 0!==this.props.validationMessage,valid:void 0!==this.props.valid?this.props.valid:!(this.required&&!t||this.props.maskValidation&&this.props.prompt&&-1!==e.indexOf(this.props.prompt)),valueMissing:!t}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){if(this.element&&this.state.focused&&t.focused){var n=this._selection,r=n[0],o=n[1],i=e.selection,a=this.props.selection;(!i&&a||i&&a&&(i.start!==a.start||i.end!==a.end))&&(r=a.start,o=a.end),null!==r&&null!==o&&this.element.setSelectionRange(r,o)}var s,l;s=e,l=this.props,s.includeLiterals===l.includeLiterals&&s.mask===l.mask&&s.prompt===l.prompt&&s.promptPlaceholder===l.promptPlaceholder&&Ee(s.rules,l.rules)||this.updateService(),this.setValidity()},t.prototype.componentDidMount=function(){this.updateService(),this.setValidity()},t.prototype.render=function(){var e=this,t=this.props.id||this._inputId,n=!this.validityStyles||this.validity.valid,o=this.props.style||{},a=r.createElement("span",{dir:this.props.dir,className:Object(i.classNames)("k-widget k-maskedtextbox",this.props.className,{"k-state-focused":this.state.focused,"k-state-disabled":this.props.disabled,"k-state-invalid":!n}),style:this.props.label?o:De({width:this.props.width},o)},r.createElement("input",{type:"text",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,className:"k-textbox",value:this.value,id:t,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,name:this.props.name,tabIndex:Object(i.getTabIndex)(this.props.tabIndex,this.props.disabled,!0),accessKey:this.props.accessKey,title:this.props.title,disabled:this.props.disabled||void 0,readOnly:this.props.readonly||void 0,placeholder:this.props.placeholder,ref:function(t){return e._input=t},onChange:this.onChangeHandler,onPaste:this.pasteHandler,onFocus:this.focusHandler,onBlur:this.blurHandler,onDragStart:we,onDrop:we}));return this.props.label?r.createElement(E.FloatingLabel,{label:this.props.label,editorId:t,editorValue:this.value,editorValid:n,editorDisabled:this.props.disabled,editorPlaceholder:this.props.placeholder,children:a,style:{width:this.props.width},dir:this.props.dir}):a},t.prototype.triggerOnChange=function(e,t){this.setState({value:e}),this.props.onChange&&(this._valueDuringOnChange=e,this.props.onChange.call(void 0,{syntheticEvent:t,nativeEvent:t.nativeEvent,selectionStart:this._selection[0],selectionEnd:this._selection[1],target:this,value:this.value}),this._valueDuringOnChange=void 0)},t.prototype.updateService=function(e){var t=Object.assign({includeLiterals:this.props.includeLiterals,mask:this.props.mask,prompt:this.props.prompt,promptPlaceholder:this.props.promptPlaceholder,rules:this.rules},e);this._service.update(t)},Object.defineProperty(t.prototype,"rules",{get:function(){return Object.assign({},Oe,this.props.rules)},enumerable:!0,configurable:!0}),t.displayName="MaskedTextBox",t.propTypes={value:o.string,defaultValue:o.string,placeholder:o.string,title:o.string,dir:o.string,id:o.string,style:o.object,className:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string,width:o.oneOfType([o.string,o.number]),tabIndex:o.number,accessKey:o.string,disabled:o.bool,readonly:o.bool,prompt:o.string,promptPlaceholder:o.string,includeLiterals:o.bool,maskValidation:o.bool,mask:o.string,rules:function(e,t,n){var r=e.rules;if(void 0!==r&&!Object.entries(r).some((function(e){return"string"!=typeof e||!(r[e]instanceof RegExp)})))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Validation failed.");return null},selection:o.shape({start:o.number.isRequired,end:o.number.isRequired}),name:o.string,label:o.string,validationMessage:o.string,required:o.bool,valid:o.bool,validityStyles:o.bool,onChange:o.func},t.defaultProps={prompt:"_",promptPlaceholder:" ",includeLiterals:!1,maskValidation:!0,rules:Oe,required:!1,validityStyles:!0},t}(r.Component),Ie=Object(i.createPropsContext)(),Te=Object(i.withPropsContext)(Ie,xe);Te.displayName="KendoReactMaskedTextBox";var _e=function(){return(_e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Pe=/\d/,Ne=function(e,t){return void 0!==e?e:t},Me=function(e,t,n){return null===e&&void 0===e?"":"string"==typeof e?e:n.formatNumber(e,t)},Re=function(e){return(String(e).split(".")[1]||"").length},je=function(e,t){return Math.max(Re(e),Re(t))},Fe=function(e,t){var n=function(e){return Math.min(e,15)}(t);return parseFloat(e.toFixed(n))},Ae=function(e,t,n,r,o,i,a){var s=je(e||0,n||0),l=Ve(Fe((e||0)+(n||0),s),r,o);t.eventValue=l,t.currentLooseValue=Me(l,i,a),t.selectionStart=t.selectionEnd=We(t.currentLooseValue,Pe)},Le=function(e,t,n,r,o,i,a){var s=je(e||0,n||0),l=Ve(Fe((e||0)-(n||0),s),r,o);t.eventValue=l,t.currentLooseValue=Me(l,i,a),t.selectionStart=t.selectionEnd=We(t.currentLooseValue,Pe)},Ve=function(e,t,n){return null==e?e:e>1||e<1||1===e?void 0!==n&&void 0!==t&&n<t?null:(void 0!==n&&e>n&&(e=n),void 0!==t&&e<t&&(e=t),e):null},Be=function(e,t,n){var r=function(e,t){var n=t.findIndex((function(t){t[0];var n=t[1];return Boolean(n)&&e.indexOf(n)===e.length-n.length}));if(-1===n)return-1;var r=t[n][1];return e.length-r.length}(e,t);if(-1!==r&&n.selectionStart>r)n.selectionStart=n.selectionEnd=r;else{n.selectionStart>e.length&&(n.selectionStart=n.selectionEnd=e.length);var o=function(e,t){var n=t.findIndex((function(t){var n=t[0];t[1];return Boolean(n)&&0===e.indexOf(n)}));return-1===n?-1:t[n][0].length}(e,t);-1!==o&&n.selectionStart<o&&(n.selectionStart=n.selectionEnd=o),-1===n.selectionStart&&(n.selectionStart=n.selectionEnd=0)}},ze=function(e,t,n,r){e.selectionStart=e.selectionEnd=t,Be(n,r,e)},He=function(e,t,n,r){e.eventValue=r.parseNumber(e.prevLooseValue,t),e.currentLooseValue=e.prevLooseValue,e.valueIsCorrected=!0,ze(e,e.selectionStart,e.currentLooseValue,n)},Ue=function(e,t){var n=e.indexOf(t.decimal);return n>-1?n:We(e,Pe)},Ke=function(e){return e.split("").reverse().join("")},We=function(e,t){return e.length-Ke(e).search(t)},qe=function(e){return e.split(e[e.search(Pe)])[0]},Ye=function(e){var t=Ke(e);return Ke(t.split(t[t.search(Pe)])[0])},Ge=function(e,t){return e.search(t)},Ze=function(e,t){var n=e.indexOf(t);return n>-1?e.length-n-1:0},Xe=function(e,t,n,r,o){var i="0"===e.replace(o,"")[0],a="0"===t.replace(o,"")[0];if(i&&!a)return n-1;if(a&&r)return n+1;for(var s=0,l=0;l<n;l++)Pe.test(e.charAt(l))&&s++;for(var u=0;s>0&&t.length>u;)Pe.test(t.charAt(u))&&s--,u++;return u},Qe=function(e,t,n){var r=_e({},e),o=r.prevLooseValue,i=n.numberSymbols(),a=function(e,t){var n=t.formatNumber(1111111.1111111,e),r=t.formatNumber(-1111111.1111111,e),o=t.formatNumber(0,e),i=t.formatNumber(1,e),a=t.numberSymbols(),s=new RegExp("[\\d\\"+a.decimal+a.group+"]","g");return[n,r,o,i].map((function(e){return e.replace(s,"")})).join("").split("").filter((function(e,t,n){return n.indexOf(e)===t})).join("")}(t,n),s=String(r.currentLooseValue),l=String(o),u=new RegExp("[^\\d\\"+i.decimal+"]","g"),c=new RegExp("[^\\d\\"+i.decimal+"\\"+i.group+"]","g"),d=new RegExp("[\\d\\"+i.decimal+"\\"+i.group+"]"),p=s.replace(u,""),f=Ge(s,Pe),h=-1===f?-1:We(s,Pe),m=s.indexOf(i.decimal),v=(s.substring(0,f)+s.substring(f,h).replace(c,"")+s.substring(h,s.length)).split("").filter((function(e){return-1!==a.indexOf(e)||-1!==e.search(d)})).join(""),g=n.formatNumber(.31111111111111117,t).replace(u,""),y=g.indexOf(i.decimal),b=y>-1?g.length-y-1:0,k=n.formatNumber(1,t).replace(u,""),C=k.indexOf(i.decimal),O=C>-1?k.length-C-1:0,w=function(e,t){var n=t.formatNumber(1111111.1111111,e),r=t.formatNumber(-1111111.1111111,e),o=t.formatNumber(0,e),i=t.formatNumber(1,e),a=qe(n),s=qe(r),l=qe(o),u=qe(i);return{positiveInfo:[a,Ye(n)],negativeInfo:[s,Ye(r)],zeroInfo:[l,Ye(o)],oneInfo:[u,Ye(i)]}}(t,n),E=[w.positiveInfo,w.negativeInfo,w.zeroInfo,w.oneInfo],S=1!==E.findIndex((function(e){return-1!==e.findIndex((function(e){return Boolean(e)}))})),D=s.length>0&&s.length<l.length,x=t&&"p"===t[0]&&s&&-1===s.indexOf(i.percentSign);if(!r.isPaste){if(""===s)return r.eventValue=null,r.currentLooseValue="",r;if(r.currentLooseValue===i.minusSign&&n.formatNumber(-0,t)!==l)return r.eventValue=-0,r.currentLooseValue=Me(r.eventValue,t,n),ze(r,Ue(r.currentLooseValue,i),r.currentLooseValue,E),r;if(function(e,t){var n=String(e.currentLooseValue),r=String(e.prevLooseValue);return n.split(t.minusSign).length!==r.split(t.minusSign).length&&n.length===r.length+t.minusSign.length}(r,i)){var I=n.parseNumber(o,t);r.eventValue=-(null!==I?I:0),r.currentLooseValue=Me(r.eventValue,t,n);var T=Ge(r.currentLooseValue,Pe),_=Ge(l,Pe);return ze(r,r.selectionEnd-1+(T-_),r.currentLooseValue,E),r}if(function(e,t){var n=String(e.currentLooseValue),r=String(e.prevLooseValue);return-1===n.indexOf(t.minusSign)&&-1!==r.indexOf(t.minusSign)}(r,i))return r.eventValue=n.parseNumber(r.currentLooseValue,t),ze(r,r.selectionStart,r.currentLooseValue,E),r;if(r.currentLooseValue===i.decimal){r.eventValue=0;var P=Me(r.eventValue,t,n);if(0===O&&b>0){var N=We(P,Pe);r.currentLooseValue=P.substring(0,N)+i.decimal+P.substring(N)}else r.currentLooseValue=P;return ze(r,Ue(r.currentLooseValue,i)+1,r.currentLooseValue,E),r}if(function(e,t){return String(e.currentLooseValue).split(t.decimal).length>2}(r,i))return He(r,t,E,n),r;if(x)return r.eventValue=n.parseNumber(s,t)/100,r.currentLooseValue=Me(r.eventValue,t,n),r;if(String(r.currentLooseValue).replace(/[^\d]/g,"").length>15)return He(r,t,E,n),r;if(p!==s&&s&&S)if(-1===E.findIndex((function(e){var t=e[0],n=e[1],r=s.indexOf(t),o=s.indexOf(n),a=0===r,l=o===s.length-n.length,u=r+t.length!==f&&-1!==f&&s[r+t.length]!==i.decimal,c=o!==h&&-1!==h&&s[o-1]!==i.decimal;return t&&n?!u&&!c&&(a&&l):t?!u&&a:!!n&&(!c&&l)})))return He(r,t,E,n),r;if(p[p.length-1]===i.decimal&&b>0)return r.eventValue=n.parseNumber(s,t),r.currentLooseValue=v,r;if(r.currentLooseValue&&o)if((a+i.decimal+i.group).split("").findIndex((function(e){return s.split("").filter((function(t){return t===e})).length<l.split("").filter((function(t){return t===e})).length&&s.length+1===l.length&&(e!==i.decimal||0!==Ze(l.replace(u,""),i.decimal))}))>-1)return r.eventValue=n.parseNumber(e.prevLooseValue,t),r.currentLooseValue=e.prevLooseValue,r;var M=Ze(p,i.decimal),R="0"===p[p.length-1];if(D&&R&&M<O)return r.eventValue=n.parseNumber(r.currentLooseValue,t),r.currentLooseValue=Me(r.eventValue,t,n),r;if(M>0){var j=s.substring(0,m);if(R&&(!j||0!==l.indexOf(j))){r.eventValue=n.parseNumber(r.currentLooseValue,t);var F=Me(r.eventValue,t,n);return ze(r,Xe(s,F,r.selectionEnd,D,u),F,E),r.currentLooseValue=F,r}if(M>b){var A=s.indexOf(i.decimal),L=s.substring(0,A)+s.substring(A,A+1+b)+s.substring(h,String(r.currentLooseValue).length);return r.eventValue=n.parseNumber(L,t),r.currentLooseValue=L,ze(r,r.selectionStart,L,E),r}if(O!==b&&M<=b&&R)return r.eventValue=n.parseNumber(r.currentLooseValue,t),r.currentLooseValue=v,r;if(M<O)return r.eventValue=n.parseNumber(r.currentLooseValue,t),r.currentLooseValue=Me(r.eventValue,t,n),r}}if(r.eventValue=n.parseNumber(r.currentLooseValue,t),x&&(r.eventValue=r.eventValue/100),"number"==typeof r.eventValue){F=Me(r.eventValue,t,n);1===s.length?ze(r,Ue(F,i),F,E):ze(r,Xe(s,F,r.selectionEnd,D,u),F,E),r.currentLooseValue=F}else r.currentLooseValue=Me(n.parseNumber(p),t,n);return r},$e=Object(i.createPropsContext)(),Je=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=Object(i.usePropsContext)($e,e),o=r.useMemo((function(){return Object(i.guid)()}),[]),s=n.id||o,l=Object(S.useInternationalization)(),u=Object(S.useLocalization)(),c=r.useRef(null),d=r.useRef(null),p=r.useRef(),f=r.useState(!1),h=f[0],m=f[1],v=r.useRef({eventValue:null,prevLooseValue:"",currentLooseValue:"",focused:!1,selectionStart:void 0,selectionEnd:void 0,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1}),g=r.useRef(!1),y=r.useRef(),b=r.useRef(n.defaultValue),k=Me(v.current.focused&&!n.disabled?v.current.currentLooseValue:Ne(n.value,b.current),n.format,l);y.current=k,r.useEffect((function(){c.current&&c.current.setCustomValidity&&c.current.setCustomValidity(I().valid?"":n.validationMessage||"Please enter a valid value!")}));var C=r.useCallback((function(){c.current&&c.current.focus()}),[]),O=r.useCallback((function(){return void 0!==p.current?p.current:Ne(n.value,b.current)}),[n.value]),w=r.useCallback((function(){return n.name}),[n.name]),x=r.useCallback((function(){return n.required}),[n.required]),I=r.useCallback((function(){var e=void 0!==n.validationMessage,t=O();return{customError:e,valid:void 0!==n.valid?n.valid:!(v.current.valueIsOutOfRange||x()&&null==t),valueMissing:null==t}}),[n.validationMessage,n.valid,O,x]),T=r.useCallback((function(){return n.validityStyles}),[n.validityStyles]),_=r.useCallback((function(){return n}),[n]),P=r.useCallback((function(){var e={element:c.current,focus:C};return Object.defineProperty(e,"name",{get:w}),Object.defineProperty(e,"value",{get:O}),Object.defineProperty(e,"validity",{get:I}),Object.defineProperty(e,"validityStyles",{get:T}),Object.defineProperty(e,"required",{get:x}),Object.defineProperty(e,"props",{get:_}),e}),[w,O,I,T,x,C,_]);r.useImperativeHandle(t,P);var N=r.useCallback((function(){return{eventValue:Ne(n.value,b.current),prevLooseValue:y.current,currentLooseValue:c.current.value,selectionStart:c.current.selectionStart,selectionEnd:c.current.selectionEnd,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1,isPaste:g.current,focused:v.current.focused}}),[n.value]),M=r.useCallback((function(e,t){if(!n.disabled){p.current=t.eventValue,b.current=t.eventValue;var r=Me(Ve(t.eventValue,n.min,n.max),n.format,l),o=Ve(l.parseNumber(r,n.format),n.min,n.max);if(o!==t.eventValue&&(t.valueIsOutOfRange=!0,t.eventValue=o,b.current=o),t.valueIsCorrected){var a=d.current;a&&-1===a.className.indexOf("k-state-invalid")&&(a.className+=" k-state-invalid",window.setTimeout((function(){return a.className=a.className.replace(" k-state-invalid","")}),50))}n.value!==t.eventValue&&Object(i.dispatchEvent)(n.onChange,e,P(),{value:t.eventValue}),p.current=void 0,v.current=t,m((function(e){return!e}))}}),[n.value,n.onChange,n.disabled,m,P]),R=r.useCallback((function(e){var t=N();g.current=!1,M(e,Qe(t,n.format,l))}),[n.format,n.onChange,l,M,N]),j=r.useCallback((function(e){var t=N(),r=l.parseNumber(String(t.currentLooseValue),n.format);if(t.selectionEnd>t.selectionStart&&t.selectionEnd-t.selectionStart===String(t.currentLooseValue).length)g.current=!0;else{switch(e.keyCode){case 38:Ae(r,t,n.step,n.min,n.max,n.format,l);break;case 40:Le(r,t,n.step,n.min,n.max,n.format,l);break;case 13:if(!1===n.rangeOnEnter)return;var o=Me(Ve(r,n.min,n.max),n.format,l),i=Ve(l.parseNumber(o,n.format),n.min,n.max);t.eventValue=i,t.currentLooseValue=Me(i,n.format,l),t.selectionStart=t.selectionEnd=t.currentLooseValue.length;break;case 110:var a=c.current,s=l.numberSymbols();a&&(t.currentLooseValue=t.currentLooseValue.slice(0,t.selectionStart)+s.decimal+t.currentLooseValue.slice(t.selectionEnd),t.selectionStart=t.selectionEnd=t.selectionStart+1,t=Qe(t,n.format,l));break;default:return}e.preventDefault(),M(e,t)}}),[n.format,n.min,n.max,n.step,n.onChange,n.rangeOnEnter,M,N]),F=r.useCallback((function(){g.current=!0}),[]),A=r.useCallback((function(e){if(!n.readOnly&&!n.disabled){var t=N();Ae(l.parseNumber(String(t.currentLooseValue),n.format),t,n.step,n.min,n.max,n.format,l),M(e,t)}}),[n.format,n.min,n.max,n.step,n.onChange,n.readOnly,n.disabled,M,N]),L=r.useCallback((function(e){if(!n.readOnly&&!n.disabled){var t=N();Le(l.parseNumber(String(t.currentLooseValue),n.format),t,n.step,n.min,n.max,n.format,l),M(e,t)}}),[n.format,n.min,n.max,n.step,n.onChange,n.readOnly,n.disabled,M,N]),V=r.useCallback((function(e){document&&document.activeElement===c.current&&c.current&&!n.readOnly&&!n.disabled&&(e.nativeEvent.deltaY<0&&A(e),e.nativeEvent.deltaY>0&&L(e))}),[A,L,n.disabled,n.readOnly]),B=r.useCallback((function(e){v.current.currentLooseValue=y.current,v.current.focused=!0,Object(i.dispatchEvent)(n.onFocus,e,P(),{}),m((function(e){return!e}))}),[n.onFocus,m,P]),z=r.useCallback((function(e){v.current={eventValue:null,prevLooseValue:"",currentLooseValue:"",focused:!1,selectionStart:void 0,selectionEnd:void 0,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1},Object(i.dispatchEvent)(n.onBlur,e,P(),{}),m((function(e){return!e}))}),[n.onBlur,m,P]),H=r.useCallback((function(e){document&&c.current&&(e.preventDefault(),document.activeElement!==c.current&&c.current.focus())}),[]);r.useLayoutEffect((function(){c.current&&void 0!==v.current.selectionStart&&void 0!==v.current.selectionEnd&&(c.current.selectionStart=v.current.selectionStart,c.current.selectionEnd=v.current.selectionEnd,v.current.selectionStart=void 0,v.current.selectionEnd=void 0)}),[h]);var U=!T()||I().valid,K=r.createElement("span",{dir:n.dir,style:n.label?void 0:{width:n.width},className:"k-widget k-numerictextbox"+(n.className?" "+n.className:""),"aria-disabled":n.disabled?"true":void 0},r.createElement("span",{className:Object(i.classNames)("k-numeric-wrap",{"k-state-disabled":n.disabled,"k-state-invalid":!U,"k-state-focused":v.current.focused}),ref:d},r.createElement("input",{value:null===k?"":k,tabIndex:Object(i.getTabIndex)(n.tabIndex,n.disabled),accessKey:n.accessKey,disabled:n.disabled,title:n.title,"aria-valuemin":n.min,"aria-valuemax":n.max,"aria-labelledby":n.ariaLabelledBy,"aria-describedby":n.ariaDescribedBy,placeholder:n.placeholder,spellCheck:!1,autoComplete:"off",autoCorrect:"off",type:n.inputType||"tel",className:"k-input k-formatted-value",id:s,name:n.name,readOnly:n.readOnly,onChange:R,onFocus:B,onBlur:z,onKeyDown:j,onPaste:F,onWheel:V,ref:c}),n.children,n.spinners&&r.createElement("span",{className:"k-select",onMouseDown:H},r.createElement("span",{className:"k-link k-link-increase","aria-label":u.toLanguageString("numerictextbox.increment",D["numerictextbox.increment"]),title:u.toLanguageString("numerictextbox.increment",D["numerictextbox.increment"]),onClick:A},r.createElement("span",{className:"k-icon k-i-arrow-n"})),r.createElement("span",{className:"k-link k-link-decrease","aria-label":u.toLanguageString("numerictextbox.decrement",D["numerictextbox.decrement"]),title:u.toLanguageString("numerictextbox.decrement",D["numerictextbox.decrement"]),onClick:L},r.createElement("span",{className:"k-icon k-i-arrow-s"})))));return n.label?r.createElement(E.FloatingLabel,{label:n.label,editorId:s,editorValue:null===k?"":k,editorValid:U,editorDisabled:n.disabled,editorPlaceholder:n.placeholder,children:K,style:{width:n.width},dir:n.dir}):K}));Je.propTypes={value:o.number,defaultValue:o.number,step:o.number,format:o.oneOfType([o.string,o.shape({style:o.oneOf(["decimal","currency","percent","scientific","accounting"]),currency:o.string,currencyDisplay:o.oneOf(["symbol","code","name"]),useGrouping:o.bool,minimumIntegerDigits:o.number,minimumFractionDigits:o.number,maximumFractionDigits:o.number})]),width:o.oneOfType([o.string,o.number]),tabIndex:o.number,accessKey:o.string,title:o.string,placeholder:o.string,min:o.number,max:o.number,spinners:o.bool,disabled:o.bool,readOnly:o.bool,dir:o.string,name:o.string,label:o.string,validationMessage:o.string,required:o.bool,id:o.string,rangeOnEnter:o.bool,ariaLabelledBy:o.string,ariaDescribedBy:o.string,onChange:o.func,onFocus:o.func,onBlur:o.func},Je.displayName="KendoNumericTextBox",Je.defaultProps={step:1,spinners:!0,disabled:!1,required:!1,validityStyles:!0,rangeOnEnter:!0,onChange:function(e){},onFocus:function(e){},onBlur:function(e){}};var et=function(){return(et=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},tt="data-slider-label",nt=function(e){var t,n,o=r.useRef(null),a=Object(i.useDir)(o),s=e.vertical?{bottom:e.position+"%",height:"1px",width:"100%"}:((t={})["rtl"===a?"right":"left"]=e.position+"%",t.width="1px",t);return r.createElement("li",{ref:o,role:"presentation",className:"k-tick k-tick-large",title:e.title,style:et({zIndex:1,position:"absolute"},s)},r.createElement("span",et({},((n={})[tt]=!0,n),{className:"k-label",onClick:e.onClick}),e.children))},rt=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ot=function(){return(ot=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},it=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:void 0===n.props.defaultValue?n.props.min:n.props.defaultValue,focused:!1,dir:n.props.dir},n.buttons=function(e){return e.enabled?r.createElement(r.Fragment,null,r.createElement("a",{className:"k-button k-button-decrease",style:{position:"relative"},title:e.decrementTitle,onClick:e.decrement},r.createElement("span",{className:Object(i.classNames)("k-icon",{"k-i-arrow-s":n.props.vertical,"k-i-arrow-w":!n.props.vertical})})),e.children,r.createElement("a",{className:"k-button k-button-increase",style:{position:"relative"},title:e.incrementTitle,onClick:e.increment},r.createElement("span",{className:Object(i.classNames)("k-icon",{"k-i-arrow-n":n.props.vertical,"k-i-arrow-e":!n.props.vertical})}))):e.children},n.focus=function(){n._element&&n._element.focus()},n.isLabel=function(e){for(var t=e;t;){if(Boolean(t.getAttribute(tt)))return!0;t=t.parentElement}return!1},n.onFocus=function(){n.setState({focused:!0})},n.onBlur=function(){n.setState({focused:!1})},n.onKeyDown=function(e){var t=void 0;e.keyCode===i.Keys.left||e.keyCode===i.Keys.down?t=n.state.value-(n.props.step||0):e.keyCode===i.Keys.right||e.keyCode===i.Keys.up?t=n.state.value+(n.props.step||0):e.keyCode===i.Keys.home?t=n.props.min:e.keyCode===i.Keys.end&&(t=n.props.max),void 0!==t&&(e.preventDefault(),n.change(e,t))},n.decrement=function(e){e.preventDefault(),n.change(e,n.state.value-(n.props.step||0))},n.increment=function(e){e.preventDefault(),n.change(e,n.state.value+(n.props.step||0))},n.dragStart=function(e){n.isLabel(e.event.originalEvent.target)||(e.event.isTouch&&e.event.originalEvent.preventDefault(),n.drag(e))},n.dragOver=function(e){e.event.originalEvent.preventDefault(),n.drag(e)},n.drag=function(e){var t=e.element.getBoundingClientRect(),r=(n.props.vertical?t.bottom-e.event.clientY:"rtl"===n.state.dir?t.right-e.event.clientX:e.event.clientX-t.left)/(n.props.vertical?t.height:t.width);n.change(e,n.props.min+r*(n.props.max-n.props.min))},Object(i.validatePackage)(a),n}return rt(t,e),t.getDerivedStateFromProps=function(e,t){var n=void 0!==e.value?e.value:t.value,r=e.min,o=e.max;return void 0===n?null:{value:Math.min(Math.max(n,r),o)}},t.prototype.componentDidMount=function(){if(!this.state.dir&&window&&this._element){var e=window.getComputedStyle(this._element).direction;e&&this.setState({dir:e})}},t.prototype.render=function(){var e,t,n=this,o=Object(S.provideLocalizationService)(this),a=(this.state.value-this.props.min)/(this.props.max-this.props.min)*100,s=this.props.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"},l=this.props.vertical?{paddingTop:0,height:"100%"}:{};return r.createElement("div",{ref:function(e){return n._element=e},"aria-valuemin":this.props.min,"aria-valuemax":this.props.max,"aria-valuenow":this.state.value,"aria-disabled":this.props.disabled?"true":void 0,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,dir:this.state.dir,role:"slider",id:this.props.id,style:this.props.style,tabIndex:Object(i.getTabIndex)(this.props.tabIndex,this.props.disabled,void 0),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,className:Object(i.classNames)("k-slider k-widget",{"k-state-focused":this.state.focused,"k-state-disabled":this.props.disabled,"k-slider-horizontal":!this.props.vertical,"k-slider-vertical":this.props.vertical},this.props.className)},r.createElement("div",{className:Object(i.classNames)("k-slider-wrap",{"k-slider-buttons":this.props.buttons}),style:{display:"flex",position:"relative",flexDirection:this.props.vertical?"column-reverse":"row"}},r.createElement(this.buttons,{enabled:this.props.buttons,decrement:this.decrement,increment:this.increment,incrementTitle:o.toLanguageString("slider.increment",D["slider.increment"]),decrementTitle:o.toLanguageString("slider.decrement",D["slider.decrement"])},r.createElement(i.Draggable,{onDrag:this.dragOver,onPress:this.dragStart},r.createElement("div",{className:"k-slider-track-wrap",style:ot({flexGrow:1,position:"relative",touchAction:"none"},s)},this.props.children&&r.createElement("ul",{className:"k-reset k-slider-items",style:ot({margin:0},l)},r.Children.map(this.props.children,(function(e){return e&&r.cloneElement(e,{position:100*(e.props.position-n.props.min)/(n.props.max-n.props.min),vertical:n.props.vertical},e.props.children)}))),r.createElement("div",{className:"k-slider-track",style:this.props.vertical?{bottom:0,height:"100%"}:(e={},e["rtl"===this.state.dir?"right":"left"]=0,e.width="100%",e),ref:function(e){return n._sliderTrack=e}},r.createElement("div",{className:"k-slider-selection",style:this.props.vertical?{height:a+"%"}:{width:a+"%"}}),r.createElement("a",{className:"k-draghandle",title:o.toLanguageString("slider.dragTitle",D["slider.dragTitle"]),style:this.props.vertical?{bottom:"calc("+a+"% - 8px)",zIndex:1}:(t={},t["rtl"===this.state.dir?"right":"left"]="calc("+a+"% - 8px)",t.zIndex=1,t)})))))))},Object.defineProperty(t.prototype,"sliderTrack",{get:function(){return this._sliderTrack},enumerable:!0,configurable:!0}),t.prototype.change=function(e,t){t=Math.min(Math.max(t,this.props.min),this.props.max),this.setState({value:t}),Object(i.dispatchEvent)(this.props.onChange,e,this,{value:t})},t.displayName="Slider",t.propTypes={min:o.number.isRequired,max:o.number.isRequired,value:o.number,vertical:o.bool,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string},t}(r.Component),at=Object(i.createPropsContext)(),st=Object(i.withPropsContext)(at,it);st.displayName="KendoReactSlider",Object(S.registerForLocalization)(it);var lt,ut=function(){return(ut=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};!function(e){e.start="start",e.end="end",e.min="min",e.max="max",e.increase="increase",e.decrease="decrease"}(lt||(lt={}));var ct=function(){return(ct=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},dt=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1],s=r.useCallback((function(e){var r=function(e,t){var n,r;switch(t.type){case lt.start:if(void 0===t.payload)return e;n={start:t.payload>e.end?e.end:Math.max(t.payload,t.min),end:e.end};break;case lt.end:if(void 0===t.payload)return e;n={start:e.start,end:t.payload<e.start?e.start:Math.min(t.payload,t.max)};break;case lt.min:n="start"===t.key?ut({},e,{start:t.min}):ut({},e,{end:Math.max(t.min,e.start)});break;case lt.max:n="start"===t.key?ut({},e,{start:Math.min(t.max,e.end)}):ut({},e,{end:t.max});break;case lt.increase:if(void 0===t.step||void 0===t.key)return e;r=e[t.key]+t.step,n="start"===t.key?r<t.min?ut({},e,{start:t.min}):ut({},e,{start:Math.min(r,e.end)}):r>t.max?ut({},e,{end:t.max}):ut({},e,{end:Math.max(r,e.start)});break;case lt.decrease:if(void 0===t.step||void 0===t.key)return e;r=e[t.key]-t.step,n="start"===t.key?r<t.min?ut({},e,{start:t.min}):ut({},e,{start:Math.min(r,e.end)}):r>t.max?ut({},e,{end:t.max}):ut({},e,{end:Math.max(r,e.start)});break;default:n=e}return n}(t.state||i,ct({},e,t));n&&n(r,e.event),a(r)}),[t,n]);return[i,s]},pt=Object(i.createPropsContext)(),ft=r.forwardRef((function(e,t){var n,o,s,l;Object(i.validatePackage)(a);var u=Object(i.usePropsContext)(pt,e),c=r.useRef(null),d=r.useRef(null),p=r.useRef(null),f=r.useRef(null),h=r.useRef(null),m=r.useCallback((function(){f.current&&f.current.focus()}),[f]);r.useImperativeHandle(c,(function(){return{element:d.current,focus:m,props:u}})),r.useImperativeHandle(t,(function(){return c.current}));var v=r.useMemo((function(){return u.min}),[u.min]),g=r.useMemo((function(){return u.max}),[u.max]),y=r.useMemo((function(){return void 0!==u.step?u.step:mt.step}),[u.step,mt.step]),b=Object(i.useDir)(d,u.dir),k=r.useState(""),C=k[0],O=k[1],w=dt(u.defaultValue||mt.defaultValue,{min:v,max:g,step:y,state:u.value},(function(e,t){u.onChange&&c.current&&u.onChange.call(void 0,{value:e,target:c.current,syntheticEvent:t})})),E=w[0],x=w[1],I=r.useMemo((function(){return u.value||E}),[u.value,E]),T=r.useRef(null),_=r.useRef(null),P=r.useMemo((function(){return(I.start-v)/(g-v)*100}),[I.start,v,g]),N=r.useMemo((function(){return(I.end-v)/(g-v)*100}),[I.end,v,g]),M=r.useMemo((function(){return u.vertical?{paddingTop:0,height:"100%"}:{}}),[u.vertical]),R=r.useMemo((function(){return u.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"}}),[u.vertical]),j=Object(S.useLocalization)(),F=r.useCallback((function(e){if(_.current){e.originalEvent.preventDefault();var t=_.current.getBoundingClientRect(),n=u.vertical?t.bottom-e.clientY:"rtl"===b?t.right-e.clientX:e.clientX-t.left,r=u.vertical?t.height:t.width;return v+n/r*(g-v)}}),[_,u.vertical,b,v,g,E.start,E.end,u.value&&u.value.start,u.value&&u.value.end]),A=r.useCallback((function(e){return e<=I.start?"start":e>=I.end?"end":2*e<I.end+I.start?"start":"end"}),[E.start,E.end,u.value&&u.value.start,u.value&&u.value.end]),L=r.useCallback((function(e){switch(e.keyCode){case i.Keys.right:e.preventDefault(),x({type:"rtl"===b?lt.decrease:lt.increase,key:"start",event:e});break;case i.Keys.up:e.preventDefault(),x({type:lt.increase,key:"start",event:e});break;case i.Keys.left:e.preventDefault(),x({type:"rtl"===b?lt.increase:lt.decrease,key:"start",event:e});break;case i.Keys.down:e.preventDefault(),x({type:lt.decrease,key:"start",event:e});break;case i.Keys.home:e.preventDefault(),x({type:lt.min,key:"start",event:e});break;case i.Keys.end:e.preventDefault(),x({type:lt.max,key:"start",event:e})}}),[x]),V=r.useCallback((function(e){switch(e.keyCode){case i.Keys.right:e.preventDefault(),x({type:"rtl"===b?lt.decrease:lt.increase,key:"end",event:e});break;case i.Keys.up:e.preventDefault(),x({type:lt.increase,key:"end",event:e});break;case i.Keys.left:e.preventDefault(),x({type:"rtl"===b?lt.increase:lt.decrease,key:"end",event:e});break;case i.Keys.down:e.preventDefault(),x({type:lt.decrease,key:"end",event:e});break;case i.Keys.home:e.preventDefault(),x({type:lt.min,key:"end",event:e});break;case i.Keys.end:e.preventDefault(),x({type:lt.max,key:"end",event:e})}}),[x,b]),B=r.useCallback((function(e){var t=F(e),n=A(t);O(n),"end"===n?h.current.focus():f.current.focus();var r="end"===n?lt.end:lt.start;x({type:r,payload:t,event:e})}),[u.vertical,v,g,x]);return Object(i.useDraggable)(_,{onPress:B,onDrag:function(e){var t=F(e),n="end"===C?lt.end:lt.start;x({type:n,payload:t,event:e})},onRelease:function(e){var t=F(e),n="end"===C?lt.end:lt.start;x({type:n,payload:t,event:e}),O("")}}),r.createElement("div",{role:"slider",id:u.id,style:u.style,ref:d,dir:b,className:Object(i.classNames)("k-widget k-slider",{"k-rtl":"rtl"===b,"k-state-disabled":u.disabled,"k-slider-vertical":u.vertical,"k-slider-horizontal":!u.vertical},u.className),"aria-labelledby":u.ariaLabelledBy,"aria-describedby":u.ariaDescribedBy},r.createElement("div",{className:"k-slider-wrap",style:{display:"flex",position:"relative",flexDirection:u.vertical?"column-reverse":"row"}},r.createElement("div",{ref:_,className:"k-slider-track-wrap",style:ct({flexGrow:1,position:"relative",touchAction:"none"},R)},u.children&&r.createElement("ul",{className:"k-reset k-slider-items",style:ct({margin:0},M)},r.Children.map(u.children,(function(e){return e&&r.cloneElement(e,{position:100*(e.props.position-u.min)/(u.max-u.min),vertical:u.vertical},e.props.children)}))),r.createElement("div",{ref:T,className:"k-slider-track",style:u.vertical?{bottom:0,height:"100%"}:(n={},n["rtl"===b?"right":"left"]=0,n.width="100%",n)},null!==P&&null!==N&&r.createElement("div",{"data-selection":!0,ref:p,title:I.start+" - "+I.end,className:"k-slider-selection",style:u.vertical?{height:N-P+"%",bottom:P+"%"}:(o={},o["rtl"===b?"right":"left"]=P+"%",o.width=N-P+"%",o)}),r.createElement("a",{ref:f,role:"slider",tabIndex:Object(i.getTabIndex)(u.startTabIndex,u.disabled,void 0),"aria-valuemin":v,"aria-valuemax":Math.max(g,I.end),"aria-valuenow":I.start,"aria-disabled":u.disabled?"true":void 0,className:"k-draghandle",title:j.toLanguageString("slider.dragTitle",D["slider.dragTitle"]),style:u.vertical?{bottom:"calc("+P+"% - 8px)",zIndex:1}:(s={},s["rtl"===b?"right":"left"]="calc("+P+"% - 8px)",s.zIndex=1,s),onKeyDown:L}),r.createElement("a",{ref:h,role:"slider",tabIndex:Object(i.getTabIndex)(u.endTabIndex,u.disabled,void 0),"aria-valuemin":Math.min(v,I.start),"aria-valuemax":g,"aria-valuenow":I.end,"aria-disabled":u.disabled?"true":void 0,className:"k-draghandle",title:j.toLanguageString("slider.dragTitle",D["slider.dragTitle"]),style:u.vertical?{bottom:"calc("+N+"% - 8px)",zIndex:1}:(l={},l["rtl"===b?"right":"left"]="calc("+N+"% - 8px)",l.zIndex=1,l),onKeyDown:V})))))})),ht={value:function(e,t,n){if(e.value){var r=e.value.start,o=e.value.end,i=e.min,a=e.max;if(r>o||r>a||r<i||o>a||o<i||o<r)return new Error("Invalid prop + "+t+" supplied to "+n+".\n The { start, end } value must be between the min & max value and { start, end } must be start < end.\n ")}return null},defaultValue:function(e,t,n){if(e.defaultValue){var r=e.defaultValue.start,o=e.defaultValue.end,i=e.min,a=e.max;if(r>o||r>a||r<i||o>a||o<i||o<r)return new Error("Invalid prop + "+t+" supplied to "+n+".\n The { start, end } value must be between the min & max value and { start, end } must be start < end.\n ")}return null},onChange:o.func,step:o.number,min:function(e,t,n){var r=e[t],o=e.min,i=e.max;return void 0===o?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be undefined.\n "):r&&o>=i?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be equal to or bigger than the max value.\n "):null},max:function(e,t,n){var r=e[t],o=e.min,i=e.max;return void 0===i?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be undefined.\n "):r&&i<=o?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be equal to or smaller than the min value.\n "):null},vertical:o.bool,disabled:o.bool,dir:o.oneOf(["ltr","rtl"])},mt={step:1,defaultValue:{start:0,end:0},vertical:!1,disabled:!1};ft.displayName="KendoReactRangeSlider",ft.propTypes=ht,ft.defaultProps=mt;var vt=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gt=function(){return(gt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},yt=function(e){function t(n){var o=e.call(this,n)||this;return o.setValidity=function(){o._input&&o._input.setCustomValidity&&o._input.setCustomValidity(o.validity.valid?"":o.props.validationMessage||o.defaultValidationMessage.toLanguageString("switch.validation",D["switch.validation"]))},o.limit=function(e,t,n){var r=n.offsetWidth,o=t.offsetWidth;return e<0?0:e>r-o?r-o:e},o.toggle=function(e,t){o.setState({checked:e}),o.valueDuringOnChange=e,Object(i.dispatchEvent)(o.props.onChange,t,o,{value:e}),o.valueDuringOnChange=void 0},o._id=Object(i.guid)(),o.defaultValidationMessage=Object(S.provideLocalizationService)(o),o.focus=function(){o._element&&o._element.focus()},o.dummyInput=function(e){return r.createElement("input",{type:"checkbox",checked:o.props.checked,ref:function(e){o._input=e},tabIndex:-1,"aria-hidden":!0,value:e,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"},onChange:i.noop})},o.handleClick=function(e){o.eventTimeStamp!==e.timeStamp&&(o.eventTimeStamp=e.timeStamp,o.toggle(!o.value,e))},o.handleKeyDown=function(e){if(!o.props.disabled){var t=e.keyCode;t!==i.Keys.space&&t!==i.Keys.enter||o.toggle(!o.value,e)}},o.handleWrapperFocus=function(e){if(!o.props.disabled){o.setState({focused:!0});var t=o.props.onFocus;t&&t.call(void 0,e)}},o.handleWrapperBlur=function(e){if(!o.props.disabled){o.setState({focused:!1});var t=o.props.onBlur;t&&t.call(void 0,e)}},Object(i.validatePackage)(a),o.state={checked:n.defaultChecked||t.defaultProps.defaultChecked,focused:!1},o}return vt(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.checked?this.props.checked:this.state.checked},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actionElement",{get:function(){return this._wrapper},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=void 0!==this.props.valid?this.props.valid:!this.props.required||!!this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.setValidity(),this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.setValidity()},t.prototype.render=function(){var e=this,t=this.state.focused,n=this.props,o=n.dir,a=n.disabled,s=n.id,l=n.offLabel,u=n.onLabel,c=n.tabIndex;this.dir=o||this._wrapper&&getComputedStyle(this._wrapper).direction||void 0;var d=!this.validityStyles||this.validity.valid,p=Object(i.classNames)({"k-widget":!0,"k-switch":!0,"k-switch-on":this.value,"k-switch-off":!this.value,"k-state-focused":t,"k-state-disabled":a,"k-state-invalid":!d},this.props.className),f={"aria-checked":this.value,"aria-disabled":a||void 0};return r.createElement("span",{ref:function(t){e._wrapper=t},className:p,dir:this.dir,onKeyDown:this.handleKeyDown,onClick:this.handleClick,onBlur:this.handleWrapperBlur,onFocus:this.handleWrapperFocus},r.createElement("span",gt({className:"k-switch-container",id:s||this._id,role:"switch"},f,{"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,ref:function(t){e._element=t},tabIndex:Object(i.getTabIndex)(c,a,void 0),accessKey:this.props.accessKey}),this.dummyInput(this.value),r.createElement("span",{className:"k-switch-label-on"},u),r.createElement("span",{className:"k-switch-label-off"},l),r.createElement("span",{className:"k-switch-handle"})))},t.displayName="Switch",t.propTypes={accessKey:o.string,checked:o.bool,className:o.string,disabled:o.bool,defaultChecked:o.bool,dir:o.string,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string,offLabel:o.string,required:o.bool,tabIndex:o.number,valid:o.bool,validate:o.bool,validationMessage:o.string,onBlur:o.any,onChange:o.any,onFocus:o.any,onLabel:o.string},t.defaultProps={disabled:!1,defaultChecked:!1,offLabel:"OFF",onBlur:i.noop,onFocus:i.noop,onLabel:"ON",required:!1,validityStyles:!0},t}(r.Component),bt=Object(i.createPropsContext)(),kt=Object(i.withPropsContext)(bt,yt);kt.displayName="KendoReactSwitch";var Ct=function(){return(Ct=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},wt=Object(i.createPropsContext)(),Et=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=Object(i.usePropsContext)(wt,e),o=n,s=o.ariaDescribedBy,l=o.ariaLabelledBy,u=o.checked,c=o.className,d=o.children,p=o.defaultChecked,f=o.disabled,h=o.defaultValue,m=o.id,v=o.label,g=o.labelPlacement,y=o.name,b=o.labelOptional,k=o.onChange,C=o.onFocus,O=o.onBlur,w=o.tabIndex,E=o.value,x=o.required,I=o.valid,T=o.validationMessage,_=o.validityStyles,P=(o.visited,o.touched,o.modified,Ot(o,["ariaDescribedBy","ariaLabelledBy","checked","className","children","defaultChecked","disabled","defaultValue","id","label","labelPlacement","name","labelOptional","onChange","onFocus","onBlur","tabIndex","value","required","valid","validationMessage","validityStyles","visited","touched","modified"])),N=r.useRef(null),M=r.useCallback((function(){N.current&&N.current.focus()}),[]),R=r.useCallback((function(){return{element:N.current,focus:M,get name(){return N.current&&N.current.name}}}),[M]);r.useImperativeHandle(t,R);var j=r.useState(p),F=j[0],A=j[1],L=r.useState(h),V=L[0],B=L[1],z="boolean"==typeof E||null===E,H=void 0!==u,U=z,K=U?E:V,W=H?u:U?void 0:F,q=void 0===W&&K,Y=q?K:W,G=q||U?null===E?E:void 0:E||K,Z=null===Y||null===G,X=r.useMemo((function(){return Object(i.guid)()}),[]),Q=Object(S.useLocalization)(),$=function(e){return Q.toLanguageString(e,D[e])},J=$("checkbox.validation"),ee=$("checkbox.optionalText"),te=void 0!==I?I:!x||!!W;r.useEffect((function(){N.current&&N.current.setCustomValidity&&N.current.setCustomValidity(te?"":T||J)}),[te,T,J]);var ne=r.useCallback((function(e,t){U||f||(B(t),H||f||A(t)),k&&!f&&Object(i.dispatchEvent)(k,e,Ct({},R(),{value:t}),{value:t})}),[H,f,k,U,R]),re=r.useCallback((function(e){var t=e.target.checked;ne(e,t)}),[ne,E]),oe=r.useCallback((function(e){if(!f){var t=e.keyCode,n=e.currentTarget.checked;t===i.Keys.space&&(e.preventDefault(),e.stopPropagation(),ne(e,!n))}}),[f,ne]),ie=r.useCallback((function(e){f||e.keyCode===i.Keys.space&&e.preventDefault()}),[f]),ae=r.useCallback((function(e){C&&!f&&Object(i.dispatchEvent)(C,e,R(),void 0)}),[C,f,R]),se=r.useCallback((function(e){O&&!f&&Object(i.dispatchEvent)(O,e,R(),void 0)}),[O,f,R]),le=Object(i.useDir)(N,n.dir),ue=Object(i.classNames)({"k-state-disabled":f},c),ce=Ct({type:"checkbox",className:Object(i.classNames)({"k-checkbox":!0,"k-state-indeterminate":Z,"k-state-invalid k-invalid":!(te||void 0!==_||!0===_)}),ref:N,name:y,id:m||X,"aria-labelledby":l,"aria-describedby":s,checked:Boolean(Y),disabled:f,tabIndex:Object(i.getTabIndex)(w,f),role:"checkbox",required:void 0!==x&&x,"aria-checked":!(!W&&!Y)||!!Z&&"mixed","aria-disabled":f||void 0},P,{onChange:re,onKeyDown:oe,onKeyUp:ie,onFocus:ae,onBlur:se}),de=r.createElement(r.Fragment,null,void 0===G?r.createElement("input",Ct({},ce)):r.createElement("input",Ct({},ce,{value:z?void 0:null===G?"":G}))),pe=r.createElement(r.Fragment,null,void 0!==v?r.createElement("label",{className:"k-checkbox-label",htmlFor:m||X,style:{userSelect:"none"}},v,b&&r.createElement("span",{className:"k-label-optional"},ee)):null);return r.createElement(r.Fragment,null,"before"===g?r.createElement("span",{className:ue,dir:"rtl"},de,pe,d):r.createElement("span",{className:ue,dir:le},de,pe,d))}));Et.propTypes={checked:o.bool,className:o.string,defaultChecked:o.bool,defaultValue:o.any,dir:o.string,disabled:o.bool,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string,label:o.any,labelPlacement:o.string,labelOptional:o.bool,name:o.string,tabIndex:o.number,value:o.any,validationMessage:o.string,required:o.bool,validate:o.bool,valid:o.bool,onChange:o.func,onFocus:o.func,onBlur:o.func},Et.displayName="KendoCheckbox";var St=function(){return(St=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Dt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},xt=Object(i.createPropsContext)(),It=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=Object(i.usePropsContext)(xt,e),o=n.ariaDescribedBy,s=n.checked,l=n.children,u=n.className,c=n.disabled,d=n.id,p=n.label,f=n.labelPlacement,h=n.name,m=n.style,v=n.tabIndex,g=n.value,y=n.valid,b=n.onChange,k=n.onFocus,C=n.onBlur,O=Dt(n,["ariaDescribedBy","checked","children","className","disabled","id","label","labelPlacement","name","style","tabIndex","value","valid","onChange","onFocus","onBlur"]),w=r.useRef(null),E=r.useCallback((function(){w.current&&w.current.focus()}),[]),S=r.useCallback((function(){return{element:w.current,focus:E}}),[E]);r.useImperativeHandle(t,S);var D=r.useMemo((function(){return Object(i.guid)()}),[]),x=r.useCallback((function(e){Object(i.dispatchEvent)(b,e,S(),{value:g})}),[b,g,c]),I=r.useCallback((function(e){k&&!c&&Object(i.dispatchEvent)(k,e,S(),void 0)}),[k,c]),T=r.useCallback((function(e){C&&!c&&Object(i.dispatchEvent)(C,e,S(),void 0)}),[C,c]),_=St({type:"radio",id:d||D,name:h,className:Object(i.classNames)({"k-radio":!0,"k-state-invalid":!1===y,"k-invalid":!1===y},u),ref:w,disabled:c,tabIndex:Object(i.getTabIndex)(v,c),checked:s,style:m,"aria-describedby":o,value:g,onChange:x,onFocus:I,onBlur:T},O),P=r.createElement(r.Fragment,null,void 0!==p?r.createElement("label",{className:"k-radio-label",htmlFor:d||D,style:{userSelect:"none"},"aria-label":p},p):null),N=r.createElement("input",St({},_));return"before"===f?r.createElement(r.Fragment,null,P,N,l):r.createElement(r.Fragment,null,N,P,l)}));It.propTypes={ariaDescribedBy:o.string,checked:o.bool,className:o.string,disabled:o.bool,id:o.string,label:o.string,labelPlacement:o.string,name:o.string,style:o.object,tabIndex:o.number,value:o.any,valid:o.bool,onChange:o.func,onFocus:o.func,onBlur:o.func},It.displayName="KendoRadioButton";var Tt=function(){return(Tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},_t=Object(i.createPropsContext)(),Pt=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=Object(i.usePropsContext)(_t,e),o=n.ariaLabelledBy,s=n.ariaDescribedBy,l=n.className,u=n.data,c=n.defaultValue,d=n.disabled,p=n.name,f=n.labelPlacement,h=n.layout,m=n.style,v=n.value,g=n.valid,y=n.item,b=void 0===y?Nt.item:y,k=n.onChange,C=n.onFocus,O=r.useRef(null),w=r.useCallback((function(){O.current&&Object(i.focusFirstFocusableChild)(O.current)}),[]),E=r.useCallback((function(){return{element:O.current,focus:w}}),[w]);r.useImperativeHandle(t,E);var S=r.useState(c),D=S[0],x=S[1],I=void 0!==v,T=I?v:D,_=r.useCallback((function(e){var t=e.value;I||d||x(t),k&&!d&&Object(i.dispatchEvent)(k,e.syntheticEvent,E(),{value:t})}),[x,k,d]),P=r.useCallback((function(e){C&&!d&&Object(i.dispatchEvent)(C,e.syntheticEvent,E(),void 0)}),[C,d]),N=r.useMemo((function(){return Object(i.guid)()}),[]),M=Object(i.classNames)("k-radio-list",{"k-list-horizontal":"horizontal"===h,"k-list-vertical":"vertical"===h||void 0===h},l),R=Object(i.useRtl)(O,n.dir),j=u&&u.map((function(e,t){var n=T===e.value,o=null==T,a=Tt({},e,{valid:g,checked:n,disabled:!(!e.disabled&&!d),labelPlacement:e.labelPlacement?e.labelPlacement:f,tabIndex:e.tabIndex?e.tabIndex:o&&0===t||n?0:-1,index:t,name:p||N,onChange:_,onFocus:P});return r.createElement(b,{className:Object(i.classNames)("k-radio-item",{"k-state-disabled":a.disabled||d}),key:t,role:"radio"},r.createElement(It,Tt({},a)))}));return r.createElement("ul",{role:"radiogroup",className:M,ref:O,dir:R,style:m,"aria-labelledby":o,"aria-describedby":s},j)})),Nt={item:function(e){return r.createElement("li",Tt({},e))}};Pt.propTypes={ariaLabelledBy:o.string,ariaDescribedBy:o.string,className:o.string,data:o.arrayOf(o.object),defaultValue:o.any,dir:o.string,disabled:o.bool,labelPlacement:o.string,layout:o.string,name:o.string,style:o.object,value:o.any,onChange:o.func,onFocus:o.func},Pt.defaultProps=Nt,Pt.displayName="KendoRadioGroup";var Mt=function(){return(Mt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Rt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},jt=Object(i.createPropsContext)(),Ft=r.forwardRef((function(e,t){var n=Object(i.usePropsContext)(jt,e),o=n,a=o.ariaDescribedBy,s=o.ariaLabelledBy,l=o.autoSize,u=o.className,c=o.defaultValue,d=o.disabled,p=o.readOnly,f=o.required,h=o.rows,m=o.id,v=o.name,g=o.placeholder,y=o.style,b=o.tabIndex,k=o.value,C=o.valid,O=o.validationMessage,w=o.validityStyles,E=o.onChange,S=o.onFocus,D=o.onBlur,x=(o.visited,o.touched,o.modified,Rt(o,["ariaDescribedBy","ariaLabelledBy","autoSize","className","defaultValue","disabled","readOnly","required","rows","id","name","placeholder","style","tabIndex","value","valid","validationMessage","validityStyles","onChange","onFocus","onBlur","visited","touched","modified"])),I=r.useRef(null),T=r.useCallback((function(){I.current&&I.current.focus()}),[]),_=r.useCallback((function(){return{element:I,focus:T,get name(){return I.current&&I.current.name}}}),[T]);r.useImperativeHandle(t,_);var P=r.useState(c),N=P[0],M=P[1],R=r.useState("auto"),j=R[0],F=R[1],A=r.useMemo((function(){return Object(i.guid)()}),[]),L=Object(i.useDir)(I,n.dir),V=void 0!==k,B=V?k:N,z=void 0!==C?C:!f||!!B;r.useEffect((function(){I.current&&I.current.setCustomValidity&&I.current.setCustomValidity(z?"":O||"")}),[z,O]),r.useLayoutEffect((function(){I.current&&F(I.current.scrollHeight+"px")}),[B]);var H=r.useCallback((function(e){var t=e.target.value;V||d||(F("auto"),M(t)),E&&!d&&Object(i.dispatchEvent)(E,e,_(),{value:t})}),[M,E,d,V]),U=r.useCallback((function(e){S&&!d&&Object(i.dispatchEvent)(S,e,_(),void 0)}),[S,d]),K=r.useCallback((function(e){D&&!d&&Object(i.dispatchEvent)(D,e,_(),void 0)}),[D,d]),W={className:Object(i.classNames)("k-textarea",{"k-state-invalid":!(z||void 0!==w||!0===w),"k-state-disabled":d},u),style:y,dir:L},q=Mt({id:m||A,name:v,className:"k-input",ref:I,disabled:d,rows:h,placeholder:g,readOnly:p,required:f,tabIndex:Object(i.getTabIndex)(b,d),style:l?{resize:"none",overflow:"hidden",height:j}:{},"aria-labelledby":s,"aria-describedby":a,"aria-multiline":!0,"aria-disabled":d||void 0,value:V?k:N},x,{onChange:H,onFocus:U,onBlur:K});return r.createElement("span",Mt({},W),r.createElement("textarea",Mt({},q)))}));Ft.propTypes={ariaDescribedBy:o.string,ariaLabelledBy:o.string,autoSize:o.bool,className:o.string,defaultValue:o.string,dir:o.string,disabled:o.bool,readOnly:o.bool,rows:o.number,id:o.string,name:o.string,placeholder:o.string,style:o.object,tabIndex:o.number,value:o.oneOfType([o.string,o.arrayOf(o.string),o.number]),onChange:o.func,onFocus:o.func,onBlur:o.func},Ft.displayName="KendoTextArea";var At=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null),a=Object(i.useDir)(o,e.dir);r.useImperativeHandle(n,(function(){return{element:o.current,props:e,value:e.value}})),r.useImperativeHandle(t,(function(){return n.current}));var s=r.useCallback((function(t){e.onClick&&e.onClick.call(void 0,{value:e.value,target:n.current,syntheticEvent:t})}),[e.onClick,e.value]),l=r.useCallback((function(t){e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown]),u=r.useCallback((function(t){e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus]),c=r.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),d=r.useCallback((function(t){e.onMouseMove&&e.onMouseMove.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseMove]),p=r.useCallback((function(t){e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseEnter]),f=r.useCallback((function(t){e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseLeave]);return r.createElement("span",{id:e.id,ref:o,dir:a,"data-half":e.half,tabIndex:e.tabIndex,title:e.title,style:e.style,className:Object(i.classNames)("k-rating-item",{"k-rtl":"rtl"===a,"k-state-selected":e.selected,"k-state-hovered":e.hovered},e.className),onClick:s,onKeyDown:l,onFocus:u,onBlur:c,onMouseEnter:p,onMouseLeave:f,onMouseMove:d},e.children)})),Lt={id:o.string,icon:o.any,dir:o.oneOf(["ltr","rtl"]),title:o.string,value:o.number,half:o.bool,selected:o.bool,hovered:o.bool};At.displayName="KendoReactRatingItem",At.propTypes=Lt,At.defaultProps={dir:"ltr"};var Vt,Bt=function(e,t){if(e%1){var n=Math.pow(10,(t.toString().split(".")[1]||t.toString().split(".")[0]).length);return Math.round(e*n)/n}return e},zt=function(e,t,n){return Bt(e-n,n)<t&&t<e},Ht=function(e,t,n,r){return null!==t&&("continues"===r?zt(e,t,n)?Bt(e-n/2,n/2)<=t:e<=t:"single"===r&&(zt(e,t,n)?Bt(e-n/2,n/2)===t:e===t))},Ut=function(e,t,n){return"ltr"===e?n<t.x+t.width/2:n>t.x+t.width/2},Kt=function(e,t,n,r){for(var o=e;o<=t;o+=n)if(r===o)return!0;return!1};!function(e){e.select="select",e.deselect="deselect",e.increase="increase",e.decrease="decrease",e.min="min",e.max="max",e.reset="reset"}(Vt||(Vt={}));var Wt=function(){return(Wt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},qt=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1];return[i,function(e){var r=function(e,t){switch(t.type){case Vt.select:return void 0===t.payload||void 0===t.step?e:t.payload===e?null:t.payload>=t.min?t.payload<t.max?Bt(t.payload,t.step):t.max:t.min;case Vt.deselect:return null;case Vt.increase:return void 0===t.step?e:e<t.min?t.min:e+t.step<t.max?Bt(e+t.step,t.step):t.max;case Vt.decrease:return void 0===t.step?e:Bt(e-t.step,t.step)>=t.min?Bt(e-t.step,t.step):t.min;case Vt.min:return void 0===t.step?e:t.min;case Vt.max:return t.max;case Vt.reset:return null;default:return e}}(t.state||i,Wt({},e,t));n&&n(r,e.event),a(r)}]},Yt=Object(i.createPropsContext)(),Gt=r.forwardRef((function(e,t){var n,o,a,s,l=Object(i.usePropsContext)(Yt,e),u=r.useRef(null),c=r.useRef(null),d=Object(i.useDir)(c,l.dir);r.useImperativeHandle(u,(function(){return{element:c.current,props:l}})),r.useImperativeHandle(t,(function(){return u.current}));for(var p,f,h=r.useCallback((function(e,t){l.onChange&&u.current&&l.onChange.call(void 0,{value:e,target:u.current,syntheticEvent:t})}),[l.onChange]),m=r.useMemo((function(){return void 0!==l.min?l.min:Xt.min}),[l.min]),v=r.useMemo((function(){return void 0!==l.max?l.max:Xt.max}),[l.max]),g=r.useMemo((function(){return l.precision||Xt.precision}),[l.precision]),y=r.useMemo((function(){return void 0!==l.step?l.step:Xt.step}),[l.step]),b=r.useMemo((function(){return l.readonly||Xt.readonly}),[l.readonly]),k=r.useMemo((function(){return l.disabled||Xt.disabled}),[l.disabled]),C=r.useMemo((function(){return l.item||Xt.item}),[l.item]),O=qt(l.defaultValue||Xt.defaultValue,{state:l.value,min:m,max:v,step:"half"===g?y/2:y},h),w=O[0],E=O[1],S=qt(null,{state:l.value,min:m,max:v,step:"half"===g?y/2:y,precision:g}),D=S[0],x=S[1],I=r.useMemo((function(){return l.value||w}),[l.value,w]),T=r.useMemo((function(){return D}),[D]),_=r.useMemo((function(){return l.selection||Xt.selection}),[l.selection]),P=r.useMemo((function(){return y/("half"===g?2:1)}),[y,g]),N=r.useCallback((function(e){if(e.target&&e.target.element&&!b&&!k){if("half"===g){var t=e.target.element.getBoundingClientRect(),n=Ut(d||"ltr",t,e.syntheticEvent.clientX)?Bt(e.target.value-y/2,P):e.target.value;E({type:Vt.select,payload:n,event:e.syntheticEvent})}else E({type:Vt.select,payload:e.target.value,event:e.syntheticEvent});l.onClick&&l.onClick.call(void 0,{value:I,target:u.current,syntheticEvent:e.syntheticEvent})}}),[l.onClick,E,I]),M=r.useCallback((function(e){if(!b&&!k){switch(e.keyCode){case i.Keys.right:e.preventDefault(),E({type:"rtl"===d?Vt.decrease:Vt.increase,event:e});break;case i.Keys.left:e.preventDefault(),E({type:"rtl"===d?Vt.increase:Vt.decrease,event:e});break;case i.Keys.home:e.preventDefault(),E({type:"rtl"===d?Vt.min:Vt.max,event:e});break;case i.Keys.end:e.preventDefault(),E({type:"rtl"===d?Vt.max:Vt.min,event:e});break;case i.Keys.esc:e.preventDefault(),E({type:Vt.deselect,event:e})}l.onKeyDown&&l.onKeyDown.call(void 0,{value:I,target:u.current,syntheticEvent:e})}}),[l.onKeyDown,E,I]),R=r.useCallback((function(e){l.onFocus&&l.onFocus.call(void 0,{target:u.current,syntheticEvent:e})}),[l.onFocus]),j=r.useCallback((function(e){l.onBlur&&l.onBlur.call(void 0,{target:u.current,syntheticEvent:e})}),[l.onBlur]),F=r.useCallback((function(e){if(e.target&&e.target.element)if("half"===g){var t=e.target.element.getBoundingClientRect(),n=Ut(d||"ltr",t,e.syntheticEvent.clientX)?e.target.value-y/2:e.target.value;x({type:Vt.select,payload:n,event:e.syntheticEvent})}else x({type:Vt.select,payload:e.target.value,event:e.syntheticEvent})}),[g,y,d]),A=r.useCallback((function(e){x({type:Vt.reset,event:e.syntheticEvent})}),[]),L=[],V=(p=Bt(v-m,P))-(f=y)*Math.floor(p/f),B=m;B<=v;B=Bt(B+y,P)){var z=Bt(B+V,P),H="half"===g&&zt(z,null!==T?T:null!==I?I:0,y),U=Ht(z,I,y,_),K=Ht(z,null!==T?T:I,y,_),W=Ht(z,T,y,_);L.push(r.createElement(C,{key:z,value:z,dir:d,title:String(H?Bt(z-y/2,P):z),icon:l.icon,half:H,selected:U||K,hovered:W,onClick:N,onMouseMove:F,onMouseLeave:A},H&&r.createElement("span",{className:"k-rating-precision-complement",style:(n={width:"12px"},n["rtl"===d?"right":"left"]="50%",n)},r.createElement("span",{className:Object(i.classNames)("k-icon",(o={"k-i-star-outline":!l.icon},o[l.icon+"-outline"]=l.icon,o))})),H&&r.createElement("span",{className:"k-rating-precision-part",style:{width:"12px"}},r.createElement("span",{className:Object(i.classNames)("k-icon",(a={"k-i-star":!l.icon},a[""+l.icon]=l.icon,a))})),H&&r.createElement("span",{style:{width:"24px",height:"24px",display:"block"}}),!H&&r.createElement("span",{className:Object(i.classNames)("k-icon",(s={"k-i-star":!l.icon&&(W||K&&!W),"k-i-star-outline":!l.icon&&!W},s[""+l.icon]=l.icon&&(W||K&&!W),s[l.icon+"-outline"]=l.icon&&!W,s))})))}return r.createElement("span",{id:l.id,style:l.style,ref:c,role:"slider",dir:d,tabIndex:Object(i.getTabIndex)(l.tabIndex,l.disabled,void 0),className:Object(i.classNames)("k-rating k-widget",{"k-rtl":"rtl"===d,"k-state-readonly":b,"k-state-disabled":k},l.className),onKeyDown:M,onFocus:R,onBlur:j,"aria-valuemin":m,"aria-valuemax":v,"aria-valuenow":null!==I?I:void 0,"aria-disabled":k?"true":void 0,"aria-labelledby":l.ariaLabelledBy,"aria-describedby":l.ariaDescribedBy},r.createElement("input",{id:"rating",className:"k-hidden",readOnly:b,disabled:k}),r.createElement("span",{className:"k-rating-container"},L),l.label&&r.createElement("span",{className:"k-rating-label"},l.label))})),Zt={id:o.string,dir:o.oneOf(["ltr","rtl"]),selection:o.oneOf(["continues","single"]),precision:o.oneOf(["item","half"]),value:function(e,t,n){if(e.value&&e.min&&e.max&&e.step&&(!("half"===e.precision?Kt(e.min,e.max,e.step/2,e.value):Kt(e.min,e.max,e.step,e.value))&&"half"===e.precision))return new Error("Invalid prop + "+t+" supplied to "+n+".\n The value of the { value } property is not correct, please check your values.\n ");return null},defaultValue:o.number,min:o.number,max:o.number,step:function(e,t,n){return void 0!==e.step&&e.step<=0?new Error("Invalid prop + "+t+" supplied to "+n+'.\n The value of the { step } property is cannot be equal or less than "0", please check your values.\n '):null},hovered:o.number,label:o.string,readonly:o.bool,disabled:o.bool,half:o.bool,icon:o.string,ariaDescribedBy:o.string},Xt={dir:"ltr",min:1,max:5,step:1,item:At,defaultValue:null,readonly:!1,disabled:!1,selection:"continues",precision:"item"};Gt.displayName="KendoReactRating",Gt.propTypes=Zt,Gt.defaultProps=Xt},function(e,t,n){"use strict";n.r(t),n.d(t,"FieldArray",(function(){return g})),n.d(t,"Field",(function(){return s})),n.d(t,"Form",(function(){return h})),n.d(t,"FieldWrapper",(function(){return y})),n.d(t,"FormElement",(function(){return C}));var r=n(0),o=r.createContext(null),i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},s=function(e){var t=e.name,n=e.component,s=e.validator,l=e.children,u=e.onChange,c=a(e,["name","component","validator","children","onChange"]),d=r.useContext(o),p=d?d.id:"";r.useEffect((function(){if(d)return d.registerField(t,s)}),[t,p,s]);var f=r.useCallback((function(e){var n=e?void 0!==e.value?e.value:e.target?e.target.value:e.target:e;d.onChange(t,{value:n}),u&&u.call(void 0,e)}),[t,p,u]),h=r.useCallback((function(e){return d.onChange(t,{value:e.target.value})}),[t,p]),m=r.useCallback((function(){return d.onBlur(t)}),[t,p]),v=r.useCallback((function(){return d.onFocus(t)}),[t,p]);if(!d)return null;var g=d.valueGetter(t);return"string"==typeof n?r.createElement(n,i({onChange:h,onBlur:m,onFocus:v,value:g,children:l},c)):r.createElement(n,i({children:l},c,{onChange:f,onBlur:m,onFocus:v,value:g,validationMessage:d.errors[t],touched:d.touched[t],modified:d.modified[t],visited:d.visited[t],valid:!(Boolean(d.errors[t])&&d.touched[t]),name:t}))};s.displayName="KendoReactField";var l,u=n(1),c=n(2),d={name:"@progress/kendo-react-form",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639494143,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"},p=(l=function(e,t){return(l=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}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(){return(f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},h=function(e){function t(t){var n=e.call(this,t)||this;return n._id=Object(c.guid)(),n._touched={},n._visited={},n._modified={},n._validatorsByField={},n._values={},n._fields={},n._unmounted=!1,n._submitted=!1,n.isValid=function(){return n.isFormValid(n.errors)},n.accumulatedForceUpdate=function(){n._accumulatorTimeout&&clearTimeout(n._accumulatorTimeout),n._accumulatorTimeout=window.setTimeout((function(){n._accumulatorTimeout=void 0,n.forceUpdate()}),0)},n.resetForm=function(){n.values=Object(c.clone)(n.props.initialValues),n._id=Object(c.guid)(),n._touched={},n._visited={},n._modified={},n._validatorsByField={},n._fields={},n._submitted=!1,n.forceUpdate()},n.onReset=function(){return n.resetForm()},n.addField=function(e){n._fields[e]=!0},n.onSubmit=function(e){var t={},r=n.fields;e&&("function"==typeof e.preventDefault&&e.preventDefault(),"function"==typeof e.stopPropagation&&e.stopPropagation()),r.forEach((function(e){t[e]=!0})),n.visited=f({},t),n.touched=f({},t);var o=n.values,i=n.isFormValid(n.errors),a=n.isFormModified(n.modified,r);n.props.onSubmitClick&&n.props.onSubmitClick.call(void 0,{values:o,isValid:i,isModified:a,event:e}),i&&(n.props.ignoreModified||a)&&n.props.onSubmit&&(n._submitted=!0,n.props.onSubmit.call(void 0,o,e)),n.forceUpdate()},n.onChange=function(e,t){var r,o=t.value;n.addField(e),n.modified[e]||(n.modified=f({},n.modified,((r={})[e]=!0,r))),n.valueSetter(e,o),n.forceUpdate()},n.onFocus=function(e,t){var r;n.visited[e]||(n.visited=f({},n.visited,((r={})[e]=!0,r)),t||n.forceUpdate())},n.onBlur=function(e,t){var r;n.touched[e]||(n.onFocus(e,t),n.touched=f({},n.touched,((r={})[e]=!0,r)),t||n.forceUpdate())},n.onFieldRegister=function(e,t){var r;n.addField(e);var o=n.validatorsByField[e]||[],i=o.length;return n.validatorsByField=f({},n.validatorsByField,((r={})[e]=o.concat([t]),r)),n.accumulatedForceUpdate(),function(){var t;if(!n._unmounted){var r=(n.validatorsByField[e]||[]).slice(),o=Boolean(r[i]);r[i]=void 0,n.validatorsByField=f({},n.validatorsByField,((t={})[e]=r,t)),o&&n.accumulatedForceUpdate()}}},n.isFormValid=function(e){return!Object.keys(e).some((function(t){return Boolean(e[t])}))},n.isFormModified=function(e,t){return t.some((function(t){return e[t]}))},n.isFormHasNotTouched=function(e,t){return t.some((function(t){return!e[t]}))},n.isFormTouched=function(e,t){return t.some((function(t){return e[t]}))},n.isFormVisited=function(e,t){return t.some((function(t){return e[t]}))},n.valueGetter=function(e){return Object(c.getter)(e)(n.values)},n.valueSetter=function(e,t){return Object(c.setter)(e)(n.values,t)},n.onArrayAction=function(e){var t;n.addField(e),n.modified[e]||(n.modified=f({},n.modified,((t={})[e]=!0,t))),n.onBlur(e,!0)},n.onInsert=function(e,t){n.onArrayAction(e);var r=(n.valueGetter(e)||[]).slice();r.splice(t.index,0,t.value),n.valueSetter(e,r),n.forceUpdate()},n.onUnshift=function(e,t){n.onInsert(e,{value:t.value,index:0})},n.onPush=function(e,t){n.onArrayAction(e);var r=(n.valueGetter(e)||[]).concat([t.value]);n.valueSetter(e,r),n.forceUpdate()},n.onPop=function(e){n.onArrayAction(e);var t=(n.valueGetter(e)||[]).slice(),r=t.pop();return n.valueSetter(e,t),n.forceUpdate(),r},n.onRemove=function(e,t){n.onArrayAction(e);var r=(n.valueGetter(e)||[]).slice(),o=r.splice(t.index,1);return n.valueSetter(e,r),n.forceUpdate(),o},n.onReplace=function(e,t){n.onArrayAction(e);var r=(n.valueGetter(e)||[]).slice();r.splice(t.index,1,t.value),n.valueSetter(e,r),n.forceUpdate()},n.onMove=function(e,t){n.onArrayAction(e);var r=(n.valueGetter(e)||[]).slice(),o=r[t.prevIndex];r.splice(t.prevIndex,1),r.splice(t.nextIndex,0,o),n.valueSetter(e,r),n.forceUpdate()},Object(c.validatePackage)(d),n.values=Object(c.clone)(t.initialValues),n}return p(t,e),Object.defineProperty(t.prototype,"touched",{get:function(){return this._touched},set:function(e){this._touched=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visited",{get:function(){return this._visited},set:function(e){this._visited=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"modified",{get:function(){return this._modified},set:function(e){this._modified=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validatorsByField",{get:function(){return this._validatorsByField},set:function(e){this._validatorsByField=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"values",{get:function(){return this._values},set:function(e){this._values=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fields",{get:function(){return Object.keys(this._fields)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formErrors",{get:function(){if(this.props.validator)return this.props.validator(this.values,this.valueGetter)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){var e=this,t={},n=this.fields,r=this.validatorsByField;return n.forEach((function(n){if(t[n]="",r[n]){var o=[];r[n].forEach((function(e){Array.isArray(e)?o.push.apply(o,e):o.push(e)})),o.find((function(r){if(r){var o=r(e.valueGetter(n),e.valueGetter,{name:n});if(o)return t[n]=o,!0}return!1}))}})),this.formErrors&&Object(c.cloneObject)(this.formErrors,t),t},enumerable:!0,configurable:!0}),t.prototype.componentWillUnmount=function(){this._unmounted=!0,this._accumulatorTimeout&&clearTimeout(this._accumulatorTimeout)},t.prototype.render=function(){var e=this.props.render,t=this.touched,n=this.visited,i=this.modified,a=this.fields,s=this.errors,l=this.isFormValid(s),u=this.isFormModified(i,a),c=this.isFormTouched(t,a),d=this.isFormVisited(n,a),p=this.isFormHasNotTouched(t,a)&&!l||l&&(this.props.ignoreModified||u);return r.createElement(o.Provider,{key:this._id,value:{id:this._id,valueGetter:this.valueGetter,errors:s,modified:i,touched:t,visited:n,registerField:this.onFieldRegister,onSubmit:this.onSubmit,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,onUnshift:this.onUnshift,onPush:this.onPush,onInsert:this.onInsert,onPop:this.onPop,onRemove:this.onRemove,onReplace:this.onReplace,onMove:this.onMove}},e({valid:l,modified:u,touched:c,visited:d,submitted:this._submitted,valueGetter:this.valueGetter,errors:s,allowSubmit:p,onChange:this.onChange,onSubmit:this.onSubmit,onFormReset:this.resetForm}))},t.displayName="KendoReactForm",t.propTypes={initialValues:u.any,onSubmit:u.func,onSubmitClick:u.func,render:u.func.isRequired},t}(r.Component),m=function(){return(m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},g=function(e){var t=e.name,n=e.component,i=e.validator,a=(e.type,e.children),s=v(e,["name","component","validator","type","children"]),l=r.useContext(o),u=l?l.id:"";r.useEffect((function(){if(l)return l.registerField(t,i)}),[t,u,i]);var c=r.useCallback((function(e){return l.onUnshift(t,e)}),[t,u]),d=r.useCallback((function(e){return l.onPush(t,e)}),[t,u]),p=r.useCallback((function(e){return l.onInsert(t,e)}),[t,u]),f=r.useCallback((function(){return l.onPop(t)}),[t,u]),h=r.useCallback((function(e){return l.onRemove(t,e)}),[t,u]),g=r.useCallback((function(e){return l.onReplace(t,e)}),[t,u]),y=r.useCallback((function(e){return l.onMove(t,e)}),[t,u]);if(!l)return null;var b=l.valueGetter(t);return r.createElement(n,m({value:b,validationMessage:l.errors[t],touched:l.touched[t],modified:l.modified[t],visited:l.visited[t],valid:!(Boolean(l.errors[t])&&l.touched[t]),onUnshift:c,onPush:d,onInsert:p,onPop:f,onRemove:h,onReplace:g,onMove:y,children:a,name:t},s))};g.displayName="KendoReactFieldArray";var y=function(e){var t=Object(c.classNames)({"k-form-field":!0,"k-rtl":"rtl"===e.dir},e.className);return r.createElement("div",{className:t,style:e.style},e.children)};y.displayName="KendoReactFieldWrapper";var b=function(){return(b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},C=r.forwardRef((function(e,t){var n=r.useRef(null),i=r.useRef(null);r.useImperativeHandle(i,(function(){return{element:n.current,props:e}})),r.useImperativeHandle(t,(function(){return i.current}));var a=r.useContext(o),s=e.className,l=(e.onSubmit,e.style,e.horizontal),u=k(e,["className","onSubmit","style","horizontal"]),d=Object(c.classNames)({"k-form":!0,"k-form-horizontal":!0===l},s);return r.createElement("form",b({ref:n},u,{style:e.style,className:d,onSubmit:a?a.onSubmit:void 0}),e.children)}));C.displayName="KendoReactFormElement"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(5),s=n(2);t.SchedulerNavigation=i.forwardRef((function(e,t){var n=e.className,l=o(e,["className"]),u=i.useRef(null);return i.useImperativeHandle(t,(function(){return{element:u.current,props:e}})),i.createElement(a.ToolbarItem,r({ref:function(e){e&&(u.current=e.element)},className:s.classNames(n)},l),e.children)})),t.SchedulerNavigation.displayName="KendoReactSchedulerSchedulerNavigation"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(5),s=n(2);t.SchedulerViewSelector=i.forwardRef((function(e,t){var n=e.className,l=o(e,["className"]),u=i.useRef(null);return i.useImperativeHandle(t,(function(){return{element:u.current,props:e}})),i.createElement(a.ToolbarItem,r({ref:function(e){e&&(u.current=e.element)},className:s.classNames("k-scheduler-views",n)},l),e.children)})),t.SchedulerViewSelector.displayName="KendoReactSchedulerViewSelector"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(33),a=n(4),s=n(12),l=n(5),u=n(13),c=n(3),d=n(7);t.NavigationDatePicker=o.forwardRef((function(e,t){var n=u.useSchedulerPropsContext().timezone,a=c.ZonedDate.fromLocalDate(e.value,n),s=c.getDate(a),l=o.useCallback((function(t){if(e.onChange){var o=c.ZonedDate.fromUTCDate(d.toUTCDateTime(t.value),n);e.onChange.call(void 0,r({},t,{value:o}))}}),[e.onChange]);return o.createElement(i.DatePicker,r({ref:t,dateInput:p,pickerWrap:f,toggleButton:h},e,{value:s,onChange:l}))}));var p=function(){return null},f=function(e){return o.createElement(o.Fragment,null,e.children)},h=function(e){var t=a.useInternationalization(),n=u.useSchedulerDateFormatContext(),i=n.dateFormat,c=n.shortDateFormat,d=u.useSchedulerDateRangeContext(),p=u.useSchedulerDateContext()[0],f=d.end.getTime()-d.start.getTime()>27*s.MS_PER_DAY,h=t.format(i,f?p:d.zonedStart,f?p:d.zonedEnd.addDays(-1)),m=t.format(c,f?p:d.zonedStart,f?p:d.zonedEnd.addDays(-1));return o.createElement(l.Button,r({},e,{className:"k-nav-current",tabIndex:-1,look:"flat"}),o.createElement("span",{className:"k-icon k-i-calendar"}),o.createElement("span",{className:"k-sm-date-format"},m),o.createElement("span",{className:"k-lg-date-format"},h))};t.NavigationDatePicker.displayName="KendoReactSchedulerNavigationDatePicker"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(19),a=n(10),s=n(4),l=n(5),u=n(78);t.ViewSelectorList=o.forwardRef((function(){var e=o.useRef(null),t=o.useState("desktop"),n=t[0],c=t[1],d=i.useSchedulerViewsContext(),p=a.useSchedulerActiveViewContext(),f=p[0],h=p[1],m=d.find((function(e){return e.props.name===f})),v=s.useLocalization(),g=o.useCallback((function(e){h&&(e.syntheticEvent.preventDefault(),h(e.item.name))}),[h]),y=function(){c(window.matchMedia("(min-width: 1024px)").matches?"desktop":"mobile")};return o.useEffect((function(){y();var t=new window.ResizeObserver(y);return t.observe(e.current),function(){t.disconnect()}}),[]),o.createElement("div",{className:"k-scheduler-views-wrapper",ref:e},m&&"mobile"===n&&o.createElement(l.DropDownButton,{className:"k-views-dropdown",onItemClick:g,popupSettings:{popupClass:"k-scheduler-toolbar"},textField:"title",items:d.map((function(e){return r({},e.props,{selected:e.props.name===f,title:"function"==typeof e.props.title?e.props.title.call(void 0,v):e.props.title})})),text:o.createElement(o.Fragment,null,"function"==typeof m.props.title?m.props.title.call(void 0,v):m.props.title,o.createElement("span",{className:"k-icon k-i-arrow-60-down"}))}),"desktop"===n&&o.createElement(l.ButtonGroup,{className:"k-scheduler-views"},d.map((function(e){return o.createElement(u.ViewSelectorItem,{key:e.props.name,view:e.props})}))))})),t.ViewSelectorList.displayName="KendoReactSchedulerViewSelectorList"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(5),i=n(4),a=n(19);t.ViewSelectorItem=function(e){var t=a.useSchedulerActiveViewContext(),n=t[0],s=t[1],l=i.useLocalization(),u=r.useMemo((function(){return"function"==typeof e.view.title?e.view.title.call(void 0,l):e.view.title}),[e.view.title,l]),c=r.useCallback((function(){e.view.name&&s(e.view.name)}),[s,e.view.name]);return r.createElement(o.Button,{role:"button",type:"button",tabIndex:-1,togglable:!0,selected:e.view.name===n,onClick:c},u)}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(5),s=n(2);t.BusinessHours=i.forwardRef((function(e,t){var n=e.className,l=o(e,["className"]),u=i.useRef(null);return i.useImperativeHandle(t,(function(){return{element:u.current,props:e}})),i.createElement(a.ToolbarItem,r({ref:function(e){e&&(u.current=e.element)},className:s.classNames("k-scheduler-navigation",n)},l),e.children)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-scheduler",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639494682,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 r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(23),s=n(24),l=n(11),u=n(14),c=n(12),d=n(3),p=n(2),f=n(4),h=n(25),m=n(26),v=n(27),g=n(7),y=n(28),b=n(55),k=n(22),C=n(13),O=n(21);t.AgendaView=function(e){var t=C.useSchedulerPropsContext(),n=t.group,i=t.timezone,c=t.resources,E=e.editTask||b.SchedulerEditTask,S=e.editSlot||k.SchedulerEditSlot,D=o.useRef(null),x=f.useInternationalization(),I=f.useLocalization(),T=C.useSchedulerDataContext()[0],_=C.useSchedulerGroupsContext(),P=C.useSchedulerFieldsContext(),N=C.useSchedulerDateRangeContext(),M=o.useMemo((function(){return h.toRanges(N,{step:d.MS_PER_DAY,timezone:i})}),[N.start.getTime(),N.end.getTime(),i]),R=o.useMemo((function(){return y.toSlots(N,{step:d.MS_PER_DAY},{groups:_,ranges:M})}),[N.start.getTime(),N.end.getTime(),i,_,M]),j=o.useMemo((function(){return m.toOccurrences(T,{dateRange:N,fields:P,timezone:i})}),[T,N.start.getTime(),N.end.getTime(),P,i]),F=o.useMemo((function(){return v.toItems(j,{timezone:i},{groups:_,ranges:M})}),[j,i,_,M]),A=o.useMemo((function(){return p.classNames("k-scheduler-agendaview",e.className)}),[e.className]);return u.useCellSync({element:D,selector:".k-scheduler-datecolumn",explicitDepth:!1}),u.useCellSync({element:D,selector:".k-scheduler-timecolumn",explicitDepth:!1}),o.useMemo((function(){return g.mapItemsToSlots(F,R,!0)}),[F,R]),o.useMemo((function(){return g.mapSlotsToItems(F,R,!0)}),[F,R]),o.createElement(a.BaseView,{ref:D,id:e.id,style:e.style,className:A,props:e,slots:F,ranges:M},o.createElement("div",{className:"k-scheduler-head"},o.createElement(s.VerticalResourceIterator,{resources:c,group:n},o.createElement(O.SchedulerResourceIteratorContext.Consumer,null,(function(e){var t=e.groupIndex;return o.createElement("div",{className:"k-scheduler-row",key:t},o.createElement("div",{className:"k-scheduler-cell k-heading-cell k-group-cell k-scheduler-datecolumn"},I.toLanguageString(l.dateTitle,l.messages[l.dateTitle])),o.createElement("div",{className:"k-scheduler-cell k-heading-cell k-group-cell k-scheduler-timecolumn"},I.toLanguageString(l.timeTitle,l.messages[l.timeTitle])),o.createElement("div",{className:"k-scheduler-cell k-heading-cell k-scheduler-eventcolumn"},I.toLanguageString(l.eventTitle,l.messages[l.eventTitle])))})))),o.createElement("div",{className:"k-scheduler-body"},o.createElement(s.VerticalResourceIterator,{resources:c,group:n,nested:!0},o.createElement(O.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return R.filter((function(e){return e.group.index===(n||0)})).map((function(t,i,a){return o.createElement("div",{className:"k-scheduler-row k-scheduler-content",key:n+":"+i},o.createElement(S,r({},t,{editable:e.editable,row:a.length*(n||0)+i,col:0,slot:e.slot,viewSlot:e.viewSlot,className:"k-scheduler-datecolumn k-group-cell"}),o.createElement("div",null,o.createElement("strong",{className:"k-scheduler-agendaday"},x.formatDate(t.zonedStart,"dd")),o.createElement("em",{className:"k-scheduler-agendaweek"},x.formatDate(t.zonedStart,"EEEE")),o.createElement("span",{className:"k-scheduler-agendadate"},x.formatDate(t.zonedStart,"y")))),o.createElement("div",{className:"k-scheduler-cell k-group-content"},t.items.length?t.items.map((function(t,n){return o.createElement("div",{className:"k-scheduler-row",key:n},o.createElement("div",{className:"k-scheduler-cell k-scheduler-timecolumn"},o.createElement("div",null,t.tail&&o.createElement("span",{className:"k-icon k-i-arrow-60-left"}),t.isAllDay?I.toLanguageString(l.allDay,l.messages[l.allDay]):w(x,t),t.head&&o.createElement("span",{className:"k-icon k-i-arrow-60-right"}))),o.createElement("div",{className:"k-scheduler-cell"},o.createElement(E,r({key:i+":"+n},t,{onDataAction:e.onDataAction,task:e.task,viewTask:e.viewTask,editable:e.editable}))))})):o.createElement("div",{className:"k-scheduler-cell k-heading-cell k-group-cell"},I.toLanguageString(l.noEvents,l.messages[l.noEvents]))))}))})))))};var w=function(e,t){var n="{0:t}-{1:t}";return t.head?n="{0:t}":t.tail&&(n="{1:t}"),e.format(n,t.zonedStart,t.zonedEnd)},E=function(e){return d.getDate(e)},S={name:"agenda",title:function(e){return e.toLanguageString(l.agendaViewTitle,l.messages[l.agendaViewTitle])},dateRange:function(e){var t=e.intl,n=e.date,r=e.numberOfDays,o=void 0===r?1:r,i=e.timezone,a=d.ZonedDate.fromLocalDate(n,i),s=o===c.DAYS_IN_WEEK_COUNT?E(d.firstDayInWeek(a,t.firstDay())):E(a),l=function(e,t){return d.getDate(d.addDays(e,t||1))}(s,o),u=d.ZonedDate.fromUTCDate(g.toUTCDateTime(s),i),p=d.ZonedDate.fromUTCDate(g.toUTCDateTime(l),i);return{start:new Date(u.getTime()),end:new Date(p.getTime()),zonedStart:u,zonedEnd:p}},selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}",slotDuration:1440,slotDivision:1,step:c.DAYS_IN_WEEK_COUNT,numberOfDays:c.DAYS_IN_WEEK_COUNT},D={title:i.any};t.AgendaView.propTypes=D,t.AgendaView.defaultProps=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(2);t.usePropOrState=function(e,t){var n=r.useState(t),i=n[0],a=n[1];return void 0!==e?[e,o.noop]:[i,a]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(17),i=n(17);t.useCellSync=function(e,t){var n=e.element;r.useLayoutEffect((function(){if(n&&n.current){var t=[],r=[],a=[],s=n.current.querySelectorAll(e.selector);s.forEach((function(n){var s=n.getBoundingClientRect().width,l=e.explicitDepth&&void 0!==e.attribute?n.getAttribute(e.attribute):0,u=o.getPadding(n,!0),c=i.getBorders(n,!0);null!==l&&((!a[l]||c>a[l])&&(a[l]=c),(!r[l]||u>r[l])&&(r[l]=u),(!t[l]||s>t[l])&&(t[l]=s))})),s.forEach((function(n){var o=e.explicitDepth?n.getAttribute(e.attribute):0;null!==o&&(n.style.minWidth=t[o]-r[o]-a[o]+"px")}))}}),t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(17),i=n(12);t.useRowSync=function(e,t){var n=e.element;r.useEffect((function(){if(n&&n.current){var t=[[]];Array.from(n.current.querySelectorAll(e.selector)).filter((function(t){return!t.classList.contains((n=e.applyTo,n.slice(1,n.length)));var n})).forEach((function(n){var r=n.clientHeight,o=n.getAttribute(e.horizontalAttribute),a=n.getAttribute(e.verticalAttribute);null!==o&&null!==a&&(t[o]||(t[o]=[]),(!t[o][a]||r>t[o][a])&&(t[o][a]=r-i.BORDER_WIDTH))})),Array.from(n.current.querySelectorAll(e.applyTo)).forEach((function(n){var r=n.getAttribute(e.horizontalAttribute),i=n.getAttribute(e.verticalAttribute);if(null!==r&&null!==i){var a=o.getPadding(n),s=t[r][i]-a;o.setRect(n,{height:s},!0)}}))}}),t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.useAsyncMouseEnterLeave=function(e){var t=e.handleMouseEnter,n=e.handleMouseLeave,o=r.useRef(0).current;return{onMouseEnter:function(e){clearTimeout(o),t(e)},onMouseLeave:function(e){var t;t=function(){return n(e)},clearTimeout(o),o=window.setTimeout((function(){return t()}))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(13);t.useEditable=function(e){var t=r.useContext(o.SchedulerPropsContext),n=void 0!==e?e:t.editable||!1,i=!0===n||void 0!==n&&!1!==n&&!0===n.edit,a=!0===n||void 0!==n&&!1!==n&&!0===n.resize,s=!0===n||void 0!==n&&!1!==n&&!0===n.remove,l=!0===n||void 0!==n&&!1!==n&&!0===n.drag;return{add:!0===n||void 0!==n&&!1!==n&&!0===n.add,edit:i,drag:l,remove:s,resize:a,select:!0===n||void 0!==n&&!1!==n&&!0===n.select}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(17),i=n(12),a=n(10);t.useSlotExpand=function(e,t){var n=r.useRef(),s=r.useRef(0),l=a.useSchedulerElementContext(),u=r.useCallback((function(){if(t&&e.current){var n=e.current.element,r=e.current.props;if(n){var a=o.getPadding(n),l=0,u=r.items.filter((function(e){return e._ref.current}));u.forEach((function(e){if(e._ref.current){var t=o.getRect(e._ref.current.element).height;l+=t}}));var c=u.length*i.BORDER_WIDTH*2+l-(a||0)+("object"==typeof t&&t.offsetTop?t.offsetTop:0)+("object"==typeof t&&t.offsetBottom?t.offsetBottom:0);u.length?c>s.current-a&&o.setRect(n,{height:c},!0):n&&(n.style.minHeight=null)}}}),[t,e]),c=r.useCallback((function(){void 0!==n.current&&window.cancelAnimationFrame(n.current),n.current=window.requestAnimationFrame((function(){u()}))}),[u]);r.useLayoutEffect((function(){if(e.current){var t=e.current.element;t&&(s.current=t.clientHeight)}}),[]),r.useEffect(u,[e,e.current&&e.current.props,t]),r.useEffect((function(){if(e.current){var t=e.current.props.items.filter((function(e){return e._ref.current})).map((function(e){if(e._ref.current&&e._ref.current.element&&l.current){var t=new window.ResizeObserver(c);return t.observe(e._ref.current.element),function(){t.disconnect()}}}));return function(){t.forEach((function(e){return e&&e()}))}}}),[c,l,e])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(14);t.useWorkHours=function(e,t){var n=o.usePropOrState(e,t),i=n[0],a=n[1],s=r.useCallback((function(){a(!i)}),[i,a]);return[i,s]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(10),i=n(2);t.useSchedulerItem=function(e,t){var n=e._ref,a=e.itemRef,s=r.useRef(null),l=r.useRef(null),u=o.useSchedulerViewItemsContext()[1];return r.useImperativeHandle(s,(function(){return{element:l.current,props:e}})),r.useImperativeHandle(t,(function(){return s.current})),r.useImperativeHandle(n,(function(){return s.current})),r.useImperativeHandle(a,(function(){return s.current})),r.useLayoutEffect((function(){return u({type:i.COLLECTION_ACTION.add,item:s}),function(){u({type:i.COLLECTION_ACTION.remove,item:s})}})),{item:s,element:l}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(7);!function(e){e.next="ITEMS_FOCUS_NEXT",e.prev="ITEMS_FOCUS_PREV"}(r=t.ITEMS_FOCUS_ACTION||(t.ITEMS_FOCUS_ACTION={})),t.useItemsFocus=function(e){return[[],function(t,n){switch(t.type){case r.next:if(!t.item||!t.item.current||!e)return;(i=o.findNextItem(t.item,e,t.ignoreIsAllDay,!1))&&i.current&&i.current.element&&(n.preventDefault(),i.current.element.focus());break;case r.prev:if(!t.item||!t.item.current||!e)return;var i;(i=o.findNextItem(t.item,e,t.ignoreIsAllDay,!0))&&i.current&&i.current.element&&(n.preventDefault(),i.current.element.focus())}}]}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.up="SLOT_FOCUS_UP",e.down="SLOT_FOCUS_DOWN",e.left="SLOT_FOCUS_LEFT",e.right="SLOT_FOCUS_RIGHT"}(r=t.SLOTS_FOCUS_ACTION||(t.SLOTS_FOCUS_ACTION={})),t.useSlotsFocus=function(e){return[[],function(n,o){switch(n.type){case r.up:if(!n.slot.current||!e)return;(i=t.findUpSlot(n.slot,e))&&i.current&&i.current.element&&(o.preventDefault(),i.current.element.focus());break;case r.down:if(!n.slot||!e)return;(i=t.findDownSlot(n.slot,e))&&i.current&&i.current.element&&(o.preventDefault(),i.current.element.focus());break;case r.left:if(!n.slot||!e)return;(i=t.findLeftSlot(n.slot,e))&&i.current&&i.current.element&&(o.preventDefault(),i.current.element.focus());break;case r.right:if(!n.slot||!e)return;var i;(i=t.findRightSlot(n.slot,e))&&i.current&&i.current.element&&(o.preventDefault(),i.current.element.focus())}}]},t.findUpSlot=function(e,t){return t.find((function(t){return null!==t.current&&null!==e.current&&t.current.props.row===e.current.props.row-1&&t.current.props.col===e.current.props.col}))},t.findLeftSlot=function(e,t){return t.find((function(t){return null!==t.current&&null!==e.current&&t.current.props.row===e.current.props.row&&t.current.props.col===e.current.props.col-1}))},t.findRightSlot=function(e,t){return t.find((function(t){return null!==t.current&&null!==e.current&&t.current.props.row===e.current.props.row&&t.current.props.col===e.current.props.col+1}))},t.findDownSlot=function(e,t){return t.find((function(t){return null!==t.current&&null!==e.current&&t.current.props.row===e.current.props.row+1&&t.current.props.col===e.current.props.col}))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(46),s=n(45);t.FilterableComboBox=function(e){var t=e.onChange,n=e.data,l=(e.validationMessage,e.visited,e.touched,e.modified,o(e,["onChange","data","validationMessage","visited","touched","modified"])),u=i.useState(n),c=u[0],d=u[1],p=i.useCallback((function(e){return t(e)}),[t]),f=i.useCallback((function(e){var t=a.filterBy(n||[],e.filter);d(t)}),[]);return i.createElement(s.ComboBox,r({style:{width:"100%"},data:c,filterable:!0,onFilterChange:f,onChange:p},l))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(4),a=n(11),s=n(44),l=n(3),u=n(94),c=n(95),d=n(59),p=n(6),f=n(72),h=n(45),m=n(33),v=n(10);t.RecurrenceEditor=function(e){var t=i.useInternationalization(),n=i.useLocalization(),r=v.useSchedulerPropsContext().timezone,y=o.useState(1),b=y[0],k=y[1],C=o.useState(l.ZonedDate.fromUTCDate(e.start)),O=C[0],w=C[1],E=o.useCallback((function(e,t){var r=t?e:"scheduler.recurrenceEditor"+e;return n.toLanguageString(r,a.messages[r])}),[n]),S=o.useMemo((function(){return d.getRule(e.value)}),[e.value]),D=o.useMemo((function(){return d.getFrequencies(E)}),[E]),x=o.useMemo((function(){return d.getFrequency(S)}),[S]),I=o.useMemo((function(){return d.getExtendedWeekDays(t,E)}),[t,E]),T=o.useMemo((function(){return d.getWeekDay(I,S,e.start)}),[I,S,e.start]),_=o.useMemo((function(){return d.getMonths(t)}),[t]),P=o.useMemo((function(){return d.getMonth(_,S)}),[_,S]),N=o.useMemo((function(){return d.getOffsets(E)}),[E]),M=o.useMemo((function(){return d.getOffset(N,S)}),[N,S]),R=o.useMemo((function(){return d.getEndRule(S)}),[S]),j=o.useMemo((function(){return d.getMonthDay(S,e.start)}),[S,e.start]),F=o.useMemo((function(){return d.getUntil(S)}),[S.until]),A=o.useMemo((function(){return d.getWeekDays(t)}),[t]),L=o.useMemo((function(){return d.getRepeatOnRule(S)}),[S.byWeekDay,S.byMonthDay]),V=o.useCallback((function(n){"never"===n.freq?e.onChange({value:null}):(void 0===n.weekStart&&(n.weekStart=t.firstDay()),e.onChange({value:s.serializeRule(n,e.timezone)}))}),[e.onChange,e.timezone]),B=o.useCallback((function(t){var n={};n.freq=t,n.interval=1,"weekly"===t&&(n.byWeekDay=[{day:l.ZonedDate.fromLocalDate(e.start,r).getDay(),offset:0}]),"monthly"!==t&&"yearly"!==t||(n.byMonthDay=[e.start.getDate()]),"yearly"===t&&(n.byMonth=[e.start.getMonth()+1]),V(n)}),[V,e.start,r]),z=o.useCallback((function(e){var t=e.value;V(Object.assign({},S,{interval:t}))}),[V,S]),H=o.useCallback((function(e){var t=e.value;V(Object.assign({},S,{count:t})),null!==t&&k(t)}),[V,S]),U=o.useCallback((function(t){var n=t.value;if(n){var r=l.ZonedDate.fromLocalDate(n,e.timezone);V(Object.assign({},S,{until:r})),w(r)}}),[V,S,e.timezone]),K=o.useCallback((function(e){V(Object.assign({},S,{byWeekDay:A.filter((function(t){return e.find((function(e){return e===t.value}))})).map((function(e){return{offset:0,day:e.value}}))}))}),[V,S]),W=o.useCallback((function(e){var t=Object.assign({},S),n=e.target.value;"string"==typeof n.value?(t.byWeekDay=d.weekDayRuleFromString(n.value),t.bySetPosition=[M.value]):t.byWeekDay=[{day:n.value,offset:M.value}],V(t)}),[V,S]),q=o.useCallback((function(e){V(Object.assign({},S,{byMonthDay:[e.value]}))}),[V,S]),Y=o.useCallback((function(e){var t=e.value;V(Object.assign({},S,{byMonth:[t.value]}))}),[V,S]),G=o.useCallback((function(e){var t=e.value,n=Object.assign({},S);switch(t){case"never":n.until=void 0,n.count=void 0;break;case"count":n.until=void 0,n.count=b;break;case"until":n.until=O,n.count=void 0}V(n)}),[V,S,e.timezone]),Z=o.useCallback((function(e){var t=Object.assign({},S);"monthday"===e.value?(t.byWeekDay=void 0,t.bySetPosition=void 0,t.byMonthDay=[j]):"weekday"===e.value&&(t.byMonthDay=void 0,"string"==typeof T.value?(t.bySetPosition=[M.value],t.byWeekDay=d.weekDayRuleFromString(T.value)):t.byWeekDay=[{day:T.value,offset:M.value}]),V(t)}),[V,S,j,T]),X=o.useCallback((function(e){var t=Object.assign({},S),n=e.value;if(t.byWeekDay)switch(t.byWeekDay.length){case 7:case 5:case 2:t.bySetPosition=[n.value];break;case 1:t.byWeekDay[0].offset=n.value}V(t)}),[V,S]);return o.createElement(o.Fragment,null,o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,null,n.toLanguageString(a.recurrenceEditorRepeat,a.messages[a.recurrenceEditorRepeat])),o.createElement("div",{className:"k-form-field-wrap"},o.createElement(u.RecurrenceFrequencyEditor,{value:x,data:D,onChange:B}))),"never"!==x&&o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,{editorId:"interval-editor"},E(d.capitalize(x)+"RepeatEvery")),o.createElement("div",{className:"k-form-field-wrap"},o.createElement("div",{style:{display:"flex",alignItems:"center"}},o.createElement(f.NumericTextBox,{min:1,step:1,defaultValue:1,value:S.interval,onChange:z,id:"interval-editor"})," ",o.createElement(p.Label,{editorId:"interval-editor"},E(d.capitalize(x)+"Interval"))))),"weekly"===x&&o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,null,E(a.recurrenceEditorWeeklyRepeatOn,!0)),o.createElement("div",{className:"k-form-field-wrap"},o.createElement(c.RecurrenceRepeatOnWeekEditor,{data:A,value:(S.byWeekDay||[]).map((function(e){return e.day})),onChange:K}))),"monthly"===x&&o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,{key:"recurrence-repeat-on-monthly-label"},E(a.recurrenceEditorMonthlyRepeatOn,!0)),o.createElement("div",{className:"k-form-field-wrap"},o.createElement(f.RadioGroup,{value:L,onChange:Z,item:g,className:"k-reset",data:[{value:"monthday",label:E(a.recurrenceEditorMonthlyDay,!0),children:[o.createElement(o.Fragment,{key:"separator"}," "),o.createElement(f.NumericTextBox,{key:"weekday-day",min:1,max:31,disabled:"monthday"!==L,value:S&&S.byMonthDay&&S.byMonthDay[0],onChange:q,width:"auto"})]},{value:"weekday",label:" ",children:[o.createElement(h.DropDownList,{key:"weekday-offset",textField:"text",dataItemKey:"value",disabled:"weekday"!==L,data:N,value:M,onChange:X,style:{width:"auto"}}),o.createElement(o.Fragment,{key:"separator"}," "),o.createElement(h.DropDownList,{key:"weekday-value",disabled:"weekday"!==L,value:T,data:I,onChange:W,textField:"text",dataItemKey:"value",style:{width:"auto"}})]}]}))),"yearly"===x&&o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,null,E(a.recurrenceEditorYearlyRepeatOn,!0)),o.createElement("div",{className:"k-form-field-wrap"},o.createElement(f.RadioGroup,{value:L,item:g,onChange:Z,className:"k-reset",data:[{value:"monthday",label:" ",children:[o.createElement(h.DropDownList,{key:"monthday-month",disabled:"monthday"!==L,value:P,data:_,textField:"text",dataItemKey:"value",onChange:Y,style:{width:"auto"}}),o.createElement(o.Fragment,{key:"separator"}," "),o.createElement(f.NumericTextBox,{key:"monthday-day",min:1,max:31,disabled:"monthday"!==L,value:j,onChange:q,width:"auto"})]},{value:"weekday",label:" ",children:[o.createElement(h.DropDownList,{key:"yearly-weekday-offset",textField:"text",dataItemKey:"value",disabled:"weekday"!==L,data:N,value:M,onChange:X,style:{width:"auto"}}),o.createElement(o.Fragment,{key:"yearly-separator-1"}," "),o.createElement(h.DropDownList,{key:"yearly-weekday-day",textField:"text",dataItemKey:"value",disabled:"weekday"!==L,value:T,data:I,onChange:W,style:{width:"auto"}}),o.createElement(o.Fragment,{key:"yearly-separator-2"}," "),o.createElement("span",{key:"yearly-weekday-of-label"},E(a.recurrenceEditorYearlyOf,!0)," "),o.createElement(o.Fragment,{key:"yearly-separator-3"}," "),o.createElement(h.DropDownList,{key:"yearly-weekday-month",textField:"text",dataItemKey:"value",disabled:"weekday"!==L,value:P,data:_,onChange:Y,style:{width:"auto"}})]}]}))),"never"!==x&&o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,null,E(a.recurrenceEditorEndLabel,!0)),o.createElement("div",{className:"k-form-field-wrap"},o.createElement(f.RadioGroup,{item:g,value:R,onChange:G,data:[{value:"never",label:E(a.recurrenceEditorEndNever,!0)},{value:"count",label:E(a.recurrenceEditorEndAfter,!0),children:[o.createElement(o.Fragment,{key:"separator-1"}," "),o.createElement(f.NumericTextBox,{key:"endrule-after-editor",id:"k-endrule-after",min:1,width:"70px",value:"count"===R?S.count:b,onChange:H,disabled:"count"!==R}),o.createElement(o.Fragment,{key:"separator-2"}," "),o.createElement(p.Label,{key:"endrule-after-label",className:"k-radio-label",editorId:"k-endrule-after"},E(a.recurrenceEditorEndOccurrence,!0))]},{value:"until",label:E(a.recurrenceEditorEndOn,!0),children:[o.createElement(o.Fragment,{key:"separator"}," "),o.createElement(m.DatePicker,{key:"k-endrule-until-editor",id:"k-endrule-until",disabled:"until"!==R,min:e.start,value:"until"===R?F:l.toLocalDate(O),onChange:U,width:"auto"})]}]}))))};var g=function(e){return o.createElement("li",r({},e,{style:{display:"flex",alignItems:"center",minHeight:30}}),e.children)};t.RecurrenceEditor.defaultProps={value:""},t.RecurrenceEditor.displayName="KendoReactSchedulerRepeatEditor"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(5);t.RecurrenceFrequencyEditor=function(e){var t=e.value,n=e.data,s=e.onChange,l=o(e,["value","data","onChange"]),u=i.useCallback((function(e){s&&s.call(void 0,e.target.dataset.value)}),[s]);return i.createElement(a.ButtonGroup,r({width:"100%"},l),n.map((function(e){return i.createElement(a.Button,{type:"button",key:e.value,selected:e.value===t,onClick:u,"data-value":e.value,togglable:!0},e.text)})))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(5),s=n(59);t.RecurrenceRepeatOnWeekEditor=function(e){var t=r({},l,e),n=t.value,u=(t.data,t.onChange,o(t,["value","data","onChange"])),c=function(t){var r=Number(t.target.dataset.key);e.onChange&&e.onChange.call(void 0,n.some((function(e){return e===r}))?n.filter((function(e){return e!==r})):n.concat([r]))};return i.createElement(i.Fragment,null,i.createElement(a.ButtonGroup,r({width:"auto"},u),(e.data||l.data).map((function(e){return i.createElement(a.Button,{type:"button",key:e.value,"data-key":e.value,selected:n.some((function(t){return t===e.value})),togglable:!0,onClick:c},s.capitalize(e.text))}))))};var l={data:[],value:[]};t.RecurrenceRepeatOnWeekEditor.defaultProps=l},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(45),a=n(7);t.ResourceEditor=function(e){var t=e.multiple?i.MultiSelect:i.DropDownList,n=o.useCallback((function(t){var n=t.target.props.dataItemKey,r=e.multiple?(t.target.value||[]).map((function(e){return e[n]})):t.target.value[n];e.onChange.call(void 0,{value:r})}),[e.multiple,e.onChange]),s=o.useCallback((function(t,n){var i=o.createElement(o.Fragment,null,e.colorField&&o.createElement("span",{key:1,className:"k-scheduler-mark",style:{backgroundColor:n.dataItem[e.colorField],marginRight:a.isPresent(n.dataItem[e.valueField])?"8px":"4px"}}," "),o.createElement("span",{key:2},"  ",t.props.children));return o.cloneElement(t,r({},t.props),i)}),[e.colorField,e.valueField]),l=o.useCallback((function(t,n){var r=o.createElement(o.Fragment,null,e.colorField&&n&&o.createElement("span",{key:1,className:"k-scheduler-mark",style:{backgroundColor:n[e.colorField],marginRight:n[e.valueField]?"8px":"4px"}}," "),t.props.children);return o.cloneElement(t,{},r)}),[e.colorField,e.valueField]),u=Array.isArray(e.value)?e.data.filter((function(t){return e.value.some((function(n){return t[e.valueField]===n}))})):e.data.find((function(t){return t[e.valueField]===e.value}));return o.createElement(t,{value:u,onChange:n,data:e.data,textField:e.textField,dataItemKey:e.valueField,valid:e.valid,validationMessage:e.validationMessage,itemRender:s,valueRender:l})}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(33),s=n(3),l=n(13);t.ZonedDateTime=function(e){var t=e.as,n=void 0===t?d.as:t,a=o(e,["as"]),s=l.useSchedulerPropsContext().timezone;return i.createElement(n,r({},a,{value:u(a.value,s),onChange:function(e){a.onChange&&a.onChange({value:c(e.target.value,s)})}}))};var u=function(e,t){return e?s.toLocalDate(s.ZonedDate.fromLocalDate(e,t).toUTCDate()):e},c=function(e,t){return e?s.ZonedDate.fromUTCDate(new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())),t).toLocalDate():e},d={as:a.DateTimePicker}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(10),i=n(2);t.useSchedulerSlot=function(e,t){var n=e._ref,a=r.useRef(null),s=r.useRef(null),l=o.useSchedulerViewSlotsContext()[1];return r.useImperativeHandle(a,(function(){return{element:s.current,props:e}})),r.useImperativeHandle(t,(function(){return a.current})),r.useImperativeHandle(n,(function(){return a.current})),r.useEffect((function(){return l({type:i.COLLECTION_ACTION.add,item:a}),function(){l({type:i.COLLECTION_ACTION.remove,item:a})}})),{slot:a,element:s}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(100),a=n(11);t.TimelineView=function(e){return o.createElement(i.MultiDayTimelineView,r({},e))},t.defaultProps={name:"timeline",title:function(e){return e.toLanguageString(a.timelineViewTitle,a.messages[a.timelineViewTitle])},dateRange:i.defaultProps.dateRange,step:1,slotDuration:60,slotDivisions:2,numberOfDays:1,selectedDateFormat:"{0:D}",selectedShortDateFormat:"{0:d}"},t.TimelineView.defaultProps=t.defaultProps,t.TimelineView.displayName="KendoReactSchedulerTimelineView"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(23),a=n(14),s=n(3),l=n(41),u=n(101),c=n(102),d=n(24),p=n(7),f=n(2),h=n(25),m=n(37),v=n(26),g=n(27),y=n(22),b=n(12),k=n(4),C=n(29),O=n(13),w=n(21),E=n(71),S=n(32),D=n(42);t.MultiDayTimelineView=function(e){var n=O.useSchedulerPropsContext(),x=n.group,I=n.timezone,T=n.resources,_=o.useRef(null),P=o.useRef(null),N=e.editItem||C.SchedulerEditItem,M=e.editSlot||y.SchedulerEditSlot,R=o.useRef(null),j=O.useSchedulerDataContext()[0],F=O.useSchedulerOrientationContext(),A=O.useSchedulerGroupsContext(),L=O.useSchedulerDateRangeContext(),V=O.useSchedulerFieldsContext(),B=k.useInternationalization(),z=e.showWorkHours,H=e.slotDivisions||t.defaultProps.slotDivisions,U=e.slotDuration||t.defaultProps.slotDuration,K=B.parseDate(e.workDayStart||e.isWorkDayStart||t.defaultProps.isWorkDayStart),W=B.parseDate(e.workDayEnd||e.isWorkDayEnd||t.defaultProps.isWorkDayEnd),q=B.parseDate(e.startTime||t.defaultProps.startTime),Y=B.parseDate(e.endTime||t.defaultProps.endTime),G=o.useMemo((function(){return z?K:q}),[z,K,q]),Z=o.useMemo((function(){return z?W:Y}),[z,W,Y]),X=o.useMemo((function(){return h.toRanges(L,{step:s.MS_PER_DAY,timezone:I})}),[L.start.getTime(),L.end.getTime(),I]),Q=o.useMemo((function(){return m.toSlots(L,{step:U/H*s.MS_PER_MINUTE},{groups:A,ranges:X}).filter((function(e){return p.isInTimeRange(e.zonedStart,G,Z)||G.getTime()===Z.getTime()}))}),[A,X,L.start.getTime(),L.end.getTime(),I,U,H,G.getTime(),Z.getTime()]),$=o.useMemo((function(){return v.toOccurrences(j,{dateRange:L,fields:V,timezone:I})}),[j,L.start.getTime(),L.end.getTime(),V,I]),J=o.useMemo((function(){return g.toItems($,{timezone:I},{groups:A,ranges:X}).filter((function(e){return G.getTime()===Z.getTime()||p.isInTimeRange(e.zonedStart,G,Z)||p.isInTimeRange(e.zonedEnd,G,Z)||p.isInTimeRange(new Date(e.zonedEnd.getTime()-(e.zonedEnd.getTime()-e.zonedStart.getTime())/2),G,Z)}))}),[$,I,A,X,G.getTime(),Z.getTime()]);o.useMemo((function(){return p.mapItemsToSlots(J,Q,!0)}),[J,Q]),o.useMemo((function(){return p.mapSlotsToItems(J,Q,!0)}),[J,Q]);var ee=("horizontal"===F?Q.length:Q.length/A.length)*((e.columnWidth||t.defaultProps.columnWidth)+b.BORDER_WIDTH),te=o.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(){return o.createElement(o.Fragment,null,o.createElement("div",{className:"k-scheduler-row"},X.map((function(t,n){return o.createElement(S.DateHeaderCell,{as:e.dateHeaderCell,key:n,date:t.zonedStart,start:t.start,end:t.end,format:"m"})}))),o.createElement("div",{className:"k-scheduler-row",ref:_},X.map((function(t,n){return Q.filter((function(e){return 0===e.group.index&&e.range.index===n})).map((function(t){return t.zonedStart.getMinutes()%U==0?o.createElement(D.TimeHeaderCell,{key:t.index,as:e.timeHeaderCell,format:"t",date:t.zonedStart,start:t.zonedStart,end:t.zonedEnd}):null}))}))))})),ne=o.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return o.createElement("div",{className:"k-scheduler-row"},X.map((function(t,i){return Q.filter((function(e){return e.group.index===n&&e.range.index===i})).map((function(t,a,s){return o.createElement(M,r({key:t.start.getTime()+":"+t.group.index,slot:e.slot,viewSlot:e.viewSlot},t,{form:e.form,onDataAction:e.onDataAction,isWorkHour:p.isInTimeRange(t.zonedStart,K,W),col:"horizontal"===F?i*s.length+a+s.length*X.length*(n||0):i*s.length+a,row:"horizontal"===F?0:n||0,expandable:!0,editable:e.editable}))}))})))})),re=o.useMemo((function(){return f.classNames("k-scheduler-timeline-view",e.className)}),[e.className]);return a.useCellSync({element:R,selector:".k-resource-cell",attribute:"data-depth-index",explicitDepth:!0}),a.useRowSync({element:R,selector:".k-resource-row",horizontalAttribute:"data-depth-index",verticalAttribute:"data-resource-index",applyTo:".k-resource-cell"}),o.createElement(o.Fragment,null,o.createElement(i.BaseView,{ref:R,id:e.id,style:r({},e.style),className:re,props:e,slots:Q,ranges:X},o.createElement("div",{className:"k-scheduler-head",style:{width:ee}},"horizontal"===F?o.createElement(l.HorizontalResourceIterator,{nested:!0,group:x,resources:T,rowContent:u.TimelineViewRowContent},te):o.createElement(d.VerticalResourceIterator,{wrapGroup:!0,group:x,resources:T},te)),o.createElement("div",{className:"k-scheduler-body",style:{width:ee},ref:P},"horizontal"===F?o.createElement(l.HorizontalResourceIterator,{group:x,resources:T,rowContent:c.TimelineViewAllEventsRowContent},ne,o.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return e.currentTimeMarker&&p.intersects(p.first(X).start,p.last(X).end,new Date,new Date,!0)&&o.createElement(E.CurrentTimeMarker,{groupIndex:n,attachArrow:_,vertical:!0})}))):o.createElement(d.VerticalResourceIterator,{nested:!0,wrapGroup:!0,group:x,resources:T},ne),"vertical"===F&&e.currentTimeMarker&&p.intersects(p.first(X).start,p.last(X).end,new Date,new Date,!0)&&o.createElement(E.CurrentTimeMarker,{attachArrow:_,vertical:!0}),J.sort(p.orderSort).map((function(t){return o.createElement(N,r({key:t.isRecurring?t.uid+":"+t.group.index+":"+t.range.index+":"+t.originalStart:t.uid+":"+t.group.index+":"+t.range.index},t,{format:"t",form:e.form,onDataAction:e.onDataAction,item:e.item,viewItem:e.viewItem,editable:e.editable,ignoreIsAllDay:!0,vertical:!1}))})))))};t.defaultProps={name:"multi-day-timeline",title:"Multi Day Timeline",currentTimeMarker:!0,dateRange:function(e){var t=e.date,n=e.numberOfDays,r=void 0===n?1:n,o=e.timezone,i=s.ZonedDate.fromLocalDate(t,o),a=s.getDate(i),l=s.addDays(a,r),u=s.ZonedDate.fromUTCDate(p.toUTCDateTime(a),o),c=s.ZonedDate.fromUTCDate(p.toUTCDateTime(l),o);return{start:new Date(u.getTime()),end:new Date(c.getTime()),zonedStart:u,zonedEnd:c}},selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}",step:1,numberOfDays:1,startTime:"00:00",endTime:"00:00",isWorkDayStart:"8:00",isWorkDayEnd:"17:00",workWeekStart:s.Day.Monday,workWeekEnd:s.Day.Friday,slotDivisions:2,slotDuration:60,defaultShowWorkHours:!0,columnWidth:100},t.MultiDayTimelineView.defaultProps=t.defaultProps},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=r.createElement("div",{className:"k-scheduler-cell k-side-cell"});t.TimelineViewRowContent=function(e){return r.createElement(r.Fragment,null,r.createElement("div",{className:"k-sticky-cell"},o),e.children)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(11),i=n(4);t.TimelineViewAllEventsRowContent=function(e){var t=i.useLocalization();return r.createElement(r.Fragment,null,r.createElement("div",{className:"k-sticky-cell"},r.createElement("div",{className:"k-scheduler-cell k-heading-cell k-side-cell k-scheduler-times-all-day","data-range-index":0},t.toLanguageString(o.allEvents,o.messages[o.allEvents]))),e.children)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(2),i=n(10),a=n(15),s=n(20),l=n(7);!function(e){e.set="FORM_ITEM_SET",e.setMaster="FORM_ITEM_SET_MASTER",e.reset="FORM_ITEM_RESET",e.complete="FORM_ITEM_COMPLETE"}(r=t.FORM_ITEM_ACTION||(t.FORM_ITEM_ACTION={})),t.useFormItem=function(e,t){var n=a.useControlledState.apply(void 0,t),u=n[0],c=n[1],d=i.useSchedulerFieldsContext(),p=i.useSchedulerDataContext()[0];return[u,c,function(t,n){var i;switch(t.type){case r.set:i=t.payload;break;case r.reset:i=null;break;case r.setMaster:i=o.clone(l.findMaster(t.payload,d,p));break;case r.complete:e.onDataAction&&u&&(e.onDataAction.call(void 0,{type:s.DATA_ACTION.update,series:e.series,dataItem:t.payload}),i=null);break;default:i=u}c(i,n)}]}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(43),a=n(11);t.DayView=function(e){return o.createElement(i.MultiDayView,r({},e))};var s={name:"day",title:function(e){return e.toLanguageString(a.dayViewTitle,a.messages[a.dayViewTitle])},dateRange:i.defaultProps.dateRange,step:1,numberOfDays:1,slotDuration:60,slotDivisions:2,selectedDateFormat:"{0:D}",selectedShortDateFormat:"{0:d}"};t.DayView.defaultProps=s,t.DayView.displayName="KendoReactSchedulerDayView"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.DayViewGroupRowContent=function(e){return r.createElement(r.Fragment,null,r.createElement("div",{className:"k-scheduler-cell k-side-cell","data-range-index":e.rangeIndex}),e.children)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(4),i=n(11);t.DayViewAllDayRowContent=function(e){var t=o.useLocalization();return r.createElement(r.Fragment,null,r.createElement("div",{className:"k-scheduler-cell k-heading-cell k-side-cell k-scheduler-times-all-day"},t.toLanguageString(i.allDay,i.messages[i.allDay])),e.children)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(2),i=n(42);t.DayViewRowContent=function(e){var t=e.slot,n=e.children;return r.createElement(r.Fragment,null,e.isMaster?r.createElement(i.TimeHeaderCell,{as:e.timeHeaderCell,date:t.zonedStart,start:t.zonedStart,end:t.zonedEnd,className:o.classNames("k-side-cell",{"k-major-cell":!e.isLast})}):r.createElement("div",{className:"k-scheduler-cell k-heading-cell k-side-cell"}),n)}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(43),a=n(12),s=n(3),l=n(11),u=n(7);t.WeekView=function(e){return o.createElement(i.MultiDayView,r({},e,{step:a.DAYS_IN_WEEK_COUNT,numberOfDays:e.numberOfDays}))};t.defaultProps={name:"week",slotDuration:60,slotDivisions:2,numberOfDays:a.DAYS_IN_WEEK_COUNT,dateRange:function(e){var t=e.intl,n=e.date,r=e.timezone,o=s.ZonedDate.fromLocalDate(n,r),i=function(e){return s.getDate(e)}(s.firstDayInWeek(o,t.firstDay())),l=function(e,t){return s.getDate(s.addDays(e,t||1))}(i,a.DAYS_IN_WEEK_COUNT),c=s.ZonedDate.fromUTCDate(u.toUTCDateTime(i),r),d=s.ZonedDate.fromUTCDate(u.toUTCDateTime(l),r);return{start:new Date(c.getTime()),end:new Date(d.getTime()),zonedStart:c,zonedEnd:d}},title:function(e){return e.toLanguageString(l.weekViewTitle,l.messages[l.weekViewTitle])},selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}"},t.WeekView.defaultProps=t.defaultProps,t.WeekView.displayName="KendoReactSchedulerWeekView"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(3),s=n(12),l=n(43),u=n(11),c=n(7),d=n(19);t.WorkWeekView=function(e){var t=d.useSchedulerDateRangeContext(),n=Math.round((t.end.getTime()-t.start.getTime())/a.MS_PER_DAY);return i.createElement(l.MultiDayView,r({},e,{step:s.DAYS_IN_WEEK_COUNT,numberOfDays:n}))};var p={name:"work-week",slotDuration:60,slotDivisions:2,numberOfDays:7,dateRange:function(e){e.intl;var t=e.date,n=e.timezone,r=o(e,["intl","date","timezone"]),i=a.ZonedDate.fromLocalDate(t,n),l=void 0!==r.workWeekStart?r.workWeekStart:a.Day.Monday,u=void 0!==r.workWeekEnd?r.workWeekEnd:a.Day.Friday,d=u<l?s.DAYS_IN_WEEK_COUNT+u-l+1:u-l+1,p=a.getDate(function(e,t){void 0===t&&(t=a.Day.Sunday);for(var n=e.clone();n.getDay()!==t;)n=n.addDays(-1);return n}(i,l)),f=a.addDays(p,d),h=a.ZonedDate.fromUTCDate(c.toUTCDateTime(p),n),m=a.ZonedDate.fromUTCDate(c.toUTCDateTime(f),n);return{start:new Date(h.getTime()),end:new Date(m.getTime()),zonedStart:h,zonedEnd:m}},title:function(e){return e.toLanguageString(u.workWeekViewTitle,u.messages[u.workWeekViewTitle])},workWeekStart:a.Day.Monday,workWeekEnd:a.Day.Friday,selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}"};t.WorkWeekView.defaultProps=p,t.WorkWeekView.displayName="KendoReactSchedulerWorkWeekView"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(23),s=n(3),l=n(2),u=n(24),c=n(41),d=n(7),p=n(11),f=n(22),h=n(4),m=n(12),v=n(25),g=n(37),y=n(26),b=n(27),k=n(111),C=n(29),O=n(13),w=n(21),E=n(32),S={skeleton:"dd"};t.MonthView=function(e){var t=O.useSchedulerPropsContext(),n=t.group,i=t.timezone,p=t.resources,x=e.editItem||C.SchedulerEditItem,I=e.editSlot||f.SchedulerEditSlot,T=O.useSchedulerDataContext()[0],_=O.useSchedulerDateContext()[1],P=O.useSchedulerActiveViewContext()[1],N=O.useSchedulerViewsContext(),M=O.useSchedulerGroupsContext(),R=O.useSchedulerOrientationContext(),j=O.useSchedulerDateRangeContext(),F=h.useInternationalization(),A=O.useSchedulerFieldsContext(),L=e.itemsPerSlot||D.itemsPerSlot,V=o.useMemo((function(){return v.toRanges(j,{step:s.MS_PER_DAY*m.DAYS_IN_WEEK_COUNT,timezone:i})}),[j.start.getTime(),j.end.getTime(),i]),B=o.useMemo((function(){return g.toSlots(j,{step:s.MS_PER_DAY},{groups:M,ranges:V})}),[j.start.getTime(),j.end.getTime(),M,V]),z=o.useMemo((function(){return y.toOccurrences(T,{dateRange:j,fields:A,timezone:i})}),[T,j.start.getTime(),j.end.getTime(),A,i]),H=o.useMemo((function(){return b.toItems(z,{timezone:i},{groups:M,ranges:V})}),[z,i,M,V]),U=o.useCallback((function(e){var t=N.find((function(e){return"day"===e.props.name}));P&&t&&t.props.name&&e.target.slot&&(P(t.props.name,e),_(e.target.slot.start,e))}),[P,N]);o.useMemo((function(){return d.mapItemsToSlots(H,B,!0)}),[H,B]),o.useMemo((function(){return d.mapSlotsToItems(H,B,!0)}),[H,B]);var K=o.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return o.createElement("div",{className:"k-scheduler-row",key:n},B.filter((function(e){return e.group.index===n&&0===e.range.index})).map((function(t,n){return o.createElement(E.DateHeaderCell,{as:e.dateHeaderCell,key:n,"data-dayslot-index":n,date:s.ZonedDate.fromLocalDate(new Date(t.zonedEnd.getTime()-(t.zonedEnd.getTime()-t.zonedStart.getTime())/2),i),start:t.start,end:t.end,format:{skeleton:"EEEE"}})})))})),W=o.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return V.map((function(t,i){return o.createElement("div",{className:"k-scheduler-row",key:i},B.filter((function(e){return e.group.index===n&&e.range.index===i})).map((function(t,a,s){return o.createElement(I,r({slot:e.slot,viewSlot:e.viewSlot,key:a,form:e.form},t,{expandable:{offsetTop:30,offsetBottom:L<t.items.length?15:0},onDataAction:e.onDataAction,col:"horizontal"===R?s.length*(n||0)+a:a,row:"horizontal"===R?i:V.length*(n||0)+i,editable:e.editable}),o.createElement("span",{className:"k-link k-nav-day"},F.formatDate(new Date(t.end.getTime()-(t.end.getTime()-t.start.getTime())/2),S)),L<t.items.length&&o.createElement(k.ShowMoreItemsButton,{slot:t,onClick:U}))})))}))}));return o.createElement(a.BaseView,{props:e,slots:B,ranges:V,className:l.classNames("k-scheduler-monthview",e.className)},o.createElement("div",{className:"k-scheduler-head"},"horizontal"===R?o.createElement(c.HorizontalResourceIterator,{nested:!0,resources:p,group:n},K):o.createElement(u.VerticalResourceIterator,{resources:p,group:n},K)),o.createElement("div",{className:"k-scheduler-body"},"horizontal"===R?o.createElement(c.HorizontalResourceIterator,{resources:p,group:n},W):o.createElement(u.VerticalResourceIterator,{nested:!0,resources:p,group:n},W),H.filter((function(e){return null===e.order||e.order<L})).sort(d.orderSort).map((function(t){return o.createElement(x,r({item:e.item,viewItem:e.viewItem,form:e.form,key:t.isRecurring?t.uid+":"+t.group.index+":"+t.range.index+":"+t.originalStart:t.uid+":"+t.group.index+":"+t.range.index},t,{onDataAction:e.onDataAction,style:{transform:"translateY(30px)"},vertical:!1,editable:e.editable,ignoreIsAllDay:!0}))}))))};var D={name:"month",dateRange:function(e){var t=e.intl,n=e.date,r=e.timezone,o=s.firstDayInWeek(s.firstDayOfMonth(s.getDate(n)),t.firstDay()),i=s.addDays(s.firstDayInWeek(s.lastDayOfMonth(s.getDate(n)),t.firstDay()),m.DAYS_IN_WEEK_COUNT),a=s.ZonedDate.fromUTCDate(d.toUTCDateTime(o),r),l=s.ZonedDate.fromUTCDate(d.toUTCDateTime(i),r);return{start:new Date(a.getTime()),end:new Date(l.getTime()),zonedStart:a,zonedEnd:l}},slotDuration:1440,slotDivision:1,itemsPerSlot:2,numberOfDays:31,title:function(e){return e.toLanguageString(p.monthViewTitle,p.messages[p.monthViewTitle])},selectedDateFormat:"{0:Y}",selectedShortDateFormat:"{0:Y}"},x={itemsPerSlot:i.number};t.MonthView.defaultProps=D,t.MonthView.propTypes=x,t.MonthView.displayName="KendoReactSchedulerMonthView"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);t.ShowMoreItemsButton=o.forwardRef((function(e,t){var n=o.useRef(null),i=o.useRef(null);o.useImperativeHandle(n,(function(){return r({element:i.current},e)})),o.useImperativeHandle(t,(function(){return n.current}));var a=o.useCallback((function(t){e.onClick&&n.current&&e.onClick.call(void 0,{target:n.current,syntheticEvent:t})}),[n,e.slot,e.onClick]);return o.createElement("button",{ref:i,tabIndex:-1,className:"k-more-events k-button",onClick:a},o.createElement("span",{className:"k-icon k-i-more-horizontal"}))})),t.ShowMoreItemsButton.displayName="KendoReactSchedulerShowMoreItemsButton"}])}));
16
+ var r=function(e,t){return(r=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 o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return le}));var r=n(0),o=n(16),i=n(1),a=function(e){e.style.transitionDuration="",e.classList.remove("k-slide-down-appear","k-slide-down-appear-active","k-slide-down-exit","k-slide-down-exit-active","k-slide-up-appear","k-slide-up-appear-active","k-slide-up-exit","k-slide-up-exit-active")},s="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),l=n(2),u="bottom",c="center",d="middle",p="left",f="right",h="top";function m(e){return e.ownerDocument||e.document||e}var v=function(e){return m(e).defaultView},g=function(e){return m(e).documentElement},y=0;function b(){if(!y&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),y=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return y}function k(e){var t=v(e),n=g(e),r={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(r.width-=b()),r}var C=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||g(e)},O=function(e){var t=e.getBoundingClientRect(),n=t.left,r=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,r=t.left,o=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=r,e.style.position=o,i}(e)),{top:r,left:n,height:t.height,width:t.width}},w=function(e,t){for(var n=[],r=e.parentNode;r&&(n.push(r),r!==t);)r=r.parentNode;return n};function E(e){var t=g(e),n=v(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var S=function(e){return e===(e.ownerDocument||{}).body?E(e):{x:e.scrollLeft,y:e.scrollTop}};var D=function(e,t){var n=v(e),r=n.getComputedStyle(e),o=O(e),i=t||C(e),a=e.ownerDocument,s=i!==a.body&&i!==a.documentElement,l={top:0,left:0};if("fixed"!==r.position&&s){var u=n.getComputedStyle(i);(l=O(i)).top+=parseInt(u.borderTopWidth,10),l.left+=parseInt(u.borderLeftWidth,10)}return{top:o.top-l.top,left:o.left-l.left,height:o.height,width:o.width}},x=function(e,t){return e?S(e):function(e){var t=C(e);return t?S(t):{x:0,y:0}}(t)};var I="fit",T="flip",_=function(e,t,n){var r=0;return e+t>n&&(r=n-(e+t)),e<0&&(r=-e),r},P=function(e){var t=e.offset,n=e.size,r=e.anchorSize,o=e.viewPortSize,i=e.anchorAlignPoint,a=e.elementAlignPoint,s=0,l=2*e.margin;if(a!==i&&!(a===c||a===d)&&!(i===c||i===d)){var u=i===h||i===p;t<0&&u?t+(s=n+r+l)+n>o&&(s=0):t>=0&&!u&&(t+n>o&&(s+=-(r+n+l)),t+s<0&&(s=0))}return s},N=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},M=function(e,t){for(var n,r,o=w(e),i=t;i&&(n=N(i),!(r=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return r};var R,j,F,A,L=(R=function(e){if(!V())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 r=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),r},F=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return F||(j=R.apply(void 0,e),F=!0),j}),V=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},B={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:L,canUseDOM:V},z=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],H=function(){return B.canUseDOM()?window:null},U=/auto|scroll/,K=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)},W=function(e){if(!e||!B.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},q=function(){return B.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},Y={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,r=e.elementRect,o=e.elementAlign,i=e.margin;void 0===i&&(i={});var a=n.horizontal,s=n.vertical,l=o.horizontal,p=o.vertical,h=i.horizontal||0,m=i.vertical||0,v=t.top,g=t.left;return s===u&&(v+=t.height),s!==c&&s!==d||(v+=Math.round(t.height/2)),p===u&&(v-=r.height,m*=-1),p!==c&&p!==d||(v-=Math.round(r.height/2),m*=-1),a===f&&(g+=t.width),a!==c&&a!==d||(g+=Math.round(t.width/2)),l===f&&(g-=r.width,h*=-1),l!==c&&l!==d||(g-=Math.round(r.width/2),h*=-1),{top:v+m,left:g+h}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=k(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=H();if(!t||!e)return[];var n=t.getComputedStyle(e);return z.map((function(e){return{key:e,value:n[e]}}))},getWindow:H,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?O(e):null},offsetAtPoint:function(e,t){if(!e)return null;var n=e.style,r=n.left,o=n.top,i=n.transition;e.style.transition="none",e.style.left=t.left+"px",e.style.top=t.top+"px";var a=O(e);return e.style.left=r,e.style.top=o,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 r=t?C(t):null,o=D(e,r),i=o.top,a=o.left,s=o.height,l=o.width,u=x(r,e),c=u.x,d=u.y,p=e.ownerDocument,f=r===p.body||r===p.documentElement?1:n;return{top:i+d*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,r=e.elementRect,o=e.elementAlign,i=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var l=r.top,u=r.left,c=r.height,d=r.width,p=a.height,f=a.width,h=s.horizontal||0,m=s.vertical||0,v=0,g=0,y=i.horizontal===T,b=i.vertical===T;i.vertical===I&&(g+=_(l,c,p)),i.horizontal===I&&(v+=_(u,d,f)),b&&(g+=P({margin:m,offset:l,size:c,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),y&&(v+=P({margin:h,offset:u,size:d,anchorSize:t.width,viewPortSize:f,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var k=y&&0!==v,C=b&&0!==g;return{flipped:k||C,flip:{horizontal:k,vertical:C},offset:{left:v,top:g}}},scrollPosition:E,scrollableParents:function(e){var t=[];if(!B.canUseDOM())return t;for(var n=e.parentElement;n;)(U.test(K(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:W,stackingElementOffset:function(e){var t=W(e);return t?O(t):null},stackingElementScroll:function(e){var t=W(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=W(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(W(e))},windowViewPort:k,zoomLevel:q,isZoomed:function(){return q()>1},zIndex:function(e,t){if(!e||!B.canUseDOM())return null;var n=M(e,t);if(!n)return null;var r=[e].concat(w(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,r=parseInt(n,10);return r>e?r:e}),0);return r?r+1:null}},G=function(e,t){return e?{x:0,y:0}:Y.scrollPosition(t)},Z=function(e){var t=e.anchor,n=e.element,r=e.anchorAlign,o=e.elementAlign,i=e.margin,a=e.offset,s=e.positionMode,l=e.scale||1,u="fixed"===s||!Y.hasOffsetParent(n)?function(e,t,n,r){var o=G(e,t),i=B.eitherRect(Y.offset(e),n),a=2*r,s=Y.stackingElementScroll(t);1!==r&&s&&(s.x/=a,s.y/=a);var l=Y.stackingElementOffset(t);return 1!==r&&l&&(l.left/=a,l.top/=a),Y.removeScroll(Y.addScroll(B.removeStackingOffset(B.scaleRect(i,r),l),s),o)}(t,n,a,l):function(e,t,n,r){var o=B.eitherRect(Y.position(e,t,r),n);return B.scaleRect(o,r)}(t,n,a,l),c=B.scaleRect(Y.offset(n),l);return Y.align({anchorAlign:r,anchorRect:u,elementAlign:o,elementRect:c,margin:i})},X=function(e){var t=e.anchor,n=e.currentLocation,r=e.element,o=e.anchorAlign,i=e.elementAlign,a=e.collisions,s=e.margin,l=e.scale||1,u=Y.offsetAtPoint(r,n),c=B.scaleRect(u,l),d=B.scaleRect(Y.offset(t),l),p=B.eitherRect(d,n),f=e.viewPort||Y.windowViewPort(r);f.width=f.width/l,f.height=f.height/l;var h=Y.restrictToView({anchorAlign:o,anchorRect:p,collisions:a,elementAlign:i,elementRect:c,margin:s,viewPort:f}),m=Y.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:m}},Q="fit",$="flip",J={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639558045,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},ee=(A=function(e,t){return(A=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}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),te=function(){return(te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ne(e,t){if(e===t)return!0;if(!!e!=!!t)return!1;var n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(e[i]!==t[i])return!1}return!0}var re,oe={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(re||(re={}));var ie=function(e){function t(t){var n=e.call(this,t)||this;return n.state={current:re.hidden,previous:re.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:re.shown,previous:n.state.current})},n.setPosition=function(e){var t=n.props,r=t.anchorAlign,o=t.popupAlign,i=t.collision,a=t.offset,s=t.anchor,l=t.margin,u=t.scale,c=t.positionMode;e.style.top="0px",e.style.left="-10000px";var d=Z({anchor:s,element:e,elementAlign:o,anchorAlign:r,offset:a,margin:l,positionMode:c,scale:u}),p=X({anchor:s,anchorAlign:r,collisions:i,element:e,currentLocation:d,elementAlign:o,margin:n.props.margin});e.style.top=p.offset.top+"px",e.style.left=p.offset.left+"px",n._flipped=p.flipped},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add("k-animation-container-shown"),n.attachRepositionHandlers(e),n.props.onOpen&&n.props.onOpen.call(void 0,{target:n}))},n.animate=function(e,t,r){!function(e,t,n,r,o){if(0===n)return o();var i="k-slide-"+t+"-"+r,l=i+"-active",u=function(){e.removeEventListener("transitionend",u),a(e),o()};e.addEventListener("transitionend",u);var c=e.ownerDocument;if(c){var d=c.defaultView;if(d){var p=function(){a(e),e.classList.add(i),d.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(l)}))};s?d.requestAnimationFrame(p):p()}}}(e,n._flipped?"up":"down",n.animationDuration[t],t,r)},n.onClosing=function(e){n.props.show||e.classList.remove("k-animation-container-shown"),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===re.hiding&&n.state.previous===re.shown&&n.setState({current:re.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.validatePackage)(J),n.reposition=function(e,t,n){var r,o,i,a;void 0===n&&(n={});var s=0;n=n||{};var l=function(){s=!1===n.leading?0:(new Date).getTime(),r=null,a=e.apply(o,i),r||(o=i=null)};return function(){var u=(new Date).getTime();s||!1!==n.leading||(s=u);var c=t-(u-s);return o=this,i=arguments,c<=0||c>t?(r&&(clearTimeout(r),r=null),s=u,a=e.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=window.setTimeout(l,c)),a}}(n.reposition.bind(n),1e3/60),n}return ee(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.show,r=e.anchor,o=e.anchorAlign,i=e.appendTo,a=e.collision,s=e.popupAlign,l=e.className,u=e.popupClass,c=e.style,d=e.offset,p=e.contentKey,f=te({},t,{props:{show:n,anchor:r,anchorAlign:o,appendTo:i,collision:a,popupAlign:s,className:l,popupClass:u,style:c,offset:d,contentKey:p}});return e.show?t.current===re.hidden||t.current===re.hiding?te({},f,{current:re.showing,previous:t.current}):t.current===re.showing?te({},f,{current:re.shown,previous:t.current}):t.current!==re.shown||ne(d,t.props.offset)&&ne(o,t.props.anchorAlign)&&ne(i,t.props.appendTo)&&ne(a,t.props.collision)&&ne(s,t.props.popupAlign)&&ne(c,t.props.style)&&r===t.props.anchor&&u===t.props.popupClass&&l===t.props.className?f:te({},f,{current:re.reposition,previous:t.current}):t.current===re.hiding||t.current===re.hidden?te({},f,{current:re.hidden,previous:t.current}):te({},f,{current:re.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===re.showing&&this._popup?this.show(this._popup):this.state.current===re.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===re.reposition&&this.state.previous===re.shown?this.setState({current:re.shown,previous:this.state.current}):this.state.current===re.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===re.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,i=t.className,a=t.popupClass,s=t.show,u=t.id,c=t.positionMode,d=this.props.appendTo?this.props.appendTo:l.canUseDOM?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===re.reposition&&this.state.previous===re.shown&&this._popup&&this.setPosition(this._popup);var p=Object.assign({},{position:c},this.props.style||{}),f=this.state.current===re.hiding;if((s||f)&&d){var h=this.getCurrentZIndex(),m=r.createElement(l.ZIndexContext.Provider,{value:h},r.createElement("div",{className:Object(l.classNames)("k-animation-container","k-animation-container-relative",i),id:u,ref:function(t){return e._popup=t},style:te({zIndex:h},p)},r.createElement("div",{className:Object(l.classNames)(a,"k-popup","k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return o.createPortal(m,d)}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=Y.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:re.reposition,previous:this.state.current})},t.propTypes={anchor:function(e){var t=e.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(e){var t=e.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:i.string,id:i.string,popupClass:i.string,collision:i.shape({horizontal:i.oneOf([Q,$]),vertical:i.oneOf([Q,$])}),anchorAlign:i.shape({horizontal:i.oneOf([p,c,f]),vertical:i.oneOf([h,c,u])}),popupAlign:i.shape({horizontal:i.oneOf([p,c,f]),vertical:i.oneOf([h,c,u])}),offset:i.shape({left:i.number,top:i.number}),children:i.oneOfType([i.element,i.node]),show:i.bool,animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),margin:i.shape({horizontal:i.number,vertical:i.number}),positionMode:i.oneOf(["fixed","absolute"]),scale:i.number},t.defaultProps={collision:{horizontal:Q,vertical:$},anchorAlign:{horizontal:p,vertical:u},popupAlign:{horizontal:p,vertical:h},offset:oe,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=l.ZIndexContext,t}(r.Component),ae=function(){return(ae=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},se=r.createContext((function(e){return e})),le=r.forwardRef((function(e,t){var n=r.useContext(se).call(void 0,e);return r.createElement(ie,ae({ref:t},n))}))},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(13)),r(n(51)),r(n(52)),r(n(53)),r(n(54))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.allEvents="scheduler.allEvents",t.allDay="scheduler.allDay",t.today="scheduler.today",t.timelineViewTitle="scheduler.timelineViewTitle",t.weekViewTitle="scheduler.weekViewTitle",t.workWeekViewTitle="scheduler.workWeekViewTitle",t.agendaViewTitle="scheduler.agendaViewTitle",t.dayViewTitle="scheduler.dayViewTitle",t.monthViewTitle="scheduler.monthViewTitle",t.deleteTitle="scheduler.deleteTitle",t.previousTitle="scheduler.previousTitle",t.nextTitle="scheduler.nextTitle",t.showFullDay="scheduler.showFullDay",t.showWorkDay="scheduler.showWorkDay",t.editorOccurrence="scheduler.editOccurrence",t.editorSeries="scheduler.editSeries",t.editorRecurringConfirmation="scheduler.editRecurringConfirmation",t.editorRecurringDialogTitle="scheduler.editRecurringDialogTitle",t.editorSave="scheduler.editSave",t.editorCancel="scheduler.editCancel",t.editorTitle="scheduler.editorTitle",t.editorEventTitle="scheduler.editorEventTitle",t.editorEventStart="scheduler.editorEventStart",t.editorEventStartTimeZone="scheduler.editorEventStartTimeZone",t.editorEventEnd="scheduler.editorEventEnd",t.editorEventEndTimeZone="scheduler.editorEventEndTimeZone",t.editorEventAllDay="scheduler.editorEventAllDay",t.editorEventDescription="scheduler.editorEventDescription",t.editorEventSeparateTimeZones="scheduler.editorEventSeparateTimeZones",t.editorEventTimeZone="scheduler.editorEventTimeZone",t.recurrenceEditorRepeat="scheduler.recurrenceEditorRepeat",t.recurrenceEditorDailyInterval="scheduler.recurrenceEditorDailyInterval",t.recurrenceEditorDailyRepeatEvery="scheduler.recurrenceEditorDailyRepeatEvery",t.recurrenceEditorWeeklyInterval="scheduler.recurrenceEditorWeeklyInterval",t.recurrenceEditorWeeklyRepeatEvery="scheduler.recurrenceEditorWeeklyRepeatEvery",t.recurrenceEditorWeeklyRepeatOn="scheduler.recurrenceEditorWeeklyRepeatOn",t.recurrenceEditorMonthlyDay="scheduler.recurrenceEditorMonthlyDay",t.recurrenceEditorMonthlyInterval="scheduler.recurrenceEditorMonthlyInterval",t.recurrenceEditorMonthlyRepeatEvery="scheduler.recurrenceEditorMonthlyRepeatEvery",t.recurrenceEditorMonthlyRepeatOn="scheduler.recurrenceEditorMonthlyRepeatOn",t.recurrenceEditorYearlyOf="scheduler.recurrenceEditorYearlyOf",t.recurrenceEditorYearlyRepeatEvery="scheduler.recurrenceEditorYearlyRepeatEvery",t.recurrenceEditorYearlyRepeatOn="scheduler.recurrenceEditorYearlyRepeatOn",t.recurrenceEditorYearlyInterval="scheduler.recurrenceEditorYearlyInterval",t.recurrenceEditorFrequenciesDaily="scheduler.recurrenceEditorFrequenciesDaily",t.recurrenceEditorFrequenciesMonthly="scheduler.recurrenceEditorFrequenciesMonthly",t.recurrenceEditorFrequenciesNever="scheduler.recurrenceEditorFrequenciesNever",t.recurrenceEditorFrequenciesWeekly="scheduler.recurrenceEditorFrequenciesWeekly",t.recurrenceEditorFrequenciesYearly="scheduler.recurrenceEditorFrequenciesYearly",t.recurrenceEditorOffsetPositionsFirst="scheduler.recurrenceEditorOffsetPositionsFirst",t.recurrenceEditorOffsetPositionsSecond="scheduler.recurrenceEditorOffsetPositionsSecond",t.recurrenceEditorOffsetPositionsThird="scheduler.recurrenceEditorOffsetPositionsThird",t.recurrenceEditorOffsetPositionsFourth="scheduler.recurrenceEditorOffsetPositionsFourth",t.recurrenceEditorOffsetPositionsLast="scheduler.recurrenceEditorOffsetPositionsLast",t.recurrenceEditorWeekdaysDay="scheduler.recurrenceEditorWeekdaysDay",t.recurrenceEditorWeekdaysWeekday="scheduler.recurrenceEditorWeekdaysWeekday",t.recurrenceEditorWeekdaysWeekendday="scheduler.recurrenceEditorWeekdaysWeekendday",t.recurrenceEditorEndAfter="scheduler.recurrenceEditorEndAfter",t.recurrenceEditorEndOccurrence="scheduler.recurrenceEditorEndOccurrence",t.recurrenceEditorEndLabel="scheduler.recurrenceEditorEndLabel",t.recurrenceEditorEndNever="scheduler.recurrenceEditorEndNever",t.recurrenceEditorEndOn="scheduler.recurrenceEditorEndOn",t.editorDelete="scheduler.editorDelete",t.deleteConfirmation="scheduler.deleteConfirmation",t.deleteRecurringConfirmation="scheduler.deleteRecurringConfirmation",t.deleteOccurrence="scheduler.deleteOccurrence",t.deleteSeries="scheduler.deleteSeries",t.deleteDialogTitle="scheduler.deleteDialogTitle",t.deleteRecurringDialogTitle="scheduler.deleteRecurringDialogTitle",t.dateTitle="scheduler.dateTitle",t.timeTitle="scheduler.timeTitle",t.eventTitle="scheduler.eventTitle",t.editorValidationRequired="scheduler.editorValidationRequired",t.editorValidationStart="scheduler.editorValidationStart",t.editorValidationEnd="scheduler.editorValidationEnd",t.noEvents="scheduler.noEvents",t.messages=((r={})[t.editorValidationRequired]="Field is required.",r[t.editorValidationStart]="Start time must be be before End time.",r[t.editorValidationEnd]="End time must be after Start time.",r[t.allEvents]="All events",r[t.allDay]="all day",r[t.today]="Today",r[t.dayViewTitle]="Day",r[t.monthViewTitle]="Month",r[t.weekViewTitle]="Week",r[t.workWeekViewTitle]="Work Week",r[t.timelineViewTitle]="Timeline",r[t.agendaViewTitle]="Agenda",r[t.deleteTitle]="Delete",r[t.previousTitle]="Previous",r[t.nextTitle]="Next",r[t.showFullDay]="Show full day",r[t.showWorkDay]="Show business hours",r[t.editorOccurrence]="Edit current occurrence",r[t.editorSeries]="Edit the series",r[t.editorRecurringConfirmation]="Do you want to edit only this event occurrence or the whole series?",r[t.editorRecurringDialogTitle]="Edit Recurring Item",r[t.editorSave]="Save",r[t.editorCancel]="Cancel",r[t.editorDelete]="Delete",r[t.editorTitle]="Event",r[t.editorEventTitle]="Title",r[t.editorEventStart]="Start",r[t.editorEventStartTimeZone]="Start Time Zone",r[t.editorEventEnd]="End",r[t.editorEventEndTimeZone]="End Time Zone",r[t.editorEventAllDay]="All Day Event",r[t.editorEventDescription]="Description",r[t.editorEventSeparateTimeZones]="End in different Time Zone",r[t.editorEventTimeZone]="Specify Time Zone",r[t.recurrenceEditorRepeat]="Repeat",r[t.recurrenceEditorDailyInterval]="day(s)",r[t.recurrenceEditorDailyRepeatEvery]="Repeat every",r[t.recurrenceEditorWeeklyInterval]="week(s)",r[t.recurrenceEditorWeeklyRepeatEvery]="Repeat every",r[t.recurrenceEditorWeeklyRepeatOn]="Repeat on",r[t.recurrenceEditorMonthlyDay]="Day",r[t.recurrenceEditorMonthlyInterval]="month(s)",r[t.recurrenceEditorMonthlyRepeatEvery]="Repeat every",r[t.recurrenceEditorMonthlyRepeatOn]="Repeat on",r[t.recurrenceEditorYearlyOf]="of",r[t.recurrenceEditorYearlyRepeatEvery]="Repeat every",r[t.recurrenceEditorYearlyRepeatOn]="Repeat on",r[t.recurrenceEditorYearlyInterval]="year(s)",r[t.recurrenceEditorFrequenciesDaily]="Daily",r[t.recurrenceEditorFrequenciesMonthly]="Monthly",r[t.recurrenceEditorFrequenciesNever]="Never",r[t.recurrenceEditorFrequenciesWeekly]="Weekly",r[t.recurrenceEditorFrequenciesYearly]="Yearly",r[t.recurrenceEditorOffsetPositionsFirst]="First",r[t.recurrenceEditorOffsetPositionsSecond]="Second",r[t.recurrenceEditorOffsetPositionsThird]="Third",r[t.recurrenceEditorOffsetPositionsFourth]="Fourth",r[t.recurrenceEditorOffsetPositionsLast]="Last",r[t.recurrenceEditorWeekdaysDay]="Day",r[t.recurrenceEditorWeekdaysWeekday]="Weekday",r[t.recurrenceEditorWeekdaysWeekendday]="Weekend Day",r[t.recurrenceEditorEndAfter]="After",r[t.recurrenceEditorEndOccurrence]="occurrence(s)",r[t.recurrenceEditorEndLabel]="End",r[t.recurrenceEditorEndNever]="Never",r[t.recurrenceEditorEndOn]="On",r[t.deleteConfirmation]="Are you sure you want to delete this event?",r[t.deleteRecurringConfirmation]="Do you want to delete only this event occurrence or the whole series?",r[t.deleteOccurrence]="Delete current occurrence",r[t.deleteSeries]="Delete the series",r[t.deleteDialogTitle]="Delete Event",r[t.deleteRecurringDialogTitle]="Delete Recurring Item",r[t.dateTitle]="Date",r[t.timeTitle]="Time",r[t.eventTitle]="Event",r[t.noEvents]="no events",r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(3);t.MS_PER_DAY=o.MS_PER_DAY,t.MIDNIGHT_INVARIANT=new Date(1980,0,1),t.MS_PER_SECOND=1e3,t.MS_PER_MINUTE=60*t.MS_PER_SECOND,t.MS_PER_HOUR=60*t.MS_PER_MINUTE,t.TIME_FORMAT="t",t.BORDER_WIDTH=1,t.DEFAULT_EVENT_HEIGHT=25,t.DAYS_IN_WEEK_COUNT=7,t.WEEKS_COUNT=6,t.HOURS_IN_DAY_COUNT=24,t.EMPTY_RESOURCE=[{}],t.OCCURRENCE_ID=0,t.DEFAULT_ID=void 0,t.DISPLAY_NONE_STYLES={display:"none"},t.VISIBILITY_HIDDEN_STYLES={visibility:"hidden"},t.DEFAULT_GROUP={index:0,resources:[]},t.MIN_DATE=new Date(1900,0,1),t.MAX_DATE=new Date(2099,11,31),t.DEFAULT_RANGE={index:0,start:t.MIN_DATE,end:t.MAX_DATE,zonedStart:r.ZonedDate.fromLocalDate(t.MIN_DATE),zonedEnd:r.ZonedDate.fromLocalDate(t.MAX_DATE)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(7),i=n(12),a=n(3);t.SchedulerElementContext=r.createContext({current:null}),t.useSchedulerElementContext=function(){return r.useContext(t.SchedulerElementContext)},t.SchedulerElementContext.displayName="SchedulerElementContext",t.SchedulerPropsContext=r.createContext({}),t.useSchedulerPropsContext=function(){return r.useContext(t.SchedulerPropsContext)},t.SchedulerPropsContext.displayName="SchedulerPropsContext",t.SchedulerViewsContext=r.createContext([]),t.useSchedulerViewsContext=function(){return r.useContext(t.SchedulerViewsContext)},t.SchedulerViewsContext.displayName="SchedulerViewsContext",t.SchedulerFieldsContext=r.createContext(o.defaultModelFields),t.useSchedulerFieldsContext=function(){return r.useContext(t.SchedulerFieldsContext)},t.SchedulerFieldsContext.displayName="SchedulerFieldsContext",t.SchedulerDateFormatContext=r.createContext({dateFormat:"{0:D}",shortDateFormat:"{0:d}"}),t.useSchedulerDateFormatContext=function(){return r.useContext(t.SchedulerDateFormatContext)},t.SchedulerDateFormatContext.displayName="SchedulerDateFormatContext",t.SchedulerGroupsContext=r.createContext([i.DEFAULT_GROUP]),t.useSchedulerGroupsContext=function(){return r.useContext(t.SchedulerGroupsContext)},t.SchedulerGroupsContext.displayName="SchedulerGroupsContext",t.SchedulerDateRangeContext=r.createContext({start:new Date,end:new Date,zonedStart:a.ZonedDate.fromLocalDate(new Date),zonedEnd:a.ZonedDate.fromLocalDate(new Date)}),t.useSchedulerDateRangeContext=function(){return r.useContext(t.SchedulerDateRangeContext)},t.SchedulerDateRangeContext.displayName="SchedulerDateRangeContext",t.SchedulerOrientationContext=r.createContext(null),t.useSchedulerOrientationContext=function(){return r.useContext(t.SchedulerOrientationContext)},t.SchedulerOrientationContext.displayName="SchedulerOrientationContext",t.SchedulerDateContext=r.createContext([new Date,o.noop]),t.useSchedulerDateContext=function(){return r.useContext(t.SchedulerDateContext)},t.SchedulerDateContext.displayName="SchedulerDateContext",t.SchedulerDataContext=r.createContext([[],o.noop]),t.useSchedulerDataContext=function(){return r.useContext(t.SchedulerDataContext)},t.SchedulerDataContext.displayName="SchedulerDataContext",t.SchedulerActiveViewContext=r.createContext(["day",o.noop]),t.useSchedulerActiveViewContext=function(){return r.useContext(t.SchedulerActiveViewContext)},t.SchedulerActiveViewContext.displayName="SchedulerActiveViewContext",t.SchedulerContext=function(e){var n=e.children,o=e.element,i=e.props,a=e.views,s=e.fields,l=e.groups,u=e.dateRange,c=e.dateFormat,d=e.orientation,p=e.date,f=e.data,h=e.activeView;return r.createElement(t.SchedulerElementContext.Provider,{value:o},r.createElement(t.SchedulerPropsContext.Provider,{value:i},r.createElement(t.SchedulerViewsContext.Provider,{value:a},r.createElement(t.SchedulerFieldsContext.Provider,{value:s},r.createElement(t.SchedulerDateFormatContext.Provider,{value:c},r.createElement(t.SchedulerGroupsContext.Provider,{value:l},r.createElement(t.SchedulerDateRangeContext.Provider,{value:u},r.createElement(t.SchedulerOrientationContext.Provider,{value:d},r.createElement(t.SchedulerDateContext.Provider,{value:p},r.createElement(t.SchedulerDataContext.Provider,{value:f},r.createElement(t.SchedulerActiveViewContext.Provider,{value:h},n)))))))))))}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(82)),r(n(83)),r(n(84)),r(n(85)),r(n(86)),r(n(87)),r(n(88)),r(n(89)),r(n(90)),r(n(91))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);t.useControlledState=function(e,t,n){var i=o.useState(t||e),a=i[0],s=i[1];return[void 0!==t?t:a,o.useCallback((function(e,t){s(e),n&&n.call(void 0,r({},t,{value:e}))}),[n,s])]}},function(e,t){e.exports=o},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.last=function(e){return e[e.length-1]},t.toFlatGroupResources=function(e,n,o,i){if(void 0===n&&(n=0),void 0===o&&(o=0),void 0===i&&(i=[]),e.length<=n)return[i];var a=[];return e[n].data.map((function(s){a.push.apply(a,t.toFlatGroupResources(e,n+1,o+1,i.concat([r({},s,{field:e[n].field,valueField:e[n].valueField,colorField:e[n].colorField,multiple:e[n].multiple})])))})),a},t.calculateEventRect=function(e,n){if(e.length<1||!e[0]._ref||!e[0]._ref.current)return null;var r=t.getRect(e[0]._ref.current.element),o={top:r.top,left:r.left,right:r.right,width:r.width,height:0};return e.forEach((function(e){if(e._ref.current){var r=t.getRect(e._ref.current.element).height;void 0!==r&&(!n&&r>=o.height?o.height=r:o.height+=r)}})),o},t.toGroupResources=function(e,t){var n=[];if(!t||!t.length)return n;if(e&&e.resources&&e.resources.length)for(var r=e.resources,o=function(e){var o=t.find((function(t){return t.name===r[e]}));n.push(o)},i=0;i<r.length;i++)o(i);return n},t.addUTCDays=function(e,t){var n=new Date(e.getTime());return n.setUTCDate(n.getUTCDate()+t),n},t.expandResources=function(e,t){void 0===t&&(t=e.length-1);var n=Math.max(0,t),o=[];e&&e.length||(e=[{}]);for(var i=(e[n].data||[]).map((function(t){return r({},t,{text:t[e[n].textField]})}))||[],a=i.length,s=1,l=0;l<=n;l++)s*=(e[l].data||[]).length||1;for(l=0;l<s;l++)i[l%a]&&o.push(i[l%a]);return o},t.resourcesByIndex=function(e,t,n){for(var r=t,o=[],i=e,a=0;a<r.length;a++){var s=r[a].data||[],l=Math.floor(i/n[a]);o.push(s[l]),i-=l*n[a]}return o},t.getRect=function(e){return e?{top:e.offsetTop,left:e.offsetLeft,right:e.offsetParent?e.offsetParent.offsetWidth-(e.offsetLeft+e.offsetWidth):0,width:e.offsetWidth,height:e.offsetHeight}:{top:0,left:0,width:0,height:0,right:0}},t.getPadding=function(e,t){return void 0===t&&(t=!1),parseFloat(window.getComputedStyle(e)[t?"paddingLeft":"paddingTop"]||"0")+parseFloat(window.getComputedStyle(e)[t?"paddingRight":"paddingBottom"]||"0")},t.getBorders=function(e,t){return void 0===t&&(t=!1),parseFloat(window.getComputedStyle(e)[t?"borderLeftWidth":"borderTopWidth"]||"0")+parseFloat(window.getComputedStyle(e)[t?"borderRightWidth":"borderBottomWidth"]||"0")},t.setRect=function(e,t,n){void 0===n&&(n=!1),e&&(void 0!==t.top&&(e.style.top=t.top+"px"),void 0!==t.left&&(e.style.left=t.left+"px"),void 0!==t.width&&(e.style.width=t.width+"px"),void 0===t.height||n||(e.style.height="number"==typeof t.height?t.height+"px":t.height),n&&(e.style.minHeight=void 0!==t.height&&t.height>0?t.height+"px":""))}},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(20);t.Scheduler=r.Scheduler,t.DATA_ACTION=r.DATA_ACTION;var o=n(81);t.AgendaView=o.AgendaView;var i=n(99);t.TimelineView=i.TimelineView;var a=n(104);t.DayView=a.DayView;var s=n(108);t.WeekView=s.WeekView;var l=n(109);t.WorkWeekView=l.WorkWeekView;var u=n(110);t.MonthView=u.MonthView;var c=n(30);t.SchedulerItem=c.SchedulerItem;var d=n(63);t.SchedulerItemContent=d.SchedulerItemContent;var p=n(31);t.SchedulerViewItem=p.SchedulerViewItem;var f=n(29);t.SchedulerEditItem=f.SchedulerEditItem;var h=n(61);t.SchedulerSlot=h.SchedulerSlot;var m=n(60);t.SchedulerViewSlot=m.SchedulerViewSlot;var v=n(22);t.SchedulerEditSlot=v.SchedulerEditSlot;var g=n(57);t.SchedulerTask=g.SchedulerTask;var y=n(56);t.SchedulerViewTask=y.SchedulerViewTask;var b=n(55);t.SchedulerEditTask=b.SchedulerEditTask;var k=n(62);t.SchedulerDrag=k.SchedulerDrag;var C=n(64);t.SchedulerResize=C.SchedulerResize;var O=n(40);t.SchedulerForm=O.SchedulerForm;var w=n(58);t.SchedulerFormEditor=w.SchedulerFormEditor;var E=n(39);t.SchedulerOccurrenceDialog=E.SchedulerOccurrenceDialog;var S=n(38);t.SchedulerRemoveDialog=S.SchedulerRemoveDialog;var D=n(49);t.SchedulerHeader=D.SchedulerHeader;var x=n(32);t.DateHeaderCell=x.DateHeaderCell;var I=n(42);t.TimeHeaderCell=I.TimeHeaderCell;var T=n(50);t.SchedulerFooter=T.SchedulerFooter;var _=n(10);t.SchedulerPropsContext=_.SchedulerPropsContext,t.useSchedulerPropsContext=_.useSchedulerPropsContext,t.SchedulerViewsContext=_.SchedulerViewsContext,t.useSchedulerViewsContext=_.useSchedulerViewsContext,t.SchedulerFieldsContext=_.SchedulerFieldsContext,t.useSchedulerFieldsContext=_.useSchedulerFieldsContext,t.SchedulerGroupsContext=_.SchedulerGroupsContext,t.useSchedulerGroupsContext=_.useSchedulerGroupsContext,t.SchedulerDateRangeContext=_.SchedulerDateRangeContext,t.useSchedulerDateRangeContext=_.useSchedulerDateRangeContext,t.SchedulerOrientationContext=_.SchedulerOrientationContext,t.useSchedulerOrientationContext=_.useSchedulerOrientationContext,t.SchedulerDateContext=_.SchedulerDateContext,t.useSchedulerDateContext=_.useSchedulerDateContext,t.SchedulerActiveViewContext=_.SchedulerActiveViewContext,t.useSchedulerActiveViewContext=_.useSchedulerActiveViewContext,t.SchedulerDataContext=_.SchedulerDataContext,t.useSchedulerDataContext=_.useSchedulerDataContext,t.SchedulerEditItemFormItemContext=_.SchedulerEditItemFormItemContext,t.useSchedulerEditItemFormItemContext=_.useSchedulerEditItemFormItemContext,t.SchedulerEditItemDragItemContext=_.SchedulerEditItemDragItemContext,t.useSchedulerEditItemDragItemContext=_.useSchedulerEditItemDragItemContext,t.SchedulerEditItemRemoveItemContext=_.SchedulerEditItemRemoveItemContext,t.useSchedulerEditItemRemoveItemContext=_.useSchedulerEditItemRemoveItemContext,t.SchedulerEditItemResizeItemContext=_.SchedulerEditItemResizeItemContext,t.useSchedulerEditItemResizeItemContext=_.useSchedulerEditItemResizeItemContext,t.SchedulerEditItemShowRemoveDialogContext=_.SchedulerEditItemShowRemoveDialogContext,t.useSchedulerEditItemShowRemoveDialogContext=_.useSchedulerEditItemShowRemoveDialogContext,t.SchedulerEditItemShowOccurrenceDialogContext=_.SchedulerEditItemShowOccurrenceDialogContext,t.useSchedulerEditItemShowOccurrenceDialogContext=_.useSchedulerEditItemShowOccurrenceDialogContext,t.SchedulerEditItemPropsContext=_.SchedulerEditItemPropsContext,t.useSchedulerEditItemPropsContext=_.useSchedulerEditItemPropsContext,t.SchedulerEditSlotPropsContext=_.SchedulerEditSlotPropsContext,t.useSchedulerEditSlotPropsContext=_.useSchedulerEditSlotPropsContext,t.SchedulerEditSlotFormItemContext=_.SchedulerEditSlotFormItemContext,t.useSchedulerEditSlotFormItemContext=_.useSchedulerEditSlotFormItemContext;var P=n(68);t.DRAG_ITEM_ACTION=P.DRAG_ITEM_ACTION;var N=n(14);t.ITEMS_FOCUS_ACTION=N.ITEMS_FOCUS_ACTION,t.SLOTS_FOCUS_ACTION=N.SLOTS_FOCUS_ACTION;var M=n(35);t.ITEMS_SELECT_ACTION=M.ITEMS_SELECT_ACTION;var R=n(66);t.REMOVE_ITEM_ACTION=R.REMOVE_ITEM_ACTION;var j=n(69);t.RESIZE_ITEM_ACTION=j.RESIZE_ITEM_ACTION;var F=n(70);t.SERIES_ACTION=F.SERIES_ACTION;var A=n(65);t.SHOW_OCCURRENCE_DIALOG_ACTION=A.SHOW_OCCURRENCE_DIALOG_ACTION;var L=n(67);t.SHOW_REMOVE_DIALOG_ACTION=L.SHOW_REMOVE_DIALOG_ACTION;var V=n(36);t.SLOTS_SELECT_ACTION=V.SLOTS_SELECT_ACTION},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),s=n(7),l=n(2),u=n(13),c=n(15),d=n(4),p=n(49),f=n(74),h=n(75),m=n(3),v=n(50),g=n(5),y=n(11),b=n(76),k=n(77),C=n(79),O=n(19),w=n(2),E=n(80);!function(e){e[e.create=0]="create",e[e.update=1]="update",e[e.remove=2]="remove"}(o=t.DATA_ACTION||(t.DATA_ACTION={})),t.Scheduler=i.forwardRef((function(e,t){w.validatePackage(E.packageMetadata);var n=e.timezone,a=e.onDataChange,p=i.useRef(null),v=i.useRef(null);i.useImperativeHandle(v,(function(){return{props:e,element:p.current}})),i.useImperativeHandle(t,(function(){return v.current}));var D=l.useRtl(p),x=d.useInternationalization(),I=d.useLocalization(),T=i.useMemo((function(){return s.getModelFields(e.modelFields)}),[e.modelFields]).fields,_=c.useControlledState(e.defaultDate||S.defaultDate,e.date,e.onDateChange),P=_[0],N=_[1],M=i.Children.toArray(e.children||[]),R=c.useControlledState(e.defaultView||M[0]&&M[0].props.name||"day",e.view,e.onViewChange),j=R[0],F=R[1],A=c.useControlledState(!0),L=A[0],V=A[1],B=M.find((function(e){return e.props.name===j}))||M[0]||i.createElement(O.DayView,null),z=e.data||S.data,H=s.toSchedulerGroups(e.group,e.resources),U=e.group&&e.group.orientation?e.group.orientation:"horizontal",K=B.props.selectedDateFormat||"{0:D}",W=B.props.selectedShortDateFormat||"{0:d}",q=B.props.slotDuration,Y=void 0!==B.props.dateRange?"function"==typeof B.props.dateRange?B.props.dateRange.call(void 0,{intl:x,date:P,timezone:n,numberOfDays:B.props.numberOfDays,workWeekStart:B.props.workWeekStart||x.firstDay(),workWeekEnd:B.props.workWeekEnd||(x.firstDay()+B.props.numberOfDays)%6}):B.props.dateRange:{start:S.defaultDate,end:S.defaultDate},G=i.useCallback((function(e){var t=e.created,n=void 0===t?[]:t,r=e.updated,o=void 0===r?[]:r,i=e.deleted;if(a){var s={created:n,updated:o,deleted:void 0===i?[]:i};a.call(void 0,s)}}),[a]),Z=i.useCallback((function(e){var t=[e.dataItem];G({created:t})}),[G]),X=i.useCallback((function(e){var t=[],n=[];if(e.series)if(Array.isArray(e.dataItem))e.dataItem.map((function(t){var r=l.clone(s.findMaster(e.dataItem,T,z)),o=l.clone(t);s.setField(o,T.originalStart,s.getField(r,T.originalStart)),s.setField(o,T.recurrenceId,s.getField(r,T.recurrenceId)),s.setField(o,T.recurrenceExceptions,s.getField(r,T.recurrenceExceptions)),n.push(o)}));else{var r=l.clone(s.findMaster(e.dataItem,T,z)),o=l.clone(e.dataItem);s.setField(o,T.originalStart,s.getField(r,T.originalStart)),s.setField(o,T.recurrenceId,s.getField(r,T.recurrenceId)),s.setField(o,T.recurrenceExceptions,s.getField(r,T.recurrenceExceptions)),n.push(o)}else if(Array.isArray(e.dataItem))e.dataItem.map((function(e){var r=null!==s.getField(e,T.recurrenceRule)&&void 0!==s.getField(e,T.recurrenceRule);if(null!==s.getField(e,T.recurrenceId)&&void 0!==s.getField(e,T.recurrenceId)&&r){var o=l.clone(s.findMaster(e,T,z)),i=s.getField(e,T.originalStart),a=s.getField(o,T.recurrenceExceptions)||[];s.setField(o,T.recurrenceExceptions,a.concat([i])),s.setField(e,T.recurrenceRule,null),n.push(o),t.push(e)}else n.push(e)}));else{var i=null!==s.getField(e.dataItem,T.recurrenceRule)&&void 0!==s.getField(e.dataItem,T.recurrenceRule);if(null!==s.getField(e.dataItem,T.recurrenceId)&&void 0!==s.getField(e.dataItem,T.recurrenceId)&&i){r=l.clone(s.findMaster(e.dataItem,T,z));var a=s.getField(e.dataItem,T.originalStart),u=s.getField(r,T.recurrenceExceptions)||[];s.setField(r,T.recurrenceExceptions,u.concat([a])),s.setField(e.dataItem,T.recurrenceRule,null),n.push(r),t.push(e.dataItem)}else n.push(e.dataItem)}G({updated:n,created:t})}),[G,T,z]),Q=i.useCallback((function(e){var t=[],n=[];if(e.series){var r=l.clone(s.findMaster(e.dataItem,T,z)),o=l.clone(e.dataItem);s.setField(o,T.originalStart,s.getField(r,T.originalStart)),s.setField(o,T.recurrenceId,s.getField(r,T.recurrenceId)),s.setField(o,T.recurrenceRule,s.getField(r,T.recurrenceRule)),s.setField(o,T.recurrenceExceptions,s.getField(r,T.recurrenceExceptions)),n.push(o)}else{if(null!==s.getField(e.dataItem,T.recurrenceRule)&&void 0!==s.getField(e.dataItem,T.recurrenceRule)){r=l.clone(s.findMaster(e.dataItem,T,z));var i=s.getField(e.dataItem,T.originalStart),a=s.getField(r,T.recurrenceExceptions)||[];s.setField(r,T.recurrenceExceptions,a.concat([i])),s.setField(e.dataItem,T.recurrenceRule,null),t.push(r)}else n.push(e.dataItem)}G({updated:t,deleted:n})}),[G,T,z]),$=i.useCallback((function(e){switch(e.type){case o.create:Z(e);break;case o.update:X(e);break;case o.remove:Q(e)}}),[Z,Q,X]),J=i.useCallback((function(e,t){F(e,r({},t,{target:v.current}))}),[F,v]),ee=i.useCallback((function(e,t){N(e,r({},t,{target:v.current}))}),[N,v]),te=i.useCallback((function(e){e.value&&N(e.value,r({},e,{target:v.current,nativeEvent:e.nativeEvent}))}),[N,v]),ne=i.useCallback((function(e){e.preventDefault();var t=B.props.numberOfDays||1,n=t>27?m.addMonths(P,Math.round(t/27)):m.addDays(P,t);N(n,event)}),[P,N,B.props.numberOfDays]),re=i.useCallback((function(e){e.preventDefault();var t=B.props.numberOfDays||1,n=t>27?m.addMonths(P,-Math.round(t/27)):m.addDays(P,-t);N(n,event)}),[P,N,B.props.numberOfDays]),oe=i.useCallback((function(e){e.preventDefault();var t=s.getToday();N(t,event)}),[N]),ie=i.useCallback((function(){V(!L)}),[V,L]),ae=i.useCallback((function(){p.current&&(p.current.style.boxShadow="0 0.5px 0.5px 0.5px rgba(0, 0, 0, .12)")}),[p]),se=i.useCallback((function(){p.current&&(p.current.style.boxShadow="")}),[p]),le=i.useMemo((function(){return r({},e.style,{height:e.height})}),[e.height,e.style]),ue=i.useMemo((function(){return l.classNames({"k-rtl":void 0!==e.rtl?e.rtl:"rtl"===D},"k-widget k-scheduler k-scheduler-flex k-floatwrap",e.className)}),[e.className,e.rtl,D]),ce=I.toLanguageString(y.today,y.messages[y.today]),de=I.toLanguageString(y.previousTitle,y.messages[y.previousTitle]),pe=I.toLanguageString(y.nextTitle,y.messages[y.nextTitle]),fe=B.props.header||e.header||S.header,he=B.props.footer||e.footer||S.footer,me=f.SchedulerNavigation,ve=h.SchedulerViewSelector;return i.createElement(u.SchedulerContext,{element:p,props:e,views:M,fields:T,groups:H,dateRange:Y,orientation:U,dateFormat:{dateFormat:K,shortDateFormat:W},date:[P,ee],activeView:[j,J],data:[z,$]},i.createElement("div",{ref:p,id:e.id,style:le,className:ue,tabIndex:e.tabIndex,dir:D,role:e.role,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,onFocus:ae,onBlur:se},i.createElement(fe,null,i.createElement(me,null,i.createElement(g.ButtonGroup,{className:"k-scheduler-navigation"},i.createElement(g.Button,{role:"button",tabIndex:-1,title:ce,"aria-label":ce,onClick:oe},ce),i.createElement(g.Button,{role:"button",tabIndex:-1,className:"k-button-icon",title:de,"aria-label":de,onClick:re},i.createElement("span",{className:"k-icon k-i-arrow-60-left"})),i.createElement(g.Button,{role:"button",tabIndex:-1,className:"k-button-icon",title:pe,"aria-label":pe,onClick:ne},i.createElement("span",{className:"k-icon k-i-arrow-60-right"})))),i.createElement(b.NavigationDatePicker,{value:P,onChange:te}),i.createElement(g.ToolbarSpacer,null),i.createElement(ve,null,i.createElement(k.ViewSelectorList,null))),B&&i.createElement(B.type,r({editable:e.editable,key:B.props.name,item:e.item,viewItem:e.viewItem,editItem:e.editItem,task:e.task,viewTask:e.viewTask,editTask:e.viewTask,slot:e.slot,viewSlot:e.viewSlot,editSlot:e.editSlot,form:e.form,onDataAction:$,showWorkHours:L},B.props)),i.createElement(he,null,q&&q<1440&&i.createElement(C.BusinessHours,null,i.createElement(g.Button,{tabIndex:-1,onClick:ie},i.createElement("span",{className:"k-icon k-i-clock"})," ",I.toLanguageString(L?y.showFullDay:y.showWorkDay,y.messages[L?y.showFullDay:y.showWorkDay]))))))}));var S={data:[],height:600,tabIndex:-1,editable:!1,defaultDate:new Date,header:p.SchedulerHeader,footer:v.SchedulerFooter,navigation:f.SchedulerNavigation,viewSelector:h.SchedulerViewSelector};t.Scheduler.propTypes={data:a.array,editable:a.oneOfType([a.bool,a.shape({add:a.bool,drag:a.bool,edit:a.bool,remove:a.bool,resize:a.bool})]),view:a.string,defaultView:a.string,date:a.any,defaultDate:a.any,rtl:a.bool,height:a.oneOfType([a.number,a.string]),children:a.any,timezone:a.string,group:a.any,resources:a.any,modelFields:a.shape({id:a.string,start:a.string,startTimezone:a.string,end:a.string,endTimezone:a.string,isAllDay:a.string,title:a.string,description:a.string,recurrenceRule:a.string,recurrenceId:a.string,recurrenceException:a.string})},t.Scheduler.defaultProps=S,t.Scheduler.displayName="KendoReactScheduler"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.SchedulerResourceIteratorContext=r.createContext({resource:{},groupIndex:0}),t.useSchedulerResourceIteratorContext=function(){return r.useContext(t.SchedulerResourceIteratorContext)}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(2),s=n(20),l=n(7),u=n(40),c=n(60),d=n(14),p=n(15),f=n(13),h=n(10),m=n(52),v=n(36);t.SchedulerEditSlot=i.forwardRef((function(e,t){var n=e._ref,u=e.onDataAction,c=e.viewSlot,y=e.form,b=e.formItem,k=(e.onFormItemChange,o(e,["_ref","onDataAction","viewSlot","form","formItem","onFormItemChange"])),C=i.useState(e.tabIndex),O=C[0],w=C[1],E=i.useRef(null),S=i.useRef(null);i.useImperativeHandle(S,(function(){return{props:e}})),i.useImperativeHandle(t,(function(){return S.current})),i.useImperativeHandle(n,(function(){return E.current}));var D=d.useEditable(e.editable),x=f.useSchedulerFieldsContext(),I=h.useSchedulerViewSlotsContext()[0],T=h.useSchedulerViewItemsContext()[0],_=h.useSchedulerViewSelectedSlotsContext(),P=_[0],N=_[1],M=h.useSchedulerViewFocusedSlotsContext()[1],R=y||g.form,j=c||g.viewSlot,F=p.useControlledState(null,b,e.onFormItemChange),A=F[0],L=F[1],V=P.some((function(t){return Boolean(t.current&&t.current.props.start.getTime()===e.start.getTime()&&t.current.props.end.getTime()===e.end.getTime()&&t.current.props.index===e.index&&t.current.props.group.index===e.group.index&&t.current.props.range.index===e.range.index&&t.current.props.isAllDay===e.isAllDay)})),B=i.useCallback((function(){var t={};if(l.setField(t,x.start,new Date(e.start.getTime())),l.setField(t,x.end,new Date(e.end.getTime())),l.setField(t,x.isAllDay,e.isAllDay),e.group.resources.length)for(var n=0;n<e.group.resources.length;n++){var r=e.group.resources[n];if(l.isGroupped(e.group.resources)){var o=l.getField(e.group.resources[n],r.valueField);l.setField(t,r.field,r.multiple?[o]:o)}else l.setField(t,r.field,r.multiple?[]:void 0)}return t}),[x.start,x.end,x.isAllDay,e.start,e.end,e.isAllDay,e.group.resources]),z=i.useCallback((function(t){D.select&&N({type:v.SLOTS_SELECT_ACTION.select,slot:E},t.syntheticEvent),e.onFocus&&e.onFocus.call(void 0,t)}),[N,D.select,e.onFocus]),H=i.useCallback((function(t){if(D.add){var n=B();L(n,t)}e.onDoubleClick&&e.onDoubleClick.call(void 0,t)}),[B,D.add,e.onDoubleClick,L]),U=i.useCallback((function(e){var t;switch(e.syntheticEvent.keyCode){case a.Keys.left:if(!I)return;e.syntheticEvent.preventDefault(),M({type:d.SLOTS_FOCUS_ACTION.left,slot:E},e.syntheticEvent);break;case a.Keys.right:if(!I)return;e.syntheticEvent.preventDefault(),M({type:d.SLOTS_FOCUS_ACTION.right,slot:E},e.syntheticEvent);break;case a.Keys.up:if(!I)return;e.syntheticEvent.preventDefault(),M({type:d.SLOTS_FOCUS_ACTION.up,slot:E},e.syntheticEvent);break;case a.Keys.down:if(!I)return;e.syntheticEvent.preventDefault(),M({type:d.SLOTS_FOCUS_ACTION.down,slot:E},e.syntheticEvent);break;case a.Keys.enter:if(!I||!D.add)return;var n=B();L(n);break;case a.Keys.tab:t=l.findFirstItem(e.target)}t&&(e.syntheticEvent.preventDefault(),t.element&&t.element.focus())}),[B,M,D.add,L,I]),K=i.useCallback((function(e){u&&u.call(void 0,{type:s.DATA_ACTION.create,series:!1,dataItem:e.value},e),L(null,e.syntheticEvent)}),[u,L]),W=i.useCallback((function(e){L(null,e.syntheticEvent)}),[L]),q=i.useCallback((function(e){L(null,e)}),[L]),Y=i.useCallback((function(e,t){L&&L(e,t)}),[L]);return i.useEffect((function(){var t=I.length&&I[0].current===E.current;w(void 0!==e.tabIndex?null===e.tabIndex?void 0:e.tabIndex:0===P.length&&t&&0===T.length?0:void 0)}),[T,e.tabIndex,P.length,I]),i.createElement(m.SchedulerEditSlotContext,{props:e,form:[A,Y]},i.createElement(j,r({},k,{_ref:E,selected:V,tabIndex:O,onFocus:z,onDoubleClick:H,onKeyDown:U})),A&&i.createElement(R,{dataItem:A,onSubmit:K,onClose:q,onCancel:W}))}));var g={viewSlot:c.SchedulerViewSlot,form:u.SchedulerForm};t.SchedulerEditSlot.defaultProps=g,t.SchedulerEditSlot.displayName="KendoReactSchedulerEditSlot"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(14),i=n(2),a=n(54),s=n(35),l=n(36),u=n(2);t.BaseView=r.forwardRef((function(e,t){var n=r.useRef(null);r.useImperativeHandle(t,(function(){return n.current}));var c=u.useCollection([]),d=c[0],p=c[1],f=u.useCollection([]),h=f[0],m=f[1],v=o.useItemsFocus(d),g=v[0],y=v[1],b=o.useSlotsFocus(h),k=b[0],C=b[1],O=s.useItemsSelection(d),w=O[0],E=O[1],S=l.useSlotsSelection(h),D=S[0],x=S[1],I=r.useCallback((function(e,t){x({type:l.SLOTS_SELECT_ACTION.reset}),E(e,t)}),[E,x]),T=r.useCallback((function(e,t){E({type:s.ITEMS_SELECT_ACTION.reset},t),x(e)}),[E,x]),_=r.useMemo((function(){return i.classNames("k-scheduler-layout k-scheduler-layout-flex",e.className)}),[e.className]);return o.useCellSync({element:n,selector:".k-group-cell",attribute:"data-depth-index",explicitDepth:!0}),o.useCellSync({element:n,selector:".k-side-cell",attribute:"data-depth-index",explicitDepth:!1}),r.createElement(a.SchedulerViewContext,{props:e.props,ranges:e.ranges,items:[d,p],slots:[h,m],selectedItems:[w,I],selectedSlots:[D,T],focusedItems:[g,y],focusedSlots:[k,C]},r.createElement("div",{ref:n,style:e.style,className:_,role:"presentation"},e.children))})),t.BaseView.displayName="KendoReactSchedulerBaseView"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(17),i=n(21);t.VerticalResourceIterator=function(e){var t=e.nested,n=e.wrapGroup,i=e.children,c=e.cellContent||p,d=o.toGroupResources(e.group,e.resources);return r.createElement("div",{className:"k-scheduler-group"},t?n?r.createElement("div",{className:"k-scheduler-row"},r.createElement("div",{className:"k-sticky-cell"},l({resources:d,children:i,cellContent:c,depth:0,groupIndex:0})),r.createElement("div",{className:"k-scheduler-cell k-group-content"},s({resources:d,children:i,cellContent:c,depth:0,groupIndex:0},!1))):s({resources:d,children:i,cellContent:c,depth:0,groupIndex:0},!0):n?r.createElement("div",{className:"k-scheduler-row"},r.createElement("div",{className:"k-sticky-cell"},a({resources:d,children:i,cellContent:c,depth:0,groupIndex:0})),r.createElement("div",{className:"k-scheduler-cell k-group-content"},i)):u({resources:d,children:i,cellContent:c,depth:0,groupIndex:0}))};var a=function(e){return r.createElement("div",{className:"k-scheduler-row"},r.createElement("div",{className:"k-scheduler-row"},e.resources.map((function(e,t){return r.createElement("div",{key:t,className:"k-scheduler-cell k-resource-cell k-heading-cell","data-depth-index":t})}))))},s=function(e,t){void 0===t&&(t=!0);var n=e.resources,o=e.children,a=e.cellContent,l=e.groupIndex,u=e.depth,c=n.length>0;if(u===n.length||!c)return r.createElement(i.SchedulerResourceIteratorContext.Provider,{value:{resource:n[u],groupIndex:c?l:0}},o);var d=n[u].data.length;return n[u].data.map((function(e,i){return r.createElement("div",{key:i,className:"k-scheduler-row"},t&&r.createElement("div",{className:"k-scheduler-cell k-group-cell k-heading-cell","data-depth-index":u},e.text),r.createElement("div",{className:"k-scheduler-cell k-group-content k-resource-row","data-depth-index":u,"data-resource-index":d*l+i},s({resources:n,children:o,cellContent:a,groupIndex:d*l+i,depth:u+1},t)))}))},l=function(e){var t=e.resources,n=e.children,o=e.cellContent,i=e.groupIndex,a=e.depth,s=t.length?t[a].data.length:0;return t[a]?t[a].data.map((function(e,u){return r.createElement("div",{key:u,className:"k-scheduler-row"},r.createElement("div",{className:"k-scheduler-cell k-resource-cell k-resource-row k-heading-cell","data-depth-index":a,"data-resource-index":s*i+u},e.text),a+1!==t.length&&r.createElement("div",{className:"k-scheduler-cell k-resource-content"},l({resources:t,children:n,cellContent:o,groupIndex:s*i+u,depth:a+1})))})):null},u=function(e){var t=e.resources,n=e.children,o=e.groupIndex,i=e.cellContent;return r.createElement("div",{className:"k-scheduler-row"},d(t),i,c(n,t,o))},c=function(e,t,n){var o=t.length>0;return r.createElement("div",{className:"k-scheduler-cell k-group-content"},r.createElement(i.SchedulerResourceIteratorContext.Provider,{value:{resource:t[n],groupIndex:o?n:void 0}},e))},d=function(e){return e.map((function(e,t){return r.createElement("div",{key:t,className:"k-scheduler-cell k-group-cell k-heading-cell","data-depth-index":t})}))};t.VerticalResourceIterator.displayName="KendoReactSchedulerVerticalResourceIterator";var p=null},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3);t.toRanges=function(e,t){for(var n=t.step,o=t.timezone,i=[],a=r.ZonedDate.fromLocalDate(e.start,o),s=r.ZonedDate.fromLocalDate(e.end,o),l=a.clone(),u=0;l.getTime()<s.getTime();u++,l=l.addTime(n)){var c=l.clone(),d=c.clone().addTime(n),p=new Date(c.getTime()),f={index:u,end:new Date(d.getTime()),start:p,zonedStart:c,zonedEnd:d};i.push(f)}return i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(44),i=n(3),a=n(7);t.toOccurrences=function(e,t){var n=t.dateRange,r=t.fields,o=t.timezone;return e.map(s(r)).reduce(l(n,o,r),[]).filter((function(e){return!a.isMaster(e.dataItem,r)}))};var s=function(e){return function(t){return{uid:r.getter(e.id||"id")(t),start:r.getter(e.start||"start")(t),startTimezone:r.getter(e.startTimezone||"startTimezone")(t),originalStart:r.getter(e.originalStart||"originalStart")(t),end:r.getter(e.end||"end")(t),endTimezone:r.getter(e.endTimezone||"endTimezone")(t),isAllDay:r.getter(e.isAllDay||"isAllDay")(t),title:r.getter(e.title||"title")(t),description:r.getter(e.description||"description")(t),occurrenceId:r.getter("occurrenceId")(t),recurrenceRule:r.getter(e.recurrenceRule||"recurrenceRule")(t),recurrenceExceptions:r.getter(e.recurrenceExceptions||"recurrenceExceptions")(t),recurrenceId:r.getter(e.recurrenceId||"recurrenceId")(t),dataItem:r.clone(t)}}},l=function(e,t,n){return function(r,o){return r.concat(Boolean(o.recurrenceRule)&&Boolean(null===o.recurrenceId||void 0===o.recurrenceId)&&a.isMaster(o.dataItem,n)?u(o,{dateRange:e,timezone:t,fields:n}).slice():[o])}},u=function(e,t){var n=t.dateRange,s=t.timezone,l=t.fields,u=e.recurrenceRule,c=o.parseRule({recurrenceRule:u});c.start||(c.start=i.ZonedDate.fromLocalDate(e.start,s)),c.end||(c.end=i.ZonedDate.fromLocalDate(e.end,s));var d=e.recurrenceExceptions;d&&(c.exceptionDates=d.map((function(e){return i.ZonedDate.fromLocalDate(e,s)})));var p=a.toUTCDateTime(n.start),f=a.toUTCDateTime(n.end),h=o.expand(c,{rangeStart:i.ZonedDate.fromUTCDate(p,s),rangeEnd:i.ZonedDate.fromUTCDate(f,s)});return h.events.length?h.events.map((function(t,n){var o=r.clone(e),i=r.clone(e.dataItem);return o.recurrenceId=o.uid,a.setField(i,l.recurrenceId,e.uid),o.originalStart=t.start.toLocalDate(),a.setField(i,l.originalStart,t.start.toLocalDate()),o.start=t.start.toLocalDate(),a.setField(i,l.start,t.start.toLocalDate()),o.end=t.end.toLocalDate(),a.setField(i,l.end,t.end.toLocalDate()),o.occurrenceId=String(n),a.setField(i,"occurrenceId",String(n)),o.dataItem=i,o})):[]}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(7),a=n(46),s=n(3);t.toItems=function(e,n,i){var u=n.timezone,c=i.groups,d=i.ranges,p=[];return a.orderBy(e,[{field:"start",dir:"asc"},{field:"end",dir:"desc"},{field:"isAllDay",dir:"desc"}]).forEach((function(e){c.forEach((function(n){var i=1===c.length?l(e,n):n;t.inGroup(e,i)&&d.forEach((function(n){if(t.inRange(e,n)){var a=o.createRef(),l=o.createRef(),c=n.end<e.end,d=e.start<n.start,f=s.ZonedDate.fromLocalDate(e.start,u),h=s.ZonedDate.fromLocalDate(e.end,u),m=r({},e,{_ref:l,itemRef:a,head:c,tail:d,order:null,zonedStart:f,zonedEnd:h,group:i,range:n,slots:[],isRecurring:Boolean(e.recurrenceRule),isException:Boolean(!e.recurrenceRule&&null!==e.recurrenceId&&void 0!==e.recurrenceId),isAllDay:Boolean(e.isAllDay)});p.push(m)}}))}))})),p};var l=function(e,t){return{index:0,resources:t.resources.filter((function(t){return u(e,t)}))}},u=function(e,t){return t.multiple?(e.dataItem[t.field]||[]).some((function(e){return t[t.valueField]===e})):e.dataItem[t.field]===t[t.valueField]};t.inGroup=function(e,t){return!t.resources.some((function(t){return t.multiple?!e.dataItem[t.field].some((function(e){return t[t.valueField]===e})):e.dataItem[t.field]!==t[t.valueField]}))},t.inSlot=function(e,t){return i.intersects(t.start,t.end,e.start,e.end)},t.inRange=function(e,t){return i.intersects(t.start,t.end,e.start,e.end)&&(void 0===t.isAllDay||void 0===e.isAllDay||e.isAllDay===t.isAllDay)}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(27)),r(n(37)),r(n(26)),r(n(25))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(39),a=n(40),s=n(38),l=n(2),u=n(62),c=n(64),d=n(31),p=n(14),f=n(10),h=n(51),m=n(103),v=n(65),g=n(66),y=n(67),b=n(68),k=n(69),C=n(70),O=n(35);t.SchedulerEditItem=o.forwardRef((function(e,t){var n=e._ref,i=e.itemRef,a=e.onDataAction,s=e.ignoreIsAllDay,l=e.viewItem,u=e.series,c=e.onSeriesChange,d=e.form,E=e.formItem,S=e.onFormItemChange,D=e.drag,x=e.dragItem,I=e.onDragItemChange,T=e.resize,_=e.resizeItem,P=e.onResizeItemChange,N=e.removeDialog,M=e.removeItem,R=e.onRemoveItemChange,j=e.occurrenceDialog,F=e.showOccurrenceDialog,A=e.onShowOccurrenceDialogChange,L=e.showRemoveDialog,V=e.onShowRemoveDialogChange,B=e.onFocus,z=e.onFocusAction,H=e.onMouseDown,U=e.onMouseDownAction,K=e.onMouseUp,W=e.onMouseUpAction,q=e.onClick,Y=e.onClickAction,G=e.onDoubleClick,Z=e.onDoubleClickAction,X=e.onRemoveClick,Q=e.onRemoveClickAction,$=e.onPress,J=e.onPressAction,ee=e.onDrag,te=e.onDragAction,ne=e.onRelease,re=e.onReleaseAction,oe=e.onResizePress,ie=e.onResizePressAction,ae=e.onResizeStartDrag,se=e.onResizeStartDragAction,le=e.onResizeEndDrag,ue=e.onResizeEndDragAction,ce=e.onResizeRelease,de=e.onResizeReleaseAction,pe=e.onOccurrenceClick,fe=e.onOccurrenceClickAction,he=e.onSeriesClick,me=e.onSeriesClickAction,ve=e.onKeyDown,ge=e.onKeyDownAction,ye=e.onKeyUp,be=e.onKeyUpAction,ke=e.onRemoveConfirm,Ce=e.onRemoveConfirmAction,Oe=e.onFormSubmit,we=e.onFormSubmitAction,Ee=e.onCancel,Se=e.onCancelAction,De=o.useState(e.tabIndex),xe=De[0],Ie=De[1],Te=o.useRef(null),_e=o.useRef(null);o.useImperativeHandle(Te,(function(){return{props:e,element:_e.current&&_e.current.element}})),o.useImperativeHandle(t,(function(){return Te.current})),o.useImperativeHandle(n,(function(){return _e.current})),o.useImperativeHandle(i,(function(){return _e.current}));var Pe=l||w.viewItem,Ne=D||w.drag,Me=T||w.resize,Re=d||w.form,je=j||w.occurrenceDialog,Fe=N||w.removeDialog,Ae=p.useEditable(e.editable),Le=f.useSchedulerViewSelectedItemsContext(),Ve=Le[0],Be=Le[1],ze=C.useSeries(null,u,c),He=ze[0],Ue=ze[2],Ke=m.useFormItem({series:He,onDataAction:a},[null,E,S]),We=Ke[0],qe=Ke[1],Ye=Ke[2],Ge=b.useDragItem({dataItem:e.dataItem,ignoreIsAllDay:e.ignoreIsAllDay,isAllDay:e.isAllDay,onDataAction:a},[null,x,I]),Ze=Ge[0],Xe=Ge[1],Qe=Ge[2],$e=k.useResizeItem({dataItem:e.dataItem,onDataAction:a},[null,_,P]),Je=$e[0],et=$e[1],tt=$e[2],nt=g.useRemoveItem({series:He,onDataAction:a},[null,M,R]),rt=nt[0],ot=nt[1],it=nt[2],at=y.useShowRemoveDialog(!1,L,V),st=at[0],lt=at[1],ut=at[2],ct=v.useShowOccurrenceDialog(!1,F,A),dt=ct[0],pt=ct[1],ft=ct[2],ht=f.useSchedulerViewItemsContext()[0],mt=f.useSchedulerViewFocusedItemsContext()[1],vt=f.useSchedulerViewFocusedSlotsContext()[1],gt=Boolean(Ve&&Ve.some((function(e){return e.current===_e.current}))),yt=o.useMemo((function(){return{selected:gt,series:He,formItem:We,dragItem:Ze,resizeItem:Je,removeItem:rt,showRemoveDialog:st,showOccurrenceDialog:dt}}),[Ze,We,rt,Je,gt,He,dt,st]),bt=o.useMemo((function(){var e;return(e={})[C.SERIES_ACTION.set]=Ue,e[C.SERIES_ACTION.toggle]=Ue,e[C.SERIES_ACTION.reset]=Ue,e[O.ITEMS_SELECT_ACTION.select]=Be,e[O.ITEMS_SELECT_ACTION.add]=Be,e[O.ITEMS_SELECT_ACTION.remove]=Be,e[O.ITEMS_SELECT_ACTION.reset]=Be,e[O.ITEMS_SELECT_ACTION.selectNext]=Be,e[O.ITEMS_SELECT_ACTION.selectPrev]=Be,e[m.FORM_ITEM_ACTION.set]=Ye,e[m.FORM_ITEM_ACTION.setMaster]=Ye,e[m.FORM_ITEM_ACTION.reset]=Ye,e[m.FORM_ITEM_ACTION.complete]=Ye,e[g.REMOVE_ITEM_ACTION.set]=it,e[g.REMOVE_ITEM_ACTION.reset]=it,e[g.REMOVE_ITEM_ACTION.complete]=it,e[v.SHOW_OCCURRENCE_DIALOG_ACTION.close]=ft,e[v.SHOW_OCCURRENCE_DIALOG_ACTION.open]=ft,e[v.SHOW_OCCURRENCE_DIALOG_ACTION.set]=ft,e[v.SHOW_OCCURRENCE_DIALOG_ACTION.toggle]=ft,e[v.SHOW_OCCURRENCE_DIALOG_ACTION.reset]=ft,e[y.SHOW_REMOVE_DIALOG_ACTION.close]=ut,e[y.SHOW_REMOVE_DIALOG_ACTION.open]=ut,e[y.SHOW_REMOVE_DIALOG_ACTION.set]=ut,e[y.SHOW_REMOVE_DIALOG_ACTION.toggle]=ut,e[y.SHOW_REMOVE_DIALOG_ACTION.reset]=ut,e[b.DRAG_ITEM_ACTION.start]=Qe,e[b.DRAG_ITEM_ACTION.drag]=Qe,e[b.DRAG_ITEM_ACTION.complete]=Qe,e[b.DRAG_ITEM_ACTION.completeOccurrence]=Qe,e[b.DRAG_ITEM_ACTION.completeSeries]=Qe,e[b.DRAG_ITEM_ACTION.set]=Qe,e[b.DRAG_ITEM_ACTION.reset]=Qe,e[b.DRAG_ITEM_ACTION.dragSelected]=Qe,e[k.RESIZE_ITEM_ACTION.start]=tt,e[k.RESIZE_ITEM_ACTION.startDrag]=tt,e[k.RESIZE_ITEM_ACTION.startDragSelected]=tt,e[k.RESIZE_ITEM_ACTION.endDrag]=tt,e[k.RESIZE_ITEM_ACTION.endDragSelected]=tt,e[k.RESIZE_ITEM_ACTION.complete]=tt,e[k.RESIZE_ITEM_ACTION.completeOccurrence]=tt,e[k.RESIZE_ITEM_ACTION.completeSeries]=tt,e[k.RESIZE_ITEM_ACTION.set]=tt,e[k.RESIZE_ITEM_ACTION.reset]=tt,e[p.ITEMS_FOCUS_ACTION.next]=mt,e[p.ITEMS_FOCUS_ACTION.prev]=mt,e[p.SLOTS_FOCUS_ACTION.left]=vt,e[p.SLOTS_FOCUS_ACTION.right]=vt,e[p.SLOTS_FOCUS_ACTION.up]=vt,e[p.SLOTS_FOCUS_ACTION.down]=vt,e.null=function(){},e}),[Qe,Ye,Be,it,tt,Ue,ft,ut,mt,vt]),kt=o.useCallback((function(t){if(z){var n=z(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e})))}B&&B.call(void 0,t)}),[bt,B,z,e,yt]),Ct=o.useCallback((function(t){if(U){var n=U(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e})))}H&&H.call(void 0,t)}),[bt,H,U,e,yt]),Ot=o.useCallback((function(t){if(W){var n=W(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e})))}K&&K.call(void 0,t)}),[bt,K,W,e,yt]),wt=o.useCallback((function(t){if(Y){var n=Y(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e})))}q&&q.call(void 0,t)}),[bt,q,Y,e,yt]),Et=o.useCallback((function(t){if(Z){var n=Z(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e})))}G&&G.call(void 0,t)}),[Z,G,e,bt,yt]),St=o.useCallback((function(t){if(Q){var n=Q(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e})))}X&&X.call(void 0,t)}),[Q,X,e,bt,yt]),Dt=o.useCallback((function(t){if(J){var n=J(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e}),t))}$&&$.call(void 0,t)}),[J,$,e,bt,yt]),xt=o.useCallback((function(t){if(te){var n=te(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r({},n,{item:_e}),t.dragEvent.originalEvent))}ee&&ee.call(void 0,t)}),[te,ee,e,bt,yt]),It=o.useCallback((function(t){if(re){var n=re(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r({},n,{item:_e}),t.dragEvent.originalEvent))}ne&&ne.call(void 0,t)}),[re,ne,e,bt,yt]),Tt=o.useCallback((function(t){if(ie){var n=ie(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r({},n,{item:_e}),t.dragEvent.originalEvent))}oe&&oe.call(void 0,t)}),[ie,oe,e,yt,bt]),_t=o.useCallback((function(t){if(se){var n=se(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r({},n,{item:_e}),t.dragEvent.originalEvent))}ae&&ae.call(void 0,t)}),[ae,se,e,bt,yt]),Pt=o.useCallback((function(t){if(ue){var n=ue(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r({},n,{item:_e}),t.dragEvent.originalEvent))}le&&le.call(void 0,t)}),[le,ue,e,bt,yt]),Nt=o.useCallback((function(t){if(de){var n=de(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r({},n,{item:_e}),t.dragEvent.originalEvent))}ce&&ce.call(void 0,t)}),[de,ce,e,bt,yt]),Mt=o.useCallback((function(t){if(we){var n=we(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e}),t))}Oe&&Oe.call(void 0,t)}),[we,Oe,e,yt,bt]),Rt=o.useCallback((function(t){if(Se){var n=Se(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e}),t))}Ee&&Ee.call(void 0,t)}),[Se,Ee,e,yt,bt]),jt=o.useCallback((function(t){if(fe){var n=fe(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e}),t))}pe&&pe.call(void 0,t)}),[fe,pe,e,yt,bt]),Ft=o.useCallback((function(t){if(me){var n=me(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t)})):bt[n.type](r({},n,{item:_e}),t))}he&&he.call(void 0,t)}),[me,he,e,yt,bt]),At=o.useCallback((function(t){if(ge){var n=ge(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t.syntheticEvent)})):bt[n.type](r({},n,{item:_e}),t.syntheticEvent))}ve&&ve.call(void 0,t)}),[ge,ve,e,yt,bt]),Lt=o.useCallback((function(t){if(be){var n=be(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t.syntheticEvent)})):bt[n.type](r({},n,{item:_e}),t.syntheticEvent))}ye&&ye.call(void 0,t)}),[be,ye,e,yt,bt]),Vt=o.useCallback((function(t){if(Ce){var n=Ce(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r({},e,{item:_e}),t.syntheticEvent)})):bt[n.type](r({},n,{item:_e}),t.syntheticEvent))}ke&&ke.call(void 0,t)}),[Ce,ke,e,yt,bt]);return o.useEffect((function(){var t=ht.length&&ht[0].current===_e.current;Ie(void 0!==e.tabIndex?null===e.tabIndex?void 0:e.tabIndex:0===Ve.length&&t?0:void 0)}),[ht,e.tabIndex,Ve.length]),o.createElement(h.SchedulerEditItemContext,{props:e,form:[We,qe,Ye],drag:[Ze,Xe,Qe],resize:[Je,et,tt],remove:[rt,ot,it],showRemoveDialog:[st,lt,ut],showOccurrenceDialog:[dt,pt,ft]},o.createElement(Pe,r({},e,{_ref:_e,itemRef:_e,selected:gt,tabIndex:xe,onKeyDown:At,onKeyUp:Lt,onFocus:kt,onMouseUp:Ot,onMouseDown:Ct,onClick:wt,onDoubleClick:Et,onRemoveClick:St,onPress:Dt,onDrag:xt,onRelease:It,onResizePress:Tt,onResizeEndDrag:Pt,onResizeStartDrag:_t,onResizeRelease:Nt})),Ze&&Ae.drag&&(Array.isArray(Ze)?Ze.map((function(t,n){return o.createElement(Ne,{key:n,ignoreIsAllDay:s,dataItem:t,vertical:e.vertical,viewItem:Pe,item:e.item})})):o.createElement(Ne,{ignoreIsAllDay:s,dataItem:Ze,vertical:e.vertical,viewItem:Pe,item:e.item})),Je&&Ae.resize&&(Array.isArray(Je)?Je.map((function(t,n){return o.createElement(Me,{key:n,format:e.format,ignoreIsAllDay:s,dataItem:t,viewItem:e.viewItem,item:e.item,vertical:e.vertical})})):o.createElement(Me,{format:e.format,ignoreIsAllDay:s,dataItem:Je,viewItem:e.viewItem,item:e.item,vertical:e.vertical})),We&&!dt&&Ae.edit&&o.createElement(Re,{dataItem:We,onSubmit:Mt,onClose:Rt,onCancel:Rt}),dt&&o.createElement(je,{dataItem:We||Ze||Je||rt,isRemove:null!==rt,onClose:Rt,onOccurrenceClick:jt,onSeriesClick:Ft}),st&&rt&&Ae.remove&&o.createElement(Fe,{dataItem:rt,onClose:Rt,onCancel:Rt,onConfirm:Vt}))}));var w={viewItem:d.SchedulerViewItem,drag:u.SchedulerDrag,resize:c.SchedulerResize,form:a.SchedulerForm,occurrenceDialog:i.SchedulerOccurrenceDialog,removeDialog:s.SchedulerRemoveDialog,onClickAction:function(e,t,n){return[{type:e.syntheticEvent.metaKey||e.syntheticEvent.ctrlKey?!n.selected||n.dragItem||n.resizeItem?O.ITEMS_SELECT_ACTION.add:O.ITEMS_SELECT_ACTION.remove:O.ITEMS_SELECT_ACTION.select}]},onDoubleClickAction:function(e,t){return t.editable?[{type:m.FORM_ITEM_ACTION.set,payload:t.dataItem},t.isRecurring&&{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.open}].filter(Boolean):[]},onRemoveClickAction:function(e,t){return t.editable?[{type:g.REMOVE_ITEM_ACTION.set,payload:t.dataItem},t.isRecurring?{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.open}:{type:y.SHOW_REMOVE_DIALOG_ACTION.open}]:[]},onPressAction:function(e,t){return t.editable?{type:b.DRAG_ITEM_ACTION.start,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onDragAction:function(e,t){return t.editable?{type:e.dragEvent.originalEvent.metaKey||e.dragEvent.originalEvent.ctrlKey?b.DRAG_ITEM_ACTION.dragSelected:b.DRAG_ITEM_ACTION.drag,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onReleaseAction:function(e,t,n){return t.editable&&n.dragItem?t.isRecurring&&!t.isException&&null===n.series?{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.open}:{type:t.isRecurring?n.series?b.DRAG_ITEM_ACTION.completeSeries:b.DRAG_ITEM_ACTION.completeOccurrence:b.DRAG_ITEM_ACTION.complete,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onResizePressAction:function(e,t){return t.editable?{type:k.RESIZE_ITEM_ACTION.start,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onResizeStartDragAction:function(e,t){return t.editable?{type:e.dragEvent.originalEvent.metaKey||e.dragEvent.originalEvent.ctrlKey?k.RESIZE_ITEM_ACTION.startDragSelected:k.RESIZE_ITEM_ACTION.startDrag,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onResizeEndDragAction:function(e,t){return t.editable?{type:e.dragEvent.originalEvent.metaKey||e.dragEvent.originalEvent.ctrlKey?k.RESIZE_ITEM_ACTION.endDragSelected:k.RESIZE_ITEM_ACTION.endDrag,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onResizeReleaseAction:function(e,t,n){return t.editable&&n.resizeItem?t.isRecurring&&!t.isException&&null===n.series?{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.open}:{type:t.isRecurring?n.series?k.RESIZE_ITEM_ACTION.completeSeries:k.RESIZE_ITEM_ACTION.completeOccurrence:k.RESIZE_ITEM_ACTION.complete,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onOccurrenceClickAction:function(e,t,n){return n.dragItem?[{type:b.DRAG_ITEM_ACTION.completeOccurrence},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.resizeItem?[{type:k.RESIZE_ITEM_ACTION.completeOccurrence},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.formItem?[{type:C.SERIES_ACTION.set,payload:!1},{type:m.FORM_ITEM_ACTION.set,payload:t.dataItem},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.removeItem?[{type:C.SERIES_ACTION.set,payload:!1},{type:g.REMOVE_ITEM_ACTION.set,payload:t.dataItem},{type:y.SHOW_REMOVE_DIALOG_ACTION.open},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:void 0},onSeriesClickAction:function(e,t,n){return n.dragItem?[{type:b.DRAG_ITEM_ACTION.completeSeries},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.resizeItem?[{type:k.RESIZE_ITEM_ACTION.completeSeries},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.formItem?[{type:C.SERIES_ACTION.set,payload:!0},{type:m.FORM_ITEM_ACTION.setMaster,payload:t.dataItem},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.removeItem?[{type:C.SERIES_ACTION.set,payload:!0},{type:g.REMOVE_ITEM_ACTION.set,payload:t.dataItem},{type:y.SHOW_REMOVE_DIALOG_ACTION.open},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:void 0},onKeyDownAction:function(e,t){switch(e.syntheticEvent.keyCode){case l.Keys.enter:return[{type:m.FORM_ITEM_ACTION.set,payload:t.dataItem},t.isRecurring&&{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.open}];case l.Keys.tab:return[{type:e.syntheticEvent.shiftKey?p.ITEMS_FOCUS_ACTION.prev:p.ITEMS_FOCUS_ACTION.next,ignoreIsAllDay:t.ignoreIsAllDay},{type:e.syntheticEvent.shiftKey?O.ITEMS_SELECT_ACTION.selectPrev:O.ITEMS_SELECT_ACTION.selectNext,ignoreIsAllDay:t.ignoreIsAllDay}];case l.Keys.up:return[Boolean(t.slots.length&&t.slots[0]._ref.current)&&{type:p.SLOTS_FOCUS_ACTION.up,slot:t.slots[0]._ref}];case l.Keys.right:return[Boolean(t.slots.length&&t.slots[0]._ref.current)&&{type:p.SLOTS_FOCUS_ACTION.right,slot:t.slots[0]._ref}];case l.Keys.down:return[Boolean(t.slots.length&&t.slots[t.slots.length-1]._ref.current)&&{type:p.SLOTS_FOCUS_ACTION.down,slot:t.slots[t.slots.length-1]._ref}];case l.Keys.left:return[Boolean(t.slots.length&&t.slots[0]._ref.current)&&{type:p.SLOTS_FOCUS_ACTION.left,slot:t.slots[0]._ref}];default:return}},onFormSubmitAction:function(e){return{type:m.FORM_ITEM_ACTION.complete,payload:e.value}},onRemoveConfirmAction:function(){return[{type:g.REMOVE_ITEM_ACTION.complete},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]},onCancelAction:function(){return[{type:C.SERIES_ACTION.reset},{type:g.REMOVE_ITEM_ACTION.reset},{type:m.FORM_ITEM_ACTION.reset},{type:b.DRAG_ITEM_ACTION.reset},{type:k.RESIZE_ITEM_ACTION.reset},{type:y.SHOW_REMOVE_DIALOG_ACTION.reset},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.reset}]}};t.SchedulerEditItem.defaultProps=w,t.SchedulerEditItem.displayName="KendoReactSchedulerEditItem"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(2),a=n(4),s=n(11),l=n(14),u=n(7);t.SchedulerItem=o.forwardRef((function(e,t){var n=e.onFocus,c=e.onBlur,d=e.onMouseDown,p=e.onClick,f=e.onMouseUp,h=e.onMouseOut,m=e.onMouseOver,v=e.onMouseEnter,g=e.onMouseLeave,y=e.onDoubleClick,b=e.onRemoveClick,k=e.onKeyUp,C=e.onKeyDown,O=e.onKeyPress,w=e.onPress,E=e.onDrag,S=e.onRelease,D=e.onResizePress,x=e.onResizeEndDrag,I=e.onResizeRelease,T=e.onResizeStartDrag,_=l.useSchedulerItem(e,t),P=_.item,N=_.element,M=o.useRef(null),R=o.useRef(null),j=o.useRef(null),F=o.useRef(null),A=l.useEditable(e.editable),L=a.useInternationalization(),V=a.useLocalization().toLanguageString(s.deleteTitle,s.messages[s.deleteTitle]),B=e.group.resources.find((function(e){return Boolean(e.colorField&&""!==e[e.colorField]&&void 0!==e[e.colorField])})),z=B&&B.colorField&&B[B.colorField],H=void 0!==e.tabIndex?null===e.tabIndex?void 0:e.tabIndex:e.selected?0:-1,U=o.useMemo((function(){return i.classNames({"k-event":!e.resizeHint,"k-state-selected":e.selected&&A.select,"k-event-drag-hint":e.dragHint,"k-scheduler-marquee":e.resizeHint,"k-marquee":e.resizeHint,"k-first":e.resizeHint&&!e.tail,"k-last":e.resizeHint&&!e.head},e.className)}),[e.resizeHint,e.selected,e.dragHint,e.tail,e.head,e.className,A.select]),K=o.useMemo((function(){return u.formatEventTime(L,e.zonedStart,e.zonedEnd,e.isAllDay)+", "+e.title}),[L,e.isAllDay,e.title,e.zonedEnd,e.zonedStart]),W=o.useMemo((function(){return r({cursor:"pointer",userSelect:"none",borderColor:e.resizeHint?void 0:z,backgroundColor:e.resizeHint?void 0:z,touchAction:"none"},e.style)}),[z,e.style,e.resizeHint]),q=o.useCallback((function(e){n&&n.call(void 0,{syntheticEvent:e,target:P.current})}),[n,P]),Y=o.useCallback((function(e){c&&c.call(void 0,{syntheticEvent:e,target:P.current})}),[c,P]),G=o.useCallback((function(e){d&&d.call(void 0,{syntheticEvent:e,target:P.current})}),[d,P]),Z=o.useCallback((function(e){p&&p.call(void 0,{syntheticEvent:e,target:P.current})}),[p,P]),X=o.useCallback((function(e){f&&f.call(void 0,{syntheticEvent:e,target:P.current})}),[f,P]),Q=o.useCallback((function(e){m&&m.call(void 0,{syntheticEvent:e,target:P.current})}),[m,P]),$=o.useCallback((function(e){h&&h.call(void 0,{syntheticEvent:e,target:P.current})}),[h,P]),J=o.useCallback((function(e){v&&v.call(void 0,{syntheticEvent:e,target:P.current})}),[v,P]),ee=o.useCallback((function(e){g&&g.call(void 0,{syntheticEvent:e,target:P.current})}),[g,P]),te=o.useCallback((function(e){y&&y.call(void 0,{syntheticEvent:e,target:P.current})}),[y,P]),ne=o.useCallback((function(e){b&&b.call(void 0,{syntheticEvent:e,target:P.current})}),[b,P]),re=o.useCallback((function(e){C&&C.call(void 0,{syntheticEvent:e,target:P.current})}),[C,P]),oe=o.useCallback((function(e){O&&O.call(void 0,{syntheticEvent:e,target:P.current})}),[O,P]),ie=o.useCallback((function(e){k&&k.call(void 0,{syntheticEvent:e,target:P.current})}),[k,P]),ae=o.useCallback((function(e){w&&w.call(void 0,{dragEvent:e,target:P.current})}),[w,P]),se=o.useCallback((function(e){E&&E.call(void 0,{dragEvent:e,target:P.current})}),[E,P]),le=o.useCallback((function(e){S&&S.call(void 0,{dragEvent:e,target:P.current})}),[S,P]),ue=o.useCallback((function(e){D&&D.call(void 0,{dragEvent:e,target:P.current})}),[D,P]),ce=o.useCallback((function(e){T&&T.call(void 0,{dragEvent:e,target:P.current})}),[T,P]),de=o.useCallback((function(e){x&&x.call(void 0,{dragEvent:e,target:P.current})}),[x,P]),pe=o.useCallback((function(e){I&&I.call(void 0,{dragEvent:e,target:P.current})}),[I,P]);return i.useDraggable(N,{onPress:ae,onDrag:se,onRelease:le}),i.useDraggable(M,{onPress:ue,onDrag:de,onRelease:pe}),i.useDraggable(R,{onPress:ue,onDrag:ce,onRelease:pe}),i.useDraggable(j,{onPress:ue,onDrag:ce,onRelease:pe}),i.useDraggable(F,{onPress:ue,onDrag:de,onRelease:pe}),o.createElement("div",{ref:N,id:e.id,style:W,tabIndex:H,className:U,"aria-label":K,"aria-selected":e.selected,onFocus:q,onBlur:Y,onMouseUp:X,onMouseDown:G,onClick:Z,onMouseOver:Q,onMouseOut:$,onMouseEnter:J,onMouseLeave:ee,onDoubleClick:te,onKeyDown:re,onKeyPress:oe,onKeyUp:ie,"data-group-index":e.group.index,"data-range-index":e.range.index},e.children,!e.resizeHint&&o.createElement("span",{className:"k-event-actions"},A.remove&&o.createElement("a",{tabIndex:-1,"aria-hidden":"true",className:"k-link k-event-delete",title:V,"aria-label":V,onClick:ne},o.createElement("span",{className:"k-icon k-i-close"})),e.head&&o.createElement("span",{className:"k-icon k-i-arrow-60-right"})),A.resize&&e.vertical&&o.createElement(o.Fragment,null,o.createElement("span",{className:"k-resize-handle k-resize-n",ref:j}),o.createElement("span",{className:"k-resize-handle k-resize-s",ref:F})),A.resize&&!e.vertical&&o.createElement(o.Fragment,null,o.createElement("span",{className:"k-resize-handle k-resize-w",ref:R}),o.createElement("span",{className:"k-resize-handle k-resize-e",ref:M})),e.resizeHint&&o.createElement(o.Fragment,null,o.createElement("div",{className:"k-marquee-color",style:{borderColor:z,backgroundColor:z}}),o.createElement("div",{className:"k-marquee-text"},!e.tail&&o.createElement("div",{className:"k-label-top"},L.formatDate(e.zonedStart,e.format)),!e.head&&o.createElement("div",{className:"k-label-bottom"},L.formatDate(e.zonedEnd,e.format)))))})),t.SchedulerItem.displayName="KendoReactSchedulerItem"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(30),s=n(7),l=n(10),u=n(17),c=n(12),d=n(4),p=n(63);t.SchedulerViewItem=i.forwardRef((function(e,t){var n=e.item,a=e._ref,h=e.itemRef,m=o(e,["item","_ref","itemRef"]),v=i.useRef(),g=i.useRef(null),y=i.useRef(null);i.useImperativeHandle(y,(function(){return{props:e,element:g.current&&g.current.element}})),i.useImperativeHandle(t,(function(){return y.current})),i.useImperativeHandle(a,(function(){return g.current})),i.useImperativeHandle(h,(function(){return g.current}));var b=n||f.item,k=d.useInternationalization(),C=l.useSchedulerViewItemsContext()[0],O=l.useSchedulerViewSlotsContext()[0],w=l.useSchedulerElementContext(),E=i.useState(!0),S=E[0],D=E[1],x=i.useState(!1),I=x[0],T=x[1],_=i.useState(0),P=_[0],N=_[1],M=i.useMemo((function(){return e.isAllDay?k.toString(e.zonedStart,"t"):k.format("{0:t} - {1:t}",e.zonedStart,e.zonedEnd)}),[k,e.isAllDay,e.zonedEnd,e.zonedStart]),R=i.useMemo((function(){return"("+M+"): "+e.title}),[M,e.title]),j=function(e,t){var n=1;return e.forEach((function(e){var r=t.filter((function(t){return F(e.current.props,t.props)}));r.length>n&&(n=r.length)})),n},F=function(t,n){return s.intersects(t.start,t.end,n.start,n.end)&&t.group.index===n.group.index&&t.range.index===n.range.index&&(e.ignoreIsAllDay||t.isAllDay===n.isAllDay)},A=function(){var t=(O||[]).filter((function(t){return t.current&&F(t.current.props,e)}));if(0!==t.length){var n=s.first(t);if(n.current&&g.current){var r=u.getRect(n.current.element);u.setRect(g.current.element,r)}}else D(!1)},L=function(){var t=g.current&&g.current.element;if(t){var n=(O||[]).filter((function(t){return t.current&&F(t.current.props,e)})),r=[],o=[],i=[];(C||[]).forEach((function(e){e.current&&(e.current.props.dragHint?o.push(e.current):e.current.props.resizeHint?i.push(e.current):r.push(e.current))}));var a=e.dragHint||e.resizeHint?s.calculateOrder(g.current,e.dragHint?o:i,n,e.ignoreIsAllDay):e.order||0,l=e.dragHint||e.resizeHint?j(n,e.dragHint?o:i):j(n,r),d=function(e,t){return e.map((function(e){return t.filter((function(t){return F(e.current.props,t.props)}))}))}(n,r),p=0,f=u.getRect(t);if(d.forEach((function(n){var r=0;n.forEach((function(n){s.intersects(n.props.start,n.props.end,e.start,e.end)&&!e.dragHint&&!e.resizeHint&&n.props._maxSiblingsPerSlot&&n.props._maxSiblingsPerSlot>l&&n.element!==t&&(l=n.props._maxSiblingsPerSlot);var o=u.getRect(n.element);null!==n.props.order&&n.props.order<a&&(r=o.top+o.height-f.top-c.BORDER_WIDTH*a+1)})),r>p&&(p=r)})),0!==n.length){f.width=e.vertical?f.width/l-c.BORDER_WIDTH-20/l:f.width*n.length-c.BORDER_WIDTH-20,f.height=e.vertical?f.height*n.length-c.BORDER_WIDTH:(e.resizeHint||e.dragHint)&&l<=1?f.height:e.style&&e.style.height?e.style.height:25,f.left=e.vertical?f.left+a*f.width+c.BORDER_WIDTH*a:f.left,f.top=e.vertical?f.top:f.top+p+c.BORDER_WIDTH*a,N(l),u.setRect(t,f),T(!0),D(!0)}else D(!1)}},V=i.useCallback((function(){void 0!==v.current&&window.cancelAnimationFrame(v.current),v.current=window.requestAnimationFrame((function(){A(),L()}))}),[A,L]);return i.useEffect(A),i.useEffect(L),i.useEffect((function(){if(w.current){var e=new window.ResizeObserver(V);return e.observe(w.current),function(){e.disconnect()}}}),[V,w]),i.createElement(b,r({},m,{_ref:g,_maxSiblingsPerSlot:P,itemRef:g,style:r({visibility:I?void 0:"hidden",display:S?void 0:"none"},e.style)}),!e.resizeHint&&i.createElement("span",{className:"k-event-actions"},e.tail&&i.createElement("span",{className:"k-icon k-i-arrow-60-left"}),e.isRecurring&&!e.isException&&i.createElement("span",{className:"k-icon k-i-reload"}),!e.isRecurring&&e.isException&&i.createElement("span",{className:"k-icon k-i-non-recurrence"})),!e.resizeHint&&i.createElement("div",{title:R},!e.isAllDay&&i.createElement(p.SchedulerItemContent,{className:"k-event-template k-event-time "},R),i.createElement(p.SchedulerItemContent,{className:"k-event-template"},e.title)))}));var f={item:a.SchedulerItem};t.SchedulerViewItem.defaultProps=f,t.SchedulerViewItem.displayName="KendoReactSchedulerViewItem"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(4),s=n(2);t.DateHeaderCell=i.forwardRef((function(e,t){var n=e.as,u=void 0===n?l.as:n,c=o(e,["as"]),d=i.useRef(null),p=i.useRef(null),f=a.useInternationalization(),h=i.useMemo((function(){return s.classNames("k-scheduler-cell k-heading-cell",e.className)}),[e.className]);return i.useImperativeHandle(p,(function(){return{element:d.current&&d.current.element?d.current.element:d.current,props:e}})),i.useImperativeHandle(t,(function(){return p.current})),i.createElement(u,r({ref:u!==l.as?void 0:d},c,{className:h}),i.createElement("span",{className:"k-link k-nav-day"},f.formatDate(e.date,e.format)))}));var l={as:i.forwardRef((function(e,t){e.as,e.format,e.start,e.end;var n=o(e,["as","format","start","end"]);return i.createElement("div",r({},n,{ref:t}))})),format:"d"};t.DateHeaderCell.defaultProps=l,t.DateHeaderCell.displayName="KendoReactSchedulerDateHeaderCell"},function(e,t,n){"use strict";n.r(t),n.d(t,"PickerWrap",(function(){return Kt})),n.d(t,"ToggleButton",(function(){return Ut})),n.d(t,"Calendar",(function(){return ft})),n.d(t,"CalendarPropsContext",(function(){return pt})),n.d(t,"CalendarViewEnum",(function(){return C})),n.d(t,"CalendarCell",(function(){return T})),n.d(t,"CalendarWeekCell",(function(){return M})),n.d(t,"CalendarHeaderTitle",(function(){return Pe})),n.d(t,"CalendarNavigationItem",(function(){return rt})),n.d(t,"DateInput",(function(){return zt})),n.d(t,"DateInputPropsContext",(function(){return Bt})),n.d(t,"DatePicker",(function(){return $t})),n.d(t,"DatePickerPropsContext",(function(){return Qt})),n.d(t,"TimePicker",(function(){return Wn})),n.d(t,"TimePickerPropsContext",(function(){return Kn})),n.d(t,"MultiViewCalendar",(function(){return nr})),n.d(t,"MultiViewCalendarPropsContext",(function(){return tr})),n.d(t,"DateRangePicker",(function(){return lr})),n.d(t,"DateRangePickerPropsContext",(function(){return sr})),n.d(t,"DateTimePicker",(function(){return vr})),n.d(t,"DateTimePickerPropsContext",(function(){return mr}));var r,o,i,a,s,l=n(0),u=n(1),c=n(2),d=n(3),p=n(4),f={name:"@progress/kendo-react-dateinputs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639558287,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"},h=function(){function e(e,t,n){void 0===e&&(e=0),this.total=e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var r=0,o=0;o<e;o++)this.offsets.push(r),r+=t,this.heights.push(t)}return e.prototype.height=function(e){return this.heights[e]},e.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},e.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},e.prototype.index=function(e){for(var t=0;t<this.offsets.length;t++){if(e===this.offsets[t])return t;if(e<this.offsets[t])return t-1}return this.total-1},e.prototype.offset=function(e){return this.offsets[e]},e.prototype.totalHeight=function(){return this.heights.reduce((function(e,t){return e+t}),0)},e.prototype.updateRowHeight=function(e,t){this.heights[e]+=t,this.offsets=function(e,t,n){return e.slice(0,t+1).concat(e.slice(t+1).map((function(e){return e+n})))}(this.offsets,e,t)},e}(),m=function(e){return Math.max(e,0)},v=function(e){this.offset=e},g=function(e){this.skip=e},y=function(){function e(e,t){this.onScrollAction=e,this.onPageAction=t,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}return e.prototype.create=function(e,t,n,r,o,i,a){void 0===o&&(o=0),void 0===i&&(i=0),void 0===a&&(a="vertical"),this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=r,this.lastScrollTop=0,this.topOffset=o,this.bottomOffset=i,this.direction=a;var s=this.rowsForHeight(o),l=m(t-s);this.onScrollAction(new v(this.rowOffset(l))),this.onPageAction(new g(l))},e.prototype.onScroll=function(e){var t=e.scrollLeft,n=e.scrollTop,r=e.offsetHeight,o=e.offsetWidth,i="vertical"===this.direction?n:t,a="vertical"===this.direction?r:o;if(this.lastScrollTop!==i){var s=this.lastScrollTop>=i;this.lastScrollTop=i;var l=this.rowHeightService.index(m(i-this.topOffset)),u=this.rowHeightService.index(m(i+a-this.bottomOffset));if(!s&&u>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=l,this.onScrollAction(new v(this.rowOffset(l))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new g(this.firstLoaded))),s&&l<=this.firstLoaded){var c=Math.floor(.3*this.take);this.firstLoaded=m(l-c),this.onScrollAction(new v(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new g(this.firstLoaded))}}},e.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},e.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},e}(),b=(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});!function(e){e[e.Backward=0]="Backward",e[e.Forward=1]="Forward"}(s||(s={}));var k,C,O=((o={})[s.Forward]=function(e){return function(t){return t+e}},o[s.Backward]=function(e){return function(t){return t-e}},o),w=((i={})[s.Forward]=function(e){return function(t){return Math.min(t,e)}},i[s.Backward]=function(e){return function(t){return Math.max(t,e)}},i),E=((a={})[s.Forward]=function(e){return function(t){return t<e}},a[s.Backward]=function(e){return function(t){return t>e}},a),S=function(e){function t(n){var r=e.call(this,n)||this;return r.animationInProgress=!1,r.scrollTo=function(e){var t="vertical"===r.direction?"scrollTop":"scrollLeft";r.scrollContainer&&(r.scrollContainer[t]=e)},r.scrollToIndex=function(e){void 0!==r.scrollToIndexTimeout&&window.cancelAnimationFrame(r.scrollToIndexTimeout),r.rowHeightService&&(r.scrollToIndexTimeout=window.requestAnimationFrame((function(){r.animationInProgress=!1,r.scrollTo(r.rowHeightService.offset(e))})))},r.animateToIndex=function(e){if(r.rowHeightService&&window){window.cancelAnimationFrame(r.cancelAnimation);var t=r.rowHeightService.offset(e),n=r.getContainerScrollDirection(t),o=r.scrollRange(t,n),i=o.start,a=o.end;if(i!==a){var s=r.scrollStep(i,a),l=O[n](s),u=w[n](a),c=E[n](l(a)),d=function(e){r.animationInProgress=!0;var t=l(e);r.scrollTo(u(t)),c(t)?r.cancelAnimation=window.requestAnimationFrame((function(){d(t)})):r.animationInProgress=!1};r.cancelAnimation=window.requestAnimationFrame((function(){d(i)}))}}},r.scrollToBottom=function(){r.rowHeightService&&r.scrollTo(r.rowHeightService.totalHeight()+r.props.bottomOffset)},r.scrollStep=function(e,n){var o=r.props.scrollDuration||t.defaultProps.scrollDuration;return Math.abs(n-e)/(o/17)},r.scrollRange=function(e,t){var n=r.containerScrollPosition;if(parseInt(""+e,10)===parseInt(""+n,10))return{start:e,end:e};var o,i,a,l=r.containerMaxScroll(),u=t===s.Backward?1:-1,c=(o=n,i=e,a=r.props.maxScrollDifference,Math.min(Math.abs(i-o),a)),d=Math.min(e,l);return{start:Math.min(Math.max(d+u*c,0),l),end:d}},r.containerMaxScroll=function(){return r.containerScrollSize-r.containerOffsetSize},r.getContainerScrollDirection=function(e){return e<r.containerScrollPosition?s.Backward:s.Forward},r.initServices=function(e){void 0===e&&(e=r.props);var t="vertical"===r.direction?e.itemHeight:e.itemWidth;void 0!==t&&(r.rowHeightService=new h(e.total,t,0),r.scrollerService.create(r.rowHeightService,e.skip,e.take,e.total,e.topOffset,r.scrollOffsetSize,r.direction))},r.getContainerProperty=function(e){return r.scrollContainer?r.scrollContainer[e]:0},r.handleScroll=function(e){if(r.scrollContainer&&r.rowHeightService){var t=e.target;r.scrollerService.onScroll({scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,offsetHeight:t.offsetHeight,offsetWidth:t.offsetWidth});var n=r.rowHeightService.index(r.containerScrollPosition-r.props.topOffset),o=r.props.onScrollAction,i={index:n,target:t,scrollAction:r.scrollAction,pageAction:r.pageAction,animationInProgress:r.animationInProgress};r.props.onScroll&&r.props.onScroll.call(void 0,e),o&&o.call(void 0,i),r.scrollAction=void 0,r.pageAction=void 0}},r.handleScrollAction=function(e){r.scrollAction=e},r.handlePageAction=function(e){r.pageAction=e},r.scrollerService=new y(r.handleScrollAction,r.handlePageAction),r}return b(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.scrollContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"direction",{get:function(){return void 0!==this.props.direction?this.props.direction:t.defaultProps.direction},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollOffsetSize",{get:function(){return void 0!==this.props.scrollOffsetSize?this.props.scrollOffsetSize:t.defaultProps.scrollOffsetSize},enumerable:!0,configurable:!0}),t.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},t.prototype.itemIndex=function(e){return this.rowHeightService?this.rowHeightService.index(e):0},t.prototype.itemOffset=function(e){return this.rowHeightService?this.rowHeightService.offset(e):0},t.prototype.isIndexVisible=function(e){if(!this.rowHeightService)return!1;var t=this.containerScrollPosition,n=t+this.containerOffsetSize,r=this.rowHeightService.offset(e),o=r+this.rowHeightService.height(e);return r>=t&&o<=n},t.prototype.isListScrolled=function(e){return!!this.rowHeightService&&this.containerScrollPosition!==this.rowHeightService.offset(e)},t.prototype.componentDidMount=function(){var e=this.props.onMount;e&&e.call(void 0,this)},t.prototype.render=function(){var e=this;this.lastTotal===this.props.total&&this.lastDirection===this.direction&&this.lastTake===this.props.take||(this.initServices(),this.lastTotal=this.props.total,this.lastDirection=this.direction,this.lastTake=this.props.take);var t=""+((this.rowHeightService?this.rowHeightService.totalHeight():0)+this.props.bottomOffset),n="vertical"===this.direction?{height:t+"px"}:{width:t+"px"},r=Object(c.classNames)("k-content k-calendar-content k-scrollable",{"k-scrollable-horizontal":"horizontal"===this.direction},this.props.className),o=Object(c.classNames)("k-scrollable-placeholder",{"k-scrollable-horizontal-placeholder":"horizontal"===this.direction});return l.createElement("div",{ref:function(t){e.scrollContainer=t},onScroll:this.handleScroll,className:r,tabIndex:this.props.tabIndex,role:this.props.role},this.props.children,l.createElement("div",{style:n,className:o}))},t.propTypes={bottomOffset:u.number.isRequired,className:u.string,direction:u.oneOf(["horizontal","vertical"]),forceScroll:u.bool,itemHeight:u.number,itemWidth:u.number,maxScrollDifference:u.number,onScroll:u.func,onScrollAction:u.func,scrollDuration:u.number,scrollOffsetSize:u.number,skip:u.number.isRequired,tabIndex:u.number,take:u.number.isRequired,topOffset:u.number.isRequired,total:u.number.isRequired,role:u.string},t.defaultProps={direction:"vertical",forceScroll:!1,scrollOffsetSize:0,maxScrollDifference:100,scrollDuration:100},t}(l.Component),D=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),x=function(){return(x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},I=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},T=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){var n=t.props,r=n.onClick,o=n.value;r&&r.call(void 0,o,e)},t.handleMouseEnter=function(){var e=t.props,n=e.onMouseEnter,r=e.value;n&&n.call(void 0,r)},t.handleMouseLeave=function(){var e=t.props,n=e.onMouseLeave,r=e.value;n&&n.call(void 0,r)},t}return D(t,e),t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=t.value,r=I(t,["value"]),o=e.value,i=I(e,["value"]);return!((!(n&&o)||n.getTime()===o.getTime())&&function(e,t){var n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(e[i]!==t[i])return!1}return!0}(r,i))},t.prototype.render=function(){var e=this.props,t=e.className,n=(e.formattedValue,e.isWeekend),r=e.isFocused,o=(e.isInRange,e.isSelected),i=e.isRangeStart,a=e.isRangeMid,s=e.isRangeEnd,u=e.isRangeSplitStart,d=e.isRangeSplitEnd,p=e.isToday,f=e.isDisabled,h=(e.view,e.value,I(e,["className","formattedValue","isWeekend","isFocused","isInRange","isSelected","isRangeStart","isRangeMid","isRangeEnd","isRangeSplitStart","isRangeSplitEnd","isToday","isDisabled","view","value"])),m="end"===this.props.activeRangeEnd&&s,v="start"===this.props.activeRangeEnd&&i,g=Object(c.classNames)("k-calendar-td",{"k-range-end":s,"k-range-mid":a,"k-range-split-end":d,"k-range-split-start":u,"k-range-start":i,"k-state-active":v||m,"k-state-pending-focus":r,"k-state-selected":o||i||s,"k-today":p,"k-weekend":n,"k-state-disabled":f},t);return l.createElement("td",x({},h,{className:g,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}),l.createElement("span",{className:"k-link"},this.props.children))},t}(l.Component),_=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),P=function(){return(P=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(e.firstDate,N(e,["className","firstDate"]));return l.createElement("td",P({className:Object(c.classNames)("k-calendar-td",t)},n),this.props.children)},t}(l.Component);!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Up=2]="Up",e[e.Down=3]="Down",e[e.PrevView=4]="PrevView",e[e.NextView=5]="NextView",e[e.FirstInView=6]="FirstInView",e[e.LastInView=7]="LastInView",e[e.LowerView=8]="LowerView",e[e.UpperView=9]="UpperView"}(k||(k={})),function(e){e[e.month=0]="month",e[e.year=1]="year",e[e.decade=2]="decade",e[e.century=3]="century"}(C||(C={}));var R={start:null,end:null};function j(e){var t=function(t,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];if(null===n[r])return null;var a=t?e.isRequired:e;return a.apply(void 0,[n,r].concat(o))},n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}var F,A,L,V,B,z=function(e,t,n){return void 0===t||void 0===n||t<=e&&e<=n?e:e<t?t:n},H=new Date(1980,0,1),U=new Date(1900,0,1),K=new Date(2099,11,31),W=new Date(1980,0,1),q=new Date(1980,0,1,23,59,59),Y=function(e,t){var n=Object(d.cloneDate)(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},G=function(){return Object(d.getDate)(new Date)},Z=function(e,t,n){return!e||!(t&&t>e||n&&n<e)},X=function(e,t,n){return null===e||!(t&&Object(d.getDate)(t)>Object(d.getDate)(e)||n&&Object(d.getDate)(n)<Object(d.getDate)(e))},Q=function(e,t){var n=t||R,r=n.start,o=n.end;return!(!r||!o)&&(r<e&&e<o)},$=function(e,t,n){void 0===n&&(n=1);for(var r=[],o=e;o<t;o+=n)r.push(o);return r},J=function(e,t,n){return t.getTime()<=e.getTime()&&e.getTime()<=n.getTime()},ee=function(e,t){return e.slice(t).concat(e.slice(0,t))},te=function(e,t,n){return e?t&&e<t?Object(d.cloneDate)(t):n&&e>n?Object(d.cloneDate)(n):e:e},ne=function(e){return function(t,n,r){void 0===n&&(n=""),void 0===r&&(r={});var o=document.createElement(e);return o.className=n,Object.keys(r).map((function(e){return o.style[e]=r[e]})),"string"==typeof t?o.innerHTML=t||"":(t||[]).forEach((function(e){return e&&o.appendChild(e)})),o}},re=[[]],oe=((F={})[k.Left]=function(e){return Object(d.addDecades)(e,-1)},F[k.Up]=function(e){return Object(d.addDecades)(e,-5)},F[k.Right]=function(e){return Object(d.addDecades)(e,1)},F[k.Down]=function(e){return Object(d.addDecades)(e,5)},F[k.PrevView]=function(e){return Object(d.addCenturies)(e,-1)},F[k.NextView]=function(e){return Object(d.addCenturies)(e,1)},F[k.FirstInView]=function(e){return Object(d.firstDecadeOfCentury)(e)},F[k.LastInView]=function(e){return Object(d.lastDecadeOfCentury)(e)},F),ie=function(){function e(){}return e.prototype.addToDate=function(e,t){return Object(d.addCenturies)(e,t)},e.prototype.datesList=function(e,t){return $(0,t).map((function(t){return Object(d.addCenturies)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,s=e.selectedDate,l=e.selectionRange,u=void 0===l?R:l,c=e.viewDate;if(!c)return re;var p=$(0,4),f=Object(d.firstDecadeOfCentury)(c),h=Object(d.lastDecadeOfCentury)(c),m=G();return $(0,3).map((function(e){var l=Object(d.addDecades)(f,4*e);return p.map((function(e){var c=t.normalize(Object(d.addDecades)(l,e),a,i),p=t.isEqual(c,u.start),v=t.isEqual(c,u.end),g=!p&&!v&&Q(c,u),y=o&&(Array.isArray(s)?t.isSelectedFromArray(c,s,a,i):Z(s,a,i)&&t.isEqual(c,s));return J(c,f,h)?{formattedValue:t.value(c),id:""+n+c.getTime(),isFocused:t.isEqual(c,r),isSelected:y,isWeekend:!1,isInRange:Z(c,a,i),isRangeStart:p,isRangeMid:g,isRangeEnd:v,isRangeSplitEnd:g&&t.isEqual(c,h),isRangeSplitStart:g&&t.isEqual(c,f),isToday:t.isEqual(c,m),title:t.cellTitle(c),value:c}:null}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){Z(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isEqual=function(e,t){return!(!e||!t)&&Object(d.firstYearOfDecade)(e).getFullYear()===Object(d.firstYearOfDecade)(t).getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+99},e.prototype.isInRange=function(e,t,n){var r=Object(d.firstYearOfDecade)(e).getFullYear(),o=!t||Object(d.firstYearOfDecade)(t).getFullYear()<=r,i=!n||r<=Object(d.firstYearOfDecade)(n).getFullYear();return o&&i},e.prototype.isInSameView=function(e,t){return 0===Object(d.durationInCenturies)(e,t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},e.prototype.move=function(e,t){var n=oe[t];return n?n(e):e},e.prototype.cellTitle=function(e){return Object(d.firstYearOfDecade)(e).getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?Object(d.firstDecadeOfCentury)(e).getFullYear().toString():""},e.prototype.title=function(e){return e?Object(d.firstDecadeOfCentury)(e).getFullYear()+" - "+Object(d.lastDecadeOfCentury)(e).getFullYear():""},e.prototype.rowLength=function(e){return 4},e.prototype.skip=function(e,t){return Object(d.durationInCenturies)(t,e)},e.prototype.total=function(e,t){return Object(d.durationInCenturies)(e,t)+1},e.prototype.value=function(e){return e?Object(d.firstYearOfDecade)(e).getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),Object(d.durationInCenturies)(e,t)<n?Object(d.addCenturies)(e,-1):e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(d.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(d.cloneDate)(n):e},e}(),ae=[[]],se=((A={})[k.Left]=function(e){return Object(d.addYears)(e,-1)},A[k.Up]=function(e){return Object(d.addYears)(e,-5)},A[k.Right]=function(e){return Object(d.addYears)(e,1)},A[k.Down]=function(e){return Object(d.addYears)(e,5)},A[k.PrevView]=function(e){return Object(d.addDecades)(e,-1)},A[k.NextView]=function(e){return Object(d.addDecades)(e,1)},A[k.FirstInView]=function(e){return Object(d.firstYearOfDecade)(e)},A[k.LastInView]=function(e){return Object(d.lastYearOfDecade)(e)},A),le=function(){function e(){}return e.prototype.addToDate=function(e,t){return Object(d.addDecades)(e,t)},e.prototype.datesList=function(e,t){return $(0,t).map((function(t){return Object(d.addDecades)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,s=e.selectedDate,l=e.selectionRange,u=void 0===l?R:l,c=e.viewDate;if(!c)return ae;var p=$(0,4),f=Object(d.firstYearOfDecade)(c),h=Object(d.lastYearOfDecade)(c),m=G();return $(0,3).map((function(e){var l=Object(d.addYears)(f,4*e);return p.map((function(e){var c=t.normalize(Object(d.addYears)(l,e),a,i),p=t.isEqual(c,u.start),v=t.isEqual(c,u.end),g=!p&&!v&&Q(c,u),y=o&&(Array.isArray(s)?t.isSelectedFromArray(c,s,a,i):Z(s,a,i)&&t.isEqual(c,s));return J(c,f,h)?{formattedValue:t.value(c),id:""+n+c.getTime(),isFocused:t.isEqual(c,r),isSelected:y,isWeekend:!1,isInRange:Z(c,a,i),isRangeStart:p,isRangeMid:g,isRangeEnd:v,isRangeSplitEnd:g&&t.isEqual(c,h),isRangeSplitStart:g&&t.isEqual(c,f),isToday:t.isEqual(c,m),title:t.cellTitle(c),value:c}:null}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){Z(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+9},e.prototype.isInRange=function(e,t,n){var r=e.getFullYear(),o=!t||t.getFullYear()<=r,i=!n||r<=n.getFullYear();return o&&i},e.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},e.prototype.isInSameView=function(e,t){return 0===Object(d.durationInDecades)(e,t)},e.prototype.move=function(e,t){var n=se[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?Object(d.firstYearOfDecade)(e).getFullYear().toString():""},e.prototype.title=function(e){return e?Object(d.firstYearOfDecade)(e).getFullYear()+" - "+Object(d.lastYearOfDecade)(e).getFullYear():""},e.prototype.rowLength=function(e){return 4},e.prototype.skip=function(e,t){return Object(d.durationInDecades)(t,e)},e.prototype.total=function(e,t){return Object(d.durationInDecades)(e,t)+1},e.prototype.value=function(e){return e?e.getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),Object(d.durationInDecades)(e,t)<n?Object(d.addDecades)(e,-1):e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(d.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(d.cloneDate)(n):e},e}(),ue=[[]],ce=((L={})[k.Left]=function(e){return Object(d.addDays)(e,-1)},L[k.Up]=function(e){return Object(d.addWeeks)(e,-1)},L[k.Right]=function(e){return Object(d.addDays)(e,1)},L[k.Down]=function(e){return Object(d.addWeeks)(e,1)},L[k.PrevView]=function(e){return Object(d.addMonths)(e,-1)},L[k.NextView]=function(e){return Object(d.addMonths)(e,1)},L[k.FirstInView]=function(e){return Object(d.firstDayOfMonth)(e)},L[k.LastInView]=function(e){return Object(d.lastDayOfMonth)(e)},L),de=function(){function e(e){this.intl=e}return e.prototype.addToDate=function(e,t){return Object(d.addMonths)(e,t)},e.prototype.datesList=function(e,t){return $(0,t).map((function(t){return Object(d.addMonths)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,s=e.selectedDate,l=e.selectionRange,u=void 0===l?R:l,c=e.viewDate;if(!c)return ue;var p=Object(d.firstDayOfMonth)(c),f=Object(d.lastDayOfMonth)(c),h=Object(d.dayOfWeek)(p,this.intl.firstDay(),-1),m=$(0,7),v=G();return $(0,6).map((function(e){var l=Object(d.addDays)(h,7*e);return m.map((function(e){var c=t.normalize(Object(d.addDays)(l,e),a,i);if(c<p||c>f)return null;var h=t.isEqual(c,u.start),m=t.isEqual(c,u.end),g=!h&&!m&&Q(c,u),y=o&&(Array.isArray(s)?t.isSelectedFromArray(c,s,a,i):Z(s,a,i)&&t.isEqual(c,s));return{formattedValue:t.value(c),id:""+n+c.getTime(),isFocused:t.isEqual(c,r),isSelected:y,isInRange:Z(c,a,i),isWeekend:t.isWeekend(c),isRangeStart:h,isRangeMid:g,isRangeEnd:m,isRangeSplitStart:g&&t.isEqual(c,p),isRangeSplitEnd:g&&t.isEqual(c,f),isToday:t.isEqual(c,v),title:t.cellTitle(c),value:c}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&Object(d.getDate)(e).getTime()===Object(d.getDate)(t).getTime()},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){Z(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isInArray=function(e,t){return!!t.length&&Object(d.firstDayOfMonth)(t[0])<=e&&e<=Object(d.lastDayOfMonth)(t[t.length-1])},e.prototype.isInRange=function(e,t,n){var r=Object(d.getDate)(e),o=!t||Object(d.getDate)(t)<=r,i=!n||r<=Object(d.getDate)(n);return o&&i},e.prototype.isInSameView=function(e,t){return 0===Object(d.durationInMonths)(e,t)},e.prototype.isRangeStart=function(e){return!e.getMonth()},e.prototype.move=function(e,t){var n=ce[t];return n?n(e):e},e.prototype.cellTitle=function(e){return this.intl.formatDate(e,"D")},e.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},e.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},e.prototype.rowLength=function(e){return 7+(e?1:0)},e.prototype.skip=function(e,t){return Object(d.durationInMonths)(t,e)},e.prototype.total=function(e,t){return Object(d.durationInMonths)(e,t)+1},e.prototype.value=function(e){return e?e.getDate().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),Object(d.durationInMonths)(e,t)<n?Object(d.addMonths)(e,-1):e},e.prototype.isWeekend=function(e){var t=e.getDay();return 6===t||0===t},e.prototype.abbrMonthNames=function(){return this.intl.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(d.getDate)(t):e>n&&this.isEqual(e,n)?Object(d.getDate)(n):e},e.prototype.wideMonthNames=function(){return this.intl.dateFormatNames({nameType:"wide",type:"months"})},e}(),pe=[[]],fe=((V={})[k.Left]=function(e){return Object(d.addMonths)(e,-1)},V[k.Up]=function(e){return Object(d.addMonths)(e,(t=e.getMonth())>4?-5:t<2?-2:-7);var t},V[k.Right]=function(e){return Object(d.addMonths)(e,1)},V[k.Down]=function(e){return Object(d.addMonths)(e,(t=e.getMonth())<7?5:t<10?7:2);var t},V[k.PrevView]=function(e){return Object(d.addYears)(e,-1)},V[k.NextView]=function(e){return Object(d.addYears)(e,1)},V[k.FirstInView]=function(e){return Object(d.firstMonthOfYear)(e)},V[k.LastInView]=function(e){return Object(d.lastMonthOfYear)(e)},V),he=function(){function e(e){this._intl=e}return e.prototype.addToDate=function(e,t){return Object(d.addYears)(e,t)},e.prototype.datesList=function(e,t){return $(0,t).map((function(t){return Object(d.addYears)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,s=e.selectedDate,l=e.selectionRange,u=void 0===l?R:l,c=e.viewDate;if(!c)return pe;var p=this.abbrMonthNames(),f=Object(d.firstMonthOfYear)(c),h=Object(d.lastMonthOfYear)(c),m=f.getFullYear(),v=$(0,4),g=G();return $(0,3).map((function(e){var l=Object(d.addMonths)(f,4*e);return v.map((function(e){var c=t.normalize(Object(d.addMonths)(l,e),a,i);if(m<c.getFullYear())return null;var v=t.isEqual(c,u.start),y=t.isEqual(c,u.end),b=!v&&!y&&Q(c,u),k=o&&(Array.isArray(s)?t.isSelectedFromArray(c,s,a,i):Z(s,a,i)&&t.isEqual(c,s));return{formattedValue:p[c.getMonth()],id:""+n+c.getTime(),isFocused:t.isEqual(c,r),isSelected:k,isInRange:Z(c,a,i),isWeekend:!1,isRangeStart:v,isRangeMid:b,isRangeEnd:y,isRangeSplitEnd:b&&t.isEqual(c,h),isRangeSplitStart:b&&t.isEqual(c,f),isToday:t.isEqual(c,g),title:t.cellTitle(c),value:c}}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){Z(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isEqual=function(e,t){return!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()},e.prototype.isInRange=function(e,t,n){var r=Object(d.createDate)(e.getFullYear(),e.getMonth(),1),o=!t||Object(d.createDate)(t.getFullYear(),t.getMonth(),1)<=r,i=!n||r<=Object(d.createDate)(n.getFullYear(),n.getMonth(),1);return o&&i},e.prototype.isInSameView=function(e,t){return 0===Object(d.durationInYears)(e,t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},e.prototype.move=function(e,t){var n=fe[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},e.prototype.navigationTitle=function(e){return this.title(e)},e.prototype.title=function(e){return e?e.getFullYear().toString():""},e.prototype.rowLength=function(e){return 4},e.prototype.skip=function(e,t){return Object(d.durationInYears)(t,e)},e.prototype.total=function(e,t){return Object(d.durationInYears)(e,t)+1},e.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),Object(d.durationInYears)(e,t)<n?Object(d.addYears)(e,-1):e},e.prototype.abbrMonthNames=function(){return this._intl.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(d.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(d.cloneDate)(n):e},e}(),me=((B={})[C.month]=de,B[C.year]=he,B[C.decade]=le,B[C.century]=ie,B),ve=function(){function e(e){this.bottom=C.month,this.top=C.century,this.onViewChanged=e}return e.prototype.configure=function(e,t){this.bottom=e,this.top=t},e.prototype.service=function(e,t){return new me[""+e](t)},e.prototype.moveDown=function(e,t){this.move(e,-1,t)},e.prototype.moveUp=function(e,t){this.move(e,1,t)},e.prototype.moveToBottom=function(e){e!==this.bottom&&this.onViewChanged({view:this.bottom})},e.prototype.canMoveDown=function(e){return this.bottom<e},e.prototype.canMoveUp=function(e){return e<this.top},e.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},e.prototype.move=function(e,t,n){var r=this.clamp(function(e,t){var n=C[C[e+t]];return void 0!==n?n:e}(e,t));r!==e&&this.onViewChanged({view:r},n)},e}(),ge=function(){function e(){this.didCalculate=!1}return e.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){var t=this;if(c.canUseDOM){var n,r=ne("div"),o=ne("ul"),i=ne("li"),a=ne("td"),s=ne("th"),l=ne("tr"),u=ne("tbody"),d=ne("thead"),p=ne("table"),f=function(){return r('\n <span class="k-calendar-title">March 2017</span>\n <span class="k-calendar-today">TODAY</span>\n ',"k-calendar-header")},h=function(e,t){return new Array(e).fill("1").map(t)},m=function(e){return r(e,"k-content k-scrollable")},v=function(){return c.canUseDOM?(n||(n=r([m([o([i("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),n):null},g=function(e,t,n){var o,i=e.cells,v=e.rows;return function(){return c.canUseDOM?(o||(o=function(e,t,n){return r(n?[f(),p([d([l([s("MO")])])],"k-calendar-weekdays"),m([e,e])]:[f(),m([e,e])],t,{left:"-10000px",position:"absolute"})}(function(e,t){return void 0===t&&(t=1),p([u([l([s("1")])].concat(h(e,(function(){return l(h(t,(function(e){return a('<span class="k-link">'+e+"</span>")})))}))))])}(v,i),t,n)),o):null}},y=function(e){return e.querySelector(".k-scrollable")},b=function(e){var t=y(e);return t.className=t.className+" k-scrollable-horizontal",e},k=g({cells:7,rows:6},"k-calendar-view k-calendar-monthview",!0),C=g({cells:5,rows:3},"k-calendar-view k-calendar-yearview",!1),O=g({cells:5,rows:2},"k-calendar-view k-calendar-decadeview",!1),w=function(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight},E=function(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth},S=function(e){return e.querySelector("tbody")};this.didCalculate=!0,e&&(this.hostContainer=e),this.batch(k(),(function(e){var n=S(e);t.calendarHeight=w(e),t.monthViewHeight=w(n),t.headerHeight=w(n.children[0]),t.scrollableContentHeight=w(y(e))})),this.batch(b(k()),(function(e){var n=S(e);t.calendarWidth=E(e),t.monthViewWidth=E(n),t.scrollableContentWidth=E(y(e))})),this.batch(C(),(function(e){t.yearViewHeight=w(S(e)),t.scrollableYearContentHeight=w(y(e))})),this.batch(b(C()),(function(e){t.yearViewWidth=E(S(e))})),this.batch(O(),(function(e){t.decadeViewHeight=w(S(e)),t.centuryViewHeight=t.decadeViewHeight})),this.batch(b(O()),(function(e){t.decadeViewWidth=E(S(e)),t.centuryViewWidth=t.decadeViewWidth})),this.batch(v(),(function(e){t.navigationItemHeight=w(e.querySelector("li"))}))}},e.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},e.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},e.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case C.month:return this["month"+n];case C.year:return this["year"+n];case C.decade:return this["decade"+n];case C.century:return this["century"+n];default:return 1}},e.prototype.batch=function(e,t){var n=this.hostContainer||document.body,r=n.appendChild(e);t(r),n.removeChild(r)},e}(),ye={33:k.PrevView,34:k.NextView,35:k.LastInView,36:k.FirstInView,37:k.Left,38:k.Up,39:k.Right,40:k.Down,"meta+38":k.UpperView,"meta+40":k.LowerView},be=function(){function e(e){this.bus=e}return e.prototype.action=function(e){var t=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return ye[t]},e.prototype.move=function(e,t,n,r,o){return r?t===k.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n,o),e):t===k.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n,o),e):r.move(e,t):e},e}(),ke=function(){function e(e){this.dom=e,this.monthScrolled=!1,this.navScrolled=!1}return e.prototype.configure=function(e){var t=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=function(e){return function(t){return Math.floor(t/e)}}(t),this.powerByMagnitude=function(e){return function(t){return t*e}}(t)},e.prototype.sync=function(e,t,n){if(e&&t){if(this.navigator=e,this.view=t,n.target===this.navigator.element){if(this.monthScrolled)return void(this.monthScrolled=!1);this.navScrolled=!0,this.scrollSiblingOf(this.navigator.element)}if(n.target===this.view.element){if(this.navScrolled)return void(this.navScrolled=!1);this.monthScrolled=!0,this.scrollSiblingOf(this.view.element)}}},e.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),n=this.calculateScroll(t,e.scrollTop);t.scrollTo(n)},e.prototype.siblingComponent=function(e){return this.navigator.element===e?this.view:this.navigator},e.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},e}(),Ce=function(){function e(e){this.intl=e}return e.prototype.getWeekNames=function(e){void 0===e&&(e=!1);var t=ee(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t},e}(),Oe=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),we=function(){return(we=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ee=function(e){return l.createElement("td",{key:e,className:"k-calendar-td"}," ")},Se=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildWeekNumber=function(e,n){if(!t.firstDate(e))return Ee("week-cell-"+n);var r=t.firstDate(e),o=t.getWeekNumber(r),i="kendo-react-calendar-week-cell-"+o,a={className:"k-alt",value:o,firstDate:r};return t.props.weekCell?l.createElement(t.props.weekCell,we({},a,{key:i}),o):l.createElement(M,we({},a,{key:i}),o)},t.buildRow=function(e){return e.map((function(e,n){if(!e)return Ee(n);var r={"aria-selected":e.isSelected},o="kendo-react-calendar-cell-"+e.value.getTime(),i=we({},r,e,{isDisabled:!e.isInRange,view:t.props.activeView,onClick:t.handleClick,onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave});return t.props.cell?l.createElement(t.props.cell,we({},i,{key:o}),e.formattedValue):l.createElement(T,we({},i,{key:o}),e.formattedValue)}))},t.firstDate=function(e){var n=t.firstWeekDateContext(e);return n?n.value:null},t.firstWeekDateContext=function(e){if(!t.weekNumber)return null;for(var n=0,r=e[n];!r&&n<e.length;)r=e[++n];return r},t.handleClick=function(e,n){var r=t.props.onChange;if(r){var o={value:Object(d.cloneDate)(e),target:t,nativeEvent:n&&n.nativeEvent,syntheticEvent:n};r.call(void 0,o)}},t.handleMouseEnter=function(e){var n=t.props.onCellEnter;n&&n.call(void 0,Object(d.cloneDate)(e))},t.handleMouseLeave=function(e){var n=t.props.onCellLeave;n&&n.call(void 0,Object(d.cloneDate)(e))},t}return Oe(t,e),Object.defineProperty(t.prototype,"min",{get:function(){return this.props.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.props.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isHorizontal",{get:function(){return"horizontal"===this.props.direction},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isMonthView",{get:function(){return this.props.activeView===C.month},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===C.month)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedDate",{get:function(){return void 0!==this.props.selectedDate?this.props.selectedDate:t.defaultProps.selectedDate},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;this.intl=Object(p.provideIntlService)(this),this.weekService=new Ce(this.intl);var t=this.weekService.getWeekNames(this.weekNumber),n=this.props.service.rowLength(this.weekNumber),r=this.props.service.title(this.props.viewDate),o=G(),i=Y(this.props.viewDate,o),a=this.props.service.data({cellUID:this.props.cellUID,min:this.min,max:this.max,focusedDate:this.props.focusedDate,isActiveView:!this.props.bus.canMoveDown(this.props.activeView),selectedDate:this.selectedDate,selectionRange:this.props.selectionRange,viewDate:i});return l.createElement(l.Fragment,null,this.isMonthView&&this.isHorizontal&&l.createElement("thead",{role:"rowgroup",className:"k-calendar-thead"},l.createElement("tr",{role:"row",className:"k-calendar-tr"},t.map((function(e,t){return l.createElement("th",{key:t,className:"k-calendar-th"},e)})))),l.createElement("tbody",{role:"rowgroup",className:"k-calendar-tbody"},!this.isHorizontal&&l.createElement("tr",{role:"presentation",className:"k-calendar-tr"},l.createElement("th",{scope:"col",colSpan:n,className:"k-calendar-th"},r)),a.map((function(t,n){return l.createElement("tr",{role:"row",className:"k-calendar-tr",key:n},e.weekNumber&&e.buildWeekNumber(t,n),e.buildRow(t))}))))},t.prototype.getWeekNumber=function(e){return this.weekNumber?Object(d.weekInYear)(e,this.intl.firstDay()):null},t.propTypes={activeRangeEnd:u.oneOf(["start","end",null]),activeView:u.number.isRequired,cellUID:u.string.isRequired,direction:u.oneOf(["horizontal","vertical"]),focusedDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onChange:u.func,selectedDate:u.oneOfType([u.instanceOf(Date),u.arrayOf(u.instanceOf(Date))]),showWeekNumbers:u.bool,viewDate:u.instanceOf(Date).isRequired},t.defaultProps={direction:"vertical",selectedDate:G(),showWeekNumbers:!1},t}(l.Component);Object(p.registerForIntl)(Se);var De,xe=n(5),Ie=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Te=function(){return(Te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},Pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ie(t,e),t.prototype.render=function(){var e=this.props,t=(e.view,_e(e,["view"]));return l.createElement(xe.Button,Te({type:"button",look:"flat"},t),this.props.children)},t}(l.PureComponent),Ne=new Date(1980,0,1),Me=new Date(1900,0,1),Re=new Date(2099,11,31),je=new Date(1980,0,1),Fe=new Date(1980,0,1,23,59,59),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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Le=function(){return(Le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ve=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getTitle=function(){if(!t.props.currentDate)return"";var e=t.rangeLength-1,n=t.props.service.title(t.props.currentDate),r=t.props.service.addToDate(t.props.currentDate,e);return e<1||!t.props.service.isInRange(r,t.min,t.max)?n:n+" - "+t.props.service.title(r)},t.handleTitleClick=function(e){t.canMoveUp&&t.props.bus.moveUp(t.props.activeView,e)},t}return Ae(t,e),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rangeLength",{get:function(){return void 0!==this.props.rangeLength?this.props.rangeLength:t.defaultProps.rangeLength},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canMoveUp",{get:function(){return this.props.bus.canMoveUp(this.props.activeView)},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this.getTitle(),t=Object(c.classNames)("k-calendar-title"),n={children:e,value:e,view:this.props.activeView,className:t,onClick:this.handleTitleClick,disabled:!this.canMoveUp},r=this.props.headerTitle?l.createElement(this.props.headerTitle,Le({},n),e):l.createElement(Pe,Le({},n),e);return l.createElement("div",{className:"k-calendar-header k-hstack"},r,l.createElement("span",{className:"k-spacer"}),l.createElement("span",{className:"k-calendar-nav k-hstack"},this.props.commands))},t.propTypes={activeView:u.number.isRequired,currentDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,rangeLength:u.number},t.defaultProps={rangeLength:1,min:Me,max:Re},t}(l.Component);Object(p.registerForLocalization)(Ve);var Be="multiviewcalendar.prevView",ze="multiviewcalendar.nextView",He="dateinput.increment",Ue="dateinput.decrement",Ke="daterangepicker.swapStartEnd",We="daterangepicker.separator",qe="datetimepicker.toggleDateTimeSelector",Ye="timepicker.selectNow",Ge="timepicker.toggleClock",Ze=((De={})["calendar.today"]="TODAY",De["timepicker.now"]="NOW",De["timepicker.set"]="Set",De["timepicker.cancel"]="Cancel",De["datetimepicker.date"]="Date",De["datetimepicker.time"]="Time",De["datetimepicker.cancel"]="Cancel",De["datetimepicker.set"]="Set",De["daterangepicker.start"]="Start",De["daterangepicker.end"]="End",De[We]=" ",De[Ye]="Select Now",De["timepicker.toggleTimeSelector"]="Toggle TimeSelector",De[Ge]="Toggle Clock",De[He]="Increase value",De[Ue]="Decrease value",De["datepicker.toggleCalendar"]="Toggle calendar",De[Be]="Navigate to previous view",De[ze]="Navigate to next view",De[Ke]="Swap start and end values",De[qe]="Toggle date-time selector",De),Xe=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.todayIsInRange&&t.props.onClick&&t.props.onClick.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:te(G(),t.min,t.max),target:t,isTodayClick:!0})},t}return Xe(t,e),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"todayIsInRange",{get:function(){return Z(G(),Object(d.getDate)(this.min),Object(d.getDate)(this.max))},enumerable:!0,configurable:!0}),t.prototype.render=function(){this.localization=Object(p.provideLocalizationService)(this);var e=this.localization.toLanguageString("calendar.today",Ze["calendar.today"]),t=Object(c.classNames)("k-nav-today",{"k-state-disabled":this.props.disabled});return l.createElement("span",{className:t,onClick:this.handleClick},e)},t.propTypes={max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onClick:u.func,disabled:u.bool},t.defaultProps={min:Me,max:Re},t}(l.Component);Object(p.registerForLocalization)(Qe);var $e=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Je=function(e){function t(t){var n=e.call(this,t)||this;return n.isActive=!1,n.animateToIndex=!0,n.shouldScroll=!1,n.focusActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-state-focused"),t=n._element.querySelector(".k-state-pending-focus");e&&e[0]&&e[0].classList.remove("k-state-focused"),t&&t.classList.add("k-state-focused"),n.isActive=!0}},n.blurActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-state-focused");e&&e.classList.remove("k-state-focused"),n.isActive=!1}},n.handleVirtualizationMount=function(e){if(n.virtualization=e,n.virtualization&&n.table){n.table.style.transform="translateY("+n.viewOffset+"px)";var t=te(n.props.focusedDate,n.props.min,n.props.max),r=n.props.service.skip(t,n.props.min);n.virtualization.scrollToIndex(r)}},n.buildMonthView=function(e,t){return l.createElement("table",{key:"calendar-view-list-weekdays",className:"k-calendar-table k-calendar-weekdays"},l.createElement("colgroup",null,e.map((function(e,t){return l.createElement("col",{key:t})}))),l.createElement("thead",{className:"k-calendar-thead"},l.createElement("tr",{className:"k-calendar-tr"},t.map((function(e,t){return l.createElement("th",{key:t,className:"k-calendar-th"},e)})))))},n.buildDates=function(e,t){var r=n.props.cellUID;return l.createElement("table",{className:"k-calendar-table",ref:function(e){return n.table=e}},l.createElement("colgroup",null,e.map((function(e,t){return l.createElement("col",{key:t})}))),t.map((function(e){return l.createElement(Se,{ref:function(e){n.calendarView||(n.calendarView=e)},key:e.getTime(),activeView:n.props.activeView,viewDate:e,min:n.props.min,max:n.props.max,cellUID:r,focusedDate:n.props.focusedDate,cell:n.props.cell,selectedDate:n.props.value,showWeekNumbers:n.weekNumber,onChange:n.handleDateChange,bus:n.props.bus,service:n.props.service,weekCell:n.props.weekCell})})))},n.calculateHeights=function(){if(n.props.dom){var e=n.props.activeView===C.month?n.props.dom.scrollableContentHeight:n.props.dom.scrollableYearContentHeight;n.bottomOffset=e-n.props.dom.viewHeight(n.props.activeView),n.viewOffset=-1*n.props.dom.headerHeight,n.viewHeight=n.props.dom.viewHeight(n.props.activeView)||1}},n.getTake=function(e,t){return Math.min(t-e,n.take)},n.handleScrollAction=function(e){var t=e.index,r=e.scrollAction,o=e.pageAction,i=o?o.skip:n.state.skip;if(n.state.index===t&&n.state.skip===i||n.setState({index:t,skip:i}),n.table&&r){var a="translateY("+r.offset+"px)";n.table.style.transform=a}},n.handleTodayClick=function(e){n.shouldScroll=!0,n.handleDateChange.call(void 0,e,!0)},n.handleDateChange=function(e,t){void 0===t&&(t=!1);var r=n.props.onChange;if(r){var o={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:Object(d.cloneDate)(e.value),target:n,isTodayClick:t};r.call(void 0,o)}},n.lastView=n.props.activeView,n.lastFocus=n.props.focusedDate,n.state={skip:n.props.service.skip(n.props.focusedDate,n.props.min),index:n.props.service.skip(n.props.focusedDate,n.props.min)},n}return $e(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weekNames",{get:function(){this.intl=Object(p.provideIntlService)(this);var e=ee(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===C.month)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"take",{get:function(){return void 0!==this.props.take?this.props.take:t.defaultProps.take},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"todayIsInRange",{get:function(){return Z(G(),Object(d.getDate)(this.props.min),Object(d.getDate)(this.props.max))},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){this.shouldScroll=!1,void 0!==this.indexToScroll&&this.virtualization&&this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.isActive&&this.focusActiveDate(),this.lastView=this.props.activeView,this.indexToScroll=void 0},t.prototype.render=function(){var e=this;this.calculateHeights();var t=this.lastView!==this.props.activeView,n=te(this.props.focusedDate,this.props.min,this.props.max),r=t?this.props.service.skip(n,this.props.min):this.state.skip,o=this.props.service.total(this.props.min,this.props.max),i=this.getTake(r,o),a=this.props.service.addToDate(this.props.min,r),s=this.props.service.addToDate(this.props.min,this.state.index),u=new Array(this.props.service.rowLength(this.weekNumber)).fill(""),p=this.props.activeView!==this.lastView;this.animateToIndex=!p,(p||!Object(d.isEqualDate)(this.lastFocus,n)||this.shouldScroll||!this.props.shouldScroll||this.props.shouldScroll())&&(this.indexToScroll=this.props.service.skip(n,this.props.min)),this.lastFocus=n;var f=Object(c.classNames)("k-calendar-view k-vstack",{"k-calendar-monthview":this.props.activeView===C.month,"k-calendar-yearview":this.props.activeView===C.year,"k-calendar-decadeview":this.props.activeView===C.decade,"k-calendar-centuryview":this.props.activeView===C.century}),h=this.buildDates(u,this.props.service.datesList(a,i)),m=l.createElement(l.Fragment,null,l.createElement(Ve,{key:"calendar-view-list-header",currentDate:s,min:this.props.min,max:this.props.max,activeView:this.props.activeView,bus:this.props.bus,service:this.props.service,headerTitle:this.props.headerTitle,commands:l.createElement(l.Fragment,null,l.createElement(Qe,{min:this.props.min,max:this.props.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}))}),this.props.activeView===C.month&&this.buildMonthView(u,this.weekNames),l.createElement(S,{key:"calendar-view-list-content",skip:r,take:this.take,total:o,itemHeight:this.viewHeight,topOffset:this.viewOffset,bottomOffset:this.bottomOffset,scrollOffsetSize:this.viewOffset,maxScrollDifference:this.viewHeight,onScroll:this.props.onScroll,onScrollAction:this.handleScrollAction,onMount:this.handleVirtualizationMount,children:h}));return l.createElement("div",{ref:function(t){e._element=t},className:f},this.props.dom.didCalculate?m:null)},t.propTypes={activeView:u.number.isRequired,bottomOffset:u.number,cellUID:u.string.isRequired,focusedDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onChange:u.func,showWeekNumbers:u.bool,smoothScroll:u.bool,take:u.number,value:u.instanceOf(Date),viewHeight:u.number,viewOffset:u.number},t.defaultProps={take:5,showWeekNumbers:!1,smoothScroll:!0},t}(l.Component);Object(p.registerForIntl)(Je);var et=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tt=function(){return(tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},nt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},rt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){var n=t.props,r=n.onClick,o=n.value;r&&r.call(void 0,o,e)},t}return et(t,e),t.prototype.render=function(){var e=this.props,t=e.isRangeStart,n=(e.value,e.text,nt(e,["isRangeStart","value","text"]));return l.createElement("li",tt({},n,{onClick:this.handleClick}),l.createElement("span",{className:Object(c.classNames)({"k-calendar-navigation-marker":t})},this.props.children))},t}(l.Component),ot=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),it=function(){return(it=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},at=function(e){function t(t){var n=e.call(this,t)||this;n.topOffset=0,n.handleVirtualizationMount=function(e){if(n.virtualization=e,n.virtualization&&n.list){n.list.style.transform="translateY("+n.topOffset+"px)";var t=te(n.props.focusedDate,n.props.min,n.props.max),r=n.props.service.skip(t,n.props.min);n.virtualization.scrollToIndex(r)}},n.buildNavigationItem=function(e){var t=n.props.service.navigationTitle(e),r=n.props.service.isRangeStart(e),o="kendo-react-calendar-nav-item-"+e.getTime(),i={text:t,value:e,isRangeStart:r,view:n.props.activeView,onClick:n.handleDateChange};return n.props.navigationItem?l.createElement(n.props.navigationItem,it({},i,{key:o}),t):l.createElement(rt,it({},i,{key:o}),t)},n.calculateHeights=function(){var e=n.props.dom.calendarHeight;n.itemHeight=n.props.dom.navigationItemHeight||1,n.maxViewHeight=n.props.dom.monthViewHeight,n.topOffset=(e-n.itemHeight)/2,n.bottomOffset=e-n.itemHeight},n.handleDateChange=function(e,t){var r=n.props.onChange;if(r){var o={value:Object(d.cloneDate)(e),target:n,nativeEvent:t&&t.nativeEvent,syntheticEvent:t};r.call(void 0,o)}},n.handleScrollAction=function(e){var t=e.scrollAction,r=e.pageAction,o=r?r.skip:n.state.skip;if(n.state.skip!==o&&n.setState({skip:o}),n.list&&t){var i="translateY("+t.offset+"px)";n.list.style.transform=i}},n.lastView=n.props.activeView,n.lastFocus=n.props.focusedDate;var r=n.props.service.skip(n.props.focusedDate,n.props.min),o=n.props.service.total(n.props.min,n.props.max);return n.state={skip:r-n.getTake(r,o)>0?r:0},n}return ot(t,e),Object.defineProperty(t.prototype,"take",{get:function(){return void 0!==this.props.take?this.props.take:t.defaultProps.take},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){void 0!==this.indexToScroll&&this.virtualization&&this.virtualization.scrollToIndex(this.indexToScroll),this.lastView=this.props.activeView,this.lastFocus=this.props.focusedDate,this.indexToScroll=void 0},t.prototype.render=function(){var e=this;this.calculateHeights();var t=this.lastView!==this.props.activeView,n=te(this.props.focusedDate,this.props.min,this.props.max),r=t?this.props.service.skip(n,this.props.min):this.state.skip,o=this.props.service.total(this.props.min,this.props.max),i=this.getTake(r,o),a=this.props.service.addToDate(this.props.min,r),s=this.props.service.datesList(a,i);this.props.activeView===this.lastView&&Object(d.isEqual)(n,this.lastFocus)||(this.indexToScroll=this.props.service.skip(n,this.props.min));var u=l.createElement(S,{skip:r,take:this.take,total:o,itemHeight:this.itemHeight,topOffset:this.topOffset,bottomOffset:this.bottomOffset,onScroll:this.props.onScroll,maxScrollDifference:this.maxViewHeight,onScrollAction:this.handleScrollAction,onMount:this.handleVirtualizationMount},l.createElement("ul",{ref:function(t){e.list=t},className:"k-reset"},s.map((function(t){return e.buildNavigationItem(t)}))));return l.createElement("div",{className:"k-calendar-navigation"},l.createElement("span",{className:"k-calendar-navigation-highlight"}),this.props.dom.didCalculate?u:null)},t.prototype.getTake=function(e,t){return Math.min(t-e,this.take)},t.propTypes={activeView:u.number.isRequired,focusedDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onChange:u.func,take:u.number},t.defaultProps={take:30},t}(l.Component),st=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lt=function(){return(lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ut=function(e){return e?e.virtualization:null},ct=function(e,t,n,r){return void 0===e&&(e=dt.defaultProps.min),void 0===t&&(t=dt.defaultProps.max),void 0!==r?null!==r&&Z(Object(d.getDate)(r),e,t)?r:null:null!==n&&Z(Object(d.getDate)(n),e,t)?n:null},dt=function(e){function t(n){var r=e.call(this,n)||this;r.cellUID=Object(c.guid)(),r.id=Object(c.guid)(),r.isActive=!1,r.didNavigationChange=!1,r.focus=function(){r._element&&r._element.focus()},r.shouldScroll=function(){return r.didNavigationChange},r.handleScroll=function(e){r.scrollSyncService&&r.scrollSyncService.sync(ut(r.Navigation),ut(r.calendarViewList),e)},r.handleNavigationChange=function(e){if(!r.props.disabled){r.didNavigationChange=!0;var t=Object(d.cloneDate)(e.value);r.setState({focusedDate:t})}},r.handleViewChange=function(e){var t=e.view;r.scrollSyncService.configure(t),r.setState({activeView:t})},r.handleDateChange=function(e){var t=Object(d.cloneDate)(e.value),n=Object(d.cloneDate)(e.value),o=r.bus.canMoveDown(r.state.activeView);if(!r.props.disabled){if(o){if(!e.isTodayClick)return r.bus.moveDown(r.state.activeView,e.syntheticEvent),void r.setState({focusedDate:n});r.bus.moveToBottom(r.state.activeView)}r.setState({value:t,focusedDate:n}),r.valueDuringOnChange=t;var i=r.props.onChange;if(i){var a={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:t,target:r};i.call(void 0,a)}r.valueDuringOnChange=void 0}},r.handleFocus=function(e){if(r.isActive=!0,r.calendarViewList){r.calendarViewList.focusActiveDate();var t=r.props.onFocus;t&&t.call(void 0,e)}},r.handleBlur=function(e){if(r.isActive=!1,r.calendarViewList){r.calendarViewList.blurActiveDate();var t=r.props.onBlur;t&&t.call(void 0,e)}},r.handleKeyDown=function(e){if(e.keyCode===c.Keys.enter){if(null!==r.value&&Object(d.isEqualDate)(r.focusedDate,r.value)){var t=te(r.focusedDate,r.min,r.max);ut(r.calendarViewList).scrollToIndex(r.service.skip(t,r.min))}var n={syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.focusedDate,target:r};r.handleDateChange.call(void 0,n)}else{var o=te(r.navigation.move(r.focusedDate,r.navigation.action(e),r.state.activeView,r.service,e),r.min,r.max);if(Object(d.isEqualDate)(r.focusedDate,o))return;r.setState({focusedDate:o})}e.preventDefault()},r.handleMouseDown=function(e){e.preventDefault()},r.handleClick=function(e){r._element&&r._element.focus({preventScroll:!0})},Object(c.validatePackage)(f);var o=ct(r.min,r.max,r.props.defaultValue||t.defaultProps.defaultValue,r.props.value);return r.state={value:o,activeView:z(C[n.defaultActiveView],r.bottomView,r.topView),focusedDate:te(n.focusedDate||o||G(),r.min,r.max)},r.dom=new ge,r.bus=new ve(r.handleViewChange),r.navigation=new be(r.bus),r.oldValue=o,r}return st(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return Object(d.getDate)(void 0!==this.props.min?this.props.min:t.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return Object(d.getDate)(void 0!==this.props.max?this.props.max:t.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomView",{get:function(){return C[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topView",{get:function(){return C[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;Promise.resolve().then((function(){e._element&&(e.dom.calculateHeights(e._element),e.scrollSyncService=new ke(e.dom),e.scrollSyncService.configure(e.state.activeView),e.forceUpdate())}))},t.prototype.componentDidUpdate=function(e,t){t.activeView!==this.state.activeView&&this.scrollSyncService.configure(this.state.activeView),this.calendarViewList&&(this.isActive?this.calendarViewList.focusActiveDate:this.calendarViewList.blurActiveDate)(),this.didNavigationChange=!1,this.oldValue=this.value},t.prototype.render=function(){var e=this;this.props._ref&&this.props._ref(this);var n=null!==this.value&&null!==this.oldValue?!Object(d.isEqualDate)(this.value,this.oldValue):this.value!==this.oldValue,r=z(this.state.activeView,C[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView],C[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]),o=ct(this.min,this.max,this.value,this.value),i=o?Object(d.getDate)(o):null;this.focusedDate=Object(d.getDate)(te(n&&null!==o?o:this.state.focusedDate,this.min,this.max)),this.intl=Object(p.provideIntlService)(this),this.bus.configure(this.bottomView,this.topView),this.service=this.bus.service(r,this.intl);var a=Object(c.classNames)("k-widget k-calendar k-calendar-infinite",{"k-state-disabled":this.props.disabled,"k-week-number":this.props.weekNumber},this.props.className),s={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},u=[this.props.navigation&&l.createElement(at,{key:0,ref:function(t){e.Navigation=t},activeView:this.state.activeView,focusedDate:this.focusedDate,min:this.min,max:this.max,onScroll:this.handleScroll,onChange:this.handleNavigationChange,service:this.service,dom:this.dom,navigationItem:this.props.navigationItem}),l.createElement(Je,{key:1,ref:function(t){e.calendarViewList=t},activeView:this.state.activeView,focusedDate:this.focusedDate,min:this.min,max:this.max,bus:this.bus,shouldScroll:this.shouldScroll,onScroll:this.handleScroll,service:this.service,cell:this.props.cell,weekCell:this.props.weekCell,dom:this.dom,smoothScroll:this.props.smoothScroll,showWeekNumbers:this.props.weekNumber,onChange:this.handleDateChange,value:i,cellUID:this.cellUID,headerTitle:this.props.headerTitle})];return l.createElement("div",lt({},s,{ref:function(t){e._element=t},className:a,id:this.props.id||this.id,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,role:"grid",tabIndex:this.props.disabled?void 0:this.props.tabIndex||0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onClick:this.handleClick}),u)},t.displayName="Calendar",t.propTypes={className:u.string,defaultActiveView:u.oneOf(["month","year","decade","century"]),defaultValue:u.instanceOf(Date),disabled:u.bool,focusedDate:u.instanceOf(Date),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,max:u.instanceOf(Date),min:u.instanceOf(Date),navigation:u.bool,smoothScroll:u.bool,onBlur:u.func,onChange:u.func,onFocus:u.func,tabIndex:u.number,value:u.instanceOf(Date),weekNumber:u.bool,topView:function(e,t,n){var r=e[t],o=e.bottomView;return r&&o&&C[r]<C[o]?new Error("Invalid prop + "+t+" suplied to "+n+".\n "+t+" can not be smaller than bottomView.\n "):null},bottomView:function(e,t,n){var r=e[t],o=e.topView;return r&&o&&C[r]>C[o]?new Error("Invalid prop + "+t+" suplied to "+n+".\n "+t+" can not be bigger than topView.\n "):null}},t.defaultProps={disabled:!1,min:Me,max:Re,navigation:!0,defaultActiveView:"month",defaultValue:null,smoothScroll:!0,topView:"century",bottomView:"month"},t}(l.Component),pt=Object(c.createPropsContext)(),ft=Object(c.withPropsContext)(pt,dt);ft.displayName="KendoReactCalendar",Object(p.registerForIntl)(dt);var ht=function(){this.symbols=""},mt=function(e,t){return e[t.pattern[0]]=t.type,e},vt=["k-widget","k-dateinput"],gt=function(){function e(e,t,n){this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.leadingZero=null,this.typedMonthPart="",this.knownParts="adHhmMsEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",y:"y"},this._value=Object(d.getDate)(new Date),this.intlProvider=e,this.formatPlaceholder=t,this.format=n,this.monthNames=this.allFormatedMonths()}return Object.defineProperty(e.prototype,"intl",{get:function(){return this.intlProvider()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e.prototype.setValue=function(e){e?Object(d.isEqual)(e,this._value)||(this._value=Object(d.cloneDate)(e),this.modifyExisting(!0)):(this._value=Object(d.getDate)(new Date),this.modifyExisting(!1))},e.prototype.hasValue=function(){var e=this;return this.intl.splitDateFormat(this.format).reduce((function(t,n){return t||"literal"!==n.type&&"dayperiod"!==n.type&&e.getExisting(n.pattern[0])}),!1)},e.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return Object(d.cloneDate)(this.value)},e.prototype.getTextAndFormat=function(){return this.merge(this.intl.formatDate(this.value,this.format),this.dateFormatString(this.value,this.format))},e.prototype.modifyExisting=function(e){for(var t=this.dateFormatString(this.value,this.format).symbols,n=0;n<t.length;n++)this.setExisting(t[n],e)},e.prototype.getExisting=function(e){switch(e){case"y":return this.year;case"M":case"L":return this.month;case"d":return this.date;case"E":return this.date&&this.month&&this.year;case"h":case"H":return this.hours;case"m":return this.minutes;case"s":return this.seconds;default:return!0}},e.prototype.setExisting=function(e,t){switch(e){case"y":this.year=t,!1===t&&this._value.setFullYear(2e3);break;case"M":this.month=t,!1===t&&this._value.setMonth(0);break;case"d":this.date=t;break;case"h":case"H":this.hours=t;break;case"m":this.minutes=t;break;case"s":this.seconds=t;break;default:return}},e.prototype.modifyPart=function(e,t){var n=Object(d.cloneDate)(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=Object(d.addMonths)(this.value,t);break;case"d":case"E":n.setDate(n.getDate()+t);break;case"h":case"H":n.setHours(n.getHours()+t);break;case"m":n.setMinutes(n.getMinutes()+t);break;case"s":n.setSeconds(n.getSeconds()+t);break;case"a":n.setHours(n.getHours()+12*t)}this.setExisting(e,!0),this._value=n},e.prototype.parsePart=function(e,t){var n;if(this.resetLeadingZero(),!t)return this.setExisting(e,!1),{value:null};for(var r=this.intl.formatDate(this.value,this.format),o=this.dateFormatString(this.value,this.format),i=o.symbols,a=!1,s="",l="",u="",c=0;c<r.length;c++)i[c]===e?(l+=this.getExisting(e)?r[c]:"0",a=!0):a?u+=r[c]:s+=r[c];for(var p=null,f=this.matchMonth(t);l.length>0&&"0"===l.charAt(0);)l=l.slice(1);l.length>=4&&(l="");for(c=0;c<2;c++){var h=l+t,m=parseInt(h,10);if(!(p=this.intl.parseDate(s+h+u,this.format))&&!isNaN(m)&&!isNaN(parseInt(t,10))){if("M"===e&&!f){var v=m-1;v>-1&&v<12&&((p=Object(d.cloneDate)(this.value)).setMonth(v),p.getMonth()!==v&&(p=Object(d.lastDayOfMonth)(Object(d.addMonths)(p,-1))))}"y"===e&&(p=Object(d.createDate)(parseInt(h,10),this.month?this.value.getMonth():0,this.date?this.value.getDate():1,this.hours?this.value.getHours():0,this.minutes?this.value.getMinutes():0,this.seconds?this.value.getSeconds():0,this.milliseconds?this.value.getMilliseconds():0),this.date&&p.getDate()!==this.value.getDate()&&(p=Object(d.lastDayOfMonth)(Object(d.addMonths)(p,-1))))}if(p)return this._value=p,this.setExisting(e,!0),{value:this.value};l=""}return f&&(p=this.intl.parseDate(s+f+u,this.format))?(this._value=p,this.setExisting(e,!0),{value:this.value}):("0"===t&&(this.leadingZero=this.isAbbrMonth(o.partMap,e)?null:((n={})[e]=!0,n),this.setExisting(e,!1)),{value:null})},e.prototype.symbolMap=function(e){return this.intl.splitDateFormat(this.format).reduce(mt,{})[e]},e.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.leadingZero=null,e},e.prototype.isAbbrMonth=function(e,t){var n=this.partPattern(e,t);return"month"===n.type&&n.names},e.prototype.partPattern=function(e,t){return e.filter((function(e){return-1!==e.pattern.indexOf(t)}))[0]},e.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),0===this.monthNames.length)return"";for(;this.typedMonthPart.length>0;){for(var t=0;t<this.monthNames.length;t++)if(0===this.monthNames[t].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[t];var n=parseInt(this.typedMonthPart,10);if(n>=1&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""},e.prototype.allFormatedMonths=function(){for(var e=this.intl.splitDateFormat(this.format),t=0;t<e.length;t++)if("month"===e[t].type&&e[t].names)return this.intl.dateFormatNames(e[t].names);return[]},e.prototype.dateFormatString=function(e,t){for(var n=this.intl.splitDateFormat(t),r=[],o=[],i=0;i<n.length;i++)for(var a=this.intl.formatDate(e,{pattern:n[i].pattern}).length;a>0;)r.push(this.symbols[n[i].pattern[0]]||"_"),o.push(n[i]),a--;var s=new ht;return s.symbols=r.join(""),s.partMap=o,s},e.prototype.merge=function(e,t){for(var n="",r="",o=t.symbols,i=o.length-1;i>=0;i--)if(-1===this.knownParts.indexOf(o[i])||this.getExisting(o[i]))n=e[i]+n,r=o[i]+r;else{for(var a=o[i];i>=0&&a===o[i];)i--;for(i++,n=this.leadingZero&&this.leadingZero[a]?"0"+n:this.dateFieldName(t.partMap[i])+n;r.length<n.length;)r=o[i]+r}return{text:n,format:r}},e.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]?t[e.type]:"formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t}))},e}(),yt=n(6),bt="dayperiod",kt="hour",Ct="minute",Ot="second",wt=function(e){return function(t,n){var r=Object(d.cloneDate)(t);return r[e](n),r}},Et=[{type:kt,getter:function(e){return e.getHours()}},{type:Ct,getter:function(e){return e.getMinutes()}},{type:Ot,getter:function(e){return e.getSeconds()}},{type:"millisecond",getter:function(e){return e.getMilliseconds()}}],St=function(e){return function(t){return e.map(function(e){return function(t){return e[t.type]?(n=t.getter,function(e,t){return n(t)}):function(e){return function(t,n){return e(t)}}(t.getter);var n}}(function(e){return e.reduce((function(e,t){return e[t.type]=t.type,e}),{})}(t)))}}(Et),Dt=function(e){return function(t,n){return e.map((function(e){var r=Math.floor(t[e.type]);return r?function(e,t,n,r){return function(o){var i=e(o),a=e(n);return"hour"===r?i-(i-a)%t:o.getTime()<=n.getTime()&&0!==i&&i<=a?Math.ceil(i/t)*t:i-i%t}}(e.getter,r,n,e.type):e.getter}))}}(Et),xt=function(e){return function(t){var n=Object(d.cloneDate)(t);return n.setHours.apply(n,e.map((function(e){return e(n)}))),n}},It=wt("setHours"),Tt=wt("setMinutes"),_t=wt("setSeconds"),Pt=function(){return new Date},Nt=function(e,t,n){void 0===n&&(n=1);for(var r=[],o=e;o<t;o+=n)r.push(o);return r},Mt=function(e,t,n){return{candidateValue:Y(H,e),maxValue:Object(d.addDays)(Y(H,n),t.getHours()<n.getHours()?0:1),minValue:Y(H,t)}},Rt=function(e,t,n){if(!e||!t||!n)return!0;var r=Mt(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return i<=o&&o<=a},jt=function(e,t){if(null===e||null===t)return!1;var n=Y(H,e),r=Y(H,t);return n.getTime()<r.getHours()},Ft=function(e,t){if(null===e||null===t)return!1;var n=Y(H,e);return Y(H,t).getTime()<n.getHours()},At=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lt=function(){return(Lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Vt=function(e){function t(n){var r=e.call(this,n)||this;return r.kendoDate=null,r.paste=!1,r._element=null,r._wrapper=null,r._inputId=Object(c.guid)(),r.focus=function(){r._element&&r._element.focus()},r.setValidity=function(){r.element&&r.element.setCustomValidity&&r.element.setCustomValidity(r.validity.valid?"":r.props.validationMessage||t.defaultProps.validationMessage)},r.updateOnPaste=function(e){if(r.element&&r.kendoDate){var t=Object(p.provideIntlService)(r).parseDate(r.element.value,r.props.format)||r.value,n=r.value;r.kendoDate.setValue(t),r.triggerChange(e,n)}},r.spinnersMouseDown=function(e){e.preventDefault(),r.element&&document.activeElement!==r.element&&r.element.focus({preventScroll:!0})},r.handlePaste=function(){r.paste=!0},r.elementChange=function(e){if(r.element&&r.kendoDate){if(r.paste)return r.updateOnPaste(e),void(r.paste=!1);var t=r.kendoDate.getTextAndFormat(),n=t.text,o=t.format;r.currentFormat=o;var i=r.value,a=function(e,t,n,r){var o=e[r+e.length-n.length],i=e.substring(0,r+e.length-n.length),a=n.substring(0,r),s=[];if(i===a&&r>0)return s.push([t[r-1],a[r-1]]),s;if(0===i.indexOf(a)&&(0===a.length||t[a.length-1]!==t[a.length])){var l="";1===a.length&&s.push([t[0],a[0]]);for(var u=a.length;u<i.length;u++)t[u]!==l&&"_"!==t[u]&&(l=t[u],s.push([l,""]));return s}if(0===a.indexOf(i)||"_"===t[r-1]){var c=t[0];for(u=Math.max(0,i.length-1);u<t.length;u++)if("_"!==t[u]){c=t[u];break}return[[c,a[r-1]]]}return" "===a[a.length-1]||a[a.length-1]===o?[[t[r-1],"_"]]:[[t[r-1],a[r-1]]]}(n,r.currentFormat,r.element.value,r.selection.start),s=1===a.length&&"_"===a[0][1];if(!s)for(var l=0;l<a.length;l++)r.kendoDate.parsePart(a[l][0],a[l][1]);a.length&&"_"!==a[0][0]&&r.setSelection(r.selectionBySymbol(a[0][0])),s&&r.switchDateSegment(1),r.triggerChange(e,i)}},r.elementClick=function(e){r.setSelection(r.selectionByIndex(r.selection.start))},r.nativeWheel=function(e){e.preventDefault()},r.wheel=function(e){document.activeElement===r.element&&(e.nativeEvent.deltaY<0&&r.increasePart(e),e.nativeEvent.deltaY>0&&r.decreasePart(e))},r.increasePart=function(e){r.modifyDateSegmentValue(1,e)},r.decreasePart=function(e){r.modifyDateSegmentValue(-1,e)},r.elementKeyDown=function(e){if(!e.altKey){switch(e.keyCode){case 37:r.switchDateSegment(-1);break;case 38:r.modifyDateSegmentValue(1,e);break;case 39:r.switchDateSegment(1);break;case 40:r.modifyDateSegmentValue(-1,e);break;default:return}e.preventDefault()}},r.elementOnFocus=function(e){r.wrapper&&r.wrapper.classList.add("k-state-focused"),r.setState({focused:!0})},r.elementOnBlur=function(e){r.wrapper&&r.wrapper.classList.remove("k-state-focused"),r.setState({focused:!1})},Object(c.validatePackage)(f),r.state={focused:!1},r}return At(t,e),t.prototype.componentDidMount=function(){this.setValidity(),this.wrapper&&this.wrapper.addEventListener("wheel",this.nativeWheel,{passive:!1})},t.prototype.componentDidUpdate=function(e,t){this._lastSelectedSymbol&&t.focused===this.state.focused?this.setSelection(this.selectionBySymbol(this._lastSelectedSymbol)):this.selection.start===this.selection.end&&this.setSelection({start:0,end:this.currentFormat.length}),this.setValidity()},t.prototype.componentWillUnmount=function(){this.wrapper&&this.wrapper.removeEventListener("wheel",this.nativeWheel)},t.prototype.render=function(){var e=this;this.props._ref&&(this.props._ref.current=this);var n=Object(p.provideLocalizationService)(this),r=Lt({},t.defaultProps,this.props),o=r.min,i=r.max,a=r.name,s=r.label,u=r.id,d=this.text,f=d===this.props.placeholder?"":d,h=d===this.props.placeholder?d:void 0,m=u||this._inputId,v=!this.validityStyles||this.validity.valid,g={"aria-valuemin":null===o?void 0:o.getTime(),"aria-valuemax":null===i?void 0:i.getTime(),"aria-valuetext":f};null!==this.value&&(g["aria-valuenow"]=this.value.getTime());var y=vt.slice();this.props.className&&y.push(this.props.className);var b=l.createElement(c.AsyncFocusBlur,{onFocus:this.elementOnFocus,onBlur:this.elementOnBlur},(function(t){var r=t.onFocus,o=t.onBlur;return l.createElement("span",{style:s?void 0:{width:e.props.width},dir:e.props.dir,className:y.join(" "),onFocus:r,onBlur:o},l.createElement("span",{className:Object(c.classNames)("k-dateinput-wrap",{"k-state-disabled":e.props.disabled,"k-state-invalid":!v}),ref:function(t){e._wrapper=t}},l.createElement("input",Lt({role:"spinbutton",tabIndex:e.props.tabIndex,disabled:e.props.disabled,title:void 0!==e.props.title?e.props.title:d,type:"text",spellCheck:!1,autoComplete:"off",autoCorrect:"off",className:"k-input",id:m,"aria-labelledby":e.props.ariaLabelledBy,"aria-describedby":e.props.ariaDescribedBy,"aria-expanded":e.props.ariaExpanded,"aria-haspopup":e.props.ariaHasPopup,onWheel:e.wheel,onClick:e.elementClick,onInput:e.elementChange,onPaste:e.handlePaste,onKeyDown:e.elementKeyDown,onChange:c.noop,value:f,placeholder:h,name:a},g,{ref:function(t){return e._element=t}})),e.props.children,e.props.spinners&&l.createElement("span",{className:"k-select",onMouseDown:e.spinnersMouseDown},l.createElement("span",{className:"k-link k-link-increase","aria-label":n.toLanguageString(He,Ze[He]),title:n.toLanguageString(He,Ze[He]),onClick:e.increasePart},l.createElement("span",{className:"k-icon k-i-arrow-n"})),l.createElement("span",{className:"k-link k-link-decrease","aria-label":n.toLanguageString(Ue,Ze[Ue]),title:n.toLanguageString(Ue,Ze[Ue]),onClick:e.decreasePart},l.createElement("span",{className:"k-icon k-i-arrow-s"})))))}));return s?l.createElement(yt.FloatingLabel,{label:s,editorId:m,editorValue:d,editorValid:v,editorDisabled:this.props.disabled,children:b,style:{width:this.props.width}}):b},Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:this.kendoDate&&this.kendoDate.getDateObject()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){var e=Lt({},zt.defaultProps,this.props),n=e.formatPlaceholder,r=void 0===n?t.defaultProps.formatPlaceholder:n,o=e.format,i=void 0===o?t.defaultProps.format:o,a=e.value,s=e.defaultValue;null===this.kendoDate?(this.kendoDate=new gt(this.intl.bind(this),r,i),this.kendoDate.setValue(a||s||null)):(this.kendoDate.format=i,this.kendoDate.formatPlaceholder=r),void 0!==a&&this.value!==a&&this.kendoDate.setValue(a);var l=this.kendoDate.getTextAndFormat(),u=l.text,c=l.format;return this.currentFormat=c,null===e.placeholder||void 0===e.placeholder||this.state.focused||this.kendoDate.hasValue()?u:e.placeholder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e,t,n,r=(e=this.value,t=this.min,n=this.max,(null===e||!(t&&t>e||n&&n<e))&&Rt(this.value,this.props.minTime,this.props.maxTime)),o=void 0!==this.props.validationMessage,i=(!this.required||null!==this.value)&&r,a=void 0!==this.props.valid?this.props.valid:i;return{customError:o,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:a,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapper",{get:function(){return this._wrapper},enumerable:!0,configurable:!0}),t.prototype.intl=function(){return Object(p.provideIntlService)(this)},Object.defineProperty(t.prototype,"selection",{get:function(){var e={start:0,end:0};return null!==this.element&&void 0!==this.element.selectionStart&&(e={start:this.element.selectionStart,end:this.element.selectionEnd}),e},enumerable:!0,configurable:!0}),t.prototype.setSelection=function(e){var t=this;this._lastSelectedSymbol=this.currentFormat[e.start],window.requestAnimationFrame((function(){t.element&&document.activeElement===t.element&&t.element.setSelectionRange(e.start,e.end)}))},t.prototype.triggerChange=function(e,t){this.valueDuringOnChange=this.value,this.forceUpdate(),this.props.onChange&&!Object(d.isEqual)(t,this.value)&&this.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:this.value,target:this}),this.valueDuringOnChange=void 0},t.prototype.selectionBySymbol=function(e){for(var t=-1,n=0,r=0;r<this.currentFormat.length;r++)this.currentFormat[r]===e&&(n=r+1,-1===t&&(t=r));return t<0&&(t=0),{start:t,end:n}},t.prototype.selectionByIndex=function(e){for(var t={start:e,end:e},n=e,r=e-1;n<this.currentFormat.length||r>=0;n++,r--){if(n<this.currentFormat.length&&"_"!==this.currentFormat[n]){t=this.selectionBySymbol(this.currentFormat[n]);break}if(r>=0&&"_"!==this.currentFormat[r]){t=this.selectionBySymbol(this.currentFormat[r]);break}}return t},t.prototype.switchDateSegment=function(e){var t=this.selection,n=t.start,r=t.end;if(n<r&&this.currentFormat[n]!==this.currentFormat[r-1])this.setSelection(this.selectionByIndex(e>0?n:r-1));else{for(var o=this.currentFormat[n],i=n+e;i>0&&i<this.currentFormat.length&&(this.currentFormat[i]===o||"_"===this.currentFormat[i]);)i+=e;if("_"!==this.currentFormat[i]){for(var a=i;a>=0&&a<this.currentFormat.length&&this.currentFormat[a]===this.currentFormat[i];)a+=e;i>a&&(a+1!==n||i+1!==r)?this.setSelection({start:a+1,end:i+1}):i<a&&(i!==n||a!==r)&&this.setSelection({start:i,end:a})}}},t.prototype.modifyDateSegmentValue=function(e,t){if(this.kendoDate){var n=this.value,r=this.currentFormat[this.selection.start],o=this.kendoDate.symbolMap(r),i=((this.props.steps||{})[o]||1)*e;this.kendoDate.modifyPart(r,i),this.triggerChange(t,n)}},t.displayName="DateInput",t.propTypes={value:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),width:u.oneOfType([u.string,u.number]),tabIndex:u.number,title:u.string,steps:u.shape({year:u.number,month:u.number,day:u.number,hour:u.number,minute:u.number,second:u.number}),min:u.instanceOf(Date),max:u.instanceOf(Date),disabled:u.bool,spinners:u.bool,name:u.string,dir:u.string,label:u.string,id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,ariaExpanded:u.oneOfType([u.bool]),onChange:u.func,validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool},t.defaultProps={format:"d",formatPlaceholder:"wide",spinners:!1,disabled:!1,max:Object(d.cloneDate)(K),min:Object(d.cloneDate)(U),minTime:Object(d.cloneDate)(je),maxTime:Object(d.cloneDate)(Fe),required:!1,validityStyles:!0,validationMessage:"Please enter a valid value!",placeholder:null},t}(l.Component),Bt=Object(c.createPropsContext)(),zt=Object(c.withPropsContext)(Bt,Vt);zt.displayName="KendoReactDateInput",Object(p.registerForIntl)(Vt),Object(p.registerForLocalization)(Vt);var Ht=n(9),Ut=l.forwardRef((function(e,t){var n=Object(c.classNames)("k-select",e.className);return l.createElement("a",{ref:t,id:e.id,role:"button",style:e.style,className:n,tabIndex:e.tabIndex,title:e.title,"aria-label":e.title,onMouseDown:e.onMouseDown,onClick:e.onClick,onMouseUp:e.onMouseUp},e.children)})),Kt=l.forwardRef((function(e,t){var n=e._ref,r=l.useRef(null);l.useImperativeHandle(t,(function(){return r.current})),l.useImperativeHandle(n,(function(){return r.current}));var o=l.useMemo((function(){return Object(c.classNames)(e.className,"k-picker-wrap")}),[e.className]);return l.createElement("span",{ref:r,id:e.id,style:e.style,className:o,tabIndex:e.tabIndex},e.children)})),Wt=function(){return(Wt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},qt=function(e){var t,n,r,o,i=(t=e.dateInput,n=l.useState(!1),r=n[0],o=n[1],l.useEffect((function(){t.current&&o(Boolean(t.current.text))})),{editorValue:r});return l.createElement(yt.FloatingLabel,Wt({},e,i))},Yt=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gt=function(){return(Gt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Zt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},Xt=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=Object(c.guid)(),r._element=null,r._wrapper=null,r._dateInput=l.createRef(),r._calendar=null,r.shouldFocusDateInput=!1,r.focus=function(){r.dateInput&&r.dateInput.focus()},r.setCalendarRef=function(e){r._calendar=e},r.nextValue=function(e,t){return void 0!==e.value?e.value:t.value},r.nextShow=function(e,t){return void 0!==e.show?e.show:t.show},r.handleInputValueChange=function(e){r.handleValueChange(e.value,e)},r.handleCalendarValueChange=function(e){var t=r.mergeTime(e.value);r.handleValueChange(t,e)},r.handleValueChange=function(e,t){r.setState({value:Object(d.cloneDate)(e||void 0),show:!1}),r.valueDuringOnChange=e,r.showDuringOnChange=!1,r.shouldFocusDateInput=!0;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:r.value,show:r.show,target:r}),r.valueDuringOnChange=void 0,r.showDuringOnChange=void 0},r.handleFocus=function(){r.setState({focused:!0})},r.handleBlur=function(){r.setState({focused:!1}),r.setShow(!1)},r.handleIconClick=function(){r.props.disabled||(r.shouldFocusDateInput=!0,r.setShow(!r.show))},r.handleIconMouseDown=function(e){e.preventDefault()},r.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===c.Keys.esc)return r.shouldFocusDateInput=!0,void r.setShow(!1);!t||n!==c.Keys.up&&n!==c.Keys.down||(e.preventDefault(),e.stopPropagation(),r.shouldFocusDateInput=n===c.Keys.up,r.setShow(n===c.Keys.down))},Object(c.validatePackage)(f),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r}return Yt(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?Object(d.cloneDate)(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInputComp",{get:function(){return this.props.dateInput||t.defaultProps.dateInput},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"toggleButtonComp",{get:function(){return this.props.toggleButton||t.defaultProps.toggleButton},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calendarComp",{get:function(){return this.props.calendar||t.defaultProps.calendar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"popupComp",{get:function(){return this.props.popup||t.defaultProps.popup},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pickerWrapComp",{get:function(){return this.props.pickerWrap||t.defaultProps.pickerWrap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=X(this.value,this.min,this.max),t=void 0!==this.props.validationMessage,n=(!this.required||null!==this.value)&&e,r=void 0!==this.props.valid?this.props.valid:n;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:r,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){this._calendar&&this._calendar.element&&this.show&&!this.prevShow&&this._calendar.element.focus({preventScroll:!0}),this.dateInput&&this.dateInput.element&&!this.show&&this.shouldFocusDateInput&&this.dateInput.element.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.tabIndex,o=t.title,i=t.id,a=t.format,s=t.formatPlaceholder,u=t.min,f=t.max,h=t.weekNumber,m=t.focusedDate,v=t.className,g=t.width,y=t.name,b=t.validationMessage,k=t.required,C=t.validityStyles,O=t.ariaLabelledBy,w=t.ariaDescribedBy,E=this.props.popupSettings,S=E.popupClass,D=Zt(E,["popupClass"]),x=this.show,I=this.value,T=I&&Object(d.getDate)(I),_=!this.validityStyles||this.validity.valid,P=Object(c.classNames)("k-widget k-datepicker",v),N=Object(c.classNames)("k-picker-wrap",{"k-state-invalid":!_,"k-state-disabled":n,"k-state-focused":this.state.focused}),M=Object(c.classNames)("k-calendar-container k-group k-reset",S),R={disabled:n,format:a,formatPlaceholder:s,id:i,ariaLabelledBy:O,ariaDescribedBy:w,max:f,min:u,name:y,onChange:this.handleInputValueChange,required:k,tabIndex:x?-1:r,title:o,valid:this.validity.valid,validationMessage:b,validityStyles:C,value:I,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show},j=Gt({show:x,anchor:this._wrapper||this._element,className:M,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},D),F={disabled:n,value:T,min:u,max:f,weekNumber:h,focusedDate:m,onChange:this.handleCalendarValueChange},A=l.createElement(c.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},(function(t){var n=t.onFocus,r=t.onBlur;return l.createElement("span",{role:"group","aria-expanded":e.show,ref:function(t){e._element=t},className:P,onKeyDown:e.handleKeyDown,style:{width:g},onFocus:n,onBlur:r},l.createElement(e.pickerWrapComp,{_ref:function(t){e._wrapper=t},className:N},l.createElement(e.dateInputComp,Gt({_ref:e._dateInput},R)),l.createElement(e.toggleButtonComp,{onMouseDown:e.handleIconMouseDown,onClick:e.handleIconClick,title:Object(p.provideLocalizationService)(e).toLanguageString("datepicker.toggleCalendar",Ze["datepicker.toggleCalendar"]),className:"k-select"},l.createElement("span",{className:"k-icon k-i-calendar"}))),l.createElement(e.popupComp,Gt({},j),l.createElement(e.calendarComp,Gt({_ref:e.setCalendarRef},F))))}));return this.props.label?l.createElement(qt,{dateInput:this._dateInput,label:this.props.label,editorId:i,editorValid:_,editorDisabled:this.props.disabled,children:A,style:{width:this.props.width}}):A},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.prototype.mergeTime=function(e){return this.value&&e?Y(e,this.value):e},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.displayName="DatePicker",t.propTypes={className:u.string,defaultShow:u.bool,defaultValue:u.instanceOf(Date),disabled:u.bool,focusedDate:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,min:u.instanceOf(Date),max:u.instanceOf(Date),name:u.string,popupSettings:u.shape({animate:u.bool,appendTo:u.any,popupClass:u.string}),show:u.bool,tabIndex:u.number,title:u.string,value:u.instanceOf(Date),weekNumber:u.bool,width:u.oneOfType([u.number,u.string]),validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool},t.defaultProps={defaultShow:!1,defaultValue:null,dateInput:zt,calendar:ft,toggleButton:Ut,popup:Ht.a,pickerWrap:Kt,disabled:!1,format:"d",max:K,min:U,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0},t}(l.Component),Qt=Object(c.createPropsContext)(),$t=Object(c.withPropsContext)(Qt,Xt);$t.displayName="KendoReactDatePicker",Object(p.registerForLocalization)(Xt);var Jt,en,tn,nn=function(e,t){var n=Object(d.cloneDate)(e);return n.setHours(t),n},rn=function(e){return null!==e&&e<12},on=function(e,t,n){return!t&&!n||e>=t&&e<=n},an=function(e,t,n){return!t&&!n||e>=t||e<=n},sn=function(){function e(e){this.intl=e}return e.prototype.apply=function(e,t){var n=e.getHours(),r=rn(n),o=rn(t.getHours());if(r&&o||!r&&!o)return e;var i=this.normalizedRange(),a=i[0],s=i[1],l=void 0===s?24:s,u=n+(o?-12:12);return nn(e,Math.min(Math.max(a,u),l||24))},e.prototype.configure=function(e){var t=e.min,n=void 0===t?this.min:t,r=e.max,o=void 0===r?this.max:r,i=e.part,a=void 0===i?this.part:i;this.min=n,this.max=o,this.part=a},e.prototype.data=function(e){var t=this.part.names;if(!t)return[];var n,r=[],o=this.normalizedRange(),i=o[0],a=o[1],s=this.intl.dateFormatNames(t);return rn(i)&&r.push({text:s.am,value:nn(this.min,i)}),null!==(n=a)&&(!n||n>11)&&r.push({text:s.pm,value:nn(this.min,Math.max(12,a))}),this.min.getHours()!==i?r.reverse():r},e.prototype.isRangeChanged=function(e,t){return!1},e.prototype.limitRange=function(e,t,n){return[e,t]},e.prototype.total=function(){var e=this.normalizedRange(),t=e[0],n=e[1];return(t||n)&&(t>11||n<12)?1:2},e.prototype.selectedIndex=function(e){if(!this.valueInList(e))return-1;var t=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?t:0===t?1:0},e.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?an:on)(e.getHours(),this.min.getHours(),this.max.getHours())},e.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]},e}(),ln=function(){function e(){this.didCalculate=!1}return e.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){if(c.canUseDOM){var t=ne("div"),n=ne("ul"),r=ne("li"),o=t([t([t([n([r("<span>02</span>","k-item")],"k-reset")],"k-time-container k-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}),i=e&&e.querySelector(".k-time-container")||document.body,a=i.appendChild(o);this.timeListHeight=a.querySelector(".k-scrollable").offsetHeight,this.itemHeight=a.querySelector("li").offsetHeight,i.removeChild(a),this.didCalculate=!0}},e}(),un=(Jt=24,function(e){return e%Jt}),cn=function(e,t){return un(24+e-t)},dn=function(e){return function(t,n){return!n||Object(d.getDate)(t).getTime()===Object(d.getDate)(n).getTime()?t:It(t,e)}},pn=dn(0),fn=dn(23),hn=function(){function e(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return It(e,t.getHours())},e.prototype.configure=function(e){var t=this,n=e.boundRange,r=void 0===n?this.boundRange:n,o=e.insertUndividedMax,i=void 0===o?this.insertUndividedMax:o,a=e.min,s=void 0===a?this.min:a,l=e.max,u=void 0===l?this.max:l,c=e.part,d=e.step,p=void 0===d?this.step:d;this.boundRange=r,this.insertUndividedMax=i,this.toListItem=function(e){var n=It(H,e);return{text:t.intl.formatDate(n,c.pattern),value:n}},this.min=s,this.max=u,this.step=p},e.prototype.data=function(e){var t,n,r=this,o=this.range(e)[0],i=(t=o,n=this.step,function(e){return un(t+e*n)}),a=Nt(0,this.countFromMin(e)).map((function(e){return r.toListItem(i(e))}));return this.addLast(a),e&&this.addMissing(a,e),a},e.prototype.isRangeChanged=function(e,t){return!Object(d.isEqual)(this.min,e)||!Object(d.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return this.boundRange?[pn(e,n),fn(t,n)]:[e,t]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e))},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getHours());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],r=t[1];return Math.floor(cn(r,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(It(this.max,this.lastHour(e)))},e.prototype.divideByStep=function(e){return cn(e.getHours(),this.min.getHours())/this.step},e.prototype.lastHour=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],r=t[1];return[n.getHours(),r.getHours()]},e}(),mn=function(e){return function(t){return t%e}}(60),vn=function(e,t){return mn(60+e-t)},gn=function(e){return function(t,n){return!n||t.getHours()===n.getHours()?t:Tt(t,e)}},yn=gn(0),bn=gn(59),kn=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return Tt(e,t.getMinutes())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,r=void 0===n?this.insertUndividedMax:n,o=e.min,i=void 0===o?this.min:o,a=e.max,s=void 0===a?this.max:a,l=e.part,u=e.step,c=void 0===u?this.step:u;this.insertUndividedMax=r,this.toListItem=function(e){var n=Tt(H,e);return{text:t.intl.formatDate(n,l.pattern),value:n}},this.min=i,this.max=s,this.step=c},e.prototype.data=function(e){var t,n,r=this,o=this.range(e)[0],i=(t=o,n=this.step,function(e){return mn(t+e*n)}),a=Nt(0,this.countFromMin(e)).map((function(e){return r.toListItem(i(e))}));return this.addLast(a),e&&this.addMissing(a,e),a},e.prototype.isRangeChanged=function(e,t){return!Object(d.isEqual)(this.min,e)||!Object(d.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return[yn(e,n),bn(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e))},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getMinutes());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],r=t[1];return Math.floor(vn(r,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(Tt(this.max,this.lastMinute(e)))},e.prototype.divideByStep=function(e){return vn(e.getMinutes(),this.min.getMinutes())/this.step},e.prototype.lastMinute=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],r=t[1];return[n.getMinutes(),r.getMinutes()]},e}(),Cn=function(e){return function(t){return t%e}}(60),On=function(e,t){return Cn(60+e-t)},wn=function(e){return function(t,n){return!n||t.getMinutes()===n.getMinutes()&&t.getHours()===n.getHours()?t:_t(t,e)}},En=wn(0),Sn=wn(59),Dn=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return _t(e,t.getSeconds())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,r=void 0===n?this.insertUndividedMax:n,o=e.min,i=void 0===o?this.min:o,a=e.max,s=void 0===a?this.max:a,l=e.part,u=e.step,c=void 0===u?this.step:u;this.insertUndividedMax=r,this.toListItem=function(e){var n=_t(H,e);return{text:t.intl.formatDate(n,l.pattern),value:n}},this.min=i,this.max=s,this.step=c},e.prototype.data=function(e){var t,n,r=this,o=this.range(e)[0],i=(t=o,n=this.step,function(e){return Cn(t+e*n)}),a=Nt(0,this.countFromMin(e)).map((function(e){return r.toListItem(i(e))}));return this.addLast(a),e&&this.addMissing(a,e),a},e.prototype.isRangeChanged=function(e,t){return!Object(d.isEqual)(this.min,e)||!Object(d.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return[En(e,n),Sn(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e))},e.prototype.divideByStep=function(e){return On(e.getSeconds(),this.min.getSeconds())/this.step},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getSeconds());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],r=t[1];return Math.floor(On(r,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(_t(this.max,this.lastSecond(e)))},e.prototype.lastSecond=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],r=t[1];return[n.getSeconds(),r.getSeconds()]},e}(),xn=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),In=((en={})[c.Keys.end]=function(e,t){return e[e.length-1]},en[c.Keys.home]=function(e,t){return e[0]},en[c.Keys.up]=function(e,t){return e[t-1]},en[c.Keys.down]=function(e,t){return e[t+1]},en),Tn=((tn={})[bt]=sn,tn[kt]=hn,tn[Ct]=kn,tn[Ot]=Dn,tn),_n=function(e){function t(n){var r=e.call(this,n)||this;return r.animateToIndex=!1,r.focus=function(e){Promise.resolve().then((function(){r.element&&r.element.focus(e)}))},r.itemOffset=function(e){if(!r.virtualization)return-1;var t=r.service.selectedIndex(r.props.value),n=r.virtualization.activeIndex(),o=r.virtualization.itemOffset(n),i=Math.abs(Math.ceil(e)-o);if(t===n&&i<2)return o;var a=t>n;return a&&i>=r.bottomThreshold||!a&&i>r.topThreshold?r.virtualization.itemOffset(n+1):o},r.calculateHeights=function(){r.dom.didCalculate&&(r.itemHeight=r.dom.itemHeight,r.listHeight=r.dom.timeListHeight,r.topOffset=(r.listHeight-r.itemHeight)/2,r.bottomOffset=r.listHeight-r.itemHeight,r.topThreshold=.05*r.itemHeight,r.bottomThreshold=.95*r.itemHeight)},r.configureServices=function(e){var t=void 0===e?r.props:e,n=t.min,o=t.max,i=t.value,a=r.service.limitRange(n||r.min,o||r.max,i||r.props.value),s=a[0],l=a[1];r.service.configure(r.serviceSettings({min:s,max:l}))},r.serviceSettings=function(e){var n={boundRange:r.props.boundRange||t.defaultProps.boundRange,insertUndividedMax:!1,min:Object(d.cloneDate)(r.min),max:Object(d.cloneDate)(r.max),part:r.props.part,step:r.step},o=Object.assign({},n,e);return o.boundRange="hour"!==o.part.type||r.props.boundRange||t.defaultProps.boundRange,o},r.handleScrollAction=function(e){var t=e.target,n=e.animationInProgress;if(r.virtualization&&t&&!n){r.animateToIndex=!1;var o=r.virtualization.itemIndex(r.itemOffset(t.scrollTop)),i=r.service.data(r.props.value)[o];r.handleChange(i)}},r.handleFocus=function(e){var t=r.props.onFocus;t&&t.call(void 0,e)},r.handleBlur=function(e){var t=r.props.onBlur;t&&t.call(void 0,e)},r.handleMouseOver=function(){r._element&&document&&document.activeElement!==r._element&&r.props.show&&r._element.focus({preventScroll:!0})},r.handleKeyDown=function(e){var t=e.keyCode;t!==c.Keys.down&&t!==c.Keys.up&&t!==c.Keys.end&&t!==c.Keys.home||e.preventDefault();var n=(In[e.keyCode]||c.noop)(r.service.data(r.props.value),r.service.selectedIndex(r.props.value));n&&r.handleChange(n)},r.handleChange=function(e){var t=r.service.apply(r.props.value,e.value);if(r.props.value.getTime()!==t.getTime()){r.setState({value:t});var n=r.props.onChange;n&&n.call(void 0,t)}},r.dom=new ln,r}return xn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.props.min||t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.props.max||t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"step",{get:function(){return void 0!==this.props.step&&0!==this.props.step?Math.floor(this.props.step):t.defaultProps.step},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;Promise.resolve().then((function(){e._element&&(e.dom.calculateHeights(e._element),e.forceUpdate())}))},t.prototype.componentDidUpdate=function(){if(this.virtualization){var e=this.service.selectedIndex(this.props.value);this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](e),this.animateToIndex=!0}},t.prototype.render=function(){var e=this;if(this.props.part.type&&Tn[this.props.part.type]){this.calculateHeights(),this.intl=Object(p.provideIntlService)(this),this.service=new Tn[this.props.part.type](this.intl),this.configureServices();var t=this.service.data(this.props.value),n="translateY("+this.topOffset+"px)",r=this.service.total(this.props.value),o=l.createElement("ul",{style:{transform:n,msTransform:n},className:"k-reset"},t.map((function(t,n){return l.createElement("li",{key:n,className:"k-item",onClick:function(){e.handleChange(t)}},l.createElement("span",null,t.text))})));return l.createElement("div",{className:"k-time-list",id:String(this.props.id||""),tabIndex:this.props.disabled?-1:0,ref:function(t){e._element=t},onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseOver:this.handleMouseOver},this.dom.didCalculate?l.createElement(S,{bottomOffset:this.bottomOffset,children:o,className:"k-time-container",itemHeight:this.itemHeight,maxScrollDifference:this.listHeight,onScrollAction:this.handleScrollAction,ref:function(t){e.virtualization=t},role:"presentation",skip:0,tabIndex:-1,take:r,topOffset:this.topOffset,total:r}):l.createElement("div",{className:"k-time-container"},o))}},t.propTypes={id:u.number,max:u.instanceOf(Date),min:u.instanceOf(Date),part:function(e,t,n){var r=e[t];if(!r||!Tn[r.type])throw new Error("\n Invalid prop '"+t+"' supplied to "+n+".\n Supported part types are hour|minute|second|dayperiod.\n ");return null},step:function(e,t,n){var r=e[t];if(void 0!==r&&r<=0)throw new Error("\n Invalid prop '"+t+"' supplied to "+n+".\n "+t+" cannot be less than 1.\n ");return null},value:u.instanceOf(Date),smoothScroll:u.bool,show:u.bool},t.defaultProps={boundRange:!1,max:q,min:H,step:1,smoothScroll:!0},t}(l.Component);Object(p.registerForIntl)(_n);var Pn,Nn=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mn=function(){return(Mn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Rn=new RegExp(kt+"|"+Ct+"|"+Ot+"|"+bt+"|literal");!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(Pn||(Pn={}));var jn=function(e){function t(n){var r=e.call(this,n)||this;return r.timeLists=[],r.focus=function(e){Promise.resolve().then((function(){var t=r.timeLists[0];-1===r.state.activeListIndex&&!r.hasActiveButton()&&t&&t.element&&t.focus(e)}))},r.timeFormatReducer=function(e,t){return e+t.pattern},r.timeFormatFilter=function(e,t,n){var r=t>=1&&n[t-1];return r&&r&&"literal"===e.type?Rn.test(r.type||""):Rn.test(e.type||"")},r.focusList=function(e){r.timeLists.length&&r.timeLists.reduce(r.listReducer,[]).map((function(t){return e===Pn.Right?t.next:t.prev})).map((function(e){return e&&e.element&&e.element.focus({preventScroll:!0})}))},r.listReducer=function(e,t,n,o){return e.length||t.props.id!==r.state.activeListIndex?e:[{next:o[n+1]||t,prev:o[n-1]||t}]},r.showNowButton=function(){return!r.hasSteps()&&r.props.nowButton&&Rt(Pt(),r.min,r.max)},r.handleKeyDown=function(e){switch(e.keyCode){case c.Keys.left:return e.preventDefault(),void r.focusList(Pn.Left);case c.Keys.right:return e.preventDefault(),void r.focusList(Pn.Right);default:return}},r.handleListBlur=function(){r.nextTick((function(){r.setState({activeListIndex:-1})}))},r.handleListFocus=function(e){clearTimeout(r.nextTickId),r.setState({activeListIndex:e})},r.handleChange=function(e){var t=r.props.onChange;t&&t.call(void 0,e)},r.snapTime=xt(Dt(r.props.steps,r.props.min||t.defaultProps.min)),r.state={activeListIndex:-1},r.hasActiveButton=r.hasActiveButton.bind(r),r}return Nn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return function(e,t,n){if(!e||!t||!n)return e;var r=Mt(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return o<i?Y(e,t):o>a?Y(e,n):e}(this.snapTime(Object(d.cloneDate)(this.props.value||H)),this.min,this.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"intl",{get:function(){return Object(p.provideIntlService)(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.snapTime(this.props.min||t.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.snapTime(this.props.max||t.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"steps",{get:function(){return this.props.steps||t.defaultProps.steps},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"boundRange",{get:function(){return void 0!==this.props.boundRange?this.props.boundRange:t.defaultProps.boundRange},enumerable:!0,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.componentDidMount=function(){var e=this.props.onMount;e&&e.call(void 0,this.value)},t.prototype.render=function(){var e=this,n=this.props,r=n.format,o=n.smoothScroll,i=n.onNowClick,a=n.className,s=n.disabled;this.snapTime=xt(Dt(this.steps,this.min)),this.dateFormatParts=this.intl.splitDateFormat(r||t.defaultProps.format).filter(this.timeFormatFilter);var u=Object(c.classNames)({"k-state-disabled":s},a,"k-time-part");this.timeLists=[];var d=Object(p.provideLocalizationService)(this),f=d.toLanguageString(Ye,Ze[Ye]);return l.createElement("div",{className:u},l.createElement("div",{className:"k-time-header"},l.createElement("span",{className:"k-title"},this.intl.formatDate(this.value,this.dateFormatParts.reduce(this.timeFormatReducer,""))),this.showNowButton()&&l.createElement(xe.Button,Mn({type:"button",ref:function(t){e._nowButton=t},className:"k-time-now",look:"flat",primary:!0,title:f},{"aria-label":f},{onClick:i,tabIndex:s?-1:0}),d.toLanguageString("timepicker.now",Ze["timepicker.now"]))),l.createElement("div",{className:"k-time-list-container",onKeyDown:this.handleKeyDown},l.createElement("span",{className:"k-time-highlight"}),this.dateFormatParts.map((function(t,n){return"literal"!==t.type?l.createElement("div",{key:n,className:Object(c.classNames)("k-time-list-wrapper",{"k-state-focused":n===e.state.activeListIndex}),role:"presentation",tabIndex:-1},l.createElement("span",{className:"k-title",onMouseDown:function(e){e.preventDefault()}},e.intl.dateFieldName(t)),l.createElement(_n,{min:e.min,max:e.max,boundRange:e.boundRange,part:t,step:t.type?e.steps[t.type]:1,smoothScroll:o,ref:function(t){t&&e.timeLists.push(t)},id:n,onFocus:function(){e.handleListFocus(n)},onBlur:e.handleListBlur,onChange:e.handleChange,value:e.value,disabled:s,show:e.props.show})):l.createElement("div",{key:n,className:"k-time-separator"},t.pattern)}))))},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.hasActiveButton=function(){return this._nowButton&&document.activeElement===this._nowButton.element},t.prototype.hasSteps=function(){var e=this,t=Object.keys(this.steps);return t.length!==t.reduce((function(t,n){return t+e.steps[n]}),0)},t.propTypes={cancelButton:u.bool,disabled:u.bool,format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),max:u.instanceOf(Date),min:u.instanceOf(Date),nowButton:u.bool,steps:u.shape({hour:u.number,minute:u.number,second:u.number}),smoothScroll:u.bool,tabIndex:u.number,value:u.instanceOf(Date),show:u.bool},t.defaultProps={value:null,disabled:!1,nowButton:!0,cancelButton:!0,format:"hh:mm a",min:W,max:q,steps:{},boundRange:!1},t}(l.Component);Object(p.registerForIntl)(jn),Object(p.registerForLocalization)(jn);var Fn,An=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ln=function(){return(Ln=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(Fn||(Fn={}));var Vn=function(e){function t(n){var r=e.call(this,n)||this;return r.focusActiveList=function(){r.timePart&&r.timePart.focus({preventScroll:!0})},r.handleKeyDown=function(e){switch(e.keyCode){case c.Keys.enter:return void(r.hasActiveButton()||r.handleAccept(e));default:return}},r.handleAccept=function(e){var t=r.mergeValue(Object(d.cloneDate)(r.value||Pt()),r.timePart?r.timePart.value:r.current);r.setState({value:t}),r.valueDuringOnChange=t;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.value,target:r}),r.valueDuringOnChange=void 0},r.handleReject=function(e){r.setState({current:r.value});var t=r.props.onReject;t&&t.call(void 0,e)},r.handleNowClick=function(e){var t=r.mergeValue(Object(d.cloneDate)(r.value||Pt()),Pt());r.setState({current:t,value:t}),r.valueDuringOnChange=t;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.value,target:r}),r.valueDuringOnChange=void 0},r.handleChange=function(e){r.setState({current:e})},r.dateFormatParts=r.intl.splitDateFormat(r.props.format||t.defaultProps.format),r.mergeValue=function(e){return function(t,n){return t.setHours.apply(t,e.map((function(e){return e(t,n)}))),t}}(St(r.dateFormatParts)),r.hasActiveButton=r.hasActiveButton.bind(r),r.state={current:r.props.value||H,value:r.props.value||t.defaultProps.value},r}return An(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?Object(d.cloneDate)(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"intl",{get:function(){return Object(p.provideIntlService)(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return null!==this.state.current?Object(d.cloneDate)(this.state.current):null},enumerable:!0,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,t=this.props,n=t.format,r=t.cancelButton,o=t.disabled,i=t.tabIndex,a=t.className,s=t.smoothScroll,u=t.min,d=t.max,f=t.boundRange,h=t.nowButton,m=t.steps,v=Object(p.provideLocalizationService)(this),g=v.toLanguageString("timepicker.cancel",Ze["timepicker.cancel"]),y=v.toLanguageString("timepicker.set",Ze["timepicker.set"]);return l.createElement("div",{ref:function(t){e._element=t},tabIndex:o?void 0:i||0,className:Object(c.classNames)("k-timeselector k-reset",a,{"k-state-disabled":o}),onKeyDown:this.handleKeyDown},l.createElement(jn,{ref:function(t){e.timePart=t},value:this.current,onChange:this.handleChange,onNowClick:this.handleNowClick,format:n,smoothScroll:s,min:u,max:d,boundRange:f,disabled:o,nowButton:h,steps:m,show:this.props.show}),l.createElement("div",{className:"k-time-footer k-actions k-hstack k-justify-content-stretch"},r&&l.createElement(xe.Button,Ln({type:"button",ref:function(t){e._cancelButton=t},className:"k-time-cancel",onClick:this.handleReject,title:g},{"aria-label":g}),g),l.createElement(xe.Button,Ln({type:"button",ref:function(t){e._acceptButton=t},className:"k-time-accept",primary:!0,onClick:this.handleAccept,title:y},{"aria-label":y}),y)))},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.hasActiveButton=function(){return!(!this._acceptButton||!this._acceptButton.element)&&(this._acceptButton&&document.activeElement===this._acceptButton.element||this._cancelButton&&document.activeElement===this._cancelButton.element)},t.propTypes={cancelButton:u.bool,className:u.string,disabled:u.bool,format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),max:u.instanceOf(Date),min:u.instanceOf(Date),nowButton:u.bool,steps:u.shape({hour:u.number,minute:u.number,second:u.number}),smoothScroll:u.bool,tabIndex:u.number,value:u.instanceOf(Date),show:u.bool},t.defaultProps={value:null,disabled:!1,cancelButton:!0,format:"t",min:W,max:q,boundRange:!1},t}(l.Component);Object(p.registerForIntl)(Vn),Object(p.registerForLocalization)(Vn);var Bn=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zn=function(){return(zn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Hn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},Un=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=Object(c.guid)(),r._element=null,r._wrapper=null,r._dateInput=l.createRef(),r._timeSelector=null,r.shouldFocusDateInput=!1,r.focus=function(){r.dateInput&&r.dateInput.focus()},r.setTimeSelectorRef=function(e){r._timeSelector=e},r.nextValue=function(e,t){return void 0!==e.value?e.value:t.value},r.nextShow=function(e,t){return void 0!==e.show?e.show:t.show},r.handleInputValueChange=function(e){var t=r.mergeTime(e.value);r.handleValueChange(zn({},e,{value:t}))},r.handleValueChange=function(e){r.setState({value:Object(d.cloneDate)(e.value),show:!1}),r.valueDuringOnChange=e.value,r.showDuringOnChange=!1,r.shouldFocusDateInput=!0;var t=r.props.onChange;t&&t.call(void 0,{syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:r.value,show:r.show,target:r}),r.valueDuringOnChange=void 0,r.showDuringOnChange=void 0},r.handleFocus=function(){r.setState({focused:!0})},r.handleBlur=function(){r.setState({focused:!1}),r.setShow(!1)},r.handleValueReject=function(e){r.setShow(!1)},r.handleIconClick=function(e){r.props.disabled||(r.shouldFocusDateInput=!0,r.setShow(!r.show))},r.handleIconMouseDown=function(e){e.preventDefault()},r.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===c.Keys.esc)return r.shouldFocusDateInput=!0,void r.setShow(!1);!t||n!==c.Keys.up&&n!==c.Keys.down||(e.preventDefault(),e.stopPropagation(),r.shouldFocusDateInput=n===c.Keys.up,r.setShow(n===c.Keys.down))},Object(c.validatePackage)(f),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r.normalizeTime=r.normalizeTime.bind(r),r.setShow=r.setShow.bind(r),r.nextTick=r.nextTick.bind(r),r.mergeTime=r.mergeTime.bind(r),r}return Bn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timeSelector",{get:function(){return this._timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?Object(d.cloneDate)(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=this.value&&this.normalizeTime(this.value),t=this.normalizeTime(this.min),n=this.normalizeTime(this.max),r=function(e,t,n){if(null===e)return!0;var r=Mt(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return i<=o&&o<=a}(e,t,n),o=void 0!==this.props.validationMessage,i=(!this.required||null!==this.value)&&r,a=void 0!==this.props.valid?this.props.valid:i;return{customError:o,rangeOverflow:Ft(e,n),rangeUnderflow:jt(e,t),valid:a,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"popupSettings",{get:function(){return this.props.popupSettings||t.defaultProps.popupSettings},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInputComp",{get:function(){return this.props.dateInput||t.defaultProps.dateInput},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.componentDidUpdate=function(){this._timeSelector&&this.show&&!this.prevShow?this._timeSelector.focusActiveList():this.dateInput&&this.dateInput.element&&!this.show&&this.shouldFocusDateInput&&this.dateInput.element.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.tabIndex,o=t.title,i=t.id,a=t.className,s=t.format,u=t.formatPlaceholder,d=t.smoothScroll,f=t.width,h=t.name,m=t.steps,v=t.cancelButton,g=t.nowButton,y=t.validationMessage,b=t.required,k=t.validityStyles,C=t.ariaLabelledBy,O=t.ariaDescribedBy,w=this.popupSettings,E=w.popupClass,S=Hn(w,["popupClass"]),D=!this.validityStyles||this.validity.valid,x=Object(c.classNames)("k-widget k-timepicker",a),I=Object(c.classNames)("k-picker-wrap",{"k-state-invalid":!D,"k-state-disabled":n,"k-state-focused":this.state.focused}),T=Object(c.classNames)("k-group k-reset",E),_={disabled:n,format:s,formatPlaceholder:u,id:i,ariaLabelledBy:C,ariaDescribedBy:O,max:this.normalizeTime(this.max),min:this.normalizeTime(this.min),name:h,onChange:this.handleInputValueChange,required:b,steps:m,tabIndex:this.show?-1:r,title:o,valid:this.validity.valid,validationMessage:y,validityStyles:k,value:this.value&&this.normalizeTime(this.value),label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show},P=zn({show:this.show,animate:null!==this._wrapper,anchor:this._wrapper,className:T,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},S),N=l.createElement(Vn,{ref:this.setTimeSelectorRef,show:this.show,cancelButton:v,disabled:n,nowButton:g,format:s,min:this.min,max:this.max,steps:m,smoothScroll:d,value:this.value,onChange:this.handleValueChange,onReject:this.handleValueReject}),M=Object(p.provideLocalizationService)(this),R=M.toLanguageString(Ge,Ze[Ge]),j=M.toLanguageString("timepicker.toggleTimeSelector",Ze["timepicker.toggleTimeSelector"]),F=l.createElement(c.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},(function(t){var n=t.onFocus,r=t.onBlur;return l.createElement("div",{ref:function(t){e._element=t},className:x,onKeyDown:e.handleKeyDown,style:{width:f},onFocus:n,onBlur:r},l.createElement("span",{ref:function(t){e._wrapper=t},className:I},l.createElement(e.dateInputComp,zn({_ref:e._dateInput},_)),l.createElement("span",zn({role:"button",onMouseDown:e.handleIconMouseDown,onClick:e.handleIconClick,title:j,className:"k-select"},{"aria-controls":e._popupId,"aria-label":R}),l.createElement("span",{className:"k-icon k-i-clock"}))),e.props.popup?l.createElement(e.props.popup,zn({},P),N):l.createElement(Ht.a,zn({},P),N))}));return this.props.label?l.createElement(qt,{dateInput:this._dateInput,label:this.props.label,editorId:i,editorValid:D,editorDisabled:this.props.disabled,children:F,style:{width:this.props.width}}):F},t.prototype.normalizeTime=function(e){return Y(H,e)},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.mergeTime=function(e){return this.value&&e?Y(this.value,e):e},t.displayName="TimePicker",t.propTypes={className:u.string,cancelButton:u.bool,nowButton:u.bool,defaultShow:u.bool,defaultValue:u.instanceOf(Date),disabled:u.bool,format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,min:u.instanceOf(Date),max:u.instanceOf(Date),name:u.string,popupSettings:u.shape({animate:u.bool,appendTo:u.any,popupClass:u.string}),show:u.bool,steps:u.shape({hour:u.number,minute:u.number,second:u.number}),smoothScroll:u.bool,tabIndex:u.number,title:u.string,value:u.instanceOf(Date),width:u.oneOfType([u.number,u.string]),validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool},t.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"t",max:q,min:W,popupSettings:{},tabIndex:0,steps:{},required:!1,validityStyles:!0,dateInput:zt},t}(l.Component),Kn=Object(c.createPropsContext)(),Wn=Object(c.withPropsContext)(Kn,Un);Wn.displayName="KendoReactTimePicker",Object(p.registerForLocalization)(Un);var qn=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yn=function(e){function t(t){var n=e.call(this,t)||this;return n.isActive=!1,n.focusActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-state-focused"),t=n._element.querySelector(".k-state-pending-focus");e&&e[0]&&e[0].classList.remove("k-state-focused"),t&&t.classList.add("k-state-focused"),n.isActive=!0}},n.blurActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-state-focused");e&&e.classList.remove("k-state-focused"),n.isActive=!1}},n.rotateSelectionRange=function(e){if(null===e.start||null===e.end)return e;var t=e.end<e.start;return{start:t?e.end:e.start,end:t?e.start:e.end}},n.handleDateChange=function(e,t){void 0===t&&(t=!1);var r=n.props.onChange;if(r){var o={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:Object(d.cloneDate)(e.value),target:n,isTodayClick:t};r.call(void 0,o)}},n}return qn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===C.month)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(){this.isActive&&this.focusActiveDate()},t.prototype.render=function(){var e=this,t=this.props.allowReverse?this.rotateSelectionRange(this.props.selectionRange):this.props.selectionRange,n=Object(c.classNames)("k-calendar-view k-hstack k-align-items-start k-justify-content-center",{"k-calendar-monthview":this.props.activeView===C.month,"k-calendar-yearview":this.props.activeView===C.year,"k-calendar-decadeview":this.props.activeView===C.decade,"k-calendar-centuryview":this.props.activeView===C.century});return l.createElement("div",{ref:function(t){e._element=t},className:n},this.props.dates.map((function(n){return l.createElement("table",{className:"k-calendar-table k-calendar-content k-content",key:n.getTime()},l.createElement(Se,{bus:e.props.bus,service:e.props.service,key:n.getTime(),direction:"horizontal",activeView:e.props.activeView,cellUID:e.props.cellUID,viewDate:n,min:e.min,max:e.max,focusedDate:e.props.focusedDate,selectionRange:t,selectedDate:e.props.value,showWeekNumbers:e.weekNumber,onChange:e.handleDateChange,onCellEnter:e.props.onCellEnter,cell:e.props.cell,weekCell:e.props.weekCell}))})))},t.defaultProps={showWeekNumbers:!1,views:2,take:2,allowReverse:!0,min:Me,max:Re},t}(l.Component),Gn=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zn=function(){return(Zn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Xn=function(e,t,n){return void 0===e&&(e=er.defaultProps.min),void 0===t&&(t=er.defaultProps.max),n instanceof Date&&!Array.isArray(n)&&Z(Object(d.getDate)(n),e,t)?Object(d.getDate)(n):null},Qn=function(e,t,n){return void 0===e&&(e=er.defaultProps.min),void 0===t&&(t=er.defaultProps.max),Array.isArray(n)?n.filter((function(n){return Z(n,e,t)})).map((function(e){return Object(d.getDate)(e)})):null},$n=function(e){return"object"!=typeof e||e instanceof Date||null===e||Array.isArray(e)?R:e},Jn=function(e,t,n){return e||t&&t[0]||n&&n.start},er=function(e){function t(n){var r=e.call(this,n)||this;r.selectedDate=null,r.selectedMultiple=null,r.selectedRange=R,r.cellUID=Object(c.guid)(),r.activeRangeEnd="start",r.wrapperID=Object(c.guid)(),r.isActive=!1,r.calculateFocusFromValue=!0,r.focus=function(){r._element&&r._element.focus()},r.clampRange=function(e){return{start:e,end:null}},r.rangeWithFocused=function(e,t){return{start:e.start,end:null===e.end&&null!==e.start&&r.isActive?t:e.end}},r.generateRange=function(e,t){var n=t.end,o=t.start,i=null!==t.start&&e.getTime()<=t.start.getTime();return!r.props.allowReverse&&i?{start:e,end:r.selectedRange.start}:"end"!==r.activeRange?{start:e,end:n}:{start:o||r.selectedDate,end:e}},r.canNavigate=function(e){if(!r.service)return!1;var t=r.service.move(r.focusedDate,e);return r.min<=t&&t<=r.max||r.service.isInSameView(t,r.min)||r.service.isInSameView(t,r.max)},r.isListInRange=function(e){return r.min<e[0]&&r.max>e[Math.max(0,(r.props.views||t.defaultProps.views)-1)]},r.navigate=function(e){r.calculateFocusFromValue=!1;var t=r.move(e);r.setState({focusedDate:t})},r.move=function(e){return r.clampDate(r.service.move(r.focusedDate,e))},r.clampDate=function(e){return te(e,r.min,r.max)},r.shouldAutoCorrect=function(e,t){var n=t.end,o=t.start;return"end"!==r.activeRange?null!==n&&e>n:null!==o&&e<o},r.handleCellEnter=function(e){"range"===r.props.mode&&(r.calculateFocusFromValue=!1,r.setState({focusedDate:e}))},r.handleMouseDown=function(e){e.preventDefault()},r.handleClick=function(e){r._element&&r._element.focus({preventScroll:!0})},r.handleFocus=function(e){if(r.isActive=!0,r.calendarViewList){r.calendarViewList.focusActiveDate();var t=r.props.onFocus;t&&t.call(void 0,e)}},r.handleBlur=function(e){if(r.isActive=!1,r.calendarViewList){r.calendarViewList.blurActiveDate();var t=r.props.onBlur;t&&t.call(void 0,e)}},r.handleTodayClick=function(e){r.todayIsInRange&&r.handleDateChange.call(void 0,e,!0)},r.handlePrevButtonClick=function(){r.navigate(k.PrevView)},r.handleNextButtonClick=function(){r.navigate(k.NextView)},r.handleKeyDown=function(e){if(e.keyCode===c.Keys.enter){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.focusedDate,target:r};r.handleDateChange.call(void 0,t)}else{var n=te(r.navigation.move(r.focusedDate,r.navigation.action(e),r.state.activeView,r.service,e),r.min,r.max);if(Object(d.isEqualDate)(r.focusedDate,n))return;r.calculateFocusFromValue=!1,r.setState({focusedDate:n})}e.preventDefault()},r.handleViewChange=function(e){var t=e.view;r.calculateFocusFromValue=!1,r.setState({activeView:t})},r.handleDateChange=function(e){var t=Object(d.cloneDate)(e.value),n=r.bus.canMoveDown(r.state.activeView);if(!r.props.disabled){if(n){if(!e.isTodayClick)return r.bus.moveDown(r.state.activeView,e.syntheticEvent),void r.setState({focusedDate:t});r.bus.moveToBottom(r.state.activeView)}var o;switch(r.calculateFocusFromValue=!0,r.props.mode){case"single":o=Object(d.cloneDate)(e.value);break;case"multiple":if(Array.isArray(r.selectedMultiple)){var i=r.selectedMultiple.slice(),a=-1;i.forEach((function(t,n){Object(d.isEqualDate)(t,e.value)&&(a=n)})),-1!==a?i.splice(a,1):i.push(Object(d.cloneDate)(e.value)),o=i.slice()}else o=r.selectedDate?[Object(d.cloneDate)(r.selectedDate),Object(d.cloneDate)(e.value)]:[Object(d.cloneDate)(e.value)];break;case"range":o=null!==r.selectedRange.start&&null!==r.selectedRange.end&&"start"===r.activeRange?r.clampRange(e.value):r.generateRange(e.value,r.selectedRange),r.activeRangeEnd="end"!==r.activeRange?"end":"start";break;default:o=Object(d.cloneDate)(e.value)}r.valueDuringOnChange=o,r.setState({value:o,focusedDate:t}),r.valueDuringOnChange=o;var s=r.props.onChange;if(s){var l={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:o,target:r};s.call(void 0,l)}r.valueDuringOnChange=void 0}};var o=void 0!==n.value?n.value:n.defaultValue||t.defaultProps.defaultValue,i=Xn(r.min,r.max,o),a=Qn(r.min,r.max,o),s=$n(o),l=Jn(i,a,s),u=z(C[n.defaultActiveView],r.bottomView,r.topView),p=te(n.focusedDate||l||G(),r.min,r.max);return r.state={value:o,activeView:u,focusedDate:p},r.activeRangeEnd=function(e,t){return null===e.start&&null===t?"start":null===e.end?"end":"start"}(s,i),r.bus=new ve(r.handleViewChange),r.navigation=new be(r.bus),r.calculateFocusFromValue=!1,r.lastView=u,r.lastViewsCount=r.props.views||Yn.defaultProps.views,r}return Gn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusedDate",{get:function(){return Object(d.cloneDate)(this._focusedDate)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return Object(d.getDate)(void 0!==this.props.min?this.props.min:t.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return Object(d.getDate)(void 0!==this.props.max?this.props.max:t.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomView",{get:function(){return C[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topView",{get:function(){return C[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeRange",{get:function(){return void 0!==this.props.activeRangeEnd?this.props.activeRangeEnd:this.activeRangeEnd},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"todayIsInRange",{get:function(){return Z(G(),Object(d.getDate)(this.min),Object(d.getDate)(this.max))},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.calculateFocusFromValue=!0},t.prototype.componentDidUpdate=function(){this.calendarViewList&&(this.isActive?this.calendarViewList.focusActiveDate:this.calendarViewList.blurActiveDate)();var e=Xn(this.min,this.max,this.value);this.calculateFocusFromValue=Boolean(this.selectedDate&&e&&this.selectedDate.getTime()&&e.getTime()),this.lastView=this.state.activeView,this.lastViewsCount=this.props.views||Yn.defaultProps.views},t.prototype.render=function(){var e=this;this.props._ref&&this.props._ref(this),this.intl=Object(p.provideIntlService)(this),this.localization=Object(p.provideLocalizationService)(this),this.bus.configure(this.bottomView,this.topView);var t=z(this.state.activeView,this.bottomView,this.topView);this.service=this.bus.service(t,this.intl),this.selectedDate=Xn(this.min,this.max,this.value),this.selectedMultiple=Qn(this.min,this.max,this.value),this.selectedRange=$n(this.value);var n=Jn(this.selectedDate,this.selectedMultiple,this.selectedRange);this._focusedDate=te(this.calculateFocusFromValue&&null!==n?n:this.state.focusedDate,this.min,this.max);var r=Object(c.classNames)("k-widget k-calendar k-calendar-range",{"k-state-disabled":this.props.disabled},this.props.className),o=this.rangeWithFocused(this.selectedRange,this.focusedDate),i={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},a=this.localization.toLanguageString(Be,Ze[Be]),s=this.localization.toLanguageString(ze,Ze[ze]),u=!this.canNavigate(k.PrevView),f=!this.canNavigate(k.NextView),h={"aria-disabled":u},m={"aria-disabled":f},v=this.lastView!==t,g=this.dates&&this.service.isInArray(this.focusedDate,this.dates),y=this.lastViewsCount!==this.props.views;(!g||v||y)&&(this.dates=this.service.datesList(this.focusedDate,this.props.views||Yn.defaultProps.views));var b=Object(d.cloneDate)(this.dates&&this.dates[0]?this.dates[0]:G());return l.createElement("div",Zn({ref:function(t){e._element=t},className:r,id:this.props.id||this.wrapperID,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,role:"grid",tabIndex:this.props.disabled?void 0:this.props.tabIndex,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseDown:this.handleMouseDown,onClick:this.handleClick,onKeyDown:this.handleKeyDown},i),l.createElement(Ve,{key:".kendo.calendar.header."+b.getTime(),activeView:t,currentDate:b,min:this.min,max:this.max,rangeLength:this.props.views,bus:this.bus,service:this.service,headerTitle:this.props.headerTitle,commands:l.createElement(l.Fragment,null,l.createElement(xe.Button,Zn({type:"button",className:"k-nav-prev",icon:"arrow-chevron-left",look:"flat",title:a,disabled:u,onClick:this.handlePrevButtonClick},h)),l.createElement(Qe,{min:this.min,max:this.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}),l.createElement(xe.Button,Zn({type:"button",className:"k-nav-next",icon:"arrow-chevron-right",look:"flat",title:s,disabled:f,onClick:this.handleNextButtonClick},m)))}),l.createElement(Yn,{ref:function(t){e.calendarViewList=t},dates:this.dates,activeView:t,focusedDate:this.focusedDate,min:this.min,max:this.max,bus:this.bus,service:this.service,selectionRange:o,value:this.selectedMultiple||this.selectedDate,cellUID:this.cellUID,views:this.props.views,onChange:this.handleDateChange,showWeekNumbers:this.props.weekNumber,onCellEnter:this.handleCellEnter,cell:this.props.cell,weekCell:this.props.weekCell,headerTitle:this.props.headerTitle}))},t.displayName="MultiViewCalendar",t.propTypes={activeRangeEnd:u.oneOf(["start","end"]),allowReverse:u.bool,bottomView:u.oneOf(["month","year","decade","century"]),className:u.string,defaultActiveView:u.oneOf(["month","year","decade","century"]),defaultValue:u.oneOfType([j(u.instanceOf(Date)),u.arrayOf(u.instanceOf(Date)),u.shape({start:j(u.instanceOf(Date)),end:j(u.instanceOf(Date))})]),disabled:u.bool,focusedDate:u.instanceOf(Date),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,max:u.instanceOf(Date),min:u.instanceOf(Date),mode:u.oneOf(["single","multiple","range"]),onBlur:u.func,onChange:u.func,onFocus:u.func,tabIndex:u.number,topView:u.oneOf(["month","year","decade","century"]),value:u.oneOfType([j(u.instanceOf(Date)),u.arrayOf(u.instanceOf(Date)),u.shape({start:j(u.instanceOf(Date).isRequired),end:j(u.instanceOf(Date).isRequired)})]),views:function(e,t,n){var r=e[t];return void 0!==r&&r<1?new Error("Invalid prop '"+t+"' supplied to'"+n+"'. The '"+t+"' property cannot be less than 1'"):null},weekNumber:u.bool},t.defaultProps={disabled:!1,min:Me,max:Re,navigation:!0,defaultActiveView:"month",defaultValue:null,topView:"century",tabIndex:0,bottomView:"month",views:2,allowReverse:!1},t}(l.Component),tr=Object(c.createPropsContext)(),nr=Object(c.withPropsContext)(tr,er);nr.displayName="KendoReactMultiViewCalendar",Object(p.registerForIntl)(er),Object(p.registerForLocalization)(er);var rr=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),or=function(){return(or=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ir={display:"inline-block"},ar=function(e){function t(n){var r=e.call(this,n)||this;return r._element=null,r._wrapper=null,r._calendar=null,r._startDateInput=l.createRef(),r._endDateInput=l.createRef(),r._popupId=Object(c.guid)(),r._startInputId=Object(c.guid)(),r._endInputId=Object(c.guid)(),r.shouldFocusDateInput=!1,r.shouldFocusCalendar=!1,r.focus=function(){r.startDateInput&&r.startDateInput.focus()},r.setCalendarRef=function(e){r._calendar=e},r.focusCalendarElement=function(){r._calendar&&r._calendar.element&&r._calendar.element.focus({preventScroll:!0})},r.calculateValue=function(e,t){return(void 0!==e.value?e.value:t.value)||R},r.calculateShow=function(e,t){return void 0!==e.show?e.show:t.show},r.handleReverseClick=function(e){var t={start:r.value.end,end:r.value.start},n={syntheticEvent:e,nativeEvent:e.nativeEvent};r.handleChange(t,n)},r.handleReverseMouseDown=function(e){e.preventDefault()},r.handleFocus=function(e){clearTimeout(r.nextTickId),r.shouldFocusDateInput||r.setShow(!0),r.startDateInput&&r.startDateInput.element&&r.startDateInput.element.classList.add("k-state-focused"),r.endDateInput&&r.endDateInput.element&&r.endDateInput.element.classList.add("k-state-focused");var t=r.props.onFocus;t&&t.call(void 0,e)},r.handleBlur=function(e){r.nextTick((function(){r.startDateInput&&r.startDateInput.element&&r.startDateInput.element.classList.remove("k-state-focused"),r.endDateInput&&r.endDateInput.element&&r.endDateInput.element.classList.remove("k-state-focused"),r.setShow(!1)}));var t=r.props.onBlur;t&&t.call(void 0,e)},r.handleEndChange=function(e){var t={start:r.value.start,end:Object(d.cloneDate)(e.value||void 0)};r.handleChange(t,e)},r.handleStartChange=function(e){var t={start:Object(d.cloneDate)(e.value||void 0),end:r.value.end};r.handleChange(t,e)},r.extractRangeFromValue=function(e){if(!(Array.isArray(e.value)||e.value instanceof Date))return e.value||R;var t=Array.isArray(e.value)?e.value[0]:e.value;return{start:null!==r.value.end?t:r.value.start,end:null!==r.value.start?t:r.value.end}},r.handleCalendarChange=function(e){var t=r.extractRangeFromValue(e);r.handleChange(t,e)},r.handleKeyDown=function(e){var t=e.keyCode,n=e.altKey;t===c.Keys.esc?(e.preventDefault(),r.shouldFocusDateInput=!0,r.setShow(!1)):n&&t===c.Keys.down?(e.preventDefault(),r.shouldFocusCalendar=!0,r.setShow(!0)):t===c.Keys.tab&&r.show&&r._calendar&&r._calendar.element&&r.endDateInput&&r.endDateInput.element&&document&&document.activeElement===r.endDateInput.element&&(e.preventDefault(),r.focusCalendarElement())},r.handleChange=function(e,t){r.setState({value:e}),r.valueDuringOnChange=e;var n=r.props.onChange;if(n){var o={syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:r.value,show:r.show,target:r};n.call(void 0,o)}r.valueDuringOnChange=void 0},Object(c.validatePackage)(f),r.state={show:r.props.show||r.props.defaultShow||t.defaultProps.defaultShow,value:r.props.value||r.props.defaultValue||t.defaultProps.defaultValue},r.nextTick=r.nextTick.bind(r),r.setShow=r.setShow.bind(r),r.focusCalendarElement=r.focusCalendarElement.bind(r),r.focusDateInputElement=r.focusDateInputElement.bind(r),r}return rr(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startDateInput",{get:function(){return this._startDateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endDateInput",{get:function(){return this._endDateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return(void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value)||R},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.shouldFocusCalendar&&this.focusCalendarElement(),this.shouldFocusDateInput&&this.focusDateInputElement(),this.shouldFocusCalendar=!1,this.shouldFocusDateInput=!1},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,t=this.value||R,n=(this.props.startDateInputSettings||{}).id||this._startInputId,r=(this.props.endDateInputSettings||{}).id||this._endInputId,o=Object(c.classNames)("k-daterangepicker",{"k-state-disabled":this.props.disabled},this.props.className),i=Object(p.provideLocalizationService)(this),a=i.toLanguageString("daterangepicker.start",Ze["daterangepicker.start"]),s=i.toLanguageString("daterangepicker.end",Ze["daterangepicker.end"]),u=i.toLanguageString(We,Ze[We]),d=or({label:a,format:this.props.format,min:this.min,max:this.max,id:this._startInputId,disabled:this.props.disabled,valid:this.props.valid,ariaHasPopup:!0,ariaExpanded:this.show},this.props.startDateInputSettings,{value:t.start,onChange:this.handleStartChange}),f=or({label:s,format:this.props.format,min:this.min,max:this.max,id:this._endInputId,disabled:this.props.disabled,valid:this.props.valid,ariaHasPopup:!0,ariaExpanded:this.show},this.props.endDateInputSettings,{value:t.end,onChange:this.handleEndChange}),h=or({animate:null!==this._wrapper,anchor:this._wrapper,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},this.props.popupSettings,{show:this.show}),m=or({min:this.min,max:this.max,allowReverse:this.props.allowReverse,mode:"range",focusedDate:this.props.focusedDate,disabled:this.props.disabled},this.props.calendarSettings,{value:t,onChange:this.handleCalendarChange}),v=this.props.calendar?l.createElement(this.props.calendar,or({},m)):l.createElement(nr,or({},m,{ref:this.setCalendarRef})),g=l.createElement(xe.Button,or({className:"k-select",look:"flat",title:Object(p.provideLocalizationService)(this).toLanguageString(Ke,Ze[Ke]),onMouseDown:this.handleReverseMouseDown,onClick:this.handleReverseClick},{"aria-controls":n+" "+r,"aria-label":Object(p.provideLocalizationService)(this).toLanguageString(Ke,Ze[Ke])}),l.createElement("span",{style:{transform:"rotate(90deg)"},className:"k-icon k-i-arrows-swap"}));return l.createElement("span",{ref:function(t){e._element=t},className:o,style:this.props.style,id:this.props.id,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,tabIndex:this.props.tabIndex,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown},l.createElement("span",{ref:function(t){e._wrapper=t},className:"k-daterangepicker-wrap",style:ir},this.props.startDateInput?l.createElement(this.props.startDateInput,or({},d)):l.createElement(zt,or({},d,{ref:this._startDateInput})),(this.props.allowReverse||this.props.calendarSettings&&this.props.calendarSettings.allowReverse)&&this.props.swapButton?g:u,this.props.endDateInput?l.createElement(this.props.endDateInput,or({},f)):l.createElement(zt,or({},f,{ref:this._endDateInput}))),this.props.popup?l.createElement(this.props.popup,or({},h),v):l.createElement(Ht.a,or({},h),v))},t.prototype.focusDateInputElement=function(){document&&this.startDateInput&&this.startDateInput.element&&this.endDateInput&&this.endDateInput.element&&(null!==this.value.start&&null===this.value.end||document.activeElement===this.endDateInput.element?document.activeElement!==this.startDateInput.element&&this.endDateInput.element.focus({preventScroll:!0}):this.startDateInput.element.focus({preventScroll:!0}))},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.displayName="DateRangePicker",t.propTypes={allowReverse:u.bool,calendarSettings:u.any,className:u.string,defaultShow:u.bool,defaultValue:u.shape({start:j(u.instanceOf(Date).isRequired),end:j(u.instanceOf(Date).isRequired)}),disabled:u.bool,endDateInputSettings:u.shape(Vt.propTypes),focusedDate:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,max:u.instanceOf(Date),min:u.instanceOf(Date),onBlur:u.func,onChange:u.func,onFocus:u.func,popupSettings:u.any,show:u.bool,startDateInputSettings:u.any,style:u.any,swapButton:u.any,tabIndex:u.number,value:u.shape({start:j(u.instanceOf(Date).isRequired),end:j(u.instanceOf(Date).isRequired)})},t.defaultProps={allowReverse:!1,defaultShow:!1,defaultValue:R,disabled:!1,format:"d",max:Re,min:Me,swapButton:!1},t}(l.Component),sr=Object(c.createPropsContext)(),lr=Object(c.withPropsContext)(sr,ar);lr.displayName="KendoReactDateRangePicker",Object(p.registerForLocalization)(ar);var ur=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cr=function(){return(cr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},dr=function(e){function t(t){var n=e.call(this,t)||this;return n._calendarWrap=null,n.focus=function(e){Promise.resolve().then((function(){"time"===n.state.tab&&n._timePart&&n._timePart.focus(e);var t=n.calendarElement();"date"===n.state.tab&&t&&t.focus(e)}))},n.calendarElement=function(){return n._calendar&&n._calendar.element||n._calendarWrap&&n._calendarWrap.querySelector(".k-widget.k-calendar")},n.move=function(e){if(!("right"===e&&"time"===n.state.tab||"left"===e&&"date"===n.state.tab)){var t="left"===e?"date":"time";n.shouldFocusPart=!0,n.setState({tab:t})}},n.handleReject=function(e){n.setState({dateValue:n.props.value,timeValue:n.props.value||Ne});var t=n.mergeDate(n.props.value,n.props.value||Ne);if(n.props.onReject){var r={nativeEvent:e.nativeEvent,syntheticEvent:e,target:n,value:t};n.props.onReject.call(void 0,r)}},n.handleAccept=function(e,t){if(n.state.dateValue&&n.state.timeValue&&n.hasDateValue){var r=n.mergeDate(n.state.dateValue,t||n.state.timeValue);n.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r,target:n})}},n.handleNowClick=function(e){n.setState({timeValue:Pt()}),n.handleAccept(e,Pt())},n.handleCalendarValueChange=function(e){e.syntheticEvent.stopPropagation(),n.setState({dateValue:e.value,tab:"time"}),n.shouldFocusPart=!0},n.handleTimeListContainerChange=function(e){n.setState({timeValue:e})},n.handleDateClick=function(e){e.stopPropagation(),n.move("left")},n.handleTimeClick=function(e){e.stopPropagation(),n.move("right")},n.handleKeyDown=function(e){var t=e.keyCode,r=e.altKey;switch(t){case c.Keys.enter:return void(!n.hasActiveButton()&&n.hasDateValue&&n.handleAccept(e));case c.Keys.left:if(!r)return;return void n.move("left");case c.Keys.right:if(!r)return;return void n.move("right");default:return}},n.handleTimePartMount=function(e){n.setState({timeValue:e})},n.state={tab:"date",dateValue:n.props.value,timeValue:n.props.value||Ne},n}return ur(t,e),Object.defineProperty(t.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timePart",{get:function(){return this._timePart},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasDateValue",{get:function(){return null!==this.state.dateValue},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(){this.shouldFocusPart&&this.focus({preventScroll:!0}),this.shouldFocusPart=!1},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.cancelButton,o=t.min,i=t.max,a=t.weekNumber,s=t.focusedDate,u=t.format,d=Object(c.classNames)({"k-date-tab":"date"===this.state.tab,"k-time-tab":"time"===this.state.tab,"k-state-disabled":n},"k-datetime-wrap"),f=Object(p.provideLocalizationService)(this),h=f.toLanguageString("datetimepicker.date",Ze["datetimepicker.date"]),m=f.toLanguageString("datetimepicker.time",Ze["datetimepicker.time"]),v=f.toLanguageString("datetimepicker.cancel",Ze["datetimepicker.cancel"]),g=f.toLanguageString("datetimepicker.set",Ze["datetimepicker.set"]),y={min:o,max:i,weekNumber:a,focusedDate:s,disabled:n||"date"!==this.state.tab,value:this.state.dateValue,onChange:this.handleCalendarValueChange,navigation:!1};return l.createElement("div",{onKeyDown:this.handleKeyDown,className:d,tabIndex:-1},l.createElement("div",{className:"k-datetime-buttongroup"},l.createElement(xe.ButtonGroup,{width:"100%"},l.createElement(xe.Button,{type:"button",selected:"date"===this.state.tab,togglable:!0,onClick:this.handleDateClick},h),l.createElement(xe.Button,{type:"button",selected:"time"===this.state.tab,togglable:!0,onClick:this.handleTimeClick},m))),l.createElement("div",{className:"k-datetime-selector"},l.createElement("div",{className:"k-datetime-calendar-wrap",ref:function(t){return e._calendarWrap=t}},this.props.calendar?l.createElement(this.props.calendar,cr({},y)):l.createElement(ft,cr({ref:function(t){e._calendar=t}},y))),l.createElement("div",{className:"k-datetime-time-wrap"},l.createElement(jn,{key:1,onNowClick:this.handleNowClick,disabled:n||"time"!==this.state.tab,ref:function(t){e._timePart=t},min:this.minTime||W,max:this.maxTime||q,steps:this.props.steps,value:this.state.timeValue,format:u,onChange:this.handleTimeListContainerChange,onMount:this.handleTimePartMount}))),l.createElement("div",{className:"k-datetime-footer k-actions k-hstack k-justify-content-stretch"},r&&l.createElement(xe.Button,cr({type:"button",ref:function(t){e._cancelButton=t},className:"k-time-cancel",onClick:this.handleReject,title:v},{"aria-label":v}),v),l.createElement(xe.Button,cr({type:"button",ref:function(t){e._acceptButton=t},className:"k-time-accept",disabled:!this.hasDateValue,onClick:this.handleAccept,title:g},{"aria-label":g}),g)))},Object.defineProperty(t.prototype,"minTime",{get:function(){return void 0!==this.props.minTime?this.props.minTime:this.normalizeRange(this.props.min,this.state.dateValue)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxTime",{get:function(){return void 0!==this.props.maxTime?this.props.maxTime:this.normalizeRange(this.props.max,this.state.dateValue)},enumerable:!0,configurable:!0}),t.prototype.normalizeRange=function(e,t){return Object(d.isEqualDate)(e,t||G())?e:null},t.prototype.hasActiveButton=function(){return!!this._acceptButton&&(this._acceptButton&&document.activeElement===this._acceptButton.element||this._cancelButton&&document.activeElement===this._cancelButton.element)},t.prototype.mergeTime=function(e,t){return e&&t?Y(t,e):t},t.prototype.mergeDate=function(e,t){return e?Y(e||G(),t):t},t}(l.Component);Object(p.registerForLocalization)(dr);var pr=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fr=function(){return(fr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},hr=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=Object(c.guid)(),r._element=null,r._wrapper=null,r._dateInput=l.createRef(),r._dateTimeSelector=null,r.shouldFocusDateInput=!1,r.prevShow=!1,r.focus=function(){var e=r.dateInputElement();e&&e.focus()},r.handleReject=function(){r.shouldFocusDateInput=!0,r.setShow(!1)},r.handleValueChange=function(e){r.setState({value:Object(d.cloneDate)(e.value||void 0),show:!1}),r.valueDuringOnChange=e.value,r.showDuringOnChange=!1,r.shouldFocusDateInput=!0;var t=r.props.onChange;t&&t.call(void 0,{syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:r.value,show:r.show,target:r}),r.valueDuringOnChange=void 0,r.showDuringOnChange=void 0},r.handleFocus=function(){r.setState({focused:!0})},r.handleBlur=function(){r.setState({focused:!1}),r.setShow(!1)},r.handleDateIconClick=function(){r.props.disabled||(r.shouldFocusDateInput=!0,r.setShow(!r.show))},r.handleIconMouseDown=function(e){e.preventDefault()},r.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===c.Keys.esc)return r.shouldFocusDateInput=!0,void r.setShow(!1);!t||n!==c.Keys.up&&n!==c.Keys.down||(e.preventDefault(),e.stopPropagation(),r.shouldFocusDateInput=n===c.Keys.up,r.setShow(n===c.Keys.down))},r.dateInputElement=function(){return r.dateInput&&r.dateInput.element||r._wrapper&&r._wrapper.querySelector(".k-dateinput-wrap > input.k-input")},Object(c.validatePackage)(f),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r}return pr(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?Object(d.cloneDate)(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=X(this.value,this.min,this.max)&&Rt(this.value,this.props.minTime||je,this.props.maxTime||q),t=void 0!==this.props.validationMessage,n=(!this.required||null!==this.value)&&e,r=void 0!==this.props.valid?this.props.valid:n;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:r,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInputComp",{get:function(){return this.props.dateInput||t.defaultProps.dateInput},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){var e=this.dateInputElement();this._dateTimeSelector&&this.show&&!this.prevShow&&this._dateTimeSelector.focus({preventScroll:!0}),e&&!this.show&&this.shouldFocusDateInput&&e.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.tabIndex,o=t.title,i=t.id,a=t.format,s=t.formatPlaceholder,u=t.min,d=t.max,f=t.weekNumber,h=t.focusedDate,m=t.className,v=t.width,g=t.name,y=t.validationMessage,b=t.required,k=t.validityStyles,C=t.cancelButton,O=t.minTime,w=t.maxTime,E=t.ariaLabelledBy,S=t.ariaDescribedBy,D=t.popup,x=void 0===D?Ht.a:D,I=t.calendar,T=!this.validityStyles||this.validity.valid,_=Object(c.classNames)("k-widget k-datetimepicker",{"k-state-invalid":!T},m),P=Object(c.classNames)("k-picker-wrap",{"k-state-disabled":n,"k-state-focused":this.state.focused}),N={id:i,ariaLabelledBy:E,ariaDescribedBy:S,format:a,formatPlaceholder:s,disabled:n,title:o,validityStyles:k,validationMessage:y,required:b,min:u,max:d,minTime:O,maxTime:w,name:g,tabIndex:this.show?-1:r,valid:this.validity.valid,value:this.value,onChange:this.handleValueChange,steps:this.props.steps,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show},M=l.createElement(c.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncFocus:this.props.onFocus,onSyncBlur:this.props.onBlur},(function(t){var r=t.onFocus,o=t.onBlur;return l.createElement("div",{ref:function(t){e._element=t},className:_,onKeyDown:e.handleKeyDown,style:{width:v},onFocus:r,onBlur:o},l.createElement("div",{ref:function(t){e._wrapper=t},className:P},l.createElement(e.dateInputComp,fr({_ref:e._dateInput},N)),l.createElement("span",fr({role:"button",onMouseDown:e.handleIconMouseDown,onClick:e.handleDateIconClick,title:Object(p.provideLocalizationService)(e).toLanguageString(qe,Ze[qe]),className:"k-select"},{"aria-controls":e._popupId,"aria-label":Object(p.provideLocalizationService)(e).toLanguageString(qe,Ze[qe])}),l.createElement("span",{className:"k-link k-link-date"},l.createElement("span",{className:"k-icon k-i-calendar"})))),l.createElement(x,{show:e.show,animate:null!==e._wrapper,anchor:e._wrapper,className:"k-datetime-container k-group k-reset",id:e._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},l.createElement(dr,{ref:function(t){e._dateTimeSelector=t},cancelButton:C,steps:e.props.steps,value:e.value,onChange:e.handleValueChange,onReject:e.handleReject,disabled:n,weekNumber:f,min:e.min,max:e.max,minTime:O,maxTime:w,focusedDate:h,format:a,calendar:I})))}));return this.props.label?l.createElement(qt,{dateInput:this._dateInput,label:this.props.label,editorId:i,editorValid:T,editorDisabled:this.props.disabled,children:M,style:{width:this.props.width}}):M},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.displayName="DateTimePicker",t.propTypes={className:u.string,defaultShow:u.bool,defaultValue:u.instanceOf(Date),disabled:u.bool,focusedDate:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,min:u.instanceOf(Date),max:u.instanceOf(Date),name:u.string,popupSettings:u.shape({animate:u.bool,appendTo:u.any,popupClass:u.string}),show:u.bool,tabIndex:u.number,title:u.string,value:u.instanceOf(Date),weekNumber:u.bool,width:u.oneOfType([u.number,u.string]),validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool,cancelButton:u.bool},t.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"g",max:K,min:U,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0,cancelButton:!0,dateInput:zt},t}(l.Component),mr=Object(c.createPropsContext)(),vr=Object(c.withPropsContext)(mr,hr);vr.displayName="KendoReactDateTimePicker",Object(p.registerForLocalization)(hr)},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),i=n(7);!function(e){e.select="ITEMS_SELECT_SELECT",e.selectNext="ITEMS_SELECT_SELECT_NEXT",e.selectPrev="ITEMS_SELECT_SELECT_PREV",e.reset="ITEMS_SELECT_RESET",e.add="ITEMS_SELECT_ADD",e.remove="ITEMS_SELECT_REMOVE"}(r=t.ITEMS_SELECT_ACTION||(t.ITEMS_SELECT_ACTION={})),t.useItemsSelection=function(e){var t=o.useState([]),n=t[0],a=t[1],s=o.useCallback((function(t,o){switch(t.type){case r.select:if(!t.item)return;a([t.item]);break;case r.selectNext:if(!t.item||!t.item.current||!e)return;(s=i.findNextItem(t.item,e,t.ignoreIsAllDay,!1))&&(o.preventDefault(),a([s]));break;case r.selectPrev:if(!t.item||!t.item.current||!e)return;var s;(s=i.findNextItem(t.item,e,t.ignoreIsAllDay,!0))&&(o.preventDefault(),a([s]));break;case r.reset:a([]);break;case r.add:if(!t.item)return;n.some((function(e){return e===t.item}))||a(n.concat([t.item]));break;case r.remove:if(!t.item)return;a(n.filter((function(e){return e!==t.item})).slice())}}),[e,n]);return[n,s]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0);!function(e){e.select="SLOTS_SELECT_SELECT",e.reset="SLOTS_SELECT_RESET",e.add="SLOTS_SELECT_ADD"}(r=t.SLOTS_SELECT_ACTION||(t.SLOTS_SELECT_ACTION={})),t.useSlotsSelection=function(e){var t=o.useState([]),n=t[0],i=t[1],a=o.useCallback((function(e){switch(e.type){case r.select:if(!e.slot)return;i([e.slot]);break;case r.reset:i([]);break;case r.add:if(!e.slot)return;n.some((function(t){return t===e.slot}))||i(n.concat([e.slot]))}}),[n]);return[n,a]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(3),i=n(12);t.toSlots=function(e,t,n){var a=t.step,s=n.groups,l=n.ranges,u=[];return s.forEach((function(e){l.forEach((function(t){for(var n=t.zonedStart,s=t.zonedEnd,l=s.timezoneOffset-n.timezoneOffset,c=n.clone(),d=0,p=l<0?l*i.MS_PER_MINUTE*-1:0;c.getTime()<s.getTime();d++,c=c.addTime(a)){var f=r.createRef(),h=c.clone(),m=c.addTime(a),v=(m.timezoneOffset-h.timezoneOffset)*i.MS_PER_MINUTE,g=a<Math.abs(v);p&&g&&(p-=a,c=c.addTime(-a));var y=new Date(h.getTime()),b={_ref:f,index:d,end:new Date(m.getTime()),start:y,zonedStart:h,zonedEnd:m,range:t,group:e,items:[],isAllDay:o.MS_PER_DAY<=a};u.push(b)}}))})),u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(16),i=n(47),a=n(4),s=n(11),l=n(2);t.SchedulerRemoveDialog=r.forwardRef((function(e,t){var n=e.onClose,u=e.onCancel,c=e.onConfirm,d=r.useRef(null);r.useImperativeHandle(d,(function(){return{props:e}})),r.useImperativeHandle(t,(function(){return d.current}));var p=a.useLocalization(),f=p.toLanguageString(s.editorCancel,s.messages[s.editorCancel]),h=p.toLanguageString(s.editorDelete,s.messages[s.editorDelete]),m=p.toLanguageString(s.deleteConfirmation,s.messages[s.deleteConfirmation]),v=p.toLanguageString(s.deleteDialogTitle,s.messages[s.deleteDialogTitle]),g=r.useCallback((function(e){var t=e.syntheticEvent;n&&n.call(void 0,{syntheticEvent:t})}),[n]),y=r.useCallback((function(e){u&&u.call(void 0,{syntheticEvent:e,value:null})}),[u]),b=r.useCallback((function(e){c&&c.call(void 0,{syntheticEvent:e,value:null})}),[c]);return l.canUseDOM?o.createPortal(r.createElement(i.Dialog,{title:v,onClose:g},m,r.createElement(i.DialogActionsBar,null,r.createElement("button",{className:"k-button",onClick:y},f),r.createElement("button",{className:"k-button",onClick:b},h))),document&&document.body):null})),t.SchedulerRemoveDialog.displayName="KendoReactSchedulerRemoveDialog"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(16),i=n(47),a=n(4),s=n(11),l=n(2);t.SchedulerOccurrenceDialog=r.forwardRef((function(e,t){var n=e.isRemove,u=e.onClose,c=e.onSeriesClick,d=e.onOccurrenceClick,p=r.useRef(null);r.useImperativeHandle(p,(function(){return{props:e}})),r.useImperativeHandle(t,(function(){return p.current}));var f=a.useLocalization(),h=function(e){return f.toLanguageString(e,s.messages[e])},m=h(s.editorOccurrence),v=h(s.editorSeries),g=h(s.editorRecurringConfirmation),y=h(s.editorRecurringDialogTitle),b=h(s.deleteOccurrence),k=h(s.deleteSeries),C=h(s.deleteRecurringDialogTitle),O=h(s.deleteRecurringConfirmation),w=n?C:y,E=n?O:g,S=n?b:m,D=n?k:v,x=r.useCallback((function(e){var t=e.syntheticEvent;u&&u.call(void 0,{syntheticEvent:t,value:null,target:p.current})}),[u]),I=r.useCallback((function(e){c&&c.call(void 0,{syntheticEvent:e,value:null,target:p.current})}),[c]),T=r.useCallback((function(e){d&&d.call(void 0,{syntheticEvent:e,value:null,target:p.current})}),[d]);return l.canUseDOM?o.createPortal(r.createElement(i.Dialog,{title:w,onClose:x},E,r.createElement(i.DialogActionsBar,null,r.createElement("button",{className:"k-button",onClick:T},S),r.createElement("button",{className:"k-button",onClick:I},D))),document&&document.body):null})),t.SchedulerOccurrenceDialog.displayName="KendoReactSchedulerSchedulerOccurrenceDialog"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(16),s=n(2),l=n(73),u=n(47),c=n(4),d=n(58),p=n(10),f=n(11);t.SchedulerForm=i.forwardRef((function(e,t){var n=e.onCancel,m=e.onClose,v=e.onSubmit,g=e.editor,y=e.dialog,b=void 0===y?h.dialog:y,k=e.validator,C=void 0===k?h.validator:k,O=o(e,["onCancel","onClose","onSubmit","editor","dialog","validator"]),w=i.useRef(null);i.useImperativeHandle(w,(function(){return{props:e}})),i.useImperativeHandle(t,(function(){return w.current}));var E=c.useLocalization(),S=p.useSchedulerFieldsContext(),D=i.useMemo((function(){return E.toLanguageString(f.editorValidationRequired,f.messages[f.editorValidationRequired])}),[E]),x=i.useMemo((function(){return E.toLanguageString(f.editorValidationEnd,f.messages[f.editorValidationEnd])}),[E]),I=i.useMemo((function(){return E.toLanguageString(f.editorSave,f.messages[f.editorSave])}),[E]),T=i.useMemo((function(){return E.toLanguageString(f.editorCancel,f.messages[f.editorCancel])}),[E]),_=i.useMemo((function(){return E.toLanguageString(f.editorTitle,f.messages[f.editorTitle])}),[E]),P=i.useMemo((function(){return E.toLanguageString(f.editorValidationStart,f.messages[f.editorValidationStart])}),[E]),N=i.useCallback((function(e){n&&n.call(void 0,{value:null,syntheticEvent:e,target:w.current})}),[n]),M=i.useCallback((function(e){var t=e.syntheticEvent;m&&m.call(void 0,{value:null,syntheticEvent:t,target:w.current})}),[m]),R=i.useCallback((function(e,t){v&&v.call(void 0,{value:e,syntheticEvent:t,target:w.current})}),[v]),j=i.useCallback((function(e,t){return Boolean(e&&t(S.end)&&e.getTime()>t(S.end).getTime())?P:void 0}),[S,P]),F=i.useCallback((function(e,t){return Boolean(e&&t(S.start)&&e.getTime()<t(S.start).getTime())?x:void 0}),[S,x]),A=i.useCallback((function(e){return e?void 0:D}),[D]),L=i.useCallback((function(e,t){var n={};n[S.start]=[A(t(S.start)),j(t(S.start),t)].filter(Boolean).reduce((function(e,t){return e||t}),""),n[S.end]=[A(t(S.start)),F(t(S.start),t)].filter(Boolean).reduce((function(e,t){return e||t}),"");var o=C(e,t);return r({},n,o)}),[F,S.end,S.start,A,j,C]);return s.canUseDOM?a.createPortal(i.createElement(l.Form,r({initialValues:e.dataItem,onSubmit:R,validator:L,render:function(e){return i.createElement(b,{title:_,minWidth:600,onClose:M,className:"k-scheduler-edit-dialog"},i.createElement(d.SchedulerFormEditor,r({},e,{as:g})),i.createElement(u.DialogActionsBar,null,i.createElement("button",{className:"k-button",disabled:!e.allowSubmit,onClick:e.onSubmit},I),i.createElement("button",{className:"k-button",onClick:N},T)))}},O)),document&&document.body):null}));var h={dialog:u.Dialog,validator:function(){return{}}};t.SchedulerForm.defaultProps=h,t.SchedulerForm.displayName="KendoReactSchedulerForm"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(17),a=n(12),s=n(21);t.HorizontalResourceIterator=function(e){var n=e.nested,r=e.children,a=e.rowContentProps,s=e.rowContent||t.DefaultRowContent,c=e.childRowContent||s,d=i.toGroupResources(e.group,e.resources);return o.createElement("div",{className:"k-scheduler-group k-group-horizontal"},n?l({resources:d,children:r,nested:n,groupIndex:0,rowContent:s,rowContentProps:a,childRowContent:c}):u({resources:d,children:r,rowContent:s,nested:!!n,groupIndex:0,rowContentProps:a,childRowContent:c}))};var l=function(e){var t=e.resources,n=e.rowContent,a=e.nested,s=e.children,c=e.groupIndex,d=e.rowContentProps,p=e.childRowContent;if(c===t.length)return u({resources:t,rowContent:n,children:s,nested:a,groupIndex:c,rowContentProps:d,childRowContent:p});var f=i.expandResources(t,c),h=n;return o.createElement(o.Fragment,null,a?o.createElement("div",{className:"k-scheduler-row"},o.createElement(h,r({resources:t,groupIndex:c},d),f.map((function(e,t){return o.createElement("div",{key:t,className:"k-scheduler-cell k-heading-cell"},e.text)})))):o.createElement(h,r({resources:t,groupIndex:c},d),f.map((function(e,t){return o.createElement("div",{key:t,className:"k-scheduler-cell k-heading-cell"},e.text)}))),l({resources:t,children:s,nested:a,rowContent:n,childRowContent:p,groupIndex:c+1}))},u=function(e){var t=e.resources,n=e.childRowContent,l=e.children,u=e.rowContentProps,c=i.expandResources(t,t.length-1),d=n,p=t.length>0;return o.createElement("div",{className:"k-scheduler-row"},o.createElement(d,r({resources:t},u),(c.length?c:a.EMPTY_RESOURCE).map((function(e,t){return o.createElement("div",{key:t,className:"k-scheduler-cell k-group-cell"},o.createElement(s.SchedulerResourceIteratorContext.Provider,{value:{resource:e,groupIndex:p?t:0}},l))}))))};t.HorizontalResourceIterator.displayName="KendoReactSchedulerHorizontalResourceIterator",t.DefaultRowContent=function(e){return e.children}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(4),s=n(2);t.TimeHeaderCell=i.forwardRef((function(e,t){var n=e.as,u=void 0===n?l.as:n,c=o(e,["as"]),d=i.useRef(null),p=i.useRef(null),f=a.useInternationalization(),h=i.useMemo((function(){return s.classNames("k-scheduler-cell k-heading-cell",e.className)}),[e.className]);return i.useImperativeHandle(p,(function(){return{element:d.current&&d.current.element?d.current.element:d.current,props:e}})),i.useImperativeHandle(t,(function(){return p.current})),i.createElement(u,r({ref:u!==l.as?void 0:d},c,{className:h}),f.formatDate(e.date,e.format))}));var l={as:i.forwardRef((function(e,t){e.as,e.format,e.start,e.end;var n=o(e,["as","format","start","end"]);return i.createElement("div",r({},n,{ref:t}))})),format:"t"};t.TimeHeaderCell.defaultProps=l,t.TimeHeaderCell.displayName="KendoReactSchedulerTimeHeaderCell"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(3),s=n(23),l=n(41),u=n(105),c=n(24),d=n(106),p=n(107),f=n(2),h=n(7),m=n(4),v=n(12),g=n(28),y=n(22),b=n(29),k=n(13),C=n(21),O=n(71),w=n(32),E=o.createElement("div",{className:"k-scheduler-cell k-side-cell"});t.MultiDayView=function(e){var n=k.useSchedulerPropsContext(),i=n.group,S=n.timezone,D=n.resources,x=m.useInternationalization(),I=e.editItem||b.SchedulerEditItem,T=e.editSlot||y.SchedulerEditSlot,_=e.showWorkHours,P=e.numberOfDays||t.defaultProps.numberOfDays,N=e.slotDivisions||t.defaultProps.slotDivisions,M=e.slotDuration||t.defaultProps.slotDuration,R=e.workWeekStart||t.defaultProps.workWeekStart,j=e.workWeekEnd||t.defaultProps.workWeekEnd,F=x.parseDate(e.workDayStart||e.isWorkDayStart||t.defaultProps.isWorkDayStart),A=x.parseDate(e.workDayEnd||e.isWorkDayEnd||t.defaultProps.isWorkDayEnd),L=x.parseDate(e.startTime||t.defaultProps.startTime),V=x.parseDate(e.endTime||t.defaultProps.endTime),B=k.useSchedulerDataContext()[0],z=k.useSchedulerGroupsContext(),H=k.useSchedulerOrientationContext(),U=k.useSchedulerFieldsContext(),K=k.useSchedulerDateRangeContext(),W=o.useMemo((function(){return _?F:L}),[_,F,L]),q=o.useMemo((function(){return _?A:V}),[_,A,V]),Y=o.useMemo((function(){return g.toRanges(K,{step:a.MS_PER_DAY*P,timezone:S}).map((function(e){return r({},e,{isAllDay:!0})}))}),[K.start.getTime(),K.end.getTime(),P]),G=o.useMemo((function(){return g.toRanges(K,{step:a.MS_PER_DAY,timezone:S}).map((function(e){return r({},e,{isAllDay:!1})}))}),[K.start.getTime(),K.end.getTime(),S]),Z=o.useMemo((function(){return g.toSlots(K,{step:a.MS_PER_DAY},{groups:z,ranges:Y})}),[K.start.getTime(),K.end.getTime(),S,Y,z]),X=o.useMemo((function(){return g.toSlots(K,{step:M*v.MS_PER_MINUTE/N},{groups:z,ranges:G}).filter((function(e){return q.getTime()===W.getTime()||h.isInTimeRange(e.zonedStart,W,q)}))}),[K.start.getTime(),K.end.getTime(),M,N,W.getTime(),q.getTime(),z,G]),Q=o.useMemo((function(){return g.toOccurrences(B,{dateRange:K,fields:U,timezone:S})}),[B,K.start.getTime(),K.end.getTime(),U,S]),$=o.useMemo((function(){return Q.filter((function(e){return e.isAllDay}))}),[Q]),J=o.useMemo((function(){return Q.filter((function(e){return!e.isAllDay}))}),[Q]),ee=o.useMemo((function(){return g.toItems($,{timezone:S},{groups:z,ranges:Y})}),[Q,S,z,Y]),te=o.useMemo((function(){return g.toItems(J,{timezone:S},{groups:z,ranges:G}).filter((function(e){return W.getTime()===q.getTime()||h.isInTimeRange(e.zonedStart,W,q)||h.isInTimeRange(e.zonedEnd,W,q)||h.isInTimeRange(new Date(e.zonedEnd.getTime()-(e.zonedEnd.getTime()-e.zonedStart.getTime())/2),W,q)}))}),[Q,S,z,G,W.getTime(),q.getTime()]);o.useMemo((function(){return h.mapItemsToSlots(ee,Z,!1)}),[ee,Z]),o.useMemo((function(){return h.mapSlotsToItems(ee,Z,!1)}),[ee,Z]),o.useMemo((function(){return h.mapItemsToSlots(te,X,!1)}),[te,X]),o.useMemo((function(){return h.mapSlotsToItems(te,X,!1)}),[te,X]);var ne=o.createElement(C.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return o.createElement("div",{className:"k-scheduler-row",key:n},G.map((function(t,n){return o.createElement(w.DateHeaderCell,{as:e.dateHeaderCell,key:n,date:a.ZonedDate.fromLocalDate(new Date(t.zonedEnd.getTime()-(t.zonedEnd.getTime()-t.zonedStart.getTime())/2),S),start:t.start,end:t.end,format:{skeleton:"MEd"}})})))})),re=o.createElement(C.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return o.createElement("div",{key:n,className:"k-scheduler-row"},Y.map((function(t,i){return Z.filter((function(e){return e.group.index===n&&e.range.index===i})).map((function(t,i,a){return o.createElement(T,r({},t,{onDataAction:e.onDataAction,form:e.form,slot:e.slot,viewSlot:e.viewSlot,key:t.start.getTime()+":"+t.group.index,row:0,col:"horizontal"===H?a.length*(n||0)+i:i,isWorkDay:0<=t.zonedStart.getDay()+(P-R)&&(t.zonedStart.getDay()+(P-R))%P<=j+(P-R),expandable:!0}))}))})))})),oe=o.useMemo((function(){return f.classNames("k-scheduler-day-view",e.className)}),[e.className]);return o.createElement(o.Fragment,null,o.createElement(s.BaseView,{id:e.id,props:e,style:e.style,className:oe,ranges:Y.concat(G),slots:Z.concat(X)},o.createElement("div",{className:"k-scheduler-head"},"horizontal"===H?o.createElement(o.Fragment,null,o.createElement(l.HorizontalResourceIterator,{nested:!0,group:i,resources:D,rowContent:u.DayViewGroupRowContent,childRowContent:u.DayViewGroupRowContent},ne),o.createElement(l.HorizontalResourceIterator,{group:i,resources:D,rowContent:d.DayViewAllDayRowContent,childRowContent:d.DayViewAllDayRowContent},re),ee.map((function(t){return o.createElement(I,r({key:t.isRecurring?t.uid+":"+t.group.index+":"+t.range.index+":"+t.originalStart:t.uid+":"+t.group.index+":"+t.range.index},t,{form:e.form,onDataAction:e.onDataAction,item:e.item,viewItem:e.viewItem,editable:e.editable,vertical:!1}))}))):o.createElement(c.VerticalResourceIterator,{group:i,resources:D,cellContent:E},ne)),o.createElement("div",{className:"k-scheduler-body"},"horizontal"===H?o.createElement(o.Fragment,null,X.filter((function(e){return 0===e.group.index&&0===e.range.index})).map((function(t,n){return o.createElement(o.Fragment,{key:t.index},o.createElement(l.HorizontalResourceIterator,{nested:!1,group:i,resources:D,rowContent:p.DayViewRowContent,rowContentProps:{timeHeaderCell:e.timeHeaderCell,isMaster:n%N==0,isLast:(n+1)%N==0,slot:t}},o.createElement(C.SchedulerResourceIteratorContext.Consumer,null,(function(i){var a=i.groupIndex;return o.createElement("div",{className:f.classNames("k-scheduler-row",{"k-middle-row":!((n+1)%N==0)})},G.map((function(i,s){return X.filter((function(e){return e.index===t.index&&e.range.index===s&&e.group.index===a})).map((function(t){return o.createElement(T,r({key:t.start.getTime()+":"+t.group.index},t,{onDataAction:e.onDataAction,slot:e.slot,viewSlot:e.viewSlot,form:e.form,row:n+1,col:G.length*(a||0)+s,isWorkHour:h.isInTimeRange(t.zonedStart,F,A),isWorkDay:0<=t.zonedStart.getDay()+(P-R)&&(t.zonedStart.getDay()+(P-R))%P<=j+(P-R),editable:e.editable}))}))})))}))))})),e.currentTimeMarker&&h.intersects(h.first(G).start,h.last(G).end,new Date,new Date,!0)&&o.createElement(O.CurrentTimeMarker,null)):o.createElement(o.Fragment,null,o.createElement(c.VerticalResourceIterator,{nested:!0,group:i,resources:D},o.createElement(C.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return o.createElement(o.Fragment,{key:n},o.createElement("div",{className:"k-scheduler-row"},o.createElement(d.DayViewAllDayRowContent,{groupIndex:n},Y.map((function(t,i){var a=X.filter((function(e){return e.group.index===n&&0===e.range.index})).length;return Z.filter((function(e){return e.group.index===n&&e.range.index===i})).map((function(t,i){return o.createElement(T,r({slot:e.slot,viewSlot:e.viewSlot,form:e.form},t,{onDataAction:e.onDataAction,key:t.start.getTime()+":"+t.group.index,className:"k-scheduler-alldays-slot",row:a*(n||0)+1*(n||0),col:i,expandable:!0}))}))})))),X.filter((function(e){return e.group.index===n&&0===e.range.index})).map((function(t,i,a){return o.createElement("div",{className:"k-scheduler-row",key:t.index},o.createElement(p.DayViewRowContent,{slot:t,isMaster:i%N==0,isLast:(i+1)%N==0,timeHeaderCell:e.timeHeaderCell},G.map((function(s,l){return X.filter((function(e){return e.index===t.index&&e.group.index===n&&e.range.index===l})).map((function(t){return o.createElement(T,r({slot:e.slot,viewSlot:e.viewSlot,form:e.form,onDataAction:e.onDataAction},t,{key:t.start.getTime()+":"+t.group.index,row:a.length*(n||0)+i+1*(n||0)+1,col:l,editable:e.editable,isWorkHour:h.isInTimeRange(t.zonedStart,F,A),isWorkDay:0<=t.zonedStart.getDay()+(P-R)&&(t.zonedStart.getDay()+(P-R))%P<=j+(P-R)}))}))}))))})),e.currentTimeMarker&&h.intersects(h.first(G).start,h.last(G).end,new Date,new Date,!0)&&o.createElement(O.CurrentTimeMarker,{groupIndex:n}))}))),ee.map((function(t){return o.createElement(I,r({key:t.isRecurring?t.uid+":"+t.group.index+":"+t.range.index+":"+t.originalStart:t.uid+":"+t.group.index+":"+t.range.index},t,{onDataAction:e.onDataAction,viewItem:e.viewItem,item:e.item,form:e.form,editable:e.editable,vertical:!1}))}))),te.map((function(t){return o.createElement(I,r({key:t.isRecurring?t.uid+":"+t.group.index+":"+t.range.index+":"+t.originalStart:t.uid+":"+t.group.index+":"+t.range.index},t,{format:"t",onDataAction:e.onDataAction,viewItem:e.viewItem,item:e.item,form:e.form,editable:e.editable,vertical:!0}))})))))};t.defaultProps={name:"multi-day",title:"Multi Day",currentTimeMarker:!0,dateRange:function(e){var t=e.date,n=e.numberOfDays,r=void 0===n?1:n,o=e.timezone,i=a.ZonedDate.fromLocalDate(t,o),s=a.getDate(i),l=a.addDays(s,r),u=a.ZonedDate.fromUTCDate(h.toUTCDateTime(s),o),c=a.ZonedDate.fromUTCDate(h.toUTCDateTime(l),o);return{start:new Date(u.getTime()),end:new Date(c.getTime()),zonedStart:u,zonedEnd:c}},selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}",numberOfDays:1,startTime:"00:00",endTime:"23:59",isWorkDayStart:"08:00",isWorkDayEnd:"17:00",workWeekStart:a.Day.Monday,workWeekEnd:a.Day.Friday,step:1,slotDivisions:2,slotDuration:60,showCurrentTime:!0,defaultShowWorkHours:!0},t.MultiDayView.propTypes={currentTimeMarker:i.bool,name:i.string,numberOfDays:i.number,startTime:i.string,endTime:i.string,workDayStart:i.string,workDayEnd:i.string,workWeekStart:i.number,workWeekEnd:i.any,slotDivisions:i.number,slotDuration:i.number,showWorkHours:i.bool,selectedDateFormat:i.string,selectedShortDateFormat:i.string},t.MultiDayView.defaultProps=t.defaultProps,t.MultiDayView.displayName="KendoReactSchedulerMultiDayView"},function(e,t,n){"use strict";n.r(t),n.d(t,"expand",(function(){return Gt})),n.d(t,"parseRule",(function(){return Qt})),n.d(t,"serializeRule",(function(){return Jt}));var r={};n.r(r),n.d(r,"byMonth",(function(){return Et})),n.d(r,"byMonthDay",(function(){return St})),n.d(r,"byYearDay",(function(){return Dt})),n.d(r,"byWeekNumber",(function(){return xt})),n.d(r,"byWeekDay",(function(){return It})),n.d(r,"byHour",(function(){return Tt})),n.d(r,"byMinute",(function(){return _t})),n.d(r,"bySecond",(function(){return Pt}));var o=n(3),i=n(8),a=function(e){return e instanceof Array&&e.length>0},s=function(e){return a(e.bySecond)||a(e.byMinute)||a(e.byHour)||a(e.byYearDay)||a(e.byMonthDay)||a(e.byWeekDay)||a(e.byMonth)||a(e.byWeekNumber)},l=function(e){for(var t=e.split(";"),n=[],r=null,o=0;o<t.length;o++){var i=t[o].split(":"),a=i[0],s=i[1],l=void 0===s?"":s,u=a.indexOf("TZID");-1!==u&&(r=a.substring(u).split("=")[1]),n=l.split(",").map((function(e){return it(e,r)}))}return n.length&&null!==n[0]?n:null},u=function(e){var t=l(e);return null===t?null:t[0]},c={en:{name:"en",identity:{version:{_number:"$Revision: 12418 $",_cldrVersion:"29"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"€","symbol-alt-narrow":"€"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},day:{wide:"day",short:"day",narrow:"day"},weekday:{wide:"day of the week"},dayperiod:{wide:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},millisecond:{wide:"millisecond",short:"ms",narrow:"ms"},zone:{wide:"time zone"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};function d(e){return"string"==typeof e}var p=/\{(\d+)}?\}/g,f=function(e){var t=e.name,n=e.message;if(!t||!n)throw new Error("{ name: string, message: string } object is required!");this.name=t,this.message=n};f.prototype.formatMessage=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=h(e),r=this.message.replace(p,(function(e,t){return n[parseInt(t,10)]}));return this.name+": "+r},f.prototype.error=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new Error(this.formatMessage(e))};var h=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},m=function(e){return Object.keys(e).reduce((function(t,n){return t[n]=new f({name:n,message:e[n]}),t}),{})}({NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."});var v=c;function g(e){return d(e)?y(e):e}function y(e){if(v[e])return v[e];if(v.supplemental.likelySubtags){var t=e.split("-"),n=t[0],r=t.slice(1),o=function(e,t){for(var n=v.supplemental.likelySubtags,r=0;r<t.length;r++){var o=n[e+"-"+t[r]];if(o)return o}if(n[e])return n[e]}(n,r),i=o?function(e,t){var n=e.split("-"),r=n[0],o=n[1],i=n[2];return v[e]||-1!==t.indexOf(i)&&v[r+"-"+i]||-1!==t.indexOf(o)&&v[r+"-"+o]||v[r]}(o,r):null;if(i)return i}throw m.NoLocale.error(e)}function b(e){if(e.territory)return e.territory;var t,n=e.name,r=e.identity;return t=r&&r.territory?r.territory:function(e,t){var n=v.supplemental.likelySubtags,r=e.split("-");if(n){var o=n[e]||n[r[0]];o&&(r=o.split("-"))}if(t)for(var i=r.length-1;i>=1;i--){var a=r[i];a!==t.variant&&a!==t.script||r.splice(i,1)}var s=r.length;if(s>1)return r[s-1].toUpperCase()}(n,r),e.territory=t,t}function k(e,t){var n,r=t.type,o=t.nameType,i=t.standAlone,a=t.lower,s=i?"stand-alone":"format",l=(a?"lower-":"")+o,u=g(e).calendar[r][s],c=u[l];return!c&&a&&(c=u[l]=(n=u[o],Array.isArray(n)?function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toLowerCase());return t}(n):function(e){var t={};for(var n in e)t[n]=e[n].toLowerCase();return t}(n))),c}function C(e){var t=e.split("-"),n=parseInt(t[0],10),r=parseInt(t[1],10)-1,o=parseInt(t[2],10);return new Date(n,r,o)}var O=m.NoCurrency,w=m.NoCurrencyDisplay,E=m.NoSupplementalCurrency,S=m.NoCurrencyRegion,D=m.NoValidCurrency,x={"001":"USD",150:"EUR"};function I(e,t,n){var r=g(e).numbers.currencies;if(r){var o=r[t];if(o)return o;if(n)throw w.error()}else if(n)throw O.error()}function T(e,t){if(void 0===t&&(t=!0),x[e])return x[e];var n=v.supplemental.currencyData;if(n){var r=n.region[e];if(r)return function(e){for(var t,n,r,o,i=0;i<e.length;i++){var a=e[i],s=Object.keys(a)[0],l=a[s];if("XXX"!==s&&"false"!==l._tender&&l._from)if(l._to){if(!r){var u=C(l._from),c=C(l._to);(!n||n.to<c||n.from<u)&&(t=s,n={from:u,to:c})}}else{var d=C(l._from);(!o||o<d)&&(r=s,o=d)}}return r||t}(r);if(t)throw S.error(e)}else if(t)throw E.error()}function _(e,t){var n=g(e),r=n.numbers;if(!r.localeCurrency){var o=T(b(n),t);if(!o&&t)throw D.error(n.name);r.localeCurrency=o}return r.localeCurrency}var P=["sun","mon","tue","wed","thu","fri","sat"],N=m.NoWeekData,M=m.NoFirstDay;m.NoWeekData;function R(e){return 1/e==-1/0}function j(e,t){return void 0===t&&(t={}),t.currency||(t.currency=_(e,!0)),function(e,t){var n=t.value,r=t.currency,o=t.currencyDisplay;if(void 0===o&&(o="symbol"),"code"===o)return r;var i=I(e,r,!0);return"symbol"===o?i["symbol-alt-narrow"]||i.symbol:void 0===typeof n||1!==n?i["displayName-count-other"]:i["displayName-count-one"]}(e,t)}function F(e,t,n,r,o){var i=o.numbers.symbols,a=e.indexOf(i.decimal),s=r.groupSize.slice(),l=s.shift(),u=-1!==a?a:n+1,c=e.substring(t,u),d=e,p=c.length;if(p>=l){for(var f=p,h=[];f>-1;){var m=c.substring(f-l,f);m&&h.push(m),f-=l;var v=s.shift();if(0===(l=void 0!==v?v:l)){(m=c.substring(0,f))&&h.push(m);break}}c=h.reverse().join(i.group),d=e.substring(0,t)+c+e.substring(u)}return d}function A(e){return"currency"===e||"accounting"===e}function L(e,t,n){void 0===t&&(t=2),void 0===n&&(n=!1);var r=t-String(e).length,o=e;if(r>0){var i=new Array(r+1).join("0");o=n?e+i:i+e}return o}function V(e,t){var n=e,r=t||0;return n=n.toString().split("e"),n=(n=Math.round(Number(n[0]+"e"+(n[1]?Number(n[1])+r:r)))).toString().split("e"),(n=Number(n[0]+"e"+(n[1]?Number(n[1])-r:-r))).toFixed(Math.min(r,20))}var B=/0+$/;function z(e){var t,n=e.minimumFractionDigits,r=e.maximumFractionDigits,o=e.style,i=A(o);return i&&(t=function(e){var t=2,n=2,r=((v.supplemental.currencyData||{}).fractions||{})[e];return r&&r._digits&&(n=t=parseInt(r._digits,10)),{minimumFractionDigits:t,maximumFractionDigits:n}}(e.currency)),void 0===n&&(n=i?t.minimumFractionDigits:0),void 0===r&&(r="percent"===o?Math.max(n,0):i?Math.max(n,t.maximumFractionDigits):Math.max(n,3)),{minimumFractionDigits:n,maximumFractionDigits:r}}var H=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g;function U(e,t){var n=e.format;-1!==n.indexOf("%")&&(e.style="percent",e.symbol=t.numbers.symbols.percentSign,e.number*=100),-1!==n.indexOf("$")&&(e.style="currency",e.symbol=j(t))}function K(e){var t=e.format;if(t.indexOf("'")>-1||t.indexOf('"')>-1||t.indexOf("\\")>-1){var n=e.literals=[];e.format=t.replace(H,(function(e){var t=e.charAt(0).replace("\\",""),r=e.slice(1).replace(t,"");return n.push(r),"__??__"}))}}var W=/(\.(?:[0-9]*[1-9])?)0+$/g,q=/\.$/,Y=/\,/g;function G(e){var t,n,r,o=e.number,i=e.format,a=i.indexOf(".");if(-1!==a){var s=i.lastIndexOf("0")-a,l=i.lastIndexOf("#")-a,u=s>-1,c=l>-1,d=o.toString().split("e"),p=(d=(d=d[1]?V(o,Math.abs(d[1])):d[0]).split(".")[1]||"").length,f=-1;u||c?u&&s>l?p=s:l>s&&(c&&p>l?p=l:u&&p<s&&(p=s),f=u?s:0):(e.format=i.substring(0,a)+i.substring(a+1),a=-1,p=0),p>-1&&(o=V(o,p),f>-1&&(t=o,r=0===(n=f)?W:new RegExp("(\\.[0-9]{"+n+"}[1-9]*)0+$","g"),o=t.replace(r,"$1").replace(q,"")))}else o=V(o);e.negative&&-1*o>=0&&!e.negativeZero&&(e.negative=!1),e.number=o,e.decimalIndex=a}function Z(e,t,n){return-1===e&&-1!==t?t:-1!==e&&-1===t?e:n?Math.min(e,t):Math.max(e,t)}function X(e,t){var n=e.number;return-1!==e.start&&(n=function(e,t){var n=e;if(t)for(var r=t.length,o=0;o<r;o++)n=n.replace("__??__",t[o]);return n}(n=function(e,t,n){var r=e;if("currency"===t||"percent"===t){r="";for(var o=0,i=e.length;o<i;o++){var a=e.charAt(o);r+="$"===a||"%"===a?n:a}}return r}(n=function(e,t){var n=e.start,r=e.end,o=e.negative,i=e.negativeZero,a=e.format,s=e.decimalIndex,l=e.lastZeroIndex,u=e.hasNegativeFormat,c=e.hasGroup,d=e.number,p=d.toString().split("."),f=a.length,h=p[0],m=p[1]||"",v=h.length,g="";d=a.substring(0,n),!o&&!i||u||(d+="-");for(var y=n;y<f;y++){var b=a.charAt(y);if(-1===s){if(r-y<v){d+=h;break}}else if(-1!==l&&l<y&&(g=""),s-y<=v&&s-y>-1&&(d+=h,y=s),s===y){d+=(m?t.numbers.symbols.decimal:"")+m,y+=r-s+1;continue}"0"===b?(d+=b,g=b):"#"===b&&(d+=g)}return c&&(d=F(d,n+(o&&!u?1:0),Math.max(r,v+n),t.numbers.decimal,t)),r>=n&&(d+=a.substring(r+1)),d}(e,t),e.style,e.symbol),e.literals)),n}function Q(e,t,n){var r={negative:e<0,number:Math.abs(e),negativeZero:R(e),format:t};return function(e){var t=e.number,n=e.format;if(n=n.split(";"),(e.negative||e.negativeZero)&&n[1])n=n[1],e.hasNegativeFormat=!0;else if(0===t){var r=n[2];n=r||n[0],r&&function(e){return-1===e.indexOf("#")&&-1===e.indexOf("0")}(r)&&(e.constant=r)}else n=n[0];e.format=n}(r),r.constant?r.constant:(K(r),U(r,n),function(e){e.hasGroup=e.format.indexOf(",")>-1,e.hasGroup&&(e.format=e.format.replace(Y,""))}(r),G(r),function(e){var t=e.format,n=t.indexOf("#"),r=t.indexOf("0"),o=Z(n,r,!0),i=Z(n=t.lastIndexOf("#"),r=t.lastIndexOf("0"));o===t.length&&(i=o),e.start=o,e.end=i,e.lastZeroIndex=r}(r),X(r,n))}var $=/^(n|c|p|e|a)(\d*)$/i;function J(e){return d(e)?function(e){var t=$.exec(e);if(t){var n={style:"decimal"},r=t[1].toLowerCase();return"c"===r?n.style="currency":"a"===r?n.style="accounting":"p"===r?n.style="percent":"e"===r&&(n.style="scientific"),t[2]&&(n.minimumFractionDigits=n.maximumFractionDigits=parseInt(t[2],10)),n}}(e):e}function ee(e,t,n){if(void 0===t&&(t="n"),void 0===n&&(n="en"),null==e)return"";if(!isFinite(e))return String(e);var r,o=y(n),i=J(t);if(i){var a=i.style||"decimal";r=function(e,t,n){var r=n.numbers.symbols,o=t.style,i=A(o);if("scientific"===o)return(void 0!==t.minimumFractionDigits?e.toExponential(t.minimumFractionDigits):e.toExponential()).replace(".",r.decimal);var a,s=e;i&&(t.value=s,a=j(n,t)),"percent"===o&&(s*=100,a=r.percentSign);var l=z(t),u=l.minimumFractionDigits,c=(s=V(s,l.maximumFractionDigits))<0,d=R(e),p=s.split("."),f=p[0],h=L(p[1]?p[1].replace(B,""):"",u,!0);c&&(f=f.substring(1)),t.minimumIntegerDigits&&(f=L(f,t.minimumIntegerDigits));var m,v=!1!==t.useGrouping?F(f,0,f.length,t,n):f;if(h&&(v+=r.decimal+h),i&&"name"===t.currencyDisplay)m=function(e,t){var n=e.numbers.currency,r=1!==t?n["unitPattern-count-other"]:n["unitPattern-count-one"];return t<0&&(r=r.replace("n","-n")),r}(n,e);else{var g=t.patterns;m=c||d?g[1]||"-"+g[0]:g[0]}return"n"!==m||c?function(e,t,n){for(var r="",o=0,i=t.length;o<i;o++){var a=t.charAt(o);r+="n"===a?e:"$"===a||"%"===a?n:a}return r}(v,m,a):v}(e,Object.assign({},o.numbers[a],i),o)}else r=Q(e,t,o);return r}function te(e){return"number"==typeof e}var ne=/\{(\d+)}/g;function re(e){var t=arguments;return e.replace(ne,(function(e,n){return t[parseInt(n,10)+1]}))}var oe=[2,1,5,3,4],ie={};ie[(-2).toString()]=8,ie[(-1).toString()]=6,ie[2..toString()]=6,ie[1..toString()]=3;var ae={numeric:1,"2-digit":2,short:3,long:4,narrow:5},se=/[hHmsSzZoOvVxX]/;var le=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function(e){return e.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],ue={e:"c",E:"c",M:"L",Q:"q"},ce={},de={};function pe(e){return ce[e]||(ce[e]=new RegExp(e+"+")),ce[e]}function fe(e){for(var t=[],n=e.charAt(0),r=n,o=1;o<e.length;o++){var i=e.charAt(o);i===r?n+=i:(t.push(n),n=r=i)}return t.push(n),t}function he(e,t){var n,r,o=e.length,i=-Number.MAX_VALUE;for(var a in t){for(var s=[],l=a.replace("v","z"),u=0,c=0;c<o;c++){var d=e[c],p=(pe(d[0]).exec(l)||[])[0];if(p){if(l=l.replace(p,""),p.length!==d.length){var f=Math.max(Math.min(oe[p.length]-oe[d.length],2),-2);u-=ie[f]}}else u-=120;if(s.push(p),u<i)break}l.length&&(u-=20*fe(l).length),u>i&&(i=u,n=s,r=t[a])}r=r.replace("v","z");for(var h=0;h<o;h++){var m=n[h];if(m&&m!==e[h]){var v=n[h][0];r=r.replace(pe(v),e[h]),ue[v]&&(r=r.replace(pe(ue[v]),e[h]))}}return r}function me(e,t){var n=t.calendar.dateTimeFormats.availableFormats;if(n[e])return n[e];if(de[t.name]&&de[t.name][e])return de[t.name][e];var r,o=e.search(se);if(o>0){var i=e.substr(0,o),a=e.substr(o);r=re(t.calendar.dateTimeFormats.short,n[a]||he(fe(a),n),n[i]||he(fe(i),n))}else r=he(fe(e),n);return function(e,t,n){de[n]||(de[n]={}),de[n][e]=t}(e,r,t.name),r}function ve(e,t){var n,r=t.calendar;if(d(e))n=r.patterns[e]?r.patterns[e]:e;else if(e){if(e.pattern)return e.pattern;var o=e.skeleton;o||(e.datetime?n=re(r.dateTimeFormats[e.datetime],r.timeFormats[e.datetime],r.dateFormats[e.datetime]):e.date?n=r.dateFormats[e.date]:e.time?n=r.timeFormats[e.time]:o=function(e){for(var t=[],n=0;n<le.length;n++){var r=le[n],o=e[r.key];if(o){var i=r.specifier||r.getSpecifier(e);t.push(i.repeat(ae[o]))}}return t.join("")}(e)),o&&(n=me(o,t))}return n||(n=r.patterns.d),n}function ge(e){var t;return e<=3?t="abbreviated":4===e?t="wide":5===e?t="narrow":6===e&&(t="short"),t}function ye(e,t,n,r,o){return k(e,{type:t,nameType:ge(n),standAlone:r,lower:o})}function be(e){return"function"==typeof e}function ke(e){return Boolean(e)&&be(e.getTime)&&be(e.getMonth)}var Ce=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function Oe(e,t,n){var r=function(e){var t=g(e);if(!isNaN(t.firstDay))return t.firstDay;var n=v.supplemental.weekData;if(!n)throw N.error();var r=n.firstDay[b(t)]||n.firstDay["001"];if(!r)throw M.error();return t.firstDay=P.indexOf(r),t.firstDay}(n);return(e<r?7-r+e:e-r)+1}function we(e,t,n,r){return t<=2?L(e+1,t):ye(n,"months",t,r)[e]}function Ee(e,t,n,r){var o=Math.floor(e.getMonth()/3);return t<3?o+1:ye(n,"quarters",t,r)[o]}function Se(e,t,n){var r=n.shortHours,o=n.optionalMinutes,i=n.separator,a=n.localizedName,s=n.zZeroOffset,l=e.getTimezoneOffset()/60;if(0===l&&s)return"Z";var u=l<=0?"+":"-",c=Math.abs(l).toString().split("."),d=c[1]||0,p=u+(r?c[0]:L(c[0],2));(!d&&o||(p+=(i?":":"")+L(d,2)),a)&&(p=re(0===l?t.calendar.gmtZeroFormat:t.calendar.gmtFormat,p));return p}function De(e,t,n,r){return t<3?Oe(e.getDay(),0,n):ye(n,"days",t,r)[e.getDay()]}var xe={};function Ie(e,t,n){if(void 0===n&&(n="en"),!ke(e))return null==e?"":e;var r=y(n);return ve(t,r).replace(Ce,(function(t){var n=t.length;return t.includes("'")||t.includes('"')?t.slice(1,n-1):xe[t[0]](e,n,r)}))}function Te(e,t,n){var r=e.getTimezoneOffset(),o=new Date(e.getTime()+6e4*(t-n)),i=o.getTimezoneOffset();return new Date(o.getTime()+6e4*(i-r))}xe.d=function(e,t){return L(e.getDate(),t)},xe.E=function(e,t,n){return ye(n,"days",t)[e.getDay()]},xe.M=function(e,t,n){return we(e.getMonth(),t,n,!1)},xe.L=function(e,t,n){return we(e.getMonth(),t,n,!0)},xe.y=function(e,t){var n=e.getFullYear();return 2===t&&(n%=100),L(n,t)},xe.h=function(e,t){return L(e.getHours()%12||12,t)},xe.H=function(e,t){return L(e.getHours(),t)},xe.k=function(e,t){return L(e.getHours()||24,t)},xe.K=function(e,t){return L(e.getHours()%12,t)},xe.m=function(e,t){return L(e.getMinutes(),t)},xe.s=function(e,t){return L(e.getSeconds(),t)},xe.S=function(e,t){var n=e.getMilliseconds();return 0!==n?L(String(n/1e3).split(".")[1].substr(0,t),t,!0):L("",t)},xe.a=function(e,t,n){return ye(n,"dayPeriods",t)[e.getHours()<12?"am":"pm"]},xe.z=function(e,t,n){return Se(e,n,{shortHours:t<4,optionalMinutes:t<4,separator:!0,localizedName:!0})},xe.Z=function(e,t,n){return Se(e,n,{separator:t>3,localizedName:4===t,zZeroOffset:5===t})},xe.x=function(e,t,n){return Se(e,n,{optionalMinutes:1===t,separator:3===t||5===t})},xe.X=function(e,t,n){return Se(e,n,{optionalMinutes:1===t,separator:3===t||5===t,zZeroOffset:!0})},xe.G=function(e,t,n){var r=e.getFullYear()>=0?1:0;return ye(n,"eras",t)[r]},xe.e=De,xe.c=function(e,t,n){return De(e,t,n,!0)},xe.q=function(e,t,n){return Ee(e,t,n,!0)},xe.Q=Ee;var _e=/([+|\-]\d{1,2})(:?)(\d{2})?/,Pe=/^\/Date\((.*?)\)\/$/,Ne=/[+-]\d*/,Me={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},Re=/\d+/,je=/^ */,Fe=/ *$/,Ae=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],Le=["G","g","F","Y","y","M","m","D","d","y","T","t"];function Ve(e,t,n){return!(e>=t&&e<=n)}function Be(e,t){for(var n=t.format,r=t.idx,o=0;n[r]===e;)o++,r++;return o>0&&(r-=1),t.idx=r,o}function ze(e,t){var n=e?Me[e]||new RegExp("^\\d{1,"+e+"}"):Re,r=t.value.substr(t.valueIdx,e).match(n);return r?(r=r[0],t.valueIdx+=r.length,parseInt(r,10)):null}function He(e,t,n){for(var r,o,i,a=0,s=e.length,l=0,u=0;a<s;a++)o=(r=e[a]).length,i=t.value.substr(t.valueIdx,o),n&&(i=i.toLowerCase()),i===r&&o>l&&(l=o,u=a);return l?(t.valueIdx+=l,u+1):null}function Ue(e){var t=!1;return e.value.charAt(e.valueIdx)===e.format[e.idx]&&(e.valueIdx++,t=!0),t}function Ke(e,t,n){var r=n.shortHours,o=n.noSeparator,i=n.optionalMinutes,a=n.localizedName,s=n.zLiteral;if(e.UTC=!0,s&&"Z"===e.value.charAt(e.valueIdx))return e.valueIdx++,!1;if(a&&!He(function(e){var t=e.gmtFormat,n=e.gmtZeroFormat;if(!t)throw m.NoGMTInfo.error();return[t.replace("{0}","").toLowerCase(),n.replace("{0}","").toLowerCase()]}(t.calendar),e,!0))return!0;var l=_e.exec(e.value.substr(e.valueIdx,6));if(!l)return!a;var u=l[1],c=l[3],d=parseInt(u,10),p=l[2],f=parseInt(c,10);return!!(isNaN(d)||!r&&3!==u.length||!i&&isNaN(f)||o&&p)||(isNaN(f)&&(f=null),!!(Ve(d,-12,13)||f&&Ve(f,0,59))||(e.valueIdx+=l[0].length,e.hoursOffset=d,void(e.minutesOffset=f)))}function We(e,t,n){var r=Be(e,t),o=ye(n,"months",r,"L"===e,!0),i=r<3?ze(2,t):He(o,t,!0);if(null===i||Ve(i,1,12))return!0;t.month=i-1}function qe(e,t,n){var r=Be(e,t),o=ye(n,"days",r,"c"===e,!0),i=r<3?ze(1,t):He(o,t,!0);if(!i&&0!==i||Ve(i,1,7))return!0}var Ye={};function Ge(e,t){return""+je.exec(t)[0]+e+Fe.exec(t)[0]}function Ze(e,t,n){for(var r=ve(t,n).split(""),o={format:r,idx:0,value:Ge(e,t),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},i=r.length,a=!1;o.idx<i;o.idx++){var s=r[o.idx];if(a)"'"===s&&(a=!1),Ue(o);else if(Ye[s]){if(Ye[s](o,n))return null}else if("'"===s)a=!0,Ue(o);else if(!Ue(o))return null}return o.valueIdx<e.length?null:function(e){var t,n=e.year,r=e.month,o=e.day,i=e.hours,a=e.minutes,s=e.seconds,l=e.milliseconds,u=e.pmHour,c=e.UTC,d=e.hoursOffset,p=e.minutesOffset,f=null!==i||null!==a||s||null,h=new Date;return null===n&&null===r&&null===o&&f?(n=h.getFullYear(),r=h.getMonth(),o=h.getDate()):(null===n&&(n=h.getFullYear()),null===o&&(o=1)),u&&i<12&&(i+=12),c?(d&&(i+=-d),p&&(a+=-p*(d<0?-1:1)),t=new Date(Date.UTC(n,r,o,i,a,s,l))):function(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}(t=new Date(n,r,o,i,a,s,l),i),n<100&&t.setFullYear(n),t.getDate()!==o&&void 0===c?null:t}(o)||null}function Xe(e){if(e&&0===e.indexOf("/D")){var t=Pe.exec(e);if(t){t=t[1];var n=Ne.exec(t.substring(1));return t=new Date(parseInt(t,10)),n&&(r=n[0],o="-"===r.substr(0,1)?-1:1,i=r.substring(1),n=o*(i=60*parseInt(i.substr(0,2),10)+parseInt(i.substring(2),10)),t=Te(t,t.getTimezoneOffset(),0),t=Te(t,0,-1*n)),t}}var r,o,i}function Qe(e,t,n){if(void 0===n&&(n="en"),!e)return null;if(ke(e))return e;var r=String(e).trim(),o=Xe(r);if(o)return o;for(var i=y(n),a=t||function(e){for(var t=[],n=e.patterns,r=Le.length,o=0;o<r;o++)t.push(n[Le[o]]);return t.concat(Ae)}(i.calendar),s=(a=Array.isArray(a)?a:[a]).length,l=0;l<s;l++)if(o=Ze(r,a[l],i))return o;return o}Ye.d=function(e){Be("d",e);var t=ze(2,e);if(null===t||Ve(t,1,31))return!0;null===e.day&&(e.day=t)},Ye.E=function(e,t){if(null===He(ye(t,"days",Be("E",e),!1,!0),e,!0))return!0},Ye.M=function(e,t){return We("M",e,t)},Ye.L=function(e,t){return We("L",e,t)},Ye.y=function(e){var t=Be("y",e),n=ze(1===t?void 0:t,e);if(null===n)return!0;if(2===t){var r=(new Date).getFullYear();(n=r-r%100+n)>2029&&(n-=100)}e.year=n},Ye.h=function(e){Be("h",e);var t=ze(2,e);if(12===t&&(t=0),null===t||Ve(t,0,11))return!0;e.hours=t},Ye.K=function(e){Be("K",e);var t=ze(2,e);if(null===t||Ve(t,0,11))return!0;e.hours=t},Ye.a=function(e,t){var n=ye(t,"dayPeriods",Be("a",e),!1,!0),r=He([n.pm],e,!0);if(!r&&!He([n.am],e,!0))return!0;e.pmHour=r},Ye.H=function(e){Be("H",e);var t=ze(2,e);if(null===t||Ve(t,0,23))return!0;e.hours=t},Ye.k=function(e){Be("k",e);var t=ze(2,e);if(null===t||Ve(t,1,24))return!0;e.hours=24===t?0:t},Ye.m=function(e){Be("m",e);var t=ze(2,e);if(null===t||Ve(t,0,59))return!0;e.minutes=t},Ye.s=function(e){Be("s",e);var t=ze(2,e);if(null===t||Ve(t,0,59))return!0;e.seconds=t},Ye.S=function(e){var t=Be("S",e),n=e.value.substr(e.valueIdx,t),r=null;if(isNaN(parseInt(n,10))||(r=V(r=parseFloat("0."+n,10),3),r*=1e3,e.valueIdx+=t),null===r||Ve(r,0,999))return!0;e.milliseconds=r},Ye.z=function(e,t){var n=Be("z",e)<4,r=Ke(e,t,{shortHours:n,optionalMinutes:n,localizedName:!0});if(r)return r},Ye.Z=function(e,t){var n=Be("Z",e),r=Ke(e,t,{noSeparator:n<4,zLiteral:5===n,localizedName:4===n});if(r)return r},Ye.x=function(e,t){var n=Be("x",e),r=Ke(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n});if(r)return r},Ye.X=function(e,t){var n=Be("X",e),r=Ke(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n,zLiteral:!0});if(r)return r},Ye.G=function(e,t){var n=ye(t,"eras",Be("G",e),!1,!0);if(null===He([n[0],n[1]],e,!0))return!0},Ye.e=function(e,t){return qe("e",e,t)},Ye.c=function(e,t){return qe("c",e,t)};function $e(e,t,n){if(t){if(ke(e))return Ie(e,t,n);if(te(e))return ee(e,t,n)}return null!=e?e:""}var Je=function(e){if(!e||0===e.length)return"";var t=e[0].timezone,n="Etc/UTC"===t,r=n?"Z":"";return(t&&!n?";TZID="+t:"")+":"+e.map((function(e){return Ie(e,"yyyyMMddTHHmmss")+r})).join(",")+" "},et=function(e,t){if(!t)return!1;var n=t.start,r=t.end;return e<n||e>r||0===e&&n<0},tt=function(e,t){return e-t},nt=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=parseInt(e[r],10);if(isNaN(o)||et(o,t))return[];n.push(o)}return n.sort(tt)},rt=["yyyyMMddTHHmmssSSSXXX","yyyyMMddTHHmmssXXX","yyyyMMddTHHmmss","yyyyMMddTHHmm","yyyyMMddTHH","yyyyMMdd"];function ot(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))}var it=function(e,t){var n=Qe(e)||Qe(e,rt);if(!n)return null;var r=t?ot(n):n;return o.ZonedDate.fromUTCDate(r,t||"Etc/UTC")},at={SU:o.Day.Sunday,MO:o.Day.Monday,TU:o.Day.Tuesday,WE:o.Day.Wednesday,TH:o.Day.Thursday,FR:o.Day.Friday,SA:o.Day.Saturday},st=function(e){return at[e]},lt=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],o=st(r.substring(r.length-2).toUpperCase());if(void 0===o)return[];t.push({offset:parseInt(r.substring(0,r.length-2),10)||0,day:o})}return t},ut=function(e,t,n){void 0===n&&(n=1),t=(t-e.getUTCDay()+7*n)%7,e.setUTCDate(e.getUTCDate()+t)},ct=function(e,t){return e+(e<t?7:0)},dt=function(e,t){return e-t},pt=function(e,t){var n=7-(ot(Object(o.firstDayOfMonth)(e)).getUTCDay()+7-(t||7))||7;return n<0&&(n+=7),Math.ceil((e.getUTCDate()-n)/7)+1},ft=function(e,t){var n=(e=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))).getUTCFullYear();void 0!==t?(ut(e,t,-1),e.setUTCDate(e.getUTCDate()+4)):e.setUTCDate(e.getUTCDate()+(4-(e.getUTCDay()||7)));var r=Math.floor((e.getTime()-Date.UTC(n,0,1,-6))/864e5);return 1+Math.floor(r/7)},ht=function(e,t,n){var r=t.offset;if(!r)return pt(e,n);var o=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+1,0)),i=pt(o,n),a=ct(t.day,n),s=a<ct(new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1)).getUTCDay(),n),l=a>ct(o.getUTCDay(),n);return r<0?r=i+(r+1-(l?1:0)):s&&(r+=1),i-=l?1:0,r<(s?1:0)||r>i?null:r},mt=function(e,t,n){return pt(e,n)===ht(e,t,n)},vt=function(e,t){return pt(new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+1,0)),t)},gt=[0,31,60,91,121,152,182,213,244,274,305,335,366],yt=[0,31,59,90,120,151,181,212,243,273,304,334,365],bt=function(e){return(e=e.getUTCFullYear())%4==0&&e%100!=0||e%400==0},kt=function(e){var t=e.getUTCMonth();return(bt(e)?gt[t]:yt[t])+e.getUTCDate()},Ct=[31,28,31,30,31,30,31,31,30,31,30,31],Ot=function(e){var t=e.getUTCMonth();return 1===t?1===new Date(Date.UTC(e.getUTCFullYear(),1,29)).getUTCMonth()?29:28:Ct[t]},wt=function(e,t,n){for(var r=e.length,o=[],i=0;i<r;i++){var a=e[i];if(n&&(a=n(a)),t===a)return null;t<a&&o.push(a)}return o},Et=function(e,t,n){var r=n.byMonth,o=wt(r,e.getUTCMonth()+1),i=!1;return null!==o&&(o.length?e.setUTCMonth(o[0]-1,1):e.setUTCFullYear(e.getUTCFullYear()+1,r[0]-1,1),i=!0),i},St=function(e,t,n){var r,o=!1;function i(e){return e<0&&(e=r+e+1),e}for(;e<=t;){var a=e.getUTCMonth();r=Ot(e);var s=wt(n.byMonthDay,e.getUTCDate(),i);if(null===s)return o;if(o=!0,s.length){if(e.setUTCMonth(a,s.sort(dt)[0]),a===e.getUTCMonth())break}else e.setUTCMonth(a+1,1)}return o},Dt=function(e,t,n){var r,o=!1;function i(e){return e<0&&(e=r+e),e}for(;e<t;){r=bt(e)?366:365;var a=wt(n.byYearDay,kt(e),i);if(null===a)return o;if(o=!0,r=e.getUTCFullYear(),a.length){e.setUTCFullYear(r,0,a.sort(dt)[0]);break}e.setUTCFullYear(r+1,0,1)}return o},xt=function(e,t,n){var r=n.weekStart||o.Day.Monday,i=!1;function a(e){return e<0&&(e=53+e),e}for(;e<t;){var s=wt(n.byWeekNumber,ft(e,r),a);if(null===s)return i;i=!0;var l=e.getUTCFullYear();if(s.length){var u=7*s.sort(dt)[0]-1;e.setUTCFullYear(l,0,u),ut(e,r,-1);break}e.setUTCFullYear(l+1,0,1)}return i},It=function(e,t,n){var r=n.byWeekDay,i=n.weekStart||o.Day.Monday,a=function(e,t,n){for(var r,o,i,a,s=ct(t.getUTCDay(),n),l=e.length,u=[],c=0;c<l;c++)if(o=e[c],a=pt(t,n),null!==(r=ht(t,o,n)))if(a<r)u.push(o);else if(a===r)if(s<(i=ct(o.day,n)))u.push(o);else if(s===i)return null;return u}(r,e,i);if(null===a)return!1;a[0]||(a=r,ut(e,i));var s=a.map((function(n){var r=Object(o.cloneDate)(e),a=n.day;if(n.offset)for(;r<=t&&!mt(r,n,i);)pt(r,i)===vt(r,i)?r.setUTCMonth(r.getUTCMonth()+1,1):(r.setUTCDate(r.getUTCDate()+7),ut(r,i,-1));return r.getUTCDay()!==a&&ut(r,a),r})).sort((function(e,t){return e.getTime()-t.getTime()}))[0];return s&&e.setTime(s),!0},Tt=function(e,t,n){var r=n.byHour,o=!1,i=n._startTime,a=i.getUTCHours(),s=wt(r,a);return null!==s&&(o=!0,e.setUTCHours(a),s.length?(s=s[0],e.setUTCHours(s)):(s=e.getUTCHours(),e.setUTCDate(e.getUTCDate()+1),s=r[0],e.setUTCHours(s)),n.byMinute&&e.setUTCMinutes(0),i.setUTCHours(s,e.getUTCMinutes())),o},_t=function(e,t,n){var r=n.byMinute,o=e.getUTCMinutes(),i=wt(r,o),a=n._startTime.getUTCHours(),s=!1;return null!==i&&(s=!0,i.length?i=i[0]:(a+=1,i=r[0]),n.bySecond&&e.setUTCSeconds(0),e.setUTCHours(a,i),a%=24,n._startTime.setUTCHours(a,i,e.getUTCSeconds())),s},Pt=function(e,t,n){var r=n.bySecond,o=wt(r,e.getUTCSeconds()),i=n._startTime.getUTCHours(),a=e.getUTCMinutes(),s=!1;return null!==o&&(s=!0,o.length?e.setUTCSeconds(o[0]):(a+=1,e.setUTCMinutes(a,r[0]),a>59&&(a%=60,i=(i+1)%24)),n._startTime.setUTCHours(i,a,e.getUTCSeconds())),s},Nt=["byMonth","byWeekNumber","byYearDay","byMonthDay","byWeekDay","byHour","byMinute","bySecond"],Mt=Nt.length,Rt=function(e,t){var n;return 0!==e&&e<t?n=t-e:(n=e%t)&&(n=t-n),n},jt=function(){function e(){}return e.prototype.next=function(e,t){var n,r,o=t._startTime;if(t.bySecond)r=e.getUTCSeconds()+1,e.setUTCSeconds(r),o.setUTCSeconds(r);else{if(!t.byMinute)return!1;n=e.getUTCMinutes()+1,e.setUTCMinutes(n),o.setUTCMinutes(n)}return!0},e.prototype.normalize=function(e){var t=e.rule;4===e.idx&&t.byHour&&(t._startTime.setUTCHours(0),this._hour(e.date,t))},e.prototype.limit=function(e,t,n){for(var o,i=n.interval||1;e<=t;){var a=void 0,s=void 0,l=e.getUTCDate();for(o=0;o<Mt;o++){var u=Nt[o];if(n[u]){if(a=r[u](e,t,n),void 0!==s&&a)break;s=a}a&&this.normalize({date:e,rule:n,day:l,idx:o})}if((1===i||!this.interval(n,e))&&o===Mt)break}},e.prototype.interval=function(e,t){var n,r,i=e._startPeriod.toUTCDate(),a=t.getUTCHours(),l=e.weekStart,u=e.interval,c=e.freq,d=new Date(t),p=!1,f=0,h=0,m=1;if("hourly"===c)r=e._startTime.getUTCHours(),d=d.getTime(),a!==r&&(d+=(r-a)*o.MS_PER_HOUR),d-=i.getTime(),n=Math.floor(d/o.MS_PER_HOUR),0!==(f=Rt(n,u))&&(this._hour(t,e,f),p=!0);else if("daily"===c)!function(e,t){e.setTime(e.getTime()+t)}(d,-i),n=Math.round(d/o.MS_PER_DAY),0!==(f=Rt(n,u))&&(this._date(t,e,f),p=!0);else if("weekly"===c){f=this.getNumberOfWeeksBetweenDates(i,t),ct(t.getUTCDay(),l)<ct(i.getUTCDay(),l)&&(f+=1),0!==(f=Rt(f,u))&&(ut(t,e.weekStart,-1),t.setUTCDate(t.getUTCDate()+7*f),p=!0)}else"monthly"===c?(n=t.getUTCFullYear()-i.getUTCFullYear(),n=t.getUTCMonth()-i.getUTCMonth()+12*n,0!==(f=Rt(n,u))&&(m=s(e)?1:t.getDate(),t.setUTCFullYear(t.getUTCFullYear(),t.getUTCMonth()+f,m),p=!0)):"yearly"===c&&(n=t.getUTCFullYear()-i.getUTCFullYear(),f=Rt(n,u),e.byMonth||(h=t.getUTCMonth()),e.byYearDay||e.byMonthDay||e.byWeekDay||(m=t.getUTCDate()),0!==f&&(t.setUTCFullYear(t.getUTCFullYear()+f,h,m),p=!0));return p},e.prototype._hour=function(e,t,n){var r=t._startTime,o=r.getUTCHours();n&&(o+=n),e.setUTCHours(o),o%=24,r.setUTCHours(o)},e.prototype._date=function(e,t,n){e.setUTCDate(e.getUTCDate()+n)},e.prototype.getNumberOfWeeksBetweenDates=function(e,t){var n=(t.getTime()-e.getTime())/6048e5,r=Math.floor(n);return n-r>.99&&(r=Math.round(n)),r},e}(),Ft=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.b(t,e),t.prototype.next=function(e,t){return jt.prototype.next.call(this,e,t)||this._hour(e,t,1),!1},t.prototype.normalize=function(e){var t=e.rule;4===e.idx&&(t._startTime.setUTCHours(0),this._hour(e.date,t))},t}(jt),At=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.b(t,e),t.prototype.next=function(e,t){return jt.prototype.next.call(this,e,t)||this[t.byHour?"_hour":"_date"](e,t,1),!1},t}(jt),Lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.b(t,e),t.prototype.setup=function(e,t){e.byWeekDay||(e.byWeekDay=[{day:t.getUTCDay(),offset:0}])},t}(At),Vt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.b(t,e),t.prototype.next=function(e,t){var n;if(!jt.prototype.next.call(this,e,t))if(t.byHour)this._hour(e,t,1);else if(t.byMonthDay||t.byWeekDay||t.byYearDay||t.byWeekNumber)this._date(e,t,1);else{for(n=e.getUTCDate(),e.setUTCMonth(e.getUTCMonth()+1);e.getUTCDate()!==n;)e.setUTCDate(n);this._hour(e,t)}return!1},t.prototype.normalize=function(t){var n=t.rule,r=t.date;0!==t.idx||n.byMonthDay||n.byWeekDay?e.prototype.normalize.call(this,t):r.setUTCDate(t.day)},t.prototype.setup=function(e,t,n){e.byMonthDay||e.byWeekDay||n.setUTCDate(t.getUTCDate())},t}(jt),Bt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.b(t,e),t.prototype.next=function(e,t){var n;if(!jt.prototype.next.call(this,e,t))if(t.byHour)this._hour(e,t,1);else if(t.byMonthDay||t.byWeekDay||t.byYearDay||t.byWeekNumber)this._date(e,t,1);else if(t.byMonth){for(n=e.getUTCDate(),e.setUTCMonth(e.getUTCMonth()+1);e.getUTCDate()!==n;)e.setUTCDate(n);this._hour(e,t)}else e.setUTCFullYear(e.getUTCFullYear()+1),this._hour(e,t);return!1},t.prototype.setup=function(){},t}(Vt),zt={hourly:new Ft,daily:new At,weekly:new Lt,monthly:new Vt,yearly:new Bt},Ht=function(e){return o.ZonedDate.fromLocalDate(e.toLocalDate(),e.timezone)},Ut=function(e){return e.getHours()*o.MS_PER_HOUR+e.getMinutes()*o.MS_PER_MINUTE+1e3*e.getSeconds()+e.getMilliseconds()},Kt=function(e,t){if(!e)return!1;for(var n=t.getTime()-t.getMilliseconds(),r=e.length,o=0;o<r;o++)if(e[o].getTime()===n)return!0;return!1},Wt=function(e,t){var n=e.toUTCDate();switch(t.freq){case"yearly":n.setUTCFullYear(n.getUTCFullYear(),11,31);break;case"monthly":n.setUTCFullYear(n.getUTCFullYear(),n.getUTCMonth()+1,0);break;case"weekly":ut(n,t.weekStart,-1),n.setUTCDate(n.getUTCDate()+6)}return t.byHour&&n.setUTCHours(23),t.byMinute&&n.setUTCMinutes(59),t.bySecond&&n.setUTCSeconds(59),o.ZonedDate.fromUTCDate(n,e.timezone)},qt=function(e,t,n){for(var r,o=e.length,i=[],a=0,s=n.length;a<s;a++){(r=n[a])<0?r=o+r:r-=1;var l=e[r];l&&l.start>=t&&i.push(l)}return i},Yt=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];o&&!Kt(t,o.start)&&n.push(o)}return n};function Gt(e,t){var n=t.rangeStart,r=t.rangeEnd;if(!e)return{success:!0,errorMessage:"",events:[]};var i,a=e.freq,s=zt[a],l=e.start,u=function(e,t){return t.getTime()-e.getTime()}(e.start,e.end);if(e.start.getTime()>e.end.getTime())return{success:!1,errorMessage:"Invalid recurrence rule: Start date ("+e.start+")is greater than End date "+e.start,events:[]};if(!s)return{success:!1,errorMessage:'Invalid recurrence frequency "'+a+'"',events:[]};var c=[],d=e.bySetPosition,p=d?0:1,f=e.exceptionDates,h=n.toTimezone(l.timezone),m=h,v=r.toTimezone(l.timezone),g=e.count;e.until&&e.until.getTime()<v.getTime()&&(v=e.until.clone());var y=h.getHours(),b=h.getMinutes(),k=h.getSeconds(),C="yearly"===a||"monthly"===a||"weekly"===a;if(h.getTime()<l.getTime()||g||e.interval>1||C)h=l.clone();else{e.byHour||(y=l.getHours()),e.byMinute||(b=l.getMinutes()),e.bySecond||(k=l.getSeconds());var O=h.toUTCDate();O.setUTCHours(y,b,k,l.getMilliseconds()),h=o.ZonedDate.fromUTCDate(O,h.timezone)}if(e._startPeriod=h.clone(),d){if(h=function(e,t){var n=e.toUTCDate();switch(t.freq){case"yearly":n.setUTCFullYear(n.getFullYear(),0,1);break;case"monthly":n.setUTCFullYear(n.getFullYear(),n.getMonth(),1);break;case"weekly":ut(n,t.weekStart,-1)}return t.byHour&&n.setUTCHours(0),t.byMinute&&n.setUTCMinutes(0),t.bySecond&&n.setUTCSeconds(0),o.ZonedDate.fromUTCDate(n,e.timezone)}(h,e),v=Wt(v,e),Ut(v)-Ut(h)<0){var w=v.toUTCDate();w.setUTCHours(h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()),v=o.ZonedDate.fromUTCDate(w,v.timezone)}e._startPeriod=h.clone(),i=Wt(h,e)}var E=Ut(h);e._startTime=new Date(E);var S=h.toUTCDate();for(s.setup&&(s.setup(e,l,S),h=o.ZonedDate.fromUTCDate(S,h.timezone)),S=h.toUTCDate(),s.limit(S,v.toUTCDate(),e),h=o.ZonedDate.fromUTCDate(S,h.timezone);h<=v;){var D=h.addTime(u);if(((h>=m||D>m)&&!Kt(f,h)||d)&&(c.push({start:Ht(h),end:Ht(D)}),"hourly"!==a&&"minutely"!==a&&"secondly"!==a||(E=Ut(Ht(h)),e._startTime=new Date(E))),d){if(S=h.toUTCDate(),s.next(S,e),s.limit(S,v.toUTCDate(),e),(h=o.ZonedDate.fromUTCDate(S,h.timezone))>i){var x=qt(c.slice(p),l,d);x=Yt(x,f),c=c.slice(0,p).concat(x),i=Wt(h,e),p=c.length}if(g&&g===p)break}else{if(g&&g===p)break;p+=1,S=h.toUTCDate(),s.next(S,e),s.limit(S,v.toUTCDate(),e),h=o.ZonedDate.fromUTCDate(S,h.timezone)}}return{success:!0,errorMessage:"",events:c}}var Zt=function(e,t){return e+(e<t?7:0)},Xt=function(e){var t=e.byWeekDay,n=e.weekStart;t&&t.sort(function(e){return function(t,n){return Zt(t.day,e)-Zt(n.day,e)}}(n))},Qt=function(e){if(!e)return null;var t,n,r,o,i=e.recurrenceRule,a=e.weekStart,c=void 0===a?0:a,d={},p=0;if(!i)return null;var f=i.split("\n");for(f[1]||-1===i.indexOf("DTSTART")&&-1===i.indexOf("DTEND")&&-1===i.indexOf("EXDATE")||(f=i.split(" ")),p=0,r=f.length;p<r;p++){var h=(f[p]||"").trim();-1!==h.indexOf("DTSTART")?d.start=u(h):-1!==h.indexOf("DTEND")?d.end=u(h):-1!==h.indexOf("EXDATE")?d.exceptionDates=l(h):-1!==h.indexOf("RRULE")?o=h.substring(6):h.trim()&&(o=h)}for(p=0,r=(o=o.split(";")).length;p<r;p++)switch(n=((t=o[p].split("="))[1]||"").trim().split(","),t[0].trim().toUpperCase()){case"FREQ":d.freq=n[0].toLowerCase();break;case"UNTIL":d.until=it(n[0]);break;case"COUNT":d.count=parseInt(n[0],10);break;case"INTERVAL":d.interval=parseInt(n[0],10);break;case"BYSECOND":d.bySecond=nt(n,{start:0,end:60});break;case"BYMINUTE":d.byMinute=nt(n,{start:0,end:59});break;case"BYHOUR":d.byHour=nt(n,{start:0,end:23});break;case"BYMONTHDAY":d.byMonthDay=nt(n,{start:-31,end:31});break;case"BYYEARDAY":d.byYearDay=nt(n,{start:-366,end:366});break;case"BYMONTH":d.byMonth=nt(n,{start:1,end:12});break;case"BYDAY":d.byWeekDay=lt(n);break;case"BYWEEKNO":d.byWeekNumber=nt(n,{start:-53,end:53});break;case"BYSETPOS":d.bySetPosition=nt(n,{start:-366,end:366});break;case"WKST":d.weekStart=st(n[0])}return void 0===d.freq||void 0!==d.count&&d.until?null:(void 0===d.weekStart&&(d.weekStart=c),d.interval||(d.interval=1),d.bySetPosition&&!s(d)&&(d.bySetPosition=[]),Xt(d),d)},$t={0:"SU",1:"MO",2:"TU",3:"WE",4:"TH",5:"FR",6:"SA"},Jt=function(e,t){if(!e||!e.freq)return null;var n=e.weekStart,r="FREQ="+e.freq.toUpperCase(),o="",i="",a="",s=e.until;return e.interval>1&&(r+=";INTERVAL="+e.interval),e.count&&(r+=";COUNT="+e.count),s&&(r+=";UNTIL="+$e(s.toTimezone("Etc/UTC"),"yyyyMMddTHHmmss")+"Z"),e.byMonth&&(r+=";BYMONTH="+e.byMonth),e.byWeekNumber&&(r+=";BYWEEKNO="+e.byWeekNumber),e.byYearDay&&(r+=";BYYEARDAY="+e.byYearDay),e.byMonthDay&&(r+=";BYMONTHDAY="+e.byMonthDay),e.byWeekDay&&(r+=";BYDAY="+function(e){for(var t,n=e.length,r=[],o=0;o<n;o++){var i=e[o];"string"==typeof i?t=i:(t=""+$t[i.day],i.offset&&(t=i.offset+t)),r.push(t)}return r.toString()}(e.byWeekDay)),e.byHour&&(r+=";BYHOUR="+e.byHour),e.byMinute&&(r+=";BYMINUTE="+e.byMinute),e.bySecond&&(r+=";BYSECOND="+e.bySecond),e.bySetPosition&&(r+=";BYSETPOS="+e.bySetPosition),void 0!==n&&(r+=";WKST="+$t[n]),e.start&&(i="DTSTART"+Je([e.start])),e.end&&(a="DTEND"+Je([e.end])),e.exceptionDates&&(o="EXDATE"+Je(e.exceptionDates)),(i||a||o)&&(r=i+a+o+"RRULE:"+r),r}},function(e,t,n){"use strict";n.r(t),n.d(t,"getValueMap",(function(){return un})),n.d(t,"getMultiSelectTreeValue",(function(){return cn})),n.d(t,"AutoComplete",(function(){return se})),n.d(t,"AutoCompletePropsContext",(function(){return ae})),n.d(t,"DropDownList",(function(){return q})),n.d(t,"DropDownListPropsContext",(function(){return W})),n.d(t,"ComboBox",(function(){return ne})),n.d(t,"ComboBoxPropsContext",(function(){return te})),n.d(t,"MultiSelect",(function(){return ke})),n.d(t,"MultiSelectPropsContext",(function(){return be})),n.d(t,"MultiColumnComboBox",(function(){return De})),n.d(t,"MultiColumnComboBoxPropsContext",(function(){return Se})),n.d(t,"DropDownTree",(function(){return Xt})),n.d(t,"DropDownTreePropsContext",(function(){return Zt})),n.d(t,"MultiSelectTree",(function(){return sn})),n.d(t,"MultiSelectTreePropsContext",(function(){return an}));var r,o,i=n(0),a=n(1),s=n(2),l=n(6),u=n(9),c=(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(){return(d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.width,r=e.dir,o=e.itemsCount,a=e.popupSettings;return i.createElement(u.a,d({style:{width:n,direction:r},contentKey:o&&o.join()},a),t)},t}(i.Component),f=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.render=function(){var e=this;return i.createElement("span",{className:"k-list-filter"},i.createElement("input",{ref:function(t){return e.input=t},value:this.props.value||"",className:"k-textbox",onChange:this.props.onChange,onKeyDown:this.props.onKeyDown}),i.createElement("span",{className:"k-icon k-i-search"}))},t}(i.Component),m=function(e){return null!=e},v=function(e,t,n){if(!m(e))return!1;var r=String(e);return n&&(r=r.toLowerCase()),0===r.indexOf(t)},g=function(e,t,n){var r=-1;if(t){t=t.toLowerCase();for(var o=0;o<e.length;o++){var i=(b(e[o],n)||"")+"";if(i&&i.toLowerCase().startsWith(t)){r=o;break}}}return r},y=function(e,t,n,r){void 0===r&&(r=!1);var o=function(e){return r?e:e.toLowerCase()};return e.findIndex((function(e){return n?o(b(e,n))===o(t):o(t)===o(e.toString())}))},b=function(e,t){if(t&&m(e)){var n=t.split("."),r=e;return n.forEach((function(e){r=r?r[e]:void 0})),r}return e},k=function(e,t,n){t.forEach((function(t){var r=e.findIndex((function(e){return C(e,t,n)}));-1!==r&&e.splice(r,1)}))},C=function(e,t,n){return e===t||m(e)===m(t)&&b(e,n)===b(t,n)},O=function(e,t,n){if(t){var r=y(e,t,n,!0);return-1!==r?e[r]:e[g(e,t,n)]}return e[0]},w=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()},E=function(e,t,n){return!!e==!!t&&e.text===t.text&&(e===t||function(e,t,n){if(void 0===e&&(e=[]),void 0===t&&(t=[]),e===t)return!0;if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!C(e[r],t[r],n))return!1;return!0}(e.data,t.data,n))},S=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D=function(e){return e.preventDefault()},x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.defaultItem,r=e.textField;return i.createElement("div",{onClick:this.props.onClick,onMouseDown:D,className:Object(s.classNames)("k-list-optionlabel",{"k-state-selected":t})},b(n,r)||"")},t}(i.Component),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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),T=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){return t.props.onClick(t.props.index,e)},t}return I(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.group,r=e.dataItem,o=e.render,a=i.createElement("li",{id:this.props.id,role:"option","aria-selected":t,className:Object(s.classNames)("k-item",{"k-state-selected":t,"k-state-focused":this.props.focused,"k-first":Boolean(n)}),onClick:this.handleClick},b(r,this.props.textField).toString(),void 0!==n?i.createElement("div",{className:"k-group"},n):null);return void 0!==o?o.call(void 0,a,this.props):a},t}(i.Component),_=n(4),P="dropdowns.nodata",N="dropdowns.clear",M=((o={})[N]="clear",o[P]="NO DATA FOUND.",o),R=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return R(t,e),t.prototype.renderItems=function(){var e=this,t=this.props,n=t.textField,r=t.valueField,o=t.groupField,a=t.optionsGuid,s=t.skip,l=void 0===s?0:s,u=t.focusedIndex,c=t.highlightSelected,d=void 0===c||c,p=t.value,f=t.data,h=t.itemRender,m=Array.isArray(p);return f.map((function(t,s){var c,v,g=l+s,y=d&&(!m&&C(t,p,r)||m&&-1!==p.findIndex((function(e){return C(e,t,r)}))),k=void 0;return s>0&&void 0!==o&&(c=b(t,o),v=b(f[s-1],o),c&&v&&c!==v&&(k=c)),i.createElement(T,{id:"option-"+a+"-"+g,dataItem:t,selected:y,focused:u===s,index:g,key:g,onClick:e.props.onClick,textField:n,group:k,render:h})}))},t.prototype.renderNoValueElement=function(e){var t=this.props.noDataRender,n=i.createElement("div",{className:"k-nodata"},i.createElement("div",null,e.toLanguageString(P,M[P])));return t?t.call(void 0,n):n},t.prototype.render=function(){var e=Object(_.provideLocalizationService)(this),t=this.props,n=t.id,r=t.show,o=t.wrapperCssClass,a=t.wrapperStyle,s=t.listStyle,l=t.listRef,u=t.wrapperRef,c=t.listClassName,d=void 0===c?"k-list":c,p=this.renderItems();return p.length?i.createElement("div",{className:o,style:a,ref:u,onMouseDown:this.props.onMouseDown,onBlur:this.props.onBlur,onScroll:this.props.onScroll,unselectable:"on"},i.createElement("ul",{id:n,role:"listbox","aria-hidden":!r||void 0,className:d+" k-reset",ref:l,style:s},p)):this.renderNoValueElement(e)},t}(i.Component),F=j;Object(_.registerForLocalization)(j);var A=function(){function e(){var e=this;this.containerHeight=0,this.skip=0,this.total=0,this.enabled=!1,this.pageSize=0,this.itemHeight=0,this.prevScrollPos=0,this.listTranslate=0,this.scrollSyncing=!1,this.scrollerRef=function(t){var n=e;n.container=t,t&&(t.setAttribute("unselectable","on"),window.setTimeout(n.calcScrollElementHeight.bind(n),0))},this.calcScrollElementHeight=function(){e.scrollSyncing=!0;var t=!1;e.itemHeight=e.list?e.list.children[0].offsetHeight:e.itemHeight,e.containerHeight=Math.min(1533915,e.itemHeight*e.total);var n=e.containerHeight;return e.scrollElement&&(t=e.scrollElement.style.height!==n+"px")&&(e.scrollElement.style.height=n+"px"),e.scrollSyncing=!1,t},this.scrollHandler=this.scrollHandler.bind(this)}return Object.defineProperty(e.prototype,"translate",{get:function(){return this.listTranslate},enumerable:!0,configurable:!0}),e.prototype.changePage=function(e,t){var n=Math.min(Math.max(0,e),this.total-this.pageSize);n!==this.skip&&this.PageChange({skip:n,take:this.pageSize},t)},e.prototype.translateTo=function(e){this.listTranslate=e,this.list&&(this.list.style.transform="translateY("+e+"px)")},e.prototype.reset=function(){this.container&&(this.calcScrollElementHeight(),this.container.scrollTop=0,this.translateTo(0))},e.prototype.scrollToEnd=function(){this.container&&this.list&&(this.calcScrollElementHeight(),this.container.scrollTop=this.container.scrollHeight-this.container.offsetHeight,this.translateTo(this.container.scrollHeight-this.list.offsetHeight))},e.prototype.localScrollUp=function(e){var t,n=this.itemHeight,r=this.container.scrollTop,o=this.listTranslate,i=r-o;if(!(i>n)){for(t=0;t<this.skip&&!(o+n+i<=r);t++)o-=n;if(o=this.validateTranslate(o),this.skip-t<=0&&o>=r)return this.translateTo(0),this.changePage(0,e),void(this.container.scrollTop=0);o!==this.listTranslate&&(this.translateTo(o),this.changePage(this.skip-t,e))}},e.prototype.localScrollDown=function(e){var t,n=this.itemHeight,r=this.container.scrollTop,o=this.listTranslate,i=this.list.children.length;for(t=0;t<i&&!(o+n>=r);t++)o+=n;o=this.validateTranslate(o),t>=i&&this.skip+t>=this.total?(this.translateTo(o),this.changePage(this.total-1,e)):o!==this.listTranslate&&(this.translateTo(o),this.changePage(this.skip+t,e))},e.prototype.scrollNonStrict=function(e){var t=this.total*this.prevScrollPos/this.containerHeight,n=Math.min(Math.floor(t),this.total-1),r=this.containerHeight*t/this.total;r=this.validateTranslate(r),this.translateTo(r),this.changePage(n,e)},e.prototype.scrollHandler=function(e){var t=this.container?this.container.scrollTop:0,n=this.prevScrollPos;this.prevScrollPos=t,this.enabled&&this.list&&this.container&&!this.scrollSyncing&&(t-n<=0&&t>this.listTranslate-this.list.scrollHeight/10?this.localScrollUp(e):t-n>0&&t<this.listTranslate+2*this.list.scrollHeight/3?this.localScrollDown(e):this.scrollNonStrict(e))},e.prototype.validateTranslate=function(e){return e=Math.max(0,e),e=Math.min(this.containerHeight-this.list.offsetHeight,e)},e}(),L=function(){function e(){}return e.prototype.navigate=function(e){var t=e.keyCode;return t===s.Keys.up||t===s.Keys.left?this.next({current:e.current,min:e.min,max:e.max,step:-1}):t===s.Keys.down||t===s.Keys.right?this.next({current:e.current,min:e.min,max:e.max,step:1}):t===s.Keys.home?0:t===s.Keys.end?e.max:void 0},e.prototype.next=function(e){return m(e.current)?Math.min(e.max,Math.max(e.current+e.step,e.min)):e.min},e}(),V=function(){return(V=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},B=function(){function e(e){var t=this;this.vs=new A,this.navigation=new L,this.handleItemClick=function(e,n){var r=t.initState();r.syntheticEvent=n,t.component.handleItemSelect(e,r),t.togglePopup(r),t.applyState(r)},this.handleFocus=function(e){if(!t.component.state.focused){var n=t.initState();n.data.focused=!0,n.events.push({type:"onFocus"}),n.syntheticEvent=e,t.applyState(n)}},this.filterChanged=function(e,n){var r=t.component.props,o=r.textField;r.filterable&&n.events.push({type:"onFilterChange",filter:{field:o,operator:"contains",ignoreCase:!0,value:e}})},this.togglePopup=function(e){var n=t.component.props,r=void 0!==n.opened?n.opened:t.component.state.opened;void 0===n.opened&&(e.data.opened=!r),r?e.events.push({type:"onClose"}):(e.events.push({type:"onOpen"}),t.calculatePopupWidth())},this.pageChange=function(e,n){var r=t.initState();r.syntheticEvent=n,t.triggerOnPageChange(r,e.skip,e.take),t.applyState(r)},this.scrollToVirtualItem=function(e,n){var r=t.vs;if(r.enabled=!1,0===e.skip)r.reset();else if(e.skip+e.pageSize===e.total)r.scrollToEnd();else{var o=r.translate;0===o&&(r.calcScrollElementHeight(),o=r.itemHeight*e.skip,r.translateTo(o-r.itemHeight)),r.container&&(r.container.scrollTop=o),t.scrollToItem(n,!0)}window.setTimeout((function(){return r.enabled=!0}),10)},this.renderScrollWrapper=function(e,n){var r=t.getPopupSettings(),o=t.vs;return o.enabled?i.createElement("div",{onScroll:function(e){o.scrollHandler(e),n&&n.call(void 0,e)},ref:o.scrollerRef,style:{height:r.height,overflowY:"scroll"}},e):e},this.renderScrollElement=function(){var e=t.vs;return e.enabled&&i.createElement("div",{ref:function(t){return e.scrollElement=t},key:"scrollElementKey"})},this.listBoxId=Object(s.guid)(),this.guid=Object(s.guid)(),this.component=e,this.vs.PageChange=this.pageChange}return e.prototype.didMount=function(){var e=this.component.props,t=e.popupSettings||{},n=e.style||{},r=t.width,o=!0===e.opened;void 0===r&&this.calculatePopupWidth(),void 0===e.dir&&void 0===n.direction&&(this.calculateDir(),o=!0),o&&this.component.forceUpdate()},e.prototype.calculateDir=function(){var e=this.component.element;e&&e.ownerDocument&&e.ownerDocument.defaultView&&(this.dirCalculated=e.ownerDocument.defaultView.getComputedStyle(e).direction||void 0)},e.prototype.calculatePopupWidth=function(){this.wrapper&&(this.popupWidth=this.wrapper.offsetWidth+"px")},e.prototype.scrollToItem=function(e,t){var n=this.list||this.vs.list;if(n&&e>=0){var r=this.vs,o=r.container||n.parentNode,i=void 0!==t?t:r.enabled;!function(e,t,n,r,o){var i=e.offsetHeight,a=t.children.item(n),s=a.offsetTop+(o?r-e.scrollTop:0),l=a.offsetHeight;if(o){var u=0;s+l>i?u=s+l-i:s<0&&(u=s),0!==u?e.scrollTop+=u:0===e.scrollTop&&0!==r&&(e.scrollTop=r)}else s+l>i+e.scrollTop?e.scrollTop=s+l-i:s<e.scrollTop&&(e.scrollTop-=e.scrollTop-s)}(o,n,e,r.translate,i)}},e.prototype.initState=function(){return{data:{},events:[],syntheticEvent:void 0}},e.prototype.applyState=function(e){var t=this;Object.keys(e.data).length>0&&this.component.setState(e.data);var n={syntheticEvent:e.syntheticEvent,nativeEvent:e.syntheticEvent?e.syntheticEvent.nativeEvent:void 0,target:this.component,value:this.component.value};e.events.forEach((function(e){var r=e.type;delete e.type;var o=r&&t.component.props[r];o&&o.call(void 0,V({},n,e))}))},e.prototype.triggerOnPageChange=function(e,t,n){var r=this.component.props.virtual;if(r){var o=Math.min(Math.max(0,t),Math.max(0,r.total-n));o!==r.skip&&e.events.push({type:"onPageChange",page:{skip:o,take:n}})}},e.prototype.triggerPageChangeCornerItems=function(e,t){var n=this.component.props,r=n.data,o=void 0===r?[]:r,i=n.dataItemKey,a=n.virtual,s=void 0!==n.opened?n.opened:this.component.state.opened;e&&a&&this.vs.enabled&&(a.skip>0&&C(e,o[0],i)?this.triggerOnPageChange(t,a.skip-1,a.pageSize):!s&&a.skip+a.pageSize<a.total&&C(e,o[o.length-1],i)&&this.triggerOnPageChange(t,a.skip+1,a.pageSize))},e.prototype.getPopupSettings=function(){return Object.assign({},e.defaultProps.popupSettings,this.component.props.popupSettings)},e.basicPropTypes={opened:a.bool,disabled:a.bool,dir:a.string,tabIndex:a.number,accessKey:a.string,data:a.array,textField:a.string,className:a.string,label:a.string,loading:a.bool,popupSettings:a.shape({animate:a.oneOfType([a.bool,a.shape({openDuration:a.number,closeDuration:a.number})]),popupClass:a.string,className:a.string,appendTo:a.any,width:a.oneOfType([a.string,a.number]),height:a.oneOfType([a.string,a.number])}),onOpen:a.func,onClose:a.func,onFocus:a.func,onBlur:a.func,onChange:a.func,itemRender:a.func,listNoDataRender:a.func,focusedItemIndex:a.func,header:a.node,footer:a.node},e.propTypes=V({},e.basicPropTypes,{value:a.any,defaultValue:a.any,filterable:a.bool,filter:a.string,virtual:a.shape({pageSize:a.number.isRequired,skip:a.number.isRequired,total:a.number.isRequired}),onFilterChange:a.func,onPageChange:a.func}),e.defaultProps={popupSettings:{height:"200px"},required:!1,validityStyles:!0},e}(),z={name:"@progress/kendo-react-dropdowns",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639558382,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"},H=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),U=function(){return(U=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},K=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.base=new B(n),n.searchState={word:"",last:""},n._skipFocusEvent=!1,n._filterInput=null,n._navigated=!1,n.focus=function(){n.base.wrapper&&n.base.wrapper.focus()},n.handleItemSelect=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.virtual,s=r.dataItemKey,l=r.defaultItem,u=a?a.skip:0,c=-1===e&&void 0!==l?l:i[e-u],d=!C(c,n.value,s);n.triggerOnChange(c,t),d&&n.base.triggerPageChangeCornerItems(c,t)},n.renderDropDownWrapper=function(){var e=n.props,t=e.dataItemKey,r=e.data,o=void 0===r?[]:r,a=e.textField,l=e.disabled,u=e.tabIndex,c=e.loading,d=e.iconClassName,p=e.virtual,f=void 0===p?{skip:0}:p,h=e.valueRender,m=n.state.focused,v=void 0!==n.props.opened?n.props.opened:n.state.opened,g=n.value,y=o.findIndex((function(e){return C(e,g,t)})),k=b(g,a),O=i.createElement("span",{className:"k-input"},k),w=void 0!==h?h.call(void 0,O,g):O;return i.createElement("span",{ref:function(e){return n.base.wrapper=e},role:"listbox",tabIndex:Object(s.getTabIndex)(u,l),accessKey:n.props.accessKey,className:Object(s.classNames)("k-dropdown-wrap",{"k-state-focused":m,"k-state-disabled":l}),onKeyDown:n.handleKeyDown,onKeyPress:n.handleKeyPress,onClick:l?void 0:n.handleWrapperClick,"aria-disabled":l||void 0,"aria-haspopup":!0,"aria-expanded":v||!1,"aria-owns":n.base.listBoxId,"aria-activedescendant":v?"option-"+n.base.guid+"-"+(y+f.skip):void 0,"aria-label":n.props.label,"aria-labelledby":n.props.ariaLabelledBy,"aria-describedby":n.props.ariaDescribedBy,id:n.props.id,title:n.props.title},w,i.createElement("span",{className:"k-select"},i.createElement("span",{className:Object(s.classNames)("k-icon",d,{"k-i-arrow-s":!c&&!d,"k-i-loading":c&&!d})})),n.dummySelect(g))},n.dummySelect=function(e){return i.createElement("select",{name:n.props.name,ref:function(e){n._select=e},tabIndex:-1,"aria-hidden":!0,title:n.props.label,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},i.createElement("option",{value:n.props.valueMap?n.props.valueMap.call(void 0,e):e}))},n.renderListContainer=function(){var e=n.props,t=e.header,r=e.footer,o=e.dir,a=e.data,l=void 0===a?[]:a,u=n.base,c=u.getPopupSettings(),d=void 0!==n.props.opened?n.props.opened:n.state.opened,f=void 0!==n.props.virtual,h=void 0!==c.width?c.width:u.popupWidth,m={dir:void 0!==o?o:u.dirCalculated,width:h,popupSettings:{popupClass:c.popupClass,className:Object(s.classNames)("k-list-container k-reset",c.className),animate:c.animate,anchor:n.element,show:d,onOpen:n.onPopupOpened,onClose:n.onPopupClosed,appendTo:c.appendTo},itemsCount:[l.length]};return i.createElement(p,U({},m),n.renderListFilter(),f&&n.renderDefaultItem(),f&&t,n.base.renderScrollWrapper(i.createElement(i.Fragment,null,!f&&n.renderDefaultItem(),!f&&t,n.renderList(),!f&&r,n.base.renderScrollElement())),f&&r)},n.renderList=function(){var e=n.props,t=e.data,r=void 0===t?[]:t,o=e.textField,a=e.dataItemKey,s=e.virtual,l=void 0===s?{skip:0}:s,u=e.listNoDataRender,c=e.itemRender,d=n.base.vs,p=l.skip,f=void 0!==n.props.opened?n.props.opened:n.state.opened,h=n.base.getPopupSettings(),m="translateY("+d.translate+"px)";return i.createElement(F,{id:n.base.listBoxId,show:f,data:r.slice(),focusedIndex:n.focusedIndex(),value:n.value,textField:o,valueField:a,optionsGuid:n.base.guid,listRef:function(e){return d.list=n.base.list=e},wrapperStyle:d.enabled?{float:"left",width:"100%"}:{maxHeight:h.height},wrapperCssClass:d.enabled?void 0:"k-list-scroller",listStyle:d.enabled?{transform:m}:void 0,key:"listkey",skip:p,onClick:n.handleItemClick,itemRender:c,noDataRender:u})},n.renderListFilter=function(){var e=void 0!==n.props.filter?n.props.filter:n.state.text;return n.props.filterable&&i.createElement(h,{value:e,ref:function(e){return n._filterInput=e&&e.input},onChange:n.handleListFilterChange,onKeyDown:n.handleKeyDown})},n.renderDefaultItem=function(){var e=n.props,t=e.textField,r=e.defaultItem,o=e.dataItemKey;return void 0!==r&&i.createElement(x,{defaultItem:r,textField:t,selected:C(n.value,r,o),key:"defaultitemkey",onClick:n.handleDefaultItemClick})},n.search=function(e){clearTimeout(n._typingTimeout),n.props.filterable||(n._typingTimeout=window.setTimeout((function(){return n.searchState.word=""}),n.props.delay),n.selectNext(e))},n.selectNext=function(e){var t,r=n.props,o=r.data,i=void 0===o?[]:o,a=r.dataItemKey,s=i.map((function(e,t){return{item:e,itemIndex:t}})),l=n.searchState.word,u=n.searchState.last,c=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0}(l,u),d=s.length,p=Math.max(0,i.findIndex((function(e){return C(e,n.value,a)})));n.props.defaultItem&&(t={item:n.props.defaultItem,itemIndex:-1},d+=1,p+=1),s=function(e,t,n){var r=e;return n&&(r=[n].concat(r)),r.slice(t).concat(r.slice(0,t))}(s,p+=c?1:0,t);for(var f,h,m,g=0,y=n.props,k=y.textField,O=y.ignoreCase;g<d;g++)if(f=b(s[g].item,k),h=c&&v(f,u,O),m=v(f,l,O),h||m){g=s[g].itemIndex;break}if(g!==d){var w=n.base.initState();w.syntheticEvent=e,n.handleItemSelect(g,w),n.applyState(w),n._valueDuringOnChange=void 0}},n.handleKeyDown=function(e){var t=n.props,r=t.data,o=void 0===r?[]:r,i=t.filterable,a=t.disabled,l=t.leftRightKeysNavigation,u=void 0===l||l,c=t.virtual,d=void 0===c?{skip:0,total:0,pageSize:0}:c,p=void 0!==n.props.opened?n.props.opened:n.state.opened,f=e.keyCode,h=f===s.Keys.home||f===s.Keys.end,m=f===s.Keys.up||f===s.Keys.down,v=!p&&(e.altKey&&f===s.Keys.down||f===s.Keys.enter||f===s.Keys.space),g=p&&(e.altKey&&f===s.Keys.up||f===s.Keys.esc),y=u&&(f===s.Keys.left||f===s.Keys.right),b=m||!i&&(y||h),k=n.base.initState();if(k.syntheticEvent=e,!a){if(h&&n.base.vs.enabled)f===s.Keys.home?0!==d.skip?(n.base.triggerOnPageChange(k,0,d.pageSize),n._navigated=!0):n.triggerOnChange(o[0],k):d.skip<d.total-d.pageSize?(n.base.triggerOnPageChange(k,d.total-d.pageSize,d.pageSize),n._navigated=!0):n.triggerOnChange(o[o.length-1],k);else if(p&&f===s.Keys.enter){var C=n.focusedIndex();void 0!==C&&n.handleItemSelect(C,k),n.base.togglePopup(k),e.preventDefault()}else v||g?(n.base.togglePopup(k),e.preventDefault()):b&&(n.onNavigate(k,f),e.preventDefault());n.applyState(k)}},n.handleItemClick=function(e,t){n.base.handleItemClick(e,t),n._valueDuringOnChange=void 0},n.handleFocus=function(e){n._skipFocusEvent||n.base.handleFocus(e)},n.handleBlur=function(e){if(!n._skipFocusEvent&&n.state.focused){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n.base.initState();r.syntheticEvent=e,r.data.focused=!1,r.events.push({type:"onBlur"}),t&&n.base.togglePopup(r),n.applyState(r)}},n.handleDefaultItemClick=function(e){var t=n.base.initState();t.syntheticEvent=e,n.base.togglePopup(t),n.triggerOnChange(n.props.defaultItem,t),n.applyState(t)},n.handleWrapperClick=function(e){var t=n.base.initState();t.syntheticEvent=e,n.state.focused||(t.data.focused=!0),n.base.togglePopup(t),n.applyState(t)},n.handleKeyPress=function(e){if(!n.props.filterable&&0!==e.which&&e.keyCode!==s.Keys.enter){var t=String.fromCharCode(e.charCode||e.keyCode);n.props.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),n.searchState={word:n.searchState.word+t,last:n.searchState.last+t},n.search(e)}},n.handleListFilterChange=function(e){var t=n.base.initState();t.syntheticEvent=e,void 0===n.props.filter&&(t.data.text=e.target.value),n.base.filterChanged(e.target.value,t),n.applyState(t)},n.onPopupOpened=function(){n._filterInput&&n.focusElement(n._filterInput)},n.onPopupClosed=function(){n.state.focused&&window.setTimeout((function(){n.state.focused&&n.base.wrapper&&n.focusElement(n.base.wrapper)}))},n.setValidity=function(){n._select&&n._select.setCustomValidity&&n._select.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please select a value from the list!")},Object(s.validatePackage)(z),n}return H(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actionElement",{get:function(){return this.base.wrapper},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e;return void 0!==this._valueDuringOnChange?e=this._valueDuringOnChange:void 0!==this.props.value?e=this.props.value:void 0!==this.state.value?e=this.state.value:void 0!==this.props.defaultValue&&(e=this.props.defaultValue),m(e)||void 0===this.props.defaultItem||(e=this.props.defaultItem),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){var e=this.props,t=e.data,n=void 0===t?[]:t,r=e.dataItemKey,o=this.value;return n.findIndex((function(e){return C(e,o,r)}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=!this.required||null!==this.value&&""!==this.value&&void 0!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.dataItemKey,a=n.virtual,s=e.virtual?e.virtual.total:0,l=void 0!==this.props.opened?this.props.opened:this.state.opened,u=void 0!==e.opened?e.opened:t.opened,c=!u&&l;if(this.base.getPopupSettings().animate||c&&this.onPopupOpened(),a&&a.total!==s)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var d=this.value,p=void 0!==e.value?e.value:t.value,f=o.findIndex((function(e){return C(e,d,i)})),h=!C(p,d,i);c&&a?this.base.scrollToVirtualItem(a,f):c&&!a||l&&u&&d&&h&&!this._navigated?this.base.scrollToItem(f):l&&u&&this._navigated&&(this._navigated&&a&&0===a.skip?this.base.vs.reset():this._navigated&&a&&a.skip===a.total-a.pageSize&&this.base.vs.scrollToEnd())}this._navigated=!1,this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var e=this,t=this.props,n=t.style,r=t.className,o=t.label,a=t.dir,u=t.virtual,c=void 0!==this.props.opened?this.props.opened:this.state.opened,d=b(this.value,this.props.textField),p=!this.validityStyles||this.validity.valid,f=this.base;f.vs.enabled=void 0!==u,void 0!==u&&(f.vs.skip=u.skip,f.vs.total=u.total,f.vs.pageSize=u.pageSize);var h=i.createElement("span",{ref:function(t){return e._element=t},className:Object(s.classNames)("k-widget k-dropdown",{"k-state-invalid":!p},r),style:o?U({},n,{width:void 0}):n,dir:a,onMouseDown:c?w:void 0,onFocus:this.handleFocus,onBlur:this.handleBlur},this.renderDropDownWrapper(),this.renderListContainer());return o?i.createElement(l.FloatingLabel,{label:o,editorValue:d,editorValid:p,editorDisabled:this.props.disabled,style:{width:n?n.width:void 0},children:h}):h},t.prototype.onNavigate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.defaultItem,a=n.dataItemKey,s=n.virtual,l=void 0===s?{skip:0,total:0,pageSize:0}:s,u=this.base.vs,c=this.value,d=o.findIndex((function(e){return C(e,c,a)})),p=this.base.navigation.navigate({current:l.skip+d,max:(u.enabled?l.total:o.length)-1,min:void 0!==i?-1:0,keyCode:t});void 0!==p&&this.handleItemSelect(p,e),this.applyState(e)},t.prototype.focusedIndex=function(){var e=m(this.props.filter)?this.props.filter:this.state.text,t=this.props,n=t.data,r=void 0===n?[]:n,o=t.virtual,i=void 0===o?{skip:0}:o,a=t.dataItemKey,s=t.textField,l=t.focusedItemIndex,u=this.value,c=!(r.findIndex((function(e){return C(e,u,a)}))<0&&!this.props.defaultItem);return!c&&e&&0===i.skip?l?l(r,e,s):r.indexOf(O(r,e,s)):c||0!==i.skip?void 0:0},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),window.setTimeout((function(){return t._skipFocusEvent=!1}),30)},t.prototype.triggerOnChange=function(e,t){C(this.value,e,this.props.dataItemKey)||(void 0===this.props.value&&(t.data.value=e),this._valueDuringOnChange=e,t.events.push({type:"onChange"}))},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.displayName="DropDownList",t.propTypes=U({delay:a.number,ignoreCase:a.bool,iconClassName:a.string,defaultItem:a.any,valueRender:a.func,valueMap:a.func,validationMessage:a.string,required:a.bool,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,leftRightKeysNavigation:a.bool,title:a.string},B.propTypes),t.defaultProps=U({delay:500,tabIndex:0,ignoreCase:!0},B.defaultProps,{required:!1}),t}(i.Component),W=Object(s.createPropsContext)(),q=Object(s.withPropsContext)(W,K);q.displayName="KendoReactDropDownList";var Y=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),G=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){return e.preventDefault()},t}return Y(t,e),t.prototype.render=function(){var e=Object(_.provideLocalizationService)(this).toLanguageString(N,M[N]);return i.createElement("span",{className:"k-icon k-clear-value k-i-close",role:"button",onClick:this.props.onClick,onMouseDown:this.onMouseDown,tabIndex:-1,title:e,key:"clearbutton"})},t}(i.Component),Z=G;Object(_.registerForLocalization)(G);var X=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return X(t,e),Object.defineProperty(t.prototype,"input",{get:function(){return this._input},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e){var t=e.value,n=e.suggestedText,r=this.props,o=r.value,i=r.suggestedText,a=r.focused,s=this.input,l=t!==o||i!==n,u=l&&t.startsWith(o)&&!(n&&i&&n.endsWith(i));a&&s&&document.activeElement!==s&&s.focus(),i&&l&&!u&&s&&s.setSelectionRange(o.length-i.length,o.length)},t.prototype.render=function(){var e=this,t=this.props,n=t.expanded,r=void 0!==n&&n,o=t.disabled,a=t.role,s=void 0===a?"listbox":a,l=t.render,u=i.createElement("span",{className:"k-searchbar",key:"searchbar"},i.createElement("input",{autoComplete:"off",id:this.props.id,type:"text",size:this.props.size,placeholder:this.props.placeholder,className:"k-input",tabIndex:this.props.tabIndex,accessKey:this.props.accessKey,role:s,name:this.props.name,value:this.props.value,onChange:this.props.onChange,ref:function(t){return e._input=t},onKeyDown:this.props.onKeyDown,onFocus:this.props.onFocus,onBlur:this.props.onBlur,"aria-disabled":o||void 0,disabled:o||void 0,readOnly:this.props.readOnly||void 0,"aria-haspopup":"listbox","aria-expanded":r,"aria-owns":this.props.owns,"aria-activedescendant":r?this.props.activedescendant:void 0,"aria-describedby":this.props.ariaDescribedBy,"aria-labelledby":this.props.ariaLabelledBy}));return[l?l.call(void 0,u):u,!this.props.loading&&this.props.clearButton&&i.createElement(Z,{onClick:this.props.clearButtonClick,key:"clearbutton"}),this.props.loading&&i.createElement("span",{className:"k-icon k-i-loading",key:"loading"})]},t}(i.Component),$=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),J=function(){return(J=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ee=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.base=new B(n),n._inputId=Object(s.guid)(),n._suggested="",n.itemHeight=0,n.focus=function(){n._input&&n._input.focus()},n.handleItemSelect=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.virtual,s=r.dataItemKey,l=i[e-(a?a.skip:0)],u=!C(l,n.value,s);n.triggerOnChange(l,t),void 0!==n.state.text&&(t.data.text=void 0),u&&n.base.triggerPageChangeCornerItems(l,t)},n.toggleBtnClick=function(e){var t=n.base.initState();t.syntheticEvent=e,n.base.togglePopup(t),n.applyState(t)},n.onScroll=function(e){var t=n.props,r=t.data,o=void 0===r?[]:r,i=t.groupField;if(i&&o.length){for(var a=n.base,s=a.vs,l=a.list,u=n.itemHeight=n.itemHeight||(s.enabled?s.itemHeight:l?l.children[0].offsetHeight:0),c=e.target.scrollTop-s.skip*u,d=o[0][i],p=1;p<o.length&&!(u*p>c);p++)o[p]&&o[p][i]&&(d=o[p][i]);d!==n.state.group&&n.setState({group:d})}},n.handleItemClick=function(e,t){n.base.handleItemClick(e,t),n._valueDuringOnChange=void 0},n.handleBlur=function(e){if(n.state.focused){var t=n.base.initState();t.data.focused=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,n.applyValueOnRejectSuggestions(e.currentTarget.value,t)}},n.onInputKeyDown=function(e){var t=e.keyCode,r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=n.base.initState();if(o.syntheticEvent=e,!e.altKey&&(t===s.Keys.up||t===s.Keys.down))return e.preventDefault(),n.onNavigate(o,t),void n.applyState(o);var i=function(){e.preventDefault(),n.base.togglePopup(o),n.applyState(o)};r?e.altKey&&t===s.Keys.up?i():t===s.Keys.enter?(e.preventDefault(),n.applyValueOnEnter(e.currentTarget.value,o)):t===s.Keys.esc&&n.applyValueOnRejectSuggestions(e.currentTarget.value,o):e.altKey&&t===s.Keys.down&&i()},n.inputOnChange=function(e){var t=n.base.initState();t.syntheticEvent=e;var r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=e.currentTarget,i=o.value;if(n.props.suggest){var a=o.selectionEnd===i.length,s=void 0!==n.props.filter?n.props.filter:n.state.text;m(s)||(s=b(n.value,n.props.textField)||"");var l=s&&s===i,u=s&&s.length>i.length;l||u||!a?n._suggested="":n.suggestValue(i)}void 0===n.props.filter&&(t.data.text=i),void 0!==n.state.focusedItem&&(t.data.focusedItem=void 0),r||n.base.togglePopup(t),n.base.filterChanged(i,t),n.applyState(t)},n.clearButtonClick=function(e){var t=n.base.initState();t.syntheticEvent=e,e.stopPropagation(),n._suggested="",n.base.filterChanged("",t),void 0===n.props.filter&&void 0!==n.state.text&&(t.data.text=void 0),n.triggerOnChange(null,t),(void 0!==n.props.opened?n.props.opened:n.state.opened)&&n.base.togglePopup(t),n.applyState(t)},n.setValidity=function(){n._input&&n._input.setCustomValidity&&n._input.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please enter a valid value!")},Object(s.validatePackage)(z),n}return $(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this._valueDuringOnChange?this._valueDuringOnChange:void 0!==this.props.value?this.props.value:void 0!==this.state.value?this.state.value:void 0!==this.props.defaultValue?this.props.defaultValue:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){var e=this.props,t=e.data,n=void 0===t?[]:t,r=e.dataItemKey,o=this.value;return n.findIndex((function(e){return C(e,o,r)}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=!this.required||null!==this.value&&""!==this.value&&void 0!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.dataItemKey,a=n.virtual,s=e.virtual?e.virtual.total:0,l=void 0!==this.props.opened?this.props.opened:this.state.opened,u=void 0!==e.opened?e.opened:t.opened,c=!u&&l,d=this.value;if(this._valueOnDidUpdate=d,a&&a.total!==s)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var p=void 0!==e.value?e.value:t.value,f=o.findIndex((function(e){return C(e,d,i)})),h=!C(p,d,i);c&&a?this.base.scrollToVirtualItem(a,f):(c&&!a||l&&u&&d&&h)&&this.base.scrollToItem(f)}c&&this._input&&this._input.focus(),this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var e=this,n=this.props,r=n.dir,o=n.disabled,a=n.clearButton,u=void 0===a?t.defaultProps.clearButton:a,c=n.label,d=n.textField,p=n.className,f=n.style,h=n.loading,v=n.iconClassName,g=n.virtual,y=this.state.focused,k=!this.validityStyles||this.validity.valid,C=void 0!==this.props.filter?this.props.filter:this.state.text,O=b(this.value,d),w=m(C)?C:O,E=u&&(!!w||m(this.value)),S=this.base,D=S.vs,x=this.props.id||this._inputId;D.enabled=void 0!==g,void 0!==g&&(D.skip=g.skip,D.total=g.total,D.pageSize=g.pageSize);var I=i.createElement("span",{className:Object(s.classNames)("k-widget k-combobox",{"k-combobox-clearable":u,"k-state-invalid":!k},p),ref:function(t){return e._element=t},style:c?J({},f,{width:void 0}):f,dir:r},i.createElement("span",{ref:function(e){return S.wrapper=e},className:Object(s.classNames)("k-dropdown-wrap",{"k-state-disabled":o,"k-state-focused":y&&!o})},this.renderSearchBar(E,w||"",x),i.createElement("span",{className:"k-select",onClick:this.toggleBtnClick,onMouseDown:function(e){return e.preventDefault()}},i.createElement("span",{className:Object(s.classNames)("k-icon",v,{"k-i-arrow-s":!h&&!v,"k-i-loading":h&&!v})}))),this.renderListContainer());return c?i.createElement(l.FloatingLabel,{label:c,editorId:x,editorValue:w,editorValid:k,editorDisabled:o,style:{width:f?f.width:void 0},children:I}):I},t.prototype.onNavigate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.virtual,a=void 0===i?{skip:0}:i,s=this.props.filter?this.props.filter:this.state.text,l=this.getFocusedIndex(),u=this.base.vs,c=this.value;if(this._suggested="",-1===l||m(c))if(""===s)this.handleItemSelect(0,e);else{var d=a.skip+l,p=this.base.navigation.navigate({keyCode:t,current:d,max:(u.enabled?u.total:o.length)-1,min:0});void 0!==p&&this.handleItemSelect(p,e)}else this.handleItemSelect(l,e)},t.prototype.applyValueOnEnter=function(e,t){var n,r=this.props,o=r.data,i=void 0===o?[]:o,a=r.textField,s=r.allowCustom,l=void 0!==this.props.opened?this.props.opened:this.state.opened,u=b(this.value,a)===e?this.index:y(i,e,a),c=-1!==u,d=void 0;if(this._suggested="",c)d=i[u];else{if(!s)return this.selectFocusedItem(e,t);d=void 0!==a?((n={})[a]=e,n):e}this.triggerOnChange(d,t),l&&this.base.togglePopup(t),void 0===this.props.filter&&void 0!==this.state.text&&(t.data.text=void 0),this.applyState(t)},t.prototype.applyValueOnRejectSuggestions=function(e,t){var n,r=this.props,o=r.data,i=void 0===o?[]:o,a=r.textField,s=r.allowCustom,l=void 0!==this.props.opened?this.props.opened:this.state.opened,u=b(this.value,a);if(this._suggested="",e===u||""===e&&!m(u))return l&&this.base.togglePopup(t),this.applyState(t);var c=y(i,e,a,!0),d=null;-1!==c?d=i[c]:s&&(d=e?a?((n={})[a]=e,n):e:null),this.triggerOnChange(d,t),void 0!==this.state.text&&(t.data.text=void 0,this.base.filterChanged("",t)),l&&this.base.togglePopup(t),this.applyState(t)},t.prototype.selectFocusedItem=function(e,t){var n=void 0!==this.props.opened?this.props.opened:this.state.opened,r=this.props,o=r.data,i=void 0===o?[]:o,a=r.textField,s=r.virtual,l=void 0===s?{skip:0}:s,u=r.focusedItemIndex,c=void 0===u?g:u,d=l.skip,p=""===e&&0===d?0:c(i,e,a);return-1!==p?this.handleItemSelect(p+d,t):(this.triggerOnChange(null,t),void 0!==this.state.text&&(t.data.text=void 0)),n&&this.base.togglePopup(t),this.applyState(t)},t.prototype.renderListContainer=function(){var e=this.base,t=this.props,n=t.dir,r=t.header,o=t.footer,a=t.data,l=void 0===a?[]:a,u=t.groupField,c=void 0!==this.props.opened?this.props.opened:this.state.opened,d=e.getPopupSettings(),f=void 0!==d.width?d.width:e.popupWidth,h=this.state.group;return void 0===h&&void 0!==u&&(h=b(l[0],u)),i.createElement(p,{width:f,popupSettings:{animate:d.animate,anchor:this.element,show:c,popupClass:d.popupClass,className:Object(s.classNames)("k-list-container k-reset",d.className),appendTo:d.appendTo},dir:void 0!==n?n:this.base.dirCalculated,itemsCount:[l.length]},r,h&&i.createElement("div",{className:"k-group-header"},h),e.renderScrollWrapper([this.renderList(),e.renderScrollElement()],this.onScroll),o)},t.prototype.renderList=function(){var e=this,t=this.base,n=this.props,r=n.textField,o=n.dataItemKey,a=n.listNoDataRender,s=n.itemRender,l=n.data,u=void 0===l?[]:l,c=n.virtual,d=void 0===c?{skip:0}:c,p=t.getPopupSettings(),f=t.vs,h=d.skip,v=void 0!==this.props.opened?this.props.opened:this.state.opened,g="translateY("+f.translate+"px)",y=v?this.getFocusedIndex():void 0,k=void 0!==this.props.filter?this.props.filter:this.state.text,C=b(this.value,r),O=m(k)&&k!==C?null:this.value,w=this.props.list||F;return i.createElement(w,{id:t.listBoxId,show:v,data:u,focusedIndex:y,value:O,textField:r,valueField:o,groupField:this.props.groupField,optionsGuid:t.guid,listRef:function(t){f.list=e.base.list=t,e.itemHeight=0},wrapperStyle:f.enabled?{float:"left",width:"100%"}:{maxHeight:p.height},wrapperCssClass:f.enabled?void 0:"k-list-scroller",listStyle:f.enabled?{transform:g}:void 0,key:"listkey",skip:h,onClick:this.handleItemClick,itemRender:s,noDataRender:a,onMouseDown:function(e){return e.preventDefault()},onScroll:this.onScroll})},t.prototype.renderSearchBar=function(e,t,n){var r=this,o=this.props,a=o.placeholder,s=o.tabIndex,l=o.disabled,u=o.data,c=void 0===u?[]:u,d=o.dataItemKey,p=o.virtual,f=void 0===p?{skip:0}:p,h=void 0!==this.props.opened?this.props.opened:this.state.opened,m=this.value,v=Math.max(0,c.findIndex((function(e){return C(e,m,d)})));return this._suggested&&!C(this._valueOnDidUpdate,m,d)&&(this._suggested=""),i.createElement(Q,{id:n,placeholder:a,tabIndex:s||void 0,accessKey:this.props.accessKey,value:t+this._suggested,suggestedText:this._suggested,ref:function(e){return r._input=e&&e.input},onKeyDown:this.onInputKeyDown,onChange:this.inputOnChange,onFocus:this.base.handleFocus,onBlur:this.handleBlur,disabled:l,expanded:h,owns:this.base.listBoxId,activedescendant:this.base.guid+"-"+(v+f.skip),role:"combobox",clearButton:e,clearButtonClick:this.clearButtonClick,ariaLabelledBy:this.props.ariaLabelledBy,ariaDescribedBy:this.props.ariaDescribedBy,render:this.props.valueRender})},t.prototype.triggerOnChange=function(e,t){var n=this.value;!m(n)&&!m(e)||C(n,e,this.props.dataItemKey)||(void 0===this.props.value&&(t.data.value=e),this._valueDuringOnChange=e,t.events.push({type:"onChange"}))},t.prototype.getFocusedIndex=function(){var e=this.value,t=this.props,n=t.data,r=void 0===n?[]:n,o=t.textField,i=t.dataItemKey,a=t.virtual,s=void 0===a?{skip:0}:a,l=t.focusedItemIndex,u=void 0===l?g:l,c=this.props.filter?this.props.filter:this.state.text;return m(e)&&void 0===c?r.findIndex((function(t){return C(t,e,i)})):c?u(r,c,o):0===s.skip?0:-1},t.prototype.suggestValue=function(e){var t=this.props,n=t.data,r=t.textField;this._suggested=function(e,t,n){void 0===t&&(t=[]);var r="";if(e){var o=t[g(t,e,n)];if(o){var i=b(o,n);e.toLowerCase()!==i.toLowerCase()&&(r=i.substring(e.length))}}return r}(e,n,r)},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.displayName="ComboBox",t.propTypes=J({},B.propTypes,{dataItemKey:a.string,groupField:a.string,suggest:a.bool,placeholder:a.string,allowCustom:a.bool,clearButton:a.bool,iconClassName:a.string,validationMessage:a.string,required:a.bool,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,list:a.any,valueRender:a.func}),t.defaultProps=J({},B.defaultProps,{allowCustom:!1,clearButton:!0,required:!1}),t}(i.Component),te=Object(s.createPropsContext)(),ne=Object(s.withPropsContext)(te,ee);ne.displayName="KendoReactComboBox";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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),oe=function(){return(oe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ie=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.base=new B(n),n._inputId=Object(s.guid)(),n._suggested="",n.focus=function(){n._input&&n._input.focus()},n.handleItemSelect=function(e,t){var r=n.props.data,o=b((void 0===r?[]:r)[e],n.props.textField);n.triggerOnChange(o,t)},n.itemFocus=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.textField,s=i[e];C(n.state.focusedItem,s,a)||(t.data.focusedItem=s)},n.togglePopup=function(e){n.base.togglePopup(e)},n.setValidity=function(){n._input&&n._input.setCustomValidity&&n._input.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please enter a valid value!")},n.handleItemClick=function(e,t){n.base.handleItemClick(e,t),n._valueDuringOnChange=void 0},n.onChangeHandler=function(e){var t=n.base.initState(),r=e.currentTarget,o=r.value,i=r.selectionEnd===o.length;t.syntheticEvent=e;var a=n._suggested,s=n.value,l=s&&s.substring(0,s.length-a.length),u=l&&l===o,c=l&&l.length>o.length,d=n.props.suggest,p=void 0!==n.props.opened?n.props.opened:n.state.opened;if(void 0!==d&&!1!==d){u||c||!i?n._suggested="":n.suggestValue(o);var f=o+n._suggested,h={userInput:o,value:n._suggested};n.triggerOnChange(f,t,{suggestion:h})}else n._suggested="",n.triggerOnChange(o,t);(!p&&o||p&&!o)&&n.togglePopup(t),t.data.focusedItem=void 0,n.applyState(t)},n.clearButtonClick=function(e){var t=n.base.initState(),r=void 0!==n.props.opened?n.props.opened:n.state.opened;t.syntheticEvent=e;n._suggested="",n.triggerOnChange("",t),void 0!==n.state.focusedItem&&(t.data.focusedItem=void 0),r&&n.togglePopup(t),n.applyState(t)},n.onInputKeyDown=function(e){var t=e.keyCode,r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=n.base.initState();o.syntheticEvent=e;var i=function(){r&&e.preventDefault()};t===s.Keys.enter||t===s.Keys.esc?(i(),n.applyInputValue(e.currentTarget.value,o,e.keyCode)):t!==s.Keys.up&&t!==s.Keys.down||(i(),n.onNavigate(o,t))},n.handleBlur=function(e){if(n.state.focused){var t=n.base.initState();t.data.focused=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,n.applyInputValue(e.currentTarget.value,t)}},Object(s.validatePackage)(z),n}return re(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this._valueDuringOnChange?this._valueDuringOnChange:void 0!==this.props.value?this.props.value:void 0!==this.state.value?this.state.value:void 0!==this.props.defaultValue?this.props.defaultValue:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=!this.required||""!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n=this.props.data,r=void 0===n?[]:n,o=e.data,i=void 0===o?[]:o,a=this.focusedIndex(),s=r[a],l=i!==r,u=void 0!==s&&t.focusedItem!==s,c=void 0!==this.props.opened?this.props.opened:this.state.opened,d=void 0!==e.opened?e.opened:t.opened;(c&&(u||l)||!d&&c)&&this.base.scrollToItem(a),this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var e=this,t=this.props,n=t.dir,r=t.disabled,o=t.label,a=t.className,u=t.style,c=t.loading,d=t.suggest,p=!this.validityStyles||this.validity.valid,f=this.state.focused,h=this.base,m=this.value,v=!1!==this.props.clearButton&&!c&&!!m,g=this.props.id||this._inputId;"string"==typeof d&&(this._suggested=d);var y=i.createElement("span",{className:Object(s.classNames)("k-widget k-autocomplete",a,{"k-state-disabled":r,"k-state-focused":f&&!r,"k-state-invalid":!p}),ref:function(t){e._element=t,h.wrapper=t},style:o?oe({},u,{width:void 0}):u,dir:n},this.renderSearchBar(v,m||"",g),c&&i.createElement("span",{className:"k-icon k-i-loading"}),this.renderListContainer());return o?i.createElement(l.FloatingLabel,{label:o,editorId:g,editorValue:m,editorValid:p,editorDisabled:r,style:{width:u?u.width:void 0},children:y}):y},t.prototype.onNavigate=function(e,t){var n=this,r=this.value,o=this.props,i=o.data,a=void 0===i?[]:i,s=o.textField,l=o.focusedItemIndex,u=void 0!==this.state.focusedItem?a.findIndex((function(e){return C(e,n.state.focusedItem,s)})):l?l(a,r,s):a.indexOf(O(a,r,s)),c=this.base.navigation.navigate({keyCode:t,current:u,max:a.length-1,min:0});void 0!==c&&this.itemFocus(c,e),this.applyState(e)},t.prototype.applyInputValue=function(e,t,n){var r=void 0!==this.props.opened?this.props.opened:this.state.opened,o=this.props,i=o.data,a=void 0===i?[]:i,l=o.textField;if(this._suggested="",r&&n===s.Keys.enter){var u=b(a[this.focusedIndex(e)],l);this.triggerOnChange(u,t)}r&&this.togglePopup(t),this.applyState(t)},t.prototype.renderSearchBar=function(e,t,n){var r=this,o=this.base,a=this.props,s=a.placeholder,l=a.tabIndex,u=a.disabled,c=a.readonly,d=this.state.focused,p=void 0!==this.props.opened?this.props.opened:this.state.opened;return i.createElement(Q,{id:n,placeholder:s,tabIndex:l||void 0,accessKey:this.props.accessKey,value:t,suggestedText:this._suggested,focused:d,name:this.props.name,ref:function(e){return r._input=e&&e.input},onKeyDown:this.onInputKeyDown,onChange:this.onChangeHandler,onFocus:o.handleFocus,onBlur:this.handleBlur,disabled:u,readOnly:c,expanded:p,owns:o.listBoxId,activedescendant:"option-"+o.guid+"-"+this.focusedIndex(),role:"combobox",clearButton:e,clearButtonClick:this.clearButtonClick,ariaLabelledBy:this.props.ariaLabelledBy,ariaDescribedBy:this.props.ariaDescribedBy,render:this.props.valueRender})},t.prototype.renderListContainer=function(){var e=this.base,t=this.props,n=t.dir,r=t.header,o=t.footer,a=t.data,l=void 0===a?[]:a,u=e.getPopupSettings(),c=void 0!==this.props.opened?this.props.opened:this.state.opened,d=void 0!==u.width?u.width:e.popupWidth;return i.createElement(p,{width:d,popupSettings:{animate:u.animate,anchor:this.element,show:c,popupClass:u.popupClass,className:Object(s.classNames)("k-list-container k-reset",u.className),appendTo:u.appendTo},dir:void 0!==n?n:this.base.dirCalculated,itemsCount:[l.length]},r,this.renderList(),o)},t.prototype.renderList=function(){var e=this.base,t=e.getPopupSettings(),n=this.props,r=n.textField,o=n.data,a=void 0===o?[]:o,s=n.listNoDataRender,l=n.itemRender,u=this.value,c=void 0!==this.props.opened?this.props.opened:this.state.opened;return i.createElement(F,{id:e.listBoxId,show:c,data:a.slice(),focusedIndex:this.focusedIndex(),value:u,textField:r,valueField:r,highlightSelected:!1,optionsGuid:e.guid,listRef:function(t){return e.list=t},wrapperStyle:{maxHeight:t.height},wrapperCssClass:"k-list-scroller",onClick:this.handleItemClick,itemRender:l,noDataRender:s,onMouseDown:function(e){return e.preventDefault()}})},t.prototype.triggerOnChange=function(e,t,n){(this.value!==e||n)&&(t.data.value=e,this._valueDuringOnChange=e,t.events.push(oe({type:"onChange"},n||{})))},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.prototype.suggestValue=function(e){if(this._suggested="",e){var t=this.props,n=t.data,r=void 0===n?[]:n,o=t.textField,i=r[g(r,e,o)];if(i){var a=b(i,o);e.toLowerCase()!==a.toLowerCase()&&(this._suggested=a.substring(e.length))}}},t.prototype.focusedIndex=function(e){var t=this,n=this.props,r=n.data,o=void 0===r?[]:r,i=n.textField,a=n.focusedItemIndex,s=void 0!==e?e:this.value;return void 0!==this.state.focusedItem?o.findIndex((function(e){return C(e,t.state.focusedItem,i)})):a?a(o,s,i):Math.max(0,o.indexOf(O(o,s,i)))},t.displayName="AutoComplete",t.propTypes=oe({},B.basicPropTypes,{suggest:a.oneOfType([a.bool,a.string]),placeholder:a.string,value:a.string,defaultValue:a.string,validationMessage:a.string,required:a.bool,readonly:a.bool,clearButton:a.bool,valueRender:a.func,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string}),t.defaultProps=oe({},B.defaultProps),t}(i.Component),ae=Object(s.createPropsContext)(),se=Object(s.withPropsContext)(ae,ie);se.displayName="KendoReactAutoComplete";var le,ue=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ce=function(e){return e.preventDefault()},de=function(e){return e.stopPropagation()},pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ue(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.guid,o=this.props.tag;return i.createElement("ul",{className:"k-reset",role:"listbox",id:"tagslist-"+r},n.map((function(t,a){var s=o?i.createElement(o,{tagData:t,guid:r,focusedTag:e.props.focused,onTagDelete:e.props.onTagDelete}):i.createElement("li",{className:t===e.props.focused?"k-button k-state-focused":"k-button",key:t.text+a,id:"tag-"+r+"-"+t.text.replace(/\s+/g,"-"),onMouseDown:ce,onClick:de,"aria-selected":!0,role:"option","aria-setsize":n.length},i.createElement("span",null,t.text),i.createElement("span",{"aria-label":"delete",className:"k-select",onClick:function(n){return e.props.onTagDelete.call(void 0,t.data,n)}},i.createElement("span",{className:"k-icon k-i-close"})));return e.props.tagRender?e.props.tagRender(t,s):s})))},t}(i.Component);!function(e){e[e.PopupList=0]="PopupList",e[e.TagsList=1]="TagsList"}(le||(le={}));var fe,he=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),me=function(){return(me=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ve=function(e){return e.preventDefault()},ge=function(e){return e===fe.CustomItem};!function(e){e[e.None=0]="None",e[e.ListItem=1]="ListItem",e[e.CustomItem=2]="CustomItem"}(fe||(fe={}));var ye=function(e){function t(t){var n=e.call(this,t)||this;return n.state={activedescendant:le.PopupList},n._valueItemsDuringOnChange=null,n._inputId=Object(s.guid)(),n.base=new B(n),n._tags=[],n._skipFocusEvent=!1,n.scrollToFocused=!1,n.focus=function(){n._input&&n._input.focus()},n.handleItemSelect=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.dataItemKey,s=r.virtual,l=i[e-(s?s.skip:0)],u=n.value.findIndex((function(e){return C(e,l,a)})),c=[];-1!==u?(c=n.value).splice(u,1):c=n.value.concat([l]),(void 0!==n.props.filter?n.props.filter:n.state.text)&&(n.state.text&&(t.data.text=""),n.base.filterChanged("",t)),void 0!==n.state.focusedIndex&&(t.data.focusedIndex=void 0),n.triggerOnChange(c,t),n.base.triggerPageChangeCornerItems(l,t)},n.onTagDelete=function(e,t){var r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=n.base.initState();o.syntheticEvent=t,r&&n.base.togglePopup(o),n.state.focused||(o.data.focused=!0,n.focus());var i=n.value;k(i,e,n.props.dataItemKey),n.triggerOnChange(i,o),n.applyState(o)},n.itemFocus=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.allowCustom,s=r.virtual,l=s?s.skip:0,u=void 0!==n.props.filter?n.props.filter:n.state.text,c=n.getFocusedState().focusedIndex,d=a&&u,p=i[e-l];p&&c!==e?n.state.focusedIndex!==e&&(t.data.focusedIndex=e,t.data.activedescendant=le.PopupList):d&&-1===e&&void 0!==n.state.focusedIndex&&(t.data.focusedIndex=void 0),n.base.triggerPageChangeCornerItems(p,t)},n.searchbarRef=function(e){var t=n._input=e&&e.input;t&&n.state.focused&&window.setTimeout((function(){return t.focus()}),0)},n.onChangeHandler=function(e){var t=n.base.initState(),r=e.currentTarget.value,o=void 0!==n.props.opened?n.props.opened:n.state.opened;t.syntheticEvent=e,void 0===n.props.filter&&(t.data.text=r),t.data.focusedIndex=void 0,o||n.base.togglePopup(t),n.base.filterChanged(r,t),n.applyState(t)},n.clearButtonClick=function(e){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n.base.initState();r.syntheticEvent=e,e.stopPropagation(),n.value.length>0&&n.triggerOnChange([],r),void 0!==n.state.focusedIndex&&(r.data.focusedIndex=void 0),t&&n.base.togglePopup(r);var o=void 0!==n.props.filter?n.props.filter:n.state.text;m(o)&&""!==o&&n.base.filterChanged("",r),n.state.text&&(r.data.text=""),n.applyState(r)},n.onInputKeyDown=function(e){var t=e.keyCode,r=void 0!==n.props.filter?n.props.filter:n.state.text,o=void 0!==n.props.opened?n.props.opened:n.state.opened,i=n.getFocusedState().focusedItem,a=n.base.initState();if(a.syntheticEvent=e,!r&&n.value.length>0&&(t===s.Keys.left||t===s.Keys.right||t===s.Keys.home||t===s.Keys.end||t===s.Keys.delete||t===s.Keys.backspace))return n.onTagsNavigate(e,a);var l=function(){e.preventDefault(),n.base.togglePopup(a),n.applyState(a)};o?e.altKey&&t===s.Keys.up?l():t===s.Keys.up||t===s.Keys.down?(e.preventDefault(),n.onNavigate(a,t)):t===s.Keys.enter?(e.preventDefault(),n.props.allowCustom&&r&&null===i?n.customItemSelect(e):n.selectFocusedItem(e)):t===s.Keys.esc&&l():e.altKey&&t===s.Keys.down&&l()},n.renderListContainer=function(){var e=n.base,t=n.props,r=t.header,o=t.footer,a=t.allowCustom,l=t.dir,u=t.data,c=void 0===u?[]:u,d=n.base.getPopupSettings(),f=void 0!==n.props.opened?n.props.opened:n.state.opened,h=void 0!==n.props.filter?n.props.filter:n.state.text,m=void 0!==n.props.virtual,v=void 0!==d.width?d.width:e.popupWidth,g={dir:void 0!==l?l:e.dirCalculated,width:v,popupSettings:{popupClass:d.popupClass,className:Object(s.classNames)("k-list-container k-reset",d.className),animate:d.animate,anchor:n.element,show:f,onOpen:n.onPopupOpened,onClose:n.onPopupClosed,appendTo:d.appendTo},itemsCount:[c.length,n.value.length]},y=n.getFocusedState().focusedType,b=a&&h&&i.createElement("div",{className:"k-list",key:"customitem",onClick:n.customItemSelect,onMouseDown:ve},i.createElement("div",{className:Object(s.classNames)("k-item k-custom-item",{"k-state-focused":ge(y)})},h,i.createElement("span",{className:"k-icon k-i-plus",style:{float:"right"}})));return i.createElement(p,me({},g),m&&r,n.base.renderScrollWrapper(i.createElement(i.Fragment,null,!m&&r,b,n.renderList(),!m&&o,n.base.renderScrollElement())),m&&o)},n.renderList=function(){var e=n.props,t=e.data,r=void 0===t?[]:t,o=e.textField,a=e.listNoDataRender,s=e.itemRender,l=e.dataItemKey,u=e.virtual,c=n.base.vs,d=u?u.skip:0,p=void 0!==n.props.opened?n.props.opened:n.state.opened,f=n.getFocusedState().focusedIndex,h=n.base.getPopupSettings(),m="translateY("+c.translate+"px)";return i.createElement(F,{id:n.base.listBoxId,show:p,data:r.slice(),focusedIndex:f-d,value:n.value,textField:o,valueField:l,optionsGuid:n.base.guid,listRef:function(e){c.list=n.base.list=e},wrapperStyle:c.enabled?{float:"left",width:"100%"}:{maxHeight:h.height},wrapperCssClass:c.enabled?void 0:"k-list-scroller",listStyle:c.enabled?{transform:m}:void 0,key:"listKey",skip:d,onClick:n.handleItemClick,itemRender:s,noDataRender:a,onMouseDown:ve,onBlur:n.handleBlur})},n.customItemSelect=function(e){var t,r=void 0!==n.props.filter?n.props.filter:n.state.text,o=n.props.textField;if(r){var i=n.base.initState();i.syntheticEvent=e;var a=o?((t={})[o]=r,t):r;void 0!==n.state.text&&(i.data.text=""),i.data.focusedIndex=void 0,n.base.filterChanged("",i);var s=n.value.concat([a]);n.triggerOnChange(s,i),n.base.togglePopup(i),n.applyState(i)}},n.handleWrapperClick=function(e){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n._input;!t&&r&&n.focusElement(r);var o=n.base.initState();o.syntheticEvent=e,n.state.focused||(o.events.push({type:"onFocus"}),o.data.focused=!0),n.base.togglePopup(o),n.applyState(o)},n.handleItemClick=function(e,t){var r=n.base.initState();r.syntheticEvent=t,n.handleItemSelect(e,r),n.props.autoClose&&n.base.togglePopup(r),n.applyState(r)},n.handleBlur=function(e){if(n.state.focused&&!n._skipFocusEvent){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n.base.initState(),o=n.props,i=o.allowCustom,a=o.filterable;r.syntheticEvent=e,r.data.focused=!1,r.events.push({type:"onBlur"}),t&&(n.state.opened&&(r.data.opened=!1),r.events.push({type:"onClose"})),i||a||!n.state.text||(r.data.text=""),n.applyState(r)}},n.handleFocus=function(e){n._skipFocusEvent||n.base.handleFocus(e)},n.onPopupOpened=function(){n._input&&n.state.focused&&n.focusElement(n._input)},n.onPopupClosed=function(){n.state.focused&&window.setTimeout((function(){n.state.focused&&n.focusElement(n._input)}),0)},n.setValidity=function(){n._input&&n._input.setCustomValidity&&n._input.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please enter a valid value!")},Object(s.validatePackage)(z),n}return he(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=[];return this._valueItemsDuringOnChange?e.push.apply(e,this._valueItemsDuringOnChange):this.props.value?e.push.apply(e,this.props.value):this.state.value?e.push.apply(e,this.state.value):this.props.defaultValue&&e.push.apply(e,this.props.defaultValue),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=!this.required||null!==this.value&&this.value.length>0&&void 0!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n=this.props.virtual,r=n?n.skip:0,o=e.virtual?e.virtual.total:0,i=void 0!==this.props.opened?this.props.opened:this.state.opened,a=void 0!==e.opened?e.opened:t.opened,s=!a&&i,l=a&&!i;if(!this.base.getPopupSettings().animate&&l&&this.onPopupClosed(),n&&n.total!==o)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var u=this.getFocusedState(),c=u.focusedItem,d=u.focusedIndex;s&&n?this.base.scrollToVirtualItem(n,d-r):s&&!n?this.base.scrollToItem(d):i&&a&&c&&this.scrollToFocused&&this.base.scrollToItem(d-r)}this.scrollToFocused=!1,this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.onNavigate=function(e,t){var n=this.props,r=n.allowCustom,o=n.data,i=void 0===o?[]:o,a=void 0!==this.props.opened?this.props.opened:this.state.opened,l=void 0!==this.props.filter?this.props.filter:this.state.text,u=this.getFocusedState(),c=u.focusedType,d=u.focusedIndex,p=r&&l,f=ge(c),h=this.base,m=h.vs;if(a&&t===s.Keys.up&&f)void 0!==this.state.focusedIndex&&(e.data.focusedIndex=void 0);else{var v=h.navigation.navigate({keyCode:t,current:d,max:(m.enabled?m.total:i.length)-1,min:p?-1:0});void 0!==v&&(this.itemFocus(v,e),this.scrollToFocused=!0)}this.applyState(e)},t.prototype.render=function(){var e=this,t=this.props,n=t.style,r=t.className,o=t.label,a=t.dir,u=t.disabled,c=t.tags,d=t.textField,p=t.dataItemKey,f=t.virtual,h=this.state,m=h.focused,v=h.text,g=h.focusedTag,y=this.base.vs,k=this.props.id||this._inputId;y.enabled=void 0!==f,void 0!==f&&(y.skip=f.skip,y.total=f.total,y.pageSize=f.pageSize);var C=[];void 0===c?this.value.forEach((function(e){C.push({text:b(e,d),data:[e]})})):C.push.apply(C,c),this.setItems(C,this._tags);var O=!this.validityStyles||this.validity.valid,S=i.createElement("span",{ref:function(t){return e._element=t},className:Object(s.classNames)("k-widget k-multiselect",r,{"k-state-focused":m&&!u,"k-state-invalid":!O,"k-state-disabled":u}),style:o?me({},n,{width:void 0}):n,dir:a,onFocus:this.handleFocus,onBlur:this.handleBlur},i.createElement("div",{onClick:this.handleWrapperClick,ref:function(t){return e.base.wrapper=t},className:"k-multiselect-wrap k-floatwrap",onMouseDown:w},C.length>0&&i.createElement(pe,{tagRender:this.props.tagRender,onTagDelete:this.onTagDelete,data:C,guid:this.base.guid,focused:g?C.find((function(e){return E(e,g,p)})):void 0}),this.renderSearchbar(k)),this.renderListContainer());return o?i.createElement(l.FloatingLabel,{label:o,editorId:k,editorValue:v||b(this.value[0],d),editorValid:O,editorDisabled:u,style:{width:n?n.width:void 0},children:S}):S},t.prototype.renderSearchbar=function(e){var t=this.state,n=t.activedescendant,r=t.focusedTag,o=this.props,a=o.disabled,s=o.placeholder,l=o.ariaDescribedBy,u=(void 0!==this.props.filter?this.props.filter:this.state.text)||"",c=void 0!==this.props.opened?this.props.opened:this.state.opened,d=this.getFocusedState().focusedIndex,p=!!u||this.value.length>0,f=0!==this.value.length||u?void 0:s,h=n===le.TagsList&&void 0!==r?"tag-"+this.base.guid+"-"+r.text.replace(/\s+/g,"-"):"option-"+this.base.guid+"-"+d;return i.createElement(Q,{id:e,size:Math.max((f||"").length,u.length,1),tabIndex:this.props.tabIndex,accessKey:this.props.accessKey,placeholder:f,value:u,onChange:this.onChangeHandler,onKeyDown:this.onInputKeyDown,ref:this.searchbarRef,disabled:a,expanded:c,owns:this.base.listBoxId,activedescendant:h,ariaDescribedBy:"tagslist-"+this.base.guid+(l?" "+l:""),clearButton:p,clearButtonClick:this.clearButtonClick,loading:this.props.loading,ariaLabelledBy:this.props.ariaLabelledBy})},t.prototype.onTagsNavigate=function(e,t){var n=e.keyCode,r=this.state.focusedTag,o=this._tags,i=this.props.dataItemKey,a=r?o.findIndex((function(e){return E(e,r,i)})):-1,l=void 0,u=-1!==a;if(n===s.Keys.left)l=o[a=u?Math.max(0,a-1):o.length-1];else if(n===s.Keys.right)a===o.length-1?l=void 0:u&&(l=o[a=Math.min(o.length-1,a+1)]);else if(n===s.Keys.home)l=o[0];else if(n===s.Keys.end)l=o[o.length-1];else if(n===s.Keys.delete){if(u){var c=this.value;k(c,o[a].data,i),this.triggerOnChange(c,t)}}else if(n===s.Keys.backspace){c=this.value;if(u)k(c,o[a].data,i),this.triggerOnChange(c,t);else if(!u&&o.length){var d=o.pop();k(c,d.data,i),this.triggerOnChange(c,t)}}l!==r&&(t.data.focusedTag=l,t.data.activedescendant=le.TagsList),this.applyState(t)},t.prototype.triggerOnChange=function(e,t){void 0===this.props.value&&(t.data.value=e.slice()),this._valueItemsDuringOnChange=[],this.setItems(e,this._valueItemsDuringOnChange),t.events.push({type:"onChange"})},t.prototype.selectFocusedItem=function(e){var t=this.props,n=t.data,r=void 0===n?[]:n,o=t.virtual,i=this.getFocusedState().focusedIndex;void 0!==r[i-(o?o.skip:0)]&&this.handleItemClick(i,e)},t.prototype.setItems=function(e,t){t.length=0,t.push.apply(t,e)},t.prototype.getFocusedState=function(){var e,t=this.state.focusedIndex,n=void 0!==this.props.filter?this.props.filter:this.state.text,r=this.props,o=r.allowCustom,i=r.data,a=void 0===i?[]:i,s=r.dataItemKey,l=r.virtual,u=r.textField,c=r.focusedItemIndex,d=void 0===c?g:c,p=l&&l.skip||0;if(void 0!==t)return{focusedIndex:t,focusedItem:a[t-p],focusedType:fe.ListItem};var f=this.value;if(o&&n)return{focusedItem:null,focusedIndex:-1,focusedType:fe.CustomItem};if(n)return{focusedItem:a[e=d(a,n,u)],focusedIndex:e+p,focusedType:fe.ListItem};if(f.length){var h=f[f.length-1];return e=a.findIndex((function(e){return C(e,h,s)})),void 0!==a[e]?{focusedIndex:e+p,focusedItem:a[e],focusedType:fe.ListItem}:{focusedType:fe.None,focusedIndex:-1}}return 0===p?{focusedItem:a[0],focusedIndex:0,focusedType:fe.ListItem}:{focusedType:fe.None,focusedIndex:-1}},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),window.setTimeout((function(){return t._skipFocusEvent=!1}),0)},t.prototype.applyState=function(e){this.base.applyState(e),this._valueItemsDuringOnChange=null},t.displayName="MultiSelect",t.propTypes=me({},B.propTypes,{autoClose:a.bool,value:a.arrayOf(a.any),defaultValue:a.arrayOf(a.any),dataItemKey:a.string,placeholder:a.string,tags:a.arrayOf(a.shape({text:a.string,data:a.arrayOf(a.any)})),tagRender:a.func,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string}),t.defaultProps=me({},B.defaultProps,{autoClose:!0,required:!1}),t}(i.Component),be=Object(s.createPropsContext)(),ke=Object(s.withPropsContext)(be,ye);ke.displayName="KendoReactMultiSelect";var Ce=function(){return(Ce=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Oe=function(e){return i.createElement(F,Ce({},e,{listClassName:"k-grid-list"}))},we=function(){return(we=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},Se=Object(s.createPropsContext)(),De=i.forwardRef((function(e,t){var n=Object(s.usePropsContext)(Se,e),r=i.useRef(null),o=i.useRef(null),a=Object(s.getScrollbarWidth)(),l=n.columns,u=void 0===l?Ie.columns:l,c=n.popupSettings,d=void 0===c?Ie.popupSettings:c,p=n.onOpen,f=n.onClose,h=n.onFocus,m=n.onBlur,v=n.onChange,g=n.onFilterChange,y=n.onPageChange,b=Ee(n,["columns","popupSettings","onOpen","onClose","onFocus","onBlur","onChange","onFilterChange","onPageChange"]);i.useImperativeHandle(r,(function(){return{element:o.current&&o.current.element,focus:function(){o.current&&o.current.focus()},get value(){return o.current&&o.current.value},get name(){return o.current&&o.current.name},props:n}})),i.useImperativeHandle(t,(function(){return r.current}));var k=i.useMemo((function(){return"calc("+u.map((function(e){return t=e.width,n=Ie.width,t?"number"==typeof t?t+"px":t:n;var t,n})).filter(Boolean).join(" + ")+" + "+a+"px)"}),[u,a]),C=i.useMemo((function(){return i.createElement(i.Fragment,null,n.header,i.createElement("div",{className:"k-grid-header"},i.createElement("div",{className:"k-grid-header-wrap"},i.createElement("table",{role:"presentation"},i.createElement("colgroup",null,u.map((function(e,t){return i.createElement("col",{key:e.uniqueKey?e.uniqueKey:t,style:{width:e.width?e.width:Ie.width}})}))),i.createElement("tbody",null,i.createElement("tr",null,u.map((function(e,t){return i.createElement("th",{key:e.uniqueKey?e.uniqueKey:t,className:"k-header"},e.header||" ")}))))))))}),[n.header,u]),O=n.virtual?n.virtual.skip:0,w=i.useCallback((function(e,t){var r,o,a,l=u.map((function(e,n){return i.createElement("span",{className:"k-cell",style:{width:e.width?e.width:Ie.width},key:e.uniqueKey?e.uniqueKey:n},e.field?Object(s.getter)(e.field)(t.dataItem):"")})),c=void 0,d=n.data||[],p=t.index-O;void 0!==n.groupField&&(r=(a=Object(s.getter)(n.groupField))(d[p]),o=a(d[p-1]),r&&o&&r!==o&&(c=r)),c&&l.push(i.createElement("div",{key:"group",className:"k-cell k-group-cell"},i.createElement("span",null,c)));var f=i.cloneElement(e,we({},e.props),l);return n.itemRender?n.itemRender.call(void 0,f,t):f}),[u,n.groupField,n.itemRender,n.data,O]),E=i.useCallback((function(e,t){e&&e.call(void 0,we({},t,{target:r.current}))}),[]),S=i.useCallback((function(e){return E(p,e)}),[p]),D=i.useCallback((function(e){return E(f,e)}),[f]),x=i.useCallback((function(e){return E(h,e)}),[h]),I=i.useCallback((function(e){return E(m,e)}),[m]),T=i.useCallback((function(e){return E(v,e)}),[v]),_=i.useCallback((function(e){return E(g,e)}),[g]),P=i.useCallback((function(e){return E(y,e)}),[y]);i.useEffect((function(){Object(s.setScrollbarWidth)()}));var N=i.useCallback((function(e){return i.createElement(Oe,we({},e))}),[]);return i.createElement(ne,we({},b,{list:N,popupSettings:we({width:k},d,{popupClass:"k-dropdowngrid-popup",className:Object(s.classNames)("k-popup-flush",d.className)}),ref:o,header:C,itemRender:w,onOpen:S,onClose:D,onFocus:x,onBlur:I,onChange:T,onFilterChange:_,onPageChange:P}))})),xe=we({},ee.propTypes,{columns:a.any.isRequired}),Ie={columns:[],popupSettings:{},width:"200px"};De.displayName="KendoMultiColumnComboBox",De.propTypes=xe,De.defaultProps=Ie;function Te(e,t,n){if(Fe(e))return t[Number(e)];var r=t[Number(_e(e))],o=r&&r[n]||[];return o.length?Te(Pe(e),o,n):void 0}function _e(e){return je(e)?e:e.split("_")[0]}function Pe(e){if(je(e))return e;var t=e.indexOf("_");return e.substring(t+1)}function Ne(e){return Me("0",e)}function Me(e,t){return e=e.toString(),t?t+"_"+e:e}function Re(e){var t=e.lastIndexOf("_");return t<0?"":e.substring(0,t)}function je(e){return""===e||e.indexOf("_")<0}function Fe(e){return""!==e&&e.indexOf("_")<0}function Ae(e){return e.split("_")}function Le(e){var t=e.lastIndexOf("_");return t<0?e:e.substring(t+1)}var Ve=function(){function e(){this.objects=[]}return e.prototype.init=function(e){for(var t,n=0;n<e.length;n++)n%5e4==0&&(t={},this.objects.push(t)),t[e[n]]=!0},e.prototype.hasId=function(e){return this.objects.some((function(t){return t[e]}))},e}();function Be(e,t){var n=(e||"").split("."),r=t;return n.forEach((function(e){r=r?r[e]:void 0})),r}function ze(e,t){var n=Be(t,e);return Boolean(n&&n.length)}function He(e,t){return t.expanded(e)&&ze(e,t.getChildrenField())}function Ue(e,t,n,r){var o=[],i=new Ve;return i.init(e),function e(t,n,r,o,i,a){for(var s=0;s<r.length;s++){var l=r[s],u=Me(s,o);t.hasId(Be(n,l))&&i.push(u),ze(l,a)&&e(t,n,Be(a,l),u,i,a)}}(i,t,n,"",o,r),o}function Ke(e,t,n){for(var r=Ae(e),o=t,i=0;i<r.length;i++){var a=o[Number(r[i])];if(n.disabled(a))return!1;o=a[n.getChildrenField()]}return!0}function We(e,t,n,r,o){switch(r){case s.Keys.left:return Fe(t)||o.expanded(e)&&Ke(t,n,o)?t:Re(t);case s.Keys.right:return He(e,o)?Ne(t):t;case s.Keys.up:return i=Number(Le(t)),a=Re(t),i?function e(t,n,r){var o=Te(t,n,r.getChildrenField());return He(o,r)?e(Me(o[r.getChildrenField()].length-1,t),n,r):t}(Me(i-1,a),n,o):Fe(t)?t:a;case s.Keys.down:return He(e,o)?Ne(t):function e(t,n,r){var o=Re(t),i=o?Te(o,n,r.getChildrenField()):void 0,a=i?i[r.getChildrenField()]:n,s=Number(Le(t));return s<a.length-1?Me(s+1,o):i?e(o,n,r):void 0}(t,n,o)||t;case s.Keys.home:return"0";case s.Keys.end:return function(){var e,t=(n.length-1).toString(),r=n[n.length-1];for(;He(r,o);)e=r[o.getChildrenField()],t=Me(e.length-1,t),r=e[e.length-1];return t}();default:return t}var i,a}var qe=n(34),Ye=function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop),r=parseFloat(t.marginBottom);return e.offsetHeight+n+r},Ge=function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginLeft),r=parseFloat(t.marginRight);return e.offsetWidth+n+r},Ze={"animation-container":"k-animation-container","animation-container-relative":"k-animation-container-relative","animation-container-fixed":"k-animation-container-fixed","push-right-enter":"k-push-right-enter","push-right-appear":"k-push-right-appear","push-right-enter-active":"k-push-right-enter-active","push-right-appear-active":"k-push-right-appear-active","push-right-exit":"k-push-right-exit","push-right-exit-active":"k-push-right-exit-active","push-left-enter":"k-push-left-enter","push-left-appear":"k-push-left-appear","push-left-enter-active":"k-push-left-enter-active","push-left-appear-active":"k-push-left-appear-active","push-left-exit":"k-push-left-exit","push-left-exit-active":"k-push-left-exit-active","push-down-enter":"k-push-down-enter","push-down-appear":"k-push-down-appear","push-down-enter-active":"k-push-down-enter-active","push-down-appear-active":"k-push-down-appear-active","push-down-exit":"k-push-down-exit","push-down-exit-active":"k-push-down-exit-active","push-up-enter":"k-push-up-enter","push-up-appear":"k-push-up-appear","push-up-enter-active":"k-push-up-enter-active","push-up-appear-active":"k-push-up-appear-active","push-up-exit":"k-push-up-exit","push-up-exit-active":"k-push-up-exit-active",expand:"k-expand","expand-vertical-enter":"k-expand-vertical-enter","expand-vertical-appear":"k-expand-vertical-appear","expand-vertical-enter-active":"k-expand-vertical-enter-active","expand-vertical-appear-active":"k-expand-vertical-appear-active","expand-vertical-exit":"k-expand-vertical-exit","expand-vertical-exit-active":"k-expand-vertical-exit-active","expand-horizontal-enter":"k-expand-horizontal-enter","expand-horizontal-appear":"k-expand-horizontal-appear","expand-horizontal-enter-active":"k-expand-horizontal-enter-active","expand-horizontal-appear-active":"k-expand-horizontal-appear-active","expand-horizontal-exit":"k-expand-horizontal-exit","expand-horizontal-exit-active":"k-expand-horizontal-exit-active","child-animation-container":"k-child-animation-container","fade-enter":"k-fade-enter","fade-appear":"k-fade-appear","fade-enter-active":"k-fade-enter-active","fade-appear-active":"k-fade-appear-active","fade-exit":"k-fade-exit","fade-exit-active":"k-fade-exit-active","zoom-in-enter":"k-zoom-in-enter","zoom-in-appear":"k-zoom-in-appear","zoom-in-enter-active":"k-zoom-in-enter-active","zoom-in-appear-active":"k-zoom-in-appear-active","zoom-in-exit":"k-zoom-in-exit","zoom-in-exit-active":"k-zoom-in-exit-active","zoom-out-enter":"k-zoom-out-enter","zoom-out-appear":"k-zoom-out-appear","zoom-out-enter-active":"k-zoom-out-enter-active","zoom-out-appear-active":"k-zoom-out-appear-active","zoom-out-exit":"k-zoom-out-exit","zoom-out-exit-active":"k-zoom-out-exit-active","slide-in-appear":"k-slide-in-appear",centered:"k-centered","slide-in-appear-active":"k-slide-in-appear-active","slide-down-enter":"k-slide-down-enter","slide-down-appear":"k-slide-down-appear","slide-down-enter-active":"k-slide-down-enter-active","slide-down-appear-active":"k-slide-down-appear-active","slide-down-exit":"k-slide-down-exit","slide-down-exit-active":"k-slide-down-exit-active","slide-up-enter":"k-slide-up-enter","slide-up-appear":"k-slide-up-appear","slide-up-enter-active":"k-slide-up-enter-active","slide-up-appear-active":"k-slide-up-appear-active","slide-up-exit":"k-slide-up-exit","slide-up-exit-active":"k-slide-up-exit-active","slide-right-enter":"k-slide-right-enter","slide-right-appear":"k-slide-right-appear","slide-right-enter-active":"k-slide-right-enter-active","slide-right-appear-active":"k-slide-right-appear-active","slide-right-exit":"k-slide-right-exit","slide-right-exit-active":"k-slide-right-exit-active","slide-left-enter":"k-slide-left-enter","slide-left-appear":"k-slide-left-appear","slide-left-enter-active":"k-slide-left-enter-active","slide-left-appear-active":"k-slide-left-appear-active","slide-left-exit":"k-slide-left-exit","slide-left-exit-active":"k-slide-left-exit-active","reveal-vertical-enter":"k-reveal-vertical-enter","reveal-vertical-appear":"k-reveal-vertical-appear","reveal-vertical-enter-active":"k-reveal-vertical-enter-active","reveal-vertical-appear-active":"k-reveal-vertical-appear-active","reveal-vertical-exit":"k-reveal-vertical-exit","reveal-vertical-exit-active":"k-reveal-vertical-exit-active","reveal-horizontal-enter":"k-reveal-horizontal-enter","reveal-horizontal-appear":"k-reveal-horizontal-appear","reveal-horizontal-enter-active":"k-reveal-horizontal-enter-active","reveal-horizontal-appear-active":"k-reveal-horizontal-appear-active","reveal-horizontal-exit":"k-reveal-horizontal-exit","reveal-horizontal-exit-active":"k-reveal-horizontal-exit-active"},Xe=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qe=function(){return(Qe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},Je=Ze,et=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xe(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.children,r=t.style,o=t.appear,a=t.enter,l=t.exit,u=t.transitionName,c=t.transitionEnterDuration,d=t.transitionExitDuration,p=t.className,f=t.onEnter,h=t.onEntering,m=t.onEntered,v=t.onExit,g=t.onExiting,y=t.onExited,b=t.onAfterExited,k=t.mountOnEnter,C=t.unmountOnExit,O=t.animationEnteringStyle,w=t.animationEnteredStyle,E=t.animationExitingStyle,S=t.animationExitedStyle,D=$e(t,["children","style","appear","enter","exit","transitionName","transitionEnterDuration","transitionExitDuration","className","onEnter","onEntering","onEntered","onExit","onExiting","onExited","onAfterExited","mountOnEnter","unmountOnExit","animationEnteringStyle","animationEnteredStyle","animationExitingStyle","animationExitedStyle"]),x=Object(s.classNames)(p,Je["child-animation-container"]),I=Qe({transitionDelay:"0ms"},r),T={entering:Qe({transitionDuration:c+"ms"},O),entered:Qe({},w),exiting:Qe({transitionDuration:d+"ms"},E),exited:Qe({},S)},_={in:this.props.in,appear:o,enter:a,exit:l,mountOnEnter:k,unmountOnExit:C,timeout:{enter:c,exit:d},onEnter:function(t){f&&f.call(void 0,{animatedElement:t,target:e})},onEntering:function(t){h&&h.call(void 0,{animatedElement:t,target:e})},onEntered:function(t){m&&m.call(void 0,{animatedElement:t,target:e})},onExit:function(t){v&&v.call(void 0,{animatedElement:t,target:e})},onExiting:function(t){g&&g.call(void 0,{animatedElement:t,target:e})},onExited:function(t){b&&b.call(void 0,{animatedElement:t,target:e}),y&&y.call(void 0,{animatedElement:t,target:e})},classNames:{appear:Je[u+"-appear"]||u+"-appear",appearActive:Je[u+"-appear-active"]||u+"-appear-active",enter:Je[u+"-enter"]||u+"-enter",enterActive:Je[u+"-enter-active"]||u+"-enter-active",exit:Je[u+"-exit"]||u+"-exit",exitActive:Je[u+"-exit-active"]||u+"-exit-active"}};return i.createElement(qe.CSSTransition,Qe({},_,D),(function(t){return i.createElement("div",{style:Qe({},I,T[t]),className:x,ref:function(t){e._element=t}},n)}))},t.propTypes={in:a.bool,children:a.oneOfType([a.arrayOf(a.node),a.node]),transitionName:a.string.isRequired,className:a.string,appear:a.bool,enter:a.bool,exit:a.bool,transitionEnterDuration:a.number.isRequired,transitionExitDuration:a.number.isRequired,mountOnEnter:a.bool,unmountOnExit:a.bool,animationEnteringStyle:a.object,animationEnteredStyle:a.object,animationExitingStyle:a.object,animationExitedStyle:a.object},t.defaultProps={mountOnEnter:!0,unmountOnExit:!1,onEnter:s.noop,onEntering:s.noop,onEntered:s.noop,onExit:s.noop,onExiting:s.noop,onExited:s.noop,onAfterExited:s.noop,animationEnteringStyle:{},animationEnteredStyle:{},animationExitingStyle:{},animationExitedStyle:{}},t}(i.Component),tt={name:"@progress/kendo-react-animation",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639558014,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"},nt=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rt=function(){return(rt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},it=Ze,at=function(e){function t(t){var n=e.call(this,t)||this;return Object(s.validatePackage)(tt),n}return nt(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.style,r=e.children,o=e.component,a=e.className,l=e.childFactory,u=(e.stackChildren,e.componentChildStyle),c=e.componentChildClassName,d=ot(e,["id","style","children","component","className","childFactory","stackChildren","componentChildStyle","componentChildClassName"]),p={id:t,style:n,component:o,childFactory:l,className:Object(s.classNames)(it["animation-container"],it["animation-container-relative"],a)},f=i.Children.map(r||null,(function(e){return i.createElement(et,rt({},d,{style:u,className:c}),e)}));return i.createElement(qe.TransitionGroup,rt({},p),f)},t.propTypes={children:a.oneOfType([a.arrayOf(a.node),a.node]),childFactory:a.any,className:a.string,component:a.string,id:a.string,style:a.any,transitionName:a.string.isRequired,appear:a.bool.isRequired,enter:a.bool.isRequired,exit:a.bool.isRequired,transitionEnterDuration:a.number.isRequired,transitionExitDuration:a.number.isRequired},t.defaultProps={component:"div"},t}(i.Component),st=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lt=function(){return(lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ut=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ct=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}st(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=ut(e,["children"]);return i.createElement(at,lt({},{transitionName:"fade"},n),t)},t.propTypes={children:a.oneOfType([a.arrayOf(a.node),a.node]),childFactory:a.any,className:a.string,component:a.string,id:a.string,style:a.any},t.defaultProps={appear:!1,enter:!0,exit:!1,transitionEnterDuration:500,transitionExitDuration:500}}(i.Component),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),dt=function(){return(dt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},pt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ft=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}ct(t,e),t.prototype.render=function(){var e=this.props,t=e.direction,n=e.children,r=pt(e,["direction","children"]),o={transitionName:"expand-"+t};return i.createElement(at,dt({},o,r),n)},t.propTypes={children:a.oneOfType([a.arrayOf(a.node),a.node]),childFactory:a.any,className:a.string,direction:a.oneOf(["horizontal","vertical"]),component:a.string,id:a.string,style:a.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"vertical"}}(i.Component),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ht=function(){return(ht=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},mt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},vt={position:"absolute",top:"0",left:"0"},gt=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}ft(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.direction,r=mt(e,["children","direction"]);return i.createElement(at,ht({},r,{transitionName:"push-"+n,animationExitingStyle:this.props.stackChildren?vt:void 0}),t)},t.propTypes={children:a.oneOfType([a.arrayOf(a.node),a.node]),childFactory:a.any,className:a.string,direction:a.oneOf(["up","down","left","right"]),component:a.string,id:a.string,style:a.any,stackChildren:a.bool},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"right",stackChildren:!1}}(i.Component),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),yt=function(){return(yt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},bt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},kt=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}gt(t,e),t.prototype.render=function(){var e=this.props,t=e.direction,n=e.children,r=bt(e,["direction","children"]),o={transitionName:"slide-"+t};return i.createElement(at,yt({},o,r),n)},t.propTypes={children:a.oneOfType([a.arrayOf(a.node),a.node]),childFactory:a.any,className:a.string,direction:a.oneOf(["up","down","left","right"]),component:a.string,id:a.string,style:a.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"down"}}(i.Component),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Ct=function(){return(Ct=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},wt={position:"absolute",top:"0",left:"0"},Et=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}kt(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.direction,r=Ot(e,["children","direction"]);return i.createElement(at,Ct({},r,{transitionName:"zoom-"+n,animationExitingStyle:this.props.stackChildren?wt:void 0}),t)},t.propTypes={children:a.oneOfType([a.arrayOf(a.node),a.node]),childFactory:a.any,className:a.string,direction:a.oneOf(["in","out"]),component:a.string,id:a.string,style:a.any,stackChildren:a.bool},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"out",stackChildren:!1}}(i.Component),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),St=function(){return(St=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Dt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},xt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={maxHeight:void 0,maxWidth:void 0},t.componentWillEnter=function(e){var n=t.props,r=n.onEnter,o=n.onBeforeEnter;o&&o.call(void 0,e),t.updateContainerDimensions(e.animatedElement,(function(){r&&r.call(void 0,e)}))},t.componentIsEntering=function(e){var n=t.props.onEntering;t.updateContainerDimensions(e.animatedElement,(function(){n&&n.call(void 0,e)}))},t.componentWillExit=function(e){var n=t.props.onExit;t.updateContainerDimensions(e.animatedElement,(function(){n&&n.call(void 0,e)}))},t.updateContainerDimensions=function(e,n){void 0===n&&(n=s.noop);var r=e.firstChild;if(r){var o=Ye(r),i=Ge(r);t.setState({maxHeight:o,maxWidth:i},n)}},t}return Et(t,e),t.prototype.render=function(){var e,t=this.props,n=t.direction,r=t.children,o=t.childFactory,a=Dt(t,["direction","children","childFactory"]),s=this.state,l=s.maxHeight,u=s.maxWidth,c={maxHeight:(e="vertical"===n?{maxHeight:l?l+"px":null}:{maxWidth:u?u+"px":null}).maxHeight,maxWidth:e.maxWidth};return i.createElement(at,St({},a,{childFactory:function(t){var n=o?o(t):t;return n.props.in?n:i.cloneElement(n,St({},n.props,{style:St({},n.props.style,{maxHeight:e.maxHeight,maxWidth:e.maxWidth})}))},onEnter:this.componentWillEnter,onEntering:this.componentIsEntering,onExit:this.componentWillExit,animationEnteringStyle:c,transitionName:"reveal-"+n}),r)},t.propTypes={children:a.oneOfType([a.arrayOf(a.node),a.node]),childFactory:a.any,className:a.string,direction:a.oneOf(["horizontal","vertical"]),component:a.string,id:a.string,style:a.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"vertical"},t}(i.Component),It=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tt=function(){return(Tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},_t=i.createContext((function(e){return e})),Pt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.itemGuid=Object(s.guid)(),t.onCheckChange=function(e){t.props.onCheckChange(e,t.item,t.itemId)},t.onExpandChange=function(e){t.props.onExpandChange(e,t.item,t.itemId)},t.onItemClick=function(e){t.props.onItemClick(e,t.item,t.itemId)},t.onPress=function(e){t.props.onPress(e.event,t.item,t.itemId)},t.onDrag=function(e){t.props.onDrag(e.event,t.item,t.itemId)},t.onRelease=function(e){t.props.onRelease(e.event,t.item,t.itemId)},t.assignDraggableMeta=function(e){e&&(e._kendoItemId=t.props.itemId,e._kendoTreeViewGuid=t.props.treeGuid)},t}return It(t,e),t.prototype.render=function(){var e=this,t=this.renderSubitemsIfApplicable(),n=this.renderItemInPart();return i.createElement("li",{className:this.getRootClassName(),tabIndex:this.tabIndex,role:"treeitem","aria-expanded":this.ariaExpanded,"aria-selected":this.ariaSelected,"aria-checked":this.ariaChecked,"aria-disabled":!!this.fieldsSvc.disabled(this.item)||void 0,ref:function(t){return e.itemElement=t}},i.createElement("div",{className:"k-mid",ref:this.assignDraggableMeta},this.renderExpandIcon(),this.renderCheckbox(),this.props.draggable?i.createElement(s.Draggable,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease},n):n),this.props.animate?i.createElement(xt,{transitionEnterDuration:200,transitionExitDuration:200,style:{display:"block"},children:t}):t)},t.prototype.componentDidMount=function(){var e=this.props.focusedItemId,t=this.itemId;e&&e===t&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement&&(this.checkboxElement.indeterminate=this.fieldsSvc.checkIndeterminate(this.item))},t.prototype.componentDidUpdate=function(e){var t=this.props.focusedItemId;if(t&&t!==e.focusedItemId&&t===this.itemId&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement){var n=this.fieldsSvc.checkIndeterminate(this.item);n!==e.fieldsService.checkIndeterminate(e.item)&&(this.checkboxElement.indeterminate=n)}},t.prototype.renderCheckbox=function(){var e=this;return this.props.checkboxes?i.createElement("div",{className:"k-checkbox-wrapper"},i.createElement("input",{type:"checkbox",className:"k-checkbox",checked:Boolean(this.fieldsSvc.checked(this.item)),id:this.itemGuid,tabIndex:-1,onChange:this.onCheckChange,ref:function(t){return e.checkboxElement=t}}),i.createElement("label",{className:"k-checkbox-label",htmlFor:this.itemGuid})):void 0},t.prototype.renderExpandIcon=function(){return this.props.expandIcons&&(this.fieldsSvc.hasChildren(this.item)||ze(this.item,this.fieldsSvc.getChildrenField()))?i.createElement("span",{className:this.getIconClassName(),onClick:this.onExpandChange}):void 0},t.prototype.renderSubitemsIfApplicable=function(){var e=this;return He(this.item,this.fieldsSvc)?i.createElement("ul",{className:"k-content",role:"group"},this.fieldsSvc.children(this.item).map((function(t,n){return i.createElement(Nt,{item:t,itemId:Me(n,e.itemId),treeGuid:e.props.treeGuid,animate:e.props.animate,focusedItemId:e.props.focusedItemId,tabbableItemId:e.props.tabbableItemId,fieldsService:e.props.fieldsService,itemUI:e.props.itemUI,checkboxes:e.props.checkboxes,ariaMultiSelectable:e.props.ariaMultiSelectable,onItemClick:e.props.onItemClick,onFocusDomElNeeded:e.props.onFocusDomElNeeded,draggable:e.props.draggable,onPress:e.props.onPress,onDrag:e.props.onDrag,onRelease:e.props.onRelease,expandIcons:e.props.expandIcons,onExpandChange:e.props.onExpandChange,onCheckChange:e.props.onCheckChange,key:n})}))):void 0},t.prototype.renderItemInPart=function(){return i.createElement("span",{className:this.getContentClassName(),style:{touchAction:"none"},onClick:this.onItemClick},this.props.itemUI?i.createElement(this.props.itemUI,{item:this.item,itemHierarchicalIndex:this.itemId}):this.fieldsSvc.text(this.item))},Object.defineProperty(t.prototype,"fieldsSvc",{get:function(){return this.props.fieldsService},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemId",{get:function(){return this.props.itemId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{get:function(){return(this.props.focusedItemId||this.props.tabbableItemId)===this.itemId?0:-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){return this.fieldsSvc.hasChildren(this.item)||ze(this.item,this.fieldsSvc.getChildrenField())?Boolean(this.fieldsSvc.expanded(this.item)):void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaChecked",{get:function(){return this.props.checkboxes?this.fieldsSvc.checked(this.item)?"true":this.fieldsSvc.checkIndeterminate(this.item)?"mixed":"false":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaSelected",{get:function(){return!!this.fieldsSvc.selected(this.item)||(this.props.ariaMultiSelectable?!!this.fieldsSvc.disabled(this.item)&&void 0:void 0)},enumerable:!0,configurable:!0}),t.prototype.getIconClassName=function(){return Object(s.classNames)("k-icon",{"k-i-expand":!this.fieldsSvc.expanded(this.item),"k-i-collapse":this.fieldsSvc.expanded(this.item),"k-i-loading":this.fieldsSvc.expanded(this.item)&&!ze(this.item,this.fieldsSvc.getChildrenField())})},t.prototype.getRootClassName=function(){return Object(s.classNames)("k-item k-treeview-item",{"k-state-disabled":this.fieldsSvc.disabled(this.item)})},t.prototype.getContentClassName=function(){return Object(s.classNames)("k-in",{"k-state-focused":this.props.focusedItemId===this.itemId,"k-state-selected":this.fieldsSvc.selected(this.item)})},t}(i.Component),Nt=i.forwardRef((function(e,t){var n=i.useContext(_t).call(void 0,e);return i.createElement(Pt,Tt({ref:t},n))}));Nt.displayName="TreeViewItem";var Mt=function(){function e(e){this.expandField=e.expandField,this.selectField=e.selectField,this.hasChildrenField=e.hasChildrenField,this.childrenField=e.childrenField,this.textField=e.textField,this.disableField=e.disableField,this.checkField=e.checkField,this.checkIndeterminateField=e.checkIndeterminateField,this.focusIdField=e.focusIdField}return e.prototype.expanded=function(e){return Be(this.expandField,e)},e.prototype.selected=function(e){return Be(this.selectField,e)},e.prototype.text=function(e){return Be(this.textField,e)},e.prototype.disabled=function(e){return Be(this.disableField,e)},e.prototype.hasChildren=function(e){return Be(this.hasChildrenField,e)},e.prototype.children=function(e){var t=Be(this.childrenField,e);return t||[]},e.prototype.checked=function(e){return Be(this.checkField,e)},e.prototype.checkIndeterminate=function(e){return Be(this.checkIndeterminateField,e)},e.prototype.focusId=function(e){return this.focusIdField&&Be(this.focusIdField,e)},e.prototype.getChildrenField=function(){return this.childrenField},e}(),Rt={name:"@progress/kendo-react-treeview",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639558346,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"},jt=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ft=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:"0"},n.allowExplicitFocus=!1,n.treeGuid=Object(s.guid)(),n._element=null,n.onFocusDomElNeeded=function(e){n.allowExplicitFocus&&n.focusDomItem(e)},n.onCheckChange=function(e,t,r){n.setFocus(r),n.dispatchCheckChange(e,t,r)},n.onExpandChange=function(e,t,r){n.setFocus(r),n.dispatchExpandChange(e,t,r)},n.onPress=function(e,t,r){n.props.onItemDragStart&&n.props.onItemDragStart.call(void 0,{target:n,item:t,itemHierarchicalIndex:r})},n.onDrag=function(e,t,r){var o=e.pageX,i=e.pageY,a=e.clientX,s=e.clientY;n.props.onItemDragOver&&n.props.onItemDragOver.call(void 0,{target:n,item:t,itemHierarchicalIndex:r,pageX:o,pageY:i,clientX:a,clientY:s})},n.onRelease=function(e,t,r){var o=e.pageX,i=e.pageY,a=e.clientX,s=e.clientY;n.props.onItemDragEnd&&n.props.onItemDragEnd.call(void 0,{target:n,item:t,itemHierarchicalIndex:r,pageX:o,pageY:i,clientX:a,clientY:s})},n.onItemClick=function(e,t,r){n.setFocus(r),n.dispatchItemClick(e,t,r)},n.onFocus=function(){clearTimeout(n.blurRequest),void 0===n.state.focusedItemId&&n.data.length&&n.setFocus(n.state.tabbableItemId)},n.onBlur=function(){clearTimeout(n.blurRequest),n.blurRequest=window.setTimeout((function(){return n.setFocus(void 0)}),0)},n.onKeyDown=function(e){var t=n.getFocusedItem();if(t){var r=We(t,n.state.focusedItemId,n.data,e.keyCode,n.fieldsSvc);r!==n.state.focusedItemId&&(e.preventDefault(),n.allowExplicitFocus=!0,n.setFocus(r)),n.dispatchEventsOnKeyDown(e,t)}},Object(s.validatePackage)(Rt),n}return jt(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;return this.fieldsSvc=new Mt(this.props),i.createElement("div",{className:"k-widget k-treeview"+(this.props.className?" "+this.props.className:""),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,role:"tree","aria-multiselectable":!!this.ariaMultiSelectable||void 0,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],ref:function(t){return e._element=t},tabIndex:this.props.tabIndex},i.createElement("ul",{className:"k-treeview-lines k-group",role:"group"},this.data.map((function(t,n){return i.createElement(Nt,{item:t,itemId:n.toString(),treeGuid:e.treeGuid,animate:e.props.animate,focusedItemId:e.state.focusedItemId,tabbableItemId:e.state.tabbableItemId,fieldsService:e.fieldsSvc,itemUI:e.props.item,checkboxes:e.props.checkboxes,ariaMultiSelectable:e.ariaMultiSelectable,onItemClick:e.onItemClick,onFocusDomElNeeded:e.onFocusDomElNeeded,draggable:e.props.draggable,onPress:e.onPress,onDrag:e.onDrag,onRelease:e.onRelease,expandIcons:e.props.expandIcons,onExpandChange:e.onExpandChange,onCheckChange:e.onCheckChange,key:n})}))))},t.prototype.componentDidUpdate=function(){this.allowExplicitFocus=!1,this.refocusDueToFocusIdField()},t.prototype.dispatchEventsOnKeyDown=function(e,t){var n=this,r=function(){return Ke(n.state.focusedItemId,n.data,n.fieldsSvc)};e.keyCode===s.Keys.left&&this.fieldsSvc.expanded(t)&&r()||e.keyCode===s.Keys.right&&!this.fieldsSvc.expanded(t)&&(this.fieldsSvc.hasChildren(t)||ze(t,this.props.childrenField))&&r()?this.dispatchExpandChange(e,t,this.state.focusedItemId):e.keyCode===s.Keys.enter&&r()?this.dispatchItemClick(e,t,this.state.focusedItemId):e.keyCode===s.Keys.space&&r()&&(e.preventDefault(),this.dispatchCheckChange(e,t,this.state.focusedItemId))},t.prototype.setFocus=function(e){if(e)if(this.fieldsSvc.focusIdField){var t=this.getItemById(e);this.setState({focusedItemId:e,focusedItemPublicId:this.fieldsSvc.focusId(t)})}else this.setState({focusedItemId:e});else this.setState((function(e){return{focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:e.focusedItemId}}))},t.prototype.getFocusedItem=function(){return this.state.focusedItemId?this.getItemById(this.state.focusedItemId):void 0},t.prototype.getItemById=function(e){return Te(e,this.data,this.props.childrenField||"items")},t.prototype.dispatchCheckChange=function(e,t,n){Object(s.dispatchEvent)(this.props.onCheckChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchExpandChange=function(e,t,n){Object(s.dispatchEvent)(this.props.onExpandChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchItemClick=function(e,t,n){Object(s.dispatchEvent)(this.props.onItemClick,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.refocusDueToFocusIdField=function(){if(this.fieldsSvc.focusIdField){var e=this.state.focusedItemPublicId;if(e){var t=this.props.getFocusHierarchicalIndex?this.props.getFocusHierarchicalIndex(e):(n=e,r=this.fieldsSvc.focusIdField,o=this.data,i=this.props.childrenField,(a=Ue([n],r,o,i)).length?a[0]:void 0);t!==this.state.focusedItemId&&(this.allowExplicitFocus=!0,this.setState({focusedItemId:t}))}}var n,r,o,i,a},Object.defineProperty(t.prototype,"ariaMultiSelectable",{get:function(){return!0===this.props["aria-multiselectable"]||"true"===this.props["aria-multiselectable"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.data||[]},enumerable:!0,configurable:!0}),t.prototype.focusDomItem=function(e){e.focus()},Object.defineProperty(t.prototype,"guid",{get:function(){return this.treeGuid},enumerable:!0,configurable:!0}),t.propTypes={data:a.arrayOf(a.any),animate:a.bool,tabIndex:a.number,focusIdField:a.string,getHierarchicalIndexById:a.func,onExpandChange:a.func,onItemClick:a.func,expandField:a.string,selectField:a.string,childrenField:a.string,hasChildrenField:a.string,textField:a.string,disableField:a.string,item:a.any,"aria-multiselectable":function(e,t,n){return void 0!==e[t]&&!0!==e[t]&&!1!==e[t]&&"true"!==e[t]&&"false"!==e[t]?new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Validation failed."):null},"aria-label":a.string,"aria-labelledby":a.string},t.defaultProps={animate:!0,expandField:"expanded",selectField:"selected",hasChildrenField:"hasChildren",childrenField:"items",textField:"text",disableField:"disabled",checkField:"checked",checkIndeterminateField:"checkIndeterminate"},t}(i.Component);var At=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lt=function(){return(Lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={visible:!1,top:0,left:0,text:"",operationClassName:"k-i-cancel"},t}At(t,e),t.prototype.render=function(){var e={top:this.state.top+"px",left:this.state.left+"px"};return this.state.visible&&i.createElement("div",{className:"k-header k-drag-clue",style:Lt({},this.props.style,e)},i.createElement("span",{className:Object(s.classNames)("k-icon k-drag-status k-icon-with-modifier",this.state.operationClassName)},i.createElement("span",{className:"k-icon k-icon-modifier"})),this.state.text)},t.prototype.show=function(e,t,n,r){this.setState({visible:!0,top:e,left:t,text:n,operationClassName:r})},t.prototype.hide=function(){this.setState({visible:!1})},t.defaultProps={style:{display:"block",position:"absolute",zIndex:2e4,padding:"4px 6px"}}})(i.PureComponent),function(){function e(e){this.event=e,this.initialized=!1,this.itemId=e.itemHierarchicalIndex,this.treeViewGuid=e.target.guid}e.prototype.init=function(){return this.initialized||(this.setDestimationMeta(document.elementFromPoint(this.event.clientX,this.event.clientY)),this.initialized=!0),this},Object.defineProperty(e.prototype,"isDropAllowed",{get:function(){return!!(this.initialized&&this.destItemId&&this.destTreeViewGuid)&&!(this.destTreeViewGuid+"_"+this.destItemId+"_").startsWith(this.treeViewGuid+"_"+this.itemId+"_")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destinationMeta",{get:function(){return{itemHierarchicalIndex:this.destItemId,treeViewGuid:this.destTreeViewGuid}},enumerable:!0,configurable:!0}),e.prototype.getDropOperation=function(){if(this.initialized&&this.isDropAllowed){var e=this.destDomNodeWithMeta.getBoundingClientRect(),t=e.top;return t+e.height-this.event.clientY<6?"after":this.event.clientY-t<6?"before":"child"}},e.prototype.setDestimationMeta=function(e){for(var t=e;t&&!t._kendoItemId;)t=t.parentNode;t&&t._kendoItemId&&(this.destDomNodeWithMeta=t,this.destItemId=t._kendoItemId,this.destTreeViewGuid=t._kendoTreeViewGuid)}}();function Vt(e,t,n){var r=i.useState(t),o=r[0],a=r[1];return i.useEffect((function(){void 0!==o&&e.current&&a(e.current.offsetWidth)}),n),o}var Bt=function(e){return i.createElement("div",{className:"k-nodata"},i.createElement("div",null,e.children))},zt=function(){return(zt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ht=function(e){return i.createElement(i.Fragment,null,e.children)},Ut=function(e){return e.split("_").map((function(e){return parseInt(e,10)}))},Kt="selected",Wt="items",qt={animate:!0,width:"200px",height:"200px"},Yt=!1,Gt=!0,Zt=Object(s.createPropsContext)(),Xt=i.forwardRef((function(e,t){Object(s.validatePackage)(z);var n=Object(s.usePropsContext)(Zt,e),r=i.useMemo((function(){return Object(s.guid)()}),[]),o=n.id||r,a=n.data,c=void 0===a?[]:a,d=n.dataItemKey,p=n.popupSettings,f=void 0===p?{}:p,h=n.style,v=void 0===h?{}:h,g=n.opened,y=n.disabled,k=n.onOpen,O=void 0===k?s.noop:k,w=n.onClose,E=void 0===w?s.noop:w,S=n.placeholder,D=n.label,x=n.name,I=n.selectField,T=void 0===I?Kt:I,R=n.subItemsField,j=void 0===R?Wt:R,F=n.validationMessage,A=n.valid,L=n.required,V=void 0===L?Yt:L,B=n.validityStyles,H=void 0===B?Gt:B,U=Object(s.getTabIndex)(n.tabIndex,y),K=i.useRef(null),W=i.useRef(null),q=i.useRef(null),Y=i.useRef(null),G=i.useRef(null),Z=i.useRef(!1),X=i.useState(void 0),Q=X[0],$=X[1],J=void 0!==n.value,ee=J?n.value:void 0!==Q?Q:n.defaultValue,te=m(ee),ne=te?b(ee,n.textField):"",re=function(e,t){var n=e.validationMessage,r=e.valid,o=e.required;return{customError:void 0!==n,valid:Boolean(void 0!==r?r:!o||t),valueMissing:!t}}({validationMessage:F,valid:A,required:V},te),oe=i.useCallback((function(){return W.current&&W.current.focus()}),[]);i.useImperativeHandle(K,(function(){return{props:n,element:W.current,actionElement:W.current,focus:oe}})),i.useImperativeHandle(t,(function(){return K.current}));var ie=Object(s.useRtl)(W,n.dir),ae=void 0!==f.width?f.width:void 0!==v.width?v.width:qt.width,se=Vt(W,ae),le=zt({width:se},void 0!==ie?{direction:ie}:{}),ue=i.useState(!1),ce=ue[0],de=ue[1],pe=void 0!==g?g:ce,fe=i.useState(!1),he=fe[0],me=fe[1],ve=i.useState(""),ge=ve[0],ye=ve[1],be=i.useCallback((function(){Y.current&&Y.current.setCustomValidity&&Y.current.setCustomValidity(re.valid?"":void 0===F?"Please select a value from the list!":F)}),[F,re]);i.useEffect(be);var ke=i.useCallback((function(e){if(!pe){if(O){var t=zt({},e);O.call(void 0,t)}void 0===g&&de(!0)}}),[pe,g,O]),Ce=i.useCallback((function(e){if(pe){if(E){var t=zt({},e);E.call(void 0,t)}void 0===g&&de(!1)}}),[pe,g,E]),Oe=i.useCallback((function(e){if(!e.isDefaultPrevented()&&K.current){me(!0);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:K.current};(pe?Ce:ke)(t)}}),[pe,g,O,E]),we=i.useCallback((function(e){Z.current=!0,e(),window.setTimeout((function(){return Z.current=!1}),0)}),[]),Ee=i.useCallback((function(e){var t=e.keyCode,n=e.altKey,r=G.current&&G.current.element;if(K.current&&(!e.isDefaultPrevented()||q.current!==e.target)){var o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:K.current};if(pe)if(t===s.Keys.esc||n&&t===s.Keys.up)Ce(o);else if(r&&r.querySelector(".k-state-focused")&&(t===s.Keys.up||t===s.Keys.down||t===s.Keys.left||t===s.Keys.right||t===s.Keys.home||t===s.Keys.end)){if(t===s.Keys.up&&q.current){var i=Array.from(r.querySelectorAll(".k-treeview-item")),a=i.slice().reverse().find((function(e){return Boolean(e&&e.querySelector(".k-state-focused"))}));if(a&&0===i.indexOf(a))return we((function(){De(q.current)}))}we(s.noop)}else t===s.Keys.down&&we((function(){De(q.current||r)}));else n&&t===s.Keys.down&&ke(o)}}),[pe,g,O,E]),Se=i.useCallback((function(e){var t=e.keyCode;e.altKey||t!==s.Keys.up&&t!==s.Keys.down||(e.preventDefault(),we(t===s.Keys.up?function(){De(W.current)}:function(){De(G.current&&G.current.element)}))}),[]),De=i.useCallback((function(e){e&&we((function(){return e.focus()}))}),[]),xe=i.useCallback((function(){!he&&pe?Ce({target:K.current}):n.filterable?De(q.current):De(G.current&&G.current.element)}),[E,n.filterable,he,g,pe]),Ie=i.useCallback((function(){he&&De(W.current)}),[he]),Te=i.useCallback((function(e){if(!he&&!Z.current&&(me(!0),n.onFocus&&K.current)){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:K.current};n.onFocus.call(void 0,t)}}),[he,n.onFocus]),_e=i.useCallback((function(e){if(he&&!Z.current&&K.current){me(!1);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:K.current};if(n.onBlur){var r=zt({},t);n.onBlur.call(void 0,r)}Ce(t)}}),[he,n.onBlur,pe,g,E]),Pe=i.useCallback((function(){he&&we(s.noop)}),[he]),Ne=i.useCallback((function(e,t,r){if(n.onChange){var o=zt({value:t,level:r?Ut(r):[]},e);n.onChange.call(void 0,o)}J||$(t)}),[n.onChange,J]),Me=i.useCallback((function(e){if(!C(e.item,ee,d)&&K.current){var t=e.item,n=e.itemHierarchicalIndex,r=e.nativeEvent,o={syntheticEvent:e.syntheticEvent,nativeEvent:r,target:K.current};Ne(o,t,n),Ce(o)}}),[J,ee,n.onChange,d,pe,g,E]),Re=i.useCallback((function(e){if(K.current){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:K.current};Ne(t,null),Ce(t),e.preventDefault()}}),[J,n.onChange,pe,g,E]),je=i.useCallback((function(e){if(n.onExpandChange&&K.current){var t=e.item,r=e.itemHierarchicalIndex,o=e.nativeEvent,i=e.syntheticEvent,a={level:Ut(r),item:t,nativeEvent:o,syntheticEvent:i,target:K.current};n.onExpandChange.call(void 0,a)}}),[n.onExpandChange]),Fe=i.useCallback((function(e){if(n.onFilterChange&&K.current){var t={filter:{field:n.textField,operator:"contains",value:e.target.value},syntheticEvent:e,nativeEvent:e.nativeEvent,target:K.current};n.onFilterChange.call(void 0,t),void 0===n.filter&&ye(e.target.value)}}),[n.onFilterChange,n.filter,n.textField]),Ae=i.useMemo((function(){return J||!te?c:Object(s.mapTree)(c,j,(function(e){var t;return Object(s.extendDataItem)(e,j,((t={})[T]=C(e,ee,d),t))}))}),[c,ee,J,te,T,j]),Le=n.listNoData||Bt,Ve=n.valueHolder||Ht,Be=Object(_.useLocalization)(),ze=!H||re.valid,He=i.createElement("span",{className:Object(s.classNames)("k-widget k-dropdowntree k-dropdowntree-clearable",n.className),tabIndex:U,accessKey:n.accessKey,id:o,style:D?zt({},v,{width:void 0}):v,dir:ie,ref:W,onKeyDown:y?void 0:Ee,onMouseDown:Pe,onFocus:Te,onBlur:_e,role:"listbox","aria-haspopup":"true","aria-expanded":pe,"aria-disabled":y,"aria-label":D,"aria-labelledby":n.ariaLabelledBy,"aria-describedby":n.ariaDescribedBy},i.createElement("span",{className:Object(s.classNames)("k-dropdown-wrap",{"k-state-focused":he,"k-state-disabled":y,"k-state-invalid":!ze}),onClick:y?void 0:Oe},i.createElement("span",{className:"k-input"},i.createElement(Ve,{item:ee},ne||S)),te&&!y&&i.createElement("span",{onClick:Re,className:"k-icon k-clear-value k-i-close",title:Be.toLanguageString(N,M[N]),role:"button",tabIndex:-1,onMouseDown:function(e){return e.preventDefault()}}),i.createElement("span",{className:"k-select","aria-label":"select"},i.createElement("span",{className:Object(s.classNames)("k-icon",{"k-i-arrow-60-down":!n.loading,"k-i-loading":n.loading})})),i.createElement("select",{name:x,ref:Y,tabIndex:-1,"aria-hidden":!0,title:D,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},i.createElement("option",{value:n.valueMap?n.valueMap.call(void 0,ee):ee}))),i.createElement(u.a,{className:Object(s.classNames)("k-list-container k-group k-reset k-popup-dropdowntree",f.className,{"k-rtl":"rtl"===ie}),popupClass:f.popupClass,style:le,animate:f.animate,anchor:W.current,show:pe,onOpen:xe,onClose:Ie,appendTo:f.appendTo},n.filterable&&i.createElement("span",{className:"k-list-filter"},i.createElement("input",{className:"k-textbox",tabIndex:U,ref:q,value:void 0===n.filter?ge:n.filter,onChange:Fe,onKeyDown:Se}),i.createElement("span",{className:"k-icon k-i-zoom"})),c.length>0?i.createElement(Ft,{ref:G,tabIndex:U,data:Ae,focusIdField:d,textField:n.textField,selectField:T,expandField:n.expandField,childrenField:j,expandIcons:!0,onItemClick:Me,onExpandChange:je,item:n.item}):i.createElement(Le,null,Be.toLanguageString(P,M[P]))));return D?i.createElement(l.FloatingLabel,{label:D,editorValue:ne,editorPlaceholder:S,editorValid:ze,editorDisabled:y,editorId:o,style:{width:v?v.width:void 0},children:He,dir:ie}):He})),Qt={opened:a.bool,disabled:a.bool,dir:a.string,tabIndex:a.number,accessKey:a.string,data:a.array,value:a.any,valueMap:a.func,placeholder:a.string,dataItemKey:a.string.isRequired,textField:a.string.isRequired,selectField:a.string,expandField:a.string,subItemsField:a.string,className:a.string,style:a.object,label:a.string,validationMessage:a.string,validityStyles:a.bool,valid:a.bool,required:a.bool,name:a.string,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,filterable:a.bool,filter:a.string,loading:a.bool,popupSettings:a.shape({animate:a.oneOfType([a.bool,a.shape({openDuration:a.number,closeDuration:a.number})]),popupClass:a.string,className:a.string,appendTo:a.any,width:a.oneOfType([a.string,a.number]),height:a.oneOfType([a.string,a.number])}),onOpen:a.func,onClose:a.func,onFocus:a.func,onBlur:a.func,onChange:a.func,onFilterChange:a.func,onExpandChange:a.func,item:a.func,valueHolder:a.func,listNoData:a.func};Xt.displayName="KendoReactDropDownTree",Xt.propTypes=Qt;var $t=function(){return($t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Jt="checkField",en="checkIndeterminateField",tn="items",nn={animate:!0,width:"200px",height:"200px"},rn=!1,on=!0,an=Object(s.createPropsContext)(),sn=i.forwardRef((function(e,t){var n=Object(s.usePropsContext)(an,e);Object(s.validatePackage)(z);var r=i.useMemo((function(){return Object(s.guid)()}),[]),o=n.id||r,a=n.data,c=void 0===a?[]:a,d=n.dataItemKey,p=n.popupSettings,f=void 0===p?{}:p,h=n.style,m=void 0===h?{}:h,v=n.opened,g=n.disabled,y=n.onOpen,k=void 0===y?s.noop:y,O=n.onClose,w=void 0===O?s.noop:O,S=n.placeholder,D=n.label,x=n.name,I=n.checkField,T=void 0===I?Jt:I,R=n.checkIndeterminateField,j=void 0===R?en:R,F=n.subItemsField,A=void 0===F?tn:F,L=n.validationMessage,V=n.valid,B=n.tags,H=n.value,U=n.required,K=void 0===U?rn:U,W=n.validityStyles,q=void 0===W?on:W,Y=Object(s.getTabIndex)(n.tabIndex,g),G=i.useRef(null),Z=i.useRef(null),X=i.useRef(null),Q=i.useRef(null),$=i.useRef(null),J=i.useRef(!1),ee=i.useRef([]),te=i.useRef(null),ne=i.useState(),re=ne[0],oe=ne[1],ie=i.useState(!1),ae=ie[0],se=ie[1],le=i.useState(!1),ue=le[0],ce=le[1],de=i.useState(""),fe=de[0],he=de[1],me=void 0!==v?v:ae,ve=Boolean(Array.isArray(H)&&H.length),ge=function(e,t){var n=e.validationMessage,r=e.valid,o=e.required;return{customError:void 0!==n,valid:Boolean(void 0!==r?r:!o||t),valueMissing:!t}}({validationMessage:L,valid:V,required:K},ve),ye=Object(s.useRtl)(Z,n.dir),be=void 0!==f.width?f.width:void 0!==m.width?m.width:nn.width,ke=Vt(Z,be),Ce=$t({width:ke},void 0!==ye?{direction:ye}:{}),Oe=i.useCallback((function(){return Z.current&&Z.current.focus()}),[]);ee.current=void 0===B?(H||[]).map((function(e){return{text:b(e,n.textField),data:[e]}})):B.slice(),i.useImperativeHandle(G,(function(){return{props:n,element:Z.current,actionElement:Z.current,focus:Oe}})),i.useImperativeHandle(t,(function(){return G.current}));var we=i.useCallback((function(){Q.current&&Q.current.setCustomValidity&&Q.current.setCustomValidity(ge.valid?"":void 0===L?"Please select a value from the list!":L)}),[L,ge]);i.useEffect(we),i.useEffect((function(){te.current&&me&&te.current.setPosition(te.current._popup)}),[H,me]);var Ee=i.useCallback((function(e,t,r){if(n.onChange){var o=$t({items:t,operation:r},e);n.onChange.call(void 0,o)}}),[n.onChange]),Se=i.useCallback((function(e){if(!C(e.item,H,d)&&G.current){var t=e.item,n=e.nativeEvent,r={syntheticEvent:e.syntheticEvent,nativeEvent:n,target:G.current};Ee(r,[t],"toggle")}}),[H,d,Ee]),De=i.useCallback((function(e){if(!me){if(k){var t=$t({},e);k.call(void 0,t)}void 0===v&&se(!0)}}),[me,v,k]),xe=i.useCallback((function(e){if(me){if(w){var t=$t({},e);w.call(void 0,t)}void 0===v&&se(!1)}}),[me,v,w]),Ie=i.useCallback((function(e){J.current=!0,e(),window.setTimeout((function(){return J.current=!1}),0)}),[]),Te=i.useCallback((function(e){e&&Ie((function(){return e.focus()}))}),[Ie]),_e=i.useCallback((function(){!ue&&me?xe({target:G.current}):n.filterable?Te(X.current):Te($.current&&$.current.element)}),[ue,me,Te,xe,n.filterable]),Pe=i.useCallback((function(){ue&&Te(Z.current)}),[ue,Te]),Ne=i.useCallback((function(e){if(!ue&&!J.current&&(ce(!0),n.onFocus&&G.current)){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};n.onFocus.call(void 0,t)}}),[ue,n.onFocus]),Me=i.useCallback((function(e){if(ue&&!J.current&&G.current){ce(!1);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};if(n.onBlur){var r=$t({},t);n.onBlur.call(void 0,r)}xe(t)}}),[ue,n.onBlur,me,v,w]),Re=i.useCallback((function(){ue&&Ie(s.noop)}),[ue,Ie]),je=i.useCallback((function(e){if(!e.isDefaultPrevented()&&G.current){ce(!0);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};me||De(t)}}),[me,De]),Fe=i.useCallback((function(e){var t=e.keyCode,n=e.altKey,r=$.current&&$.current.element;if(G.current&&(!e.isDefaultPrevented()||X.current!==e.target)){var o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};if(H&&H.length>0&&(t===s.Keys.left||t===s.Keys.right||t===s.Keys.home||t===s.Keys.end||t===s.Keys.delete)){var i=ee.current,a=re?i.findIndex((function(e){return E(e,re,d)})):-1,l=void 0,u=-1!==a;t===s.Keys.left?l=i[a=u?Math.max(0,a-1):i.length-1]:t===s.Keys.right?a===i.length-1?l=void 0:u&&(l=i[a=Math.min(i.length-1,a+1)]):t===s.Keys.home?l=i[0]:t===s.Keys.end?l=i[i.length-1]:t===s.Keys.delete&&u&&Ee(o,i[a].data,"delete"),l!==re&&oe(l)}if(me)if(t===s.Keys.esc||n&&t===s.Keys.up)xe(o);else if(r&&r.querySelector(".k-state-focused")&&(t===s.Keys.up||t===s.Keys.down||t===s.Keys.left||t===s.Keys.right||t===s.Keys.home||t===s.Keys.end)){if(t===s.Keys.up&&X.current){var c=Array.from(r.querySelectorAll(".k-treeview-item")),p=c.slice().reverse().find((function(e){return Boolean(e&&e.querySelector(".k-state-focused"))}));if(p&&0===c.indexOf(p))return Ie((function(){Te(X.current)}))}Ie(s.noop)}else t===s.Keys.down&&Ie((function(){Te(X.current||r)}));else n&&t===s.Keys.down&&De(o)}}),[me,xe,Te,Ie,De,re,d,H,Ee]),Ae=i.useCallback((function(e){var t=e.keyCode;e.altKey||t!==s.Keys.up&&t!==s.Keys.down||(e.preventDefault(),Ie(t===s.Keys.up?function(){Te(Z.current)}:function(){Te($.current&&$.current.element)}))}),[Te,Ie]),Le=i.useCallback((function(e){if(G.current){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};Ee(t,[],"clear"),xe(t),e.preventDefault()}}),[Ee,xe]),Ve=i.useCallback((function(e,t){xe({target:G.current}),ue||Te(X.current),Ee({syntheticEvent:t,nativeEvent:t.nativeEvent,target:G.current},e,"delete")}),[Ee,xe,Te,ue]),Be=i.useCallback((function(e){if(n.onExpandChange&&G.current){var t=e.item,r=e.itemHierarchicalIndex,o=e.nativeEvent,i=e.syntheticEvent,a={level:(s=r,s.split("_").map((function(e){return parseInt(e,10)}))),item:t,nativeEvent:o,syntheticEvent:i,target:G.current};n.onExpandChange.call(void 0,a)}var s}),[n.onExpandChange]),ze=i.useCallback((function(e){if(n.onFilterChange&&G.current){var t={filter:{field:n.textField,operator:"contains",value:e.target.value},syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};n.onFilterChange.call(void 0,t),void 0===n.filter&&he(e.target.value)}}),[n.onFilterChange,n.filter,n.textField]),He=n.listNoData||Bt,Ue=Object(_.useLocalization)(),Ke=!q||ge.valid,We=i.createElement("span",{className:Object(s.classNames)("k-widget k-dropdowntree",n.className,{"k-state-focused":ue&&!g,"k-state-invalid":!Ke,"k-state-disabled":g}),tabIndex:Y,accessKey:n.accessKey,id:o,style:D?$t({},m,{width:void 0}):m,dir:ye,ref:Z,onKeyDown:g?void 0:Fe,onMouseDown:Re,onFocus:Ne,onBlur:Me,role:"listbox","aria-haspopup":"true","aria-expanded":me,"aria-disabled":g,"aria-label":D,"aria-labelledby":n.ariaLabelledBy,"aria-describedby":n.ariaDescribedBy},i.createElement("span",{className:Object(s.classNames)("k-multiselect-wrap k-floatwrap",{"k-state-focused":ue,"k-state-disabled":g,"k-state-invalid":!Ke}),onClick:g?void 0:je},ee.current.length>0&&i.createElement(pe,{tag:n.tag,onTagDelete:Ve,data:ee.current,guid:r,focused:re?ee.current.find((function(e){return E(e,re,d)})):void 0}),n.loading&&i.createElement("span",{className:Object(s.classNames)("k-icon",{"k-i-loading":n.loading})}),ve&&!g&&i.createElement("span",{onClick:Le,className:"k-icon k-clear-value k-i-close",title:Ue.toLanguageString(N,M[N]),role:"button",tabIndex:-1,onMouseDown:function(e){return e.preventDefault()}}),i.createElement("select",{name:x,ref:Q,tabIndex:-1,"aria-hidden":!0,title:D,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},i.createElement("option",{value:n.valueMap?n.valueMap.call(void 0,H):H}))),i.createElement(u.a,{popupClass:f.popupClass,className:Object(s.classNames)("k-list-container k-group k-reset k-popup-dropdowntree",f.className,{"k-rtl":"rtl"===ye}),style:Ce,animate:f.animate,anchor:Z.current,show:me,onOpen:_e,onClose:Pe,appendTo:f.appendTo,ref:te},n.filterable&&i.createElement("span",{className:"k-list-filter"},i.createElement("input",{className:"k-textbox",tabIndex:Y,ref:X,value:void 0===n.filter?fe:n.filter,onChange:ze,onKeyDown:Ae}),i.createElement("span",{className:"k-icon k-i-zoom"})),c.length>0?i.createElement(Ft,{ref:$,tabIndex:Y,data:c,focusIdField:d,textField:n.textField,checkField:T,checkIndeterminateField:j,expandField:n.expandField,childrenField:A,expandIcons:!0,onItemClick:Se,onCheckChange:Se,onExpandChange:Be,checkboxes:!0,item:n.item}):i.createElement(He,null,Ue.toLanguageString(P,M[P]))));return D?i.createElement(l.FloatingLabel,{label:D,editorValue:ve,editorPlaceholder:S,editorValid:Ke,editorDisabled:g,editorId:o,style:{width:m?m.width:void 0},children:We,dir:ye}):We})),ln={opened:a.bool,disabled:a.bool,dir:a.string,tabIndex:a.number,accessKey:a.string,data:a.array,value:a.any,valueMap:a.func,placeholder:a.string,dataItemKey:a.string.isRequired,textField:a.string.isRequired,checkField:a.string,checkIndeterminateField:a.string,expandField:a.string,subItemsField:a.string,className:a.string,style:a.object,label:a.string,validationMessage:a.string,validityStyles:a.bool,valid:a.bool,required:a.bool,name:a.string,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,filterable:a.bool,filter:a.string,loading:a.bool,tags:a.arrayOf(a.shape({text:a.string,data:a.arrayOf(a.any)})),popupSettings:a.shape({animate:a.oneOfType([a.bool,a.shape({openDuration:a.number,closeDuration:a.number})]),popupClass:a.string,className:a.string,appendTo:a.any,width:a.oneOfType([a.string,a.number]),height:a.oneOfType([a.string,a.number])}),onOpen:a.func,onClose:a.func,onFocus:a.func,onBlur:a.func,onChange:a.func,onFilterChange:a.func,onExpandChange:a.func,item:a.func,listNoData:a.func};sn.displayName="KendoReactMultiSelectTree",sn.propTypes=ln;var un=function(e,t){var n={};return e&&e.length&&e.forEach((function(e){n[t(e)]=!0})),n},cn=function(e,t){var n=t.items,r=t.dataItemKey,o=t.value,i=t.subItemsField,a=void 0===i?"items":i,l=t.operation,u=Object(s.getter)(r),c=un(o,u);if("clear"===l)return[];if("delete"===l){var d=un(n,u);return o.filter((function(e){return!d[u(e)]}))}for(var p,f,h=n[0],m=u(h),v=Object(s.getter)(a),g=e.slice(),y=[];g.length;){var b=g.pop();if(m===u(b)){p=y.map((function(e){return e.item})),f=b;break}y&&y.length&&y[y.length-1].parentPosition===g.length&&y.pop(),(D=v(b))&&D.length&&(y.push({item:b,parentPosition:g.length}),g.push.apply(g,D))}for(var k=(v(f)||[]).slice(),C=[];k.length;){b=k.pop();C.push(b),(D=v(b))&&D.length&&k.push.apply(k,D)}var O=[];if(!c[m]){O.push.apply(O,o),O.push(f),O.push.apply(O,C.filter((function(e){return!c[u(e)]})));for(var w=p.filter((function(e){return!c[u(e)]})),E=un(O,u),S=w.length-1;S>-1;S--){var D,x=w[S];if((D=v(x)).filter((function(e){return E[u(e)]})).length<D.length)break;O.push(x),E[u(x)]=!0}}else{var I=u(f),T=un(C,u),_=un(p,u);O.push.apply(O,o.filter((function(e){var t=u(e);return!T[t]&&I!==t&&!_[t]})))}return O}},function(e,t,n){"use strict";n.r(t),n.d(t,"isCompositeFilterDescriptor",(function(){return v})),n.d(t,"toODataString",(function(){return q})),n.d(t,"toDataSourceRequestString",(function(){return Ne})),n.d(t,"toDataSourceRequest",(function(){return Me})),n.d(t,"translateDataSourceResultGroups",(function(){return Ke})),n.d(t,"translateAggregateResults",(function(){return We})),n.d(t,"orderBy",(function(){return yt})),n.d(t,"process",(function(){return Ct})),n.d(t,"distinct",(function(){return kt})),n.d(t,"getter",(function(){return X})),n.d(t,"filterBy",(function(){return ft})),n.d(t,"compileFilter",(function(){return pt})),n.d(t,"groupBy",(function(){return vt})),n.d(t,"composeSortDescriptors",(function(){return Xe})),n.d(t,"normalizeFilters",(function(){return P})),n.d(t,"normalizeGroups",(function(){return ht})),n.d(t,"aggregateBy",(function(){return at}));var r,o,i,a,s,l=function(e){return null!=e},u=function(e){return null==e},c=function(e){return Array.isArray(e)},d=function(e){return"function"==typeof e},p=function(e){return"string"==typeof e},f=function(e){return!function(e){return u(e)||0===e.trim().length}(e)},h=function(e){return!isNaN(e-parseFloat(e))},m=function(e){return e&&e.getTime},v=function(e){return l(e.filters)},g=n(8),y=function(e,t,n){return function(r){return e(r)?t(r):n(r)}},b=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduceRight((function(e,t){return t(e)}),t)}},k=function(e){return e},C=function(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e()?""+t[0]+n[0]+t[1]:n[0]}},O=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},w=function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:"'"+n.replace(/'/g,"''")+"'",field:t,ignoreCase:r,operator:o}},E=function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:""+encodeURIComponent(n),field:t,ignoreCase:r,operator:o}},S=function(e){var t=e.field,n=e.value,o=e.ignoreCase,i=e.operator;return{field:C((function(){return o}))(r||(r=g.c(["tolower(",")"],["tolower(",")"])),t),value:n,ignoreCase:o,operator:i}},D=function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:n,field:t.replace(/\./g,"/"),ignoreCase:r,operator:o}},x=function(e){return p(e.value)},I=function(e){return m(e.value)},T=function(e,t){return function(n){return C((function(){return n.filters.length>1}))(o||(o=g.c(["(",")"],["(",")"])),n.filters.map(e).join(t(n)))}},_=function(e){e.filters&&(e.filters=e.filters.map((function(e){var t,n=Object.assign({},e);return!v(e)&&p(e.operator)&&(n.operator={"!=":"neq","<":"lt","<=":"lte","==":"eq",">":"gt",">=":"gte",equal:"eq",equals:"eq",equalto:"eq",ge:"gte",greater:"gt",greaterthan:"gt",greaterthanequal:"gte",isempty:"isempty",isequalto:"eq",isgreaterthan:"gt",isgreaterthanorequalto:"gte",islessthan:"lt",islessthanorequalto:"lte",isnotempty:"isnotempty",isnotequalto:"neq",isnull:"isnull",le:"lte",less:"lt",lessthan:"lt",lessthanequal:"lte",ne:"neq",notequal:"neq",notequals:"neq",notequalto:"neq",notsubstringof:"doesnotcontain"}[(t=e.operator).toLowerCase()]||t),v(e)&&_(n),n})))},P=function(e){return l(e)&&(e=function(e){return v(e)?Object.assign({},e):{filters:c(e)?e:[e],logic:"and"}}(e),_(e)),e},N=function(e){var t=e.operator;return function(e){var n=e.field,r=e.value;return n+" "+t+" "+r}},M=function(e){return b(e,E,w,S,D)},R=function(e){return M((t=e.operator,function(e){var n=e.field,r=e.value;return t+"("+n+","+r+")"}));var t},j=function(e){return b(N(e),D,(t=e.utcDates,function(e){var n=e.field,r=e.value,o=e.ignoreCase,i=e.operator;return{value:JSON.stringify(t?r:O(r)).replace(/"/g,""),field:n,ignoreCase:o,operator:i}}));var t},F=function(e){return y(I,j(e),function(e){return b(N(e),D)}(e))},A=function(e){return y(x,function(e){return M(N(e))}(e),F(e))},L=function(e){return e+" eq -1"},V=function(e){return b(e,D)},B=function(e){return" "+e.logic+" "},z=function(e){return function(t){return function(e,t){return{contains:R(g.a({},t,{operator:"contains"})),doesnotcontain:b(L,R(g.a({},t,{operator:"indexof"}))),endswith:R(g.a({},t,{operator:"endswith"})),eq:A(g.a({},t,{operator:"eq"})),gt:A(g.a({},t,{operator:"gt"})),gte:A(g.a({},t,{operator:"ge"})),isempty:V((function(e){return e.field+" eq ''"})),isnotempty:V((function(e){return e.field+" ne ''"})),isnotnull:V((function(e){return e.field+" ne null"})),isnull:V((function(e){return e.field+" eq null"})),lt:A(g.a({},t,{operator:"lt"})),lte:A(g.a({},t,{operator:"le"})),neq:A(g.a({},t,{operator:"ne"})),startswith:R(g.a({},t,{operator:"startswith"}))}[e]}(t.operator,e)(t)}},H=function(e){return T((function(t){return y(v,H(e),z(e))(t)}),B)},U=function(e,t){return void 0===t&&(t={}),e.filters&&e.filters.length?"$filter="+H(t)(P(e)):""},K=(i="",function(){return i}),W=function(e,t){return y(l,(n=e[0],function(e){return n+e}),K)(t);var n},q=function(e,t){return void 0===t&&(t={}),Object.keys(e).map(function(e,t){return function(n){return{filter:U(t.filter||{},e),skip:W(a||(a=g.c(["$skip=",""],["$skip=",""])),t.skip),sort:(r=t.sort||[],o=r.filter((function(e){return l(e.dir)})).map((function(e){var t=e.field.replace(/\./g,"/");return"desc"===e.dir?t+" desc":t})).join(","),o?"$orderby="+o:o),take:W(s||(s=g.c(["$top=",""],["$top=",""])),t.take)}[n];var r,o}}(t,e)).filter(f).join("&")},Y={},G=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;Y[void 0]=function(e){return e};var Z,X=function(e,t){var n=e+t;if(Y[n])return Y[n];var r=[];return e.replace(G,(function(e,t,n,o){r.push(l(t)?t:n||o)})),Y[n]=function(e){for(var n=e,o=0;o<r.length;o++)if(n=n[r[o]],!l(n)&&t)return n;return n},Y[n]},Q=function(e){return function(t){return[e,t]}},$=function(){return null},J=function(e){return function(t){return l(e(t))}},ee=function(e){return function(t){return function(e){return l(e)&&c(e)&&e.length>0}(e(t))}},te=function(e,t){return y(e,t,$)},ne=function(e,t){return function(n){return e(n).map(t).join("~")}},re=b.apply(void 0,[['"',""],[":","-"]].map((function(e){var t=e[0],n=e[1];return function(e){return e.replace(new RegExp(t,"g"),n)}}))),oe=(Z=".",function(e){return e.slice(0,e.indexOf(Z))}),ie=function(e){var t=e.field,n=e.dir;return t+"-"+(void 0===n?"asc":n)},ae=X("take"),se=X("aggregates"),le=X("skip"),ue=X("group"),ce=X("sort",!0),de=ne(ce,ie),pe=ne(ue,ie),fe=ne(se,(function(e){return e.field+"-"+e.aggregate})),he=b((function(e){return"datetime'"+e+"'"}),oe,re,JSON.stringify,O),me=b(Q("page"),(function(e){var t=e.skip,n=e.take;return Math.floor((t||0)/n)+1})),ve=b(Q("pageSize"),ae),ge=b(Q("group"),pe),ye=b(Q("sort"),de),be=b(Q("aggregate"),fe),ke=te(J(le),me),Ce=te(J(ae),ve),Oe=te(ee(ue),ge),we=te(J(se),be),Ee=b(te(ee(ce),ye),(function(e){return Object.assign({},e,{sort:(ce(e)||[]).filter((function(e){var t=e.dir;return f(t)}))})})),Se=function(e){var t=e.field;return f(t)},De=function(e){return e.field+"~"+e.operator+"~"+e.value},xe=y(I,b(De,(function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:he(n),field:t,ignoreCase:r,operator:o}})),De),Ie=function(e){return"~"+e.logic+"~"},Te=function(e){return T((function(t){return y(v,Te(e),function(e){return te(Se,y(x,b(De,w,e?E:k),xe))}(e))(t)}),Ie)},_e=function(e,t){var n=e.filter;if(n&&n.filters){var r=Te(t)(n);if(r.length)return["filter",r]}return null},Pe=function(e,t){return void 0===t&&(t=!0),function(n){return{aggregates:we(e),filter:_e(e,t),group:Oe(e),skip:ke(e),sort:Ee(e),take:Ce(e)}[n]}},Ne=function(e){return(t=Object.keys(e).map(Pe(e)).filter(l),t.reduce((function(e,t){var n=t[0],r=t[1];return e.concat([n+"="+r])}),[])).join("&");var t},Me=function(e){return Object.keys(e).map(Pe(e,!1)).filter(l).reduce((function(e,t){var n,r=t[0],o=t[1];return g.a({},e,((n={})[r]=o,n))}),{})},Re=function(e,t,n){return t[e]=n,t},je=function(e){return function(t){var n,r=t[e];return l(r)?r:t[(n=e,n.replace(/(^[A-Z])/g,(function(e,t){return t.toLowerCase()})))]}},Fe=je("Member"),Ae=je("AggregateMethodName"),Le=je("Value"),Ve=function(e){return function(t){return Object.keys(t).reduce(e.bind(null,t),{})}},Be=Ve((function(e,t,n){return Re(n.toLowerCase(),t,e[n])})),ze=Ve((function(e,t,n){return Re(n,t,Be(e[n]))})),He=function(e,t){return l(e)?e:t},Ue=b((function(e){var t=e.field,n=e.hasSubgroups,r=e.value,o=e.aggregates,i=e.items;return{aggregates:ze(o),field:t,items:n?i.map(Ue):i,value:r}}),(function(e){return{aggregates:e.Aggregates||e.aggregates,field:e.Member||e.member||e.field,hasSubgroups:e.HasSubgroups||e.hasSubgroups||!1,items:e.Items||e.items,value:He(e.Key,He(e.key,e.value))}})),Ke=function(e){return e.map(Ue)},We=function(e){return(e||[]).reduce((function(e,t){return Re(Fe(t),e,Re(Ae(t).toLowerCase(),e[Fe(t)]||{},Le(t)))}),{})},qe=function(e,t){return u(e)?e===t?0:-1:u(t)?1:e.localeCompare?e.localeCompare(t):e>t?1:e<t?-1:0},Ye=function(e,t){return qe(t,e)},Ge=function(e){var t=X(e.field,!0);return function(n,r){return("asc"===e.dir?qe:Ye)(t(n),t(r))}},Ze=function(e,t){return 0},Xe=function(e){return e.filter((function(e){return l(e.dir)})).map((function(e){return Ge(e)})).reduce((function(e,t){return function(n,r){return e(n,r)||t(n,r)}}),Ze)},Qe=function(e){var t=X(e,!0),n=0;return function(r,o){r[e]=r[e]||{};var i=t(o),a=function(e){return(e=l(e)&&e.getTime?e.getTime():e)+""}(i),s=r[e][a]||{__position:n++,aggregates:{},items:[],value:i};return s.items.push(o),r[e][a]=s,r}},$e=function(e){var t=e.map((function(e){var t=X(e.field,!0),n=(e.aggregate||"").toLowerCase(),r=X(n,!0);return function(o,i){var a=o[e.field]||{},s=r(a)||{average:function(){var e=0,t=0;return{calc:function(n){h(n)?(e+=n,t++):e=n},result:function(){return h(e)?e/t:e}}},count:function(){var e=0;return{calc:function(){return e++},result:function(){return e}}},max:function(){var e=Number.NEGATIVE_INFINITY;return{calc:function(t){(e=h(e)||m(e)?e:t)<t&&(h(t)||m(t))&&(e=t)},result:function(){return e}}},min:function(){var e=Number.POSITIVE_INFINITY;return{calc:function(t){(e=h(e)||m(e)?e:t)>t&&(h(t)||m(t))&&(e=t)},result:function(){return e}}},sum:function(){var e=0;return{calc:function(t){t=l(t)?t:0,e+=t},result:function(){return e}}}}[n]();return s.calc(t(i)),a[e.aggregate]=s,o[e.field]=a,o}}));return function(e,n){return t.reduce((function(e,t){return t(e,n)}),e)}},Je=function(e,t){return e.push(t),e},et=function(e){return function(t){return function(n,r,o){return t(n,e(r,o))}}},tt=function(e){return function(t){return function(n,r){return e(r)?t(n,r):n}}},nt=function(e){return l(e.__value)},rt=function(e){return nt(e)?e:{__value:e,reduced:!0}},ot=function(e,t,n){for(var r=t,o=0,i=n.length;o<i;o++)if(r=e(r,n[o],o),nt(r)){r=r.__value;break}return r},it=et((function(e){return e})),at=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=it);var r={};return t.length?function(e){return void 0===e&&(e={}),Object.keys(e).forEach((function(t){var n=e[t];Object.keys(n).forEach((function(e){n[e]=n[e].result()}))})),e}(ot(n($e(t)),r,e)):r},st={or:{concat:function(e,t){return function(n){return e(n)||t(n)}},identity:function(){return!1}},and:{concat:function(e,t){return function(n){return e(n)&&t(n)}},identity:function(){return!0}}},lt={contains:function(e,t){return(e||"").indexOf(t)>=0},doesnotcontain:function(e,t){return-1===(e||"").indexOf(t)},doesnotendwith:function(e,t){return(e||"").indexOf(t,(e||"").length-(t||"").length)<0},doesnotstartwith:function(e,t){return-1===(e||"").lastIndexOf(t,0)},endswith:function(e,t){return(e||"").indexOf(t,(e||"").length-(t||"").length)>=0},eq:function(e,t){return e===t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t},isempty:function(e){return""===e},isnotempty:function(e){return""!==e},isnotnull:function(e){return l(e)},isnull:function(e){return u(e)},lt:function(e,t){return e<t},lte:function(e,t){return e<=t},neq:function(e,t){return e!=t},startswith:function(e,t){return 0===(e||"").lastIndexOf(t,0)}},ut=/^\/Date\((.*?)\)\/$/,ct=function(e){var t=e.field,n=e.ignoreCase,r=e.value,o=e.operator;t=l(t)?t:function(e){return e},n=!l(n)||n;var i=function(e,t,n){if(!l(t))return e;var r=e;if(p(t)){var o=ut.exec(t);o?t=new Date(+o[1]):r=function(t){var r=e(t);return"string"==typeof r&&n?r.toLowerCase():h(r)?r+"":r}}return m(t)?function(e){var t=r(e);return m(t)?t.getTime():t}:r}(d(t)?t:X(t,!0),r,n);r=function(e,t){if(null!=e&&p(e)){var n=ut.exec(e);if(n)return new Date(+n[1]).getTime();if(t)return e.toLowerCase()}else if(null!=e&&m(e))return e.getTime();return e}(r,n);var a=d(o)?o:lt[o];return function(e){return a(i(e),r,n)}},dt=function(e){var t=st[e.logic];return e.filters.filter(l).map((function(e){return v(e)?dt(e):ct(e)})).reduce(t.concat,t.identity)},pt=function(e){return e&&0!==e.filters.length?dt(e):function(){return!0}},ft=function(e,t){return!l(t)||v(t)&&0===t.filters.length?e:e.filter(pt(P(t)))},ht=function(e){return(e=c(e)?e:[e]).map((function(e){return Object.assign({dir:"asc"},e)}))},mt=et((function(e){return e})),vt=function(e,t,n,r){if(void 0===t&&(t=[]),void 0===n&&(n=mt),void 0===r&&(r=e),!(t=ht(t)).length)return e;var o=t[0],i=ot(n(Qe(o.field)),{},e),a=[];return Object.keys(i).forEach((function(e){Object.keys(i[e]).forEach((function(n){var s=i[e][n],u={},c=r;l(o.aggregates)&&(c=ft(r,{field:o.field,ignoreCase:!1,operator:"eq",value:s.value}),u=at(c,o.aggregates)),a[s.__position]={aggregates:u,field:e,items:t.length>1?vt(s.items,t.slice(1),mt,c):s.items,value:s.value}}))})),a},gt=function(e,t,n,r){if(!(n-t<2)){var o=t+n>>>1;gt(e,t,o,r),gt(e,o,n,r),function(e,t,n,r,o){for(var i=n-t,a=r-n,s=[],l=0;l<i;l++)s.push(e[t+l]);var u=0,c=n,d=t;do{o(e[c],s[u])<0?(e[d++]=e[c++],a--):(e[d++]=s[u++],i--)}while(a>0&&i>0);for(;i;)e[d++]=s[u++],i--;for(;a;)e[d++]=e[c++],a--}(e,t,o,n,r)}},yt=function(e,t){if(t.some((function(e){return l(e.dir)}))){e=e.slice(0);var n=Xe(t);gt(e,0,e.length,n)}return e},bt=function(e,t){return e===t},kt=function(e,t){return void 0===t&&(t=bt),function(e,t){return e.filter((function(e,n,r){return r.findIndex(t.bind(null,e))===n}))}(e,function(e){if(p(e)){var t=X(e);e=function(e,n){return t(e)===t(n)}}return e}(t))},Ct=function(e,t){var n=t.skip,r=t.take,o=t.filter,i=t.sort,a=t.group,s=ht(a||[]).concat(i||[]);s.length&&(e=yt(e,s));var u,c=l(o)&&tt.length,d=l(a)&&a.length;if(!c&&!d)return{data:r?e.slice(n,n+r):e,total:e.length};var p,f,h=[];if(c?(u=function(e,t){for(var n=0,r=0,o=e.length;r<o;r++)t(e[r])&&n++;return n}(e,p=pt(P(o))),h.push(tt(p))):u=e.length,l(n)&&l(r)&&(h.push((f=n,function(e){return function(t,n){return f--<=0?e(t,n):t}})),h.push(function(e){return function(t){return function(n,r){return e-- >0?t(n,r):rt(n)}}}(r))),h.length){var m=b.apply(void 0,h);return{data:d?vt(e,a,m,function(e,t){return t?e.filter(t):e}(e,p)):ot(m(Je),[],e),total:u}}return{data:d?vt(e,a):e,total:u}}},function(e,t,n){"use strict";n.r(t),n.d(t,"Dialog",(function(){return y})),n.d(t,"DialogActionsBar",(function(){return l})),n.d(t,"DialogPropsContext",(function(){return g})),n.d(t,"Window",(function(){return M})),n.d(t,"WindowActionsBar",(function(){return x})),n.d(t,"WindowPropsContext",(function(){return N}));var r=n(0),o=n(16),i=n(1),a=function(e){var t=e.children,n=e.onCloseButtonClick,o=e.id,i=e.closeIcon;return r.createElement("div",{className:"k-window-titlebar k-dialog-titlebar k-header",id:o},r.createElement("div",{className:"k-window-title k-dialog-title"},t),r.createElement("div",{className:"k-window-actions k-dialog-actions"},i&&r.createElement("a",{href:"#",role:"button","aria-label":"Close",onClick:n,className:"k-button k-flat k-button-icon k-window-action k-dialog-action k-dialog-close"},r.createElement("span",{className:"k-icon k-i-x"}))))},s=n(2),l=function(e){var t=e.layout,n=void 0===t?d.layout:t,o=e.children,i=Object(s.classNames)("k-dialog-buttongroup","k-actions","k-hstack",{"k-justify-content-start":"start"===n,"k-justify-content-center":"center"===n,"k-justify-content-end":"end"===n,"k-justify-content-stretch":"stretched"===n});return r.createElement("div",{className:i},o)};l.propTypes={children:i.any,layout:i.oneOf(["start","center","end","stretched"])};var u,c,d={layout:"stretched"},p={name:"@progress/kendo-react-dialogs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639558579,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"},f=function(e,t,n){var r=e;if(t&&t.defaultView){var o=t.querySelectorAll(".k-window:not(.k-dialog), .k-dialog-wrapper"),i=!1;return o.forEach((function(e){var o=t.defaultView.getComputedStyle(e,null);if(e.getAttribute("data-windowid")!==n&&null!==o.zIndex){var a=parseInt(o.zIndex,10);a>=r&&(r=a,i=!0)}})),i?r+2:r}return r},h=(u=function(e,t){return(u=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}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(){return(m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},v=function(e){function t(t){var n=e.call(this,t)||this;return n._id=Object(s.guid)(),n.titleId=n.generateTitleId(),n.onCloseDialog=function(e){e.preventDefault(),Object(s.dispatchEvent)(n.props.onClose,e,n,void 0)},n.onKeyDown=function(e){e.keyCode===s.Keys.esc&&n.props.onClose&&(e.preventDefault(),n.onCloseDialog(e));var t=n.element;if(t&&e.keyCode===s.Keys.tab){var r=t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),o=r[0],i=r[r.length-1],a=n.getDocument();e.shiftKey?a&&a.activeElement===o&&(i.focus(),e.preventDefault()):a&&a.activeElement===i&&(o.focus(),e.preventDefault())}},n.getCurrentZIndex=function(){return n.state?n.state.zIndex>(n.context?n.context+2:0)?n.state.zIndex:n.context+2:n.context?n.context:10002},n.getDocument=function(){return n.props.appendTo?n.props.appendTo.ownerDocument:document},Object(s.validatePackage)(p),n.state={zIndex:f(n.getCurrentZIndex(),n.getDocument(),n._id)},n}return h(t,e),t.prototype.componentDidMount=function(){this.element&&this.props.autoFocus&&this.element.focus()},t.prototype.render=function(){var e,t=this,n=void 0!==this.props.id?this.props.id:this.titleId,i=this.props,l=i.title,u=i.width,c=i.height,d=i.children,p=i.minWidth,f=i.dir,h=i.style,v=i.contentStyle,g=r.Children.toArray(d),y=this.getContent(g),b=this.getActionBar(g),k=l?{"aria-labelledby":n}:null,C=void 0===this.props.closeIcon||this.props.closeIcon,O=this.getCurrentZIndex(),w=r.createElement(s.ZIndexContext.Provider,{value:O},r.createElement("div",m({},((e={})["data-windowid"]=this._id,e),{className:"k-dialog-wrapper"+(this.props.className?" "+this.props.className:""),onKeyDown:this.onKeyDown,tabIndex:0,dir:f,style:m({zIndex:O},h),ref:function(e){return t.element=e}}),r.createElement("div",{className:"k-overlay"}),r.createElement("div",m({},k,{className:"k-widget k-window k-dialog",role:"dialog",style:{width:u,height:c,minWidth:p}}),this.props.title&&r.createElement(a,{closeIcon:C,onCloseButtonClick:this.onCloseDialog,id:n},l),r.createElement("div",{className:"k-window-content k-dialog-content",style:v},y),b)));return s.canUseDOM?o.createPortal(w,this.props.appendTo||document.body):null},t.prototype.getActionBar=function(e){return e.filter((function(e){return e&&e.type===l}))},t.prototype.getContent=function(e){return e.filter((function(e){return e&&e.type!==l}))},t.prototype.generateTitleId=function(){return"dialog-title"+this._id},t.displayName="Dialog",t.propTypes={title:i.any,id:i.string,dir:i.string,style:i.object,closeIcon:i.bool,width:i.oneOfType([i.number,i.string]),height:i.oneOfType([i.number,i.string]),minWidth:i.oneOfType([i.number,i.string]),autoFocus:i.bool},t.defaultProps={autoFocus:!1},t.contextType=s.ZIndexContext,t}(r.Component),g=Object(s.createPropsContext)(),y=Object(s.withPropsContext)(g,v);y.displayName="KendoReactDialog",function(e){e.DEFAULT="DEFAULT",e.FULLSCREEN="FULLSCREEN",e.MINIMIZED="MINIMIZED"}(c||(c={}));var b=function(){return(b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},k=function(e){var t=e.children,n=e.onCloseButtonClick,o=e.onMinimizeButtonClick,i=e.onFullScreenButtonClick,a=e.onRestoreButtonClick,s=e.onDoubleClick,l=e.stage,u=e.forwardedRef,d=e.minimizeButton?r.createElement(e.minimizeButton,{onClick:o,stage:l}):r.createElement("button",{className:"k-button-icon k-button k-flat",onClick:o},r.createElement("span",{className:"k-icon k-i-window-minimize",role:"presentation"})),p=e.maximizeButton?r.createElement(e.maximizeButton,{onClick:i,stage:l}):r.createElement("button",{className:"k-button-icon k-button k-flat",onClick:i},r.createElement("span",{className:"k-icon k-i-window-maximize",role:"presentation"})),f=e.restoreButton?r.createElement(e.restoreButton,{onClick:a,stage:l}):r.createElement("button",{className:"k-button-icon k-button k-flat",onClick:a},r.createElement("span",{className:"k-icon k-i-window-restore",role:"presentation"})),h=e.closeButton?r.createElement(e.closeButton,{onClick:n,stage:l}):r.createElement("button",{className:"k-button-icon k-button k-flat",onClick:n},r.createElement("span",{className:"k-icon k-i-close",role:"presentation"}));return r.createElement("div",{className:"k-window-titlebar k-dialog-titlebar",style:{touchAction:"none"},ref:u,onDoubleClick:s},r.createElement("div",{className:"k-window-title"},t||""),r.createElement("div",{className:"k-window-actions"},l===c.DEFAULT&&d,l===c.DEFAULT&&p,l!==c.DEFAULT&&f,h))},C=r.forwardRef((function(e,t){return r.createElement(k,b({},e,{forwardedRef:t}))})),O=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),w=["n","e","s","w","se","sw","ne","nw"],E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype.render=function(){var e=this;return r.createElement("div",null," ",w.map((function(t,n){return r.createElement(s.Draggable,{key:n,onDrag:function(n){var r=n.event;r.originalEvent.preventDefault(),e.props.onResize(r,{end:!1,direction:t})},onRelease:function(n){var r=n.event;r.originalEvent.preventDefault(),e.props.onResize(r,{end:!0,direction:t})}},r.createElement("div",{className:"k-resize-handle k-resize-"+t,style:{display:"block",touchAction:"none"}}))})))},t}(r.Component),S=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.shouldComponentUpdate=function(e){return e.shouldUpdateOnDrag||!e.isDragging},t.prototype.render=function(){return this.props.children},t}(r.Component),x=function(e){var t=e.layout,n=void 0===t?I.layout:t,o=e.children,i=Object(s.classNames)("k-window-buttongroup","k-actions","k-hstack",{"k-justify-content-start":"start"===n,"k-justify-content-center":"center"===n,"k-justify-content-end":"end"===n,"k-justify-content-stretch":"stretched"===n});return r.createElement("div",{className:i},o)};x.propTypes={children:i.any,layout:i.oneOf(["start","center","end","stretched"])};var I={layout:"end"},T=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_=function(){return(_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},P=function(e){function t(t){var n=e.call(this,t)||this;return n.offSetCoordinates={x:0,y:0},n._id=Object(s.guid)(),n.onKeyDown=function(e){if(e.target===e.currentTarget){var t=n.props.minWidth||120,r=n.props.minHeight||100;if(e.ctrlKey&&n.props.resizable){switch(e.keyCode){case s.Keys.up:e.preventDefault(),r<=n.height-5&&n.setState({height:n.height-5});break;case s.Keys.down:e.preventDefault(),n.setState({height:n.height+5});break;case s.Keys.left:t<=n.width-5&&n.setState({width:n.width-5});break;case s.Keys.right:n.setState({width:n.width+5});break;default:return}n.dispatchMoveEvent(n.props.onResize,e,!1,void 0)}else if(e.altKey)switch(e.keyCode){case s.Keys.up:n.windowStage===c.MINIMIZED?(n.handleRestore(e),Object(s.dispatchEvent)(n.props.onStageChange,e,n,{state:c.DEFAULT})):n.windowStage===c.DEFAULT&&(n.handleFullscreen(e),Object(s.dispatchEvent)(n.props.onStageChange,e,n,{state:c.FULLSCREEN}));break;case s.Keys.down:n.windowStage===c.FULLSCREEN?(n.handleRestore(e),Object(s.dispatchEvent)(n.props.onStageChange,e,n,{state:c.DEFAULT})):n.windowStage===c.DEFAULT&&(n.handleMinimize(e),Object(s.dispatchEvent)(n.props.onStageChange,e,n,{state:c.MINIMIZED}))}else{if(!e.ctrlKey)switch(e.keyCode){case s.Keys.esc:return void(n.props.onClose&&n.handleCloseWindow(e));case s.Keys.up:n.setState({top:n.state.top-5});break;case s.Keys.down:n.setState({top:n.state.top+5});break;case s.Keys.left:n.setState({left:n.state.left-5});break;case s.Keys.right:n.setState({left:n.state.left+5});break;default:return}n.dispatchMoveEvent(n.props.onMove,e,!1,void 0)}}},n.onPress=function(e){var t=e.event;n.windowCoordinatesState.differenceLeft=t.pageX-n.left,n.windowCoordinatesState.differenceTop=t.pageY-n.top},n.onDrag=function(e){var t=e.event;t.originalEvent.preventDefault(),n.windowStage!==c.FULLSCREEN&&n.props.draggable&&(n.setState({top:Math.max(t.pageY-n.windowCoordinatesState.differenceTop,0),left:t.pageX-n.windowCoordinatesState.differenceLeft,isDragging:!0}),n.props.onMove&&n.dispatchMoveEvent(n.props.onMove,t,!0,!1))},n.onRelease=function(e){var t=e.event;n.windowStage!==c.FULLSCREEN&&n.props.draggable&&n.props.onMove&&n.dispatchMoveEvent(n.props.onMove,t,!0,!0),n.setState({isDragging:!1})},n.onFocus=function(){n._blurTimeout?(clearTimeout(n._blurTimeout),n._blurTimeout=void 0):n.setState({focused:!0,zIndex:f(n.getCurrentZIndex(),n.getDocument(),n._id)})},n.onBlur=function(){clearTimeout(n._blurTimeout);var e=n.getWindow();e&&(n._blurTimeout=e.setTimeout((function(){n.setState({focused:!1}),n._blurTimeout=void 0})))},n.getInitialTop=function(){if(void 0!==n.props.top)return n.props.top;if(void 0!==n.props.initialTop)return n.props.initialTop;var e=300;if(void 0!==n.props.height?e=n.props.height:void 0!==n.props.initialHeight&&(e=n.props.initialHeight),n.props.appendTo)return n.props.appendTo.offsetHeight/2-e/2;var t=n.getWindow();return t?t.innerHeight/2-e/2:0},n.getInitialLeft=function(){if(void 0!==n.props.left)return n.props.left;if(void 0!==n.props.initialLeft)return n.props.initialLeft;var e=300;if(void 0!==n.props.width?e=n.props.width:void 0!==n.props.initialWidth&&(e=n.props.initialWidth),n.props.appendTo)return n.props.appendTo.offsetWidth/2-e/2;var t=n.getWindow();return t?t.innerWidth/2-e/2:0},n.getInitialWidth=function(){var e=300;return void 0!==n.props.width?e=n.props.width:void 0!==n.props.initialWidth&&(e=n.props.initialWidth),e},n.getInitialHeight=function(){var e=300;return void 0!==n.props.height?e=n.props.height:void 0!==n.props.initialHeight&&(e=n.props.initialHeight),e},n.handleMinimize=function(e){e.preventDefault(),n.windowCoordinatesState.leftBeforeAction=n.left,n.windowCoordinatesState.topBeforeAction=n.top,n.windowCoordinatesState.widthBeforeAction=n.width,n.windowCoordinatesState.heightBeforeAction=n.height,n.setState({stage:c.MINIMIZED,height:0}),Object(s.dispatchEvent)(n.props.onStageChange,e,n,{state:c.MINIMIZED})},n.handleFullscreen=function(e){e.preventDefault(),n.windowCoordinatesState.leftBeforeAction=n.left,n.windowCoordinatesState.topBeforeAction=n.top,n.windowCoordinatesState.widthBeforeAction=n.width,n.windowCoordinatesState.heightBeforeAction=n.height;var t=n.getWindow(),r=t?t.innerWidth:0,o=t?t.innerHeight:0;n.setState({left:0,top:0,width:n.props.appendTo?n.props.appendTo.offsetWidth:r,height:n.props.appendTo?n.props.appendTo.offsetHeight:o,stage:c.FULLSCREEN}),Object(s.dispatchEvent)(n.props.onStageChange,e,n,{state:c.FULLSCREEN})},n.handleRestore=function(e){e.preventDefault(),n.windowStage===c.FULLSCREEN?n.setState({stage:c.DEFAULT,left:n.windowCoordinatesState.leftBeforeAction,top:n.windowCoordinatesState.topBeforeAction,width:n.windowCoordinatesState.widthBeforeAction,height:n.windowCoordinatesState.heightBeforeAction}):n.windowStage===c.MINIMIZED&&n.setState({stage:c.DEFAULT,height:n.windowCoordinatesState.heightBeforeAction}),Object(s.dispatchEvent)(n.props.onStageChange,e,n,{state:c.DEFAULT})},n.handleCloseWindow=function(e){e.preventDefault(),Object(s.dispatchEvent)(n.props.onClose,e,n,{state:void 0})},n.handleDoubleClick=function(e){n.windowStage===c.FULLSCREEN||n.windowStage===c.MINIMIZED?n.handleRestore(e):n.handleFullscreen(e)},n.handleResize=function(e,t){var r=n.props.appendTo?e.pageX-n.offSetCoordinates.x:e.pageX,o=n.props.appendTo?e.pageY-n.offSetCoordinates.y:e.pageY,i=n.width,a=n.height,s=n.props.minWidth||120,l=n.props.minHeight||100,u=n.top-o,c=n.left-r,d=r-n.left,p=o-n.top,f=Object.assign({},n.state,{isDragging:!t.end});t.direction.indexOf("n")>=0&&l-(a+u)<0&&(n.top>0&&(f.height=a+u),f.top=o),t.direction.indexOf("s")>=0&&l-p<0&&(f.height=p),t.direction.indexOf("w")>=0&&s-(i+c)<0&&(n.left>0&&(f.width=i+c),f.left=r),t.direction.indexOf("e")>=0&&s-d<0&&(f.width=d),n.setState(f),n.dispatchMoveEvent(n.props.onResize,e,!0,t.end)},n.dispatchMoveEvent=function(e,t,r,o){e&&e.call(void 0,{nativeEvent:t.nativeEvent?t.nativeEvent:t.originalEvent,drag:r,end:o,target:n,left:n.state.left,top:n.state.top,width:n.state.width,hight:n.state.height,height:n.state.height})},n.handleBrowserWindowResize=function(){if(n.windowStage===c.FULLSCREEN){var e=n.getWindow(),t=e?e.innerWidth:0,r=e?e.innerHeight:0;n.setState({width:n.props.appendTo?n.props.appendTo.offsetWidth:t,height:n.props.appendTo?n.props.appendTo.offsetHeight:r})}},n.getCurrentZIndex=function(){return n.state?n.state.zIndex>(n.context?n.context+2:0)?n.state.zIndex:n.context+2:n.context?n.context:10002},n.getDocument=function(){return n.props.appendTo?n.props.appendTo.ownerDocument:document},n.getWindow=function(){var e=n.getDocument();return e&&e.defaultView},Object(s.validatePackage)(p),n.state={stage:n.props.stage||c.DEFAULT,isDragging:!1,top:n.getInitialTop(),left:n.getInitialLeft(),width:n.getInitialWidth(),height:n.getInitialHeight(),focused:!0,zIndex:f(n.getCurrentZIndex(),n.getDocument(),n._id)},n.windowCoordinatesState={leftBeforeAction:n.getInitialLeft(),topBeforeAction:n.getInitialTop(),widthBeforeAction:n.getInitialWidth(),heightBeforeAction:n.getInitialHeight()},n}return T(t,e),t.prototype.componentDidMount=function(){var e=this.getWindow();e&&e.addEventListener("resize",this.handleBrowserWindowResize);var t=this.getDocument();if(this.props.appendTo&&t){var n=this.props.appendTo.getBoundingClientRect(),r=t.body.getBoundingClientRect();this.offSetCoordinates.x=n.left-r.left,this.offSetCoordinates.y=n.top-r.top}},t.prototype.componentWillUnmount=function(){var e=this.getWindow();e&&e.removeEventListener("resize",this.handleBrowserWindowResize)},t.prototype.componentDidUpdate=function(){var e=this.getDocument();if(this.props.appendTo&&e){var t=this.props.appendTo.getBoundingClientRect(),n=e.body.getBoundingClientRect();this.offSetCoordinates.x=t.left-n.left,this.offSetCoordinates.y=t.top-n.top}},t.prototype.render=function(){var e,t=this,n=r.Children.toArray(this.props.children),i=this.getContent(n),a=this.getActionBar(n),l=this.getCurrentZIndex(),u=Object(s.classNames)("k-widget","k-window",this.props.className,{"k-window-minimized":"MINIMIZED"===this.state.stage},{"k-window-focused":this.state.focused}),d=r.createElement(s.ZIndexContext.Provider,{value:l},r.createElement(r.Fragment,null,this.props.modal&&r.createElement("div",{className:"k-overlay",style:_({zIndex:l},this.props.overlayStyle)}),r.createElement("div",_({},((e={})["data-windowid"]=this._id,e),{tabIndex:0,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,ref:function(e){t.windowElement=e,t.element=e},className:u,style:_({top:this.top,left:this.left,width:this.width,height:this.height||"",zIndex:l},this.props.style)}),r.createElement(D,{shouldUpdateOnDrag:this.props.shouldUpdateOnDrag||!1,isDragging:this.state.isDragging},r.createElement(s.Draggable,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease,ref:function(e){return t.draggable=e}},r.createElement(C,{stage:this.windowStage,onDoubleClick:this.props.doubleClickStageChange?this.handleDoubleClick:void 0,onMinimizeButtonClick:this.handleMinimize,onFullScreenButtonClick:this.handleFullscreen,onRestoreButtonClick:this.handleRestore,onCloseButtonClick:this.handleCloseWindow,closeButton:this.props.closeButton,minimizeButton:this.props.minimizeButton,maximizeButton:this.props.maximizeButton,restoreButton:this.props.restoreButton},this.props.title)),this.windowStage!==c.MINIMIZED?r.createElement(r.Fragment,null,r.createElement("div",{className:"k-window-content"},i),a):null,this.windowStage===c.DEFAULT&&this.props.resizable?r.createElement(E,{onResize:this.handleResize}):null))));return s.canUseDOM?o.createPortal(d,this.props.appendTo||document.body):null},Object.defineProperty(t.prototype,"top",{get:function(){return this.windowStage!==c.FULLSCREEN?Math.max(this.props.top||this.state.top,0):0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this.windowStage!==c.FULLSCREEN?Math.max(this.props.left||this.state.left,0):0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){var e=this.props.width||this.state.width;if(this.windowStage===c.FULLSCREEN){if(this.props.appendTo)return e=this.props.appendTo.offsetWidth;var t=this.getWindow();e=t?t.innerWidth:0}return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){var e=this.props.height||this.state.height;if(this.windowStage===c.FULLSCREEN){if(this.props.appendTo)return e=this.props.appendTo.offsetHeight;var t=this.getWindow();e=t?t.innerHeight:0}else this.windowStage===c.MINIMIZED&&(e=0);return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"windowStage",{get:function(){return this.props.stage||this.state.stage},enumerable:!0,configurable:!0}),t.prototype.getActionBar=function(e){return e.filter((function(e){return e&&e.type===x}))},t.prototype.getContent=function(e){return e.filter((function(e){return e&&e.type!==x}))},t.displayName="Window",t.propTypes={width:i.number,height:i.number,left:i.number,top:i.number,initialWidth:i.number,initialHeight:i.number,initialLeft:i.number,initialTop:i.number,minWidth:i.number,minHeight:i.number,resizable:i.bool,draggable:i.bool,title:i.any,shouldUpdateOnDrag:i.bool,stage:i.oneOf(["DEFAULT","MINIMIZED","FULLSCREEN"]),className:i.string,style:i.object,overlayStyle:i.object},t.defaultProps={minWidth:120,minHeight:100,resizable:!0,draggable:!0,modal:!1,doubleClickStageChange:!0},t.contextType=s.ZIndexContext,t}(r.Component),N=Object(s.createPropsContext)(),M=Object(s.withPropsContext)(N,P);M.displayName="KendoReactWindow"},function(e,t){e.exports=s},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(2),s=n(5);t.SchedulerHeader=i.forwardRef((function(e,t){var n=e.className,l=o(e,["className"]),u=i.useRef(null),c=i.useRef(null);i.useImperativeHandle(c,(function(){return{element:u.current,props:e}})),i.useImperativeHandle(t,(function(){return c.current}));var d=i.useMemo((function(){return a.classNames("k-scheduler-toolbar",n)}),[n]);return i.createElement(s.Toolbar,r({ref:function(e){e&&(u.current=e.element)},className:d},l),e.children)})),t.SchedulerHeader.displayName="KendoReactSchedulerHeader"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(2),s=n(5);t.SchedulerFooter=i.forwardRef((function(e,t){e.className;var n=e.style,l=o(e,["className","style"]),u=i.useRef(null),c=i.useRef(null);i.useImperativeHandle(u,(function(){return{element:c.current,props:e}})),i.useImperativeHandle(t,(function(){return u.current}));var d=i.useMemo((function(){return a.classNames("k-scheduler-footer",e.className)}),[e.className]);return i.createElement(s.Toolbar,r({ref:function(e){e&&(c.current=e.element)},className:d,style:r({boxShadow:"none"},n)},l),e.children)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(2);t.SchedulerEditItemPropsContext=r.createContext([null]),t.useSchedulerEditItemPropsContext=function(){return r.useContext(t.SchedulerEditItemPropsContext)},t.SchedulerEditItemPropsContext.displayName="SchedulerEditItemPropsContext",t.SchedulerEditItemFormItemContext=r.createContext([null,o.noop,o.noop]),t.useSchedulerEditItemFormItemContext=function(){return r.useContext(t.SchedulerEditItemFormItemContext)},t.SchedulerEditItemFormItemContext.displayName="SchedulerEditItemFormItemContext",t.SchedulerEditItemDragItemContext=r.createContext([null,o.noop,o.noop]),t.useSchedulerEditItemDragItemContext=function(){return r.useContext(t.SchedulerEditItemDragItemContext)},t.SchedulerEditItemDragItemContext.displayName="SchedulerEditItemDragItemContext",t.SchedulerEditItemResizeItemContext=r.createContext([null,o.noop,o.noop]),t.useSchedulerEditItemResizeItemContext=function(){return r.useContext(t.SchedulerEditItemResizeItemContext)},t.SchedulerEditItemResizeItemContext.displayName="SchedulerEditItemResizeItemContext",t.SchedulerEditItemRemoveItemContext=r.createContext([null,o.noop,o.noop]),t.useSchedulerEditItemRemoveItemContext=function(){return r.useContext(t.SchedulerEditItemRemoveItemContext)},t.SchedulerEditItemRemoveItemContext.displayName="SchedulerEditItemRemoveItemContext",t.SchedulerEditItemShowRemoveDialogContext=r.createContext([!1,o.noop,o.noop]),t.useSchedulerEditItemShowRemoveDialogContext=function(){return r.useContext(t.SchedulerEditItemShowRemoveDialogContext)},t.SchedulerEditItemShowRemoveDialogContext.displayName="SchedulerEditItemShowRemoveDialogContext",t.SchedulerEditItemShowOccurrenceDialogContext=r.createContext([!1,o.noop,o.noop]),t.useSchedulerEditItemShowOccurrenceDialogContext=function(){return r.useContext(t.SchedulerEditItemShowOccurrenceDialogContext)},t.SchedulerEditItemShowOccurrenceDialogContext.displayName="SchedulerEditItemShowOccurrenceDialogContext",t.SchedulerEditItemContext=function(e){var n=e.props,o=e.form,i=e.drag,a=e.resize,s=e.remove,l=e.showRemoveDialog,u=e.showOccurrenceDialog,c=e.children;return r.createElement(t.SchedulerEditItemPropsContext.Provider,{value:n},r.createElement(t.SchedulerEditItemFormItemContext.Provider,{value:o},r.createElement(t.SchedulerEditItemDragItemContext.Provider,{value:i},r.createElement(t.SchedulerEditItemResizeItemContext.Provider,{value:a},r.createElement(t.SchedulerEditItemRemoveItemContext.Provider,{value:s},r.createElement(t.SchedulerEditItemShowRemoveDialogContext.Provider,{value:l},r.createElement(t.SchedulerEditItemShowOccurrenceDialogContext.Provider,{value:u},c)))))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.SchedulerEditSlotPropsContext=r.createContext([null]),t.useSchedulerEditSlotPropsContext=function(){return r.useContext(t.SchedulerEditSlotPropsContext)},t.SchedulerEditSlotPropsContext.displayName="SchedulerEditSlotPropsContext",t.SchedulerEditSlotFormItemContext=r.createContext([null]),t.useSchedulerEditSlotFormItemContext=function(){return r.useContext(t.SchedulerEditSlotFormItemContext)},t.SchedulerEditSlotFormItemContext.displayName="SchedulerEditSlotFormItemContext",t.SchedulerEditSlotContext=function(e){var n=e.props,o=e.form,i=e.children;return r.createElement(t.SchedulerEditSlotPropsContext.Provider,{value:n},r.createElement(t.SchedulerEditSlotFormItemContext.Provider,{value:o},i))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.SchedulerEditTaskRemoveItemContext=r.createContext([null]),t.useSchedulerEditTaskRemoveItemContext=function(){return r.useContext(t.SchedulerEditTaskRemoveItemContext)},t.SchedulerEditTaskShowRemoveDialogContext=r.createContext([!1]),t.useSchedulerEditTaskShowRemoveDialogContext=function(){return r.useContext(t.SchedulerEditTaskShowRemoveDialogContext)},t.SchedulerEditTaskShowOccurrenceDialogContext=r.createContext([!1]),t.useSchedulerEditTaskShowOccurrenceDialogContext=function(){return r.useContext(t.SchedulerEditTaskShowOccurrenceDialogContext)},t.SchedulerEditTaskContext=function(e){return r.createElement(t.SchedulerEditTaskRemoveItemContext.Provider,{value:e.remove},r.createElement(t.SchedulerEditTaskShowRemoveDialogContext.Provider,{value:e.showRemoveDialog},r.createElement(t.SchedulerEditTaskShowOccurrenceDialogContext.Provider,{value:e.showOccurrenceDialog},e.children)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(7);t.SchedulerViewPropsContext=r.createContext({}),t.useSchedulerViewPropsContext=function(){return r.useContext(t.SchedulerViewPropsContext)},t.SchedulerViewPropsContext.displayName="SchedulerViewPropsContext",t.SchedulerViewRangesContext=r.createContext([]),t.useSchedulerViewRangesContext=function(){return r.useContext(t.SchedulerViewRangesContext)},t.SchedulerViewRangesContext.displayName="SchedulerViewRangesContext",t.SchedulerViewSlotsContext=r.createContext([[],o.noop]),t.useSchedulerViewSlotsContext=function(){return r.useContext(t.SchedulerViewSlotsContext)},t.SchedulerViewSlotsContext.displayName="SchedulerViewSlotsContext",t.SchedulerViewItemsContext=r.createContext([[],o.noop]),t.useSchedulerViewItemsContext=function(){return r.useContext(t.SchedulerViewItemsContext)},t.SchedulerViewItemsContext.displayName="SchedulerViewItemsContext",t.SchedulerViewSelectedSlotsContext=r.createContext([[],o.noop]),t.useSchedulerViewSelectedSlotsContext=function(){return r.useContext(t.SchedulerViewSelectedSlotsContext)},t.SchedulerViewSelectedSlotsContext.displayName="SchedulerViewSelectedSlotsContext",t.SchedulerViewSelectedItemsContext=r.createContext([[],o.noop]),t.useSchedulerViewSelectedItemsContext=function(){return r.useContext(t.SchedulerViewSelectedItemsContext)},t.SchedulerViewSelectedItemsContext.displayName="SchedulerViewSelectedItemsContext",t.SchedulerViewFocusedItemsContext=r.createContext([[],o.noop]),t.useSchedulerViewFocusedItemsContext=function(){return r.useContext(t.SchedulerViewFocusedItemsContext)},t.SchedulerViewFocusedItemsContext.displayName="SchedulerViewFocusedItemsContext",t.SchedulerViewFocusedSlotsContext=r.createContext([[],o.noop]),t.useSchedulerViewFocusedSlotsContext=function(){return r.useContext(t.SchedulerViewFocusedSlotsContext)},t.SchedulerViewFocusedSlotsContext.displayName="SchedulerViewFocusedSlotsContext",t.SchedulerViewContext=function(e){var n=e.children,o=e.props,i=e.ranges,a=e.slots,s=e.items,l=e.selectedSlots,u=e.selectedItems,c=e.focusedItems,d=e.focusedSlots;return r.createElement(t.SchedulerViewPropsContext.Provider,{value:o},r.createElement(t.SchedulerViewRangesContext.Provider,{value:i},r.createElement(t.SchedulerViewSlotsContext.Provider,{value:a},r.createElement(t.SchedulerViewItemsContext.Provider,{value:s},r.createElement(t.SchedulerViewSelectedSlotsContext.Provider,{value:l},r.createElement(t.SchedulerViewSelectedItemsContext.Provider,{value:u},r.createElement(t.SchedulerViewFocusedItemsContext.Provider,{value:c},r.createElement(t.SchedulerViewFocusedSlotsContext.Provider,{value:d},n))))))))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(56),s=n(15),l=n(14),u=n(7),c=n(20),d=n(38),p=n(39),f=n(13),h=n(53);t.SchedulerEditTask=i.forwardRef((function(e,t){var n=e._ref,a=e.onDataAction,d=e.viewTask,p=e.removeDialog,v=e.removeItem,g=e.onRemoveItemChange,y=e.occurrenceDialog,b=e.showOccurrenceDialog,k=e.onShowOccurrenceDialogChange,C=e.showRemoveDialog,O=e.onShowRemoveDialogChange,w=o(e,["_ref","onDataAction","viewTask","removeDialog","removeItem","onRemoveItemChange","occurrenceDialog","showOccurrenceDialog","onShowOccurrenceDialogChange","showRemoveDialog","onShowRemoveDialogChange"]),E=i.useRef(null);i.useImperativeHandle(E,(function(){return{props:e,element:E.current&&E.current.element}})),i.useImperativeHandle(n,(function(){return E.current})),i.useImperativeHandle(t,(function(){return E.current}));var S=d||m.viewTask,D=y||m.occurrenceDialog,x=p||m.removeDialog,I=l.useEditable(e.editable),T=f.useSchedulerFieldsContext(),_=f.useSchedulerDataContext(),P=_[0],N=_[1],M=i.useState(null),R=M[0],j=M[1],F=s.useControlledState(null,v,g),A=F[0],L=F[1],V=s.useControlledState(!1,C,O),B=V[0],z=V[1],H=s.useControlledState(!1,b,k),U=H[0],K=H[1],W=i.useCallback((function(t){I.remove&&(L(e.dataItem,t),e.isRecurring?K(!0,t):z(!0,t))}),[L,e.dataItem,e.isRecurring,K,z]),q=i.useCallback((function(e){j(null),L(null,e),z(!1,e),K(!1,e)}),[j,L,z,K]),Y=i.useCallback((function(e){a&&A&&a.call(void 0,{type:c.DATA_ACTION.remove,series:R,dataItem:A}),L(null,e),z(!1,e)}),[A,N,z]),G=i.useCallback((function(e,t){L&&L(e,t)}),[L]),Z=i.useCallback((function(e,t){z&&z(e,t)}),[z]),X=i.useCallback((function(e,t){K&&K(e,t)}),[K]),Q=i.useCallback((function(t){A&&(j(!1),L(e.dataItem,t),z(!0,t)),K(!1,t)}),[j,e.dataItem,A,L,z]),$=i.useCallback((function(e){if(A){j(!0);var t=u.findMaster(A,T,P);L(t,e),z(!0,e)}K(!1,e)}),[T,A,j,L,z,K]);return i.createElement(h.SchedulerEditTaskContext,{remove:[A,G],showRemoveDialog:[B,Z],showOccurrenceDialog:[U,X]},i.createElement(S,r({_ref:E},w,{onRemoveClick:W})),U&&i.createElement(D,{dataItem:A,isRemove:null!==A,onClose:q,onOccurrenceClick:Q,onSeriesClick:$}),B&&i.createElement(x,{dataItem:A,onClose:q,onCancel:q,onConfirm:Y}))}));var m={viewTask:a.SchedulerViewTask,occurrenceDialog:p.SchedulerOccurrenceDialog,removeDialog:d.SchedulerRemoveDialog};t.SchedulerEditTask.defaultProps=m,t.SchedulerEditTask.displayName="KendoReactSchedulerEditTask"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(57);t.SchedulerViewTask=i.forwardRef((function(e,t){var n=e.task,a=e._ref,l=o(e,["task","_ref"]),u=i.useRef(null),c=i.useRef(null);i.useImperativeHandle(c,(function(){return{props:e,element:u.current&&u.current.element}})),i.useImperativeHandle(a,(function(){return u.current})),i.useImperativeHandle(t,(function(){return c.current}));var d=n||s.task;return i.createElement(d,r({},l,{_ref:u}))}));var s={task:a.SchedulerTask};t.SchedulerViewTask.defaultProps=s,t.SchedulerViewTask.displayName="KendoReactSchedulerViewTask"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(4),i=n(11),a=n(2),s=n(14);t.SchedulerTask=r.forwardRef((function(e,t){var n=e._ref,l=e.onRemoveClick,u=r.useRef(null),c=r.useRef(null);r.useImperativeHandle(u,(function(){return{props:e,element:c.current}})),r.useImperativeHandle(t,(function(){return u.current})),r.useImperativeHandle(n,(function(){return u.current}));var d=s.useEditable(e.editable),p=o.useLocalization().toLanguageString(i.deleteTitle,i.messages[i.deleteTitle]),f=e.group.resources.find((function(e){return Boolean(e.colorField&&void 0!==e[e.colorField])})),h=f&&f.colorField&&f[f.colorField],m=r.useCallback((function(e){l&&l.call(void 0,{syntheticEvent:e,target:u.current})}),[l,u]),v=r.useMemo((function(){return a.classNames("k-task",e.className)}),[e.className]);return r.createElement("div",{id:e.id,ref:c,style:e.style,className:v,tabIndex:e.tabIndex||void 0},h&&r.createElement("span",{className:"k-scheduler-mark",style:{color:h,backgroundColor:h}}),e.isRecurring&&r.createElement("span",{className:"k-icon k-i-reload"}),e.isException&&r.createElement("span",{className:"k-icon k-i-non-recurrence"}),e.title,d.remove&&r.createElement("a",{className:"k-link k-event-delete",title:p,"aria-label":p,onClick:m},r.createElement("span",{className:"k-icon k-i-close"})))})),t.SchedulerTask.displayName="KendoReactSchedulerTask"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(3),s=n(6),l=n(4),u=n(73),c=n(72),d=n(33),p=n(11),f=n(10),h=n(92),m=n(2),v=n(93),g=n(96),y=n(97);t.SchedulerFormEditor=i.forwardRef((function(e,t){var n=i.useRef(null),c=i.useRef(null),h=a.timezoneNames(),v=l.useLocalization(),g=f.useSchedulerFieldsContext(),y=f.useSchedulerPropsContext(),k=y.resources,C=y.timezone;i.useImperativeHandle(c,(function(){return{element:n.current&&n.current.element?n.current.element:n.current,props:e}})),i.useImperativeHandle(t,(function(){return c.current}));var O=e.as,w=void 0===O?b.as:O,E=o(e,["as"]),S=e.titleLabel,D=void 0===S?b.titleLabel:S,x=e.titleError,I=void 0===x?b.titleError:x,T=e.titleEditor,_=void 0===T?b.titleEditor:T,P=e.startLabel,N=void 0===P?b.startLabel:P,M=e.startError,R=void 0===M?b.startError:M,j=e.startEditor,F=void 0===j?b.startEditor:j,A=e.startTimezoneLabel,L=void 0===A?b.startTimezoneLabel:A,V=e.startTimezoneError,B=void 0===V?b.startTimezoneError:V,z=e.startTimezoneEditor,H=void 0===z?b.startTimezoneEditor:z,U=e.startTimezoneCheckedLabel,K=void 0===U?b.startTimezoneCheckedLabel:U,W=e.startTimezoneCheckedEditor,q=void 0===W?b.startTimezoneCheckedEditor:W,Y=e.endLabel,G=void 0===Y?b.endLabel:Y,Z=e.endError,X=void 0===Z?b.endError:Z,Q=e.endEditor,$=void 0===Q?b.endEditor:Q,J=e.endTimezoneLabel,ee=void 0===J?b.endTimezoneLabel:J,te=e.endTimezoneError,ne=void 0===te?b.endTimezoneError:te,re=e.endTimezoneEditor,oe=void 0===re?b.endTimezoneEditor:re,ie=e.endTimezoneCheckedLabel,ae=void 0===ie?b.endTimezoneCheckedLabel:ie,se=e.endTimezoneCheckedEditor,le=void 0===se?b.endTimezoneCheckedEditor:se,ue=e.allDayLabel,ce=void 0===ue?b.allDayLabel:ue,de=e.allDayEditor,pe=void 0===de?b.allDayEditor:de,fe=e.recurrenceEditor,he=void 0===fe?b.recurrenceEditor:fe,me=e.descriptionLabel,ve=void 0===me?b.descriptionLabel:me,ge=e.descriptionEditor,ye=void 0===ge?b.descriptionEditor:ge,be=e.descriptionError,ke=void 0===be?b.descriptionError:be,Ce=e.resourceLabel,Oe=void 0===Ce?b.resourceLabel:Ce,we=e.resourceEditor,Ee=void 0===we?b.resourceEditor:we,Se=e.valueGetter(g.start)||new Date,De=e.valueGetter(g.startTimezone)||C||"",xe=e.valueGetter(g.endTimezone)||C||"",Ie=i.useMemo((function(){return v.toLanguageString(p.editorValidationRequired,p.messages[p.editorValidationRequired])}),[v]),Te=i.useState(Boolean(e.valueGetter(g.startTimezone))),_e=Te[0],Pe=Te[1],Ne=i.useState(Boolean(e.valueGetter(g.endTimezone))),Me=Ne[0],Re=Ne[1],je=i.useCallback((function(t){t.value||(e.onChange(g.startTimezone,{value:null}),e.onChange(g.endTimezone,{value:null}),Re(t.value)),Pe(t.value)}),[e.onChange,g.startTimezone,g.endTimezone]),Fe=i.useCallback((function(t){t.value||e.onChange(g.endTimezone,{value:null}),Re(t.value)}),[e.onChange]),Ae=i.useCallback((function(e){return e?void 0:Ie}),[Ie]),Le=i.useCallback((function(e,t){return _e?Ae(t(g.startTimezone)):void 0}),[Ae,_e,g.startTimezone]),Ve=i.useCallback((function(e,t){return _e&&Me?Ae(t(g.endTimezone))||Ae(t(g.startTimezone)):void 0}),[Ae,_e,Me,g.startTimezone,g.endTimezone]),Be=i.useMemo((function(){return m.classNames("k-scheduler-edit-form",e.className)}),[e.className]);return i.createElement(w,r({ref:w===b.as?n:void 0},E,{className:Be}),i.createElement(i.Fragment,null,i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.title,component:D,editorId:"k-scheduler-editor-title"},v.toLanguageString(p.editorEventTitle,p.messages[p.editorEventTitle])),i.createElement("div",{className:"k-form-field-wrap"},i.createElement(u.Field,{id:"k-scheduler-editor-title",name:g.title,field:g.title,component:_}),e.errors[g.title]&&i.createElement(u.Field,{name:g.title,component:I},e.errors[g.title]))),i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.start,component:N,editorId:"k-scheduler-editor-start"},v.toLanguageString(p.editorEventStart,p.messages[p.editorEventStart])),i.createElement("div",{className:"k-form-field-wrap",style:{display:"flex"}},i.createElement("div",null,i.createElement(u.Field,{id:"k-scheduler-editor-start",name:g.start,width:"auto",component:F,as:e.valueGetter(g.isAllDay)?d.DatePicker:d.DateTimePicker,timezone:C}),e.errors[g.start]&&i.createElement(u.Field,{name:g.start,component:R},e.errors[g.start]))," ",i.createElement("div",null,i.createElement(q,{id:"k-scheduler-editor-set-start-timezone",onChange:je,value:_e})," ",i.createElement(K,{className:"k-checkbox-label",editorId:"k-scheduler-editor-set-start-timezone"},v.toLanguageString(p.editorEventTimeZone,p.messages[p.editorEventTimeZone]))))),_e&&i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.start,component:L},v.toLanguageString(p.editorEventStartTimeZone,p.messages[p.editorEventStartTimeZone])),i.createElement("div",{className:"k-form-field-wrap"},i.createElement(u.Field,{component:H,value:De,validator:Le,data:h,name:g.startTimezone}),e.errors[g.startTimezone]&&i.createElement(u.Field,{name:g.startTimezone,component:B},e.errors[g.startTimezone]))),i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.end,component:G,editorId:"k-scheduler-editor-end"},v.toLanguageString(p.editorEventEnd,p.messages[p.editorEventEnd])),i.createElement("div",{className:"k-form-field-wrap",style:{display:"flex"}},i.createElement("div",null,i.createElement(u.Field,{id:"k-scheduler-editor-end",name:g.end,width:"auto",component:$,as:e.valueGetter(g.isAllDay)?d.DatePicker:d.DateTimePicker,timezone:C}),e.errors[g.end]&&i.createElement(u.Field,{name:g.end,component:X},e.errors[g.end]))," ",i.createElement("div",null,_e&&i.createElement(i.Fragment,null,i.createElement(le,{id:"k-scheduler-editor-set-end-timezone",onChange:Fe,value:Me})," ",i.createElement(ae,{className:"k-checkbox-label",editorId:"k-scheduler-editor-set-end-timezone"},v.toLanguageString(p.editorEventSeparateTimeZones,p.messages[p.editorEventSeparateTimeZones])))))),Me&&i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.endTimezone,component:ee},v.toLanguageString(p.editorEventEndTimeZone,p.messages[p.editorEventEndTimeZone])),i.createElement("div",{className:"k-form-field-wrap"},i.createElement(u.Field,{value:xe,data:h,validator:Ve,component:oe,name:g.endTimezone}),e.errors[g.endTimezone]&&i.createElement(u.Field,{name:g.endTimezone,component:ne},e.errors[g.endTimezone]))),i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.isAllDay,component:s.Label}),i.createElement("div",{className:"k-form-field-wrap"},i.createElement(u.Field,{id:"k-is-allday-checkbox",name:g.isAllDay,component:pe})," ",i.createElement(u.Field,{name:g.isAllDay,field:g.isAllDay,editorId:"k-is-allday-checkbox",className:"k-checkbox-label",component:ce},v.toLanguageString(p.editorEventAllDay,p.messages[p.editorEventAllDay])))),i.createElement(u.Field,{component:he,field:g.recurrenceRule,name:g.recurrenceRule,start:Se}),i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.description,component:ve},v.toLanguageString(p.editorEventDescription,p.messages[p.editorEventDescription])),i.createElement("div",{className:"k-form-field-wrap"},i.createElement(u.Field,{component:ye,name:g.description,rows:1,id:"k-event-description",style:{width:"100%"}}),e.errors[g.description]&&i.createElement(u.Field,{name:g.description,component:ke},e.errors[g.description]))),(k||[]).map((function(e){return i.createElement("div",{key:e.field},i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:e.field,component:Oe}),i.createElement(s.Label,null,e.name),i.createElement(u.Field,{name:e.field,component:Ee,resource:e,multiple:e.multiple,data:e.data,textField:e.textField,valueField:e.valueField,colorField:e.colorField})))}))))}));var b={as:i.forwardRef((function(e,t){return i.createElement(u.FormElement,{ref:t,id:e.id,style:e.style,tabIndex:e.tabIndex,className:e.className,horizontal:e.horizontal,children:e.children})})),titleLabel:s.Label,titleError:s.Error,titleEditor:c.Input,startLabel:s.Label,startError:s.Error,startEditor:y.ZonedDateTime,startTimezoneLabel:s.Label,startTimezoneError:s.Error,startTimezoneEditor:h.FilterableComboBox,startTimezoneCheckedLabel:s.Label,startTimezoneCheckedEditor:c.Checkbox,endLabel:s.Label,endError:s.Error,endEditor:y.ZonedDateTime,endTimezoneLabel:s.Label,endTimezoneError:s.Error,endTimezoneEditor:h.FilterableComboBox,endTimezoneCheckedLabel:s.Label,endTimezoneCheckedEditor:c.Checkbox,allDayLabel:s.Label,allDayEditor:c.Checkbox,recurrenceEditor:v.RecurrenceEditor,descriptionLabel:s.Label,descriptionEditor:c.TextArea,descriptionError:s.Error,resourceLabel:s.Label,resourceEditor:g.ResourceEditor};t.SchedulerFormEditor.displayName="KendoReactSchedulerFormEditor",t.SchedulerFormEditor.defaultProps=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),o=n(44),i=n(3);t.capitalize=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.OFFSET_POSITIONS=["first","second","third","fourth","last"],t.FREQUENCIES=["never","daily","weekly","monthly","yearly"],t.dayRule=[{day:0,offset:0},{day:1,offset:0},{day:2,offset:0},{day:3,offset:0},{day:4,offset:0},{day:5,offset:0},{day:6,offset:0}],t.weekdayRule=[{day:1,offset:0},{day:2,offset:0},{day:3,offset:0},{day:4,offset:0},{day:5,offset:0}],t.weekendRule=[{day:0,offset:0},{day:6,offset:0}],t.weekDayRuleFromString=function(e){switch(e){case"day":return t.dayRule;case"weekday":return t.weekdayRule;case"weekend":return t.weekendRule}},t.getRule=function(e){return o.parseRule({recurrenceRule:e})||{}},t.getFrequencies=function(e){return t.FREQUENCIES.map((function(n){return{value:n,text:e("Frequencies"+t.capitalize(n))}}))},t.getFrequency=function(e){return r.isPresent(e)&&!r.isNullOrEmptyString(e.freq)?e.freq:"never"},t.getUntil=function(e){return r.isPresent(e.until)?i.toLocalDate(e.until):null},t.getMonths=function(e){return e.dateFormatNames({type:"months",nameType:"wide"}).map((function(e,t){return{text:e,value:t+1}}))},t.getWeekDays=function(e){var t=e.firstDay(),n=e.dateFormatNames({type:"days",nameType:"abbreviated"}).map((function(e,t){return{text:e,value:t}}));return n.slice(t).concat(n.slice(0,t))},t.getWeekDay=function(e,t,n){return e.find((function(e){var o;if(r.isPresent(t.byWeekDay))switch(t.byWeekDay.length){case 7:o="day";break;case 5:o="weekday";break;case 2:o="weekend";break;case 1:o=t.byWeekDay[0].day;break;default:o=n.getDay()}return o===e.value}))||e[0]},t.getExtendedWeekDays=function(e,t){var n=e.firstDay(),r=e.dateFormatNames({type:"days",nameType:"wide"}).map((function(e,t){return{text:e,value:t}})),o=r.slice(n).concat(r.slice(0,n));return[{text:t("WeekdaysDay"),value:"day"},{text:t("WeekdaysWeekday"),value:"weekday"},{text:t("WeekdaysWeekendday"),value:"weekend"}].concat(o)},t.getOffset=function(e,t){return e.find((function(e){return e.value===(t.bySetPosition?t.bySetPosition[0]:t.byWeekDay&&t.byWeekDay[0]?t.byWeekDay[0].offset:1)}))||e[0]},t.getOffsets=function(e){var n=[1,2,3,4,-1];return t.OFFSET_POSITIONS.map((function(r,o){return{text:e("OffsetPositions"+t.capitalize(r)),value:n[o]}}))},t.getEndRule=function(e){return r.isPresent(e.count)?"count":r.isPresent(e.until)?"until":"never"},t.getRepeatOnRule=function(e){return r.isPresent(e.byWeekDay)?"weekday":r.isPresent(e.byMonthDay)?"monthday":void 0},t.getMonth=function(e,t){return e.find((function(e){return(t.byMonth?t.byMonth[0]:null)===e.value}))||e[0]},t.getMonthDay=function(e,t){return r.isPresent(e.byMonthDay)&&e.byMonthDay.length>0?e.byMonthDay[0]:t.getDate()},t.getUntilEnd=function(e,t){var n=e,o=t;return r.isPresent(o)?o:new Date(n.getFullYear(),n.getMonth(),n.getDate(),23,59,59)},t.getUntilMin=function(e,t){var n=e,o=t;return r.isPresent(o)&&o<n?o:n}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(61),s=n(14);t.SchedulerViewSlot=i.forwardRef((function(e,t){var n=e.slot,a=e._ref,u=o(e,["slot","_ref"]),c=n||l.slot,d=i.useRef(null),p=i.useRef(null);return i.useImperativeHandle(d,(function(){return{props:e}})),i.useImperativeHandle(a,(function(){return p.current})),i.useImperativeHandle(t,(function(){return d.current})),s.useSlotExpand(p,e.expandable),i.createElement(c,r({},u,{_ref:p}))}));var l={slot:a.SchedulerSlot,expandable:!1};t.SchedulerViewSlot.defaultProps=l,t.SchedulerViewSlot.displayName="KendoReactSchedulerViewSlot"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(2),a=n(7),s=n(4),l=n(98);t.SchedulerSlot=o.forwardRef((function(e,t){var n=e.onFocus,u=e.onBlur,c=e.onClick,d=e.onMouseEnter,p=e.onMouseLeave,f=e.onMouseOut,h=e.onMouseOver,m=e.onDoubleClick,v=e.onKeyDown,g=e.onKeyPress,y=e.onKeyUp,b=l.useSchedulerSlot(e,t),k=b.slot,C=b.element,O=s.useInternationalization(),w=void 0!==e.tabIndex?null===e.tabIndex?void 0:e.tabIndex:e.selected?0:-1,E=o.useMemo((function(){return i.classNames(e.className,"k-scheduler-cell k-slot-cell",{"k-nonwork-hour":!e.isWorkHour||!e.isWorkDay,"k-state-selected":e.selected})}),[e.className,e.selected,e.isWorkHour,e.isWorkDay]),S=o.useMemo((function(){return r({userSelect:"none"},e.style)}),[e.style]),D=o.useMemo((function(){return""+a.formatEventTime(O,e.zonedStart,e.zonedEnd,e.isAllDay||!1)}),[O,e.isAllDay,e.zonedEnd,e.zonedStart]),x=o.useCallback((function(e){n&&n.call(void 0,{syntheticEvent:e,target:k.current})}),[n,k]),I=o.useCallback((function(e){u&&u.call(void 0,{syntheticEvent:e,target:k.current})}),[u,k]),T=o.useCallback((function(e){c&&c.call(void 0,{syntheticEvent:e,target:k.current})}),[c,k]),_=o.useCallback((function(e){h&&h.call(void 0,{syntheticEvent:e,target:k.current})}),[h,k]),P=o.useCallback((function(e){f&&f.call(void 0,{syntheticEvent:e,target:k.current})}),[f,k]),N=o.useCallback((function(e){d&&d.call(void 0,{syntheticEvent:e,target:k.current})}),[d,k]),M=o.useCallback((function(e){p&&p.call(void 0,{syntheticEvent:e,target:k.current})}),[p,k]),R=o.useCallback((function(e){m&&m.call(void 0,{syntheticEvent:e,target:k.current})}),[m,k]),j=o.useCallback((function(e){v&&v.call(void 0,{syntheticEvent:e,target:k.current})}),[v,k]),F=o.useCallback((function(e){g&&g.call(void 0,{syntheticEvent:e,target:k.current})}),[g,k]),A=o.useCallback((function(e){y&&y.call(void 0,{syntheticEvent:e,target:k.current})}),[y,k]);return o.createElement("div",{ref:C,id:e.id,style:S,className:E,tabIndex:w,"aria-label":D,"aria-selected":e.selected,onFocus:x,onBlur:I,onClick:T,onMouseEnter:N,onMouseLeave:M,onMouseOver:_,onMouseOut:P,onDoubleClick:R,onKeyDown:j,onKeyPress:F,onKeyUp:A,"data-slot":!0,"data-slot-allday":e.isAllDay,"data-slot-start":e.start.getTime(),"data-slot-end":e.end.getTime(),"data-slot-group":e.group.index,"data-slot-range":e.range.index,"data-slot-index":e.index},e.children)}));t.SchedulerSlot.defaultProps={isWorkHour:!0,isWorkDay:!0},t.SchedulerSlot.displayName="KendoReactSchedulerSlot"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(28),a=n(30),s=n(31),l=n(10),u=n(13),c=n(7);t.SchedulerDrag=function(e){var t=l.useSchedulerViewRangesContext(),n=u.useSchedulerPropsContext().timezone,a=u.useSchedulerGroupsContext(),s=u.useSchedulerFieldsContext(),p=u.useSchedulerDateRangeContext(),f=l.useSchedulerViewSlotsContext()[0],h=e.viewItem||d.viewItem,m=o.useMemo((function(){return i.toOccurrences([e.dataItem],{dateRange:p,fields:s,timezone:n})}),[e.dataItem,p,s,n]),v=o.useMemo((function(){return i.toItems(m,{timezone:n},{groups:a,ranges:t})}),[m,n,a,t]),g=(f||[]).map((function(e){return e.current.props}));return c.mapItemsToSlots(v,g),o.createElement(o.Fragment,null,v.map((function(t,n){return o.createElement(h,r({key:n},t,{item:e.item,dragHint:!0,vertical:e.vertical,ignoreIsAllDay:e.ignoreIsAllDay}))})))};var d={viewItem:s.SchedulerViewItem,item:a.SchedulerItem};t.SchedulerDrag.defaultProps=d,t.SchedulerDrag.displayName="KendoReactSchedulerDrag"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(2);t.SchedulerItemContent=o.forwardRef((function(e,t){var n=o.useMemo((function(){return i.classNames("k-event-template",e.className)}),[e.className]);return o.createElement("div",r({ref:t},e,{className:n}))}))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(28),a=n(30),s=n(31),l=n(10),u=n(13),c=n(7);t.SchedulerResize=function(e){var t=l.useSchedulerViewRangesContext(),n=u.useSchedulerPropsContext().timezone,a=u.useSchedulerGroupsContext(),s=u.useSchedulerFieldsContext(),p=u.useSchedulerDateRangeContext(),f=l.useSchedulerViewSlotsContext()[0],h=e.viewItem||d.viewItem,m=o.useMemo((function(){return i.toOccurrences([e.dataItem],{dateRange:p,fields:s,timezone:n})}),[e.dataItem,p.start.getTime(),p.end.getTime(),s,n]),v=o.useMemo((function(){return i.toItems(m,{timezone:n},{groups:a,ranges:t})}),[m,n,a,t]),g=(f||[]).map((function(e){return e.current.props}));return c.mapItemsToSlots(v,g),o.createElement(o.Fragment,null,v.map((function(t,n){return o.createElement(h,r({key:n},t,{format:e.format,item:e.item,resizeHint:!0,vertical:e.vertical,ignoreIsAllDay:e.ignoreIsAllDay}))})))};var d={viewItem:s.SchedulerViewItem,item:a.SchedulerItem};t.SchedulerResize.defaultProps=d,t.SchedulerResize.displayName="KendoReactSchedulerResize"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(15);!function(e){e.set="SHOW_OCCURRENCE_DIALOG_SET",e.open="SHOW_OCCURRENCE_DIALOG_OPEN",e.close="SHOW_OCCURRENCE_DIALOG_CLOSE",e.reset="SHOW_OCCURRENCE_DIALOG_RESET",e.toggle="SHOW_OCCURRENCE_DIALOG_TOGGLE"}(r=t.SHOW_OCCURRENCE_DIALOG_ACTION||(t.SHOW_OCCURRENCE_DIALOG_ACTION={}));t.useShowOccurrenceDialog=function(e,t,n){var i=o.useControlledState(e,t,n),a=i[0],s=i[1];return[a,s,function(e){var t=function(e,t){switch(t.type){case r.reset:return!1;case r.set:return t.payload;case r.open:return!0;case r.close:return!1;case r.toggle:return!e;default:return e}}(a,e);s(t)}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(15),i=n(20);!function(e){e.set="REMOVE_ITEM_SET",e.reset="REMOVE_ITEM_RESET",e.complete="REMOVE_ITEM_COMPLETE"}(r=t.REMOVE_ITEM_ACTION||(t.REMOVE_ITEM_ACTION={})),t.useRemoveItem=function(e,t){var n=o.useControlledState.apply(void 0,t),a=n[0],s=n[1];return[a,s,function(t){var n;switch(t.type){case r.set:n=t.payload;break;case r.reset:n=null;break;case r.complete:e.onDataAction&&a&&e.onDataAction.call(void 0,{type:i.DATA_ACTION.remove,series:e.series,dataItem:a}),n=null;break;default:n=a}s(n)}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(15);!function(e){e.set="SHOW_REMOVE_DIALOG_SET",e.open="SHOW_REMOVE_DIALOG_OPEN",e.close="SHOW_REMOVE_DIALOG_CLOSE",e.reset="SHOW_REMOVE_DIALOG_RESET",e.toggle="SHOW_REMOVE_DIALOG_TOGGLE"}(r=t.SHOW_REMOVE_DIALOG_ACTION||(t.SHOW_REMOVE_DIALOG_ACTION={}));t.useShowRemoveDialog=function(e,t,n){var i=o.useControlledState(e,t,n),a=i[0],s=i[1];return[a,s,function(e){var t=function(e,t){switch(t.type){case r.reset:return!1;case r.set:return t.payload;case r.open:return!0;case r.close:return!1;case r.toggle:return!e;default:return e}}(a,e);s(t)}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(2),i=n(0),a=n(10),s=n(15),l=n(19),u=n(7);!function(e){e.set="DRAG_ITEM_SET",e.start="DRAG_ITEM_START",e.drag="DRAG_ITEM_DRAG",e.complete="DRAG_ITEM_COMPLETE",e.completeOccurrence="DRAG_ITEM_COMPLETE_OCCURRENCE",e.completeSeries="DRAG_ITEM_COMPLETE_SERIES",e.reset="DRAG_ITEM_RESET",e.dragSelected="DRAG_ITEM_DRAG_SELECTED"}(r=t.DRAG_ITEM_ACTION||(t.DRAG_ITEM_ACTION={})),t.useDragItem=function(e,t){var n=i.useRef(0),c=i.useRef(0),d=i.useRef(0),p=i.useRef(null),f=s.useControlledState.apply(void 0,t),h=f[0],m=f[1],v=a.useSchedulerViewSelectedItemsContext()[0],g=a.useSchedulerFieldsContext(),y=a.useSchedulerGroupsContext();return[h,m,function(t){var i;switch(t.type){case r.set:i=t.payload;break;case r.reset:i=null;break;case r.dragSelected:if(Math.abs(c.current-t.payload.x)<10&&Math.abs(d.current-t.payload.y)<10)return;if(!(E=u.slotDive(t.payload.x,t.payload.y,7)))return;if(E===p.current)return;var a=o.clone(e.dataItem),s=E.getAttribute("data-slot-start"),f="true"===E.getAttribute("data-slot-allday");if(!e.ignoreIsAllDay&&f!==e.isAllDay)return;var b=new Date(u.getField(a,g.start)),k=Number(s)-b.getTime(),C=v.map((function(e){if(!e.current)return null;var t=o.clone(e.current.props.dataItem),n=new Date(e.current.props.start.getTime()+k),r=new Date(e.current.props.end.getTime()+k);return u.setField(t,g.start,n),u.setField(t,g.end,r),t})).filter(Boolean);p.current=E,i=C.slice();break;case r.start:var O=t.payload.x,w=t.payload.y;if(c.current=O,d.current=w,!(E=u.slotDive(O,w,7)))return;a=o.clone(e.dataItem),s=E.getAttribute("data-slot-start"),b=u.getField(a,g.start);if(null===s)return;n.current=Number(s)-new Date(b).getTime();break;case r.drag:if(Math.abs(c.current-t.payload.x)<10&&Math.abs(d.current-t.payload.y)<10)return;var E;if(!(E=u.slotDive(t.payload.x,t.payload.y,7)))return;if(E===p.current)return;var S=o.clone(e.dataItem),D=(s=E.getAttribute("data-slot-start"),E.getAttribute("data-slot-group"));f="true"===E.getAttribute("data-slot-allday");if(!e.ignoreIsAllDay&&f!==e.isAllDay)return;b=new Date(u.getField(S,g.start));var x=new Date(u.getField(S,g.end)).getTime()-b.getTime(),I=new Date(Number(s)-Number(n.current)),T=new Date(Number(s)-Number(n.current)+x),_=y.find((function(e){return e.index===Number(D)}));u.setField(S,g.start,I),u.setField(S,g.end,T),_&&y.length>1&&_.resources.forEach((function(e){e.multiple||u.setField(S,e.field,e[e.valueField])})),p.current=E,S&&(i=S);break;case r.complete:i=null,e.onDataAction&&h&&e.onDataAction.call(void 0,{type:l.DATA_ACTION.update,series:!1,dataItem:h});break;case r.completeOccurrence:i=null;var P=Array.isArray(h)?h.slice():o.clone(h);e.onDataAction&&h&&e.onDataAction.call(void 0,{type:l.DATA_ACTION.update,series:!1,dataItem:P});break;case r.completeSeries:i=null;var N=void 0;if(Array.isArray(h))N=h.map((function(e){var t=o.clone(e);return u.setField(t,g.start,u.getField(e,g.start)),u.setField(t,g.end,u.getField(e,g.end)),t}));else{var M=o.clone(h);u.setField(M,g.start,u.getField(h,g.start)),u.setField(M,g.end,u.getField(h,g.end)),N=M}e.onDataAction&&N&&e.onDataAction.call(void 0,{type:l.DATA_ACTION.update,series:!0,dataItem:N});break;default:i=h}m(i)}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(2),i=n(0),a=n(10),s=n(15),l=n(20),u=n(7);!function(e){e.set="RESIZE_ITEM_SET",e.start="RESIZE_ITEM_START",e.startDrag="RESIZE_ITEM_START_DRAG",e.startDragSelected="RESIZE_ITEM_START_DRAG_SELECTED",e.endDrag="RESIZE_ITEM_END_DRAG",e.endDragSelected="RESIZE_ITEM_END_DRAG_SELECTED",e.complete="RESIZE_ITEM_COMPLETE",e.completeOccurrence="RESIZE_ITEM_COMPLETE_OCCURRENCE",e.completeSeries="RESIZE_ITEM_COMPLETE_SERIES",e.reset="RESIZE_ITEM_RESET"}(r=t.RESIZE_ITEM_ACTION||(t.RESIZE_ITEM_ACTION={})),t.useResizeItem=function(e,t){var n=i.useRef(null),c=s.useControlledState.apply(void 0,t),d=c[0],p=c[1],f=a.useSchedulerViewSelectedItemsContext()[0],h=a.useSchedulerFieldsContext();return[d,p,function(t,i){var a=d;switch(t.type){case r.set:a=t.payload;break;case r.reset:a=null;break;case r.start:i.stopPropagation(),i.preventDefault();var s=t.payload.x,c=t.payload.y;if(!(w=u.slotDive(s,c,7)))return;if(w===n.current)return;var m=w.getAttribute("data-slot-start"),v=new Date(Number(m)),g=o.clone(e.dataItem);if(v>=u.getField(g,h.end))return;u.setField(g,h.start,v),n.current=w,a=g;break;case r.startDragSelected:i.stopPropagation(),i.preventDefault();s=t.payload.x,c=t.payload.y,g=o.clone(e.dataItem);if(!(w=u.slotDive(s,c,7)))return;if(w===n.current)return;m=w.getAttribute("data-slot-start");var y=new Date(u.getField(g,h.start)),b=(v=new Date(Number(m))).getTime()-y.getTime(),k=!1,C=f.map((function(e){if(!e.current)return null;var t=o.clone(e.current.props.dataItem),n=new Date(e.current.props.start.getTime()+b);if(!(n>=u.getField(t,h.end)))return u.setField(t,h.start,n),t;k=!0})).filter(Boolean);k||(a=C.slice());break;case r.startDrag:s=t.payload.x,c=t.payload.y;if(!(w=u.slotDive(s,c,7)))return;if(w===n.current)return;m=w.getAttribute("data-slot-start");if((v=new Date(Number(m)))>=(g=o.clone(e.dataItem)).end)return;u.setField(g,h.start,v),n.current=w,a=g;break;case r.endDrag:s=t.payload.x,c=t.payload.y;if(!(w=u.slotDive(s,c,7)))return;if(w===n.current)return;var O=w.getAttribute("data-slot-end");if((E=new Date(Number(O)))<=(g=o.clone(e.dataItem)).start)return;u.setField(g,h.end,E),n.current=w,a=g;break;case r.endDragSelected:i.stopPropagation(),i.preventDefault();var w;s=t.payload.x,c=t.payload.y,g=o.clone(e.dataItem);if(!(w=u.slotDive(s,c,7)))return;if(w===n.current)return;O=w.getAttribute("data-slot-start");var E,S,D=new Date(u.getField(g,h.end)),x=(E=new Date(Number(O))).getTime()-D.getTime();C=f.map((function(e){if(!e.current)return null;var t=o.clone(e.current.props.dataItem),n=new Date(e.current.props.end.getTime()+x);if(!(n<=u.getField(t,h.start)))return u.setField(t,h.end,n),t;S=!0})).filter(Boolean);S||(a=C.slice());break;case r.complete:case r.completeOccurrence:a=null,e.onDataAction&&d&&e.onDataAction.call(void 0,{type:l.DATA_ACTION.update,series:!1,dataItem:d});break;case r.completeSeries:a=null;var I=void 0;if(Array.isArray(d))I=d.map((function(e){var t=o.clone(e);return u.setField(t,h.start,u.getField(e,h.start)),u.setField(t,h.end,u.getField(e,h.end)),t}));else{var T=o.clone(d);u.setField(T,h.start,u.getField(d,h.start)),u.setField(T,h.end,u.getField(d,h.end)),I=T}e.onDataAction&&I&&e.onDataAction.call(void 0,{type:l.DATA_ACTION.update,series:!0,dataItem:I});break;default:a=null}p(a)}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(15);!function(e){e.reset="SERIES_RESET",e.set="SERIES_SET",e.toggle="SERIES_TOGGLE"}(r=t.SERIES_ACTION||(t.SERIES_ACTION={}));t.useSeries=function(e,t,n){var i=o.useControlledState(e,t,n),a=i[0],s=i[1];return[a,s,function(e){var t=function(e,t){switch(t.type){case r.reset:return null;case r.set:return t.payload;case r.toggle:return!e;default:return e}}(a,e);s(t)}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(16),i=n(3),a=n(2),s=n(10),l=n(7),u=n(17);t.CurrentTimeMarker=function(e){var t,n=r.useState(!1),d=n[0],p=n[1],f=s.useSchedulerElementContext(),h=s.useSchedulerPropsContext(),m=r.useRef(void 0),v=r.useRef(null),g=r.useRef(null),y=e.updateInterval||c.updateInterval,b=r.useState(!1)[1],k=a.useDir(g,!0===h.rtl?"rtl":void 0),C=s.useSchedulerViewSlotsContext()[0],O=r.useCallback((function(){if(C){var t,n,r,o=C.filter((function(t){return t.current&&(void 0===e.groupIndex||null===e.groupIndex||t.current.props.group.index===e.groupIndex)&&(e.vertical?l.intersects(new Date,new Date,t.current.props.start,t.current.props.end,!0):l.isInTimeRange(new Date,t.current.props.start,t.current.props.end))&&!t.current.props.isAllDay}));if(o&&o.length&&v.current&&g.current){var a=l.first(o);if(!a.current)return;var s=e.vertical?function(e){var t=0;return e.forEach((function(e){if(e.current){var n=u.getRect(e.current.element);t+=n.height}})),t}(o):function(e){var t=0;return e.forEach((function(e){if(e.current){var n=u.getRect(e.current.element);t+=n.width}})),t}(o),c=u.getRect(a.current.element),d=u.getRect(v.current),f=(e.vertical?c.width:c.height)/(a.current.props.end.getTime()-a.current.props.start.getTime()),h=(Date.now()-(t=new Date,n=a.current.props.start,r=i.cloneDate(t),r.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),r).getTime())*f,m="rtl"===k,y=e.vertical?c.top:c.top+h-d.height/2,b=m?"right":"left",O=e.vertical?c[b]+h-d.width/2:c[b];e.vertical?v.current.style[b]=O+"px":v.current.style.top=y+"px",g.current.style[b]=O+"px",g.current.style.top=y+"px",g.current.style[e.vertical?"height":"width"]=s-1+"px",p(!0)}else p(!1)}}),[C,e.groupIndex,e.vertical,k]),w=r.useCallback((function(){O(),b((function(e){return!e}))}),[O]);r.useEffect((function(){if(f.current&&window){clearInterval(m.current),m.current=window.setInterval(w,y);var e=new window.ResizeObserver(w);return e.observe(f.current),function(){clearInterval(m.current),e.disconnect()}}}),[O,w,f,y]),r.useEffect(O);var E=r.createElement("div",{ref:v,className:a.classNames("k-current-time",{"k-current-time-arrow-right":!e.vertical&&"rtl"!==k,"k-current-time-arrow-left":!e.vertical&&"rtl"===k,"k-current-time-arrow-down":e.vertical}),style:{transform:e.vertical?"rtl"===k?"translateX(50%)":"translateX(-50%)":"translateY(-50%)",visibility:d?void 0:"hidden"}});return r.createElement(r.Fragment,null,e.attachArrow&&e.attachArrow.current?o.createPortal(E,e.attachArrow.current):E,r.createElement("div",{className:"k-current-time",ref:g,style:(t={transform:e.vertical?"translateX(-50%)":"translateY(-50%)"},t[e.vertical?"width":"height"]="1px",t.visibility=d?void 0:"hidden",t)}))};var c={updateInterval:6e4};t.CurrentTimeMarker.defaultProps=c},function(e,t,n){"use strict";n.r(t),n.d(t,"ColorGradient",(function(){return z})),n.d(t,"ColorGradientPropsContext",(function(){return B})),n.d(t,"ColorPalette",(function(){return Y})),n.d(t,"ColorPalettePropsContext",(function(){return q})),n.d(t,"ColorPickerPropsContext",(function(){return ee})),n.d(t,"ColorPicker",(function(){return te})),n.d(t,"FlatColorPicker",(function(){return ne})),n.d(t,"Input",(function(){return de})),n.d(t,"InputPropsContext",(function(){return ce})),n.d(t,"MaskedTextBox",(function(){return Te})),n.d(t,"MaskedTextBoxPropsContext",(function(){return Ie})),n.d(t,"NumericTextBoxPropsContext",(function(){return $e})),n.d(t,"NumericTextBox",(function(){return Je})),n.d(t,"Slider",(function(){return st})),n.d(t,"SliderPropsContext",(function(){return at})),n.d(t,"SLIDER_LABEL_ATTRIBUTE",(function(){return tt})),n.d(t,"SliderLabel",(function(){return nt})),n.d(t,"RangeSliderPropsContext",(function(){return pt})),n.d(t,"RangeSlider",(function(){return ft})),n.d(t,"Switch",(function(){return kt})),n.d(t,"SwitchPropsContext",(function(){return bt})),n.d(t,"CheckboxPropsContext",(function(){return wt})),n.d(t,"Checkbox",(function(){return Et})),n.d(t,"RadioGroupPropsContext",(function(){return _t})),n.d(t,"RadioGroup",(function(){return Pt})),n.d(t,"RadioButtonPropsContext",(function(){return xt})),n.d(t,"RadioButton",(function(){return It})),n.d(t,"TextAreaPropsContext",(function(){return jt})),n.d(t,"TextArea",(function(){return Ft})),n.d(t,"RatingPropsContext",(function(){return Yt})),n.d(t,"Rating",(function(){return Gt})),n.d(t,"RatingItem",(function(){return At}));var r=n(0),o=n(1),i=n(2),a={name:"@progress/kendo-react-inputs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639558433,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"},s=function(e){return null!=e},l=function(e,t,n){return!s(e)||isNaN(e)||e<=t?t:e>=n?n:e},u=n(18),c=function(e,t,n){void 0===n&&(n=!0);if(-1===["hex","rgba"].indexOf(t))throw new Error("Unsupported color output format '"+t+"'. The available options are 'hex' or 'rgba'.");if(s(e)){var r=Object(u.parseColor)(e.trim(),n);if(s(r))return"hex"===t?r.toCss():r.toCssRgba()}},d=function(e,t){void 0===t&&(t=!0);var n=Object(u.parseColor)(e,t);return s(n)?n.toHSV():{}},p=function(e,t){void 0===t&&(t=!0);var n=Object(u.parseColor)(e,t);return s(n)?n.toBytes():{}},f=function(e){var t=l(e.h,0,359.9),n=l(e.s,0,1),r=l(e.v,0,1),o=l(e.a,0,1);return u.Color.fromHSV(t,n,r,o).toCssRgba()},h=function(e){return f({h:e,s:1,v:1,a:1})},m=function(e,t){var n=l(e.r,0,255),r=l(e.g,0,255),o=l(e.b,0,255),i=l(e.a,0,1),a=l(t.r,0,255),s=l(t.g,0,255),u=l(t.b,0,255);return{r:Math.round((1-i)*a+i*n),g:Math.round((1-i)*s+i*r),b:Math.round((1-i)*u+i*o)}},v=function(e){var t=[e.r,e.g,e.b].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*t[0]+.7152*t[1]+.0722*t[2]},g=function(e,t){return n=v(m(e,t)),r=v(m(t,{r:0,g:0,b:0,a:1})),(Math.max(n,r)+.05)/(Math.min(n,r)+.05);var n,r},y={};var b,k,C=(b=function(e,t){return(b=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}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),O=function(e){function t(t){var n=e.call(this,t)||this;return n.onChange=function(e){var t=e.target.value,r=c(t,"rgba");n.setState({hex:t}),s(r)&&n.props.onHexChange(t,r,e)},n.onBlur=function(){s(c(n.state.hex,"rgba"))||n.setState({hex:n.state.originalHex})},n.state={hex:n.props.hex,originalHex:n.props.hex},n}return C(t,e),t.prototype.render=function(){return r.createElement("input",{value:this.state.hex,className:"k-input",onChange:this.onChange,onBlur:this.onBlur,disabled:this.props.disabled})},t.getDerivedStateFromProps=function(e,t){return e.hex!==t.originalHex?{hex:e.hex,originalHex:e.hex}:null},t}(r.Component),w=n(5),E=n(6),S=n(4),D=((k={})["numerictextbox.increment"]="Increase value",k["numerictextbox.decrement"]="Decrease value",k["slider.increment"]="Increase",k["slider.decrement"]="Decrease",k["slider.dragTitle"]="Drag",k["colorGradient.r"]="r",k["colorGradient.g"]="g",k["colorGradient.b"]="b",k["colorGradient.a"]="a",k["colorGradient.hex"]="hex",k["colorGradient.contrastRatio"]="Contrast ratio",k["colorGradient.colorGradientAALevel"]="AA",k["colorGradient.colorGradientAAALevel"]="AAA",k["colorGradient.colorGradientPass"]="Pass",k["colorGradient.colorGradientFail"]="Fail",k["flatColorPicker.cancelBtn"]="Cancel",k["flatColorPicker.applyBtn"]="Apply",k["checkbox.validation"]="Please check this box if you want to proceed!",k["checkbox.optionalText"]="(Optional)",k["radioButton.validation"]="Please select option if you want to proceed!",k["switch.validation"]="Please turn on if you want to proceed!",k),x=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),I=function(){return(I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},T=["rgba","rgb","hex"],_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={inputMode:T[1]},t.onRgbaRChange=function(e){t.dispatchRgbaChange({r:e.value},e)},t.onRgbaGChange=function(e){t.dispatchRgbaChange({g:e.value},e)},t.onRgbaBChange=function(e){t.dispatchRgbaChange({b:e.value},e)},t.onRgbaAChange=function(e){t.dispatchRgbaChange({a:e.value},e)},t}return x(t,e),t.prototype.render=function(){var e=Object(S.provideLocalizationService)(this),t=e.toLanguageString("colorGradient.r",D["colorGradient.hex"]),n=e.toLanguageString("colorGradient.r",D["colorGradient.r"]),o=e.toLanguageString("colorGradient.r",D["colorGradient.g"]),i=e.toLanguageString("colorGradient.r",D["colorGradient.b"]),a=e.toLanguageString("colorGradient.r",D["colorGradient.a"]);return r.createElement("div",{className:"k-colorgradient-inputs k-hstack"},r.createElement("div",{className:"k-vstack"},r.createElement(w.Button,{look:"flat",icon:"arrows-kpi",className:"k-colorgradient-toggle-mode k-icon-button",onClick:this.onToggleModeChange.bind(this)})),"hex"===this.state.inputMode&&r.createElement("div",{className:"k-vstack k-flex-1"},r.createElement("span",{className:"k-hex-value k-textbox"},r.createElement(O,{hex:this.props.hex,onHexChange:this.props.onHexChange,disabled:this.props.disabled})),r.createElement(E.Label,{className:"k-colorgradient-input-label"},t)),("rgb"===this.state.inputMode||"rgba"===this.state.inputMode)&&r.createElement(r.Fragment,null,r.createElement("div",{className:"k-vstack"},r.createElement(Je,{value:this.props.rgba.r,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaRChange,disabled:this.props.disabled}),r.createElement(E.Label,{className:"k-colorgradient-input-label"},n)),r.createElement("div",{className:"k-vstack"},r.createElement(Je,{value:this.props.rgba.g,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaGChange,disabled:this.props.disabled}),r.createElement(E.Label,{className:"k-colorgradient-input-label"},o)),r.createElement("div",{className:"k-vstack"},r.createElement(Je,{value:this.props.rgba.b,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaBChange,disabled:this.props.disabled}),r.createElement(E.Label,{className:"k-colorgradient-input-label"},i))),"rgba"===this.state.inputMode&&r.createElement("div",{className:"k-vstack"},this.props.opacity&&r.createElement(Je,{value:this.props.rgba.a,min:0,max:1,step:.01,spinners:!1,format:"n2",onChange:this.onRgbaAChange,disabled:this.props.disabled}),this.props.opacity&&r.createElement(E.Label,{className:"k-colorgradient-input-label"},a)))},t.prototype.dispatchRgbaChange=function(e,t){var n=I({},this.props.rgba);void 0!==e.r&&(n.r=e.r),void 0!==e.g&&(n.g=e.g),void 0!==e.b&&(n.b=e.b),void 0!==e.a&&(n.a=e.a),this.props.onRgbaChange(n,t)},t.prototype.onToggleModeChange=function(){var e=T.length-1===T.indexOf(this.state.inputMode)?0:T.indexOf(this.state.inputMode)+1;if(this.props.opacity)this.setState({inputMode:T[e]});else{var t="rgba"===T[e]?e+1:e;this.setState({inputMode:T[t]})}},t}(r.Component),P=_;Object(S.registerForIntl)(_),Object(S.registerForLocalization)(_);var N=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return N(t,e),t.prototype.render=function(){var e=Object(S.provideLocalizationService)(this),t=e.toLanguageString("colorGradient.contrastRatio",D["colorGradient.contrastRatio"]),n=e.toLanguageString("colorGradient.colorGradientAALevel",D["colorGradient.colorGradientAALevel"]),o=e.toLanguageString("colorGradient.colorGradientAAALevel",D["colorGradient.colorGradientAAALevel"]),i=e.toLanguageString("colorGradient.colorGradientPass",D["colorGradient.colorGradientPass"]),a=e.toLanguageString("colorGradient.colorGradientFail",D["colorGradient.colorGradientFail"]),s=g(this.props.rgba,this.props.bgColor),l=4.5.toFixed(1),u=7..toFixed(1),c=t+": "+s.toFixed(2),d=n+": "+l,p=o+": "+u,f=r.createElement("span",{className:"k-contrast-validation k-text-success"},i," ",r.createElement("span",{className:"k-icon k-i-check"})),h=r.createElement("span",{className:"k-contrast-validation k-text-error"},a," ",r.createElement("span",{className:"k-icon k-i-close"}));return r.createElement("div",{className:"k-vbox k-colorgradient-color-contrast"},r.createElement("div",{className:"k-contrast-ratio"},r.createElement("span",{className:"k-contrast-ratio-text"},c),s>=4.5?r.createElement("span",{className:"k-contrast-validation k-text-success"},r.createElement("span",{className:"k-icon k-i-check"}),s>=7&&r.createElement("span",{className:"k-icon k-i-check"})):r.createElement("span",{className:"k-contrast-validation k-text-error"},r.createElement("span",{className:"k-icon k-i-close"}))),r.createElement("div",null,r.createElement("span",null,d),s>=4.5?f:h),r.createElement("div",null,r.createElement("span",null,p),s>=7?f:h))},t}(r.Component);Object(S.registerForLocalization)(M);var R=function(e,t){return 0===e.length?"":'<path d="'+e.reduce((function(e,n,r,o){return 0===r?"M "+n[0]+","+n[1]:e+" "+t(n,r,o)}),"")+'" fill="none" stroke="white" stroke-width="1"/>'},j=function(e,t){var n=t[0]-e[0],r=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(r,2)),angle:Math.atan2(r,n)}},F=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return F(t,e),t.prototype.renderSvgCurveLine=function(){var e,t,n=this,r=this.props.metrics,o=function(e,t,i,a,s){var l=(i+a)/2,u=Object.assign({},n.props.hsva,{s:t/r.width,v:1-l/r.height}),c=g(p(f(u)),p(n.props.backgroundColor||""));return i+.5>a?c<e+1&&c>e-1?l:null:s(c,e)?o(e,t,i,a-(a-i)/2,s):o(e,t,i+(a-i)/2,a,s)},i=function(e,t,n){void 0===n&&(n=!1);for(var i=[],a=0;a<=r.width;a+=r.width/t){var s=o(e,a,0,r.height,n?function(e,t){return e<t}:function(e,t){return e>t});null!==s&&i.push([a,s])}return i},a=(t=j,e=function(e,n,r,o){var i=t(n||e,r||e),a=i.angle+(o?Math.PI:0),s=.1*i.length;return[e[0]+Math.cos(a)*s,e[1]+Math.sin(a)*s]},function(t,n,r){var o=e(r[n-1],r[n-2],t),i=o[0],a=o[1],s=e(t,r[n-1],r[n+1],!0);return"C "+i+","+a+" "+s[0]+","+s[1]+" "+t[0]+","+t[1]});return R(i(4.5,16),a)+R(i(4.5,16,!0),a)+R(i(7,16),a)+R(i(7,16,!0),a)},t.prototype.shouldComponentUpdate=function(e){return e.hsva.h!==this.props.hsva.h||e.hsva.a!==this.props.hsva.a||this.props.backgroundColor!==e.backgroundColor},t.prototype.render=function(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"k-color-contrast-svg",dangerouslySetInnerHTML:{__html:this.renderSvgCurveLine()},style:{position:"absolute",overflow:"visible",pointerEvents:"none",left:0,top:0,zIndex:3}})},t}(r.Component),L=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),V=function(e){function t(n){var r=e.call(this,n)||this;r.onHexChange=function(e,t,n){if(r.isUncontrolled){var o=d(t);r.setState({hsva:o,backgroundColor:h(o.h),rgba:p(t),hex:e})}else!function(e,t,n){y[e]={value:t,hex:n}}(r.state.guid,t,e);r.dispatchChangeEvent(t,n,n.nativeEvent)},r.onRgbaChange=function(e,t){var n=function(e){var t=l(e.r,0,255),n=l(e.g,0,255),r=l(e.b,0,255),o=l(e.a,0,1);return u.Color.fromBytes(t,n,r,o).toCssRgba()}(e);if(r.isUncontrolled){var o=d(n),i=c(n,"hex");r.setState({hsva:o,backgroundColor:h(o.h),rgba:e,hex:i})}else!function(e,t,n){y[e]={value:t,rgba:n}}(r.state.guid,n,e);r.dispatchChangeEvent(n,t.syntheticEvent,t.nativeEvent)},r.onAlphaSliderChange=function(e){r.handleHsvaChange(Object.assign({},r.state.hsva,{a:e.value/100}),e.syntheticEvent,e.nativeEvent)},r.onHueSliderChange=function(e){r.handleHsvaChange(Object.assign({},r.state.hsva,{h:e.value}),e.syntheticEvent,e.nativeEvent)},r.onDrag=function(e){r.gradientWrapper.classList.add("k-dragging"),r.changePosition(e.event)},r.onRelease=function(){r.gradientWrapper.classList.remove("k-dragging")},r.onGradientWrapperClick=function(e){r.changePosition(e)},r.changePosition=function(e){var t=r.getGradientRectMetrics(),n=e.clientX-t.left,o=e.clientY-t.top,i=l(n,0,t.width),a=l(o,0,t.height),s=Object.assign({},r.state.hsva,{s:i/t.width,v:1-a/t.height});r.handleHsvaChange(s,e,e.nativeEvent)},r.onFocus=function(e){r.props.onFocus&&r.props.onFocus.call(void 0,{nativeEvent:e,target:r})},r.focus=function(){Object(i.focusFirstFocusableChild)(r.wrapper)},Object(i.validatePackage)(a);var o=n.value||n.defaultValue||c("rgba(255, 255, 255, 1)","rgba");return r.state=Object.assign({},t.getStateFromValue(o),{isFirstRender:!0,guid:Object(i.guid)()}),r}return L(t,e),t.getDerivedStateFromProps=function(e,n){return e.value&&!n.isFirstRender?t.getStateFromValue(e.value,n.guid):null},t.prototype.componentDidMount=function(){this.setAlphaSliderBackground(this.state.backgroundColor),this.state.isFirstRender&&this.setState({isFirstRender:!1})},t.prototype.componentWillUnmount=function(){var e;e=this.state.guid,delete y[e]},t.prototype.componentDidUpdate=function(e,t){t.backgroundColor!==this.state.backgroundColor&&this.setAlphaSliderBackground(this.state.backgroundColor)},t.prototype.renderRectangleDragHandle=function(){var e={};if(!this.state.isFirstRender){var t=this.getGradientRectMetrics(),n=(1-this.state.hsva.v)*t.height,o=this.state.hsva.s*t.width;e.top=n+"px",e.left=o+"px"}return r.createElement("div",{className:"k-hsv-draghandle k-draghandle",style:e})},t.prototype.handleHsvaChange=function(e,t,n){var r=f(e);if(this.isUncontrolled){var o=c(r,"hex");this.setState({hsva:e,backgroundColor:h(e.h),rgba:p(r),hex:o})}else!function(e,t,n){y[e]={value:t,hsva:n}}(this.state.guid,r,e);this.dispatchChangeEvent(r,t,n)},t.prototype.dispatchChangeEvent=function(e,t,n){this.props.onChange&&this.props.onChange.call(void 0,{syntheticEvent:t,nativeEvent:n,target:this,value:e})},t.getStateFromValue=function(e,t){s(c(e,"hex"))||(e="rgba(255, 255, 255, 1)");var n=function(e,t){if(e){var n=y[e];return n&&n.value===t?n.hsva:void 0}}(t,e)||d(e),r=function(e,t){if(e){var n=y[e];return n&&n.value===t?n.rgba:void 0}}(t,e)||p(e),o=function(e,t){if(e){var n=y[e];return n&&n.value===t?n.hex:void 0}}(t,e)||c(e,"hex");return{hsva:n,backgroundColor:h(n.h),rgba:r,hex:o}},t.prototype.setAlphaSliderBackground=function(e){this.props.opacity&&this.alphaSlider&&this.alphaSlider.sliderTrack&&(this.alphaSlider.sliderTrack.style.background="linear-gradient(to top, transparent, "+e+")")},Object.defineProperty(t.prototype,"isUncontrolled",{get:function(){return void 0===this.props.value},enumerable:!0,configurable:!0}),t.prototype.getGradientRectMetrics=function(){return this.gradientWrapper.getBoundingClientRect()},t.prototype.render=function(){var e=this,t=Object(i.classNames)("k-colorgradient",{"k-state-disabled":this.props.disabled});return r.createElement("div",{id:this.props.id,className:t,"aria-disabled":this.props.disabled?"true":void 0,style:this.props.style,ref:function(t){return e.wrapper=t},tabIndex:Object(i.getTabIndex)(this.props.tabIndex,this.props.disabled),"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,onFocus:this.onFocus},r.createElement("div",{className:"k-colorgradient-canvas k-hstack"},r.createElement("div",{className:"k-hsv-rectangle",style:{background:this.state.backgroundColor}},r.createElement(i.Draggable,{onDrag:this.onDrag,onRelease:this.onRelease,ref:function(t){return e.gradientWrapper=t?t.element:void 0}},r.createElement("div",{className:"k-hsv-gradient",style:{touchAction:"none"},onClick:this.onGradientWrapperClick},this.renderRectangleDragHandle())),this.props.backgroundColor&&!this.state.isFirstRender&&r.createElement(A,{metrics:this.gradientWrapper?this.getGradientRectMetrics():void 0,hsva:this.state.hsva,backgroundColor:this.props.backgroundColor})),r.createElement("div",{className:"k-hsv-controls k-hstack"},r.createElement(st,{value:this.state.hsva.h,buttons:!1,vertical:!0,min:0,max:360,step:5,onChange:this.onHueSliderChange,className:"k-hue-slider k-colorgradient-slider",disabled:this.props.disabled}),this.props.opacity&&r.createElement(st,{value:s(this.state.hsva.a)?100*this.state.hsva.a:100,buttons:!1,vertical:!0,min:0,max:100,step:1,onChange:this.onAlphaSliderChange,className:"k-alpha-slider k-colorgradient-slider",disabled:this.props.disabled,ref:function(t){return e.alphaSlider=t}}))),r.createElement(P,{rgba:this.state.rgba,onRgbaChange:this.onRgbaChange,hex:this.state.hex,onHexChange:this.onHexChange,opacity:this.props.opacity,disabled:this.props.disabled}),this.props.backgroundColor&&r.createElement(M,{bgColor:p(this.props.backgroundColor),rgba:this.state.rgba}))},t.displayName="ColorGradient",t.propTypes={defaultValue:o.string,value:o.string,onChange:o.func,onFocus:o.func,opacity:o.bool,backgroundColor:o.string,disabled:o.bool,style:o.any,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string},t.defaultProps={opacity:!0},t}(r.Component),B=Object(i.createPropsContext)(),z=Object(i.withPropsContext)(B,V);z.displayName="KendoReactColorGradient";var H=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],s(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var r=e.slice(n,t+n);this.colorRows.push(r)}}},e.prototype.getCellCoordsFor=function(e){var t=this;if(s(e)){var n=e?Object(u.parseColor)(e,!0):e,r=[e];s(n)&&r.push(n.toCss(),n.toCssRgba());for(var o=function(e){for(var n=function(n){if(r.some((function(r){return r===t.colorRows[e][n]})))return{value:{row:e,col:n}}},o=0;o<i.colorRows[e].length;o++){var a=n(o);if("object"==typeof a)return a}},i=this,a=0;a<this.colorRows.length;a++){var l=o(a);if("object"==typeof l)return l.value}}},e.prototype.getColorAt=function(e){if(s(e)&&s(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(s(e)&&s(e.row)&&s(e.col)))return{row:0,col:0};var r=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:r,col:this.clampIndex(e.col+t,this.colorRows[r].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e}(),U={basic:{colors:["#000000","#7f7f7f","#880015","#ed1c24","#ff7f27","#fff200","#22b14c","#00a2e8","#3f48cc","#a349a4"," ffffff","#c3c3c3","#b97a57","#ffaec9","#ffc90e","#efe4b0","#b5e61d","#99d9ea","#7092be","#c8bfe7"],columns:10},office:{colors:["#ffffff","#000000","#e6e6e6","#435569","#4371c4","#ed7e32","#a5a4a5","#febf04","#5a9bd5","#71ae48","#f2f2f3","#7f7f7f","#d1cece","#d5dde3","#dae1f4","#fce5d4","#deeded","#fff2cc","#deeaf6","#e1efd9","#d7d8d8","#585959","#aeabab","#adbaca","#b4c5e7","#f6caac","#dbdbdb","#ffe498","#bcd6ee","#c5e0b2","#bfbfc0","#3f3f3f","#767070","#8595b1","#8fabdb","#f5b183","#c9c8c9","#fed965","#9bc4e5","#a8d08d","#a5a5a6","#262625","#393939","#334050","#2e5496","#c45a11","#7b7b7a","#bf9000","#2f75b5","#548235","#7f7f7f","#0b0c0c","#161616","#222a34","#203764","#843d0b","#525252","#7f6000","#1d4d79","#375623"],columns:10},apex:{colors:["#ffffff","#000000","#c9c2d1","#69676d","#ceb966","#9cb084","#6bb1c9","#6585cf","#7e6bc9","#a379bb","#f2f2f2","#7f7f7f","#f4f2f5","#e0e0e2","#f5f1e0","#ebefe6","#e1eff4","#e0e6f5","#e5e1f4","#ece4f1","#d8d8d8","#595959","#e9e6ec","#c2c1c5","#ebe3c1","#d7dfcd","#c3dfe9","#c1ceeb","#cbc3e9","#dac9e3","#bfbfbf","#3f3f3f","#dedae3","#a4a3a8","#e1d5a3","#c3cfb5","#a6d0de","#a2b5e2","#b1a6de","#c7aed6","#a5a5a5","#262626","#9688a5","#4e4d51","#ae9638","#758c5a","#3d8da9","#365bb0","#533da9","#7d4d99","#7f7f7f","#0c0c0c","#635672","#343336","#746425","#4e5d3c","#295e70","#243c75","#372970","#533366"],columns:10},austin:{colors:["#ffffff","#000000","#caf278","#3e3d2d","#94c600","#71685a","#ff6700","#909465","#956b43","#fea022","#f2f2f2","#7f7f7f","#f4fce4","#dddcd0","#efffc0","#e3e1dc","#ffe0cb","#e8e9df","#ece1d6","#feecd2","#d8d8d8","#595959","#e9f9c9","#bbb9a1","#dfff82","#c8c3ba","#ffc299","#d2d4c0","#dac3ad","#fed9a6","#bfbfbf","#3f3f3f","#dff7ae","#ada598","#cfff43","#ada598","#ffa365","#bcbfa1","#c8a585","#fec67a","#a5a5a5","#262626","#a9ea25","#2e2d21","#6f9400","#544e43","#bf4d00","#6c6f4b","#6f5032","#d77b00","#7f7f7f","#0c0c0c","#74a50f","#1f1e16","#4a6300","#38342d","#7f3300","#484a32","#4a3521","#8f5200"],columns:10},clarity:{colors:["#ffffff","#292934","#f3f2dc","#d2533c","#93a299","#ad8f67","#726056","#4c5a6a","#808da0","#79463d","#f2f2f2","#e7e7ec","#e7e5b9","#f6dcd8","#e9ecea","#eee8e0","#e4dedb","#d8dde3","#e5e8ec","#e9d6d3","#d8d8d8","#c4c4d1","#d5d185","#edbab1","#d3d9d6","#ded2c2","#c9beb8","#b2bcc8","#ccd1d9","#d3aea7","#bfbfbf","#8a8aa3","#aca73b","#e4978a","#bec7c1","#cdbba3","#af9e94","#8c9bac","#b2bac6","#bd857c","#a5a5a5","#56566e","#56531d","#a43925","#6b7c72","#866b48","#554840","#39434f","#5c697b","#5a342d","#7f7f7f","#3b3b4b","#22210b","#6d2619","#47534c","#594730","#39302b","#262d35","#3d4652","#3c231e"],columns:10},slipstream:{colors:["#ffffff","#000000","#b4dcfa","#212745","#4e67c8","#5eccf3","#a7ea52","#5dceaf","#ff8021","#f14124","#f2f2f2","#7f7f7f","#8bc9f7","#c7cce4","#dbe0f4","#def4fc","#edfadc","#def5ef","#ffe5d2","#fcd9d3","#d8d8d8","#595959","#4facf3","#909aca","#b8c2e9","#beeafa","#dbf6b9","#beebdf","#ffcca6","#f9b3a7","#bfbfbf","#3f3f3f","#0d78c9","#5967af","#94a3de","#9ee0f7","#caf297","#9de1cf","#ffb279","#f68d7b","#a5a5a5","#262626","#063c64","#181d33","#31479f","#11b2eb","#81d319","#34ac8b","#d85c00","#c3260c","#7f7f7f","#0c0c0c","#021828","#101322","#202f6a","#0b769c","#568c11","#22725c","#903d00","#821908"],columns:10},metro:{colors:["#ffffff","#000000","#d6ecff","#4e5b6f","#7fd13b","#ea157a","#feb80a","#00addc","#738ac8","#1ab39f","#f2f2f2","#7f7f7f","#a7d6ff","#d9dde4","#e5f5d7","#fad0e4","#fef0cd","#c5f2ff","#e2e7f4","#c9f7f1","#d8d8d8","#595959","#60b5ff","#b3bcca","#cbecb0","#f6a1c9","#fee29c","#8be6ff","#c7d0e9","#94efe3","#bfbfbf","#3f3f3f","#007dea","#8d9baf","#b2e389","#f272af","#fed46b","#51d9ff","#aab8de","#5fe7d5","#a5a5a5","#262626","#003e75","#3a4453","#5ea226","#af0f5b","#c58c00","#0081a5","#425ea9","#138677","#7f7f7f","#0c0c0c","#00192e","#272d37","#3f6c19","#750a3d","#835d00","#00566e","#2c3f71","#0c594f"],columns:10},flow:{colors:["#ffffff","#000000","#dbf5f9","#04617b","#0f6fc6","#009dd9","#0bd0d9","#10cf9b","#7cca62","#a5c249","#f2f2f2","#7f7f7f","#b2e9f2","#b4ecfc","#c7e2fa","#c4eeff","#c9fafc","#c9faed","#e4f4df","#edf2da","#d8d8d8","#595959","#76d9e8","#6adafa","#90c6f6","#89deff","#93f5f9","#94f6db","#cae9c0","#dbe6b6","#bfbfbf","#3f3f3f","#21b2c8","#20c8f7","#59a9f2","#4fceff","#5df0f6","#5ff2ca","#b0dfa0","#c9da91","#a5a5a5","#262626","#105964","#02485c","#0b5394","#0075a2","#089ca2","#0b9b74","#54a838","#7e9532","#7f7f7f","#0c0c0c","#062328","#01303d","#073763","#004e6c","#05686c","#07674d","#387025","#546321"],columns:10},hardcover:{colors:["#ffffff","#000000","#ece9c6","#895d1d","#873624","#d6862d","#d0be40","#877f6c","#972109","#aeb795","#f2f2f2","#7f7f7f","#e1dca5","#f2e0c6","#f0d0c9","#f6e6d5","#f5f2d8","#e7e5e1","#fbc7bc","#eef0e9","#d8d8d8","#595959","#d0c974","#e6c28d","#e2a293","#eeceaa","#ece5b2","#cfccc3","#f78f7a","#dee2d4","#bfbfbf","#3f3f3f","#a29a36","#daa454","#d4735e","#e6b681","#e2d88c","#b7b2a5","#f35838","#ced3bf","#a5a5a5","#262626","#514d1b","#664515","#65281a","#a2641f","#a39428","#655f50","#711806","#879464","#7f7f7f","#0c0c0c","#201e0a","#442e0e","#431b11","#6c4315","#6d621a","#433f35","#4b1004","#5a6243"],columns:10},trek:{colors:["#ffffff","#000000","#fbeec9","#4e3b30","#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529","#f2f2f2","#7f7f7f","#f7e09e","#e1d6cf","#fcecd5","#eddfda","#f0e7e5","#f3eae1","#ece9e3","#f5e3d1","#d8d8d8","#595959","#f3cc5f","#c4ad9f","#f9d9ab","#dcc0b6","#e1d0cc","#e7d5c4","#d9d4c7","#ebc7a3","#bfbfbf","#3f3f3f","#d29f0f","#a78470","#f6c781","#cba092","#d2b9b2","#dbc1a7","#c6bfab","#e1ac76","#a5a5a5","#262626","#694f07","#3a2c24","#c87d0e","#7b4b3a","#926255","#a17242","#7b7153","#90571e","#7f7f7f","#0c0c0c","#2a1f03","#271d18","#855309","#523226","#614138","#6b4c2c","#524b37","#603a14"],columns:10},verve:{colors:["#ffffff","#000000","#d2d2d2","#666666","#ff388c","#e40059","#9c007f","#68007f","#005bd3","#00349e","#f2f2f2","#7f7f7f","#bdbdbd","#e0e0e0","#ffd7e8","#ffc6dc","#ffb8f1","#f1b2ff","#c3dcff","#b8cfff","#d8d8d8","#595959","#9d9d9d","#c1c1c1","#ffafd1","#ff8eba","#ff71e4","#e365ff","#87baff","#72a0ff","#bfbfbf","#3f3f3f","#696969","#a3a3a3","#ff87ba","#ff5597","#ff2ad7","#d519ff","#4b98ff","#2b71ff","#a5a5a5","#262626","#343434","#4c4c4c","#e90062","#ab0042","#75005f","#4e005f","#00449e","#002676","#7f7f7f","#0c0c0c","#151515","#333333","#9b0041","#72002c","#4e003f","#34003f","#002d69","#00194f"],columns:10},monochrome:{colors:["#000000","#1a1a1a","#333333","#4d4d4d","#666666","#808080","#999999","#b3b3b3","#cccccc","#e6e6e6","#f2f2f2","#ffffff"],columns:12}},K=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),W=function(e){function t(t){var n=e.call(this,t)||this;return n.wrapper=null,n.guid=Object(i.guid)(),n.focus=function(){n.wrapper&&n.wrapper.focus()},n.onKeyDown=function(e){switch(e.keyCode){case i.Keys.down:n.handleCellNavigation(0,1);break;case i.Keys.up:n.handleCellNavigation(0,-1);break;case i.Keys.right:n.handleCellNavigation(1,0);break;case i.Keys.left:n.handleCellNavigation(-1,0);break;case i.Keys.enter:n.handleEnter(e);break;default:return}e.preventDefault()},n.onColorClick=function(e,t){n.isUncontrolled?n.setState({selectedColor:e,focusedColor:e}):n.setState({focusedColor:e}),n.dispatchChangeEvent(e,t)},n.onFocus=function(e){n.setState({focusedColor:n.state.selectedColor||n.paletteService.colorRows[0][0]}),n.props.onFocus&&n.props.onFocus.call(void 0,{nativeEvent:e,target:n})},n.onBlur=function(){n.setState({focusedColor:void 0})},Object(i.validatePackage)(a),n.state={selectedColor:void 0!==n.props.value?n.props.value:n.props.defaultValue,isFirstRender:!0},n}return K(t,e),t.prototype.render=function(){var e=this,t=this.getPaletteInfo(),n=this.paletteService=new H;n.setColorMatrix(t.colors,t.columns);var o=n.getCellCoordsFor(this.state.selectedColor),a=n.getCellCoordsFor(this.state.focusedColor),s=Object(i.classNames)("k-colorpalette",{"k-state-disabled":this.props.disabled});return t.colors.length?r.createElement("div",{id:this.props.id,className:s,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,"aria-disabled":this.props.disabled?"true":void 0,"aria-activedescendant":o&&this.createCellId(o),"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,tabIndex:Object(i.getTabIndex)(this.props.tabIndex,this.props.disabled),ref:function(t){return e.wrapper=t}},r.createElement("div",{className:"k-colorpalette-table-wrap",role:"grid"},r.createElement("table",{className:"k-colorpalette-table k-palette",role:"presentation"},r.createElement("tbody",null,this.renderRows(n.colorRows,o,a))))):""},t.getDerivedStateFromProps=function(e,t){if(t.isFirstRender||void 0===e.value){if(t.isFirstRender)return{isFirstRender:!1}}else{if(""===e.value&&void 0!==t.selectedColor)return{selectedColor:void 0};if(""!==e.value&&e.value!==t.selectedColor)return{selectedColor:e.value}}return null},t.prototype.handleCellNavigation=function(e,t){if(this.focusedColorCooridanates){var n=this.paletteService.getNextCell(this.focusedColorCooridanates,e,t);this.setState({focusedColor:this.paletteService.getColorAt(n)})}else this.setState({focusedColor:this.paletteService.colorRows[0][0]})},t.prototype.handleEnter=function(e){this.isUncontrolled&&this.setState({selectedColor:this.state.focusedColor}),this.dispatchChangeEvent(this.state.focusedColor,e)},t.prototype.dispatchChangeEvent=function(e,t){Object(i.dispatchEvent)(this.props.onChange,t,this,{value:e,rgbaValue:c(e,"rgba")})},Object.defineProperty(t.prototype,"focusedColorCooridanates",{get:function(){return this.state.focusedColor?this.paletteService.getCellCoordsFor(this.state.focusedColor):void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isUncontrolled",{get:function(){return void 0===this.props.value},enumerable:!0,configurable:!0}),t.prototype.getPaletteInfo=function(){if("string"==typeof this.props.palette){var e=U[this.props.palette];return s(e)?{colors:e.colors,columns:this.props.columns||e.columns||10}:{colors:[],columns:0}}return{colors:this.props.palette||[],columns:this.props.columns||10}},t.prototype.renderRows=function(e,t,n){var o=this;return e.map((function(e,i){return r.createElement("tr",{role:"row",key:i},o.renderColumns(e,i,t,n))}))},t.prototype.renderColumns=function(e,t,n,o){var a=this,s=void 0!==n&&n.row===t,l=n&&n.col,u=void 0!==o&&o.row===t,c=o&&o.col,d="number"!=typeof this.props.tileSize?this.props.tileSize:{width:this.props.tileSize,height:this.props.tileSize},p=d.width+"px",f=d.height+"px";return e.map((function(e,n){var o=s&&l===n,d=Object(i.classNames)("k-colorpalette-tile",{"k-state-selected":o,"k-state-focus":u&&c===n});return r.createElement("td",{className:d,"aria-label":e,"aria-selected":!!o||!!a.props.disabled&&void 0,style:{backgroundColor:e,width:p,height:f,minWidth:p},onClick:function(t){return a.onColorClick(e,t)},id:a.createCellId({row:t,col:n}),key:n})}))},t.prototype.createCellId=function(e){return this.guid+"_"+e.row+"_"+e.col},t.displayName="ColorPalette",t.propTypes={palette:o.oneOfType([o.arrayOf(o.string.isRequired),o.string]),columns:o.number,tileSize:o.any,defaultValue:o.string,value:o.string,disabled:o.bool,tabIndex:o.number,onChange:o.func,onFocus:o.func,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string},t.defaultProps={palette:"office",tileSize:24},t}(r.Component),q=Object(i.createPropsContext)(),Y=Object(i.withPropsContext)(q,W);Y.displayName="KendoReactColorPalette";var G=n(9),Z=function(){return(Z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},X=function(e){var t=e.popupSettings||{},n="rtl"===e.dir?"right":"left",o=r.useMemo((function(){return{horizontal:n,vertical:"bottom"}}),[n]),a=r.useMemo((function(){return{horizontal:n,vertical:"top"}}),[n]);return r.createElement(r.Fragment,null,e.input,e.button,r.createElement(G.a,Z({style:Z({},(t||{}).style,{direction:e.dir})},t,{anchor:e.popupAnchor,anchorAlign:o,popupAlign:a,show:e.open,onOpen:e.onOpen,onClose:e.onClose,className:Object(i.classNames)("k-reset",t.className)}),e.content))};X.displayName="KendoPickerComponent";var Q=function(){return(Q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},$={palette:"office",tileSize:24},J=function(e){return void 0!==e},ee=Object(i.createPropsContext)(),te=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=Object(i.usePropsContext)(ee,e),o=n.popupSettings,s=n.gradientSettings,l=n.paletteSettings,u=n.valid,c=n.disabled,d=n.tabIndex,p=n.view,f=n.icon,h=n.onChange,m=n.onFocus,v=n.onBlur,g=n.onActiveColorClick,y=r.useRef(null),b=r.useRef(null),k=r.useRef(null),C=r.useRef(),O=r.useRef(null),w=r.useCallback((function(){y.current&&y.current.focus()}),[]);r.useImperativeHandle(t,(function(){return{element:y.current,actionElement:O.current,focus:w}}));var E=r.useState(!1),S=E[0],D=E[1],x=r.useState(n.defaultValue),I=x[0],T=x[1],_=r.useState(!1),P=_[0],N=_[1],M=J(n.value),R=J(n.open),j=M?n.value:I,F=R?n.open:P,A=r.useCallback((function(e,t){R||(!e&&!t&&y&&y.current&&y.current.focus(),N(e))}),[R]),L=r.useCallback((function(e){var t=e.altKey,n=e.keyCode;if(n!==i.Keys.esc)return n!==i.Keys.enter||R?void(!t||n!==i.Keys.up&&n!==i.Keys.down||(e.preventDefault(),e.stopPropagation(),n===i.Keys.up&&y&&y.current&&(y.current.focus(),A(!1)),n===i.Keys.down&&A(!0))):(e.preventDefault(),e.stopPropagation(),void A(!F));A(!1)}),[F,R]),V=r.useCallback((function(){R||(b.current?b.current.focus():k.current&&k.current.focus())}),[R]),B=r.useCallback((function(){A(!F,!0)}),[F]),H=r.useCallback((function(e){g&&g.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:j})}),[g,j]),U=r.useCallback((function(e){C.current?(clearTimeout(C.current),C.current=void 0):D(!0),m&&m.call(void 0,{nativeEvent:e.nativeEvent,syntheticEvent:e})}),[m]),K=r.useCallback((function(){A(!1,!0),D(!1),C.current=void 0}),[]),W=r.useCallback((function(e){clearTimeout(C.current),C.current=window.setTimeout(K),v&&v.call(void 0,{nativeEvent:e.nativeEvent,syntheticEvent:e})}),[v]),q=r.useCallback((function(e,t){var n=t?e.rgbaValue:e.value;M||T(n),t&&A(!1),h&&h.call(void 0,{value:n,nativeEvent:e.nativeEvent,syntheticEvent:e.syntheticEvent})}),[M,h]),G=r.useCallback((function(e){return q(e,!0)}),[J,q]),Z=Object(i.useDir)(y,n.dir),$=n.iconClassName||f&&"k-icon k-i-"+f,te=Object(i.classNames)({"k-widget":!0,"k-colorpicker":!0,"k-state-invalid":!1===u}),ne=r.useMemo((function(){return Object(i.classNames)({"k-picker-wrap":!0,"k-state-disabled":c,"k-state-focused":S})}),[S,c]);return r.createElement("span",{className:te,dir:Z},r.createElement("span",{id:n.id,"aria-labelledby":n.ariaLabelledBy,"aria-describedby":n.ariaDescribedBy,className:ne,ref:y,tabIndex:Object(i.getTabIndex)(d,c),title:n.title,onKeyDown:L,onFocus:U,onBlur:W},r.createElement(X,{dir:Z,open:F,onOpen:V,popupAnchor:y.current||void 0,popupSettings:Q({},o),input:$?r.createElement("span",{onClick:H,className:Object(i.classNames)("k-tool-icon",$)},r.createElement("span",{className:"k-selected-color",style:{backgroundColor:j}})):r.createElement("span",{onClick:H,className:"k-selected-color",style:{backgroundColor:j}},!j&&r.createElement("span",{className:"k-icon k-i-line"})),button:r.createElement("span",{onClick:B,className:"k-select",ref:O},r.createElement("span",{className:"k-icon k-i-arrow-s"})),content:r.createElement(r.Fragment,null,("combo"===p||"gradient"===p)&&r.createElement(z,Q({},s,{tabIndex:0,ref:b,value:j,onChange:q})),("combo"===p||"palette"===p)&&r.createElement(Y,Q({},l,{ref:k,value:j,onChange:G})))})))}));te.propTypes={value:o.string,defaultValue:o.string,disabled:o.bool,view:o.oneOf(["gradient","palette","combo"]),dir:o.string,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string},te.defaultProps={view:"palette",gradientSettings:{opacity:!0},paletteSettings:$},te.displayName="KendoColorPicker";var ne=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=r.useRef(null),o=r.useRef(null),s=r.useRef(null),l=r.useState("ColorGradient"===(e.view||"ColorGradient")),u=l[0],c=l[1],d=r.useState("rgba(255, 255, 255, 1)"),p=d[0],f=d[1],h=r.useState("rgba(255, 255, 255, 1)"),m=h[0],v=h[1],g=r.useCallback((function(){n.current&&n.current.focus()}),[n]);r.useImperativeHandle(n,(function(){return{element:o.current,focus:g,props:e}})),r.useImperativeHandle(t,(function(){return n.current}));var y=r.useCallback((function(e){("ColorGradient"===e&&!u||"ColorPalette"===e&&u)&&c(!u)}),[u]),b=r.useCallback((function(){f("rgba(255, 255, 255, 1)")}),[]),k=r.useCallback((function(e){f(e.value)}),[]),C=r.useCallback((function(){v(p)}),[p]),O=r.useCallback((function(){v("rgba(255, 255, 255, 1)")}),[]),E=r.useCallback((function(){f(m)}),[m]),S=r.useCallback((function(){o.current&&o.current.focus()}),[o]),x=r.useCallback((function(){v(p)}),[p]);return r.createElement("div",{id:e.id,style:e.style,ref:o,tabIndex:Object(i.getTabIndex)(e.tabIndex,e.disabled),className:Object(i.classNames)("k-flatcolorpicker k-coloreditor",{"k-state-disabled":e.disabled},e.className),onBlur:x},e.header||r.createElement("div",{className:"k-coloreditor-header k-hstack"},r.createElement("div",{className:"k-coloreditor-header-actions k-hstack"},r.createElement(w.ButtonGroup,null,r.createElement(w.Button,{type:"button",togglable:!0,look:"flat",selected:u,onClick:function(){return y("ColorGradient")}},r.createElement("span",{className:"k-icon k-i-color-canvas"})),r.createElement(w.Button,{type:"button",togglable:!0,look:"flat",selected:!u,onClick:function(){return y("ColorPalette")}},r.createElement("span",{className:"k-icon k-i-palette"})))),r.createElement("div",{className:"k-spacer"}),r.createElement("div",{className:"k-coloreditor-header-actions k-hstack"},e.showClearButton&&oe.showClearButton&&r.createElement(w.Button,{type:"button",look:"flat",onClick:b},r.createElement("span",{className:"k-icon k-i-reset-color"})),e.showPreview&&oe.showPreview&&r.createElement("div",{className:"k-coloreditor-preview k-vstack"},r.createElement("span",{className:"k-coloreditor-preview-color k-color-preview",style:{background:p}}),r.createElement("span",{className:"k-coloreditor-current-color k-color-preview",style:{background:m},onClick:E})))),r.createElement("div",{className:"k-coloreditor-views k-vstack"},u?r.createElement(z,{ref:s,value:p,onChange:k,onFocus:S}):r.createElement(Y,{value:p,onChange:k,onFocus:S})),e.showButtons&&oe.showButtons&&r.createElement("div",{className:"k-coloreditor-footer k-actions k-actions-end"},r.createElement(w.Button,{type:"button",className:"k-coloreditor-cancel",onClick:O},D["flatColorPicker.cancelBtn"]),r.createElement(w.Button,{type:"button",className:"k-coloreditor-apply k-primary",onClick:C},D["flatColorPicker.applyBtn"])))})),re={id:o.string,value:o.string,view:o.string,header:o.elementType,showClearButton:o.bool,showPreview:o.bool,showButtons:o.bool},oe={showClearButton:!0,showPreview:!0,showButtons:!0};ne.displayName="KendoFlatColorPicker",ne.propTypes=re,ne.defaultProps=oe;var ie,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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),se=function(){return(se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},le=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ue=function(e){function t(n){var r=e.call(this,n)||this;return r._inputId=Object(i.guid)(),r.focus=function(){r._input&&r._input.focus()},r.isInvalid=function(e){var t=!1;for(var n in e)e.hasOwnProperty(n)&&(t=t||e[n]);return t},r.setValidity=function(){r._input&&r._input.setCustomValidity&&(r.validity.valid||!r.validityStyles?r._input.classList.remove("k-state-invalid"):r._input.classList.add("k-state-invalid"),r._input.setCustomValidity(r.validity.valid?"":r.props.validationMessage||""))},r.handleChange=function(e){r.setState({value:e.target.value}),r.valueDuringOnChange=e.target.value,r.props.onChange&&r.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:e.target.value,target:r}),r.valueDuringOnChange=void 0},r.handleAutoFill=function(e){if("autoFillStart"===e.animationName){var t=e.target.parentNode;t&&t.classList.contains("k-state-empty")&&t.classList.remove("k-state-empty")}},Object(i.validatePackage)(a),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue},r}return ae(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._input},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e={badInput:!!this._input&&this._input.validity.badInput,patternMismatch:!!this._input&&this._input.validity.patternMismatch,rangeOverflow:!!this._input&&this._input.validity.rangeOverflow,rangeUnderflow:!!this._input&&this._input.validity.rangeUnderflow,stepMismatch:!!this._input&&this._input.validity.stepMismatch,tooLong:!!this._input&&this._input.validity.tooLong,typeMismatch:!!this._input&&this._input.validity.typeMismatch,valueMissing:!!this._input&&this._input.validity.valueMissing};return se({},e,{customError:void 0!==this.props.validationMessage,valid:void 0!==this.props.valid?this.props.valid:!this._input||!this.isInvalid(e)})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.setValidity()},t.prototype.render=function(){var e=this,t=this.props,n=t.className,o=t.label,a=t.id,s=(t.validationMessage,t.defaultValue,t.valid,t.visited,t.touched,t.modified,t.ariaLabelledBy),l=t.ariaDescribedBy,u=(t.validityStyles,t.style),c=le(t,["className","label","id","validationMessage","defaultValue","valid","visited","touched","modified","ariaLabelledBy","ariaDescribedBy","validityStyles","style"]),d=a||this._inputId,p=!this.validityStyles||this.validity.valid,f=Object(i.classNames)(n,"k-textbox"),h=r.createElement("input",se({"aria-labelledby":s,"aria-describedby":l},c,{style:o?void 0:u,value:this.value,id:d,className:f,onChange:this.handleChange,onAnimationStart:this.handleAutoFill,ref:function(t){e._input=t}}));return o?r.createElement(E.FloatingLabel,{label:o,editorId:d,editorValue:String(this.value),editorValid:p,editorDisabled:c.disabled,editorPlaceholder:c.placeholder,children:h,style:u,dir:c.dir}):h},t.displayName="Input",t.propTypes={label:o.string,validationMessage:o.string,required:o.bool,validate:o.bool,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string},t.defaultProps={defaultValue:"",required:!1,validityStyles:!0},t}(r.Component),ce=Object(i.createPropsContext)(),de=Object(i.withPropsContext)(ce,ue);de.displayName="KendoReactInput",function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(ie||(ie={}));var pe=function(){function e(e,t,n){void 0===n&&(n=ie.Undefined),this.value=e,this.rest=t,this.type=n}return e.prototype.map=function(t){return new e(t(this.value),this.rest)},e.prototype.chain=function(e){return e(this.value,this.rest)},e.prototype.fold=function(e,t){return e(this.value,this.rest)},e.prototype.concat=function(e){return this.map((function(t,n){return e.chain((function(e,n){return t.concat([e])}))}))},e.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},e}(),fe=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.input=e,this.control=t,this.inputCursor=0,this.controlCursor=0}return e.prototype.eof=function(){return this.inputCursor>=this.input.length},e.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},e.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},e.prototype.eat_input=function(){this.inputCursor++},e.prototype.eat_control=function(){this.controlCursor++},e.prototype.eat=function(){this.inputCursor++,this.controlCursor++},e}(),he=function(e){return(e||"").split("")},me=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof fe?this.parse(e):this.parse(new fe(he(e),he(t)))},e.prototype.map=function(t){var n=this;return new e((function(e){return n.parse(e).map(t)}))},e.prototype.chain=function(t){var n=this;return new e((function(e){return n.parse(e).chain((function(e,n){return t(e).run(n)}))}))},e.prototype.isLiteral=function(e){return this.run(e).type===ie.Literal},e}(),ve=function(e,t){return new me((function(n){var r=n.next().char,o=e[r];return"\\"===r?(r=n.next().char,new pe(t.literal(r),n)):new pe(o?t.mask(o):t.literal(r),n)}))},ge=function(e){var t=e.prompt,n=e.promptPlaceholder;return new me((function(e){var r=e.next().char;return new pe(r===t?n:r,e)}))},ye=function(e){return new me((function(t){var n=t.next().char;return new pe(e?n:"",t)}))},be=function(e){return e.reduce((function(e,t){return n=t,e.chain((function(e){return n.map((function(t){return e.concat([t])}))}));var n}),(t=[],new me((function(e){return new pe(t,e)}))));var t},ke=function(e){return new me((function(t){for(var n=new pe([],t);!t.eof();)n=n.concat(e.run(t));return n}))},Ce=function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}return e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,r=e.prompt,o=void 0===r?"":r,i=e.promptPlaceholder,a=void 0===i?" ":i,s=e.rules,l=void 0===s?{}:s,u=e.includeLiterals,c=void 0!==u&&u;this.mask=n,this.prompt=o,this.promptPlaceholder=a,this.rules=l,this.includeLiterals=c,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return be(this.validationTokens).run(e).fold((function(e){t=e.join("")})),t},e.prototype.rawValue=function(e){void 0===e&&(e="");var t=e;return this.rawTokens.length?(be(this.rawTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskRaw=function(e){void 0===e&&(e="");var t=e;return this.maskTokens.length?(be(this.maskTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},e.prototype.maskInRange=function(e,t,n,r){var o="",i=r,a=t.split("").slice(0,n),s=t.split("").slice(r);return be(this.maskTokens.slice(n,r)).run(e).fold((function(e){o=a.concat(e).concat(s).join("")})),{selection:i,value:o}},e.prototype.maskRemoved=function(e,t,n){var r=this,o="",i=n,a=e.split("").slice(n),s=e.split("").slice(0,n).join(""),l=this.maskTokens.length-(e.length-n);return be(this.maskTokens.slice(0,l)).run(s,t).fold((function(e){i=r.adjustPosition(e,i),o=e.concat(a).join("")})),{selection:i,value:o}},e.prototype.adjustPosition=function(e,t){var n=e[t];return this.maskTokens[t].isLiteral(n)||n===this.prompt?t:t+1},e.prototype.maskInserted=function(e,t,n){var r=this,o="",i=n,a=e.slice(0,n);return be(this.unmaskTokens).run(a,t).chain((function(e){i=e.join("").length;var n=t.slice(i);return be(r.maskTokens).run(e.join("")+n,t)})).fold((function(e){o=e.join("")})),{selection:i,value:o}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return t=e,new me((function(e){return e.peek().char===t?(e.eat(),new pe(t,e,ie.Literal)):new pe(t,e,ie.Literal)}));var t},mask:function(n){return function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new me((function(r){for(;!r.eof();){var o=r.peek(),i=o.char,a=o.control;if(i===a&&a===t)return r.eat(),new pe(t,r,ie.Mask);if(e.test(i))return r.eat(),new pe(i,r,ie.Mask);if(i===n)return r.eat(),new pe(t,r,ie.Mask);r.eat_input()}return r.eat(),new pe(t,r,ie.Mask)}))}}({prompt:e,promptPlaceholder:t})(n)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return t=e,new me((function(e){return e.eof()?new pe("",e):(e.peek().char===t&&e.eat(),new pe(t,e))}));var t},mask:function(t){return(n=e.prompt,function(e){return new me((function(t){for(;!t.eof();){var r=t.peek(),o=r.char,i=r.control;if(o===n&&i===n)return t.eat(),new pe(o,t);if(e.test(o))return t.eat(),new pe(o,t);t.eat_input()}return t.eat(),new pe("",t)}))})(t);var n}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder,n=this.includeLiterals;return{literal:function(e){return ye(n)},mask:function(n){return ge({prompt:e,promptPlaceholder:t})}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return ye(!1)},mask:function(t){return ge({prompt:e,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),e.prototype.tokenize=function(){var e=this;ke(ve(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),ke(ve(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),ke(ve(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),ke(ve(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e}(),Oe={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},we=function(){return!1},Ee=function(e,t){if(!!e!=!!t)return!1;if(e===t||!e||!t)return!0;var n=!0;for(var r in e)if(e[r]!==t[r]){n=!1;break}if(n)for(var r in t)if(!e.hasOwnProperty(r)){n=!1;break}return n},Se=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),De=function(){return(De=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},xe=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n._inputId="k-"+Object(i.guid)(),n._service=new Ce,n._isPasted=!1,n._selection=[null,null],n._input=null,n.focus=function(){n._input&&n._input.focus()},n.pasteHandler=function(e){var t=e.target,r=t.selectionStart,o=t.selectionEnd;o!==r&&(n._isPasted=!0,n._selection=[r||0,o||0])},n.onChangeHandler=function(e){var t=e.currentTarget,r=t.value,o=n._selection[0]||0,i=n._selection[1]||0;if(!n.props.mask)return n._isPasted=!1,n._selection=[null,null],void n.triggerOnChange(r,e);var a,s=n.value;if(n._isPasted){n._isPasted=!1;var l=s.length-i,u=r.length-l;a=n._service.maskInRange(r.slice(o,u),s,o,i)}else a=n._service.maskInput(r,s,t.selectionStart||0);n._selection=[a.selection,a.selection],n.triggerOnChange(a.value,e)},n.focusHandler=function(e){n.state.focused||(n.setState({focused:!0}),n.props.onFocus&&n.props.onFocus.call(void 0,{target:n,syntheticEvent:e,nativeEvent:e.nativeEvent}))},n.blurHandler=function(e){n.state.focused&&(n.setState({focused:!1}),n.props.onBlur&&n.props.onBlur.call(void 0,{target:n,syntheticEvent:e,nativeEvent:e.nativeEvent}))},n.setValidity=function(){n.element&&n.element.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"")},Object(i.validatePackage)(a),n}return Se(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._input},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this._valueDuringOnChange?this._valueDuringOnChange:void 0!==this.props.value?this.props.value:void 0!==this.state.value?this.state.value:void 0!==this.props.defaultValue?this.props.defaultValue:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rawValue",{get:function(){return this._service.rawValue(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=this.value,t=this._service.validationValue(e);return{customError:void 0!==this.props.validationMessage,valid:void 0!==this.props.valid?this.props.valid:!(this.required&&!t||this.props.maskValidation&&this.props.prompt&&-1!==e.indexOf(this.props.prompt)),valueMissing:!t}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){if(this.element&&this.state.focused&&t.focused){var n=this._selection,r=n[0],o=n[1],i=e.selection,a=this.props.selection;(!i&&a||i&&a&&(i.start!==a.start||i.end!==a.end))&&(r=a.start,o=a.end),null!==r&&null!==o&&this.element.setSelectionRange(r,o)}var s,l;s=e,l=this.props,s.includeLiterals===l.includeLiterals&&s.mask===l.mask&&s.prompt===l.prompt&&s.promptPlaceholder===l.promptPlaceholder&&Ee(s.rules,l.rules)||this.updateService(),this.setValidity()},t.prototype.componentDidMount=function(){this.updateService(),this.setValidity()},t.prototype.render=function(){var e=this,t=this.props.id||this._inputId,n=!this.validityStyles||this.validity.valid,o=this.props.style||{},a=r.createElement("span",{dir:this.props.dir,className:Object(i.classNames)("k-widget k-maskedtextbox",this.props.className,{"k-state-focused":this.state.focused,"k-state-disabled":this.props.disabled,"k-state-invalid":!n}),style:this.props.label?o:De({width:this.props.width},o)},r.createElement("input",{type:"text",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,className:"k-textbox",value:this.value,id:t,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,name:this.props.name,tabIndex:Object(i.getTabIndex)(this.props.tabIndex,this.props.disabled,!0),accessKey:this.props.accessKey,title:this.props.title,disabled:this.props.disabled||void 0,readOnly:this.props.readonly||void 0,placeholder:this.props.placeholder,ref:function(t){return e._input=t},onChange:this.onChangeHandler,onPaste:this.pasteHandler,onFocus:this.focusHandler,onBlur:this.blurHandler,onDragStart:we,onDrop:we}));return this.props.label?r.createElement(E.FloatingLabel,{label:this.props.label,editorId:t,editorValue:this.value,editorValid:n,editorDisabled:this.props.disabled,editorPlaceholder:this.props.placeholder,children:a,style:{width:this.props.width},dir:this.props.dir}):a},t.prototype.triggerOnChange=function(e,t){this.setState({value:e}),this.props.onChange&&(this._valueDuringOnChange=e,this.props.onChange.call(void 0,{syntheticEvent:t,nativeEvent:t.nativeEvent,selectionStart:this._selection[0],selectionEnd:this._selection[1],target:this,value:this.value}),this._valueDuringOnChange=void 0)},t.prototype.updateService=function(e){var t=Object.assign({includeLiterals:this.props.includeLiterals,mask:this.props.mask,prompt:this.props.prompt,promptPlaceholder:this.props.promptPlaceholder,rules:this.rules},e);this._service.update(t)},Object.defineProperty(t.prototype,"rules",{get:function(){return Object.assign({},Oe,this.props.rules)},enumerable:!0,configurable:!0}),t.displayName="MaskedTextBox",t.propTypes={value:o.string,defaultValue:o.string,placeholder:o.string,title:o.string,dir:o.string,id:o.string,style:o.object,className:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string,width:o.oneOfType([o.string,o.number]),tabIndex:o.number,accessKey:o.string,disabled:o.bool,readonly:o.bool,prompt:o.string,promptPlaceholder:o.string,includeLiterals:o.bool,maskValidation:o.bool,mask:o.string,rules:function(e,t,n){var r=e.rules;if(void 0!==r&&!Object.entries(r).some((function(e){return"string"!=typeof e||!(r[e]instanceof RegExp)})))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Validation failed.");return null},selection:o.shape({start:o.number.isRequired,end:o.number.isRequired}),name:o.string,label:o.string,validationMessage:o.string,required:o.bool,valid:o.bool,validityStyles:o.bool,onChange:o.func},t.defaultProps={prompt:"_",promptPlaceholder:" ",includeLiterals:!1,maskValidation:!0,rules:Oe,required:!1,validityStyles:!0},t}(r.Component),Ie=Object(i.createPropsContext)(),Te=Object(i.withPropsContext)(Ie,xe);Te.displayName="KendoReactMaskedTextBox";var _e=function(){return(_e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Pe=/\d/,Ne=function(e,t){return void 0!==e?e:t},Me=function(e,t,n){return null===e&&void 0===e?"":"string"==typeof e?e:n.formatNumber(e,t)},Re=function(e){return(String(e).split(".")[1]||"").length},je=function(e,t){return Math.max(Re(e),Re(t))},Fe=function(e,t){var n=function(e){return Math.min(e,15)}(t);return parseFloat(e.toFixed(n))},Ae=function(e,t,n,r,o,i,a){var s=je(e||0,n||0),l=Ve(Fe((e||0)+(n||0),s),r,o);t.eventValue=l,t.currentLooseValue=Me(l,i,a),t.selectionStart=t.selectionEnd=We(t.currentLooseValue,Pe)},Le=function(e,t,n,r,o,i,a){var s=je(e||0,n||0),l=Ve(Fe((e||0)-(n||0),s),r,o);t.eventValue=l,t.currentLooseValue=Me(l,i,a),t.selectionStart=t.selectionEnd=We(t.currentLooseValue,Pe)},Ve=function(e,t,n){return null==e?e:e>1||e<1||1===e?void 0!==n&&void 0!==t&&n<t?null:(void 0!==n&&e>n&&(e=n),void 0!==t&&e<t&&(e=t),e):null},Be=function(e,t,n){var r=function(e,t){var n=t.findIndex((function(t){t[0];var n=t[1];return Boolean(n)&&e.indexOf(n)===e.length-n.length}));if(-1===n)return-1;var r=t[n][1];return e.length-r.length}(e,t);if(-1!==r&&n.selectionStart>r)n.selectionStart=n.selectionEnd=r;else{n.selectionStart>e.length&&(n.selectionStart=n.selectionEnd=e.length);var o=function(e,t){var n=t.findIndex((function(t){var n=t[0];t[1];return Boolean(n)&&0===e.indexOf(n)}));return-1===n?-1:t[n][0].length}(e,t);-1!==o&&n.selectionStart<o&&(n.selectionStart=n.selectionEnd=o),-1===n.selectionStart&&(n.selectionStart=n.selectionEnd=0)}},ze=function(e,t,n,r){e.selectionStart=e.selectionEnd=t,Be(n,r,e)},He=function(e,t,n,r){e.eventValue=r.parseNumber(e.prevLooseValue,t),e.currentLooseValue=e.prevLooseValue,e.valueIsCorrected=!0,ze(e,e.selectionStart,e.currentLooseValue,n)},Ue=function(e,t){var n=e.indexOf(t.decimal);return n>-1?n:We(e,Pe)},Ke=function(e){return e.split("").reverse().join("")},We=function(e,t){return e.length-Ke(e).search(t)},qe=function(e){return e.split(e[e.search(Pe)])[0]},Ye=function(e){var t=Ke(e);return Ke(t.split(t[t.search(Pe)])[0])},Ge=function(e,t){return e.search(t)},Ze=function(e,t){var n=e.indexOf(t);return n>-1?e.length-n-1:0},Xe=function(e,t,n,r,o){var i="0"===e.replace(o,"")[0],a="0"===t.replace(o,"")[0];if(i&&!a)return n-1;if(a&&r)return n+1;for(var s=0,l=0;l<n;l++)Pe.test(e.charAt(l))&&s++;for(var u=0;s>0&&t.length>u;)Pe.test(t.charAt(u))&&s--,u++;return u},Qe=function(e,t,n){var r=_e({},e),o=r.prevLooseValue,i=n.numberSymbols(),a=function(e,t){var n=t.formatNumber(1111111.1111111,e),r=t.formatNumber(-1111111.1111111,e),o=t.formatNumber(0,e),i=t.formatNumber(1,e),a=t.numberSymbols(),s=new RegExp("[\\d\\"+a.decimal+a.group+"]","g");return[n,r,o,i].map((function(e){return e.replace(s,"")})).join("").split("").filter((function(e,t,n){return n.indexOf(e)===t})).join("")}(t,n),s=String(r.currentLooseValue),l=String(o),u=new RegExp("[^\\d\\"+i.decimal+"]","g"),c=new RegExp("[^\\d\\"+i.decimal+"\\"+i.group+"]","g"),d=new RegExp("[\\d\\"+i.decimal+"\\"+i.group+"]"),p=s.replace(u,""),f=Ge(s,Pe),h=-1===f?-1:We(s,Pe),m=s.indexOf(i.decimal),v=(s.substring(0,f)+s.substring(f,h).replace(c,"")+s.substring(h,s.length)).split("").filter((function(e){return-1!==a.indexOf(e)||-1!==e.search(d)})).join(""),g=n.formatNumber(.31111111111111117,t).replace(u,""),y=g.indexOf(i.decimal),b=y>-1?g.length-y-1:0,k=n.formatNumber(1,t).replace(u,""),C=k.indexOf(i.decimal),O=C>-1?k.length-C-1:0,w=function(e,t){var n=t.formatNumber(1111111.1111111,e),r=t.formatNumber(-1111111.1111111,e),o=t.formatNumber(0,e),i=t.formatNumber(1,e),a=qe(n),s=qe(r),l=qe(o),u=qe(i);return{positiveInfo:[a,Ye(n)],negativeInfo:[s,Ye(r)],zeroInfo:[l,Ye(o)],oneInfo:[u,Ye(i)]}}(t,n),E=[w.positiveInfo,w.negativeInfo,w.zeroInfo,w.oneInfo],S=1!==E.findIndex((function(e){return-1!==e.findIndex((function(e){return Boolean(e)}))})),D=s.length>0&&s.length<l.length,x=t&&"p"===t[0]&&s&&-1===s.indexOf(i.percentSign);if(!r.isPaste){if(""===s)return r.eventValue=null,r.currentLooseValue="",r;if(r.currentLooseValue===i.minusSign&&n.formatNumber(-0,t)!==l)return r.eventValue=-0,r.currentLooseValue=Me(r.eventValue,t,n),ze(r,Ue(r.currentLooseValue,i),r.currentLooseValue,E),r;if(function(e,t){var n=String(e.currentLooseValue),r=String(e.prevLooseValue);return n.split(t.minusSign).length!==r.split(t.minusSign).length&&n.length===r.length+t.minusSign.length}(r,i)){var I=n.parseNumber(o,t);r.eventValue=-(null!==I?I:0),r.currentLooseValue=Me(r.eventValue,t,n);var T=Ge(r.currentLooseValue,Pe),_=Ge(l,Pe);return ze(r,r.selectionEnd-1+(T-_),r.currentLooseValue,E),r}if(function(e,t){var n=String(e.currentLooseValue),r=String(e.prevLooseValue);return-1===n.indexOf(t.minusSign)&&-1!==r.indexOf(t.minusSign)}(r,i))return r.eventValue=n.parseNumber(r.currentLooseValue,t),ze(r,r.selectionStart,r.currentLooseValue,E),r;if(r.currentLooseValue===i.decimal){r.eventValue=0;var P=Me(r.eventValue,t,n);if(0===O&&b>0){var N=We(P,Pe);r.currentLooseValue=P.substring(0,N)+i.decimal+P.substring(N)}else r.currentLooseValue=P;return ze(r,Ue(r.currentLooseValue,i)+1,r.currentLooseValue,E),r}if(function(e,t){return String(e.currentLooseValue).split(t.decimal).length>2}(r,i))return He(r,t,E,n),r;if(x)return r.eventValue=n.parseNumber(s,t)/100,r.currentLooseValue=Me(r.eventValue,t,n),r;if(String(r.currentLooseValue).replace(/[^\d]/g,"").length>15)return He(r,t,E,n),r;if(p!==s&&s&&S)if(-1===E.findIndex((function(e){var t=e[0],n=e[1],r=s.indexOf(t),o=s.indexOf(n),a=0===r,l=o===s.length-n.length,u=r+t.length!==f&&-1!==f&&s[r+t.length]!==i.decimal,c=o!==h&&-1!==h&&s[o-1]!==i.decimal;return t&&n?!u&&!c&&(a&&l):t?!u&&a:!!n&&(!c&&l)})))return He(r,t,E,n),r;if(p[p.length-1]===i.decimal&&b>0)return r.eventValue=n.parseNumber(s,t),r.currentLooseValue=v,r;if(r.currentLooseValue&&o)if((a+i.decimal+i.group).split("").findIndex((function(e){return s.split("").filter((function(t){return t===e})).length<l.split("").filter((function(t){return t===e})).length&&s.length+1===l.length&&(e!==i.decimal||0!==Ze(l.replace(u,""),i.decimal))}))>-1)return r.eventValue=n.parseNumber(e.prevLooseValue,t),r.currentLooseValue=e.prevLooseValue,r;var M=Ze(p,i.decimal),R="0"===p[p.length-1];if(D&&R&&M<O)return r.eventValue=n.parseNumber(r.currentLooseValue,t),r.currentLooseValue=Me(r.eventValue,t,n),r;if(M>0){var j=s.substring(0,m);if(R&&(!j||0!==l.indexOf(j))){r.eventValue=n.parseNumber(r.currentLooseValue,t);var F=Me(r.eventValue,t,n);return ze(r,Xe(s,F,r.selectionEnd,D,u),F,E),r.currentLooseValue=F,r}if(M>b){var A=s.indexOf(i.decimal),L=s.substring(0,A)+s.substring(A,A+1+b)+s.substring(h,String(r.currentLooseValue).length);return r.eventValue=n.parseNumber(L,t),r.currentLooseValue=L,ze(r,r.selectionStart,L,E),r}if(O!==b&&M<=b&&R)return r.eventValue=n.parseNumber(r.currentLooseValue,t),r.currentLooseValue=v,r;if(M<O)return r.eventValue=n.parseNumber(r.currentLooseValue,t),r.currentLooseValue=Me(r.eventValue,t,n),r}}if(r.eventValue=n.parseNumber(r.currentLooseValue,t),x&&(r.eventValue=r.eventValue/100),"number"==typeof r.eventValue){F=Me(r.eventValue,t,n);1===s.length?ze(r,Ue(F,i),F,E):ze(r,Xe(s,F,r.selectionEnd,D,u),F,E),r.currentLooseValue=F}else r.currentLooseValue=Me(n.parseNumber(p),t,n);return r},$e=Object(i.createPropsContext)(),Je=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=Object(i.usePropsContext)($e,e),o=r.useMemo((function(){return Object(i.guid)()}),[]),s=n.id||o,l=Object(S.useInternationalization)(),u=Object(S.useLocalization)(),c=r.useRef(null),d=r.useRef(null),p=r.useRef(),f=r.useState(!1),h=f[0],m=f[1],v=r.useRef({eventValue:null,prevLooseValue:"",currentLooseValue:"",focused:!1,selectionStart:void 0,selectionEnd:void 0,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1}),g=r.useRef(!1),y=r.useRef(),b=r.useRef(n.defaultValue),k=Me(v.current.focused&&!n.disabled?v.current.currentLooseValue:Ne(n.value,b.current),n.format,l);y.current=k,r.useEffect((function(){c.current&&c.current.setCustomValidity&&c.current.setCustomValidity(I().valid?"":n.validationMessage||"Please enter a valid value!")}));var C=r.useCallback((function(){c.current&&c.current.focus()}),[]),O=r.useCallback((function(){return void 0!==p.current?p.current:Ne(n.value,b.current)}),[n.value]),w=r.useCallback((function(){return n.name}),[n.name]),x=r.useCallback((function(){return n.required}),[n.required]),I=r.useCallback((function(){var e=void 0!==n.validationMessage,t=O();return{customError:e,valid:void 0!==n.valid?n.valid:!(v.current.valueIsOutOfRange||x()&&null==t),valueMissing:null==t}}),[n.validationMessage,n.valid,O,x]),T=r.useCallback((function(){return n.validityStyles}),[n.validityStyles]),_=r.useCallback((function(){return n}),[n]),P=r.useCallback((function(){var e={element:c.current,focus:C};return Object.defineProperty(e,"name",{get:w}),Object.defineProperty(e,"value",{get:O}),Object.defineProperty(e,"validity",{get:I}),Object.defineProperty(e,"validityStyles",{get:T}),Object.defineProperty(e,"required",{get:x}),Object.defineProperty(e,"props",{get:_}),e}),[w,O,I,T,x,C,_]);r.useImperativeHandle(t,P);var N=r.useCallback((function(){return{eventValue:Ne(n.value,b.current),prevLooseValue:y.current,currentLooseValue:c.current.value,selectionStart:c.current.selectionStart,selectionEnd:c.current.selectionEnd,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1,isPaste:g.current,focused:v.current.focused}}),[n.value]),M=r.useCallback((function(e,t){if(!n.disabled){p.current=t.eventValue,b.current=t.eventValue;var r=Me(Ve(t.eventValue,n.min,n.max),n.format,l),o=Ve(l.parseNumber(r,n.format),n.min,n.max);if(o!==t.eventValue&&(t.valueIsOutOfRange=!0,t.eventValue=o,b.current=o),t.valueIsCorrected){var a=d.current;a&&-1===a.className.indexOf("k-state-invalid")&&(a.className+=" k-state-invalid",window.setTimeout((function(){return a.className=a.className.replace(" k-state-invalid","")}),50))}n.value!==t.eventValue&&Object(i.dispatchEvent)(n.onChange,e,P(),{value:t.eventValue}),p.current=void 0,v.current=t,m((function(e){return!e}))}}),[n.value,n.onChange,n.disabled,m,P]),R=r.useCallback((function(e){var t=N();g.current=!1,M(e,Qe(t,n.format,l))}),[n.format,n.onChange,l,M,N]),j=r.useCallback((function(e){var t=N(),r=l.parseNumber(String(t.currentLooseValue),n.format);if(t.selectionEnd>t.selectionStart&&t.selectionEnd-t.selectionStart===String(t.currentLooseValue).length)g.current=!0;else{switch(e.keyCode){case 38:Ae(r,t,n.step,n.min,n.max,n.format,l);break;case 40:Le(r,t,n.step,n.min,n.max,n.format,l);break;case 13:if(!1===n.rangeOnEnter)return;var o=Me(Ve(r,n.min,n.max),n.format,l),i=Ve(l.parseNumber(o,n.format),n.min,n.max);t.eventValue=i,t.currentLooseValue=Me(i,n.format,l),t.selectionStart=t.selectionEnd=t.currentLooseValue.length;break;case 110:var a=c.current,s=l.numberSymbols();a&&(t.currentLooseValue=t.currentLooseValue.slice(0,t.selectionStart)+s.decimal+t.currentLooseValue.slice(t.selectionEnd),t.selectionStart=t.selectionEnd=t.selectionStart+1,t=Qe(t,n.format,l));break;default:return}e.preventDefault(),M(e,t)}}),[n.format,n.min,n.max,n.step,n.onChange,n.rangeOnEnter,M,N]),F=r.useCallback((function(){g.current=!0}),[]),A=r.useCallback((function(e){if(!n.readOnly&&!n.disabled){var t=N();Ae(l.parseNumber(String(t.currentLooseValue),n.format),t,n.step,n.min,n.max,n.format,l),M(e,t)}}),[n.format,n.min,n.max,n.step,n.onChange,n.readOnly,n.disabled,M,N]),L=r.useCallback((function(e){if(!n.readOnly&&!n.disabled){var t=N();Le(l.parseNumber(String(t.currentLooseValue),n.format),t,n.step,n.min,n.max,n.format,l),M(e,t)}}),[n.format,n.min,n.max,n.step,n.onChange,n.readOnly,n.disabled,M,N]),V=r.useCallback((function(e){document&&document.activeElement===c.current&&c.current&&!n.readOnly&&!n.disabled&&(e.nativeEvent.deltaY<0&&A(e),e.nativeEvent.deltaY>0&&L(e))}),[A,L,n.disabled,n.readOnly]),B=r.useCallback((function(e){v.current.currentLooseValue=y.current,v.current.focused=!0,Object(i.dispatchEvent)(n.onFocus,e,P(),{}),m((function(e){return!e}))}),[n.onFocus,m,P]),z=r.useCallback((function(e){v.current={eventValue:null,prevLooseValue:"",currentLooseValue:"",focused:!1,selectionStart:void 0,selectionEnd:void 0,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1},Object(i.dispatchEvent)(n.onBlur,e,P(),{}),m((function(e){return!e}))}),[n.onBlur,m,P]),H=r.useCallback((function(e){document&&c.current&&(e.preventDefault(),document.activeElement!==c.current&&c.current.focus())}),[]);r.useLayoutEffect((function(){c.current&&void 0!==v.current.selectionStart&&void 0!==v.current.selectionEnd&&(c.current.selectionStart=v.current.selectionStart,c.current.selectionEnd=v.current.selectionEnd,v.current.selectionStart=void 0,v.current.selectionEnd=void 0)}),[h]);var U=!T()||I().valid,K=r.createElement("span",{dir:n.dir,style:n.label?void 0:{width:n.width},className:"k-widget k-numerictextbox"+(n.className?" "+n.className:""),"aria-disabled":n.disabled?"true":void 0},r.createElement("span",{className:Object(i.classNames)("k-numeric-wrap",{"k-state-disabled":n.disabled,"k-state-invalid":!U,"k-state-focused":v.current.focused}),ref:d},r.createElement("input",{value:null===k?"":k,tabIndex:Object(i.getTabIndex)(n.tabIndex,n.disabled),accessKey:n.accessKey,disabled:n.disabled,title:n.title,"aria-valuemin":n.min,"aria-valuemax":n.max,"aria-labelledby":n.ariaLabelledBy,"aria-describedby":n.ariaDescribedBy,placeholder:n.placeholder,spellCheck:!1,autoComplete:"off",autoCorrect:"off",type:n.inputType||"tel",className:"k-input k-formatted-value",id:s,name:n.name,readOnly:n.readOnly,onChange:R,onFocus:B,onBlur:z,onKeyDown:j,onPaste:F,onWheel:V,ref:c}),n.children,n.spinners&&r.createElement("span",{className:"k-select",onMouseDown:H},r.createElement("span",{className:"k-link k-link-increase","aria-label":u.toLanguageString("numerictextbox.increment",D["numerictextbox.increment"]),title:u.toLanguageString("numerictextbox.increment",D["numerictextbox.increment"]),onClick:A},r.createElement("span",{className:"k-icon k-i-arrow-n"})),r.createElement("span",{className:"k-link k-link-decrease","aria-label":u.toLanguageString("numerictextbox.decrement",D["numerictextbox.decrement"]),title:u.toLanguageString("numerictextbox.decrement",D["numerictextbox.decrement"]),onClick:L},r.createElement("span",{className:"k-icon k-i-arrow-s"})))));return n.label?r.createElement(E.FloatingLabel,{label:n.label,editorId:s,editorValue:null===k?"":k,editorValid:U,editorDisabled:n.disabled,editorPlaceholder:n.placeholder,children:K,style:{width:n.width},dir:n.dir}):K}));Je.propTypes={value:o.number,defaultValue:o.number,step:o.number,format:o.oneOfType([o.string,o.shape({style:o.oneOf(["decimal","currency","percent","scientific","accounting"]),currency:o.string,currencyDisplay:o.oneOf(["symbol","code","name"]),useGrouping:o.bool,minimumIntegerDigits:o.number,minimumFractionDigits:o.number,maximumFractionDigits:o.number})]),width:o.oneOfType([o.string,o.number]),tabIndex:o.number,accessKey:o.string,title:o.string,placeholder:o.string,min:o.number,max:o.number,spinners:o.bool,disabled:o.bool,readOnly:o.bool,dir:o.string,name:o.string,label:o.string,validationMessage:o.string,required:o.bool,id:o.string,rangeOnEnter:o.bool,ariaLabelledBy:o.string,ariaDescribedBy:o.string,onChange:o.func,onFocus:o.func,onBlur:o.func},Je.displayName="KendoNumericTextBox",Je.defaultProps={step:1,spinners:!0,disabled:!1,required:!1,validityStyles:!0,rangeOnEnter:!0,onChange:function(e){},onFocus:function(e){},onBlur:function(e){}};var et=function(){return(et=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},tt="data-slider-label",nt=function(e){var t,n,o=r.useRef(null),a=Object(i.useDir)(o),s=e.vertical?{bottom:e.position+"%",height:"1px",width:"100%"}:((t={})["rtl"===a?"right":"left"]=e.position+"%",t.width="1px",t);return r.createElement("li",{ref:o,role:"presentation",className:"k-tick k-tick-large",title:e.title,style:et({zIndex:1,position:"absolute"},s)},r.createElement("span",et({},((n={})[tt]=!0,n),{className:"k-label",onClick:e.onClick}),e.children))},rt=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ot=function(){return(ot=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},it=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:void 0===n.props.defaultValue?n.props.min:n.props.defaultValue,focused:!1,dir:n.props.dir},n.buttons=function(e){return e.enabled?r.createElement(r.Fragment,null,r.createElement("a",{className:"k-button k-button-decrease",style:{position:"relative"},title:e.decrementTitle,onClick:e.decrement},r.createElement("span",{className:Object(i.classNames)("k-icon",{"k-i-arrow-s":n.props.vertical,"k-i-arrow-w":!n.props.vertical})})),e.children,r.createElement("a",{className:"k-button k-button-increase",style:{position:"relative"},title:e.incrementTitle,onClick:e.increment},r.createElement("span",{className:Object(i.classNames)("k-icon",{"k-i-arrow-n":n.props.vertical,"k-i-arrow-e":!n.props.vertical})}))):e.children},n.focus=function(){n._element&&n._element.focus()},n.isLabel=function(e){for(var t=e;t;){if(Boolean(t.getAttribute(tt)))return!0;t=t.parentElement}return!1},n.onFocus=function(){n.setState({focused:!0})},n.onBlur=function(){n.setState({focused:!1})},n.onKeyDown=function(e){var t=void 0;e.keyCode===i.Keys.left||e.keyCode===i.Keys.down?t=n.state.value-(n.props.step||0):e.keyCode===i.Keys.right||e.keyCode===i.Keys.up?t=n.state.value+(n.props.step||0):e.keyCode===i.Keys.home?t=n.props.min:e.keyCode===i.Keys.end&&(t=n.props.max),void 0!==t&&(e.preventDefault(),n.change(e,t))},n.decrement=function(e){e.preventDefault(),n.change(e,n.state.value-(n.props.step||0))},n.increment=function(e){e.preventDefault(),n.change(e,n.state.value+(n.props.step||0))},n.dragStart=function(e){n.isLabel(e.event.originalEvent.target)||(e.event.isTouch&&e.event.originalEvent.preventDefault(),n.drag(e))},n.dragOver=function(e){e.event.originalEvent.preventDefault(),n.drag(e)},n.drag=function(e){var t=e.element.getBoundingClientRect(),r=(n.props.vertical?t.bottom-e.event.clientY:"rtl"===n.state.dir?t.right-e.event.clientX:e.event.clientX-t.left)/(n.props.vertical?t.height:t.width);n.change(e,n.props.min+r*(n.props.max-n.props.min))},Object(i.validatePackage)(a),n}return rt(t,e),t.getDerivedStateFromProps=function(e,t){var n=void 0!==e.value?e.value:t.value,r=e.min,o=e.max;return void 0===n?null:{value:Math.min(Math.max(n,r),o)}},t.prototype.componentDidMount=function(){if(!this.state.dir&&window&&this._element){var e=window.getComputedStyle(this._element).direction;e&&this.setState({dir:e})}},t.prototype.render=function(){var e,t,n=this,o=Object(S.provideLocalizationService)(this),a=(this.state.value-this.props.min)/(this.props.max-this.props.min)*100,s=this.props.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"},l=this.props.vertical?{paddingTop:0,height:"100%"}:{};return r.createElement("div",{ref:function(e){return n._element=e},"aria-valuemin":this.props.min,"aria-valuemax":this.props.max,"aria-valuenow":this.state.value,"aria-disabled":this.props.disabled?"true":void 0,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,dir:this.state.dir,role:"slider",id:this.props.id,style:this.props.style,tabIndex:Object(i.getTabIndex)(this.props.tabIndex,this.props.disabled,void 0),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,className:Object(i.classNames)("k-slider k-widget",{"k-state-focused":this.state.focused,"k-state-disabled":this.props.disabled,"k-slider-horizontal":!this.props.vertical,"k-slider-vertical":this.props.vertical},this.props.className)},r.createElement("div",{className:Object(i.classNames)("k-slider-wrap",{"k-slider-buttons":this.props.buttons}),style:{display:"flex",position:"relative",flexDirection:this.props.vertical?"column-reverse":"row"}},r.createElement(this.buttons,{enabled:this.props.buttons,decrement:this.decrement,increment:this.increment,incrementTitle:o.toLanguageString("slider.increment",D["slider.increment"]),decrementTitle:o.toLanguageString("slider.decrement",D["slider.decrement"])},r.createElement(i.Draggable,{onDrag:this.dragOver,onPress:this.dragStart},r.createElement("div",{className:"k-slider-track-wrap",style:ot({flexGrow:1,position:"relative",touchAction:"none"},s)},this.props.children&&r.createElement("ul",{className:"k-reset k-slider-items",style:ot({margin:0},l)},r.Children.map(this.props.children,(function(e){return e&&r.cloneElement(e,{position:100*(e.props.position-n.props.min)/(n.props.max-n.props.min),vertical:n.props.vertical},e.props.children)}))),r.createElement("div",{className:"k-slider-track",style:this.props.vertical?{bottom:0,height:"100%"}:(e={},e["rtl"===this.state.dir?"right":"left"]=0,e.width="100%",e),ref:function(e){return n._sliderTrack=e}},r.createElement("div",{className:"k-slider-selection",style:this.props.vertical?{height:a+"%"}:{width:a+"%"}}),r.createElement("a",{className:"k-draghandle",title:o.toLanguageString("slider.dragTitle",D["slider.dragTitle"]),style:this.props.vertical?{bottom:"calc("+a+"% - 8px)",zIndex:1}:(t={},t["rtl"===this.state.dir?"right":"left"]="calc("+a+"% - 8px)",t.zIndex=1,t)})))))))},Object.defineProperty(t.prototype,"sliderTrack",{get:function(){return this._sliderTrack},enumerable:!0,configurable:!0}),t.prototype.change=function(e,t){t=Math.min(Math.max(t,this.props.min),this.props.max),this.setState({value:t}),Object(i.dispatchEvent)(this.props.onChange,e,this,{value:t})},t.displayName="Slider",t.propTypes={min:o.number.isRequired,max:o.number.isRequired,value:o.number,vertical:o.bool,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string},t}(r.Component),at=Object(i.createPropsContext)(),st=Object(i.withPropsContext)(at,it);st.displayName="KendoReactSlider",Object(S.registerForLocalization)(it);var lt,ut=function(){return(ut=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};!function(e){e.start="start",e.end="end",e.min="min",e.max="max",e.increase="increase",e.decrease="decrease"}(lt||(lt={}));var ct=function(){return(ct=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},dt=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1],s=r.useCallback((function(e){var r=function(e,t){var n,r;switch(t.type){case lt.start:if(void 0===t.payload)return e;n={start:t.payload>e.end?e.end:Math.max(t.payload,t.min),end:e.end};break;case lt.end:if(void 0===t.payload)return e;n={start:e.start,end:t.payload<e.start?e.start:Math.min(t.payload,t.max)};break;case lt.min:n="start"===t.key?ut({},e,{start:t.min}):ut({},e,{end:Math.max(t.min,e.start)});break;case lt.max:n="start"===t.key?ut({},e,{start:Math.min(t.max,e.end)}):ut({},e,{end:t.max});break;case lt.increase:if(void 0===t.step||void 0===t.key)return e;r=e[t.key]+t.step,n="start"===t.key?r<t.min?ut({},e,{start:t.min}):ut({},e,{start:Math.min(r,e.end)}):r>t.max?ut({},e,{end:t.max}):ut({},e,{end:Math.max(r,e.start)});break;case lt.decrease:if(void 0===t.step||void 0===t.key)return e;r=e[t.key]-t.step,n="start"===t.key?r<t.min?ut({},e,{start:t.min}):ut({},e,{start:Math.min(r,e.end)}):r>t.max?ut({},e,{end:t.max}):ut({},e,{end:Math.max(r,e.start)});break;default:n=e}return n}(t.state||i,ct({},e,t));n&&n(r,e.event),a(r)}),[t,n]);return[i,s]},pt=Object(i.createPropsContext)(),ft=r.forwardRef((function(e,t){var n,o,s,l;Object(i.validatePackage)(a);var u=Object(i.usePropsContext)(pt,e),c=r.useRef(null),d=r.useRef(null),p=r.useRef(null),f=r.useRef(null),h=r.useRef(null),m=r.useCallback((function(){f.current&&f.current.focus()}),[f]);r.useImperativeHandle(c,(function(){return{element:d.current,focus:m,props:u}})),r.useImperativeHandle(t,(function(){return c.current}));var v=r.useMemo((function(){return u.min}),[u.min]),g=r.useMemo((function(){return u.max}),[u.max]),y=r.useMemo((function(){return void 0!==u.step?u.step:mt.step}),[u.step,mt.step]),b=Object(i.useDir)(d,u.dir),k=r.useState(""),C=k[0],O=k[1],w=dt(u.defaultValue||mt.defaultValue,{min:v,max:g,step:y,state:u.value},(function(e,t){u.onChange&&c.current&&u.onChange.call(void 0,{value:e,target:c.current,syntheticEvent:t})})),E=w[0],x=w[1],I=r.useMemo((function(){return u.value||E}),[u.value,E]),T=r.useRef(null),_=r.useRef(null),P=r.useMemo((function(){return(I.start-v)/(g-v)*100}),[I.start,v,g]),N=r.useMemo((function(){return(I.end-v)/(g-v)*100}),[I.end,v,g]),M=r.useMemo((function(){return u.vertical?{paddingTop:0,height:"100%"}:{}}),[u.vertical]),R=r.useMemo((function(){return u.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"}}),[u.vertical]),j=Object(S.useLocalization)(),F=r.useCallback((function(e){if(_.current){e.originalEvent.preventDefault();var t=_.current.getBoundingClientRect(),n=u.vertical?t.bottom-e.clientY:"rtl"===b?t.right-e.clientX:e.clientX-t.left,r=u.vertical?t.height:t.width;return v+n/r*(g-v)}}),[_,u.vertical,b,v,g,E.start,E.end,u.value&&u.value.start,u.value&&u.value.end]),A=r.useCallback((function(e){return e<=I.start?"start":e>=I.end?"end":2*e<I.end+I.start?"start":"end"}),[E.start,E.end,u.value&&u.value.start,u.value&&u.value.end]),L=r.useCallback((function(e){switch(e.keyCode){case i.Keys.right:e.preventDefault(),x({type:"rtl"===b?lt.decrease:lt.increase,key:"start",event:e});break;case i.Keys.up:e.preventDefault(),x({type:lt.increase,key:"start",event:e});break;case i.Keys.left:e.preventDefault(),x({type:"rtl"===b?lt.increase:lt.decrease,key:"start",event:e});break;case i.Keys.down:e.preventDefault(),x({type:lt.decrease,key:"start",event:e});break;case i.Keys.home:e.preventDefault(),x({type:lt.min,key:"start",event:e});break;case i.Keys.end:e.preventDefault(),x({type:lt.max,key:"start",event:e})}}),[x]),V=r.useCallback((function(e){switch(e.keyCode){case i.Keys.right:e.preventDefault(),x({type:"rtl"===b?lt.decrease:lt.increase,key:"end",event:e});break;case i.Keys.up:e.preventDefault(),x({type:lt.increase,key:"end",event:e});break;case i.Keys.left:e.preventDefault(),x({type:"rtl"===b?lt.increase:lt.decrease,key:"end",event:e});break;case i.Keys.down:e.preventDefault(),x({type:lt.decrease,key:"end",event:e});break;case i.Keys.home:e.preventDefault(),x({type:lt.min,key:"end",event:e});break;case i.Keys.end:e.preventDefault(),x({type:lt.max,key:"end",event:e})}}),[x,b]),B=r.useCallback((function(e){var t=F(e),n=A(t);O(n),"end"===n?h.current.focus():f.current.focus();var r="end"===n?lt.end:lt.start;x({type:r,payload:t,event:e})}),[u.vertical,v,g,x]);return Object(i.useDraggable)(_,{onPress:B,onDrag:function(e){var t=F(e),n="end"===C?lt.end:lt.start;x({type:n,payload:t,event:e})},onRelease:function(e){var t=F(e),n="end"===C?lt.end:lt.start;x({type:n,payload:t,event:e}),O("")}}),r.createElement("div",{role:"slider",id:u.id,style:u.style,ref:d,dir:b,className:Object(i.classNames)("k-widget k-slider",{"k-rtl":"rtl"===b,"k-state-disabled":u.disabled,"k-slider-vertical":u.vertical,"k-slider-horizontal":!u.vertical},u.className),"aria-labelledby":u.ariaLabelledBy,"aria-describedby":u.ariaDescribedBy},r.createElement("div",{className:"k-slider-wrap",style:{display:"flex",position:"relative",flexDirection:u.vertical?"column-reverse":"row"}},r.createElement("div",{ref:_,className:"k-slider-track-wrap",style:ct({flexGrow:1,position:"relative",touchAction:"none"},R)},u.children&&r.createElement("ul",{className:"k-reset k-slider-items",style:ct({margin:0},M)},r.Children.map(u.children,(function(e){return e&&r.cloneElement(e,{position:100*(e.props.position-u.min)/(u.max-u.min),vertical:u.vertical},e.props.children)}))),r.createElement("div",{ref:T,className:"k-slider-track",style:u.vertical?{bottom:0,height:"100%"}:(n={},n["rtl"===b?"right":"left"]=0,n.width="100%",n)},null!==P&&null!==N&&r.createElement("div",{"data-selection":!0,ref:p,title:I.start+" - "+I.end,className:"k-slider-selection",style:u.vertical?{height:N-P+"%",bottom:P+"%"}:(o={},o["rtl"===b?"right":"left"]=P+"%",o.width=N-P+"%",o)}),r.createElement("a",{ref:f,role:"slider",tabIndex:Object(i.getTabIndex)(u.startTabIndex,u.disabled,void 0),"aria-valuemin":v,"aria-valuemax":Math.max(g,I.end),"aria-valuenow":I.start,"aria-disabled":u.disabled?"true":void 0,className:"k-draghandle",title:j.toLanguageString("slider.dragTitle",D["slider.dragTitle"]),style:u.vertical?{bottom:"calc("+P+"% - 8px)",zIndex:1}:(s={},s["rtl"===b?"right":"left"]="calc("+P+"% - 8px)",s.zIndex=1,s),onKeyDown:L}),r.createElement("a",{ref:h,role:"slider",tabIndex:Object(i.getTabIndex)(u.endTabIndex,u.disabled,void 0),"aria-valuemin":Math.min(v,I.start),"aria-valuemax":g,"aria-valuenow":I.end,"aria-disabled":u.disabled?"true":void 0,className:"k-draghandle",title:j.toLanguageString("slider.dragTitle",D["slider.dragTitle"]),style:u.vertical?{bottom:"calc("+N+"% - 8px)",zIndex:1}:(l={},l["rtl"===b?"right":"left"]="calc("+N+"% - 8px)",l.zIndex=1,l),onKeyDown:V})))))})),ht={value:function(e,t,n){if(e.value){var r=e.value.start,o=e.value.end,i=e.min,a=e.max;if(r>o||r>a||r<i||o>a||o<i||o<r)return new Error("Invalid prop + "+t+" supplied to "+n+".\n The { start, end } value must be between the min & max value and { start, end } must be start < end.\n ")}return null},defaultValue:function(e,t,n){if(e.defaultValue){var r=e.defaultValue.start,o=e.defaultValue.end,i=e.min,a=e.max;if(r>o||r>a||r<i||o>a||o<i||o<r)return new Error("Invalid prop + "+t+" supplied to "+n+".\n The { start, end } value must be between the min & max value and { start, end } must be start < end.\n ")}return null},onChange:o.func,step:o.number,min:function(e,t,n){var r=e[t],o=e.min,i=e.max;return void 0===o?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be undefined.\n "):r&&o>=i?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be equal to or bigger than the max value.\n "):null},max:function(e,t,n){var r=e[t],o=e.min,i=e.max;return void 0===i?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be undefined.\n "):r&&i<=o?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be equal to or smaller than the min value.\n "):null},vertical:o.bool,disabled:o.bool,dir:o.oneOf(["ltr","rtl"])},mt={step:1,defaultValue:{start:0,end:0},vertical:!1,disabled:!1};ft.displayName="KendoReactRangeSlider",ft.propTypes=ht,ft.defaultProps=mt;var vt=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gt=function(){return(gt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},yt=function(e){function t(n){var o=e.call(this,n)||this;return o.setValidity=function(){o._input&&o._input.setCustomValidity&&o._input.setCustomValidity(o.validity.valid?"":o.props.validationMessage||o.defaultValidationMessage.toLanguageString("switch.validation",D["switch.validation"]))},o.limit=function(e,t,n){var r=n.offsetWidth,o=t.offsetWidth;return e<0?0:e>r-o?r-o:e},o.toggle=function(e,t){o.setState({checked:e}),o.valueDuringOnChange=e,Object(i.dispatchEvent)(o.props.onChange,t,o,{value:e}),o.valueDuringOnChange=void 0},o._id=Object(i.guid)(),o.defaultValidationMessage=Object(S.provideLocalizationService)(o),o.focus=function(){o._element&&o._element.focus()},o.dummyInput=function(e){return r.createElement("input",{type:"checkbox",checked:o.props.checked,ref:function(e){o._input=e},tabIndex:-1,"aria-hidden":!0,value:e,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"},onChange:i.noop})},o.handleClick=function(e){o.eventTimeStamp!==e.timeStamp&&(o.eventTimeStamp=e.timeStamp,o.toggle(!o.value,e))},o.handleKeyDown=function(e){if(!o.props.disabled){var t=e.keyCode;t!==i.Keys.space&&t!==i.Keys.enter||o.toggle(!o.value,e)}},o.handleWrapperFocus=function(e){if(!o.props.disabled){o.setState({focused:!0});var t=o.props.onFocus;t&&t.call(void 0,e)}},o.handleWrapperBlur=function(e){if(!o.props.disabled){o.setState({focused:!1});var t=o.props.onBlur;t&&t.call(void 0,e)}},Object(i.validatePackage)(a),o.state={checked:n.defaultChecked||t.defaultProps.defaultChecked,focused:!1},o}return vt(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.checked?this.props.checked:this.state.checked},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actionElement",{get:function(){return this._wrapper},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=void 0!==this.props.valid?this.props.valid:!this.props.required||!!this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.setValidity(),this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.setValidity()},t.prototype.render=function(){var e=this,t=this.state.focused,n=this.props,o=n.dir,a=n.disabled,s=n.id,l=n.offLabel,u=n.onLabel,c=n.tabIndex;this.dir=o||this._wrapper&&getComputedStyle(this._wrapper).direction||void 0;var d=!this.validityStyles||this.validity.valid,p=Object(i.classNames)({"k-widget":!0,"k-switch":!0,"k-switch-on":this.value,"k-switch-off":!this.value,"k-state-focused":t,"k-state-disabled":a,"k-state-invalid":!d},this.props.className),f={"aria-checked":this.value,"aria-disabled":a||void 0};return r.createElement("span",{ref:function(t){e._wrapper=t},className:p,dir:this.dir,onKeyDown:this.handleKeyDown,onClick:this.handleClick,onBlur:this.handleWrapperBlur,onFocus:this.handleWrapperFocus},r.createElement("span",gt({className:"k-switch-container",id:s||this._id,role:"switch"},f,{"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,ref:function(t){e._element=t},tabIndex:Object(i.getTabIndex)(c,a,void 0),accessKey:this.props.accessKey}),this.dummyInput(this.value),r.createElement("span",{className:"k-switch-label-on"},u),r.createElement("span",{className:"k-switch-label-off"},l),r.createElement("span",{className:"k-switch-handle"})))},t.displayName="Switch",t.propTypes={accessKey:o.string,checked:o.bool,className:o.string,disabled:o.bool,defaultChecked:o.bool,dir:o.string,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string,offLabel:o.string,required:o.bool,tabIndex:o.number,valid:o.bool,validate:o.bool,validationMessage:o.string,onBlur:o.any,onChange:o.any,onFocus:o.any,onLabel:o.string},t.defaultProps={disabled:!1,defaultChecked:!1,offLabel:"OFF",onBlur:i.noop,onFocus:i.noop,onLabel:"ON",required:!1,validityStyles:!0},t}(r.Component),bt=Object(i.createPropsContext)(),kt=Object(i.withPropsContext)(bt,yt);kt.displayName="KendoReactSwitch";var Ct=function(){return(Ct=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},wt=Object(i.createPropsContext)(),Et=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=Object(i.usePropsContext)(wt,e),o=n,s=o.ariaDescribedBy,l=o.ariaLabelledBy,u=o.checked,c=o.className,d=o.children,p=o.defaultChecked,f=o.disabled,h=o.defaultValue,m=o.id,v=o.label,g=o.labelPlacement,y=o.name,b=o.labelOptional,k=o.onChange,C=o.onFocus,O=o.onBlur,w=o.tabIndex,E=o.value,x=o.required,I=o.valid,T=o.validationMessage,_=o.validityStyles,P=(o.visited,o.touched,o.modified,Ot(o,["ariaDescribedBy","ariaLabelledBy","checked","className","children","defaultChecked","disabled","defaultValue","id","label","labelPlacement","name","labelOptional","onChange","onFocus","onBlur","tabIndex","value","required","valid","validationMessage","validityStyles","visited","touched","modified"])),N=r.useRef(null),M=r.useCallback((function(){N.current&&N.current.focus()}),[]),R=r.useCallback((function(){return{element:N.current,focus:M,get name(){return N.current&&N.current.name}}}),[M]);r.useImperativeHandle(t,R);var j=r.useState(p),F=j[0],A=j[1],L=r.useState(h),V=L[0],B=L[1],z="boolean"==typeof E||null===E,H=void 0!==u,U=z,K=U?E:V,W=H?u:U?void 0:F,q=void 0===W&&K,Y=q?K:W,G=q||U?null===E?E:void 0:E||K,Z=null===Y||null===G,X=r.useMemo((function(){return Object(i.guid)()}),[]),Q=Object(S.useLocalization)(),$=function(e){return Q.toLanguageString(e,D[e])},J=$("checkbox.validation"),ee=$("checkbox.optionalText"),te=void 0!==I?I:!x||!!W;r.useEffect((function(){N.current&&N.current.setCustomValidity&&N.current.setCustomValidity(te?"":T||J)}),[te,T,J]);var ne=r.useCallback((function(e,t){U||f||(B(t),H||f||A(t)),k&&!f&&Object(i.dispatchEvent)(k,e,Ct({},R(),{value:t}),{value:t})}),[H,f,k,U,R]),re=r.useCallback((function(e){var t=e.target.checked;ne(e,t)}),[ne,E]),oe=r.useCallback((function(e){if(!f){var t=e.keyCode,n=e.currentTarget.checked;t===i.Keys.space&&(e.preventDefault(),e.stopPropagation(),ne(e,!n))}}),[f,ne]),ie=r.useCallback((function(e){f||e.keyCode===i.Keys.space&&e.preventDefault()}),[f]),ae=r.useCallback((function(e){C&&!f&&Object(i.dispatchEvent)(C,e,R(),void 0)}),[C,f,R]),se=r.useCallback((function(e){O&&!f&&Object(i.dispatchEvent)(O,e,R(),void 0)}),[O,f,R]),le=Object(i.useDir)(N,n.dir),ue=Object(i.classNames)({"k-state-disabled":f},c),ce=Ct({type:"checkbox",className:Object(i.classNames)({"k-checkbox":!0,"k-state-indeterminate":Z,"k-state-invalid k-invalid":!(te||void 0!==_||!0===_)}),ref:N,name:y,id:m||X,"aria-labelledby":l,"aria-describedby":s,checked:Boolean(Y),disabled:f,tabIndex:Object(i.getTabIndex)(w,f),role:"checkbox",required:void 0!==x&&x,"aria-checked":!(!W&&!Y)||!!Z&&"mixed","aria-disabled":f||void 0},P,{onChange:re,onKeyDown:oe,onKeyUp:ie,onFocus:ae,onBlur:se}),de=r.createElement(r.Fragment,null,void 0===G?r.createElement("input",Ct({},ce)):r.createElement("input",Ct({},ce,{value:z?void 0:null===G?"":G}))),pe=r.createElement(r.Fragment,null,void 0!==v?r.createElement("label",{className:"k-checkbox-label",htmlFor:m||X,style:{userSelect:"none"}},v,b&&r.createElement("span",{className:"k-label-optional"},ee)):null);return r.createElement(r.Fragment,null,"before"===g?r.createElement("span",{className:ue,dir:"rtl"},de,pe,d):r.createElement("span",{className:ue,dir:le},de,pe,d))}));Et.propTypes={checked:o.bool,className:o.string,defaultChecked:o.bool,defaultValue:o.any,dir:o.string,disabled:o.bool,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string,label:o.any,labelPlacement:o.string,labelOptional:o.bool,name:o.string,tabIndex:o.number,value:o.any,validationMessage:o.string,required:o.bool,validate:o.bool,valid:o.bool,onChange:o.func,onFocus:o.func,onBlur:o.func},Et.displayName="KendoCheckbox";var St=function(){return(St=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Dt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},xt=Object(i.createPropsContext)(),It=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=Object(i.usePropsContext)(xt,e),o=n.ariaDescribedBy,s=n.checked,l=n.children,u=n.className,c=n.disabled,d=n.id,p=n.label,f=n.labelPlacement,h=n.name,m=n.style,v=n.tabIndex,g=n.value,y=n.valid,b=n.onChange,k=n.onFocus,C=n.onBlur,O=Dt(n,["ariaDescribedBy","checked","children","className","disabled","id","label","labelPlacement","name","style","tabIndex","value","valid","onChange","onFocus","onBlur"]),w=r.useRef(null),E=r.useCallback((function(){w.current&&w.current.focus()}),[]),S=r.useCallback((function(){return{element:w.current,focus:E}}),[E]);r.useImperativeHandle(t,S);var D=r.useMemo((function(){return Object(i.guid)()}),[]),x=r.useCallback((function(e){Object(i.dispatchEvent)(b,e,S(),{value:g})}),[b,g,c]),I=r.useCallback((function(e){k&&!c&&Object(i.dispatchEvent)(k,e,S(),void 0)}),[k,c]),T=r.useCallback((function(e){C&&!c&&Object(i.dispatchEvent)(C,e,S(),void 0)}),[C,c]),_=St({type:"radio",id:d||D,name:h,className:Object(i.classNames)({"k-radio":!0,"k-state-invalid":!1===y,"k-invalid":!1===y},u),ref:w,disabled:c,tabIndex:Object(i.getTabIndex)(v,c),checked:s,style:m,"aria-describedby":o,value:g,onChange:x,onFocus:I,onBlur:T},O),P=r.createElement(r.Fragment,null,void 0!==p?r.createElement("label",{className:"k-radio-label",htmlFor:d||D,style:{userSelect:"none"},"aria-label":p},p):null),N=r.createElement("input",St({},_));return"before"===f?r.createElement(r.Fragment,null,P,N,l):r.createElement(r.Fragment,null,N,P,l)}));It.propTypes={ariaDescribedBy:o.string,checked:o.bool,className:o.string,disabled:o.bool,id:o.string,label:o.string,labelPlacement:o.string,name:o.string,style:o.object,tabIndex:o.number,value:o.any,valid:o.bool,onChange:o.func,onFocus:o.func,onBlur:o.func},It.displayName="KendoRadioButton";var Tt=function(){return(Tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},_t=Object(i.createPropsContext)(),Pt=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=Object(i.usePropsContext)(_t,e),o=n.ariaLabelledBy,s=n.ariaDescribedBy,l=n.className,u=n.data,c=n.defaultValue,d=n.disabled,p=n.name,f=n.labelPlacement,h=n.layout,m=n.style,v=n.value,g=n.valid,y=n.item,b=void 0===y?Nt.item:y,k=n.onChange,C=n.onFocus,O=r.useRef(null),w=r.useCallback((function(){O.current&&Object(i.focusFirstFocusableChild)(O.current)}),[]),E=r.useCallback((function(){return{element:O.current,focus:w}}),[w]);r.useImperativeHandle(t,E);var S=r.useState(c),D=S[0],x=S[1],I=void 0!==v,T=I?v:D,_=r.useCallback((function(e){var t=e.value;I||d||x(t),k&&!d&&Object(i.dispatchEvent)(k,e.syntheticEvent,E(),{value:t})}),[x,k,d]),P=r.useCallback((function(e){C&&!d&&Object(i.dispatchEvent)(C,e.syntheticEvent,E(),void 0)}),[C,d]),N=r.useMemo((function(){return Object(i.guid)()}),[]),M=Object(i.classNames)("k-radio-list",{"k-list-horizontal":"horizontal"===h,"k-list-vertical":"vertical"===h||void 0===h},l),R=Object(i.useRtl)(O,n.dir),j=u&&u.map((function(e,t){var n=T===e.value,o=null==T,a=Tt({},e,{valid:g,checked:n,disabled:!(!e.disabled&&!d),labelPlacement:e.labelPlacement?e.labelPlacement:f,tabIndex:e.tabIndex?e.tabIndex:o&&0===t||n?0:-1,index:t,name:p||N,onChange:_,onFocus:P});return r.createElement(b,{className:Object(i.classNames)("k-radio-item",{"k-state-disabled":a.disabled||d}),key:t,role:"radio"},r.createElement(It,Tt({},a)))}));return r.createElement("ul",{role:"radiogroup",className:M,ref:O,dir:R,style:m,"aria-labelledby":o,"aria-describedby":s},j)})),Nt={item:function(e){return r.createElement("li",Tt({},e))}};Pt.propTypes={ariaLabelledBy:o.string,ariaDescribedBy:o.string,className:o.string,data:o.arrayOf(o.object),defaultValue:o.any,dir:o.string,disabled:o.bool,labelPlacement:o.string,layout:o.string,name:o.string,style:o.object,value:o.any,onChange:o.func,onFocus:o.func},Pt.defaultProps=Nt,Pt.displayName="KendoRadioGroup";var Mt=function(){return(Mt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Rt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},jt=Object(i.createPropsContext)(),Ft=r.forwardRef((function(e,t){var n=Object(i.usePropsContext)(jt,e),o=n,a=o.ariaDescribedBy,s=o.ariaLabelledBy,l=o.autoSize,u=o.className,c=o.defaultValue,d=o.disabled,p=o.readOnly,f=o.required,h=o.rows,m=o.id,v=o.name,g=o.placeholder,y=o.style,b=o.tabIndex,k=o.value,C=o.valid,O=o.validationMessage,w=o.validityStyles,E=o.onChange,S=o.onFocus,D=o.onBlur,x=(o.visited,o.touched,o.modified,Rt(o,["ariaDescribedBy","ariaLabelledBy","autoSize","className","defaultValue","disabled","readOnly","required","rows","id","name","placeholder","style","tabIndex","value","valid","validationMessage","validityStyles","onChange","onFocus","onBlur","visited","touched","modified"])),I=r.useRef(null),T=r.useCallback((function(){I.current&&I.current.focus()}),[]),_=r.useCallback((function(){return{element:I,focus:T,get name(){return I.current&&I.current.name}}}),[T]);r.useImperativeHandle(t,_);var P=r.useState(c),N=P[0],M=P[1],R=r.useState("auto"),j=R[0],F=R[1],A=r.useMemo((function(){return Object(i.guid)()}),[]),L=Object(i.useDir)(I,n.dir),V=void 0!==k,B=V?k:N,z=void 0!==C?C:!f||!!B;r.useEffect((function(){I.current&&I.current.setCustomValidity&&I.current.setCustomValidity(z?"":O||"")}),[z,O]),r.useLayoutEffect((function(){I.current&&F(I.current.scrollHeight+"px")}),[B]);var H=r.useCallback((function(e){var t=e.target.value;V||d||(F("auto"),M(t)),E&&!d&&Object(i.dispatchEvent)(E,e,_(),{value:t})}),[M,E,d,V]),U=r.useCallback((function(e){S&&!d&&Object(i.dispatchEvent)(S,e,_(),void 0)}),[S,d]),K=r.useCallback((function(e){D&&!d&&Object(i.dispatchEvent)(D,e,_(),void 0)}),[D,d]),W={className:Object(i.classNames)("k-textarea",{"k-state-invalid":!(z||void 0!==w||!0===w),"k-state-disabled":d},u),style:y,dir:L},q=Mt({id:m||A,name:v,className:"k-input",ref:I,disabled:d,rows:h,placeholder:g,readOnly:p,required:f,tabIndex:Object(i.getTabIndex)(b,d),style:l?{resize:"none",overflow:"hidden",height:j}:{},"aria-labelledby":s,"aria-describedby":a,"aria-multiline":!0,"aria-disabled":d||void 0,value:V?k:N},x,{onChange:H,onFocus:U,onBlur:K});return r.createElement("span",Mt({},W),r.createElement("textarea",Mt({},q)))}));Ft.propTypes={ariaDescribedBy:o.string,ariaLabelledBy:o.string,autoSize:o.bool,className:o.string,defaultValue:o.string,dir:o.string,disabled:o.bool,readOnly:o.bool,rows:o.number,id:o.string,name:o.string,placeholder:o.string,style:o.object,tabIndex:o.number,value:o.oneOfType([o.string,o.arrayOf(o.string),o.number]),onChange:o.func,onFocus:o.func,onBlur:o.func},Ft.displayName="KendoTextArea";var At=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null),a=Object(i.useDir)(o,e.dir);r.useImperativeHandle(n,(function(){return{element:o.current,props:e,value:e.value}})),r.useImperativeHandle(t,(function(){return n.current}));var s=r.useCallback((function(t){e.onClick&&e.onClick.call(void 0,{value:e.value,target:n.current,syntheticEvent:t})}),[e.onClick,e.value]),l=r.useCallback((function(t){e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown]),u=r.useCallback((function(t){e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus]),c=r.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),d=r.useCallback((function(t){e.onMouseMove&&e.onMouseMove.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseMove]),p=r.useCallback((function(t){e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseEnter]),f=r.useCallback((function(t){e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseLeave]);return r.createElement("span",{id:e.id,ref:o,dir:a,"data-half":e.half,tabIndex:e.tabIndex,title:e.title,style:e.style,className:Object(i.classNames)("k-rating-item",{"k-rtl":"rtl"===a,"k-state-selected":e.selected,"k-state-hovered":e.hovered},e.className),onClick:s,onKeyDown:l,onFocus:u,onBlur:c,onMouseEnter:p,onMouseLeave:f,onMouseMove:d},e.children)})),Lt={id:o.string,icon:o.any,dir:o.oneOf(["ltr","rtl"]),title:o.string,value:o.number,half:o.bool,selected:o.bool,hovered:o.bool};At.displayName="KendoReactRatingItem",At.propTypes=Lt,At.defaultProps={dir:"ltr"};var Vt,Bt=function(e,t){if(e%1){var n=Math.pow(10,(t.toString().split(".")[1]||t.toString().split(".")[0]).length);return Math.round(e*n)/n}return e},zt=function(e,t,n){return Bt(e-n,n)<t&&t<e},Ht=function(e,t,n,r){return null!==t&&("continues"===r?zt(e,t,n)?Bt(e-n/2,n/2)<=t:e<=t:"single"===r&&(zt(e,t,n)?Bt(e-n/2,n/2)===t:e===t))},Ut=function(e,t,n){return"ltr"===e?n<t.x+t.width/2:n>t.x+t.width/2},Kt=function(e,t,n,r){for(var o=e;o<=t;o+=n)if(r===o)return!0;return!1};!function(e){e.select="select",e.deselect="deselect",e.increase="increase",e.decrease="decrease",e.min="min",e.max="max",e.reset="reset"}(Vt||(Vt={}));var Wt=function(){return(Wt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},qt=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1];return[i,function(e){var r=function(e,t){switch(t.type){case Vt.select:return void 0===t.payload||void 0===t.step?e:t.payload===e?null:t.payload>=t.min?t.payload<t.max?Bt(t.payload,t.step):t.max:t.min;case Vt.deselect:return null;case Vt.increase:return void 0===t.step?e:e<t.min?t.min:e+t.step<t.max?Bt(e+t.step,t.step):t.max;case Vt.decrease:return void 0===t.step?e:Bt(e-t.step,t.step)>=t.min?Bt(e-t.step,t.step):t.min;case Vt.min:return void 0===t.step?e:t.min;case Vt.max:return t.max;case Vt.reset:return null;default:return e}}(t.state||i,Wt({},e,t));n&&n(r,e.event),a(r)}]},Yt=Object(i.createPropsContext)(),Gt=r.forwardRef((function(e,t){var n,o,a,s,l=Object(i.usePropsContext)(Yt,e),u=r.useRef(null),c=r.useRef(null),d=Object(i.useDir)(c,l.dir);r.useImperativeHandle(u,(function(){return{element:c.current,props:l}})),r.useImperativeHandle(t,(function(){return u.current}));for(var p,f,h=r.useCallback((function(e,t){l.onChange&&u.current&&l.onChange.call(void 0,{value:e,target:u.current,syntheticEvent:t})}),[l.onChange]),m=r.useMemo((function(){return void 0!==l.min?l.min:Xt.min}),[l.min]),v=r.useMemo((function(){return void 0!==l.max?l.max:Xt.max}),[l.max]),g=r.useMemo((function(){return l.precision||Xt.precision}),[l.precision]),y=r.useMemo((function(){return void 0!==l.step?l.step:Xt.step}),[l.step]),b=r.useMemo((function(){return l.readonly||Xt.readonly}),[l.readonly]),k=r.useMemo((function(){return l.disabled||Xt.disabled}),[l.disabled]),C=r.useMemo((function(){return l.item||Xt.item}),[l.item]),O=qt(l.defaultValue||Xt.defaultValue,{state:l.value,min:m,max:v,step:"half"===g?y/2:y},h),w=O[0],E=O[1],S=qt(null,{state:l.value,min:m,max:v,step:"half"===g?y/2:y,precision:g}),D=S[0],x=S[1],I=r.useMemo((function(){return l.value||w}),[l.value,w]),T=r.useMemo((function(){return D}),[D]),_=r.useMemo((function(){return l.selection||Xt.selection}),[l.selection]),P=r.useMemo((function(){return y/("half"===g?2:1)}),[y,g]),N=r.useCallback((function(e){if(e.target&&e.target.element&&!b&&!k){if("half"===g){var t=e.target.element.getBoundingClientRect(),n=Ut(d||"ltr",t,e.syntheticEvent.clientX)?Bt(e.target.value-y/2,P):e.target.value;E({type:Vt.select,payload:n,event:e.syntheticEvent})}else E({type:Vt.select,payload:e.target.value,event:e.syntheticEvent});l.onClick&&l.onClick.call(void 0,{value:I,target:u.current,syntheticEvent:e.syntheticEvent})}}),[l.onClick,E,I]),M=r.useCallback((function(e){if(!b&&!k){switch(e.keyCode){case i.Keys.right:e.preventDefault(),E({type:"rtl"===d?Vt.decrease:Vt.increase,event:e});break;case i.Keys.left:e.preventDefault(),E({type:"rtl"===d?Vt.increase:Vt.decrease,event:e});break;case i.Keys.home:e.preventDefault(),E({type:"rtl"===d?Vt.min:Vt.max,event:e});break;case i.Keys.end:e.preventDefault(),E({type:"rtl"===d?Vt.max:Vt.min,event:e});break;case i.Keys.esc:e.preventDefault(),E({type:Vt.deselect,event:e})}l.onKeyDown&&l.onKeyDown.call(void 0,{value:I,target:u.current,syntheticEvent:e})}}),[l.onKeyDown,E,I]),R=r.useCallback((function(e){l.onFocus&&l.onFocus.call(void 0,{target:u.current,syntheticEvent:e})}),[l.onFocus]),j=r.useCallback((function(e){l.onBlur&&l.onBlur.call(void 0,{target:u.current,syntheticEvent:e})}),[l.onBlur]),F=r.useCallback((function(e){if(e.target&&e.target.element)if("half"===g){var t=e.target.element.getBoundingClientRect(),n=Ut(d||"ltr",t,e.syntheticEvent.clientX)?e.target.value-y/2:e.target.value;x({type:Vt.select,payload:n,event:e.syntheticEvent})}else x({type:Vt.select,payload:e.target.value,event:e.syntheticEvent})}),[g,y,d]),A=r.useCallback((function(e){x({type:Vt.reset,event:e.syntheticEvent})}),[]),L=[],V=(p=Bt(v-m,P))-(f=y)*Math.floor(p/f),B=m;B<=v;B=Bt(B+y,P)){var z=Bt(B+V,P),H="half"===g&&zt(z,null!==T?T:null!==I?I:0,y),U=Ht(z,I,y,_),K=Ht(z,null!==T?T:I,y,_),W=Ht(z,T,y,_);L.push(r.createElement(C,{key:z,value:z,dir:d,title:String(H?Bt(z-y/2,P):z),icon:l.icon,half:H,selected:U||K,hovered:W,onClick:N,onMouseMove:F,onMouseLeave:A},H&&r.createElement("span",{className:"k-rating-precision-complement",style:(n={width:"12px"},n["rtl"===d?"right":"left"]="50%",n)},r.createElement("span",{className:Object(i.classNames)("k-icon",(o={"k-i-star-outline":!l.icon},o[l.icon+"-outline"]=l.icon,o))})),H&&r.createElement("span",{className:"k-rating-precision-part",style:{width:"12px"}},r.createElement("span",{className:Object(i.classNames)("k-icon",(a={"k-i-star":!l.icon},a[""+l.icon]=l.icon,a))})),H&&r.createElement("span",{style:{width:"24px",height:"24px",display:"block"}}),!H&&r.createElement("span",{className:Object(i.classNames)("k-icon",(s={"k-i-star":!l.icon&&(W||K&&!W),"k-i-star-outline":!l.icon&&!W},s[""+l.icon]=l.icon&&(W||K&&!W),s[l.icon+"-outline"]=l.icon&&!W,s))})))}return r.createElement("span",{id:l.id,style:l.style,ref:c,role:"slider",dir:d,tabIndex:Object(i.getTabIndex)(l.tabIndex,l.disabled,void 0),className:Object(i.classNames)("k-rating k-widget",{"k-rtl":"rtl"===d,"k-state-readonly":b,"k-state-disabled":k},l.className),onKeyDown:M,onFocus:R,onBlur:j,"aria-valuemin":m,"aria-valuemax":v,"aria-valuenow":null!==I?I:void 0,"aria-disabled":k?"true":void 0,"aria-labelledby":l.ariaLabelledBy,"aria-describedby":l.ariaDescribedBy},r.createElement("input",{id:"rating",className:"k-hidden",readOnly:b,disabled:k}),r.createElement("span",{className:"k-rating-container"},L),l.label&&r.createElement("span",{className:"k-rating-label"},l.label))})),Zt={id:o.string,dir:o.oneOf(["ltr","rtl"]),selection:o.oneOf(["continues","single"]),precision:o.oneOf(["item","half"]),value:function(e,t,n){if(e.value&&e.min&&e.max&&e.step&&(!("half"===e.precision?Kt(e.min,e.max,e.step/2,e.value):Kt(e.min,e.max,e.step,e.value))&&"half"===e.precision))return new Error("Invalid prop + "+t+" supplied to "+n+".\n The value of the { value } property is not correct, please check your values.\n ");return null},defaultValue:o.number,min:o.number,max:o.number,step:function(e,t,n){return void 0!==e.step&&e.step<=0?new Error("Invalid prop + "+t+" supplied to "+n+'.\n The value of the { step } property is cannot be equal or less than "0", please check your values.\n '):null},hovered:o.number,label:o.string,readonly:o.bool,disabled:o.bool,half:o.bool,icon:o.string,ariaDescribedBy:o.string},Xt={dir:"ltr",min:1,max:5,step:1,item:At,defaultValue:null,readonly:!1,disabled:!1,selection:"continues",precision:"item"};Gt.displayName="KendoReactRating",Gt.propTypes=Zt,Gt.defaultProps=Xt},function(e,t,n){"use strict";n.r(t),n.d(t,"FieldArray",(function(){return g})),n.d(t,"Field",(function(){return s})),n.d(t,"Form",(function(){return h})),n.d(t,"FieldWrapper",(function(){return y})),n.d(t,"FormElement",(function(){return C}));var r=n(0),o=r.createContext(null),i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},s=function(e){var t=e.name,n=e.component,s=e.validator,l=e.children,u=e.onChange,c=a(e,["name","component","validator","children","onChange"]),d=r.useContext(o),p=d?d.id:"";r.useEffect((function(){if(d)return d.registerField(t,s)}),[t,p,s]);var f=r.useCallback((function(e){var n=e?void 0!==e.value?e.value:e.target?e.target.value:e.target:e;d.onChange(t,{value:n}),u&&u.call(void 0,e)}),[t,p,u]),h=r.useCallback((function(e){return d.onChange(t,{value:e.target.value})}),[t,p]),m=r.useCallback((function(){return d.onBlur(t)}),[t,p]),v=r.useCallback((function(){return d.onFocus(t)}),[t,p]);if(!d)return null;var g=d.valueGetter(t);return"string"==typeof n?r.createElement(n,i({onChange:h,onBlur:m,onFocus:v,value:g,children:l},c)):r.createElement(n,i({children:l},c,{onChange:f,onBlur:m,onFocus:v,value:g,validationMessage:d.errors[t],touched:d.touched[t],modified:d.modified[t],visited:d.visited[t],valid:!(Boolean(d.errors[t])&&d.touched[t]),name:t}))};s.displayName="KendoReactField";var l,u=n(1),c=n(2),d={name:"@progress/kendo-react-form",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639558949,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"},p=(l=function(e,t){return(l=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}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(){return(f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},h=function(e){function t(t){var n=e.call(this,t)||this;return n._id=Object(c.guid)(),n._touched={},n._visited={},n._modified={},n._validatorsByField={},n._values={},n._fields={},n._unmounted=!1,n._submitted=!1,n.isValid=function(){return n.isFormValid(n.errors)},n.accumulatedForceUpdate=function(){n._accumulatorTimeout&&clearTimeout(n._accumulatorTimeout),n._accumulatorTimeout=window.setTimeout((function(){n._accumulatorTimeout=void 0,n.forceUpdate()}),0)},n.resetForm=function(){n.values=Object(c.clone)(n.props.initialValues),n._id=Object(c.guid)(),n._touched={},n._visited={},n._modified={},n._validatorsByField={},n._fields={},n._submitted=!1,n.forceUpdate()},n.onReset=function(){return n.resetForm()},n.addField=function(e){n._fields[e]=!0},n.onSubmit=function(e){var t={},r=n.fields;e&&("function"==typeof e.preventDefault&&e.preventDefault(),"function"==typeof e.stopPropagation&&e.stopPropagation()),r.forEach((function(e){t[e]=!0})),n.visited=f({},t),n.touched=f({},t);var o=n.values,i=n.isFormValid(n.errors),a=n.isFormModified(n.modified,r);n.props.onSubmitClick&&n.props.onSubmitClick.call(void 0,{values:o,isValid:i,isModified:a,event:e}),i&&(n.props.ignoreModified||a)&&n.props.onSubmit&&(n._submitted=!0,n.props.onSubmit.call(void 0,o,e)),n.forceUpdate()},n.onChange=function(e,t){var r,o=t.value;n.addField(e),n.modified[e]||(n.modified=f({},n.modified,((r={})[e]=!0,r))),n.valueSetter(e,o),n.forceUpdate()},n.onFocus=function(e,t){var r;n.visited[e]||(n.visited=f({},n.visited,((r={})[e]=!0,r)),t||n.forceUpdate())},n.onBlur=function(e,t){var r;n.touched[e]||(n.onFocus(e,t),n.touched=f({},n.touched,((r={})[e]=!0,r)),t||n.forceUpdate())},n.onFieldRegister=function(e,t){var r;n.addField(e);var o=n.validatorsByField[e]||[],i=o.length;return n.validatorsByField=f({},n.validatorsByField,((r={})[e]=o.concat([t]),r)),n.accumulatedForceUpdate(),function(){var t;if(!n._unmounted){var r=(n.validatorsByField[e]||[]).slice(),o=Boolean(r[i]);r[i]=void 0,n.validatorsByField=f({},n.validatorsByField,((t={})[e]=r,t)),o&&n.accumulatedForceUpdate()}}},n.isFormValid=function(e){return!Object.keys(e).some((function(t){return Boolean(e[t])}))},n.isFormModified=function(e,t){return t.some((function(t){return e[t]}))},n.isFormHasNotTouched=function(e,t){return t.some((function(t){return!e[t]}))},n.isFormTouched=function(e,t){return t.some((function(t){return e[t]}))},n.isFormVisited=function(e,t){return t.some((function(t){return e[t]}))},n.valueGetter=function(e){return Object(c.getter)(e)(n.values)},n.valueSetter=function(e,t){return Object(c.setter)(e)(n.values,t)},n.onArrayAction=function(e){var t;n.addField(e),n.modified[e]||(n.modified=f({},n.modified,((t={})[e]=!0,t))),n.onBlur(e,!0)},n.onInsert=function(e,t){n.onArrayAction(e);var r=(n.valueGetter(e)||[]).slice();r.splice(t.index,0,t.value),n.valueSetter(e,r),n.forceUpdate()},n.onUnshift=function(e,t){n.onInsert(e,{value:t.value,index:0})},n.onPush=function(e,t){n.onArrayAction(e);var r=(n.valueGetter(e)||[]).concat([t.value]);n.valueSetter(e,r),n.forceUpdate()},n.onPop=function(e){n.onArrayAction(e);var t=(n.valueGetter(e)||[]).slice(),r=t.pop();return n.valueSetter(e,t),n.forceUpdate(),r},n.onRemove=function(e,t){n.onArrayAction(e);var r=(n.valueGetter(e)||[]).slice(),o=r.splice(t.index,1);return n.valueSetter(e,r),n.forceUpdate(),o},n.onReplace=function(e,t){n.onArrayAction(e);var r=(n.valueGetter(e)||[]).slice();r.splice(t.index,1,t.value),n.valueSetter(e,r),n.forceUpdate()},n.onMove=function(e,t){n.onArrayAction(e);var r=(n.valueGetter(e)||[]).slice(),o=r[t.prevIndex];r.splice(t.prevIndex,1),r.splice(t.nextIndex,0,o),n.valueSetter(e,r),n.forceUpdate()},Object(c.validatePackage)(d),n.values=Object(c.clone)(t.initialValues),n}return p(t,e),Object.defineProperty(t.prototype,"touched",{get:function(){return this._touched},set:function(e){this._touched=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visited",{get:function(){return this._visited},set:function(e){this._visited=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"modified",{get:function(){return this._modified},set:function(e){this._modified=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validatorsByField",{get:function(){return this._validatorsByField},set:function(e){this._validatorsByField=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"values",{get:function(){return this._values},set:function(e){this._values=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fields",{get:function(){return Object.keys(this._fields)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formErrors",{get:function(){if(this.props.validator)return this.props.validator(this.values,this.valueGetter)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){var e=this,t={},n=this.fields,r=this.validatorsByField;return n.forEach((function(n){if(t[n]="",r[n]){var o=[];r[n].forEach((function(e){Array.isArray(e)?o.push.apply(o,e):o.push(e)})),o.find((function(r){if(r){var o=r(e.valueGetter(n),e.valueGetter,{name:n});if(o)return t[n]=o,!0}return!1}))}})),this.formErrors&&Object(c.cloneObject)(this.formErrors,t),t},enumerable:!0,configurable:!0}),t.prototype.componentWillUnmount=function(){this._unmounted=!0,this._accumulatorTimeout&&clearTimeout(this._accumulatorTimeout)},t.prototype.render=function(){var e=this.props.render,t=this.touched,n=this.visited,i=this.modified,a=this.fields,s=this.errors,l=this.isFormValid(s),u=this.isFormModified(i,a),c=this.isFormTouched(t,a),d=this.isFormVisited(n,a),p=this.isFormHasNotTouched(t,a)&&!l||l&&(this.props.ignoreModified||u);return r.createElement(o.Provider,{key:this._id,value:{id:this._id,valueGetter:this.valueGetter,errors:s,modified:i,touched:t,visited:n,registerField:this.onFieldRegister,onSubmit:this.onSubmit,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,onUnshift:this.onUnshift,onPush:this.onPush,onInsert:this.onInsert,onPop:this.onPop,onRemove:this.onRemove,onReplace:this.onReplace,onMove:this.onMove}},e({valid:l,modified:u,touched:c,visited:d,submitted:this._submitted,valueGetter:this.valueGetter,errors:s,allowSubmit:p,onChange:this.onChange,onSubmit:this.onSubmit,onFormReset:this.resetForm}))},t.displayName="KendoReactForm",t.propTypes={initialValues:u.any,onSubmit:u.func,onSubmitClick:u.func,render:u.func.isRequired},t}(r.Component),m=function(){return(m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},g=function(e){var t=e.name,n=e.component,i=e.validator,a=(e.type,e.children),s=v(e,["name","component","validator","type","children"]),l=r.useContext(o),u=l?l.id:"";r.useEffect((function(){if(l)return l.registerField(t,i)}),[t,u,i]);var c=r.useCallback((function(e){return l.onUnshift(t,e)}),[t,u]),d=r.useCallback((function(e){return l.onPush(t,e)}),[t,u]),p=r.useCallback((function(e){return l.onInsert(t,e)}),[t,u]),f=r.useCallback((function(){return l.onPop(t)}),[t,u]),h=r.useCallback((function(e){return l.onRemove(t,e)}),[t,u]),g=r.useCallback((function(e){return l.onReplace(t,e)}),[t,u]),y=r.useCallback((function(e){return l.onMove(t,e)}),[t,u]);if(!l)return null;var b=l.valueGetter(t);return r.createElement(n,m({value:b,validationMessage:l.errors[t],touched:l.touched[t],modified:l.modified[t],visited:l.visited[t],valid:!(Boolean(l.errors[t])&&l.touched[t]),onUnshift:c,onPush:d,onInsert:p,onPop:f,onRemove:h,onReplace:g,onMove:y,children:a,name:t},s))};g.displayName="KendoReactFieldArray";var y=function(e){var t=Object(c.classNames)({"k-form-field":!0,"k-rtl":"rtl"===e.dir},e.className);return r.createElement("div",{className:t,style:e.style},e.children)};y.displayName="KendoReactFieldWrapper";var b=function(){return(b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},C=r.forwardRef((function(e,t){var n=r.useRef(null),i=r.useRef(null);r.useImperativeHandle(i,(function(){return{element:n.current,props:e}})),r.useImperativeHandle(t,(function(){return i.current}));var a=r.useContext(o),s=e.className,l=(e.onSubmit,e.style,e.horizontal),u=k(e,["className","onSubmit","style","horizontal"]),d=Object(c.classNames)({"k-form":!0,"k-form-horizontal":!0===l},s);return r.createElement("form",b({ref:n},u,{style:e.style,className:d,onSubmit:a?a.onSubmit:void 0}),e.children)}));C.displayName="KendoReactFormElement"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(5),s=n(2);t.SchedulerNavigation=i.forwardRef((function(e,t){var n=e.className,l=o(e,["className"]),u=i.useRef(null);return i.useImperativeHandle(t,(function(){return{element:u.current,props:e}})),i.createElement(a.ToolbarItem,r({ref:function(e){e&&(u.current=e.element)},className:s.classNames(n)},l),e.children)})),t.SchedulerNavigation.displayName="KendoReactSchedulerSchedulerNavigation"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(5),s=n(2);t.SchedulerViewSelector=i.forwardRef((function(e,t){var n=e.className,l=o(e,["className"]),u=i.useRef(null);return i.useImperativeHandle(t,(function(){return{element:u.current,props:e}})),i.createElement(a.ToolbarItem,r({ref:function(e){e&&(u.current=e.element)},className:s.classNames("k-scheduler-views",n)},l),e.children)})),t.SchedulerViewSelector.displayName="KendoReactSchedulerViewSelector"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(33),a=n(4),s=n(12),l=n(5),u=n(13),c=n(3),d=n(7);t.NavigationDatePicker=o.forwardRef((function(e,t){var n=u.useSchedulerPropsContext().timezone,a=c.ZonedDate.fromLocalDate(e.value,n),s=c.getDate(a),l=o.useCallback((function(t){if(e.onChange){var o=c.ZonedDate.fromUTCDate(d.toUTCDateTime(t.value),n);e.onChange.call(void 0,r({},t,{value:o}))}}),[e.onChange]);return o.createElement(i.DatePicker,r({ref:t,dateInput:p,pickerWrap:f,toggleButton:h},e,{value:s,onChange:l}))}));var p=function(){return null},f=function(e){return o.createElement(o.Fragment,null,e.children)},h=function(e){var t=a.useInternationalization(),n=u.useSchedulerDateFormatContext(),i=n.dateFormat,c=n.shortDateFormat,d=u.useSchedulerDateRangeContext(),p=u.useSchedulerDateContext()[0],f=d.end.getTime()-d.start.getTime()>27*s.MS_PER_DAY,h=t.format(i,f?p:d.zonedStart,f?p:d.zonedEnd.addDays(-1)),m=t.format(c,f?p:d.zonedStart,f?p:d.zonedEnd.addDays(-1));return o.createElement(l.Button,r({},e,{className:"k-nav-current",tabIndex:-1,look:"flat"}),o.createElement("span",{className:"k-icon k-i-calendar"}),o.createElement("span",{className:"k-sm-date-format"},m),o.createElement("span",{className:"k-lg-date-format"},h))};t.NavigationDatePicker.displayName="KendoReactSchedulerNavigationDatePicker"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(19),a=n(10),s=n(4),l=n(5),u=n(78);t.ViewSelectorList=o.forwardRef((function(){var e=o.useRef(null),t=o.useState("desktop"),n=t[0],c=t[1],d=i.useSchedulerViewsContext(),p=a.useSchedulerActiveViewContext(),f=p[0],h=p[1],m=d.find((function(e){return e.props.name===f})),v=s.useLocalization(),g=o.useCallback((function(e){h&&(e.syntheticEvent.preventDefault(),h(e.item.name))}),[h]),y=function(){c(window.matchMedia("(min-width: 1024px)").matches?"desktop":"mobile")};return o.useEffect((function(){y();var t=new window.ResizeObserver(y);return t.observe(e.current),function(){t.disconnect()}}),[]),o.createElement("div",{className:"k-scheduler-views-wrapper",ref:e},m&&"mobile"===n&&o.createElement(l.DropDownButton,{className:"k-views-dropdown",onItemClick:g,popupSettings:{popupClass:"k-scheduler-toolbar"},textField:"title",items:d.map((function(e){return r({},e.props,{selected:e.props.name===f,title:"function"==typeof e.props.title?e.props.title.call(void 0,v):e.props.title})})),text:o.createElement(o.Fragment,null,"function"==typeof m.props.title?m.props.title.call(void 0,v):m.props.title,o.createElement("span",{className:"k-icon k-i-arrow-60-down"}))}),"desktop"===n&&o.createElement(l.ButtonGroup,{className:"k-scheduler-views"},d.map((function(e){return o.createElement(u.ViewSelectorItem,{key:e.props.name,view:e.props})}))))})),t.ViewSelectorList.displayName="KendoReactSchedulerViewSelectorList"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(5),i=n(4),a=n(19);t.ViewSelectorItem=function(e){var t=a.useSchedulerActiveViewContext(),n=t[0],s=t[1],l=i.useLocalization(),u=r.useMemo((function(){return"function"==typeof e.view.title?e.view.title.call(void 0,l):e.view.title}),[e.view.title,l]),c=r.useCallback((function(){e.view.name&&s(e.view.name)}),[s,e.view.name]);return r.createElement(o.Button,{role:"button",type:"button",tabIndex:-1,togglable:!0,selected:e.view.name===n,onClick:c},u)}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(5),s=n(2);t.BusinessHours=i.forwardRef((function(e,t){var n=e.className,l=o(e,["className"]),u=i.useRef(null);return i.useImperativeHandle(t,(function(){return{element:u.current,props:e}})),i.createElement(a.ToolbarItem,r({ref:function(e){e&&(u.current=e.element)},className:s.classNames("k-scheduler-navigation",n)},l),e.children)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-scheduler",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639559493,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 r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(23),s=n(24),l=n(11),u=n(14),c=n(12),d=n(3),p=n(2),f=n(4),h=n(25),m=n(26),v=n(27),g=n(7),y=n(28),b=n(55),k=n(22),C=n(13),O=n(21);t.AgendaView=function(e){var t=C.useSchedulerPropsContext(),n=t.group,i=t.timezone,c=t.resources,E=e.editTask||b.SchedulerEditTask,S=e.editSlot||k.SchedulerEditSlot,D=o.useRef(null),x=f.useInternationalization(),I=f.useLocalization(),T=C.useSchedulerDataContext()[0],_=C.useSchedulerGroupsContext(),P=C.useSchedulerFieldsContext(),N=C.useSchedulerDateRangeContext(),M=o.useMemo((function(){return h.toRanges(N,{step:d.MS_PER_DAY,timezone:i})}),[N.start.getTime(),N.end.getTime(),i]),R=o.useMemo((function(){return y.toSlots(N,{step:d.MS_PER_DAY},{groups:_,ranges:M})}),[N.start.getTime(),N.end.getTime(),i,_,M]),j=o.useMemo((function(){return m.toOccurrences(T,{dateRange:N,fields:P,timezone:i})}),[T,N.start.getTime(),N.end.getTime(),P,i]),F=o.useMemo((function(){return v.toItems(j,{timezone:i},{groups:_,ranges:M})}),[j,i,_,M]),A=o.useMemo((function(){return p.classNames("k-scheduler-agendaview",e.className)}),[e.className]);return u.useCellSync({element:D,selector:".k-scheduler-datecolumn",explicitDepth:!1}),u.useCellSync({element:D,selector:".k-scheduler-timecolumn",explicitDepth:!1}),o.useMemo((function(){return g.mapItemsToSlots(F,R,!0)}),[F,R]),o.useMemo((function(){return g.mapSlotsToItems(F,R,!0)}),[F,R]),o.createElement(a.BaseView,{ref:D,id:e.id,style:e.style,className:A,props:e,slots:F,ranges:M},o.createElement("div",{className:"k-scheduler-head"},o.createElement(s.VerticalResourceIterator,{resources:c,group:n},o.createElement(O.SchedulerResourceIteratorContext.Consumer,null,(function(e){var t=e.groupIndex;return o.createElement("div",{className:"k-scheduler-row",key:t},o.createElement("div",{className:"k-scheduler-cell k-heading-cell k-group-cell k-scheduler-datecolumn"},I.toLanguageString(l.dateTitle,l.messages[l.dateTitle])),o.createElement("div",{className:"k-scheduler-cell k-heading-cell k-group-cell k-scheduler-timecolumn"},I.toLanguageString(l.timeTitle,l.messages[l.timeTitle])),o.createElement("div",{className:"k-scheduler-cell k-heading-cell k-scheduler-eventcolumn"},I.toLanguageString(l.eventTitle,l.messages[l.eventTitle])))})))),o.createElement("div",{className:"k-scheduler-body"},o.createElement(s.VerticalResourceIterator,{resources:c,group:n,nested:!0},o.createElement(O.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return R.filter((function(e){return e.group.index===(n||0)})).map((function(t,i,a){return o.createElement("div",{className:"k-scheduler-row k-scheduler-content",key:n+":"+i},o.createElement(S,r({},t,{editable:e.editable,row:a.length*(n||0)+i,col:0,slot:e.slot,viewSlot:e.viewSlot,className:"k-scheduler-datecolumn k-group-cell"}),o.createElement("div",null,o.createElement("strong",{className:"k-scheduler-agendaday"},x.formatDate(t.zonedStart,"dd")),o.createElement("em",{className:"k-scheduler-agendaweek"},x.formatDate(t.zonedStart,"EEEE")),o.createElement("span",{className:"k-scheduler-agendadate"},x.formatDate(t.zonedStart,"y")))),o.createElement("div",{className:"k-scheduler-cell k-group-content"},t.items.length?t.items.map((function(t,n){return o.createElement("div",{className:"k-scheduler-row",key:n},o.createElement("div",{className:"k-scheduler-cell k-scheduler-timecolumn"},o.createElement("div",null,t.tail&&o.createElement("span",{className:"k-icon k-i-arrow-60-left"}),t.isAllDay?I.toLanguageString(l.allDay,l.messages[l.allDay]):w(x,t),t.head&&o.createElement("span",{className:"k-icon k-i-arrow-60-right"}))),o.createElement("div",{className:"k-scheduler-cell"},o.createElement(E,r({key:i+":"+n},t,{onDataAction:e.onDataAction,task:e.task,viewTask:e.viewTask,editable:e.editable}))))})):o.createElement("div",{className:"k-scheduler-cell k-heading-cell k-group-cell"},I.toLanguageString(l.noEvents,l.messages[l.noEvents]))))}))})))))};var w=function(e,t){var n="{0:t}-{1:t}";return t.head?n="{0:t}":t.tail&&(n="{1:t}"),e.format(n,t.zonedStart,t.zonedEnd)},E=function(e){return d.getDate(e)},S={name:"agenda",title:function(e){return e.toLanguageString(l.agendaViewTitle,l.messages[l.agendaViewTitle])},dateRange:function(e){var t=e.intl,n=e.date,r=e.numberOfDays,o=void 0===r?1:r,i=e.timezone,a=d.ZonedDate.fromLocalDate(n,i),s=o===c.DAYS_IN_WEEK_COUNT?E(d.firstDayInWeek(a,t.firstDay())):E(a),l=function(e,t){return d.getDate(d.addDays(e,t||1))}(s,o),u=d.ZonedDate.fromUTCDate(g.toUTCDateTime(s),i),p=d.ZonedDate.fromUTCDate(g.toUTCDateTime(l),i);return{start:new Date(u.getTime()),end:new Date(p.getTime()),zonedStart:u,zonedEnd:p}},selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}",slotDuration:1440,slotDivision:1,step:c.DAYS_IN_WEEK_COUNT,numberOfDays:c.DAYS_IN_WEEK_COUNT},D={title:i.any};t.AgendaView.propTypes=D,t.AgendaView.defaultProps=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(2);t.usePropOrState=function(e,t){var n=r.useState(t),i=n[0],a=n[1];return void 0!==e?[e,o.noop]:[i,a]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(17),i=n(17);t.useCellSync=function(e,t){var n=e.element;r.useLayoutEffect((function(){if(n&&n.current){var t=[],r=[],a=[],s=n.current.querySelectorAll(e.selector);s.forEach((function(n){var s=n.getBoundingClientRect().width,l=e.explicitDepth&&void 0!==e.attribute?n.getAttribute(e.attribute):0,u=o.getPadding(n,!0),c=i.getBorders(n,!0);null!==l&&((!a[l]||c>a[l])&&(a[l]=c),(!r[l]||u>r[l])&&(r[l]=u),(!t[l]||s>t[l])&&(t[l]=s))})),s.forEach((function(n){var o=e.explicitDepth?n.getAttribute(e.attribute):0;null!==o&&(n.style.minWidth=t[o]-r[o]-a[o]+"px")}))}}),t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(17),i=n(12);t.useRowSync=function(e,t){var n=e.element;r.useEffect((function(){if(n&&n.current){var t=[[]];Array.from(n.current.querySelectorAll(e.selector)).filter((function(t){return!t.classList.contains((n=e.applyTo,n.slice(1,n.length)));var n})).forEach((function(n){var r=n.clientHeight,o=n.getAttribute(e.horizontalAttribute),a=n.getAttribute(e.verticalAttribute);null!==o&&null!==a&&(t[o]||(t[o]=[]),(!t[o][a]||r>t[o][a])&&(t[o][a]=r-i.BORDER_WIDTH))})),Array.from(n.current.querySelectorAll(e.applyTo)).forEach((function(n){var r=n.getAttribute(e.horizontalAttribute),i=n.getAttribute(e.verticalAttribute);if(null!==r&&null!==i){var a=o.getPadding(n),s=t[r][i]-a;o.setRect(n,{height:s},!0)}}))}}),t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.useAsyncMouseEnterLeave=function(e){var t=e.handleMouseEnter,n=e.handleMouseLeave,o=r.useRef(0).current;return{onMouseEnter:function(e){clearTimeout(o),t(e)},onMouseLeave:function(e){var t;t=function(){return n(e)},clearTimeout(o),o=window.setTimeout((function(){return t()}))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(13);t.useEditable=function(e){var t=r.useContext(o.SchedulerPropsContext),n=void 0!==e?e:t.editable||!1,i=!0===n||void 0!==n&&!1!==n&&!0===n.edit,a=!0===n||void 0!==n&&!1!==n&&!0===n.resize,s=!0===n||void 0!==n&&!1!==n&&!0===n.remove,l=!0===n||void 0!==n&&!1!==n&&!0===n.drag;return{add:!0===n||void 0!==n&&!1!==n&&!0===n.add,edit:i,drag:l,remove:s,resize:a,select:!0===n||void 0!==n&&!1!==n&&!0===n.select}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(17),i=n(12),a=n(10);t.useSlotExpand=function(e,t){var n=r.useRef(),s=r.useRef(0),l=a.useSchedulerElementContext(),u=r.useCallback((function(){if(t&&e.current){var n=e.current.element,r=e.current.props;if(n){var a=o.getPadding(n),l=0,u=r.items.filter((function(e){return e._ref.current}));u.forEach((function(e){if(e._ref.current){var t=o.getRect(e._ref.current.element).height;l+=t}}));var c=u.length*i.BORDER_WIDTH*2+l-(a||0)+("object"==typeof t&&t.offsetTop?t.offsetTop:0)+("object"==typeof t&&t.offsetBottom?t.offsetBottom:0);u.length?c>s.current-a&&o.setRect(n,{height:c},!0):n&&(n.style.minHeight=null)}}}),[t,e]),c=r.useCallback((function(){void 0!==n.current&&window.cancelAnimationFrame(n.current),n.current=window.requestAnimationFrame((function(){u()}))}),[u]);r.useLayoutEffect((function(){if(e.current){var t=e.current.element;t&&(s.current=t.clientHeight)}}),[]),r.useEffect(u,[e,e.current&&e.current.props,t]),r.useEffect((function(){if(e.current){var t=e.current.props.items.filter((function(e){return e._ref.current})).map((function(e){if(e._ref.current&&e._ref.current.element&&l.current){var t=new window.ResizeObserver(c);return t.observe(e._ref.current.element),function(){t.disconnect()}}}));return function(){t.forEach((function(e){return e&&e()}))}}}),[c,l,e])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(14);t.useWorkHours=function(e,t){var n=o.usePropOrState(e,t),i=n[0],a=n[1],s=r.useCallback((function(){a(!i)}),[i,a]);return[i,s]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(10),i=n(2);t.useSchedulerItem=function(e,t){var n=e._ref,a=e.itemRef,s=r.useRef(null),l=r.useRef(null),u=o.useSchedulerViewItemsContext()[1];return r.useImperativeHandle(s,(function(){return{element:l.current,props:e}})),r.useImperativeHandle(t,(function(){return s.current})),r.useImperativeHandle(n,(function(){return s.current})),r.useImperativeHandle(a,(function(){return s.current})),r.useLayoutEffect((function(){return u({type:i.COLLECTION_ACTION.add,item:s}),function(){u({type:i.COLLECTION_ACTION.remove,item:s})}})),{item:s,element:l}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(7);!function(e){e.next="ITEMS_FOCUS_NEXT",e.prev="ITEMS_FOCUS_PREV"}(r=t.ITEMS_FOCUS_ACTION||(t.ITEMS_FOCUS_ACTION={})),t.useItemsFocus=function(e){return[[],function(t,n){switch(t.type){case r.next:if(!t.item||!t.item.current||!e)return;(i=o.findNextItem(t.item,e,t.ignoreIsAllDay,!1))&&i.current&&i.current.element&&(n.preventDefault(),i.current.element.focus());break;case r.prev:if(!t.item||!t.item.current||!e)return;var i;(i=o.findNextItem(t.item,e,t.ignoreIsAllDay,!0))&&i.current&&i.current.element&&(n.preventDefault(),i.current.element.focus())}}]}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.up="SLOT_FOCUS_UP",e.down="SLOT_FOCUS_DOWN",e.left="SLOT_FOCUS_LEFT",e.right="SLOT_FOCUS_RIGHT"}(r=t.SLOTS_FOCUS_ACTION||(t.SLOTS_FOCUS_ACTION={})),t.useSlotsFocus=function(e){return[[],function(n,o){switch(n.type){case r.up:if(!n.slot.current||!e)return;(i=t.findUpSlot(n.slot,e))&&i.current&&i.current.element&&(o.preventDefault(),i.current.element.focus());break;case r.down:if(!n.slot||!e)return;(i=t.findDownSlot(n.slot,e))&&i.current&&i.current.element&&(o.preventDefault(),i.current.element.focus());break;case r.left:if(!n.slot||!e)return;(i=t.findLeftSlot(n.slot,e))&&i.current&&i.current.element&&(o.preventDefault(),i.current.element.focus());break;case r.right:if(!n.slot||!e)return;var i;(i=t.findRightSlot(n.slot,e))&&i.current&&i.current.element&&(o.preventDefault(),i.current.element.focus())}}]},t.findUpSlot=function(e,t){return t.find((function(t){return null!==t.current&&null!==e.current&&t.current.props.row===e.current.props.row-1&&t.current.props.col===e.current.props.col}))},t.findLeftSlot=function(e,t){return t.find((function(t){return null!==t.current&&null!==e.current&&t.current.props.row===e.current.props.row&&t.current.props.col===e.current.props.col-1}))},t.findRightSlot=function(e,t){return t.find((function(t){return null!==t.current&&null!==e.current&&t.current.props.row===e.current.props.row&&t.current.props.col===e.current.props.col+1}))},t.findDownSlot=function(e,t){return t.find((function(t){return null!==t.current&&null!==e.current&&t.current.props.row===e.current.props.row+1&&t.current.props.col===e.current.props.col}))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(46),s=n(45);t.FilterableComboBox=function(e){var t=e.onChange,n=e.data,l=(e.validationMessage,e.visited,e.touched,e.modified,o(e,["onChange","data","validationMessage","visited","touched","modified"])),u=i.useState(n),c=u[0],d=u[1],p=i.useCallback((function(e){return t(e)}),[t]),f=i.useCallback((function(e){var t=a.filterBy(n||[],e.filter);d(t)}),[]);return i.createElement(s.ComboBox,r({style:{width:"100%"},data:c,filterable:!0,onFilterChange:f,onChange:p},l))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(4),a=n(11),s=n(44),l=n(3),u=n(94),c=n(95),d=n(59),p=n(6),f=n(72),h=n(45),m=n(33),v=n(10);t.RecurrenceEditor=function(e){var t=i.useInternationalization(),n=i.useLocalization(),r=v.useSchedulerPropsContext().timezone,y=o.useState(1),b=y[0],k=y[1],C=o.useState(l.ZonedDate.fromUTCDate(e.start)),O=C[0],w=C[1],E=o.useCallback((function(e,t){var r=t?e:"scheduler.recurrenceEditor"+e;return n.toLanguageString(r,a.messages[r])}),[n]),S=o.useMemo((function(){return d.getRule(e.value)}),[e.value]),D=o.useMemo((function(){return d.getFrequencies(E)}),[E]),x=o.useMemo((function(){return d.getFrequency(S)}),[S]),I=o.useMemo((function(){return d.getExtendedWeekDays(t,E)}),[t,E]),T=o.useMemo((function(){return d.getWeekDay(I,S,e.start)}),[I,S,e.start]),_=o.useMemo((function(){return d.getMonths(t)}),[t]),P=o.useMemo((function(){return d.getMonth(_,S)}),[_,S]),N=o.useMemo((function(){return d.getOffsets(E)}),[E]),M=o.useMemo((function(){return d.getOffset(N,S)}),[N,S]),R=o.useMemo((function(){return d.getEndRule(S)}),[S]),j=o.useMemo((function(){return d.getMonthDay(S,e.start)}),[S,e.start]),F=o.useMemo((function(){return d.getUntil(S)}),[S.until]),A=o.useMemo((function(){return d.getWeekDays(t)}),[t]),L=o.useMemo((function(){return d.getRepeatOnRule(S)}),[S.byWeekDay,S.byMonthDay]),V=o.useCallback((function(n){"never"===n.freq?e.onChange({value:null}):(void 0===n.weekStart&&(n.weekStart=t.firstDay()),e.onChange({value:s.serializeRule(n,e.timezone)}))}),[e.onChange,e.timezone]),B=o.useCallback((function(t){var n={};n.freq=t,n.interval=1,"weekly"===t&&(n.byWeekDay=[{day:l.ZonedDate.fromLocalDate(e.start,r).getDay(),offset:0}]),"monthly"!==t&&"yearly"!==t||(n.byMonthDay=[e.start.getDate()]),"yearly"===t&&(n.byMonth=[e.start.getMonth()+1]),V(n)}),[V,e.start,r]),z=o.useCallback((function(e){var t=e.value;V(Object.assign({},S,{interval:t}))}),[V,S]),H=o.useCallback((function(e){var t=e.value;V(Object.assign({},S,{count:t})),null!==t&&k(t)}),[V,S]),U=o.useCallback((function(t){var n=t.value;if(n){var r=l.ZonedDate.fromLocalDate(n,e.timezone);V(Object.assign({},S,{until:r})),w(r)}}),[V,S,e.timezone]),K=o.useCallback((function(e){V(Object.assign({},S,{byWeekDay:A.filter((function(t){return e.find((function(e){return e===t.value}))})).map((function(e){return{offset:0,day:e.value}}))}))}),[V,S]),W=o.useCallback((function(e){var t=Object.assign({},S),n=e.target.value;"string"==typeof n.value?(t.byWeekDay=d.weekDayRuleFromString(n.value),t.bySetPosition=[M.value]):t.byWeekDay=[{day:n.value,offset:M.value}],V(t)}),[V,S]),q=o.useCallback((function(e){V(Object.assign({},S,{byMonthDay:[e.value]}))}),[V,S]),Y=o.useCallback((function(e){var t=e.value;V(Object.assign({},S,{byMonth:[t.value]}))}),[V,S]),G=o.useCallback((function(e){var t=e.value,n=Object.assign({},S);switch(t){case"never":n.until=void 0,n.count=void 0;break;case"count":n.until=void 0,n.count=b;break;case"until":n.until=O,n.count=void 0}V(n)}),[V,S,e.timezone]),Z=o.useCallback((function(e){var t=Object.assign({},S);"monthday"===e.value?(t.byWeekDay=void 0,t.bySetPosition=void 0,t.byMonthDay=[j]):"weekday"===e.value&&(t.byMonthDay=void 0,"string"==typeof T.value?(t.bySetPosition=[M.value],t.byWeekDay=d.weekDayRuleFromString(T.value)):t.byWeekDay=[{day:T.value,offset:M.value}]),V(t)}),[V,S,j,T]),X=o.useCallback((function(e){var t=Object.assign({},S),n=e.value;if(t.byWeekDay)switch(t.byWeekDay.length){case 7:case 5:case 2:t.bySetPosition=[n.value];break;case 1:t.byWeekDay[0].offset=n.value}V(t)}),[V,S]);return o.createElement(o.Fragment,null,o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,null,n.toLanguageString(a.recurrenceEditorRepeat,a.messages[a.recurrenceEditorRepeat])),o.createElement("div",{className:"k-form-field-wrap"},o.createElement(u.RecurrenceFrequencyEditor,{value:x,data:D,onChange:B}))),"never"!==x&&o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,{editorId:"interval-editor"},E(d.capitalize(x)+"RepeatEvery")),o.createElement("div",{className:"k-form-field-wrap"},o.createElement("div",{style:{display:"flex",alignItems:"center"}},o.createElement(f.NumericTextBox,{min:1,step:1,defaultValue:1,value:S.interval,onChange:z,id:"interval-editor"})," ",o.createElement(p.Label,{editorId:"interval-editor"},E(d.capitalize(x)+"Interval"))))),"weekly"===x&&o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,null,E(a.recurrenceEditorWeeklyRepeatOn,!0)),o.createElement("div",{className:"k-form-field-wrap"},o.createElement(c.RecurrenceRepeatOnWeekEditor,{data:A,value:(S.byWeekDay||[]).map((function(e){return e.day})),onChange:K}))),"monthly"===x&&o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,{key:"recurrence-repeat-on-monthly-label"},E(a.recurrenceEditorMonthlyRepeatOn,!0)),o.createElement("div",{className:"k-form-field-wrap"},o.createElement(f.RadioGroup,{value:L,onChange:Z,item:g,className:"k-reset",data:[{value:"monthday",label:E(a.recurrenceEditorMonthlyDay,!0),children:[o.createElement(o.Fragment,{key:"separator"}," "),o.createElement(f.NumericTextBox,{key:"weekday-day",min:1,max:31,disabled:"monthday"!==L,value:S&&S.byMonthDay&&S.byMonthDay[0],onChange:q,width:"auto"})]},{value:"weekday",label:" ",children:[o.createElement(h.DropDownList,{key:"weekday-offset",textField:"text",dataItemKey:"value",disabled:"weekday"!==L,data:N,value:M,onChange:X,style:{width:"auto"}}),o.createElement(o.Fragment,{key:"separator"}," "),o.createElement(h.DropDownList,{key:"weekday-value",disabled:"weekday"!==L,value:T,data:I,onChange:W,textField:"text",dataItemKey:"value",style:{width:"auto"}})]}]}))),"yearly"===x&&o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,null,E(a.recurrenceEditorYearlyRepeatOn,!0)),o.createElement("div",{className:"k-form-field-wrap"},o.createElement(f.RadioGroup,{value:L,item:g,onChange:Z,className:"k-reset",data:[{value:"monthday",label:" ",children:[o.createElement(h.DropDownList,{key:"monthday-month",disabled:"monthday"!==L,value:P,data:_,textField:"text",dataItemKey:"value",onChange:Y,style:{width:"auto"}}),o.createElement(o.Fragment,{key:"separator"}," "),o.createElement(f.NumericTextBox,{key:"monthday-day",min:1,max:31,disabled:"monthday"!==L,value:j,onChange:q,width:"auto"})]},{value:"weekday",label:" ",children:[o.createElement(h.DropDownList,{key:"yearly-weekday-offset",textField:"text",dataItemKey:"value",disabled:"weekday"!==L,data:N,value:M,onChange:X,style:{width:"auto"}}),o.createElement(o.Fragment,{key:"yearly-separator-1"}," "),o.createElement(h.DropDownList,{key:"yearly-weekday-day",textField:"text",dataItemKey:"value",disabled:"weekday"!==L,value:T,data:I,onChange:W,style:{width:"auto"}}),o.createElement(o.Fragment,{key:"yearly-separator-2"}," "),o.createElement("span",{key:"yearly-weekday-of-label"},E(a.recurrenceEditorYearlyOf,!0)," "),o.createElement(o.Fragment,{key:"yearly-separator-3"}," "),o.createElement(h.DropDownList,{key:"yearly-weekday-month",textField:"text",dataItemKey:"value",disabled:"weekday"!==L,value:P,data:_,onChange:Y,style:{width:"auto"}})]}]}))),"never"!==x&&o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,null,E(a.recurrenceEditorEndLabel,!0)),o.createElement("div",{className:"k-form-field-wrap"},o.createElement(f.RadioGroup,{item:g,value:R,onChange:G,data:[{value:"never",label:E(a.recurrenceEditorEndNever,!0)},{value:"count",label:E(a.recurrenceEditorEndAfter,!0),children:[o.createElement(o.Fragment,{key:"separator-1"}," "),o.createElement(f.NumericTextBox,{key:"endrule-after-editor",id:"k-endrule-after",min:1,width:"70px",value:"count"===R?S.count:b,onChange:H,disabled:"count"!==R}),o.createElement(o.Fragment,{key:"separator-2"}," "),o.createElement(p.Label,{key:"endrule-after-label",className:"k-radio-label",editorId:"k-endrule-after"},E(a.recurrenceEditorEndOccurrence,!0))]},{value:"until",label:E(a.recurrenceEditorEndOn,!0),children:[o.createElement(o.Fragment,{key:"separator"}," "),o.createElement(m.DatePicker,{key:"k-endrule-until-editor",id:"k-endrule-until",disabled:"until"!==R,min:e.start,value:"until"===R?F:l.toLocalDate(O),onChange:U,width:"auto"})]}]}))))};var g=function(e){return o.createElement("li",r({},e,{style:{display:"flex",alignItems:"center",minHeight:30}}),e.children)};t.RecurrenceEditor.defaultProps={value:""},t.RecurrenceEditor.displayName="KendoReactSchedulerRepeatEditor"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(5);t.RecurrenceFrequencyEditor=function(e){var t=e.value,n=e.data,s=e.onChange,l=o(e,["value","data","onChange"]),u=i.useCallback((function(e){s&&s.call(void 0,e.target.dataset.value)}),[s]);return i.createElement(a.ButtonGroup,r({width:"100%"},l),n.map((function(e){return i.createElement(a.Button,{type:"button",key:e.value,selected:e.value===t,onClick:u,"data-value":e.value,togglable:!0},e.text)})))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(5),s=n(59);t.RecurrenceRepeatOnWeekEditor=function(e){var t=r({},l,e),n=t.value,u=(t.data,t.onChange,o(t,["value","data","onChange"])),c=function(t){var r=Number(t.target.dataset.key);e.onChange&&e.onChange.call(void 0,n.some((function(e){return e===r}))?n.filter((function(e){return e!==r})):n.concat([r]))};return i.createElement(i.Fragment,null,i.createElement(a.ButtonGroup,r({width:"auto"},u),(e.data||l.data).map((function(e){return i.createElement(a.Button,{type:"button",key:e.value,"data-key":e.value,selected:n.some((function(t){return t===e.value})),togglable:!0,onClick:c},s.capitalize(e.text))}))))};var l={data:[],value:[]};t.RecurrenceRepeatOnWeekEditor.defaultProps=l},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(45),a=n(7);t.ResourceEditor=function(e){var t=e.multiple?i.MultiSelect:i.DropDownList,n=o.useCallback((function(t){var n=t.target.props.dataItemKey,r=e.multiple?(t.target.value||[]).map((function(e){return e[n]})):t.target.value[n];e.onChange.call(void 0,{value:r})}),[e.multiple,e.onChange]),s=o.useCallback((function(t,n){var i=o.createElement(o.Fragment,null,e.colorField&&o.createElement("span",{key:1,className:"k-scheduler-mark",style:{backgroundColor:n.dataItem[e.colorField],marginRight:a.isPresent(n.dataItem[e.valueField])?"8px":"4px"}}," "),o.createElement("span",{key:2},"  ",t.props.children));return o.cloneElement(t,r({},t.props),i)}),[e.colorField,e.valueField]),l=o.useCallback((function(t,n){var r=o.createElement(o.Fragment,null,e.colorField&&n&&o.createElement("span",{key:1,className:"k-scheduler-mark",style:{backgroundColor:n[e.colorField],marginRight:n[e.valueField]?"8px":"4px"}}," "),t.props.children);return o.cloneElement(t,{},r)}),[e.colorField,e.valueField]),u=Array.isArray(e.value)?e.data.filter((function(t){return e.value.some((function(n){return t[e.valueField]===n}))})):e.data.find((function(t){return t[e.valueField]===e.value}));return o.createElement(t,{value:u,onChange:n,data:e.data,textField:e.textField,dataItemKey:e.valueField,valid:e.valid,validationMessage:e.validationMessage,itemRender:s,valueRender:l})}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(33),s=n(3),l=n(13);t.ZonedDateTime=function(e){var t=e.as,n=void 0===t?d.as:t,a=o(e,["as"]),s=l.useSchedulerPropsContext().timezone;return i.createElement(n,r({},a,{value:u(a.value,s),onChange:function(e){a.onChange&&a.onChange({value:c(e.target.value,s)})}}))};var u=function(e,t){return e?s.toLocalDate(s.ZonedDate.fromLocalDate(e,t).toUTCDate()):e},c=function(e,t){return e?s.ZonedDate.fromUTCDate(new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())),t).toLocalDate():e},d={as:a.DateTimePicker}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(10),i=n(2);t.useSchedulerSlot=function(e,t){var n=e._ref,a=r.useRef(null),s=r.useRef(null),l=o.useSchedulerViewSlotsContext()[1];return r.useImperativeHandle(a,(function(){return{element:s.current,props:e}})),r.useImperativeHandle(t,(function(){return a.current})),r.useImperativeHandle(n,(function(){return a.current})),r.useEffect((function(){return l({type:i.COLLECTION_ACTION.add,item:a}),function(){l({type:i.COLLECTION_ACTION.remove,item:a})}})),{slot:a,element:s}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(100),a=n(11);t.TimelineView=function(e){return o.createElement(i.MultiDayTimelineView,r({},e))},t.defaultProps={name:"timeline",title:function(e){return e.toLanguageString(a.timelineViewTitle,a.messages[a.timelineViewTitle])},dateRange:i.defaultProps.dateRange,step:1,slotDuration:60,slotDivisions:2,numberOfDays:1,selectedDateFormat:"{0:D}",selectedShortDateFormat:"{0:d}"},t.TimelineView.defaultProps=t.defaultProps,t.TimelineView.displayName="KendoReactSchedulerTimelineView"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(23),a=n(14),s=n(3),l=n(41),u=n(101),c=n(102),d=n(24),p=n(7),f=n(2),h=n(25),m=n(37),v=n(26),g=n(27),y=n(22),b=n(12),k=n(4),C=n(29),O=n(13),w=n(21),E=n(71),S=n(32),D=n(42);t.MultiDayTimelineView=function(e){var n=O.useSchedulerPropsContext(),x=n.group,I=n.timezone,T=n.resources,_=o.useRef(null),P=o.useRef(null),N=e.editItem||C.SchedulerEditItem,M=e.editSlot||y.SchedulerEditSlot,R=o.useRef(null),j=O.useSchedulerDataContext()[0],F=O.useSchedulerOrientationContext(),A=O.useSchedulerGroupsContext(),L=O.useSchedulerDateRangeContext(),V=O.useSchedulerFieldsContext(),B=k.useInternationalization(),z=e.showWorkHours,H=e.slotDivisions||t.defaultProps.slotDivisions,U=e.slotDuration||t.defaultProps.slotDuration,K=B.parseDate(e.workDayStart||e.isWorkDayStart||t.defaultProps.isWorkDayStart),W=B.parseDate(e.workDayEnd||e.isWorkDayEnd||t.defaultProps.isWorkDayEnd),q=B.parseDate(e.startTime||t.defaultProps.startTime),Y=B.parseDate(e.endTime||t.defaultProps.endTime),G=o.useMemo((function(){return z?K:q}),[z,K,q]),Z=o.useMemo((function(){return z?W:Y}),[z,W,Y]),X=o.useMemo((function(){return h.toRanges(L,{step:s.MS_PER_DAY,timezone:I})}),[L.start.getTime(),L.end.getTime(),I]),Q=o.useMemo((function(){return m.toSlots(L,{step:U/H*s.MS_PER_MINUTE},{groups:A,ranges:X}).filter((function(e){return p.isInTimeRange(e.zonedStart,G,Z)||G.getTime()===Z.getTime()}))}),[A,X,L.start.getTime(),L.end.getTime(),I,U,H,G.getTime(),Z.getTime()]),$=o.useMemo((function(){return v.toOccurrences(j,{dateRange:L,fields:V,timezone:I})}),[j,L.start.getTime(),L.end.getTime(),V,I]),J=o.useMemo((function(){return g.toItems($,{timezone:I},{groups:A,ranges:X}).filter((function(e){return G.getTime()===Z.getTime()||p.isInTimeRange(e.zonedStart,G,Z)||p.isInTimeRange(e.zonedEnd,G,Z)||p.isInTimeRange(new Date(e.zonedEnd.getTime()-(e.zonedEnd.getTime()-e.zonedStart.getTime())/2),G,Z)}))}),[$,I,A,X,G.getTime(),Z.getTime()]);o.useMemo((function(){return p.mapItemsToSlots(J,Q,!0)}),[J,Q]),o.useMemo((function(){return p.mapSlotsToItems(J,Q,!0)}),[J,Q]);var ee=("horizontal"===F?Q.length:Q.length/A.length)*((e.columnWidth||t.defaultProps.columnWidth)+b.BORDER_WIDTH),te=o.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(){return o.createElement(o.Fragment,null,o.createElement("div",{className:"k-scheduler-row"},X.map((function(t,n){return o.createElement(S.DateHeaderCell,{as:e.dateHeaderCell,key:n,date:t.zonedStart,start:t.start,end:t.end,format:"m"})}))),o.createElement("div",{className:"k-scheduler-row",ref:_},X.map((function(t,n){return Q.filter((function(e){return 0===e.group.index&&e.range.index===n})).map((function(t){return t.zonedStart.getMinutes()%U==0?o.createElement(D.TimeHeaderCell,{key:t.index,as:e.timeHeaderCell,format:"t",date:t.zonedStart,start:t.zonedStart,end:t.zonedEnd}):null}))}))))})),ne=o.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return o.createElement("div",{className:"k-scheduler-row"},X.map((function(t,i){return Q.filter((function(e){return e.group.index===n&&e.range.index===i})).map((function(t,a,s){return o.createElement(M,r({key:t.start.getTime()+":"+t.group.index,slot:e.slot,viewSlot:e.viewSlot},t,{form:e.form,onDataAction:e.onDataAction,isWorkHour:p.isInTimeRange(t.zonedStart,K,W),col:"horizontal"===F?i*s.length+a+s.length*X.length*(n||0):i*s.length+a,row:"horizontal"===F?0:n||0,expandable:!0,editable:e.editable}))}))})))})),re=o.useMemo((function(){return f.classNames("k-scheduler-timeline-view",e.className)}),[e.className]);return a.useCellSync({element:R,selector:".k-resource-cell",attribute:"data-depth-index",explicitDepth:!0}),a.useRowSync({element:R,selector:".k-resource-row",horizontalAttribute:"data-depth-index",verticalAttribute:"data-resource-index",applyTo:".k-resource-cell"}),o.createElement(o.Fragment,null,o.createElement(i.BaseView,{ref:R,id:e.id,style:r({},e.style),className:re,props:e,slots:Q,ranges:X},o.createElement("div",{className:"k-scheduler-head",style:{width:ee}},"horizontal"===F?o.createElement(l.HorizontalResourceIterator,{nested:!0,group:x,resources:T,rowContent:u.TimelineViewRowContent},te):o.createElement(d.VerticalResourceIterator,{wrapGroup:!0,group:x,resources:T},te)),o.createElement("div",{className:"k-scheduler-body",style:{width:ee},ref:P},"horizontal"===F?o.createElement(l.HorizontalResourceIterator,{group:x,resources:T,rowContent:c.TimelineViewAllEventsRowContent},ne,o.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return e.currentTimeMarker&&p.intersects(p.first(X).start,p.last(X).end,new Date,new Date,!0)&&o.createElement(E.CurrentTimeMarker,{groupIndex:n,attachArrow:_,vertical:!0})}))):o.createElement(d.VerticalResourceIterator,{nested:!0,wrapGroup:!0,group:x,resources:T},ne),"vertical"===F&&e.currentTimeMarker&&p.intersects(p.first(X).start,p.last(X).end,new Date,new Date,!0)&&o.createElement(E.CurrentTimeMarker,{attachArrow:_,vertical:!0}),J.sort(p.orderSort).map((function(t){return o.createElement(N,r({key:t.isRecurring?t.uid+":"+t.group.index+":"+t.range.index+":"+t.originalStart:t.uid+":"+t.group.index+":"+t.range.index},t,{format:"t",form:e.form,onDataAction:e.onDataAction,item:e.item,viewItem:e.viewItem,editable:e.editable,ignoreIsAllDay:!0,vertical:!1}))})))))};t.defaultProps={name:"multi-day-timeline",title:"Multi Day Timeline",currentTimeMarker:!0,dateRange:function(e){var t=e.date,n=e.numberOfDays,r=void 0===n?1:n,o=e.timezone,i=s.ZonedDate.fromLocalDate(t,o),a=s.getDate(i),l=s.addDays(a,r),u=s.ZonedDate.fromUTCDate(p.toUTCDateTime(a),o),c=s.ZonedDate.fromUTCDate(p.toUTCDateTime(l),o);return{start:new Date(u.getTime()),end:new Date(c.getTime()),zonedStart:u,zonedEnd:c}},selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}",step:1,numberOfDays:1,startTime:"00:00",endTime:"00:00",isWorkDayStart:"8:00",isWorkDayEnd:"17:00",workWeekStart:s.Day.Monday,workWeekEnd:s.Day.Friday,slotDivisions:2,slotDuration:60,defaultShowWorkHours:!0,columnWidth:100},t.MultiDayTimelineView.defaultProps=t.defaultProps},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=r.createElement("div",{className:"k-scheduler-cell k-side-cell"});t.TimelineViewRowContent=function(e){return r.createElement(r.Fragment,null,r.createElement("div",{className:"k-sticky-cell"},o),e.children)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(11),i=n(4);t.TimelineViewAllEventsRowContent=function(e){var t=i.useLocalization();return r.createElement(r.Fragment,null,r.createElement("div",{className:"k-sticky-cell"},r.createElement("div",{className:"k-scheduler-cell k-heading-cell k-side-cell k-scheduler-times-all-day","data-range-index":0},t.toLanguageString(o.allEvents,o.messages[o.allEvents]))),e.children)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(2),i=n(10),a=n(15),s=n(20),l=n(7);!function(e){e.set="FORM_ITEM_SET",e.setMaster="FORM_ITEM_SET_MASTER",e.reset="FORM_ITEM_RESET",e.complete="FORM_ITEM_COMPLETE"}(r=t.FORM_ITEM_ACTION||(t.FORM_ITEM_ACTION={})),t.useFormItem=function(e,t){var n=a.useControlledState.apply(void 0,t),u=n[0],c=n[1],d=i.useSchedulerFieldsContext(),p=i.useSchedulerDataContext()[0];return[u,c,function(t,n){var i;switch(t.type){case r.set:i=t.payload;break;case r.reset:i=null;break;case r.setMaster:i=o.clone(l.findMaster(t.payload,d,p));break;case r.complete:e.onDataAction&&u&&(e.onDataAction.call(void 0,{type:s.DATA_ACTION.update,series:e.series,dataItem:t.payload}),i=null);break;default:i=u}c(i,n)}]}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(43),a=n(11);t.DayView=function(e){return o.createElement(i.MultiDayView,r({},e))};var s={name:"day",title:function(e){return e.toLanguageString(a.dayViewTitle,a.messages[a.dayViewTitle])},dateRange:i.defaultProps.dateRange,step:1,numberOfDays:1,slotDuration:60,slotDivisions:2,selectedDateFormat:"{0:D}",selectedShortDateFormat:"{0:d}"};t.DayView.defaultProps=s,t.DayView.displayName="KendoReactSchedulerDayView"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.DayViewGroupRowContent=function(e){return r.createElement(r.Fragment,null,r.createElement("div",{className:"k-scheduler-cell k-side-cell","data-range-index":e.rangeIndex}),e.children)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(4),i=n(11);t.DayViewAllDayRowContent=function(e){var t=o.useLocalization();return r.createElement(r.Fragment,null,r.createElement("div",{className:"k-scheduler-cell k-heading-cell k-side-cell k-scheduler-times-all-day"},t.toLanguageString(i.allDay,i.messages[i.allDay])),e.children)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(2),i=n(42);t.DayViewRowContent=function(e){var t=e.slot,n=e.children;return r.createElement(r.Fragment,null,e.isMaster?r.createElement(i.TimeHeaderCell,{as:e.timeHeaderCell,date:t.zonedStart,start:t.zonedStart,end:t.zonedEnd,className:o.classNames("k-side-cell",{"k-major-cell":!e.isLast})}):r.createElement("div",{className:"k-scheduler-cell k-heading-cell k-side-cell"}),n)}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(43),a=n(12),s=n(3),l=n(11),u=n(7);t.WeekView=function(e){return o.createElement(i.MultiDayView,r({},e,{step:a.DAYS_IN_WEEK_COUNT,numberOfDays:e.numberOfDays}))};t.defaultProps={name:"week",slotDuration:60,slotDivisions:2,numberOfDays:a.DAYS_IN_WEEK_COUNT,dateRange:function(e){var t=e.intl,n=e.date,r=e.timezone,o=s.ZonedDate.fromLocalDate(n,r),i=function(e){return s.getDate(e)}(s.firstDayInWeek(o,t.firstDay())),l=function(e,t){return s.getDate(s.addDays(e,t||1))}(i,a.DAYS_IN_WEEK_COUNT),c=s.ZonedDate.fromUTCDate(u.toUTCDateTime(i),r),d=s.ZonedDate.fromUTCDate(u.toUTCDateTime(l),r);return{start:new Date(c.getTime()),end:new Date(d.getTime()),zonedStart:c,zonedEnd:d}},title:function(e){return e.toLanguageString(l.weekViewTitle,l.messages[l.weekViewTitle])},selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}"},t.WeekView.defaultProps=t.defaultProps,t.WeekView.displayName="KendoReactSchedulerWeekView"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(3),s=n(12),l=n(43),u=n(11),c=n(7),d=n(19);t.WorkWeekView=function(e){var t=d.useSchedulerDateRangeContext(),n=Math.round((t.end.getTime()-t.start.getTime())/a.MS_PER_DAY);return i.createElement(l.MultiDayView,r({},e,{step:s.DAYS_IN_WEEK_COUNT,numberOfDays:n}))};var p={name:"work-week",slotDuration:60,slotDivisions:2,numberOfDays:7,dateRange:function(e){e.intl;var t=e.date,n=e.timezone,r=o(e,["intl","date","timezone"]),i=a.ZonedDate.fromLocalDate(t,n),l=void 0!==r.workWeekStart?r.workWeekStart:a.Day.Monday,u=void 0!==r.workWeekEnd?r.workWeekEnd:a.Day.Friday,d=u<l?s.DAYS_IN_WEEK_COUNT+u-l+1:u-l+1,p=a.getDate(function(e,t){void 0===t&&(t=a.Day.Sunday);for(var n=e.clone();n.getDay()!==t;)n=n.addDays(-1);return n}(i,l)),f=a.addDays(p,d),h=a.ZonedDate.fromUTCDate(c.toUTCDateTime(p),n),m=a.ZonedDate.fromUTCDate(c.toUTCDateTime(f),n);return{start:new Date(h.getTime()),end:new Date(m.getTime()),zonedStart:h,zonedEnd:m}},title:function(e){return e.toLanguageString(u.workWeekViewTitle,u.messages[u.workWeekViewTitle])},workWeekStart:a.Day.Monday,workWeekEnd:a.Day.Friday,selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}"};t.WorkWeekView.defaultProps=p,t.WorkWeekView.displayName="KendoReactSchedulerWorkWeekView"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(23),s=n(3),l=n(2),u=n(24),c=n(41),d=n(7),p=n(11),f=n(22),h=n(4),m=n(12),v=n(25),g=n(37),y=n(26),b=n(27),k=n(111),C=n(29),O=n(13),w=n(21),E=n(32),S={skeleton:"dd"};t.MonthView=function(e){var t=O.useSchedulerPropsContext(),n=t.group,i=t.timezone,p=t.resources,x=e.editItem||C.SchedulerEditItem,I=e.editSlot||f.SchedulerEditSlot,T=O.useSchedulerDataContext()[0],_=O.useSchedulerDateContext()[1],P=O.useSchedulerActiveViewContext()[1],N=O.useSchedulerViewsContext(),M=O.useSchedulerGroupsContext(),R=O.useSchedulerOrientationContext(),j=O.useSchedulerDateRangeContext(),F=h.useInternationalization(),A=O.useSchedulerFieldsContext(),L=e.itemsPerSlot||D.itemsPerSlot,V=o.useMemo((function(){return v.toRanges(j,{step:s.MS_PER_DAY*m.DAYS_IN_WEEK_COUNT,timezone:i})}),[j.start.getTime(),j.end.getTime(),i]),B=o.useMemo((function(){return g.toSlots(j,{step:s.MS_PER_DAY},{groups:M,ranges:V})}),[j.start.getTime(),j.end.getTime(),M,V]),z=o.useMemo((function(){return y.toOccurrences(T,{dateRange:j,fields:A,timezone:i})}),[T,j.start.getTime(),j.end.getTime(),A,i]),H=o.useMemo((function(){return b.toItems(z,{timezone:i},{groups:M,ranges:V})}),[z,i,M,V]),U=o.useCallback((function(e){var t=N.find((function(e){return"day"===e.props.name}));P&&t&&t.props.name&&e.target.slot&&(P(t.props.name,e),_(e.target.slot.start,e))}),[P,N]);o.useMemo((function(){return d.mapItemsToSlots(H,B,!0)}),[H,B]),o.useMemo((function(){return d.mapSlotsToItems(H,B,!0)}),[H,B]);var K=o.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return o.createElement("div",{className:"k-scheduler-row",key:n},B.filter((function(e){return e.group.index===n&&0===e.range.index})).map((function(t,n){return o.createElement(E.DateHeaderCell,{as:e.dateHeaderCell,key:n,"data-dayslot-index":n,date:s.ZonedDate.fromLocalDate(new Date(t.zonedEnd.getTime()-(t.zonedEnd.getTime()-t.zonedStart.getTime())/2),i),start:t.start,end:t.end,format:{skeleton:"EEEE"}})})))})),W=o.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return V.map((function(t,i){return o.createElement("div",{className:"k-scheduler-row",key:i},B.filter((function(e){return e.group.index===n&&e.range.index===i})).map((function(t,a,s){return o.createElement(I,r({slot:e.slot,viewSlot:e.viewSlot,key:a,form:e.form},t,{expandable:{offsetTop:30,offsetBottom:L<t.items.length?15:0},onDataAction:e.onDataAction,col:"horizontal"===R?s.length*(n||0)+a:a,row:"horizontal"===R?i:V.length*(n||0)+i,editable:e.editable}),o.createElement("span",{className:"k-link k-nav-day"},F.formatDate(new Date(t.end.getTime()-(t.end.getTime()-t.start.getTime())/2),S)),L<t.items.length&&o.createElement(k.ShowMoreItemsButton,{slot:t,onClick:U}))})))}))}));return o.createElement(a.BaseView,{props:e,slots:B,ranges:V,className:l.classNames("k-scheduler-monthview",e.className)},o.createElement("div",{className:"k-scheduler-head"},"horizontal"===R?o.createElement(c.HorizontalResourceIterator,{nested:!0,resources:p,group:n},K):o.createElement(u.VerticalResourceIterator,{resources:p,group:n},K)),o.createElement("div",{className:"k-scheduler-body"},"horizontal"===R?o.createElement(c.HorizontalResourceIterator,{resources:p,group:n},W):o.createElement(u.VerticalResourceIterator,{nested:!0,resources:p,group:n},W),H.filter((function(e){return null===e.order||e.order<L})).sort(d.orderSort).map((function(t){return o.createElement(x,r({item:e.item,viewItem:e.viewItem,form:e.form,key:t.isRecurring?t.uid+":"+t.group.index+":"+t.range.index+":"+t.originalStart:t.uid+":"+t.group.index+":"+t.range.index},t,{onDataAction:e.onDataAction,style:{transform:"translateY(30px)"},vertical:!1,editable:e.editable,ignoreIsAllDay:!0}))}))))};var D={name:"month",dateRange:function(e){var t=e.intl,n=e.date,r=e.timezone,o=s.firstDayInWeek(s.firstDayOfMonth(s.getDate(n)),t.firstDay()),i=s.addDays(s.firstDayInWeek(s.lastDayOfMonth(s.getDate(n)),t.firstDay()),m.DAYS_IN_WEEK_COUNT),a=s.ZonedDate.fromUTCDate(d.toUTCDateTime(o),r),l=s.ZonedDate.fromUTCDate(d.toUTCDateTime(i),r);return{start:new Date(a.getTime()),end:new Date(l.getTime()),zonedStart:a,zonedEnd:l}},slotDuration:1440,slotDivision:1,itemsPerSlot:2,numberOfDays:31,title:function(e){return e.toLanguageString(p.monthViewTitle,p.messages[p.monthViewTitle])},selectedDateFormat:"{0:Y}",selectedShortDateFormat:"{0:Y}"},x={itemsPerSlot:i.number};t.MonthView.defaultProps=D,t.MonthView.propTypes=x,t.MonthView.displayName="KendoReactSchedulerMonthView"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);t.ShowMoreItemsButton=o.forwardRef((function(e,t){var n=o.useRef(null),i=o.useRef(null);o.useImperativeHandle(n,(function(){return r({element:i.current},e)})),o.useImperativeHandle(t,(function(){return n.current}));var a=o.useCallback((function(t){e.onClick&&n.current&&e.onClick.call(void 0,{target:n.current,syntheticEvent:t})}),[n,e.slot,e.onClick]);return o.createElement("button",{ref:i,tabIndex:-1,className:"k-more-events k-button",onClick:a},o.createElement("span",{className:"k-icon k-i-more-horizontal"}))})),t.ShowMoreItemsButton.displayName="KendoReactSchedulerShowMoreItemsButton"}])}));