@progress/kendo-react-dropdowns 2.7.0-dev.201902260733 → 2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prop-types"),require("react"),require("react-transition-group"),require("react-dom"),require("@progress/kendo-react-intl"),require("react-dom/server")):"function"==typeof define&&define.amd?define(["prop-types","react","react-transition-group","react-dom","@progress/kendo-react-intl","react-dom/server"],t):"object"==typeof exports?exports.KendoReactDropdowns=t(require("prop-types"),require("react"),require("react-transition-group"),require("react-dom"),require("@progress/kendo-react-intl"),require("react-dom/server")):e.KendoReactDropdowns=t(e.PropTypes,e.React,e.ReactTransitionGroup,e.ReactDOM,e.KendoReactIntl,e.ReactDOMServer)}(window,function(e,t,n,i,o,r){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},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=13)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t);var i,o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return!0!==e&&!!e}).map(function(e){return Array.isArray(e)?o.apply(void 0,e):"object"==typeof e?Object.keys(e).map(function(t,n){return e[n]||e[t]&&t||null}).filter(function(e){return null!==e}).join(" "):e}).filter(function(e){return!!e}).join(" ")},r=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},a={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(){},l=function(){return function(){}}(),p=n(1),u=n(0),d=(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={focused:!1},t.handleFocus=function(e){t.setState({focused:!0})},t.handleBlur=function(e){t.setState({focused:!1})},t}return d(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.id,i=e.className,r=e.value,a=e.placeholder,s=e.valid,l=e.style,u=o({"k-textbox-container":!0,"k-state-focused":this.state.focused,"k-state-empty":!(r||a),"k-state-invalid":!s&&void 0!==s},i);return p.createElement("span",{className:u,onFocus:this.handleFocus,onBlur:this.handleBlur,style:l},this.props.children,t?n?p.createElement("label",{htmlFor:n,className:"k-label"},t):p.createElement("span",{className:"k-label"},t):null)},t.propTypes={label:u.string,id:u.string,value:u.string,placeholder:u.string,valid:u.bool},t}(p.Component);function h(e,t,n,i){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,i))}}var f=function(){return"undefined"==typeof window};n.d(t,"classNames",function(){return o}),n.d(t,"guid",function(){return r}),n.d(t,"Keys",function(){return a}),n.d(t,"noop",function(){return s}),n.d(t,"FloatingLabel",function(){return c}),n.d(t,"FormComponent",function(){return l}),n.d(t,"dispatchEvent",function(){return h}),n.d(t,"isServerRendering",function(){return f})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return null!=e};t.isPresent=i;t.sameCharsOnly=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0};t.shuffleData=function(e,t,n){var i=e;return n&&(i=[n].concat(i)),i.slice(t).concat(i.slice(0,t))};t.matchText=function(e,t,n){if(!i(e))return!1;var o=String(e);return n&&(o=o.toLowerCase()),0===o.indexOf(t)};t.scrollToItem=function(e,t,n,i,o){var r=e.offsetHeight,a=t*n+(o?i-e.scrollTop:0);if(o){var s=0;a+t>r?s=a+t-r:a<0&&(s=a),0!==s?e.scrollTop+=s:0===e.scrollTop&&0!==i&&(e.scrollTop=i)}else a+t>r+e.scrollTop?e.scrollTop=a+t-r:a<e.scrollTop&&(e.scrollTop-=e.scrollTop-a)};var o=function(e,t,n){var i=-1;if(t){t=t.toLowerCase();for(var o=0;o<e.length;o++){var r=(a(e[o],n)||"")+"";if(r&&r.toLowerCase().startsWith(t)){i=o;break}}}return i};t.itemIndexStartsWith=o;var r=function(e,t,n,i){void 0===i&&(i=!1);var o=function(e){return i?e:e.toLowerCase()};return e.findIndex(function(e){return n?o(a(e,n))===o(t):o(t)===o(e.toString())})};t.getItemIndexByText=r;var a=function(e,t){if(t&&i(e)){var n=t.split("."),o=e;return n.forEach(function(e){o=o?o[e]:void 0}),o}return e};t.getItemValue=a;t.matchDataCollections=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 i=0;i<e.length;i++)if(!s(e[i],t[i],n))return!1;return!0};t.removeDataItems=function(e,t,n){t.forEach(function(t){var i=e.findIndex(function(e){return s(e,t,n)});-1!==i&&e.splice(i,1)})};var s=function(e,t,n){return e===t||i(e)===i(t)&&a(e,n)===a(t,n)};t.areSame=s;t.getFocusedItem=function(e,t,n){if(t){var i=r(e,t,n,!0);return-1!==i?e[i]:e[o(e,t,n)]}return e[0]};t.suggestValue=function(e,t,n){void 0===t&&(t=[]);var i="";if(e){var r=t[o(t,e,n)];if(r){var s=a(r,n);e.toLowerCase()!==s.toLowerCase()&&(i=s.substring(e.length))}}return i};t.preventDefaultNonInputs=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()}},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(26),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.onMouseDown,i=e.onBlur,o=e.width,l=e.dir,p=e.popupSettings;return a.createElement(s.Popup,r({style:{width:o,direction:l}},p),a.createElement("div",{onMouseDown:n,onBlur:i},t))},t}(a.Component);t.default=l},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(17),s=n(3),l=n(10),p=n(11),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.renderItems=function(){var e=this,t=this.props,n=t.textField,i=t.valueField,o=t.optionPrefix,l=t.skip,p=void 0===l?0:l,u=t.focusedIndex,d=t.highlightSelected,c=void 0===d||d,h=t.value,f=t.itemRender,v=Array.isArray(h);return this.props.data.map(function(t,l){var d=p+l,g=c&&(!v&&s.areSame(t,h,i)||v&&-1!==h.findIndex(function(e){return s.areSame(e,t,i)}));return r.createElement(a.default,{id:o+"-"+d,dataItem:t,selected:g,focused:u===l,index:d,key:d,onClick:e.props.onClick,textField:n,renderer:f})})},t.prototype.renderNoValueElement=function(e){var t=this.props.noDataRender,n=r.createElement("div",{className:"k-nodata"},r.createElement("div",null,e.toLanguageString(p.nodata,p.messages[p.nodata])));return t?t.call(void 0,n):n},t.prototype.render=function(){var e=l.provideLocalizationService(this),t=this.props,n=t.id,i=t.show,o=t.wrapperCssClass,a=t.wrapperStyle,s=t.listStyle,p=t.listRef,u=this.renderItems();return u.length?r.createElement("div",{className:o,style:a,ref:function(e){return e&&e.setAttribute("unselectable","on")}},r.createElement("ul",{id:n,role:"listbox","aria-hidden":!i||void 0,className:"k-list k-reset",ref:p,style:s},u)):this.renderNoValueElement(e)},t}(r.Component);t.default=u,l.registerForLocalization(u)},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=n(0),a=n(18),s=n(19),l=n(3),p=n(2),u=function(){function e(e){var t=this;this.vs=new a.default,this.navigation=new s.Navigation,this.handleItemClick=function(e,n){var i=t.initState();i.syntheticEvent=n,t.component.handleItemSelect(e,i),t.togglePopup(i),t.applyState(i)},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 i=t.component.props,o=i.textField;i.filterable&&n.events.push({type:"onFilterChange",filter:{field:o,operator:"contains",ignoreCase:!0,value:e}})},this.togglePopup=function(e){var n=t.component.props,i=void 0!==n.opened?n.opened:t.component.state.opened;void 0===n.opened&&(e.data.opened=!i),i?e.events.push({type:"onClose"}):(e.events.push({type:"onOpen"}),t.calculatePopupWidth())},this.pageChange=function(e,n){var i=t.initState();i.syntheticEvent=n,t.triggerOnPageChange(i,e.skip,e.take),t.applyState(i)},this.scrollToVirtualItem=function(e,n){var i=t.vs;if(i.enabled=!1,0===e.skip)i.reset();else if(e.skip+e.pageSize===e.total)i.scrollToEnd();else{var o=i.translate;0===o&&(i.calcScrollElementHeight(),o=i.itemHeight*e.skip,i.translateTo(o-i.itemHeight)),i.container&&(i.container.scrollTop=o),t.scrollToItem(n,!0)}setTimeout(function(){return i.enabled=!0},10)},this.renderScrollWrapper=function(e){var n=t.getPopupSettings(),i=t.vs;return i.enabled?o.createElement("div",{onScroll:i.scrollHandler,ref:i.scrollerRef,style:{height:n.height,overflowY:"scroll"}},e):e},this.renderScrollElement=function(){var e=t.vs;return e.enabled&&o.createElement("div",{ref:function(t){return e.scrollElement=t},key:"scrollElementKey"})},this.listBoxId=p.guid(),this.optionPrefix=p.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||{},i=t.width,o=!0===e.opened;void 0===i&&this.calculatePopupWidth(),void 0===e.dir&&void 0===n.direction&&(this.calculateDir(),o=!0),o&&this.component.forceUpdate()},e.prototype.calculateDir=function(){this.component.element&&(this.dirCalculated=window.getComputedStyle(this.component.element).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,i=n?n.children[0]:void 0;if(i&&e>=0){var o=this.vs,r=o.container||n.parentNode,a=void 0!==t?t:o.enabled;l.scrollToItem(r,i.offsetHeight,e,o.translate,a)}},e.prototype.initState=function(){return{data:{},events:[],syntheticEvent:void 0}},e.prototype.applyState=function(e){var t=this,n={syntheticEvent:e.syntheticEvent,nativeEvent:e.syntheticEvent?e.syntheticEvent.nativeEvent:void 0,target:this.component};Object.keys(e.data).length>0&&this.component.setState(e.data),e.events.forEach(function(e){var o=e.type;delete e.type;var r=t.component.props[o];r&&r.call(void 0,i({},n,e))})},e.prototype.triggerOnPageChange=function(e,t,n){var i=this.component.props.virtual;if(i){var o=Math.min(Math.max(0,t),Math.max(0,i.total-n));o!==i.skip&&e.events.push({type:"onPageChange",page:{skip:o,take:n}})}},e.prototype.triggerPageChangeCornerItems=function(e,t){var n=this.component.props,i=n.data,o=void 0===i?[]:i,r=n.dataItemKey,a=n.virtual,s=void 0!==n.opened?n.opened:this.component.state.opened;e&&a&&this.vs.enabled&&(a.skip>0&&l.areSame(e,o[0],r)?this.triggerOnPageChange(t,a.skip-1,a.pageSize):!s&&a.skip+a.pageSize<a.total&&l.areSame(e,o[o.length-1],r)&&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:r.bool,disabled:r.bool,dir:r.string,tabIndex:r.number,data:r.array,textField:r.string,className:r.string,label:r.string,loading:r.bool,popupSettings:r.shape({animate:r.oneOfType([r.bool,r.shape({openDuration:r.number,closeDuration:r.number})]),width:r.string,height:r.string}),onOpen:r.func,onClose:r.func,onFocus:r.func,onBlur:r.func,onChange:r.func,itemRender:r.func,listNoDataRender:r.func,header:r.node,footer:r.node},e.propTypes=i({},e.basicPropTypes,{value:r.any,defaultValue:r.any,filterable:r.bool,filter:r.string,virtual:r.shape({pageSize:r.number.isRequired,skip:r.number.isRequired,total:r.number.isRequired}),onFilterChange:r.func,onPageChange:r.func}),e.defaultProps={popupSettings:{animate:!0,height:"200px"},required:!1,validityStyles:!0},e}();t.default=u},function(e,t){e.exports=n},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(21),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(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,i=this.props,o=i.value,r=i.suggestedText,a=i.focused,s=this.input,l=t!==o||r!==n,p=l&&t.startsWith(o)&&!(n&&r&&n.endsWith(r));a&&s&&document.activeElement!==s&&s.focus(),r&&l&&!p&&s&&s.setSelectionRange(o.length-r.length,o.length)},t.prototype.render=function(){var e=this;return[r.createElement("span",{className:"k-searchbar",key:"searchbar"},r.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,role:"listbox",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":this.props.disabled||void 0,disabled:this.props.disabled||void 0,readOnly:this.props.readOnly||void 0,"aria-haspopup":!0,"aria-expanded":this.props.expanded||!1,"aria-owns":this.props.owns,"aria-activedescendant":this.props.activedescendant})),this.props.clearButton&&r.createElement(a.default,{onClick:this.props.clearButtonClick,key:"clearbutton"})]},t}(r.Component);t.default=s},function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.nodata="dropdowns.nodata",t.clear="dropdowns.clear",t.messages=((i={})[t.clear]="clear",i[t.nodata]="NO DATA FOUND.",i)},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(14);t.DropDownList=i.default;var o=n(20);t.ComboBox=o.default;var r=n(22);t.AutoComplete=r.default;var a=n(23);t.MultiSelect=a.default},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(2),p=n(4),u=n(15),d=n(16),c=n(5),h=n(6),f=n(3),v="Please select a value from the list!",g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.base=new h.default(t),t.searchState={word:"",last:""},t._skipFocusEvent=!1,t._filterInput=null,t._navigated=!1,t.handleItemSelect=function(e,n){var i=t.props,o=i.data,r=void 0===o?[]:o,a=i.virtual,s=i.dataItemKey,l=i.defaultItem,p=a?a.skip:0,u=-1===e&&void 0!==l?l:r[e-p],d=!f.areSame(u,t.value,s);t.triggerOnChange(u,n),d&&t.base.triggerPageChangeCornerItems(u,n)},t.renderDropDownWrapper=function(){var e=t.props,n=e.dataItemKey,i=e.data,o=void 0===i?[]:i,r=e.textField,s=e.disabled,p=e.tabIndex,u=e.loading,d=e.iconClassName,c=e.virtual,h=void 0===c?{skip:0}:c,v=e.valueRender,g=t.state.focused,m=void 0!==t.props.opened?t.props.opened:t.state.opened,y=t.value,b=o.findIndex(function(e){return f.areSame(e,y,n)}),x=f.getItemValue(y,r),O=a.createElement("span",{className:"k-input"},x),_=void 0!==v?v.call(void 0,O,y):O;return a.createElement("span",{ref:function(e){return t.base.wrapper=e},role:"listbox",tabIndex:s?void 0:p,className:l.classNames("k-dropdown-wrap",t.props.className,{"k-state-default":!s,"k-state-focused":g,"k-state-disabled":s}),style:t.props.style,onKeyDown:t.handleKeyDown,onKeyPress:t.handleKeyPress,onClick:t.handleWrapperClick,"aria-disabled":s||void 0,"aria-haspopup":!0,"aria-expanded":m||!1,"aria-owns":t.base.listBoxId,"aria-activedescendant":t.base.optionPrefix+"-"+(b+h.skip)},_,a.createElement("span",{className:"k-select"},a.createElement("span",{className:l.classNames("k-icon",d,{"k-i-arrow-s":!u&&!d,"k-i-loading":u&&!d})})),t.dummySelect(y))},t.dummySelect=function(e){return a.createElement("select",{name:t.props.name,ref:function(e){t._select=e},tabIndex:-1,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},a.createElement("option",{value:t.props.valueMap?t.props.valueMap.call(void 0,e):e}))},t.renderListContainer=function(){var e=t.props,n=e.header,i=e.footer,o=e.dir,s=t.base,u=s.getPopupSettings(),d=void 0!==t.props.opened?t.props.opened:t.state.opened,c=void 0!==t.props.virtual,h=void 0!==u.width?u.width:s.popupWidth,v={onMouseDown:f.preventDefaultNonInputs,dir:void 0!==o?o:s.dirCalculated,width:h,popupSettings:{className:l.classNames("k-list-container k-reset",u.className),animate:u.animate,anchor:t.element||void 0,show:d,open:t.onPopupOpened,close:t.onPopupClosed}};return a.createElement(p.default,r({},v),t.renderListFilter(),c?t.renderDefaultItem():void 0,c&&n,t.base.renderScrollWrapper(c?[t.renderList(),t.base.renderScrollElement()]:[t.renderDefaultItem(),n,t.renderList(),i,t.base.renderScrollElement()]),c&&i)},t.renderList=function(){var e=t.props,n=e.data,i=void 0===n?[]:n,o=e.textField,r=e.dataItemKey,s=e.virtual,l=void 0===s?{skip:0}:s,p=e.listNoDataRender,u=e.itemRender,d=t.base.vs,h=l.skip,f=void 0!==t.props.opened?t.props.opened:t.state.opened,v=t.base.getPopupSettings(),g="translateY("+d.translate+"px)";return a.createElement(c.default,{id:t.base.listBoxId,show:f,data:i.slice(),focusedIndex:t.focusedIndex(),value:t.value,textField:o,valueField:r,optionPrefix:t.base.optionPrefix,listRef:function(e){return d.list=t.base.list=e},wrapperStyle:d.enabled?{float:"left",width:"100%"}:{maxHeight:v.height},wrapperCssClass:d.enabled?void 0:"k-list-scroller",listStyle:d.enabled?{transform:g}:void 0,key:"listkey",skip:h,onClick:t.handleItemClick,itemRender:u,noDataRender:p})},t.renderListFilter=function(){var e=void 0!==t.props.filter?t.props.filter:t.state.text;return t.props.filterable&&a.createElement(u.default,{value:e,ref:function(e){return t._filterInput=e&&e.input},onChange:t.handleListFilterChange,onKeyDown:t.handleKeyDown})},t.renderDefaultItem=function(){var e=t.props,n=e.textField,i=e.defaultItem,o=e.dataItemKey;return void 0!==i&&a.createElement(d.default,{defaultItem:i,textField:n,selected:f.areSame(t.value,i,o),key:"defaultitemkey",onClick:t.handleDefaultItemClick})},t.search=function(e){clearTimeout(t._typingTimeout),t.props.filterable||(t._typingTimeout=setTimeout(function(){return t.searchState.word=""},t.props.delay),t.selectNext(e))},t.selectNext=function(e){var n,i=t.props,o=i.data,r=void 0===o?[]:o,a=i.dataItemKey,s=r.map(function(e,t){return{item:e,itemIndex:t}}),l=t.searchState.word,p=t.searchState.last,u=f.sameCharsOnly(l,p),d=s.length,c=Math.max(0,r.findIndex(function(e){return f.areSame(e,t.value,a)}));t.props.defaultItem&&(n={item:t.props.defaultItem,itemIndex:-1},d+=1,c+=1),c+=u?1:0,s=f.shuffleData(s,c,n);for(var h,v,g,m=0,y=t.props,b=y.textField,x=y.ignoreCase;m<d;m++)if(h=f.getItemValue(s[m].item,b),v=u&&f.matchText(h,p,x),g=f.matchText(h,l,x),v||g){m=s[m].itemIndex;break}if(m!==d){var O=t.base.initState();O.syntheticEvent=e,t.handleItemSelect(m,O),t.applyState(O),t._valueDuringOnChange=void 0}},t.handleKeyDown=function(e){var n=t.props,i=n.data,o=void 0===i?[]:i,r=n.filterable,a=n.disabled,s=n.virtual,p=void 0===s?{skip:0,total:0,pageSize:0}:s,u=void 0!==t.props.opened?t.props.opened:t.state.opened,d=e.keyCode,c=d===l.Keys.home||d===l.Keys.end,h=d===l.Keys.up||d===l.Keys.down,f=!u&&(e.altKey&&d===l.Keys.down||d===l.Keys.enter||d===l.Keys.space),v=u&&(e.altKey&&d===l.Keys.up||d===l.Keys.esc),g=d===l.Keys.left||d===l.Keys.right,m=h||!r&&(g||c),y=t.base.initState();if(y.syntheticEvent=e,!a){if(c&&t.base.vs.enabled)d===l.Keys.home?0!==p.skip?(t.base.triggerOnPageChange(y,0,p.pageSize),t._navigated=!0):t.triggerOnChange(o[0],y):p.skip<p.total-p.pageSize?(t.base.triggerOnPageChange(y,p.total-p.pageSize,p.pageSize),t._navigated=!0):t.triggerOnChange(o[o.length-1],y);else if(u&&d===l.Keys.enter){var b=t.focusedIndex();void 0!==b&&t.handleItemSelect(b,y),t.base.togglePopup(y),e.preventDefault()}else f||v?(t.base.togglePopup(y),e.preventDefault()):m&&(t.onNavigate(y,d),e.preventDefault());t.applyState(y)}},t.handleItemClick=function(e,n){t.base.handleItemClick(e,n),t._valueDuringOnChange=void 0},t.handleFocus=function(e){t._skipFocusEvent||t.base.handleFocus(e)},t.handleBlur=function(e){if(!t._skipFocusEvent&&t.state.focused){var n=void 0!==t.props.opened?t.props.opened:t.state.opened,i=t.base.initState();i.syntheticEvent=e,i.data.focused=!1,i.events.push({type:"onBlur"}),n&&t.base.togglePopup(i),t.applyState(i)}},t.handleDefaultItemClick=function(e){var n=t.base.initState();n.syntheticEvent=e,t.base.togglePopup(n),t.triggerOnChange(t.props.defaultItem,n),t.applyState(n)},t.handleWrapperClick=function(e){var n=t.base.initState();n.syntheticEvent=e,t.state.focused||(n.data.focused=!0),t.base.togglePopup(n),t.applyState(n)},t.handleKeyPress=function(e){if(!t.props.filterable&&0!==e.which&&e.keyCode!==l.Keys.enter){var n=String.fromCharCode(e.charCode||e.keyCode);t.props.ignoreCase&&(n=n.toLowerCase())," "===n&&e.preventDefault(),t.searchState={word:t.searchState.word+n,last:t.searchState.last+n},t.search(e)}},t.handleListFilterChange=function(e){var n=t.base.initState();n.syntheticEvent=e,void 0===t.props.filter&&(n.data.text=e.target.value),t.base.filterChanged(e.target.value,n),t.applyState(n)},t.onPopupOpened=function(){t._filterInput&&t.focusElement(t._filterInput)},t.onPopupClosed=function(){t.state.focused&&setTimeout(function(){t.state.focused&&t.base.wrapper&&t.focusElement(t.base.wrapper)})},t.setValidity=function(){t._select&&t._select.setCustomValidity&&t._select.setCustomValidity(t.validity.valid?"":t.props.validationMessage||v)},t}return o(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 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),f.isPresent(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,i=e.dataItemKey,o=this.value;return n.findIndex(function(e){return f.areSame(e,o,i)})},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,i=n.data,o=void 0===i?[]:i,r=n.dataItemKey,a=n.virtual,s=e.virtual?e.virtual.total:0,l=void 0!==this.props.opened?this.props.opened:this.state.opened,p=void 0!==e.opened?e.opened:t.opened,u=!p&&l;if(this.base.getPopupSettings().animate||u&&this.onPopupOpened(),a&&a.total!==s)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var d=this.value,c=void 0!==e.value?e.value:t.value,h=o.findIndex(function(e){return f.areSame(e,d,r)}),v=!f.areSame(c,d,r);u&&a?this.base.scrollToVirtualItem(a,h):u&&!a?this.base.scrollToItem(h):l&&p&&d&&v&&!this._navigated?this.base.scrollToItem(h):l&&p&&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,i=t.className,o=t.label,s=t.dir,p=t.virtual,u=void 0!==this.props.opened?this.props.opened:this.state.opened,d=f.getItemValue(this.value,this.props.textField),c=!this.validityStyles||this.validity.valid,h=this.base;h.vs.enabled=void 0!==p,void 0!==p&&(h.vs.skip=p.skip,h.vs.total=p.total,h.vs.pageSize=p.pageSize);var v=a.createElement("span",{ref:function(t){return e._element=t},className:l.classNames("k-widget k-dropdown k-header",{"k-state-invalid":!c},i),style:o?r({},n,{width:void 0}):n,dir:s,onMouseDown:u?f.preventDefaultNonInputs:void 0,onFocus:this.handleFocus,onBlur:this.handleBlur},this.renderDropDownWrapper(),this.renderListContainer());return o?a.createElement(l.FloatingLabel,{label:o,value:d,style:{width:n?n.width:void 0},valid:c,children:v}):v},t.prototype.onNavigate=function(e,t){var n=this.props,i=n.data,o=void 0===i?[]:i,r=n.defaultItem,a=n.dataItemKey,s=n.virtual,l=void 0===s?{skip:0,total:0,pageSize:0}:s,p=this.base.vs,u=this.value,d=o.findIndex(function(e){return f.areSame(e,u,a)}),c=this.base.navigation.navigate({current:l.skip+d,max:(p.enabled?l.total:o.length)-1,min:void 0!==r?-1:0,keyCode:t});void 0!==c&&this.handleItemSelect(c,e),this.applyState(e)},t.prototype.focusedIndex=function(){var e=f.isPresent(this.props.filter)?this.props.filter:this.state.text,t=this.props,n=t.data,i=void 0===n?[]:n,o=t.virtual,r=void 0===o?{skip:0}:o,a=t.dataItemKey,s=this.value,l=!(i.findIndex(function(e){return f.areSame(e,s,a)})<0&&!this.props.defaultItem);return!l&&e&&0===r.skip?i.indexOf(f.getFocusedItem(i,e,this.props.textField)):l||0!==r.skip?void 0:0},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),setTimeout(function(){return t._skipFocusEvent=!1},30)},t.prototype.triggerOnChange=function(e,t){f.areSame(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.propTypes=r({delay:s.number,ignoreCase:s.bool,iconClassName:s.string,defaultItem:s.any,valueRender:s.func,valueMap:s.func,validationMessage:s.string,required:s.bool},h.default.propTypes),t.defaultProps=r({delay:500,tabIndex:0,ignoreCase:!0},h.default.defaultProps,{required:!1}),t}(a.Component);t.default=g},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=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("span",{className:"k-list-filter"},r.createElement("input",{ref:function(t){return e.input=t},value:this.props.value||"",className:"k-textbox",onChange:this.props.onChange,onKeyDown:this.props.onKeyDown}),r.createElement("span",{className:"k-icon k-i-search"}))},t}(r.Component);t.default=a},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(2),s=n(3),l=function(e){return e.preventDefault()},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.defaultItem,i=e.textField;return r.createElement("div",{onClick:this.props.onClick,onMouseDown:l,className:a.classNames("k-list-optionlabel",{"k-state-selected":t})},s.getItemValue(n,i)||"")},t}(r.Component);t.default=p},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(2),s=n(3),l=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 o(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.renderer,i=r.createElement("li",{id:this.props.id,role:"option","aria-selected":t,className:a.classNames("k-item",{"k-state-selected":t,"k-state-focused":this.props.focused}),onClick:this.handleClick},s.getItemValue(this.props.dataItem,this.props.textField).toString());return void 0!==n?n.call(void 0,i,this.props):i},t}(r.Component);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=1533915,o=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"),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(i,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,i=this.container.scrollTop,o=this.listTranslate,r=i-o;if(!(r>n)){for(t=0;t<this.skip&&!(o+n+r<=i);t++)o-=n;if(o=this.validateTranslate(o),this.skip-t<=0&&o>=i)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,i=this.container.scrollTop,o=this.listTranslate,r=this.list.children.length;for(t=0;t<r&&!(o+n>=i);t++)o+=n;o=this.validateTranslate(o),t>=r&&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),i=this.containerHeight*t/this.total;i=this.validateTranslate(i),this.translateTo(i),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}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),o=n(2),r=function(){function e(){}return e.prototype.navigate=function(e){var t=e.keyCode;return t===o.Keys.up||t===o.Keys.left?this.next({current:e.current,min:e.min,max:e.max,step:-1}):t===o.Keys.down||t===o.Keys.right?this.next({current:e.current,min:e.min,max:e.max,step:1}):t===o.Keys.home?0:t===o.Keys.end?e.max:void 0},e.prototype.next=function(e){return i.isPresent(e.current)?Math.min(e.max,Math.max(e.current+e.step,e.min)):e.min},e}();t.Navigation=r},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(6),p=n(2),u=n(3),d=n(8),c=n(4),h=n(5),f="Please enter a valid value!",v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.base=new l.default(t),t._inputId=p.guid(),t._suggested="",t.handleItemSelect=function(e,n){var i=t.props,o=i.data,r=void 0===o?[]:o,a=i.virtual,s=i.dataItemKey,l=r[e-(a?a.skip:0)],p=!u.areSame(l,t.value,s);t.triggerOnChange(l,n),void 0!==t.state.text&&(n.data.text=void 0),p&&t.base.triggerPageChangeCornerItems(l,n)},t.toggleBtnClick=function(e){var n=t.base.initState();n.syntheticEvent=e,t.base.togglePopup(n),t.applyState(n)},t.handleItemClick=function(e,n){t.base.handleItemClick(e,n),t._valueDuringOnChange=void 0},t.handleBlur=function(e){if(t.state.focused){var n=t.base.initState();n.data.focused=!1,n.events.push({type:"onBlur"}),n.syntheticEvent=e,t.applyValueOnRejectSuggestions(e.currentTarget.value,n)}},t.onInputKeyDown=function(e){var n=e.keyCode,i=void 0!==t.props.opened?t.props.opened:t.state.opened,o=t.base.initState();if(o.syntheticEvent=e,!e.altKey&&(n===p.Keys.up||n===p.Keys.down))return e.preventDefault(),t.onNavigate(o,n),void t.applyState(o);var r=function(){e.preventDefault(),t.base.togglePopup(o),t.applyState(o)};i?e.altKey&&n===p.Keys.up?r():n===p.Keys.enter?(e.preventDefault(),t.applyValueOnEnter(e.currentTarget.value,o)):n===p.Keys.esc&&t.applyValueOnRejectSuggestions(e.currentTarget.value,o):e.altKey&&n===p.Keys.down&&r()},t.inputOnChange=function(e){var n=t.base.initState();n.syntheticEvent=e;var i=void 0!==t.props.opened?t.props.opened:t.state.opened,o=e.currentTarget,r=o.value;if(t.props.suggest){var a=o.selectionEnd===r.length,s=void 0!==t.props.filter?t.props.filter:t.state.text;u.isPresent(s)||(s=u.getItemValue(t.value,t.props.textField)||"");var l=s&&s===r,p=s&&s.length>r.length;l||p||!a?t._suggested="":t.suggestValue(r)}void 0===t.props.filter&&(n.data.text=r),void 0!==t.state.focusedItem&&(n.data.focusedItem=void 0),i||t.base.togglePopup(n),t.base.filterChanged(r,n),t.applyState(n)},t.clearButtonClick=function(e){var n=t.base.initState();n.syntheticEvent=e,e.stopPropagation(),t._suggested="",t.base.filterChanged("",n),void 0===t.props.filter&&void 0!==t.state.text&&(n.data.text=void 0),t.triggerOnChange(null,n),(void 0!==t.props.opened?t.props.opened:t.state.opened)&&t.base.togglePopup(n),t.applyState(n)},t.setValidity=function(){t._input&&t._input.setCustomValidity&&t._input.setCustomValidity(t.validity.valid?"":t.props.validationMessage||f)},t}return o(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,i=e.dataItemKey,o=this.value;return n.findIndex(function(e){return u.areSame(e,o,i)})},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,i=n.data,o=void 0===i?[]:i,r=n.dataItemKey,a=n.virtual,s=e.virtual?e.virtual.total:0,l=void 0!==this.props.opened?this.props.opened:this.state.opened,p=void 0!==e.opened?e.opened:t.opened,d=!p&&l,c=this.value;if(this._valueOnDidUpdate=c,a&&a.total!==s)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var h=void 0!==e.value?e.value:t.value,f=o.findIndex(function(e){return u.areSame(e,c,r)}),v=!u.areSame(h,c,r);d&&a?this.base.scrollToVirtualItem(a,f):d&&!a?this.base.scrollToItem(f):l&&p&&c&&v&&this.base.scrollToItem(f)}d&&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,i=n.dir,o=n.disabled,s=n.clearButton,l=void 0===s?t.defaultProps.clearButton:s,d=n.label,c=n.textField,h=n.className,f=n.style,v=n.loading,g=n.iconClassName,m=n.virtual,y=this.state.focused,b=!this.validityStyles||this.validity.valid,x=void 0!==this.props.filter?this.props.filter:this.state.text,O=u.getItemValue(this.value,c),_=u.isPresent(x)?x:O,w=l&&(!!_||u.isPresent(this.value)),k=this.base,S=k.vs;S.enabled=void 0!==m,void 0!==m&&(S.skip=m.skip,S.total=m.total,S.pageSize=m.pageSize);var C=a.createElement("span",{className:p.classNames("k-widget k-combobox k-header",{"k-combobox-clearable":l,"k-state-invalid":!b},h),ref:function(t){return e._element=t},style:d?r({},f,{width:void 0}):f,dir:i},a.createElement("span",{ref:function(e){return k.wrapper=e},className:p.classNames("k-dropdown-wrap",{"k-state-default":!o,"k-state-disabled":o,"k-state-focused":y&&!o})},this.renderSearchBar(w,_||"",this._inputId),a.createElement("span",{className:"k-select",onClick:this.toggleBtnClick,onMouseDown:function(e){return e.preventDefault()}},a.createElement("span",{className:p.classNames("k-icon",g,{"k-i-arrow-s":!v&&!g,"k-i-loading":v&&!g})}))),this.renderListContainer());return d?a.createElement(p.FloatingLabel,{label:d,value:_,style:{width:f?f.width:void 0},valid:b,id:this._inputId,children:C}):C},t.prototype.onNavigate=function(e,t){var n=this.props,i=n.data,o=void 0===i?[]:i,r=n.virtual,a=void 0===r?{skip:0}:r,s=this.props.filter?this.props.filter:this.state.text,l=this.getFocusedIndex(),p=this.base.vs,d=this.value;if(this._suggested="",-1===l||u.isPresent(d))if(""===s)this.handleItemSelect(0,e);else{var c=a.skip+l,h=this.base.navigation.navigate({keyCode:t,current:c,max:(p.enabled?p.total:o.length)-1,min:0});void 0!==h&&this.handleItemSelect(h,e)}else this.handleItemSelect(l,e)},t.prototype.applyValueOnEnter=function(e,t){var n,i=this.props,o=i.data,r=void 0===o?[]:o,a=i.textField,s=i.allowCustom,l=void 0!==this.props.opened?this.props.opened:this.state.opened,p=u.getItemIndexByText(r,e,a),d=-1!==p,c=void 0;if(this._suggested="",d)c=r[p];else{if(!s)return this.selectFocusedItem(e,t);c=void 0!==a?((n={})[a]=e,n):e}this.triggerOnChange(c,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,i=this.props,o=i.data,r=void 0===o?[]:o,a=i.textField,s=i.allowCustom,l=void 0!==this.props.opened?this.props.opened:this.state.opened,p=u.getItemValue(this.value,a);if(this._suggested="",e===p||""===e&&!u.isPresent(p))return l&&this.base.togglePopup(t),this.applyState(t);var d=u.getItemIndexByText(r,e,a,!0),c=null;-1!==d?c=r[d]:s&&(c=e?a?((n={})[a]=e,n):e:null),this.triggerOnChange(c,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,i=this.props,o=i.data,r=void 0===o?[]:o,a=i.textField,s=i.virtual,l=(void 0===s?{skip:0}:s).skip,p=""===e&&0===l?0:u.itemIndexStartsWith(r,e,a);return-1!==p?this.handleItemSelect(p+l,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,i=t.header,o=t.footer,r=void 0!==this.props.opened?this.props.opened:this.state.opened,s=e.getPopupSettings(),l=void 0!==s.width?s.width:e.popupWidth;return a.createElement(c.default,{onMouseDown:function(e){return e.preventDefault()},width:l,popupSettings:{animate:s.animate,anchor:this.element||void 0,show:r,className:p.classNames("k-list-container k-reset",s.className)},dir:void 0!==n?n:this.base.dirCalculated},i,e.renderScrollWrapper([this.renderList(),e.renderScrollElement()]),o)},t.prototype.renderList=function(){var e=this,t=this.base,n=this.props,i=n.textField,o=n.dataItemKey,r=n.listNoDataRender,s=n.itemRender,l=n.data,p=void 0===l?[]:l,d=n.virtual,c=void 0===d?{skip:0}:d,f=t.getPopupSettings(),v=t.vs,g=c.skip,m=void 0!==this.props.opened?this.props.opened:this.state.opened,y="translateY("+v.translate+"px)",b=m?this.getFocusedIndex():void 0,x=void 0!==this.props.filter?this.props.filter:this.state.text,O=u.getItemValue(this.value,i),_=u.isPresent(x)&&x!==O?null:this.value;return a.createElement(h.default,{id:t.listBoxId,show:m,data:p,focusedIndex:b,value:_,textField:i,valueField:o,optionPrefix:t.optionPrefix,listRef:function(t){return v.list=e.base.list=t},wrapperStyle:v.enabled?{float:"left",width:"100%"}:{maxHeight:f.height},wrapperCssClass:v.enabled?void 0:"k-list-scroller",listStyle:v.enabled?{transform:y}:void 0,key:"listkey",skip:g,onClick:this.handleItemClick,itemRender:s,noDataRender:r})},t.prototype.renderSearchBar=function(e,t,n){var i=this,o=this.props,r=o.placeholder,s=o.tabIndex,l=o.disabled,p=o.data,c=void 0===p?[]:p,h=o.dataItemKey,f=o.virtual,v=void 0===f?{skip:0}:f,g=void 0!==this.props.opened?this.props.opened:this.state.opened,m=this.value,y=Math.max(0,c.findIndex(function(e){return u.areSame(e,m,h)}));return this._suggested&&!u.areSame(this._valueOnDidUpdate,m,h)&&(this._suggested=""),a.createElement(d.default,{id:n,placeholder:r,tabIndex:s||void 0,value:t+this._suggested,suggestedText:this._suggested,ref:function(e){return i._input=e&&e.input},onKeyDown:this.onInputKeyDown,onChange:this.inputOnChange,onFocus:this.base.handleFocus,onBlur:this.handleBlur,disabled:l,expanded:g,owns:this.base.listBoxId,activedescendant:this.base.optionPrefix+"-"+(y+v.skip),clearButton:e,clearButtonClick:this.clearButtonClick})},t.prototype.triggerOnChange=function(e,t){var n=this.value;!u.isPresent(n)&&!u.isPresent(e)||u.areSame(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,i=void 0===n?[]:n,o=t.textField,r=t.dataItemKey,a=t.virtual,s=void 0===a?{skip:0}:a,l=this.props.filter?this.props.filter:this.state.text;return u.isPresent(e)&&void 0===l?i.findIndex(function(t){return u.areSame(t,e,r)}):l?u.itemIndexStartsWith(i,l,o):0===s.skip?0:-1},t.prototype.suggestValue=function(e){var t=this.props,n=t.data,i=t.textField;this._suggested=u.suggestValue(e,n,i)},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.propTypes=r({},l.default.propTypes,{dataItemKey:s.string,suggest:s.bool,placeholder:s.string,allowCustom:s.bool,clearButton:s.bool,iconClassName:s.string,validationMessage:s.string,required:s.bool}),t.defaultProps=r({},l.default.defaultProps,{allowCustom:!1,clearButton:!0,required:!1}),t}(a.Component);t.default=v},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(10),s=n(11),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){return e.preventDefault()},t}return o(t,e),t.prototype.render=function(){var e=a.provideLocalizationService(this).toLanguageString(s.clear,s.messages[s.clear]);return r.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}(r.Component);t.default=l,a.registerForLocalization(l)},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(8),p=n(4),u=n(5),d=n(6),c=n(3),h=n(2),f="Please enter a valid value!",v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.base=new d.default(t),t._inputId=h.guid(),t._suggested="",t.handleItemSelect=function(e,n){var i=t.props.data,o=void 0===i?[]:i,r=c.getItemValue(o[e],t.props.textField);t.triggerOnChange(r,n)},t.itemFocus=function(e,n){var i=t.props,o=i.data,r=void 0===o?[]:o,a=i.textField,s=r[e];c.areSame(t.state.focusedItem,s,a)||(n.data.focusedItem=s)},t.togglePopup=function(e){t.base.togglePopup(e)},t.setValidity=function(){t._input&&t._input.setCustomValidity&&t._input.setCustomValidity(t.validity.valid?"":t.props.validationMessage||f)},t.handleItemClick=function(e,n){t.base.handleItemClick(e,n),t._valueDuringOnChange=void 0},t.onChangeHandler=function(e){var n=t.base.initState(),i=e.currentTarget,o=i.value,r=i.selectionEnd===o.length;n.syntheticEvent=e;var a=t._suggested,s=t.value,l=s&&s.substring(0,s.length-a.length),p=l&&l===o,u=l&&l.length>o.length,d=t.props,h=d.suggest,f=d.data,v=void 0===f?[]:f,g=d.textField,m=void 0!==t.props.opened?t.props.opened:t.state.opened;if(void 0!==h&&!1!==h){p||u||!r?t._suggested="":t.suggestValue(o);var y=o+t._suggested,b={userInput:o,value:t._suggested};t.triggerOnChange(y,n,{suggestion:b})}else t._suggested="",t.triggerOnChange(o,n);(!m&&o||m&&!o)&&t.togglePopup(n);var x=c.getFocusedItem(v,o,g);t.state.focusedItem!==x&&(n.data.focusedItem=x),t.applyState(n)},t.clearButtonClick=function(e){var n=t.base.initState(),i=void 0!==t.props.opened?t.props.opened:t.state.opened;n.syntheticEvent=e;t._suggested="",t.triggerOnChange("",n),void 0!==t.state.focusedItem&&(n.data.focusedItem=void 0),i&&t.togglePopup(n),t.applyState(n)},t.onInputKeyDown=function(e){var n=e.keyCode,i=void 0!==t.props.opened?t.props.opened:t.state.opened,o=t.base.initState();o.syntheticEvent=e;var r=function(){i&&e.preventDefault()};n===h.Keys.enter||n===h.Keys.esc?(r(),t.applyInputValue(e.currentTarget.value,o,e.keyCode)):n!==h.Keys.up&&n!==h.Keys.down||(r(),t.onNavigate(o,n))},t.handleBlur=function(e){if(t.state.focused){var n=t.base.initState();n.data.focused=!1,n.events.push({type:"onBlur"}),n.syntheticEvent=e,t.applyInputValue(e.currentTarget.value,n)}},t}return o(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.state.focusedItem,i=void 0!==n&&t.focusedItem!==n,o=void 0!==this.props.opened?this.props.opened:this.state.opened,r=!(void 0!==e.opened?e.opened:t.opened)&&o,a=this.props,s=a.data,l=void 0===s?[]:s,p=a.textField;if(o&&i||r){var u=void 0!==n?l.findIndex(function(e){return c.areSame(e,n,p)}):l.indexOf(c.getFocusedItem(l,this.value,p));this.base.scrollToItem(u)}this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var e=this,t=this.props,n=t.dir,i=t.disabled,o=t.label,s=t.className,l=t.style,p=t.loading,u=t.suggest,d=!this.validityStyles||this.validity.valid,c=this.state.focused,f=this.base,v=this.value,g=!p&&!!v;"string"==typeof u&&(this._suggested=u);var m=a.createElement("span",{className:h.classNames("k-widget k-autocomplete k-header",s,{"k-state-disabled":i,"k-state-focused":c&&!i,"k-state-invalid":!d}),ref:function(t){e._element=t,f.wrapper=t},style:o?r({},l,{width:void 0}):l,dir:n},this.renderSearchBar(g,v||""),p&&a.createElement("span",{className:"k-icon k-i-loading"}),this.renderListContainer());return o?a.createElement(h.FloatingLabel,{label:o,value:v,valid:d,style:{width:l?l.width:void 0},id:this._inputId,children:m}):m},t.prototype.onNavigate=function(e,t){var n=this,i=this.value,o=this.props,r=o.data,a=void 0===r?[]:r,s=o.textField,l=void 0!==this.state.focusedItem?a.findIndex(function(e){return c.areSame(e,n.state.focusedItem,s)}):a.indexOf(c.getFocusedItem(a,i,s)),p=this.base.navigation.navigate({keyCode:t,current:l,max:a.length-1,min:0});void 0!==p&&this.itemFocus(p,e),this.applyState(e)},t.prototype.applyInputValue=function(e,t,n){var i=void 0!==this.props.opened?this.props.opened:this.state.opened,o=this.props,r=o.data,a=void 0===r?[]:r,s=o.textField,l=void 0!==this.state.focusedItem?this.state.focusedItem:c.getFocusedItem(a,e,s);if(this._suggested="",i&&n===h.Keys.enter){var p=c.getItemValue(l,s);this.triggerOnChange(p,t)}this.state.focusedItem!==l&&(t.data.focusedItem=l),i&&this.togglePopup(t),this.applyState(t)},t.prototype.renderSearchBar=function(e,t){var n=this,i=this.base,o=this.props,r=o.placeholder,s=o.tabIndex,p=o.disabled,u=o.readonly,d=o.textField,h=o.data,f=void 0===h?[]:h,v=this.state.focused,g=void 0!==this.props.opened?this.props.opened:this.state.opened,m=c.getItemIndexByText(f,t,d,!0);return a.createElement(l.default,{id:this._inputId,placeholder:r,tabIndex:s||void 0,value:t,suggestedText:this._suggested,focused:v,ref:function(e){return n._input=e&&e.input},onKeyDown:this.onInputKeyDown,onChange:this.onChangeHandler,onFocus:i.handleFocus,onBlur:this.handleBlur,disabled:p,readOnly:u,expanded:g,owns:i.listBoxId,activedescendant:i.optionPrefix+"-"+m,clearButton:e,clearButtonClick:this.clearButtonClick})},t.prototype.renderListContainer=function(){var e=this.base,t=this.props,n=t.dir,i=t.header,o=t.footer,r=e.getPopupSettings(),s=void 0!==this.props.opened?this.props.opened:this.state.opened,l=void 0!==r.width?r.width:e.popupWidth;return a.createElement(p.default,{onMouseDown:function(e){return e.preventDefault()},width:l,popupSettings:{animate:r.animate,anchor:this.element||void 0,show:s,className:h.classNames("k-list-container k-reset",r.className)},dir:void 0!==n?n:this.base.dirCalculated},i,this.renderList(),o)},t.prototype.renderList=function(){var e=this,t=this.base,n=t.getPopupSettings(),i=this.props,o=i.textField,r=i.data,s=void 0===r?[]:r,l=i.listNoDataRender,p=i.itemRender,d=this.value,h=void 0!==this.props.opened?this.props.opened:this.state.opened,f=void 0!==this.state.focusedItem?s.findIndex(function(t){return c.areSame(t,e.state.focusedItem,o)}):s.indexOf(c.getFocusedItem(s,this.value,o));return a.createElement(u.default,{id:t.listBoxId,show:h,data:s.slice(),focusedIndex:f,value:d,textField:o,valueField:o,highlightSelected:!1,optionPrefix:t.optionPrefix,listRef:function(e){return t.list=e},wrapperStyle:{maxHeight:n.height},wrapperCssClass:"k-list-scroller",onClick:this.handleItemClick,itemRender:p,noDataRender:l})},t.prototype.triggerOnChange=function(e,t,n){(this.value!==e||n)&&(t.data.value=e,this._valueDuringOnChange=e,t.events.push(r({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,i=void 0===n?[]:n,o=t.textField,r=i[c.itemIndexStartsWith(i,e,o)];if(r){var a=c.getItemValue(r,o);e.toLowerCase()!==a.toLowerCase()&&(this._suggested=a.substring(e.length))}}},t.propTypes=r({},d.default.basicPropTypes,{suggest:s.oneOfType([s.bool,s.string]),placeholder:s.string,value:s.string,defaultValue:s.string,validationMessage:s.string,required:s.bool,readonly:s.bool}),t.defaultProps=r({},d.default.defaultProps),t}(a.Component);t.default=v},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(1),l=n(0),p=n(2),u=n(4),d=n(5),c=n(24),h=n(8),f=n(6),v=n(25),g=n(3),m="Please enter a valid value!",y=function(e){return e.preventDefault()},b=function(e,t,n){return!!e==!!t&&e.text===t.text&&(e===t||g.matchDataCollections(e.data,t.data,n))},x=function(e){return e===a.CustomItem};!function(e){e[e.None=0]="None",e[e.ListItem=1]="ListItem",e[e.CustomItem=2]="CustomItem"}(a||(a={}));var O=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={activedescendant:v.ActiveDescendant.PopupList},t._valueItemsDuringOnChange=null,t._inputId=p.guid(),t.base=new f.default(t),t._tags=[],t._skipFocusEvent=!1,t.handleItemSelect=function(e,n){var i=t.props,o=i.data,r=void 0===o?[]:o,a=i.dataItemKey,s=i.virtual,l=r[e-(s?s.skip:0)],p=t.value.findIndex(function(e){return g.areSame(e,l,a)}),u=[];-1!==p?(u=t.value).splice(p,1):u=t.value.concat([l]),(void 0!==t.props.filter?t.props.filter:t.state.text)&&(t.state.text&&(n.data.text=""),t.base.filterChanged("",n)),void 0!==t.state.focusedIndex&&(n.data.focusedIndex=void 0),t.triggerOnChange(u,n),t.base.triggerPageChangeCornerItems(l,n)},t.onTagDelete=function(e,n){var i=void 0!==t.props.opened?t.props.opened:t.state.opened,o=t.base.initState();o.syntheticEvent=n,i&&t.base.togglePopup(o),t.state.focused||(o.data.focused=!0);var r=t.value;g.removeDataItems(r,e,t.props.dataItemKey),t.triggerOnChange(r,o),t.applyState(o)},t.itemFocus=function(e,n){var i=t.props,o=i.data,r=void 0===o?[]:o,a=i.allowCustom,s=i.virtual,l=s?s.skip:0,p=void 0!==t.props.filter?t.props.filter:t.state.text,u=t.getFocusedState().focusedIndex,d=a&&p,c=r[e-l];c&&u!==e?t.state.focusedIndex!==e&&(n.data.focusedIndex=e):d&&-1===e&&void 0!==t.state.focusedIndex&&(n.data.focusedIndex=void 0),t.base.triggerPageChangeCornerItems(c,n)},t.searchbarRef=function(e){var n=t._input=e&&e.input;n&&t.state.focused&&setTimeout(function(){return n.focus()},0)},t.onChangeHandler=function(e){var n=t.base.initState(),i=e.currentTarget.value,o=t.props,r=o.allowCustom,a=o.data,s=void 0===a?[]:a,l=o.textField,p=o.virtual,u=p?p.skip:0,d=void 0!==t.props.opened?t.props.opened:t.state.opened;if(n.syntheticEvent=e,void 0===t.props.filter&&(n.data.text=i),r)n.data.focusedIndex=i?void 0:0;else{var c=(i?g.itemIndexStartsWith(s,i,l):0)+u;t.state.focusedIndex!==c&&(n.data.focusedIndex=c)}d||t.base.togglePopup(n),t.base.filterChanged(i,n),t.applyState(n)},t.clearButtonClick=function(e){var n=void 0!==t.props.opened?t.props.opened:t.state.opened,i=t.base.initState();i.syntheticEvent=e,e.stopPropagation(),t.value.length>0&&t.triggerOnChange([],i),void 0!==t.state.focusedIndex&&(i.data.focusedIndex=void 0),n&&t.base.togglePopup(i);var o=void 0!==t.props.filter?t.props.filter:t.state.text;g.isPresent(o)&&""!==o&&t.base.filterChanged("",i),t.state.text&&(i.data.text=""),t.applyState(i)},t.onInputKeyDown=function(e){var n=e.keyCode,i=void 0!==t.props.filter?t.props.filter:t.state.text,o=void 0!==t.props.opened?t.props.opened:t.state.opened,r=t.getFocusedState().focusedItem,a=t.base.initState();if(a.syntheticEvent=e,!i&&t.value.length>0&&(n===p.Keys.left||n===p.Keys.right||n===p.Keys.home||n===p.Keys.end||n===p.Keys.delete||n===p.Keys.backspace))return t.onTagsNavigate(e,a);var s=function(){e.preventDefault(),t.base.togglePopup(a),t.applyState(a)};o?e.altKey&&n===p.Keys.up?s():n===p.Keys.up||n===p.Keys.down?(e.preventDefault(),t.onNavigate(a,n)):n===p.Keys.enter?(e.preventDefault(),t.props.allowCustom&&i&&null===r?t.customItemSelect(e):t.selectFocusedItem(e)):n===p.Keys.esc&&s():e.altKey&&n===p.Keys.down&&s()},t.renderListContainer=function(){var e=t.base,n=t.props,i=n.header,o=n.footer,a=n.allowCustom,l=n.dir,d=t.base.getPopupSettings(),c=void 0!==t.props.opened?t.props.opened:t.state.opened,h=void 0!==t.props.filter?t.props.filter:t.state.text,f=void 0!==t.props.virtual,v=void 0!==d.width?d.width:e.popupWidth,g={onMouseDown:y,dir:void 0!==l?l:e.dirCalculated,onBlur:t.handleBlur,width:v,popupSettings:{className:p.classNames("k-list-container k-reset",d.className),animate:d.animate,anchor:t.element||void 0,show:c,open:t.onPopupOpened,close:t.onPopupClosed}},m=t.getFocusedState().focusedType,b=a&&h&&s.createElement("div",{className:"k-list",key:"customitem",onClick:t.customItemSelect},s.createElement("div",{className:p.classNames("k-item k-custom-item",{"k-state-focused":x(m)})},h,s.createElement("span",{className:"k-icon k-i-plus",style:{float:"right"}})));return s.createElement(u.default,r({},g),f&&i,t.base.renderScrollWrapper(f?[b,t.renderList(),t.base.renderScrollElement()]:[i,b,t.renderList(),o,t.base.renderScrollElement()]),f&&o)},t.renderList=function(){var e=t.props,n=e.data,i=void 0===n?[]:n,o=e.textField,r=e.listNoDataRender,a=e.itemRender,l=e.dataItemKey,p=e.virtual,u=t.base.vs,c=p?p.skip:0,h=void 0!==t.props.opened?t.props.opened:t.state.opened,f=t.getFocusedState().focusedIndex,v=t.base.getPopupSettings(),g="translateY("+u.translate+"px)";return s.createElement(d.default,{id:t.base.listBoxId,show:h,data:i.slice(),focusedIndex:f-c,value:t.value,textField:o,valueField:l,optionPrefix:t.base.optionPrefix,listRef:function(e){return u.list=t.base.list=e},wrapperStyle:u.enabled?{float:"left",width:"100%"}:{maxHeight:v.height},wrapperCssClass:u.enabled?void 0:"k-list-scroller",listStyle:u.enabled?{transform:g}:void 0,key:"listKey",skip:c,onClick:t.handleItemClick,itemRender:a,noDataRender:r})},t.customItemSelect=function(e){var n,i=void 0!==t.props.filter?t.props.filter:t.state.text,o=t.props.textField;if(i){var r=t.base.initState();r.syntheticEvent=e;var a=o?((n={})[o]=i,n):i;void 0!==t.state.text&&(r.data.text=""),r.data.focusedIndex=void 0,t.base.filterChanged("",r);var s=t.value.concat([a]);t.triggerOnChange(s,r),t.base.togglePopup(r),t.applyState(r)}},t.handleWrapperClick=function(e){var n=void 0!==t.props.opened?t.props.opened:t.state.opened,i=t._input;!n&&i&&t.focusElement(i);var o=t.base.initState();o.syntheticEvent=e,t.state.focused||(o.events.push({type:"onFocus"}),o.data.focused=!0),t.base.togglePopup(o),t.applyState(o)},t.handleItemClick=function(e,n){t.base.handleItemClick(e,n),t._valueItemsDuringOnChange=null},t.handleBlur=function(e){if(t.state.focused&&!t._skipFocusEvent){var n=void 0!==t.props.opened?t.props.opened:t.state.opened,i=t.base.initState(),o=t.props,r=o.allowCustom,a=o.filterable;i.syntheticEvent=e,i.data.focused=!1,i.events.push({type:"onBlur"}),n&&(t.state.opened&&(i.data.opened=!1),i.events.push({type:"onClose"})),r||a||!t.state.text||(i.data.text=""),t.applyState(i)}},t.handleFocus=function(e){t._skipFocusEvent||t.base.handleFocus(e)},t.onPopupOpened=function(){t._input&&t.focusElement(t._input)},t.onPopupClosed=function(){t.state.focused&&setTimeout(function(){t.state.focused&&t.focusElement(t._input)},0)},t.setValidity=function(){t._input&&t._input.setCustomValidity&&t._input.setCustomValidity(t.validity.valid?"":t.props.validationMessage||m)},t}return o(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,i=n?n.skip:0,o=e.virtual?e.virtual.total:0,r=void 0!==this.props.opened?this.props.opened:this.state.opened,a=void 0!==e.opened?e.opened:t.opened,s=!a&&r,l=a&&!r;if(!this.base.getPopupSettings().animate&&l&&this.onPopupClosed(),n&&n.total!==o)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var p=this.getFocusedState(),u=p.focusedItem,d=p.focusedIndex,c=void 0!==t.focusedIndex&&t.focusedIndex!==d;s&&n?this.base.scrollToVirtualItem(n,d-i):s&&!n?this.base.scrollToItem(d):r&&a&&u&&c&&this.base.scrollToItem(d-i)}this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.onNavigate=function(e,t){var n=this.props,i=n.allowCustom,o=n.data,r=void 0===o?[]:o,a=void 0!==this.props.opened?this.props.opened:this.state.opened,s=void 0!==this.props.filter?this.props.filter:this.state.text,l=this.getFocusedState(),u=l.focusedType,d=l.focusedIndex,c=i&&s,h=x(u),f=this.base,v=f.vs;if(a&&t===p.Keys.up&&h)void 0!==this.state.focusedIndex&&(e.data.focusedIndex=void 0);else{var g=f.navigation.navigate({keyCode:t,current:d,max:(v.enabled?v.total:r.length)-1,min:c?-1:0});void 0!==g&&this.itemFocus(g,e)}this.applyState(e)},t.prototype.render=function(){var e=this,t=this.props,n=t.style,i=t.className,o=t.label,a=t.dir,l=t.disabled,u=t.tags,d=void 0===u?[]:u,h=t.textField,f=t.dataItemKey,v=t.virtual,m=this.state,y=m.focused,x=m.text,O=m.focusedTag,_=this.base.vs;_.enabled=void 0!==v,void 0!==v&&(_.skip=v.skip,_.total=v.total,_.pageSize=v.pageSize),0===d.length&&this.value.forEach(function(e){d.push({text:g.getItemValue(e,h),data:[e]})}),this.setItems(d,this._tags);var w=!this.validityStyles||this.validity.valid,k=s.createElement("span",{ref:function(t){return e._element=t},className:p.classNames("k-widget k-multiselect k-header",i,{"k-state-focused":y&&!l,"k-state-invalid":!w,"k-state-disabled":l}),style:o?r({},n,{width:void 0}):n,dir:a,onFocus:this.handleFocus,onBlur:this.handleBlur},s.createElement("div",{onClick:this.handleWrapperClick,ref:function(t){return e.base.wrapper=t},className:"k-multiselect-wrap k-floatwrap",onMouseDown:g.preventDefaultNonInputs},s.createElement(c.default,{tagRender:this.props.tagRender,onTagDelete:this.onTagDelete,data:d,guid:this.base.optionPrefix,focused:O?d.find(function(e){return b(e,O,f)}):void 0}),this.renderSearchbar(),this.props.loading&&s.createElement("span",{className:"k-icon k-i-loading"})),this.renderListContainer());return o?s.createElement(p.FloatingLabel,{label:o,value:x||g.getItemValue(this.value[0],h),style:{width:n?n.width:void 0},children:k,valid:w}):k},t.prototype.renderSearchbar=function(){var e=this.state,t=e.activedescendant,n=e.focusedTag,i=this.props,o=i.disabled,r=i.textField,a=i.placeholder,l=(void 0!==this.props.filter?this.props.filter:this.state.text)||"",p=void 0!==this.props.opened?this.props.opened:this.state.opened,u=this.getFocusedState(),d=u.focusedItem,c=u.focusedIndex,f=!!l||this.value.length>0,m=0!==this.value.length||l?void 0:a,y=this.base.optionPrefix+"-"+(t===v.ActiveDescendant.TagsList&&void 0!==n)?g.getItemValue(d,r):c;return s.createElement(h.default,{id:this._inputId,size:Math.max((m||"").length,l.length,1),tabIndex:this.props.tabIndex,placeholder:m,value:l,onChange:this.onChangeHandler,onKeyDown:this.onInputKeyDown,ref:this.searchbarRef,disabled:o,expanded:p,owns:this.base.listBoxId,activedescendant:y,clearButton:f,clearButtonClick:this.clearButtonClick})},t.prototype.onTagsNavigate=function(e,t){var n=e.keyCode,i=this.state.focusedTag,o=this._tags,r=this.props.dataItemKey,a=i?o.findIndex(function(e){return b(e,i,r)}):-1,s=void 0,l=-1!==a;if(n===p.Keys.left)s=o[a=l?Math.max(0,a-1):o.length-1];else if(n===p.Keys.right)a===o.length-1?s=void 0:l&&(s=o[a=Math.min(o.length-1,a+1)]);else if(n===p.Keys.home)s=o[0];else if(n===p.Keys.end)s=o[o.length-1];else if(n===p.Keys.delete){if(l){var u=this.value;g.removeDataItems(u,o[a].data,r),this.triggerOnChange(u,t)}}else if(n===p.Keys.backspace){u=this.value;if(l)g.removeDataItems(u,o[a].data,r),this.triggerOnChange(u,t);else if(!l&&o.length){var d=o.pop();g.removeDataItems(u,d.data,r),this.triggerOnChange(u,t)}}s!==i&&(t.data.focusedTag=s),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,i=void 0===n?[]:n,o=t.virtual,r=this.getFocusedState().focusedIndex,a=o?o.skip:0;void 0!==i[r-a]?this.handleItemClick(r,e):this.handleItemClick(a,e)},t.prototype.setItems=function(e,t){t.length=0,t.push.apply(t,e)},t.prototype.getFocusedState=function(){var e=this.state,t=e.focusedIndex,n=e.text,i=this.props,o=i.allowCustom,r=i.data,s=void 0===r?[]:r,l=i.dataItemKey,p=i.virtual,u=p&&p.skip||0;if(void 0!==t)return{focusedIndex:t,focusedItem:s[t-u],focusedType:a.ListItem};var d=this.value;if(o&&n)return{focusedItem:null,focusedIndex:-1,focusedType:a.CustomItem};if(d.length){var c=d[d.length-1],h=s.findIndex(function(e){return g.areSame(e,c,l)});return void 0!==s[h]?{focusedIndex:h+u,focusedItem:s[h],focusedType:a.ListItem}:{focusedType:a.None,focusedIndex:-1}}return 0===u?{focusedItem:s[0],focusedIndex:0,focusedType:a.ListItem}:{focusedType:a.None,focusedIndex:-1}},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),setTimeout(function(){return t._skipFocusEvent=!1},30)},t.prototype.applyState=function(e){this.base.applyState(e),this._valueItemsDuringOnChange=null},t.propTypes=r({},f.default.propTypes,{value:l.arrayOf(l.any),defaultValue:l.arrayOf(l.any),dataItemKey:l.string,placeholder:l.string,tags:l.arrayOf(l.shape({text:l.string,data:l.arrayOf(l.any)})),tagRender:l.func}),t.defaultProps=r({},f.default.defaultProps,{required:!1}),t}(s.Component);t.default=O},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=function(e){return e.preventDefault()},s=function(e){return e.stopPropagation()},l=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("ul",{className:"k-reset",role:"listbox"},this.props.data.map(function(t){var n=r.createElement("li",{className:t===e.props.focused?"k-button k-state-focused":"k-button",key:t.text,id:e.props.guid+"-"+t.text,onMouseDown:a,onClick:s},r.createElement("span",null,t.text),r.createElement("span",{"aria-label":"delete",className:"k-select",onClick:function(n){return e.props.onTagDelete.call(void 0,t.data,n)}},r.createElement("span",{className:"k-icon k-i-close"})));return e.props.tagRender?e.props.tagRender(t,n):n}))},t}(r.Component);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.PopupList=0]="PopupList",e[e.TagsList=1]="TagsList"}(t.ActiveDescendant||(t.ActiveDescendant={}))},function(e,t,n){"use strict";n.r(t);var i,o=n(1),r=n(9),a=n(0),s=n(12),l=n(2),p=n(7),u={outerHeight:function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop),i=parseFloat(t.marginBottom);return e.offsetHeight+n+i},outerWidth:function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginLeft),i=parseFloat(t.marginRight);return e.offsetWidth+n+i},styles:{"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"}},d=(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},h=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&(n[i[o]]=e[i[o]])}return n},f=u.styles,v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(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,i=t.style,r=t.appear,a=t.enter,s=t.exit,u=t.transitionName,d=t.transitionEnterDuration,v=t.transitionExitDuration,g=t.className,m=t.onEnter,y=t.onEntering,b=t.onEntered,x=t.onExit,O=t.onExiting,_=t.onExited,w=t.mountOnEnter,k=t.unmountOnExit,S=t.animationEnteringStyle,C=t.animationEnteredStyle,P=t.animationExitingStyle,I=t.animationExitedStyle,E=h(t,["children","style","appear","enter","exit","transitionName","transitionEnterDuration","transitionExitDuration","className","onEnter","onEntering","onEntered","onExit","onExiting","onExited","mountOnEnter","unmountOnExit","animationEnteringStyle","animationEnteredStyle","animationExitingStyle","animationExitedStyle"]),D=Object(l.classNames)(g,f["child-animation-container"]),j=c({transitionDelay:"0ms"},i),T={entering:c({transitionDuration:d+"ms"},S),entered:c({},C),exiting:c({transitionDuration:v+"ms"},P),exited:c({},I)},N={in:this.props.in,appear:r,enter:a,exit:s,mountOnEnter:w,unmountOnExit:k,timeout:{enter:d,exit:v},onEnter:function(t){m&&m.call(void 0,{animatedElement:t,target:e})},onEntering:function(t){y&&y.call(void 0,{animatedElement:t,target:e})},onEntered:function(t){b&&b.call(void 0,{animatedElement:t,target:e})},onExit:function(t){x&&x.call(void 0,{animatedElement:t,target:e})},onExiting:function(t){O&&O.call(void 0,{animatedElement:t,target:e})},onExited:function(t){_&&_.call(void 0,{animatedElement:t,target:e})},classNames:{appear:f[u+"-appear"]||u+"-appear",appearActive:f[u+"-appear-active"]||u+"-appear-active",enter:f[u+"-enter"]||u+"-enter",enterActive:f[u+"-enter-active"]||u+"-enter-active",exit:f[u+"-exit"]||u+"-exit",exitActive:f[u+"-exit-active"]||u+"-exit-active"}};return o.createElement(p.CSSTransition,c({},N,E),function(t){return o.createElement("div",{style:c({},j,T[t]),className:D,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:l.noop,onEntering:l.noop,onEntered:l.noop,onExit:l.noop,onExiting:l.noop,onExited:l.noop,animationEnteringStyle:{},animationEnteredStyle:{},animationExitingStyle:{},animationExitedStyle:{}},t}(o.Component),g=function(){var 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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),m=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},y=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&(n[i[o]]=e[i[o]])}return n},b=u.styles,x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.style,i=e.children,r=e.component,a=e.className,s=e.childFactory,u=(e.stackChildren,e.componentChildStyle),d=e.componentChildClassName,c=y(e,["id","style","children","component","className","childFactory","stackChildren","componentChildStyle","componentChildClassName"]),h={id:t,style:n,component:r,childFactory:s,className:Object(l.classNames)(b["animation-container"],b["animation-container-relative"],a)},f=o.Children.map(i,function(e){return o.createElement(v,m({},c,{style:u,className:d}),e)});return o.createElement(p.TransitionGroup,m({},h),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}(o.Component),O=function(){var 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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),_=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},w=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&(n[i[o]]=e[i[o]])}return n},k=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}O(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=w(e,["children"]);return o.createElement(x,_({},{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}}(o.Component),function(){var 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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),S=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},C=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&(n[i[o]]=e[i[o]])}return n},P=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}k(t,e),t.prototype.render=function(){var e=this.props,t=e.direction,n=e.children,i=C(e,["direction","children"]),r={transitionName:"expand-"+t};return o.createElement(x,S({},r,i),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"}}(o.Component),function(){var 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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),I=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},E=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&(n[i[o]]=e[i[o]])}return n},D={position:"absolute",top:"0",left:"0"},j=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}P(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.direction,i=E(e,["children","direction"]);return o.createElement(x,I({},i,{transitionName:"push-"+n,animationExitingStyle:this.props.stackChildren?D: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}}(o.Component),function(){var 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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),T=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},N=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&(n[i[o]]=e[i[o]])}return n},F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return j(t,e),t.prototype.render=function(){var e=this.props,t=e.direction,n=e.children,i=N(e,["direction","children"]),r={transitionName:"slide-"+t};return o.createElement(x,T({},r,i),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"},t}(o.Component),z=function(){var 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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),K=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},M=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&(n[i[o]]=e[i[o]])}return n},R={position:"absolute",top:"0",left:"0"},V=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}z(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.direction,i=M(e,["children","direction"]);return o.createElement(x,K({},i,{transitionName:"zoom-"+n,animationExitingStyle:this.props.stackChildren?R: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}}(o.Component),function(){var 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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),A=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},B=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&(n[i[o]]=e[i[o]])}return n},L=(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.onEnter;t.updateContainerDimensions(e.animatedElement,function(){n&&n.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=l.noop);var i=e.firstChild;if(i){var o=u.outerHeight(i),r=u.outerWidth(i);t.setState({maxHeight:o,maxWidth:r},n)}},t}V(t,e),t.prototype.render=function(){var e,t=this.props,n=t.direction,i=t.children,r=t.childFactory,a=B(t,["direction","children","childFactory"]),s=this.state,l=s.maxHeight,p=s.maxWidth,u={maxHeight:(e="vertical"===n?{maxHeight:l?l+"px":null}:{maxWidth:p?p+"px":null}).maxHeight,maxWidth:e.maxWidth};return o.createElement(x,A({},a,{childFactory:r||function(t){return t.props.in?t:o.cloneElement(t,A({},t.props,{style:A({},t.props.style,{maxHeight:e.maxHeight,maxWidth:e.maxWidth})}))},onEnter:this.componentWillEnter,onEntering:this.componentIsEntering,onExit:this.componentWillExit,animationEnteringStyle:u,transitionName:"reveal-"+n}),i)},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"}}(o.Component),"bottom"),H="center",W="middle",q="left",U="right",Y="top",X=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,r=e.margin;void 0===r&&(r={});var a=n.horizontal,s=n.vertical,l=o.horizontal,p=o.vertical,u=r.horizontal||0,d=r.vertical||0,c=t.top,h=t.left;return s===L&&(c+=t.height),s!==H&&s!==W||(c+=Math.round(t.height/2)),p===L&&(c-=i.height,d*=-1),p!==H&&p!==W||(c-=Math.round(i.height/2),d*=-1),a===U&&(h+=t.width),a!==H&&a!==W||(h+=Math.round(t.width/2)),l===U&&(h-=i.width,u*=-1),l!==H&&l!==W||(h-=Math.round(i.width/2),u*=-1),{top:c+d,left:h+u}};function G(e){return e.ownerDocument||e.document||e}var Z=function(e){return G(e).defaultView},J=function(e){return G(e).documentElement},Q=0;function $(){if(!Q&&"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),Q=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return Q}function ee(e){var t=Z(e),n=J(e),i={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=$()),i}var te=function(e){if(!e.getBoundingClientRect){var t=ee(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}},ne=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||J(e)},ie=function(e){return ne(e)===e.ownerDocument.body},oe=function(e){var t=e.getBoundingClientRect(),n=t.left,i=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,i=t.left,o=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var r=e.getBoundingClientRect();return e.style.display=n,e.style.left=i,e.style.position=o,r}(e)),{top:i,left:n,height:t.height,width:t.width}},re=function(e,t){for(var n=[],i=e.parentNode;i&&(n.push(i),i!==t);)i=i.parentNode;return n};function ae(e){var t=J(e),n=Z(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var se=function(e){return e===(e.ownerDocument||{}).body?ae(e):{x:e.scrollLeft,y:e.scrollTop}};var le=function(e,t){var n=Z(e),i=n.getComputedStyle(e),o=oe(e),r=t||ne(e),a=e.ownerDocument,s=r!==a.body&&r!==a.documentElement,l={top:0,left:0};if("fixed"!==i.position&&s){var p=n.getComputedStyle(r);(l=oe(r)).top+=parseInt(p.borderTopWidth,10),l.left+=parseInt(p.borderLeftWidth,10)}return{top:o.top-l.top,left:o.left-l.left,height:o.height,width:o.width}},pe=function(e,t){return e?se(e):function(e){var t=ne(e);return t?se(t):{x:0,y:0}}(t)};var ue="fit",de="flip",ce=function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},he=function(e){var t=e.offset,n=e.size,i=e.anchorSize,o=e.viewPortSize,r=e.anchorAlignPoint,a=e.elementAlignPoint,s=0,l=2*e.margin;if(a!==r&&!(a===H||a===W)&&!(r===H||r===W)){var p=r===Y||r===q;t<0&&p?t+(s=n+i+l)+n>o&&(s=0):t>=0&&!p&&(t+n>o&&(s+=-(i+n+l)),t+s<0&&(s=0))}return s},fe=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,r=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var l=i.top,p=i.left,u=i.height,d=i.width,c=a.height,h=a.width,f=s.horizontal||0,v=s.vertical||0,g=0,m=0,y=r.horizontal===de,b=r.vertical===de;r.vertical===ue&&(m+=ce(l,u,c)),r.horizontal===ue&&(g+=ce(p,d,h)),b&&(m+=he({margin:v,offset:l,size:u,anchorSize:t.height,viewPortSize:c,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),y&&(g+=he({margin:f,offset:p,size:d,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var x=y&&0!==g,O=b&&0!==m;return{flipped:x||O,flip:{horizontal:x,vertical:O},offset:{left:g,top:m}}},ve=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},ge=function(e,t){for(var n,i,o=re(e),r=t;r&&(n=ve(r),!(i=o.reduce(function(e,t){return e.concat(n.filter(function(e){return e===t}))},[])[0]));)r=r.parentElement;return i},me=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},ye=function(){return"undefined"!=typeof document&&!!document.body},be=function(){return"undefined"!=typeof window},xe=/auto|scroll/,Oe=function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY},_e=1e3/60,we=function(){if(!ye())return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t}(),ke="fit",Se="flip",Ce="left",Pe="center",Ie="right",Ee="bottom",De="top",je=function(e,t,n){var i,o,r,a;void 0===n&&(n={});var s=0;n=n||{};var l=function(){s=!1===n.leading?0:(new Date).getTime(),i=null,a=e.apply(o,r),i||(o=r=null)};return function(){var p=(new Date).getTime();s||!1!==n.leading||(s=p);var u=t-(p-s);return o=this,r=arguments,u<=0||u>t?(i&&(clearTimeout(i),i=null),s=p,a=e.apply(o,r),i||(o=r=null)):i||!1===n.trailing||(i=setTimeout(l,u)),a}},Te=function(){function e(e){this._dom=e}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,i=e.anchorAlign,o=e.elementAlign,r=e.offset,a=!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,r):this.relativeRect(t,n,r);return this._dom.align({anchorAlign:i,anchorRect:a,elementAlign:o,elementRect:this._dom.offset(n)})},e.prototype.absoluteRect=function(e,t,n){var i=this._dom,o=function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(me(i.offset(e),n),i.stackingElementOffset(t)),r=i.stackingElementScroll(t),a=i.addScroll(o,r),s=this.elementScrollPosition(e,t),l=i.removeScroll(a,s);return l.left+=window.scrollX||window.pageXOffset,l.top+=window.scrollY||window.pageYOffset,l},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n){return me(this._dom.position(e,t),n)},e}(),Ne=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.align=function(e){return X(e)},e.prototype.boundingOffset=function(e){return te(e)},e.prototype.getWindow=function(){return be()?window:null},e.prototype.isBodyOffset=function(e){return ie(e)},e.prototype.hasOffsetParent=function(e){if(!e)return!1;var t=e.offsetParent;return t&&!("BODY"===t.nodeName&&"static"===window.getComputedStyle(t).position)},e.prototype.offset=function(e){return e?oe(e):null},e.prototype.staticOffset=function(e){if(!e)return null;var t=e.style,n=t.left,i=t.top;e.style.left="0px",e.style.top="0px";var o=oe(e);return e.style.left=n,e.style.top=i,o},e.prototype.position=function(e,t){return e&&t?function(e,t){var n=t?ne(t):null,i=le(e,n),o=i.top,r=i.left,a=i.height,s=i.width,l=pe(n,e),p=l.x;return{top:o+l.y,left:r+p,height:a,width:s}}(e,ge(e,t)):null},e.prototype.relativeOffset=function(e,t){return n=this.offset(e),i=t,o=this.isBodyOffset(e),r=n.top,a=n.left,o&&(a=0,r=0),{top:r+i.top,left:a+i.left,height:n.height,width:n.width};var n,i,o,r,a},e.prototype.addScroll=function(e,t){return function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}(e,t)},e.prototype.removeScroll=function(e,t){return function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}(e,t)},e.prototype.restrictToView=function(e){return fe(e)},e.prototype.scrollPosition=function(e){return ae(e)},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!ye()||!be())return t;for(var n=e.parentElement;n;)xe.test(Oe(n))&&t.push(n),n=n.parentElement;return t.push(window),t}(e)},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?oe(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.stackingElementViewPort=function(e){var t=this.getRelativeContextElement(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},e.prototype.getRelativeContextElement=function(e){if(!e||!we)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return ee(e)},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!ye()||!be())return null;var n=ge(e,t);if(!n)return null;var i=[e].concat(re(e,n)).reduce(function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,i=parseInt(n,10);return i>e?i:e},0);return i?i+1:null}(e,t)},e.prototype.zoomLevel=function(){return ye()&&be()?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e}(),Fe=function(){function e(e){this._dom=e}return e.prototype.positionElement=function(e){var t,n,i=e.anchor,o=e.currentLocation,r=e.element,a=e.anchorAlign,s=e.elementAlign,l=e.collisions,p=this._dom,u=e.viewPort||p.stackingElementViewPort(r)||p.windowViewPort(r),d=me(p.offset(i),o),c=(t=p.staticOffset(r),(n=o)?{height:t.height,left:n.left,top:n.top,width:t.width}:t),h=this.elementRect(r,c),f=p.restrictToView({anchorAlign:a,anchorRect:d,collisions:l,elementAlign:s,elementRect:h,viewPort:u});return{flipped:f.flipped,offset:p.addOffset(c,f.offset)}},e.prototype.elementRect=function(e,t){return this._dom.removeScroll(t,this._dom.scrollPosition(e))},e}(),ze=function(){var 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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ke=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Me={left:-1e3,top:0},Re="k-animation-container-shown",Ve=function(e){return r.findDOMNode(e)},Ae=function(e){function t(t){var n=e.call(this,t)||this;return n._exitingAnimation=!1,n._prevShow=!1,n.onOpened=function(){var e=Ve(n);n.props.show&&e.classList.add(Re),n.attachRepositionHandlers(e),n.props.open&&n.props.open.call(void 0,{target:n})},n.onClosing=function(){n.props.show||Ve(n).classList.remove(Re);n.detachRepositionHandlers()},n.onClosed=function(){n._exitingAnimation&&(n._exitingAnimation=!1,n.forceUpdate()),n.props.close&&n.props.close.call(void 0,{target:n})},n.position=function(e,t,i){var o=e.anchorAlign,r=e.popupAlign,a=e.collision,s=e.offset,l=n._alignService.alignElement({anchor:i,element:t,elementAlign:r,anchorAlign:o,offset:s});return n._positionService.positionElement({anchor:i,anchorAlign:o,collisions:a,element:t,currentLocation:l,elementAlign:r})},n._flipped=!1,n._offset=n.props.offset,n._prevShow=t.show,n._domService=new Ne,n._alignService=new Te(n._domService),n._positionService=new Fe(n._domService),n.onOpened=n.onOpened.bind(n),n.onClosing=n.onClosing.bind(n),n.reposition=je(n.reposition.bind(n),_e),n}return ze(t,e),t.prototype.componentDidUpdate=function(){this._prevShow=this.props.show},t.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,i=e.popupClass,a=e.show,s=e.id,p=e.appendTo,u=void 0===p?be()?document.body:void 0:p;if(a){var d=this.calculatePosition(this.props,u);this._offset=d.offset,this._flipped=!!d.flipped}var c=this._flipped&&a?"up":"down",h=this.transitionDuration,f=h.transitionEnterDuration,v=h.transitionExitDuration,g=Object.assign({},{position:"absolute"},this.props.style||{},Ke({},this._offset));if(this._exitingAnimation=this._exitingAnimation||this._prevShow&&!a,(a||this._exitingAnimation)&&u){var m=o.createElement(F,{componentChildClassName:Object(l.classNames)(i,"k-popup"),className:Object(l.classNames)(n),id:s,onEntered:this.onOpened,onExiting:this.onClosing,onExited:this.onClosed,direction:c,style:g,transitionEnterDuration:f,transitionExitDuration:v,appear:!0},a?t:null);return r.createPortal(m,u)}return null},Object.defineProperty(t.prototype,"transitionDuration",{get:function(){var e=this.props.animate,t=0,n=0;return e&&(!0===e?t=n=void 0:(t=e.openDuration,n=e.closeDuration)),{transitionEnterDuration:t,transitionExitDuration:n}},enumerable:!0,configurable:!0}),t.prototype.calculatePosition=function(e,t){if(!t||!be())return{flipped:!1,offset:e.offset};var n=document.createElement("div");t.appendChild(n);var i=Object.assign({},e.style||{},Ke({visibility:"hidden"},Me)),r={className:Object(l.classNames)(e.popupClass,"k-popup","k-child-animation-container")},a=o.createElement("div",{className:Object(l.classNames)("k-animation-container",Re,e.className),style:i},o.Children.map(e.children,function(e,t){return o.createElement("div",Ke({key:t},r),e)}));n.innerHTML=s.renderToStaticMarkup(a);var p=this.position(e,n.firstChild,e.anchor);return n.parentNode.removeChild(n),p},t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=this._domService.scrollableParents(this.props.anchor||e),this._scrollableParents.map(function(e){return e.addEventListener("scroll",t.reposition)}),window.addEventListener("resize",this.reposition)},t.prototype.detachRepositionHandlers=function(){var e=this;this._scrollableParents&&(this._scrollableParents.map(function(t){return t.removeEventListener("scroll",e.reposition)}),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},t.prototype.reposition=function(){this.forceUpdate()},t.propTypes={anchor:function(e){var t=e.anchor;if(t&&"number"!=typeof t.nodeType)return new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed.")},appendTo:function(e){var t=e.appendTo;if(t&&"number"!=typeof t.nodeType)return new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed.")},className:a.string,id:a.string,popupClass:a.string,collision:a.shape({horizontal:a.oneOf([ke,Se]),vertical:a.oneOf([ke,Se])}),anchorAlign:a.shape({horizontal:a.oneOf([Ce,Pe,Ie]),vertical:a.oneOf([De,Pe,Ee])}),popupAlign:a.shape({horizontal:a.oneOf([Ce,Pe,Ie]),vertical:a.oneOf([De,Pe,Ee])}),offset:a.shape({left:a.number,top:a.number}),children:a.oneOfType([a.element,a.node]),show:a.bool,animate:a.oneOfType([a.bool,a.shape({openDuration:a.number,closeDuration:a.number})])},t.defaultProps={collision:{horizontal:ke,vertical:Se},anchorAlign:{horizontal:Ce,vertical:Ee},popupAlign:{horizontal:Ce,vertical:De},offset:Me,animate:!0,show:!1},t}(o.Component);n.d(t,"Popup",function(){return Ae})}])});
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prop-types"),require("react"),require("react-transition-group"),require("react-dom"),require("@progress/kendo-react-intl"),require("react-dom/server")):"function"==typeof define&&define.amd?define(["prop-types","react","react-transition-group","react-dom","@progress/kendo-react-intl","react-dom/server"],t):"object"==typeof exports?exports.KendoReactDropdowns=t(require("prop-types"),require("react"),require("react-transition-group"),require("react-dom"),require("@progress/kendo-react-intl"),require("react-dom/server")):e.KendoReactDropdowns=t(e.PropTypes,e.React,e.ReactTransitionGroup,e.ReactDOM,e.KendoReactIntl,e.ReactDOMServer)}(window,function(e,t,n,o,i,r){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=13)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t);var o,i=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)?i.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(" ")},r=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},a={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(){},l=function(){return function(){}}(),p=n(1),u=n(0),c=(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={focused:!1},t.handleFocus=function(e){t.setState({focused:!0})},t.handleBlur=function(e){t.setState({focused:!1})},t}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.id,o=e.className,r=e.value,a=e.placeholder,s=e.valid,l=e.style,u=i({"k-textbox-container":!0,"k-state-focused":this.state.focused,"k-state-empty":!(r||a),"k-state-invalid":!s&&void 0!==s},o);return p.createElement("span",{className:u,onFocus:this.handleFocus,onBlur:this.handleBlur,style:l},this.props.children,t?n?p.createElement("label",{htmlFor:n,className:"k-label"},t):p.createElement("span",{className:"k-label"},t):null)},t.propTypes={label:u.string,id:u.string,value:u.string,placeholder:u.string,valid:u.bool},t}(p.Component);function h(e,t,n,o){if(e){var i={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(i,o))}}var f=function(){return"undefined"==typeof window},v=function(e,t){return function(n){return t(e(n))}},g=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},m=function(e,t,n){return e.removeEventListener&&e.removeEventListener(t,n)},y=function(){},b=function(e){return e.preventDefault()},x=/touch/;function _(e){return e.type.match(x)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var O=function(e){var t=this,n=e.press;void 0===n&&(n=y);var o=e.drag;void 0===o&&(o=y);var i=e.release;void 0===i&&(i=y);var r=e.mouseOnly;void 0===r&&(r=!1),this._pressHandler=v(_,n),this._dragHandler=v(_,o),this._releaseHandler=v(_,i),this._ignoreMouse=!1,this._mouseOnly=r,this._touchAction,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(g(document,"mousemove",t._mousemove),g(document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){m(document,"mousemove",t._mousemove),m(document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(g(t._element,"pointermove",t._pointermove),g(t._element,"pointerup",t._pointerup),g(t._element,"contextmenu",b),t._touchAction=e.target.style.touchAction,e.target.style.touchAction="none",e.target.setPointerCapture(e.pointerId),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(m(t._element,"pointermove",t._pointermove),m(t._element,"pointerup",t._pointerup),m(t._element,"contextmenu",b),e.target.style.touchAction=t._touchAction,e.target.releasePointerCapture(e.pointerId),t._releaseHandler(e))}};O.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},O.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},O.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?g(e,"pointerdown",this._pointerdown):(g(e,"mousedown",this._mousedown),this._mouseOnly||(g(e,"touchstart",this._touchstart),g(e,"touchmove",this._touchmove),g(e,"touchend",this._touchend)))},O.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return m(e,"pointerdown",this._pointerdown),m(e,"pointermove",this._pointermove),void m(e,"pointerup",this._pointerup);m(e,"mousedown",this._mousedown),this._mouseOnly||(m(e,"touchstart",this._touchstart),m(e,"touchmove",this._touchmove),m(e,"touchend",this._touchend))},O.prototype._usePointers=function(){return!this._mouseOnly&&O.supportPointerEvent()},O.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},O.default=O;var w=O,k=function(){var 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])};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.element=null,t.draggable=new w({press:function(e){t.element&&t.props.onPress&&t.props.onPress.call(void 0,{target:t,event:e,element:t.element})},drag:function(e){t.element&&t.props.onDrag&&t.props.onDrag.call(void 0,{target:t,event:e,element:t.element})},release:function(e){t.element&&t.props.onRelease&&t.props.onRelease.call(void 0,{target:t,event:e})}}),t}return k(t,e),t.prototype.componentDidMount=function(){this.element&&this.draggable.bindTo(this.element)},t.prototype.componentWillUnmount=function(){this.draggable.destroy()},t.prototype.render=function(){var e=this;return p.cloneElement(p.Children.only(this.props.children),{ref:function(t){return e.element=t}})},t.propTypes={children:u.element.isRequired},t}(p.PureComponent);n.d(t,"classNames",function(){return i}),n.d(t,"guid",function(){return r}),n.d(t,"Keys",function(){return a}),n.d(t,"noop",function(){return s}),n.d(t,"FloatingLabel",function(){return d}),n.d(t,"FormComponent",function(){return l}),n.d(t,"dispatchEvent",function(){return h}),n.d(t,"isServerRendering",function(){return f}),n.d(t,"Draggable",function(){return S})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return null!=e};t.isPresent=o;t.sameCharsOnly=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0};t.shuffleData=function(e,t,n){var o=e;return n&&(o=[n].concat(o)),o.slice(t).concat(o.slice(0,t))};t.matchText=function(e,t,n){if(!o(e))return!1;var i=String(e);return n&&(i=i.toLowerCase()),0===i.indexOf(t)};t.scrollToItem=function(e,t,n,o,i){var r=e.offsetHeight,a=t*n+(i?o-e.scrollTop:0);if(i){var s=0;a+t>r?s=a+t-r:a<0&&(s=a),0!==s?e.scrollTop+=s:0===e.scrollTop&&0!==o&&(e.scrollTop=o)}else a+t>r+e.scrollTop?e.scrollTop=a+t-r:a<e.scrollTop&&(e.scrollTop-=e.scrollTop-a)};var i=function(e,t,n){var o=-1;if(t){t=t.toLowerCase();for(var i=0;i<e.length;i++){var r=(a(e[i],n)||"")+"";if(r&&r.toLowerCase().startsWith(t)){o=i;break}}}return o};t.itemIndexStartsWith=i;var r=function(e,t,n,o){void 0===o&&(o=!1);var i=function(e){return o?e:e.toLowerCase()};return e.findIndex(function(e){return n?i(a(e,n))===i(t):i(t)===i(e.toString())})};t.getItemIndexByText=r;var a=function(e,t){if(t&&o(e)){var n=t.split("."),i=e;return n.forEach(function(e){i=i?i[e]:void 0}),i}return e};t.getItemValue=a;t.matchDataCollections=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 o=0;o<e.length;o++)if(!s(e[o],t[o],n))return!1;return!0};t.removeDataItems=function(e,t,n){t.forEach(function(t){var o=e.findIndex(function(e){return s(e,t,n)});-1!==o&&e.splice(o,1)})};var s=function(e,t,n){return e===t||o(e)===o(t)&&a(e,n)===a(t,n)};t.areSame=s;t.getFocusedItem=function(e,t,n){if(t){var o=r(e,t,n,!0);return-1!==o?e[o]:e[i(e,t,n)]}return e[0]};t.suggestValue=function(e,t,n){void 0===t&&(t=[]);var o="";if(e){var r=t[i(t,e,n)];if(r){var s=a(r,n);e.toLowerCase()!==s.toLowerCase()&&(o=s.substring(e.length))}}return o};t.preventDefaultNonInputs=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()}},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(26),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.onMouseDown,o=e.onBlur,i=e.width,l=e.dir,p=e.popupSettings;return a.createElement(s.Popup,r({style:{width:i,direction:l}},p),a.createElement("div",{onMouseDown:n,onBlur:o},t))},t}(a.Component);t.default=l},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(17),s=n(3),l=n(10),p=n(11),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.renderItems=function(){var e=this,t=this.props,n=t.textField,o=t.valueField,i=t.optionPrefix,l=t.skip,p=void 0===l?0:l,u=t.focusedIndex,c=t.highlightSelected,d=void 0===c||c,h=t.value,f=t.itemRender,v=Array.isArray(h);return this.props.data.map(function(t,l){var c=p+l,g=d&&(!v&&s.areSame(t,h,o)||v&&-1!==h.findIndex(function(e){return s.areSame(e,t,o)}));return r.createElement(a.default,{id:i+"-"+c,dataItem:t,selected:g,focused:u===l,index:c,key:c,onClick:e.props.onClick,textField:n,renderer:f})})},t.prototype.renderNoValueElement=function(e){var t=this.props.noDataRender,n=r.createElement("div",{className:"k-nodata"},r.createElement("div",null,e.toLanguageString(p.nodata,p.messages[p.nodata])));return t?t.call(void 0,n):n},t.prototype.render=function(){var e=l.provideLocalizationService(this),t=this.props,n=t.id,o=t.show,i=t.wrapperCssClass,a=t.wrapperStyle,s=t.listStyle,p=t.listRef,u=this.renderItems();return u.length?r.createElement("div",{className:i,style:a,ref:function(e){return e&&e.setAttribute("unselectable","on")}},r.createElement("ul",{id:n,role:"listbox","aria-hidden":!o||void 0,className:"k-list k-reset",ref:p,style:s},u)):this.renderNoValueElement(e)},t}(r.Component);t.default=u,l.registerForLocalization(u)},function(e,t,n){"use strict";var o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(18),s=n(19),l=n(3),p=n(2),u=function(){function e(e){var t=this;this.vs=new a.default,this.navigation=new s.Navigation,this.handleItemClick=function(e,n){var o=t.initState();o.syntheticEvent=n,t.component.handleItemSelect(e,o),t.togglePopup(o),t.applyState(o)},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 o=t.component.props,i=o.textField;o.filterable&&n.events.push({type:"onFilterChange",filter:{field:i,operator:"contains",ignoreCase:!0,value:e}})},this.togglePopup=function(e){var n=t.component.props,o=void 0!==n.opened?n.opened:t.component.state.opened;void 0===n.opened&&(e.data.opened=!o),o?e.events.push({type:"onClose"}):(e.events.push({type:"onOpen"}),t.calculatePopupWidth())},this.pageChange=function(e,n){var o=t.initState();o.syntheticEvent=n,t.triggerOnPageChange(o,e.skip,e.take),t.applyState(o)},this.scrollToVirtualItem=function(e,n){var o=t.vs;if(o.enabled=!1,0===e.skip)o.reset();else if(e.skip+e.pageSize===e.total)o.scrollToEnd();else{var i=o.translate;0===i&&(o.calcScrollElementHeight(),i=o.itemHeight*e.skip,o.translateTo(i-o.itemHeight)),o.container&&(o.container.scrollTop=i),t.scrollToItem(n,!0)}setTimeout(function(){return o.enabled=!0},10)},this.renderScrollWrapper=function(e){var n=t.getPopupSettings(),o=t.vs;return o.enabled?i.createElement("div",{onScroll:o.scrollHandler,ref:o.scrollerRef,style:{height:n.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=p.guid(),this.optionPrefix=p.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||{},o=t.width,i=!0===e.opened;void 0===o&&this.calculatePopupWidth(),void 0===e.dir&&void 0===n.direction&&(this.calculateDir(),i=!0),i&&this.component.forceUpdate()},e.prototype.calculateDir=function(){this.component.element&&(this.dirCalculated=window.getComputedStyle(this.component.element).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,o=n?n.children[0]:void 0;if(o&&e>=0){var i=this.vs,r=i.container||n.parentNode,a=void 0!==t?t:i.enabled;l.scrollToItem(r,o.offsetHeight,e,i.translate,a)}},e.prototype.initState=function(){return{data:{},events:[],syntheticEvent:void 0}},e.prototype.applyState=function(e){var t=this,n={syntheticEvent:e.syntheticEvent,nativeEvent:e.syntheticEvent?e.syntheticEvent.nativeEvent:void 0,target:this.component};Object.keys(e.data).length>0&&this.component.setState(e.data),e.events.forEach(function(e){var i=e.type;delete e.type;var r=t.component.props[i];r&&r.call(void 0,o({},n,e))})},e.prototype.triggerOnPageChange=function(e,t,n){var o=this.component.props.virtual;if(o){var i=Math.min(Math.max(0,t),Math.max(0,o.total-n));i!==o.skip&&e.events.push({type:"onPageChange",page:{skip:i,take:n}})}},e.prototype.triggerPageChangeCornerItems=function(e,t){var n=this.component.props,o=n.data,i=void 0===o?[]:o,r=n.dataItemKey,a=n.virtual,s=void 0!==n.opened?n.opened:this.component.state.opened;e&&a&&this.vs.enabled&&(a.skip>0&&l.areSame(e,i[0],r)?this.triggerOnPageChange(t,a.skip-1,a.pageSize):!s&&a.skip+a.pageSize<a.total&&l.areSame(e,i[i.length-1],r)&&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:r.bool,disabled:r.bool,dir:r.string,tabIndex:r.number,data:r.array,textField:r.string,className:r.string,label:r.string,loading:r.bool,popupSettings:r.shape({animate:r.oneOfType([r.bool,r.shape({openDuration:r.number,closeDuration:r.number})]),width:r.string,height:r.string}),onOpen:r.func,onClose:r.func,onFocus:r.func,onBlur:r.func,onChange:r.func,itemRender:r.func,listNoDataRender:r.func,header:r.node,footer:r.node},e.propTypes=o({},e.basicPropTypes,{value:r.any,defaultValue:r.any,filterable:r.bool,filter:r.string,virtual:r.shape({pageSize:r.number.isRequired,skip:r.number.isRequired,total:r.number.isRequired}),onFilterChange:r.func,onPageChange:r.func}),e.defaultProps={popupSettings:{animate:!0,height:"200px"},required:!1,validityStyles:!0},e}();t.default=u},function(e,t){e.exports=n},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(21),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(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,o=this.props,i=o.value,r=o.suggestedText,a=o.focused,s=this.input,l=t!==i||r!==n,p=l&&t.startsWith(i)&&!(n&&r&&n.endsWith(r));a&&s&&document.activeElement!==s&&s.focus(),r&&l&&!p&&s&&s.setSelectionRange(i.length-r.length,i.length)},t.prototype.render=function(){var e=this;return[r.createElement("span",{className:"k-searchbar",key:"searchbar"},r.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,role:"listbox",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":this.props.disabled||void 0,disabled:this.props.disabled||void 0,readOnly:this.props.readOnly||void 0,"aria-haspopup":!0,"aria-expanded":this.props.expanded||!1,"aria-owns":this.props.owns,"aria-activedescendant":this.props.activedescendant})),this.props.clearButton&&r.createElement(a.default,{onClick:this.props.clearButtonClick,key:"clearbutton"})]},t}(r.Component);t.default=s},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.nodata="dropdowns.nodata",t.clear="dropdowns.clear",t.messages=((o={})[t.clear]="clear",o[t.nodata]="NO DATA FOUND.",o)},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(14);t.DropDownList=o.default;var i=n(20);t.ComboBox=i.default;var r=n(22);t.AutoComplete=r.default;var a=n(23);t.MultiSelect=a.default},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(2),p=n(4),u=n(15),c=n(16),d=n(5),h=n(6),f=n(3),v="Please select a value from the list!",g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.base=new h.default(t),t.searchState={word:"",last:""},t._skipFocusEvent=!1,t._filterInput=null,t._navigated=!1,t.handleItemSelect=function(e,n){var o=t.props,i=o.data,r=void 0===i?[]:i,a=o.virtual,s=o.dataItemKey,l=o.defaultItem,p=a?a.skip:0,u=-1===e&&void 0!==l?l:r[e-p],c=!f.areSame(u,t.value,s);t.triggerOnChange(u,n),c&&t.base.triggerPageChangeCornerItems(u,n)},t.renderDropDownWrapper=function(){var e=t.props,n=e.dataItemKey,o=e.data,i=void 0===o?[]:o,r=e.textField,s=e.disabled,p=e.tabIndex,u=e.loading,c=e.iconClassName,d=e.virtual,h=void 0===d?{skip:0}:d,v=e.valueRender,g=t.state.focused,m=void 0!==t.props.opened?t.props.opened:t.state.opened,y=t.value,b=i.findIndex(function(e){return f.areSame(e,y,n)}),x=f.getItemValue(y,r),_=a.createElement("span",{className:"k-input"},x),O=void 0!==v?v.call(void 0,_,y):_;return a.createElement("span",{ref:function(e){return t.base.wrapper=e},role:"listbox",tabIndex:s?void 0:p,className:l.classNames("k-dropdown-wrap",t.props.className,{"k-state-default":!s,"k-state-focused":g,"k-state-disabled":s}),style:t.props.style,onKeyDown:t.handleKeyDown,onKeyPress:t.handleKeyPress,onClick:t.handleWrapperClick,"aria-disabled":s||void 0,"aria-haspopup":!0,"aria-expanded":m||!1,"aria-owns":t.base.listBoxId,"aria-activedescendant":t.base.optionPrefix+"-"+(b+h.skip)},O,a.createElement("span",{className:"k-select"},a.createElement("span",{className:l.classNames("k-icon",c,{"k-i-arrow-s":!u&&!c,"k-i-loading":u&&!c})})),t.dummySelect(y))},t.dummySelect=function(e){return a.createElement("select",{name:t.props.name,ref:function(e){t._select=e},tabIndex:-1,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},a.createElement("option",{value:t.props.valueMap?t.props.valueMap.call(void 0,e):e}))},t.renderListContainer=function(){var e=t.props,n=e.header,o=e.footer,i=e.dir,s=t.base,u=s.getPopupSettings(),c=void 0!==t.props.opened?t.props.opened:t.state.opened,d=void 0!==t.props.virtual,h=void 0!==u.width?u.width:s.popupWidth,v={onMouseDown:f.preventDefaultNonInputs,dir:void 0!==i?i:s.dirCalculated,width:h,popupSettings:{className:l.classNames("k-list-container k-reset",u.className),animate:u.animate,anchor:t.element||void 0,show:c,open:t.onPopupOpened,close:t.onPopupClosed}};return a.createElement(p.default,r({},v),t.renderListFilter(),d?t.renderDefaultItem():void 0,d&&n,t.base.renderScrollWrapper(d?[t.renderList(),t.base.renderScrollElement()]:[t.renderDefaultItem(),n,t.renderList(),o,t.base.renderScrollElement()]),d&&o)},t.renderList=function(){var e=t.props,n=e.data,o=void 0===n?[]:n,i=e.textField,r=e.dataItemKey,s=e.virtual,l=void 0===s?{skip:0}:s,p=e.listNoDataRender,u=e.itemRender,c=t.base.vs,h=l.skip,f=void 0!==t.props.opened?t.props.opened:t.state.opened,v=t.base.getPopupSettings(),g="translateY("+c.translate+"px)";return a.createElement(d.default,{id:t.base.listBoxId,show:f,data:o.slice(),focusedIndex:t.focusedIndex(),value:t.value,textField:i,valueField:r,optionPrefix:t.base.optionPrefix,listRef:function(e){return c.list=t.base.list=e},wrapperStyle:c.enabled?{float:"left",width:"100%"}:{maxHeight:v.height},wrapperCssClass:c.enabled?void 0:"k-list-scroller",listStyle:c.enabled?{transform:g}:void 0,key:"listkey",skip:h,onClick:t.handleItemClick,itemRender:u,noDataRender:p})},t.renderListFilter=function(){var e=void 0!==t.props.filter?t.props.filter:t.state.text;return t.props.filterable&&a.createElement(u.default,{value:e,ref:function(e){return t._filterInput=e&&e.input},onChange:t.handleListFilterChange,onKeyDown:t.handleKeyDown})},t.renderDefaultItem=function(){var e=t.props,n=e.textField,o=e.defaultItem,i=e.dataItemKey;return void 0!==o&&a.createElement(c.default,{defaultItem:o,textField:n,selected:f.areSame(t.value,o,i),key:"defaultitemkey",onClick:t.handleDefaultItemClick})},t.search=function(e){clearTimeout(t._typingTimeout),t.props.filterable||(t._typingTimeout=setTimeout(function(){return t.searchState.word=""},t.props.delay),t.selectNext(e))},t.selectNext=function(e){var n,o=t.props,i=o.data,r=void 0===i?[]:i,a=o.dataItemKey,s=r.map(function(e,t){return{item:e,itemIndex:t}}),l=t.searchState.word,p=t.searchState.last,u=f.sameCharsOnly(l,p),c=s.length,d=Math.max(0,r.findIndex(function(e){return f.areSame(e,t.value,a)}));t.props.defaultItem&&(n={item:t.props.defaultItem,itemIndex:-1},c+=1,d+=1),d+=u?1:0,s=f.shuffleData(s,d,n);for(var h,v,g,m=0,y=t.props,b=y.textField,x=y.ignoreCase;m<c;m++)if(h=f.getItemValue(s[m].item,b),v=u&&f.matchText(h,p,x),g=f.matchText(h,l,x),v||g){m=s[m].itemIndex;break}if(m!==c){var _=t.base.initState();_.syntheticEvent=e,t.handleItemSelect(m,_),t.applyState(_),t._valueDuringOnChange=void 0}},t.handleKeyDown=function(e){var n=t.props,o=n.data,i=void 0===o?[]:o,r=n.filterable,a=n.disabled,s=n.virtual,p=void 0===s?{skip:0,total:0,pageSize:0}:s,u=void 0!==t.props.opened?t.props.opened:t.state.opened,c=e.keyCode,d=c===l.Keys.home||c===l.Keys.end,h=c===l.Keys.up||c===l.Keys.down,f=!u&&(e.altKey&&c===l.Keys.down||c===l.Keys.enter||c===l.Keys.space),v=u&&(e.altKey&&c===l.Keys.up||c===l.Keys.esc),g=c===l.Keys.left||c===l.Keys.right,m=h||!r&&(g||d),y=t.base.initState();if(y.syntheticEvent=e,!a){if(d&&t.base.vs.enabled)c===l.Keys.home?0!==p.skip?(t.base.triggerOnPageChange(y,0,p.pageSize),t._navigated=!0):t.triggerOnChange(i[0],y):p.skip<p.total-p.pageSize?(t.base.triggerOnPageChange(y,p.total-p.pageSize,p.pageSize),t._navigated=!0):t.triggerOnChange(i[i.length-1],y);else if(u&&c===l.Keys.enter){var b=t.focusedIndex();void 0!==b&&t.handleItemSelect(b,y),t.base.togglePopup(y),e.preventDefault()}else f||v?(t.base.togglePopup(y),e.preventDefault()):m&&(t.onNavigate(y,c),e.preventDefault());t.applyState(y)}},t.handleItemClick=function(e,n){t.base.handleItemClick(e,n),t._valueDuringOnChange=void 0},t.handleFocus=function(e){t._skipFocusEvent||t.base.handleFocus(e)},t.handleBlur=function(e){if(!t._skipFocusEvent&&t.state.focused){var n=void 0!==t.props.opened?t.props.opened:t.state.opened,o=t.base.initState();o.syntheticEvent=e,o.data.focused=!1,o.events.push({type:"onBlur"}),n&&t.base.togglePopup(o),t.applyState(o)}},t.handleDefaultItemClick=function(e){var n=t.base.initState();n.syntheticEvent=e,t.base.togglePopup(n),t.triggerOnChange(t.props.defaultItem,n),t.applyState(n)},t.handleWrapperClick=function(e){var n=t.base.initState();n.syntheticEvent=e,t.state.focused||(n.data.focused=!0),t.base.togglePopup(n),t.applyState(n)},t.handleKeyPress=function(e){if(!t.props.filterable&&0!==e.which&&e.keyCode!==l.Keys.enter){var n=String.fromCharCode(e.charCode||e.keyCode);t.props.ignoreCase&&(n=n.toLowerCase())," "===n&&e.preventDefault(),t.searchState={word:t.searchState.word+n,last:t.searchState.last+n},t.search(e)}},t.handleListFilterChange=function(e){var n=t.base.initState();n.syntheticEvent=e,void 0===t.props.filter&&(n.data.text=e.target.value),t.base.filterChanged(e.target.value,n),t.applyState(n)},t.onPopupOpened=function(){t._filterInput&&t.focusElement(t._filterInput)},t.onPopupClosed=function(){t.state.focused&&setTimeout(function(){t.state.focused&&t.base.wrapper&&t.focusElement(t.base.wrapper)})},t.setValidity=function(){t._select&&t._select.setCustomValidity&&t._select.setCustomValidity(t.validity.valid?"":t.props.validationMessage||v)},t}return i(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 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),f.isPresent(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,o=e.dataItemKey,i=this.value;return n.findIndex(function(e){return f.areSame(e,i,o)})},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,o=n.data,i=void 0===o?[]:o,r=n.dataItemKey,a=n.virtual,s=e.virtual?e.virtual.total:0,l=void 0!==this.props.opened?this.props.opened:this.state.opened,p=void 0!==e.opened?e.opened:t.opened,u=!p&&l;if(this.base.getPopupSettings().animate||u&&this.onPopupOpened(),a&&a.total!==s)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var c=this.value,d=void 0!==e.value?e.value:t.value,h=i.findIndex(function(e){return f.areSame(e,c,r)}),v=!f.areSame(d,c,r);u&&a?this.base.scrollToVirtualItem(a,h):u&&!a?this.base.scrollToItem(h):l&&p&&c&&v&&!this._navigated?this.base.scrollToItem(h):l&&p&&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,o=t.className,i=t.label,s=t.dir,p=t.virtual,u=void 0!==this.props.opened?this.props.opened:this.state.opened,c=f.getItemValue(this.value,this.props.textField),d=!this.validityStyles||this.validity.valid,h=this.base;h.vs.enabled=void 0!==p,void 0!==p&&(h.vs.skip=p.skip,h.vs.total=p.total,h.vs.pageSize=p.pageSize);var v=a.createElement("span",{ref:function(t){return e._element=t},className:l.classNames("k-widget k-dropdown k-header",{"k-state-invalid":!d},o),style:i?r({},n,{width:void 0}):n,dir:s,onMouseDown:u?f.preventDefaultNonInputs:void 0,onFocus:this.handleFocus,onBlur:this.handleBlur},this.renderDropDownWrapper(),this.renderListContainer());return i?a.createElement(l.FloatingLabel,{label:i,value:c,style:{width:n?n.width:void 0},valid:d,children:v}):v},t.prototype.onNavigate=function(e,t){var n=this.props,o=n.data,i=void 0===o?[]:o,r=n.defaultItem,a=n.dataItemKey,s=n.virtual,l=void 0===s?{skip:0,total:0,pageSize:0}:s,p=this.base.vs,u=this.value,c=i.findIndex(function(e){return f.areSame(e,u,a)}),d=this.base.navigation.navigate({current:l.skip+c,max:(p.enabled?l.total:i.length)-1,min:void 0!==r?-1:0,keyCode:t});void 0!==d&&this.handleItemSelect(d,e),this.applyState(e)},t.prototype.focusedIndex=function(){var e=f.isPresent(this.props.filter)?this.props.filter:this.state.text,t=this.props,n=t.data,o=void 0===n?[]:n,i=t.virtual,r=void 0===i?{skip:0}:i,a=t.dataItemKey,s=this.value,l=!(o.findIndex(function(e){return f.areSame(e,s,a)})<0&&!this.props.defaultItem);return!l&&e&&0===r.skip?o.indexOf(f.getFocusedItem(o,e,this.props.textField)):l||0!==r.skip?void 0:0},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),setTimeout(function(){return t._skipFocusEvent=!1},30)},t.prototype.triggerOnChange=function(e,t){f.areSame(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.propTypes=r({delay:s.number,ignoreCase:s.bool,iconClassName:s.string,defaultItem:s.any,valueRender:s.func,valueMap:s.func,validationMessage:s.string,required:s.bool},h.default.propTypes),t.defaultProps=r({delay:500,tabIndex:0,ignoreCase:!0},h.default.defaultProps,{required:!1}),t}(a.Component);t.default=g},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this;return r.createElement("span",{className:"k-list-filter"},r.createElement("input",{ref:function(t){return e.input=t},value:this.props.value||"",className:"k-textbox",onChange:this.props.onChange,onKeyDown:this.props.onKeyDown}),r.createElement("span",{className:"k-icon k-i-search"}))},t}(r.Component);t.default=a},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(2),s=n(3),l=function(e){return e.preventDefault()},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.defaultItem,o=e.textField;return r.createElement("div",{onClick:this.props.onClick,onMouseDown:l,className:a.classNames("k-list-optionlabel",{"k-state-selected":t})},s.getItemValue(n,o)||"")},t}(r.Component);t.default=p},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(2),s=n(3),l=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.renderer,o=r.createElement("li",{id:this.props.id,role:"option","aria-selected":t,className:a.classNames("k-item",{"k-state-selected":t,"k-state-focused":this.props.focused}),onClick:this.handleClick},s.getItemValue(this.props.dataItem,this.props.textField).toString());return void 0!==n?n.call(void 0,o,this.props):o},t}(r.Component);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=1533915,i=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"),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(o,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,o=this.container.scrollTop,i=this.listTranslate,r=o-i;if(!(r>n)){for(t=0;t<this.skip&&!(i+n+r<=o);t++)i-=n;if(i=this.validateTranslate(i),this.skip-t<=0&&i>=o)return this.translateTo(0),this.changePage(0,e),void(this.container.scrollTop=0);i!==this.listTranslate&&(this.translateTo(i),this.changePage(this.skip-t,e))}},e.prototype.localScrollDown=function(e){var t,n=this.itemHeight,o=this.container.scrollTop,i=this.listTranslate,r=this.list.children.length;for(t=0;t<r&&!(i+n>=o);t++)i+=n;i=this.validateTranslate(i),t>=r&&this.skip+t>=this.total?(this.translateTo(i),this.changePage(this.total-1,e)):i!==this.listTranslate&&(this.translateTo(i),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),o=this.containerHeight*t/this.total;o=this.validateTranslate(o),this.translateTo(o),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}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(2),r=function(){function e(){}return e.prototype.navigate=function(e){var t=e.keyCode;return t===i.Keys.up||t===i.Keys.left?this.next({current:e.current,min:e.min,max:e.max,step:-1}):t===i.Keys.down||t===i.Keys.right?this.next({current:e.current,min:e.min,max:e.max,step:1}):t===i.Keys.home?0:t===i.Keys.end?e.max:void 0},e.prototype.next=function(e){return o.isPresent(e.current)?Math.min(e.max,Math.max(e.current+e.step,e.min)):e.min},e}();t.Navigation=r},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(6),p=n(2),u=n(3),c=n(8),d=n(4),h=n(5),f="Please enter a valid value!",v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.base=new l.default(t),t._inputId=p.guid(),t._suggested="",t.handleItemSelect=function(e,n){var o=t.props,i=o.data,r=void 0===i?[]:i,a=o.virtual,s=o.dataItemKey,l=r[e-(a?a.skip:0)],p=!u.areSame(l,t.value,s);t.triggerOnChange(l,n),void 0!==t.state.text&&(n.data.text=void 0),p&&t.base.triggerPageChangeCornerItems(l,n)},t.toggleBtnClick=function(e){var n=t.base.initState();n.syntheticEvent=e,t.base.togglePopup(n),t.applyState(n)},t.handleItemClick=function(e,n){t.base.handleItemClick(e,n),t._valueDuringOnChange=void 0},t.handleBlur=function(e){if(t.state.focused){var n=t.base.initState();n.data.focused=!1,n.events.push({type:"onBlur"}),n.syntheticEvent=e,t.applyValueOnRejectSuggestions(e.currentTarget.value,n)}},t.onInputKeyDown=function(e){var n=e.keyCode,o=void 0!==t.props.opened?t.props.opened:t.state.opened,i=t.base.initState();if(i.syntheticEvent=e,!e.altKey&&(n===p.Keys.up||n===p.Keys.down))return e.preventDefault(),t.onNavigate(i,n),void t.applyState(i);var r=function(){e.preventDefault(),t.base.togglePopup(i),t.applyState(i)};o?e.altKey&&n===p.Keys.up?r():n===p.Keys.enter?(e.preventDefault(),t.applyValueOnEnter(e.currentTarget.value,i)):n===p.Keys.esc&&t.applyValueOnRejectSuggestions(e.currentTarget.value,i):e.altKey&&n===p.Keys.down&&r()},t.inputOnChange=function(e){var n=t.base.initState();n.syntheticEvent=e;var o=void 0!==t.props.opened?t.props.opened:t.state.opened,i=e.currentTarget,r=i.value;if(t.props.suggest){var a=i.selectionEnd===r.length,s=void 0!==t.props.filter?t.props.filter:t.state.text;u.isPresent(s)||(s=u.getItemValue(t.value,t.props.textField)||"");var l=s&&s===r,p=s&&s.length>r.length;l||p||!a?t._suggested="":t.suggestValue(r)}void 0===t.props.filter&&(n.data.text=r),void 0!==t.state.focusedItem&&(n.data.focusedItem=void 0),o||t.base.togglePopup(n),t.base.filterChanged(r,n),t.applyState(n)},t.clearButtonClick=function(e){var n=t.base.initState();n.syntheticEvent=e,e.stopPropagation(),t._suggested="",t.base.filterChanged("",n),void 0===t.props.filter&&void 0!==t.state.text&&(n.data.text=void 0),t.triggerOnChange(null,n),(void 0!==t.props.opened?t.props.opened:t.state.opened)&&t.base.togglePopup(n),t.applyState(n)},t.setValidity=function(){t._input&&t._input.setCustomValidity&&t._input.setCustomValidity(t.validity.valid?"":t.props.validationMessage||f)},t}return i(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,o=e.dataItemKey,i=this.value;return n.findIndex(function(e){return u.areSame(e,i,o)})},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,o=n.data,i=void 0===o?[]:o,r=n.dataItemKey,a=n.virtual,s=e.virtual?e.virtual.total:0,l=void 0!==this.props.opened?this.props.opened:this.state.opened,p=void 0!==e.opened?e.opened:t.opened,c=!p&&l,d=this.value;if(this._valueOnDidUpdate=d,a&&a.total!==s)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var h=void 0!==e.value?e.value:t.value,f=i.findIndex(function(e){return u.areSame(e,d,r)}),v=!u.areSame(h,d,r);c&&a?this.base.scrollToVirtualItem(a,f):c&&!a?this.base.scrollToItem(f):l&&p&&d&&v&&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,o=n.dir,i=n.disabled,s=n.clearButton,l=void 0===s?t.defaultProps.clearButton:s,c=n.label,d=n.textField,h=n.className,f=n.style,v=n.loading,g=n.iconClassName,m=n.virtual,y=this.state.focused,b=!this.validityStyles||this.validity.valid,x=void 0!==this.props.filter?this.props.filter:this.state.text,_=u.getItemValue(this.value,d),O=u.isPresent(x)?x:_,w=l&&(!!O||u.isPresent(this.value)),k=this.base,S=k.vs;S.enabled=void 0!==m,void 0!==m&&(S.skip=m.skip,S.total=m.total,S.pageSize=m.pageSize);var P=a.createElement("span",{className:p.classNames("k-widget k-combobox k-header",{"k-combobox-clearable":l,"k-state-invalid":!b},h),ref:function(t){return e._element=t},style:c?r({},f,{width:void 0}):f,dir:o},a.createElement("span",{ref:function(e){return k.wrapper=e},className:p.classNames("k-dropdown-wrap",{"k-state-default":!i,"k-state-disabled":i,"k-state-focused":y&&!i})},this.renderSearchBar(w,O||"",this._inputId),a.createElement("span",{className:"k-select",onClick:this.toggleBtnClick,onMouseDown:function(e){return e.preventDefault()}},a.createElement("span",{className:p.classNames("k-icon",g,{"k-i-arrow-s":!v&&!g,"k-i-loading":v&&!g})}))),this.renderListContainer());return c?a.createElement(p.FloatingLabel,{label:c,value:O,style:{width:f?f.width:void 0},valid:b,id:this._inputId,children:P}):P},t.prototype.onNavigate=function(e,t){var n=this.props,o=n.data,i=void 0===o?[]:o,r=n.virtual,a=void 0===r?{skip:0}:r,s=this.props.filter?this.props.filter:this.state.text,l=this.getFocusedIndex(),p=this.base.vs,c=this.value;if(this._suggested="",-1===l||u.isPresent(c))if(""===s)this.handleItemSelect(0,e);else{var d=a.skip+l,h=this.base.navigation.navigate({keyCode:t,current:d,max:(p.enabled?p.total:i.length)-1,min:0});void 0!==h&&this.handleItemSelect(h,e)}else this.handleItemSelect(l,e)},t.prototype.applyValueOnEnter=function(e,t){var n,o=this.props,i=o.data,r=void 0===i?[]:i,a=o.textField,s=o.allowCustom,l=void 0!==this.props.opened?this.props.opened:this.state.opened,p=u.getItemIndexByText(r,e,a),c=-1!==p,d=void 0;if(this._suggested="",c)d=r[p];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,o=this.props,i=o.data,r=void 0===i?[]:i,a=o.textField,s=o.allowCustom,l=void 0!==this.props.opened?this.props.opened:this.state.opened,p=u.getItemValue(this.value,a);if(this._suggested="",e===p||""===e&&!u.isPresent(p))return l&&this.base.togglePopup(t),this.applyState(t);var c=u.getItemIndexByText(r,e,a,!0),d=null;-1!==c?d=r[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,o=this.props,i=o.data,r=void 0===i?[]:i,a=o.textField,s=o.virtual,l=(void 0===s?{skip:0}:s).skip,p=""===e&&0===l?0:u.itemIndexStartsWith(r,e,a);return-1!==p?this.handleItemSelect(p+l,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,o=t.header,i=t.footer,r=void 0!==this.props.opened?this.props.opened:this.state.opened,s=e.getPopupSettings(),l=void 0!==s.width?s.width:e.popupWidth;return a.createElement(d.default,{onMouseDown:function(e){return e.preventDefault()},width:l,popupSettings:{animate:s.animate,anchor:this.element||void 0,show:r,className:p.classNames("k-list-container k-reset",s.className)},dir:void 0!==n?n:this.base.dirCalculated},o,e.renderScrollWrapper([this.renderList(),e.renderScrollElement()]),i)},t.prototype.renderList=function(){var e=this,t=this.base,n=this.props,o=n.textField,i=n.dataItemKey,r=n.listNoDataRender,s=n.itemRender,l=n.data,p=void 0===l?[]:l,c=n.virtual,d=void 0===c?{skip:0}:c,f=t.getPopupSettings(),v=t.vs,g=d.skip,m=void 0!==this.props.opened?this.props.opened:this.state.opened,y="translateY("+v.translate+"px)",b=m?this.getFocusedIndex():void 0,x=void 0!==this.props.filter?this.props.filter:this.state.text,_=u.getItemValue(this.value,o),O=u.isPresent(x)&&x!==_?null:this.value;return a.createElement(h.default,{id:t.listBoxId,show:m,data:p,focusedIndex:b,value:O,textField:o,valueField:i,optionPrefix:t.optionPrefix,listRef:function(t){return v.list=e.base.list=t},wrapperStyle:v.enabled?{float:"left",width:"100%"}:{maxHeight:f.height},wrapperCssClass:v.enabled?void 0:"k-list-scroller",listStyle:v.enabled?{transform:y}:void 0,key:"listkey",skip:g,onClick:this.handleItemClick,itemRender:s,noDataRender:r})},t.prototype.renderSearchBar=function(e,t,n){var o=this,i=this.props,r=i.placeholder,s=i.tabIndex,l=i.disabled,p=i.data,d=void 0===p?[]:p,h=i.dataItemKey,f=i.virtual,v=void 0===f?{skip:0}:f,g=void 0!==this.props.opened?this.props.opened:this.state.opened,m=this.value,y=Math.max(0,d.findIndex(function(e){return u.areSame(e,m,h)}));return this._suggested&&!u.areSame(this._valueOnDidUpdate,m,h)&&(this._suggested=""),a.createElement(c.default,{id:n,placeholder:r,tabIndex:s||void 0,value:t+this._suggested,suggestedText:this._suggested,ref:function(e){return o._input=e&&e.input},onKeyDown:this.onInputKeyDown,onChange:this.inputOnChange,onFocus:this.base.handleFocus,onBlur:this.handleBlur,disabled:l,expanded:g,owns:this.base.listBoxId,activedescendant:this.base.optionPrefix+"-"+(y+v.skip),clearButton:e,clearButtonClick:this.clearButtonClick})},t.prototype.triggerOnChange=function(e,t){var n=this.value;!u.isPresent(n)&&!u.isPresent(e)||u.areSame(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,o=void 0===n?[]:n,i=t.textField,r=t.dataItemKey,a=t.virtual,s=void 0===a?{skip:0}:a,l=this.props.filter?this.props.filter:this.state.text;return u.isPresent(e)&&void 0===l?o.findIndex(function(t){return u.areSame(t,e,r)}):l?u.itemIndexStartsWith(o,l,i):0===s.skip?0:-1},t.prototype.suggestValue=function(e){var t=this.props,n=t.data,o=t.textField;this._suggested=u.suggestValue(e,n,o)},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.propTypes=r({},l.default.propTypes,{dataItemKey:s.string,suggest:s.bool,placeholder:s.string,allowCustom:s.bool,clearButton:s.bool,iconClassName:s.string,validationMessage:s.string,required:s.bool}),t.defaultProps=r({},l.default.defaultProps,{allowCustom:!1,clearButton:!0,required:!1}),t}(a.Component);t.default=v},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(10),s=n(11),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){return e.preventDefault()},t}return i(t,e),t.prototype.render=function(){var e=a.provideLocalizationService(this).toLanguageString(s.clear,s.messages[s.clear]);return r.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}(r.Component);t.default=l,a.registerForLocalization(l)},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(8),p=n(4),u=n(5),c=n(6),d=n(3),h=n(2),f="Please enter a valid value!",v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.base=new c.default(t),t._inputId=h.guid(),t._suggested="",t.handleItemSelect=function(e,n){var o=t.props.data,i=void 0===o?[]:o,r=d.getItemValue(i[e],t.props.textField);t.triggerOnChange(r,n)},t.itemFocus=function(e,n){var o=t.props,i=o.data,r=void 0===i?[]:i,a=o.textField,s=r[e];d.areSame(t.state.focusedItem,s,a)||(n.data.focusedItem=s)},t.togglePopup=function(e){t.base.togglePopup(e)},t.setValidity=function(){t._input&&t._input.setCustomValidity&&t._input.setCustomValidity(t.validity.valid?"":t.props.validationMessage||f)},t.handleItemClick=function(e,n){t.base.handleItemClick(e,n),t._valueDuringOnChange=void 0},t.onChangeHandler=function(e){var n=t.base.initState(),o=e.currentTarget,i=o.value,r=o.selectionEnd===i.length;n.syntheticEvent=e;var a=t._suggested,s=t.value,l=s&&s.substring(0,s.length-a.length),p=l&&l===i,u=l&&l.length>i.length,c=t.props,h=c.suggest,f=c.data,v=void 0===f?[]:f,g=c.textField,m=void 0!==t.props.opened?t.props.opened:t.state.opened;if(void 0!==h&&!1!==h){p||u||!r?t._suggested="":t.suggestValue(i);var y=i+t._suggested,b={userInput:i,value:t._suggested};t.triggerOnChange(y,n,{suggestion:b})}else t._suggested="",t.triggerOnChange(i,n);(!m&&i||m&&!i)&&t.togglePopup(n);var x=d.getFocusedItem(v,i,g);t.state.focusedItem!==x&&(n.data.focusedItem=x),t.applyState(n)},t.clearButtonClick=function(e){var n=t.base.initState(),o=void 0!==t.props.opened?t.props.opened:t.state.opened;n.syntheticEvent=e;t._suggested="",t.triggerOnChange("",n),void 0!==t.state.focusedItem&&(n.data.focusedItem=void 0),o&&t.togglePopup(n),t.applyState(n)},t.onInputKeyDown=function(e){var n=e.keyCode,o=void 0!==t.props.opened?t.props.opened:t.state.opened,i=t.base.initState();i.syntheticEvent=e;var r=function(){o&&e.preventDefault()};n===h.Keys.enter||n===h.Keys.esc?(r(),t.applyInputValue(e.currentTarget.value,i,e.keyCode)):n!==h.Keys.up&&n!==h.Keys.down||(r(),t.onNavigate(i,n))},t.handleBlur=function(e){if(t.state.focused){var n=t.base.initState();n.data.focused=!1,n.events.push({type:"onBlur"}),n.syntheticEvent=e,t.applyInputValue(e.currentTarget.value,n)}},t}return i(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.state.focusedItem,o=void 0!==n&&t.focusedItem!==n,i=void 0!==this.props.opened?this.props.opened:this.state.opened,r=!(void 0!==e.opened?e.opened:t.opened)&&i,a=this.props,s=a.data,l=void 0===s?[]:s,p=a.textField;if(i&&o||r){var u=void 0!==n?l.findIndex(function(e){return d.areSame(e,n,p)}):l.indexOf(d.getFocusedItem(l,this.value,p));this.base.scrollToItem(u)}this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var e=this,t=this.props,n=t.dir,o=t.disabled,i=t.label,s=t.className,l=t.style,p=t.loading,u=t.suggest,c=!this.validityStyles||this.validity.valid,d=this.state.focused,f=this.base,v=this.value,g=!p&&!!v;"string"==typeof u&&(this._suggested=u);var m=a.createElement("span",{className:h.classNames("k-widget k-autocomplete k-header",s,{"k-state-disabled":o,"k-state-focused":d&&!o,"k-state-invalid":!c}),ref:function(t){e._element=t,f.wrapper=t},style:i?r({},l,{width:void 0}):l,dir:n},this.renderSearchBar(g,v||""),p&&a.createElement("span",{className:"k-icon k-i-loading"}),this.renderListContainer());return i?a.createElement(h.FloatingLabel,{label:i,value:v,valid:c,style:{width:l?l.width:void 0},id:this._inputId,children:m}):m},t.prototype.onNavigate=function(e,t){var n=this,o=this.value,i=this.props,r=i.data,a=void 0===r?[]:r,s=i.textField,l=void 0!==this.state.focusedItem?a.findIndex(function(e){return d.areSame(e,n.state.focusedItem,s)}):a.indexOf(d.getFocusedItem(a,o,s)),p=this.base.navigation.navigate({keyCode:t,current:l,max:a.length-1,min:0});void 0!==p&&this.itemFocus(p,e),this.applyState(e)},t.prototype.applyInputValue=function(e,t,n){var o=void 0!==this.props.opened?this.props.opened:this.state.opened,i=this.props,r=i.data,a=void 0===r?[]:r,s=i.textField,l=void 0!==this.state.focusedItem?this.state.focusedItem:d.getFocusedItem(a,e,s);if(this._suggested="",o&&n===h.Keys.enter){var p=d.getItemValue(l,s);this.triggerOnChange(p,t)}this.state.focusedItem!==l&&(t.data.focusedItem=l),o&&this.togglePopup(t),this.applyState(t)},t.prototype.renderSearchBar=function(e,t){var n=this,o=this.base,i=this.props,r=i.placeholder,s=i.tabIndex,p=i.disabled,u=i.readonly,c=i.textField,h=i.data,f=void 0===h?[]:h,v=this.state.focused,g=void 0!==this.props.opened?this.props.opened:this.state.opened,m=d.getItemIndexByText(f,t,c,!0);return a.createElement(l.default,{id:this._inputId,placeholder:r,tabIndex:s||void 0,value:t,suggestedText:this._suggested,focused:v,ref:function(e){return n._input=e&&e.input},onKeyDown:this.onInputKeyDown,onChange:this.onChangeHandler,onFocus:o.handleFocus,onBlur:this.handleBlur,disabled:p,readOnly:u,expanded:g,owns:o.listBoxId,activedescendant:o.optionPrefix+"-"+m,clearButton:e,clearButtonClick:this.clearButtonClick})},t.prototype.renderListContainer=function(){var e=this.base,t=this.props,n=t.dir,o=t.header,i=t.footer,r=e.getPopupSettings(),s=void 0!==this.props.opened?this.props.opened:this.state.opened,l=void 0!==r.width?r.width:e.popupWidth;return a.createElement(p.default,{onMouseDown:function(e){return e.preventDefault()},width:l,popupSettings:{animate:r.animate,anchor:this.element||void 0,show:s,className:h.classNames("k-list-container k-reset",r.className)},dir:void 0!==n?n:this.base.dirCalculated},o,this.renderList(),i)},t.prototype.renderList=function(){var e=this,t=this.base,n=t.getPopupSettings(),o=this.props,i=o.textField,r=o.data,s=void 0===r?[]:r,l=o.listNoDataRender,p=o.itemRender,c=this.value,h=void 0!==this.props.opened?this.props.opened:this.state.opened,f=void 0!==this.state.focusedItem?s.findIndex(function(t){return d.areSame(t,e.state.focusedItem,i)}):s.indexOf(d.getFocusedItem(s,this.value,i));return a.createElement(u.default,{id:t.listBoxId,show:h,data:s.slice(),focusedIndex:f,value:c,textField:i,valueField:i,highlightSelected:!1,optionPrefix:t.optionPrefix,listRef:function(e){return t.list=e},wrapperStyle:{maxHeight:n.height},wrapperCssClass:"k-list-scroller",onClick:this.handleItemClick,itemRender:p,noDataRender:l})},t.prototype.triggerOnChange=function(e,t,n){(this.value!==e||n)&&(t.data.value=e,this._valueDuringOnChange=e,t.events.push(r({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,o=void 0===n?[]:n,i=t.textField,r=o[d.itemIndexStartsWith(o,e,i)];if(r){var a=d.getItemValue(r,i);e.toLowerCase()!==a.toLowerCase()&&(this._suggested=a.substring(e.length))}}},t.propTypes=r({},c.default.basicPropTypes,{suggest:s.oneOfType([s.bool,s.string]),placeholder:s.string,value:s.string,defaultValue:s.string,validationMessage:s.string,required:s.bool,readonly:s.bool}),t.defaultProps=r({},c.default.defaultProps),t}(a.Component);t.default=v},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(1),l=n(0),p=n(2),u=n(4),c=n(5),d=n(24),h=n(8),f=n(6),v=n(25),g=n(3),m="Please enter a valid value!",y=function(e){return e.preventDefault()},b=function(e,t,n){return!!e==!!t&&e.text===t.text&&(e===t||g.matchDataCollections(e.data,t.data,n))},x=function(e){return e===a.CustomItem};!function(e){e[e.None=0]="None",e[e.ListItem=1]="ListItem",e[e.CustomItem=2]="CustomItem"}(a||(a={}));var _=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={activedescendant:v.ActiveDescendant.PopupList},t._valueItemsDuringOnChange=null,t._inputId=p.guid(),t.base=new f.default(t),t._tags=[],t._skipFocusEvent=!1,t.handleItemSelect=function(e,n){var o=t.props,i=o.data,r=void 0===i?[]:i,a=o.dataItemKey,s=o.virtual,l=r[e-(s?s.skip:0)],p=t.value.findIndex(function(e){return g.areSame(e,l,a)}),u=[];-1!==p?(u=t.value).splice(p,1):u=t.value.concat([l]),(void 0!==t.props.filter?t.props.filter:t.state.text)&&(t.state.text&&(n.data.text=""),t.base.filterChanged("",n)),void 0!==t.state.focusedIndex&&(n.data.focusedIndex=void 0),t.triggerOnChange(u,n),t.base.triggerPageChangeCornerItems(l,n)},t.onTagDelete=function(e,n){var o=void 0!==t.props.opened?t.props.opened:t.state.opened,i=t.base.initState();i.syntheticEvent=n,o&&t.base.togglePopup(i),t.state.focused||(i.data.focused=!0);var r=t.value;g.removeDataItems(r,e,t.props.dataItemKey),t.triggerOnChange(r,i),t.applyState(i)},t.itemFocus=function(e,n){var o=t.props,i=o.data,r=void 0===i?[]:i,a=o.allowCustom,s=o.virtual,l=s?s.skip:0,p=void 0!==t.props.filter?t.props.filter:t.state.text,u=t.getFocusedState().focusedIndex,c=a&&p,d=r[e-l];d&&u!==e?t.state.focusedIndex!==e&&(n.data.focusedIndex=e):c&&-1===e&&void 0!==t.state.focusedIndex&&(n.data.focusedIndex=void 0),t.base.triggerPageChangeCornerItems(d,n)},t.searchbarRef=function(e){var n=t._input=e&&e.input;n&&t.state.focused&&setTimeout(function(){return n.focus()},0)},t.onChangeHandler=function(e){var n=t.base.initState(),o=e.currentTarget.value,i=t.props,r=i.allowCustom,a=i.data,s=void 0===a?[]:a,l=i.textField,p=i.virtual,u=p?p.skip:0,c=void 0!==t.props.opened?t.props.opened:t.state.opened;if(n.syntheticEvent=e,void 0===t.props.filter&&(n.data.text=o),r)n.data.focusedIndex=o?void 0:0;else{var d=(o?g.itemIndexStartsWith(s,o,l):0)+u;t.state.focusedIndex!==d&&(n.data.focusedIndex=d)}c||t.base.togglePopup(n),t.base.filterChanged(o,n),t.applyState(n)},t.clearButtonClick=function(e){var n=void 0!==t.props.opened?t.props.opened:t.state.opened,o=t.base.initState();o.syntheticEvent=e,e.stopPropagation(),t.value.length>0&&t.triggerOnChange([],o),void 0!==t.state.focusedIndex&&(o.data.focusedIndex=void 0),n&&t.base.togglePopup(o);var i=void 0!==t.props.filter?t.props.filter:t.state.text;g.isPresent(i)&&""!==i&&t.base.filterChanged("",o),t.state.text&&(o.data.text=""),t.applyState(o)},t.onInputKeyDown=function(e){var n=e.keyCode,o=void 0!==t.props.filter?t.props.filter:t.state.text,i=void 0!==t.props.opened?t.props.opened:t.state.opened,r=t.getFocusedState().focusedItem,a=t.base.initState();if(a.syntheticEvent=e,!o&&t.value.length>0&&(n===p.Keys.left||n===p.Keys.right||n===p.Keys.home||n===p.Keys.end||n===p.Keys.delete||n===p.Keys.backspace))return t.onTagsNavigate(e,a);var s=function(){e.preventDefault(),t.base.togglePopup(a),t.applyState(a)};i?e.altKey&&n===p.Keys.up?s():n===p.Keys.up||n===p.Keys.down?(e.preventDefault(),t.onNavigate(a,n)):n===p.Keys.enter?(e.preventDefault(),t.props.allowCustom&&o&&null===r?t.customItemSelect(e):t.selectFocusedItem(e)):n===p.Keys.esc&&s():e.altKey&&n===p.Keys.down&&s()},t.renderListContainer=function(){var e=t.base,n=t.props,o=n.header,i=n.footer,a=n.allowCustom,l=n.dir,c=t.base.getPopupSettings(),d=void 0!==t.props.opened?t.props.opened:t.state.opened,h=void 0!==t.props.filter?t.props.filter:t.state.text,f=void 0!==t.props.virtual,v=void 0!==c.width?c.width:e.popupWidth,g={onMouseDown:y,dir:void 0!==l?l:e.dirCalculated,onBlur:t.handleBlur,width:v,popupSettings:{className:p.classNames("k-list-container k-reset",c.className),animate:c.animate,anchor:t.element||void 0,show:d,open:t.onPopupOpened,close:t.onPopupClosed}},m=t.getFocusedState().focusedType,b=a&&h&&s.createElement("div",{className:"k-list",key:"customitem",onClick:t.customItemSelect},s.createElement("div",{className:p.classNames("k-item k-custom-item",{"k-state-focused":x(m)})},h,s.createElement("span",{className:"k-icon k-i-plus",style:{float:"right"}})));return s.createElement(u.default,r({},g),f&&o,t.base.renderScrollWrapper(f?[b,t.renderList(),t.base.renderScrollElement()]:[o,b,t.renderList(),i,t.base.renderScrollElement()]),f&&i)},t.renderList=function(){var e=t.props,n=e.data,o=void 0===n?[]:n,i=e.textField,r=e.listNoDataRender,a=e.itemRender,l=e.dataItemKey,p=e.virtual,u=t.base.vs,d=p?p.skip:0,h=void 0!==t.props.opened?t.props.opened:t.state.opened,f=t.getFocusedState().focusedIndex,v=t.base.getPopupSettings(),g="translateY("+u.translate+"px)";return s.createElement(c.default,{id:t.base.listBoxId,show:h,data:o.slice(),focusedIndex:f-d,value:t.value,textField:i,valueField:l,optionPrefix:t.base.optionPrefix,listRef:function(e){return u.list=t.base.list=e},wrapperStyle:u.enabled?{float:"left",width:"100%"}:{maxHeight:v.height},wrapperCssClass:u.enabled?void 0:"k-list-scroller",listStyle:u.enabled?{transform:g}:void 0,key:"listKey",skip:d,onClick:t.handleItemClick,itemRender:a,noDataRender:r})},t.customItemSelect=function(e){var n,o=void 0!==t.props.filter?t.props.filter:t.state.text,i=t.props.textField;if(o){var r=t.base.initState();r.syntheticEvent=e;var a=i?((n={})[i]=o,n):o;void 0!==t.state.text&&(r.data.text=""),r.data.focusedIndex=void 0,t.base.filterChanged("",r);var s=t.value.concat([a]);t.triggerOnChange(s,r),t.base.togglePopup(r),t.applyState(r)}},t.handleWrapperClick=function(e){var n=void 0!==t.props.opened?t.props.opened:t.state.opened,o=t._input;!n&&o&&t.focusElement(o);var i=t.base.initState();i.syntheticEvent=e,t.state.focused||(i.events.push({type:"onFocus"}),i.data.focused=!0),t.base.togglePopup(i),t.applyState(i)},t.handleItemClick=function(e,n){t.base.handleItemClick(e,n),t._valueItemsDuringOnChange=null},t.handleBlur=function(e){if(t.state.focused&&!t._skipFocusEvent){var n=void 0!==t.props.opened?t.props.opened:t.state.opened,o=t.base.initState(),i=t.props,r=i.allowCustom,a=i.filterable;o.syntheticEvent=e,o.data.focused=!1,o.events.push({type:"onBlur"}),n&&(t.state.opened&&(o.data.opened=!1),o.events.push({type:"onClose"})),r||a||!t.state.text||(o.data.text=""),t.applyState(o)}},t.handleFocus=function(e){t._skipFocusEvent||t.base.handleFocus(e)},t.onPopupOpened=function(){t._input&&t.focusElement(t._input)},t.onPopupClosed=function(){t.state.focused&&setTimeout(function(){t.state.focused&&t.focusElement(t._input)},0)},t.setValidity=function(){t._input&&t._input.setCustomValidity&&t._input.setCustomValidity(t.validity.valid?"":t.props.validationMessage||m)},t}return i(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,o=n?n.skip:0,i=e.virtual?e.virtual.total:0,r=void 0!==this.props.opened?this.props.opened:this.state.opened,a=void 0!==e.opened?e.opened:t.opened,s=!a&&r,l=a&&!r;if(!this.base.getPopupSettings().animate&&l&&this.onPopupClosed(),n&&n.total!==i)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var p=this.getFocusedState(),u=p.focusedItem,c=p.focusedIndex,d=void 0!==t.focusedIndex&&t.focusedIndex!==c;s&&n?this.base.scrollToVirtualItem(n,c-o):s&&!n?this.base.scrollToItem(c):r&&a&&u&&d&&this.base.scrollToItem(c-o)}this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.onNavigate=function(e,t){var n=this.props,o=n.allowCustom,i=n.data,r=void 0===i?[]:i,a=void 0!==this.props.opened?this.props.opened:this.state.opened,s=void 0!==this.props.filter?this.props.filter:this.state.text,l=this.getFocusedState(),u=l.focusedType,c=l.focusedIndex,d=o&&s,h=x(u),f=this.base,v=f.vs;if(a&&t===p.Keys.up&&h)void 0!==this.state.focusedIndex&&(e.data.focusedIndex=void 0);else{var g=f.navigation.navigate({keyCode:t,current:c,max:(v.enabled?v.total:r.length)-1,min:d?-1:0});void 0!==g&&this.itemFocus(g,e)}this.applyState(e)},t.prototype.render=function(){var e=this,t=this.props,n=t.style,o=t.className,i=t.label,a=t.dir,l=t.disabled,u=t.tags,c=void 0===u?[]:u,h=t.textField,f=t.dataItemKey,v=t.virtual,m=this.state,y=m.focused,x=m.text,_=m.focusedTag,O=this.base.vs;O.enabled=void 0!==v,void 0!==v&&(O.skip=v.skip,O.total=v.total,O.pageSize=v.pageSize),0===c.length&&this.value.forEach(function(e){c.push({text:g.getItemValue(e,h),data:[e]})}),this.setItems(c,this._tags);var w=!this.validityStyles||this.validity.valid,k=s.createElement("span",{ref:function(t){return e._element=t},className:p.classNames("k-widget k-multiselect k-header",o,{"k-state-focused":y&&!l,"k-state-invalid":!w,"k-state-disabled":l}),style:i?r({},n,{width:void 0}):n,dir:a,onFocus:this.handleFocus,onBlur:this.handleBlur},s.createElement("div",{onClick:this.handleWrapperClick,ref:function(t){return e.base.wrapper=t},className:"k-multiselect-wrap k-floatwrap",onMouseDown:g.preventDefaultNonInputs},s.createElement(d.default,{tagRender:this.props.tagRender,onTagDelete:this.onTagDelete,data:c,guid:this.base.optionPrefix,focused:_?c.find(function(e){return b(e,_,f)}):void 0}),this.renderSearchbar(),this.props.loading&&s.createElement("span",{className:"k-icon k-i-loading"})),this.renderListContainer());return i?s.createElement(p.FloatingLabel,{label:i,value:x||g.getItemValue(this.value[0],h),style:{width:n?n.width:void 0},children:k,valid:w}):k},t.prototype.renderSearchbar=function(){var e=this.state,t=e.activedescendant,n=e.focusedTag,o=this.props,i=o.disabled,r=o.textField,a=o.placeholder,l=(void 0!==this.props.filter?this.props.filter:this.state.text)||"",p=void 0!==this.props.opened?this.props.opened:this.state.opened,u=this.getFocusedState(),c=u.focusedItem,d=u.focusedIndex,f=!!l||this.value.length>0,m=0!==this.value.length||l?void 0:a,y=this.base.optionPrefix+"-"+(t===v.ActiveDescendant.TagsList&&void 0!==n)?g.getItemValue(c,r):d;return s.createElement(h.default,{id:this._inputId,size:Math.max((m||"").length,l.length,1),tabIndex:this.props.tabIndex,placeholder:m,value:l,onChange:this.onChangeHandler,onKeyDown:this.onInputKeyDown,ref:this.searchbarRef,disabled:i,expanded:p,owns:this.base.listBoxId,activedescendant:y,clearButton:f,clearButtonClick:this.clearButtonClick})},t.prototype.onTagsNavigate=function(e,t){var n=e.keyCode,o=this.state.focusedTag,i=this._tags,r=this.props.dataItemKey,a=o?i.findIndex(function(e){return b(e,o,r)}):-1,s=void 0,l=-1!==a;if(n===p.Keys.left)s=i[a=l?Math.max(0,a-1):i.length-1];else if(n===p.Keys.right)a===i.length-1?s=void 0:l&&(s=i[a=Math.min(i.length-1,a+1)]);else if(n===p.Keys.home)s=i[0];else if(n===p.Keys.end)s=i[i.length-1];else if(n===p.Keys.delete){if(l){var u=this.value;g.removeDataItems(u,i[a].data,r),this.triggerOnChange(u,t)}}else if(n===p.Keys.backspace){u=this.value;if(l)g.removeDataItems(u,i[a].data,r),this.triggerOnChange(u,t);else if(!l&&i.length){var c=i.pop();g.removeDataItems(u,c.data,r),this.triggerOnChange(u,t)}}s!==o&&(t.data.focusedTag=s),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,o=void 0===n?[]:n,i=t.virtual,r=this.getFocusedState().focusedIndex,a=i?i.skip:0;void 0!==o[r-a]?this.handleItemClick(r,e):this.handleItemClick(a,e)},t.prototype.setItems=function(e,t){t.length=0,t.push.apply(t,e)},t.prototype.getFocusedState=function(){var e=this.state,t=e.focusedIndex,n=e.text,o=this.props,i=o.allowCustom,r=o.data,s=void 0===r?[]:r,l=o.dataItemKey,p=o.virtual,u=p&&p.skip||0;if(void 0!==t)return{focusedIndex:t,focusedItem:s[t-u],focusedType:a.ListItem};var c=this.value;if(i&&n)return{focusedItem:null,focusedIndex:-1,focusedType:a.CustomItem};if(c.length){var d=c[c.length-1],h=s.findIndex(function(e){return g.areSame(e,d,l)});return void 0!==s[h]?{focusedIndex:h+u,focusedItem:s[h],focusedType:a.ListItem}:{focusedType:a.None,focusedIndex:-1}}return 0===u?{focusedItem:s[0],focusedIndex:0,focusedType:a.ListItem}:{focusedType:a.None,focusedIndex:-1}},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),setTimeout(function(){return t._skipFocusEvent=!1},30)},t.prototype.applyState=function(e){this.base.applyState(e),this._valueItemsDuringOnChange=null},t.propTypes=r({},f.default.propTypes,{value:l.arrayOf(l.any),defaultValue:l.arrayOf(l.any),dataItemKey:l.string,placeholder:l.string,tags:l.arrayOf(l.shape({text:l.string,data:l.arrayOf(l.any)})),tagRender:l.func}),t.defaultProps=r({},f.default.defaultProps,{required:!1}),t}(s.Component);t.default=_},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=function(e){return e.preventDefault()},s=function(e){return e.stopPropagation()},l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this;return r.createElement("ul",{className:"k-reset",role:"listbox"},this.props.data.map(function(t){var n=r.createElement("li",{className:t===e.props.focused?"k-button k-state-focused":"k-button",key:t.text,id:e.props.guid+"-"+t.text,onMouseDown:a,onClick:s},r.createElement("span",null,t.text),r.createElement("span",{"aria-label":"delete",className:"k-select",onClick:function(n){return e.props.onTagDelete.call(void 0,t.data,n)}},r.createElement("span",{className:"k-icon k-i-close"})));return e.props.tagRender?e.props.tagRender(t,n):n}))},t}(r.Component);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.PopupList=0]="PopupList",e[e.TagsList=1]="TagsList"}(t.ActiveDescendant||(t.ActiveDescendant={}))},function(e,t,n){"use strict";n.r(t);var o,i=n(1),r=n(9),a=n(0),s=n(12),l=n(2),p=n(7),u={outerHeight:function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop),o=parseFloat(t.marginBottom);return e.offsetHeight+n+o},outerWidth:function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginLeft),o=parseFloat(t.marginRight);return e.offsetWidth+n+o},styles:{"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"}},c=(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&(n[o[i]]=e[o[i]])}return n},f=u.styles,v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(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,o=t.style,r=t.appear,a=t.enter,s=t.exit,u=t.transitionName,c=t.transitionEnterDuration,v=t.transitionExitDuration,g=t.className,m=t.onEnter,y=t.onEntering,b=t.onEntered,x=t.onExit,_=t.onExiting,O=t.onExited,w=t.mountOnEnter,k=t.unmountOnExit,S=t.animationEnteringStyle,P=t.animationEnteredStyle,C=t.animationExitingStyle,E=t.animationExitedStyle,I=h(t,["children","style","appear","enter","exit","transitionName","transitionEnterDuration","transitionExitDuration","className","onEnter","onEntering","onEntered","onExit","onExiting","onExited","mountOnEnter","unmountOnExit","animationEnteringStyle","animationEnteredStyle","animationExitingStyle","animationExitedStyle"]),D=Object(l.classNames)(g,f["child-animation-container"]),T=d({transitionDelay:"0ms"},o),j={entering:d({transitionDuration:c+"ms"},S),entered:d({},P),exiting:d({transitionDuration:v+"ms"},C),exited:d({},E)},N={in:this.props.in,appear:r,enter:a,exit:s,mountOnEnter:w,unmountOnExit:k,timeout:{enter:c,exit:v},onEnter:function(t){m&&m.call(void 0,{animatedElement:t,target:e})},onEntering:function(t){y&&y.call(void 0,{animatedElement:t,target:e})},onEntered:function(t){b&&b.call(void 0,{animatedElement:t,target:e})},onExit:function(t){x&&x.call(void 0,{animatedElement:t,target:e})},onExiting:function(t){_&&_.call(void 0,{animatedElement:t,target:e})},onExited:function(t){O&&O.call(void 0,{animatedElement:t,target:e})},classNames:{appear:f[u+"-appear"]||u+"-appear",appearActive:f[u+"-appear-active"]||u+"-appear-active",enter:f[u+"-enter"]||u+"-enter",enterActive:f[u+"-enter-active"]||u+"-enter-active",exit:f[u+"-exit"]||u+"-exit",exitActive:f[u+"-exit-active"]||u+"-exit-active"}};return i.createElement(p.CSSTransition,d({},N,I),function(t){return i.createElement("div",{style:d({},T,j[t]),className:D,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:l.noop,onEntering:l.noop,onEntered:l.noop,onExit:l.noop,onExiting:l.noop,onExited:l.noop,animationEnteringStyle:{},animationEnteredStyle:{},animationExitingStyle:{},animationExitedStyle:{}},t}(i.Component),g=function(){var 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])};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),m=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&(n[o[i]]=e[o[i]])}return n},b=u.styles,x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.style,o=e.children,r=e.component,a=e.className,s=e.childFactory,u=(e.stackChildren,e.componentChildStyle),c=e.componentChildClassName,d=y(e,["id","style","children","component","className","childFactory","stackChildren","componentChildStyle","componentChildClassName"]),h={id:t,style:n,component:r,childFactory:s,className:Object(l.classNames)(b["animation-container"],b["animation-container-relative"],a)},f=i.Children.map(o,function(e){return i.createElement(v,m({},d,{style:u,className:c}),e)});return i.createElement(p.TransitionGroup,m({},h),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),_=function(){var 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])};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),O=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},w=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&(n[o[i]]=e[o[i]])}return n},k=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}_(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=w(e,["children"]);return i.createElement(x,O({},{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=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}()),S=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},P=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&(n[o[i]]=e[o[i]])}return n},C=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}k(t,e),t.prototype.render=function(){var e=this.props,t=e.direction,n=e.children,o=P(e,["direction","children"]),r={transitionName:"expand-"+t};return i.createElement(x,S({},r,o),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=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}()),E=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},I=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&(n[o[i]]=e[o[i]])}return n},D={position:"absolute",top:"0",left:"0"},T=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}C(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.direction,o=I(e,["children","direction"]);return i.createElement(x,E({},o,{transitionName:"push-"+n,animationExitingStyle:this.props.stackChildren?D: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=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}()),j=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},N=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&(n[o[i]]=e[o[i]])}return n},F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return T(t,e),t.prototype.render=function(){var e=this.props,t=e.direction,n=e.children,o=N(e,["direction","children"]),r={transitionName:"slide-"+t};return i.createElement(x,j({},r,o),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"},t}(i.Component),K=function(){var 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])};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),z=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},M=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&(n[o[i]]=e[o[i]])}return n},R={position:"absolute",top:"0",left:"0"},A=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}K(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.direction,o=M(e,["children","direction"]);return i.createElement(x,z({},o,{transitionName:"zoom-"+n,animationExitingStyle:this.props.stackChildren?R: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=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}()),H=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},V=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&(n[o[i]]=e[o[i]])}return n},L=(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.onEnter;t.updateContainerDimensions(e.animatedElement,function(){n&&n.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=l.noop);var o=e.firstChild;if(o){var i=u.outerHeight(o),r=u.outerWidth(o);t.setState({maxHeight:i,maxWidth:r},n)}},t}A(t,e),t.prototype.render=function(){var e,t=this.props,n=t.direction,o=t.children,r=t.childFactory,a=V(t,["direction","children","childFactory"]),s=this.state,l=s.maxHeight,p=s.maxWidth,u={maxHeight:(e="vertical"===n?{maxHeight:l?l+"px":null}:{maxWidth:p?p+"px":null}).maxHeight,maxWidth:e.maxWidth};return i.createElement(x,H({},a,{childFactory:r||function(t){return t.props.in?t:i.cloneElement(t,H({},t.props,{style:H({},t.props.style,{maxHeight:e.maxHeight,maxWidth:e.maxWidth})}))},onEnter:this.componentWillEnter,onEntering:this.componentIsEntering,onExit:this.componentWillExit,animationEnteringStyle:u,transitionName:"reveal-"+n}),o)},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),"bottom"),B="center",W="middle",q="left",Y="right",U="top",X=function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,i=e.elementAlign,r=e.margin;void 0===r&&(r={});var a=n.horizontal,s=n.vertical,l=i.horizontal,p=i.vertical,u=r.horizontal||0,c=r.vertical||0,d=t.top,h=t.left;return s===L&&(d+=t.height),s!==B&&s!==W||(d+=Math.round(t.height/2)),p===L&&(d-=o.height,c*=-1),p!==B&&p!==W||(d-=Math.round(o.height/2),c*=-1),a===Y&&(h+=t.width),a!==B&&a!==W||(h+=Math.round(t.width/2)),l===Y&&(h-=o.width,u*=-1),l!==B&&l!==W||(h-=Math.round(o.width/2),u*=-1),{top:d+c,left:h+u}};function G(e){return e.ownerDocument||e.document||e}var Z=function(e){return G(e).defaultView},J=function(e){return G(e).documentElement},Q=0;function $(){if(!Q&&"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),Q=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return Q}function ee(e){var t=Z(e),n=J(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=$()),o}var te=function(e){if(!e.getBoundingClientRect){var t=ee(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}},ne=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||J(e)},oe=function(e){return ne(e)===e.ownerDocument.body},ie=function(e){var t=e.getBoundingClientRect(),n=t.left,o=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,o=t.left,i=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var r=e.getBoundingClientRect();return e.style.display=n,e.style.left=o,e.style.position=i,r}(e)),{top:o,left:n,height:t.height,width:t.width}},re=function(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n};function ae(e){var t=J(e),n=Z(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var se=function(e){return e===(e.ownerDocument||{}).body?ae(e):{x:e.scrollLeft,y:e.scrollTop}};var le=function(e,t){var n=Z(e),o=n.getComputedStyle(e),i=ie(e),r=t||ne(e),a=e.ownerDocument,s=r!==a.body&&r!==a.documentElement,l={top:0,left:0};if("fixed"!==o.position&&s){var p=n.getComputedStyle(r);(l=ie(r)).top+=parseInt(p.borderTopWidth,10),l.left+=parseInt(p.borderLeftWidth,10)}return{top:i.top-l.top,left:i.left-l.left,height:i.height,width:i.width}},pe=function(e,t){return e?se(e):function(e){var t=ne(e);return t?se(t):{x:0,y:0}}(t)};var ue="fit",ce="flip",de=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},he=function(e){var t=e.offset,n=e.size,o=e.anchorSize,i=e.viewPortSize,r=e.anchorAlignPoint,a=e.elementAlignPoint,s=0,l=2*e.margin;if(a!==r&&!(a===B||a===W)&&!(r===B||r===W)){var p=r===U||r===q;t<0&&p?t+(s=n+o+l)+n>i&&(s=0):t>=0&&!p&&(t+n>i&&(s+=-(o+n+l)),t+s<0&&(s=0))}return s},fe=function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,i=e.elementAlign,r=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var l=o.top,p=o.left,u=o.height,c=o.width,d=a.height,h=a.width,f=s.horizontal||0,v=s.vertical||0,g=0,m=0,y=r.horizontal===ce,b=r.vertical===ce;r.vertical===ue&&(m+=de(l,u,d)),r.horizontal===ue&&(g+=de(p,c,h)),b&&(m+=he({margin:v,offset:l,size:u,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:i.vertical})),y&&(g+=he({margin:f,offset:p,size:c,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:i.horizontal}));var x=y&&0!==g,_=b&&0!==m;return{flipped:x||_,flip:{horizontal:x,vertical:_},offset:{left:g,top:m}}},ve=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},ge=function(e,t){for(var n,o,i=re(e),r=t;r&&(n=ve(r),!(o=i.reduce(function(e,t){return e.concat(n.filter(function(e){return e===t}))},[])[0]));)r=r.parentElement;return o},me=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},ye=function(){return"undefined"!=typeof document&&!!document.body},be=function(){return"undefined"!=typeof window},xe=/auto|scroll/,_e=function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY},Oe=1e3/60,we=function(){if(!ye())return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t}(),ke="fit",Se="flip",Pe="left",Ce="center",Ee="right",Ie="bottom",De="top",Te=function(e,t,n){var o,i,r,a;void 0===n&&(n={});var s=0;n=n||{};var l=function(){s=!1===n.leading?0:(new Date).getTime(),o=null,a=e.apply(i,r),o||(i=r=null)};return function(){var p=(new Date).getTime();s||!1!==n.leading||(s=p);var u=t-(p-s);return i=this,r=arguments,u<=0||u>t?(o&&(clearTimeout(o),o=null),s=p,a=e.apply(i,r),o||(i=r=null)):o||!1===n.trailing||(o=setTimeout(l,u)),a}},je=function(){function e(e){this._dom=e}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,i=e.elementAlign,r=e.offset,a=!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,r):this.relativeRect(t,n,r);return this._dom.align({anchorAlign:o,anchorRect:a,elementAlign:i,elementRect:this._dom.offset(n)})},e.prototype.absoluteRect=function(e,t,n){var o=this._dom,i=function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(me(o.offset(e),n),o.stackingElementOffset(t)),r=o.stackingElementScroll(t),a=o.addScroll(i,r),s=this.elementScrollPosition(e,t),l=o.removeScroll(a,s);return l.left+=window.scrollX||window.pageXOffset,l.top+=window.scrollY||window.pageYOffset,l},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n){return me(this._dom.position(e,t),n)},e}(),Ne=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.align=function(e){return X(e)},e.prototype.boundingOffset=function(e){return te(e)},e.prototype.getWindow=function(){return be()?window:null},e.prototype.isBodyOffset=function(e){return oe(e)},e.prototype.hasOffsetParent=function(e){if(!e)return!1;var t=e.offsetParent;return t&&!("BODY"===t.nodeName&&"static"===window.getComputedStyle(t).position)},e.prototype.offset=function(e){return e?ie(e):null},e.prototype.staticOffset=function(e){if(!e)return null;var t=e.style,n=t.left,o=t.top;e.style.left="0px",e.style.top="0px";var i=ie(e);return e.style.left=n,e.style.top=o,i},e.prototype.position=function(e,t){return e&&t?function(e,t){var n=t?ne(t):null,o=le(e,n),i=o.top,r=o.left,a=o.height,s=o.width,l=pe(n,e),p=l.x;return{top:i+l.y,left:r+p,height:a,width:s}}(e,ge(e,t)):null},e.prototype.relativeOffset=function(e,t){return n=this.offset(e),o=t,i=this.isBodyOffset(e),r=n.top,a=n.left,i&&(a=0,r=0),{top:r+o.top,left:a+o.left,height:n.height,width:n.width};var n,o,i,r,a},e.prototype.addScroll=function(e,t){return function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}(e,t)},e.prototype.removeScroll=function(e,t){return function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}(e,t)},e.prototype.restrictToView=function(e){return fe(e)},e.prototype.scrollPosition=function(e){return ae(e)},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!ye()||!be())return t;for(var n=e.parentElement;n;)xe.test(_e(n))&&t.push(n),n=n.parentElement;return t.push(window),t}(e)},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?ie(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.stackingElementViewPort=function(e){var t=this.getRelativeContextElement(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},e.prototype.getRelativeContextElement=function(e){if(!e||!we)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return ee(e)},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!ye()||!be())return null;var n=ge(e,t);if(!n)return null;var o=[e].concat(re(e,n)).reduce(function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,o=parseInt(n,10);return o>e?o:e},0);return o?o+1:null}(e,t)},e.prototype.zoomLevel=function(){return ye()&&be()?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e}(),Fe=function(){function e(e){this._dom=e}return e.prototype.positionElement=function(e){var t,n,o=e.anchor,i=e.currentLocation,r=e.element,a=e.anchorAlign,s=e.elementAlign,l=e.collisions,p=this._dom,u=e.viewPort||p.stackingElementViewPort(r)||p.windowViewPort(r),c=me(p.offset(o),i),d=(t=p.staticOffset(r),(n=i)?{height:t.height,left:n.left,top:n.top,width:t.width}:t),h=this.elementRect(r,d),f=p.restrictToView({anchorAlign:a,anchorRect:c,collisions:l,elementAlign:s,elementRect:h,viewPort:u});return{flipped:f.flipped,offset:p.addOffset(d,f.offset)}},e.prototype.elementRect=function(e,t){return this._dom.removeScroll(t,this._dom.scrollPosition(e))},e}(),Ke=function(){var 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])};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ze=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Me={left:-1e3,top:0},Re="k-animation-container-shown",Ae=function(e){return r.findDOMNode(e)},He=function(e){function t(t){var n=e.call(this,t)||this;return n._exitingAnimation=!1,n._prevShow=!1,n.onOpened=function(){var e=Ae(n);n.props.show&&e.classList.add(Re),n.attachRepositionHandlers(e),n.props.open&&n.props.open.call(void 0,{target:n})},n.onClosing=function(){n.props.show||Ae(n).classList.remove(Re);n.detachRepositionHandlers()},n.onClosed=function(){n._exitingAnimation&&(n._exitingAnimation=!1,n.forceUpdate()),n.props.close&&n.props.close.call(void 0,{target:n})},n.position=function(e,t,o){var i=e.anchorAlign,r=e.popupAlign,a=e.collision,s=e.offset,l=n._alignService.alignElement({anchor:o,element:t,elementAlign:r,anchorAlign:i,offset:s});return n._positionService.positionElement({anchor:o,anchorAlign:i,collisions:a,element:t,currentLocation:l,elementAlign:r})},n._flipped=!1,n._offset=n.props.offset,n._prevShow=t.show,n._domService=new Ne,n._alignService=new je(n._domService),n._positionService=new Fe(n._domService),n.onOpened=n.onOpened.bind(n),n.onClosing=n.onClosing.bind(n),n.reposition=Te(n.reposition.bind(n),Oe),n}return Ke(t,e),t.prototype.componentDidUpdate=function(){this._prevShow=this.props.show},t.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,o=e.popupClass,a=e.show,s=e.id,p=e.appendTo,u=void 0===p?be()?document.body:void 0:p;if(a){var c=this.calculatePosition(this.props,u);this._offset=c.offset,this._flipped=!!c.flipped}var d=this._flipped&&a?"up":"down",h=this.transitionDuration,f=h.transitionEnterDuration,v=h.transitionExitDuration,g=Object.assign({},{position:"absolute"},this.props.style||{},ze({},this._offset));if(this._exitingAnimation=this._exitingAnimation||this._prevShow&&!a,(a||this._exitingAnimation)&&u){var m=i.createElement(F,{componentChildClassName:Object(l.classNames)(o,"k-popup"),className:Object(l.classNames)(n),id:s,onEntered:this.onOpened,onExiting:this.onClosing,onExited:this.onClosed,direction:d,style:g,transitionEnterDuration:f,transitionExitDuration:v,appear:!0},a?t:null);return r.createPortal(m,u)}return null},Object.defineProperty(t.prototype,"transitionDuration",{get:function(){var e=this.props.animate,t=0,n=0;return e&&(!0===e?t=n=void 0:(t=e.openDuration,n=e.closeDuration)),{transitionEnterDuration:t,transitionExitDuration:n}},enumerable:!0,configurable:!0}),t.prototype.calculatePosition=function(e,t){if(!t||!be())return{flipped:!1,offset:e.offset};var n=document.createElement("div");t.appendChild(n);var o=Object.assign({},e.style||{},ze({visibility:"hidden"},Me)),r={className:Object(l.classNames)(e.popupClass,"k-popup","k-child-animation-container")},a=i.createElement("div",{className:Object(l.classNames)("k-animation-container",Re,e.className),style:o},i.Children.map(e.children,function(e,t){return i.createElement("div",ze({key:t},r),e)}));n.innerHTML=s.renderToStaticMarkup(a);var p=this.position(e,n.firstChild,e.anchor);return n.parentNode.removeChild(n),p},t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=this._domService.scrollableParents(this.props.anchor||e),this._scrollableParents.map(function(e){return e.addEventListener("scroll",t.reposition)}),window.addEventListener("resize",this.reposition)},t.prototype.detachRepositionHandlers=function(){var e=this;this._scrollableParents&&(this._scrollableParents.map(function(t){return t.removeEventListener("scroll",e.reposition)}),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},t.prototype.reposition=function(){this.forceUpdate()},t.propTypes={anchor:function(e){var t=e.anchor;if(t&&"number"!=typeof t.nodeType)return new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed.")},appendTo:function(e){var t=e.appendTo;if(t&&"number"!=typeof t.nodeType)return new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed.")},className:a.string,id:a.string,popupClass:a.string,collision:a.shape({horizontal:a.oneOf([ke,Se]),vertical:a.oneOf([ke,Se])}),anchorAlign:a.shape({horizontal:a.oneOf([Pe,Ce,Ee]),vertical:a.oneOf([De,Ce,Ie])}),popupAlign:a.shape({horizontal:a.oneOf([Pe,Ce,Ee]),vertical:a.oneOf([De,Ce,Ie])}),offset:a.shape({left:a.number,top:a.number}),children:a.oneOfType([a.element,a.node]),show:a.bool,animate:a.oneOfType([a.bool,a.shape({openDuration:a.number,closeDuration:a.number})])},t.defaultProps={collision:{horizontal:ke,vertical:Se},anchorAlign:{horizontal:Pe,vertical:Ie},popupAlign:{horizontal:Pe,vertical:De},offset:Me,animate:!0,show:!1},t}(i.Component);n.d(t,"Popup",function(){return He})}])});
@@ -1 +1 @@
1
- System.register("@progress/kendo-react-dropdowns",["prop-types","react","@progress/kendo-react-common","@progress/kendo-react-popup","@progress/kendo-react-intl"],function(r){var n,i,o,a,s;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){i=t(e)},function(e){o=t(e)},function(e){a=t(e)},function(e){s=t(e)}],execute:function(){!function(n){var i={};function o(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=n,o.c=i,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=10)}([function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return null!=e};t.isPresent=o,t.sameCharsOnly=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0},t.shuffleData=function(e,t,n){var i=e;return n&&(i=[n].concat(i)),i.slice(t).concat(i.slice(0,t))},t.matchText=function(e,t,n){if(!o(e))return!1;var i=String(e);return n&&(i=i.toLowerCase()),0===i.indexOf(t)},t.scrollToItem=function(e,t,n,i,o){var a=e.offsetHeight,s=t*n+(o?i-e.scrollTop:0);if(o){var r=0;a<s+t?r=s+t-a:s<0&&(r=s),0!==r?e.scrollTop+=r:0===e.scrollTop&&0!==i&&(e.scrollTop=i)}else s+t>a+e.scrollTop?e.scrollTop=s+t-a:s<e.scrollTop&&(e.scrollTop-=e.scrollTop-s)};var s=function(e,t,n){var i=-1;if(t){t=t.toLowerCase();for(var o=0;o<e.length;o++){var a=(r(e[o],n)||"")+"";if(a&&a.toLowerCase().startsWith(t)){i=o;break}}}return i};t.itemIndexStartsWith=s;var a=function(e,t,n,i){void 0===i&&(i=!1);var o=function(e){return i?e:e.toLowerCase()};return e.findIndex(function(e){return n?o(r(e,n))===o(t):o(t)===o(e.toString())})};t.getItemIndexByText=a;var r=function(e,t){if(t&&o(e)){var n=t.split("."),i=e;return n.forEach(function(e){i=i?i[e]:void 0}),i}return e};t.getItemValue=r,t.matchDataCollections=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 i=0;i<e.length;i++)if(!l(e[i],t[i],n))return!1;return!0},t.removeDataItems=function(n,e,i){e.forEach(function(t){var e=n.findIndex(function(e){return l(e,t,i)});-1!==e&&n.splice(e,1)})};var l=function(e,t,n){return e===t||o(e)===o(t)&&r(e,n)===r(t,n)};t.areSame=l,t.getFocusedItem=function(e,t,n){if(t){var i=a(e,t,n,!0);return-1!==i?e[i]:e[s(e,t,n)]}return e[0]},t.suggestValue=function(e,t,n){void 0===t&&(t=[]);var i="";if(e){var o=t[s(t,e,n)];if(o){var a=r(o,n);e.toLowerCase()!==a.toLowerCase()&&(i=a.substring(e.length))}}return i},t.preventDefaultNonInputs=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()}},function(e,t){e.exports=o},function(e,t){e.exports=n},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var l=n(0),p=n(12),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.onMouseDown,i=e.onBlur,o=e.width,a=e.dir,s=e.popupSettings;return l.createElement(p.Popup,r({style:{width:o,direction:a}},s),l.createElement("div",{onMouseDown:n,onBlur:i},t))},t}(l.Component);t.default=a},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var f=n(0),v=n(15),g=n(1),p=n(8),a=n(9),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.renderItems=function(){var o=this,e=this.props,a=e.textField,s=e.valueField,r=e.optionPrefix,t=e.skip,l=void 0===t?0:t,p=e.focusedIndex,n=e.highlightSelected,u=void 0===n||n,d=e.value,c=e.itemRender,h=Array.isArray(d);return this.props.data.map(function(t,e){var n=l+e,i=u&&(!h&&g.areSame(t,d,s)||h&&-1!==d.findIndex(function(e){return g.areSame(e,t,s)}));return f.createElement(v.default,{id:r+"-"+n,dataItem:t,selected:i,focused:p===e,index:n,key:n,onClick:o.props.onClick,textField:a,renderer:c})})},t.prototype.renderNoValueElement=function(e){var t=this.props.noDataRender,n=f.createElement("div",{className:"k-nodata"},f.createElement("div",null,e.toLanguageString(a.nodata,a.messages[a.nodata])));return t?t.call(void 0,n):n},t.prototype.render=function(){var e=p.provideLocalizationService(this),t=this.props,n=t.id,i=t.show,o=t.wrapperCssClass,a=t.wrapperStyle,s=t.listStyle,r=t.listRef,l=this.renderItems();return l.length?f.createElement("div",{className:o,style:a,ref:function(e){return e&&e.setAttribute("unselectable","on")}},f.createElement("ul",{id:n,role:"listbox","aria-hidden":!i||void 0,className:"k-list k-reset",ref:r,style:s},l)):this.renderNoValueElement(e)},t}(f.Component);t.default=s,p.registerForLocalization(s)},function(e,t,n){"use strict";var a=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(3),s=n(16),r=n(17),l=n(1),p=n(2),u=function(){function e(e){var o=this;this.vs=new s.default,this.navigation=new r.Navigation,this.handleItemClick=function(e,t){var n=o.initState();n.syntheticEvent=t,o.component.handleItemSelect(e,n),o.togglePopup(n),o.applyState(n)},this.handleFocus=function(e){if(!o.component.state.focused){var t=o.initState();t.data.focused=!0,t.events.push({type:"onFocus"}),t.syntheticEvent=e,o.applyState(t)}},this.filterChanged=function(e,t){var n=o.component.props,i=n.textField;n.filterable&&t.events.push({type:"onFilterChange",filter:{field:i,operator:"contains",ignoreCase:!0,value:e}})},this.togglePopup=function(e){var t=o.component.props,n=void 0!==t.opened?t.opened:o.component.state.opened;void 0===t.opened&&(e.data.opened=!n),n?e.events.push({type:"onClose"}):(e.events.push({type:"onOpen"}),o.calculatePopupWidth())},this.pageChange=function(e,t){var n=o.initState();n.syntheticEvent=t,o.triggerOnPageChange(n,e.skip,e.take),o.applyState(n)},this.scrollToVirtualItem=function(e,t){var n=o.vs;if(n.enabled=!1,0===e.skip)n.reset();else if(e.skip+e.pageSize===e.total)n.scrollToEnd();else{var i=n.translate;0===i&&(n.calcScrollElementHeight(),i=n.itemHeight*e.skip,n.translateTo(i-n.itemHeight)),n.container&&(n.container.scrollTop=i),o.scrollToItem(t,!0)}setTimeout(function(){return n.enabled=!0},10)},this.renderScrollWrapper=function(e){var t=o.getPopupSettings(),n=o.vs;return n.enabled?i.createElement("div",{onScroll:n.scrollHandler,ref:n.scrollerRef,style:{height:t.height,overflowY:"scroll"}},e):e},this.renderScrollElement=function(){var t=o.vs;return t.enabled&&i.createElement("div",{ref:function(e){return t.scrollElement=e},key:"scrollElementKey"})},this.listBoxId=p.guid(),this.optionPrefix=p.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||{},i=t.width,o=!0===e.opened;void 0===i&&this.calculatePopupWidth(),void 0===e.dir&&void 0===n.direction&&(this.calculateDir(),o=!0),o&&this.component.forceUpdate()},e.prototype.calculateDir=function(){this.component.element&&(this.dirCalculated=window.getComputedStyle(this.component.element).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,i=n?n.children[0]:void 0;if(i&&0<=e){var o=this.vs,a=o.container||n.parentNode,s=void 0!==t?t:o.enabled;l.scrollToItem(a,i.offsetHeight,e,o.translate,s)}},e.prototype.initState=function(){return{data:{},events:[],syntheticEvent:void 0}},e.prototype.applyState=function(e){var i=this,o={syntheticEvent:e.syntheticEvent,nativeEvent:e.syntheticEvent?e.syntheticEvent.nativeEvent:void 0,target:this.component};0<Object.keys(e.data).length&&this.component.setState(e.data),e.events.forEach(function(e){var t=e.type;delete e.type;var n=i.component.props[t];n&&n.call(void 0,a({},o,e))})},e.prototype.triggerOnPageChange=function(e,t,n){var i=this.component.props.virtual;if(i){var o=Math.min(Math.max(0,t),Math.max(0,i.total-n));o!==i.skip&&e.events.push({type:"onPageChange",page:{skip:o,take:n}})}},e.prototype.triggerPageChangeCornerItems=function(e,t){var n=this.component.props,i=n.data,o=void 0===i?[]:i,a=n.dataItemKey,s=n.virtual,r=void 0!==n.opened?n.opened:this.component.state.opened;e&&s&&this.vs.enabled&&(0<s.skip&&l.areSame(e,o[0],a)?this.triggerOnPageChange(t,s.skip-1,s.pageSize):!r&&s.skip+s.pageSize<s.total&&l.areSame(e,o[o.length-1],a)&&this.triggerOnPageChange(t,s.skip+1,s.pageSize))},e.prototype.getPopupSettings=function(){return Object.assign({},e.defaultProps.popupSettings,this.component.props.popupSettings)},e.basicPropTypes={opened:o.bool,disabled:o.bool,dir:o.string,tabIndex:o.number,data:o.array,textField:o.string,className:o.string,label:o.string,loading:o.bool,popupSettings:o.shape({animate:o.oneOfType([o.bool,o.shape({openDuration:o.number,closeDuration:o.number})]),width:o.string,height:o.string}),onOpen:o.func,onClose:o.func,onFocus:o.func,onBlur:o.func,onChange:o.func,itemRender:o.func,listNoDataRender:o.func,header:o.node,footer:o.node},e.propTypes=a({},e.basicPropTypes,{value:o.any,defaultValue:o.any,filterable:o.bool,filter:o.string,virtual:o.shape({pageSize:o.number.isRequired,skip:o.number.isRequired,total:o.number.isRequired}),onFilterChange:o.func,onPageChange:o.func}),e.defaultProps={popupSettings:{animate:!0,height:"200px"},required:!1,validityStyles:!0},e}();t.default=u},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(19),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(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,i=this.props,o=i.value,a=i.suggestedText,s=i.focused,r=this.input,l=t!==o||a!==n,p=l&&t.startsWith(o)&&!(n&&a&&n.endsWith(a));s&&r&&document.activeElement!==r&&r.focus(),a&&l&&!p&&r&&r.setSelectionRange(o.length-a.length,o.length)},t.prototype.render=function(){var t=this;return[a.createElement("span",{className:"k-searchbar",key:"searchbar"},a.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,role:"listbox",value:this.props.value,onChange:this.props.onChange,ref:function(e){return t._input=e},onKeyDown:this.props.onKeyDown,onFocus:this.props.onFocus,onBlur:this.props.onBlur,"aria-disabled":this.props.disabled||void 0,disabled:this.props.disabled||void 0,readOnly:this.props.readOnly||void 0,"aria-haspopup":!0,"aria-expanded":this.props.expanded||!1,"aria-owns":this.props.owns,"aria-activedescendant":this.props.activedescendant})),this.props.clearButton&&a.createElement(s.default,{onClick:this.props.clearButtonClick,key:"clearbutton"})]},t}(a.Component);t.default=r},function(e,t){e.exports=s},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.nodata="dropdowns.nodata",t.clear="dropdowns.clear",t.messages=((i={})[t.clear]="clear",i[t.nodata]="NO DATA FOUND.",i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(11);t.DropDownList=i.default;var o=n(18);t.ComboBox=o.default;var a=n(20);t.AutoComplete=a.default;var s=n(21);t.MultiSelect=s.default,function(e){for(var t in e)r(t,e[t])}(t)},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var b=n(0),a=n(3),_=n(2),u=n(4),s=n(13),r=n(14),f=n(5),l=n(6),x=n(1),p=function(e){function t(){var I=null!==e&&e.apply(this,arguments)||this;return I.state={},I.base=new l.default(I),I.searchState={word:"",last:""},I._skipFocusEvent=!1,I._filterInput=null,I._navigated=!1,I.handleItemSelect=function(e,t){var n=I.props,i=n.data,o=void 0===i?[]:i,a=n.virtual,s=n.dataItemKey,r=n.defaultItem,l=a?a.skip:0,p=-1===e&&void 0!==r?r:o[e-l],u=!x.areSame(p,I.value,s);I.triggerOnChange(p,t),u&&I.base.triggerPageChangeCornerItems(p,t)},I.renderDropDownWrapper=function(){var e=I.props,t=e.dataItemKey,n=e.data,i=void 0===n?[]:n,o=e.textField,a=e.disabled,s=e.tabIndex,r=e.loading,l=e.iconClassName,p=e.virtual,u=void 0===p?{skip:0}:p,d=e.valueRender,c=I.state.focused,h=void 0!==I.props.opened?I.props.opened:I.state.opened,f=I.value,v=i.findIndex(function(e){return x.areSame(e,f,t)}),g=x.getItemValue(f,o),y=b.createElement("span",{className:"k-input"},g),m=void 0!==d?d.call(void 0,y,f):y;return b.createElement("span",{ref:function(e){return I.base.wrapper=e},role:"listbox",tabIndex:a?void 0:s,className:_.classNames("k-dropdown-wrap",I.props.className,{"k-state-default":!a,"k-state-focused":c,"k-state-disabled":a}),style:I.props.style,onKeyDown:I.handleKeyDown,onKeyPress:I.handleKeyPress,onClick:I.handleWrapperClick,"aria-disabled":a||void 0,"aria-haspopup":!0,"aria-expanded":h||!1,"aria-owns":I.base.listBoxId,"aria-activedescendant":I.base.optionPrefix+"-"+(v+u.skip)},m,b.createElement("span",{className:"k-select"},b.createElement("span",{className:_.classNames("k-icon",l,{"k-i-arrow-s":!r&&!l,"k-i-loading":r&&!l})})),I.dummySelect(f))},I.dummySelect=function(e){return b.createElement("select",{name:I.props.name,ref:function(e){I._select=e},tabIndex:-1,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},b.createElement("option",{value:I.props.valueMap?I.props.valueMap.call(void 0,e):e}))},I.renderListContainer=function(){var e=I.props,t=e.header,n=e.footer,i=e.dir,o=I.base,a=o.getPopupSettings(),s=void 0!==I.props.opened?I.props.opened:I.state.opened,r=void 0!==I.props.virtual,l=void 0!==a.width?a.width:o.popupWidth,p={onMouseDown:x.preventDefaultNonInputs,dir:void 0!==i?i:o.dirCalculated,width:l,popupSettings:{className:_.classNames("k-list-container k-reset",a.className),animate:a.animate,anchor:I.element||void 0,show:s,open:I.onPopupOpened,close:I.onPopupClosed}};return b.createElement(u.default,c({},p),I.renderListFilter(),r?I.renderDefaultItem():void 0,r&&t,I.base.renderScrollWrapper(r?[I.renderList(),I.base.renderScrollElement()]:[I.renderDefaultItem(),t,I.renderList(),n,I.base.renderScrollElement()]),r&&n)},I.renderList=function(){var e=I.props,t=e.data,n=void 0===t?[]:t,i=e.textField,o=e.dataItemKey,a=e.virtual,s=void 0===a?{skip:0}:a,r=e.listNoDataRender,l=e.itemRender,p=I.base.vs,u=s.skip,d=void 0!==I.props.opened?I.props.opened:I.state.opened,c=I.base.getPopupSettings(),h="translateY("+p.translate+"px)";return b.createElement(f.default,{id:I.base.listBoxId,show:d,data:n.slice(),focusedIndex:I.focusedIndex(),value:I.value,textField:i,valueField:o,optionPrefix:I.base.optionPrefix,listRef:function(e){return p.list=I.base.list=e},wrapperStyle:p.enabled?{float:"left",width:"100%"}:{maxHeight:c.height},wrapperCssClass:p.enabled?void 0:"k-list-scroller",listStyle:p.enabled?{transform:h}:void 0,key:"listkey",skip:u,onClick:I.handleItemClick,itemRender:l,noDataRender:r})},I.renderListFilter=function(){var e=void 0!==I.props.filter?I.props.filter:I.state.text;return I.props.filterable&&b.createElement(s.default,{value:e,ref:function(e){return I._filterInput=e&&e.input},onChange:I.handleListFilterChange,onKeyDown:I.handleKeyDown})},I.renderDefaultItem=function(){var e=I.props,t=e.textField,n=e.defaultItem,i=e.dataItemKey;return void 0!==n&&b.createElement(r.default,{defaultItem:n,textField:t,selected:x.areSame(I.value,n,i),key:"defaultitemkey",onClick:I.handleDefaultItemClick})},I.search=function(e){clearTimeout(I._typingTimeout),I.props.filterable||(I._typingTimeout=setTimeout(function(){return I.searchState.word=""},I.props.delay),I.selectNext(e))},I.selectNext=function(e){var t,n=I.props,i=n.data,o=void 0===i?[]:i,a=n.dataItemKey,s=o.map(function(e,t){return{item:e,itemIndex:t}}),r=I.searchState.word,l=I.searchState.last,p=x.sameCharsOnly(r,l),u=s.length,d=Math.max(0,o.findIndex(function(e){return x.areSame(e,I.value,a)}));I.props.defaultItem&&(t={item:I.props.defaultItem,itemIndex:-1},u+=1,d+=1),d+=p?1:0,s=x.shuffleData(s,d,t);for(var c,h,f,v=0,g=I.props,y=g.textField,m=g.ignoreCase;v<u;v++)if(c=x.getItemValue(s[v].item,y),h=p&&x.matchText(c,l,m),f=x.matchText(c,r,m),h||f){v=s[v].itemIndex;break}if(v!==u){var b=I.base.initState();b.syntheticEvent=e,I.handleItemSelect(v,b),I.applyState(b),I._valueDuringOnChange=void 0}},I.handleKeyDown=function(e){var t=I.props,n=t.data,i=void 0===n?[]:n,o=t.filterable,a=t.disabled,s=t.virtual,r=void 0===s?{skip:0,total:0,pageSize:0}:s,l=void 0!==I.props.opened?I.props.opened:I.state.opened,p=e.keyCode,u=p===_.Keys.home||p===_.Keys.end,d=p===_.Keys.up||p===_.Keys.down,c=!l&&(e.altKey&&p===_.Keys.down||p===_.Keys.enter||p===_.Keys.space),h=l&&(e.altKey&&p===_.Keys.up||p===_.Keys.esc),f=p===_.Keys.left||p===_.Keys.right,v=d||!o&&(f||u),g=I.base.initState();if(g.syntheticEvent=e,!a){if(u&&I.base.vs.enabled)p===_.Keys.home?0!==r.skip?(I.base.triggerOnPageChange(g,0,r.pageSize),I._navigated=!0):I.triggerOnChange(i[0],g):r.skip<r.total-r.pageSize?(I.base.triggerOnPageChange(g,r.total-r.pageSize,r.pageSize),I._navigated=!0):I.triggerOnChange(i[i.length-1],g);else if(l&&p===_.Keys.enter){var y=I.focusedIndex();void 0!==y&&I.handleItemSelect(y,g),I.base.togglePopup(g),e.preventDefault()}else c||h?(I.base.togglePopup(g),e.preventDefault()):v&&(I.onNavigate(g,p),e.preventDefault());I.applyState(g)}},I.handleItemClick=function(e,t){I.base.handleItemClick(e,t),I._valueDuringOnChange=void 0},I.handleFocus=function(e){I._skipFocusEvent||I.base.handleFocus(e)},I.handleBlur=function(e){if(!I._skipFocusEvent&&I.state.focused){var t=void 0!==I.props.opened?I.props.opened:I.state.opened,n=I.base.initState();n.syntheticEvent=e,n.data.focused=!1,n.events.push({type:"onBlur"}),t&&I.base.togglePopup(n),I.applyState(n)}},I.handleDefaultItemClick=function(e){var t=I.base.initState();t.syntheticEvent=e,I.base.togglePopup(t),I.triggerOnChange(I.props.defaultItem,t),I.applyState(t)},I.handleWrapperClick=function(e){var t=I.base.initState();t.syntheticEvent=e,I.state.focused||(t.data.focused=!0),I.base.togglePopup(t),I.applyState(t)},I.handleKeyPress=function(e){if(!I.props.filterable&&0!==e.which&&e.keyCode!==_.Keys.enter){var t=String.fromCharCode(e.charCode||e.keyCode);I.props.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),I.searchState={word:I.searchState.word+t,last:I.searchState.last+t},I.search(e)}},I.handleListFilterChange=function(e){var t=I.base.initState();t.syntheticEvent=e,void 0===I.props.filter&&(t.data.text=e.target.value),I.base.filterChanged(e.target.value,t),I.applyState(t)},I.onPopupOpened=function(){I._filterInput&&I.focusElement(I._filterInput)},I.onPopupClosed=function(){I.state.focused&&setTimeout(function(){I.state.focused&&I.base.wrapper&&I.focusElement(I.base.wrapper)})},I.setValidity=function(){I._select&&I._select.setCustomValidity&&I._select.setCustomValidity(I.validity.valid?"":I.props.validationMessage||"Please select a value from the list!")},I}return o(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 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),x.isPresent(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,i=e.dataItemKey,o=this.value;return n.findIndex(function(e){return x.areSame(e,o,i)})},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,i=n.data,o=void 0===i?[]:i,a=n.dataItemKey,s=n.virtual,r=e.virtual?e.virtual.total:0,l=void 0!==this.props.opened?this.props.opened:this.state.opened,p=void 0!==e.opened?e.opened:t.opened,u=!p&&l;if(this.base.getPopupSettings().animate||u&&this.onPopupOpened(),s&&s.total!==r)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var d=this.value,c=void 0!==e.value?e.value:t.value,h=o.findIndex(function(e){return x.areSame(e,d,a)}),f=!x.areSame(c,d,a);u&&s?this.base.scrollToVirtualItem(s,h):u&&!s?this.base.scrollToItem(h):l&&p&&d&&f&&!this._navigated?this.base.scrollToItem(h):l&&p&&this._navigated&&(this._navigated&&s&&0===s.skip?this.base.vs.reset():this._navigated&&s&&s.skip===s.total-s.pageSize&&this.base.vs.scrollToEnd())}this._navigated=!1,this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var t=this,e=this.props,n=e.style,i=e.className,o=e.label,a=e.dir,s=e.virtual,r=void 0!==this.props.opened?this.props.opened:this.state.opened,l=x.getItemValue(this.value,this.props.textField),p=!this.validityStyles||this.validity.valid,u=this.base;u.vs.enabled=void 0!==s,void 0!==s&&(u.vs.skip=s.skip,u.vs.total=s.total,u.vs.pageSize=s.pageSize);var d=b.createElement("span",{ref:function(e){return t._element=e},className:_.classNames("k-widget k-dropdown k-header",{"k-state-invalid":!p},i),style:o?c({},n,{width:void 0}):n,dir:a,onMouseDown:r?x.preventDefaultNonInputs:void 0,onFocus:this.handleFocus,onBlur:this.handleBlur},this.renderDropDownWrapper(),this.renderListContainer());return o?b.createElement(_.FloatingLabel,{label:o,value:l,style:{width:n?n.width:void 0},valid:p,children:d}):d},t.prototype.onNavigate=function(e,t){var n=this.props,i=n.data,o=void 0===i?[]:i,a=n.defaultItem,s=n.dataItemKey,r=n.virtual,l=void 0===r?{skip:0,total:0,pageSize:0}:r,p=this.base.vs,u=this.value,d=o.findIndex(function(e){return x.areSame(e,u,s)}),c=this.base.navigation.navigate({current:l.skip+d,max:(p.enabled?l.total:o.length)-1,min:void 0!==a?-1:0,keyCode:t});void 0!==c&&this.handleItemSelect(c,e),this.applyState(e)},t.prototype.focusedIndex=function(){var e=x.isPresent(this.props.filter)?this.props.filter:this.state.text,t=this.props,n=t.data,i=void 0===n?[]:n,o=t.virtual,a=void 0===o?{skip:0}:o,s=t.dataItemKey,r=this.value,l=!(i.findIndex(function(e){return x.areSame(e,r,s)})<0&&!this.props.defaultItem);return!l&&e&&0===a.skip?i.indexOf(x.getFocusedItem(i,e,this.props.textField)):l||0!==a.skip?void 0:0},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),setTimeout(function(){return t._skipFocusEvent=!1},30)},t.prototype.triggerOnChange=function(e,t){x.areSame(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.propTypes=c({delay:a.number,ignoreCase:a.bool,iconClassName:a.string,defaultItem:a.any,valueRender:a.func,valueMap:a.func,validationMessage:a.string,required:a.bool},l.default.propTypes),t.defaultProps=c({delay:500,tabIndex:0,ignoreCase:!0},l.default.defaultProps,{required:!1}),t}(b.Component);t.default=p},function(e,t){e.exports=a},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var t=this;return a.createElement("span",{className:"k-list-filter"},a.createElement("input",{ref:function(e){return t.input=e},value:this.props.value||"",className:"k-textbox",onChange:this.props.onChange,onKeyDown:this.props.onKeyDown}),a.createElement("span",{className:"k-icon k-i-search"}))},t}(a.Component);t.default=s},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(2),r=n(1),l=function(e){return e.preventDefault()},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.defaultItem,i=e.textField;return a.createElement("div",{onClick:this.props.onClick,onMouseDown:l,className:s.classNames("k-list-optionlabel",{"k-state-selected":t})},r.getItemValue(n,i)||"")},t}(a.Component);t.default=p},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(2),r=n(1),l=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 o(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.renderer,i=a.createElement("li",{id:this.props.id,role:"option","aria-selected":t,className:s.classNames("k-item",{"k-state-selected":t,"k-state-focused":this.props.focused}),onClick:this.handleClick},r.getItemValue(this.props.dataItem,this.props.textField).toString());return void 0!==n?n.call(void 0,i,this.props):i},t}(a.Component);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){var n=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(e){var t=n;(t.container=e)&&(e.setAttribute("unselectable","on"),setTimeout(t.calcScrollElementHeight.bind(t),0))},this.calcScrollElementHeight=function(){var e=!(n.scrollSyncing=!0);n.itemHeight=n.list?n.list.children[0].offsetHeight:n.itemHeight,n.containerHeight=Math.min(1533915,n.itemHeight*n.total);var t=n.containerHeight;return n.scrollElement&&(e=n.scrollElement.style.height!==t+"px")&&(n.scrollElement.style.height=t+"px"),n.scrollSyncing=!1,e},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,i=this.container.scrollTop,o=this.listTranslate,a=i-o;if(!(n<a)){for(t=0;t<this.skip&&!(o+n+a<=i);t++)o-=n;if(o=this.validateTranslate(o),this.skip-t<=0&&i<=o)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,i=this.container.scrollTop,o=this.listTranslate,a=this.list.children.length;for(t=0;t<a&&!(i<=o+n);t++)o+=n;o=this.validateTranslate(o),a<=t&&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),i=this.containerHeight*t/this.total;i=this.validateTranslate(i),this.translateTo(i),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):0<t-n&&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),Math.min(this.containerHeight-this.list.offsetHeight,e)},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(2),a=function(){function e(){}return e.prototype.navigate=function(e){var t=e.keyCode;return t===o.Keys.up||t===o.Keys.left?this.next({current:e.current,min:e.min,max:e.max,step:-1}):t===o.Keys.down||t===o.Keys.right?this.next({current:e.current,min:e.min,max:e.max,step:1}):t===o.Keys.home?0:t===o.Keys.end?e.max:void 0},e.prototype.next=function(e){return i.isPresent(e.current)?Math.min(e.max,Math.max(e.current+e.step,e.min)):e.min},e}();t.Navigation=a},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),S=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var C=n(0),a=n(3),s=n(6),k=n(2),P=n(1),g=n(7),l=n(4),I=n(5),r=function(e){function x(){var p=null!==e&&e.apply(this,arguments)||this;return p.state={},p.base=new s.default(p),p._inputId=k.guid(),p._suggested="",p.handleItemSelect=function(e,t){var n=p.props,i=n.data,o=void 0===i?[]:i,a=n.virtual,s=n.dataItemKey,r=o[e-(a?a.skip:0)],l=!P.areSame(r,p.value,s);p.triggerOnChange(r,t),void 0!==p.state.text&&(t.data.text=void 0),l&&p.base.triggerPageChangeCornerItems(r,t)},p.toggleBtnClick=function(e){var t=p.base.initState();t.syntheticEvent=e,p.base.togglePopup(t),p.applyState(t)},p.handleItemClick=function(e,t){p.base.handleItemClick(e,t),p._valueDuringOnChange=void 0},p.handleBlur=function(e){if(p.state.focused){var t=p.base.initState();t.data.focused=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,p.applyValueOnRejectSuggestions(e.currentTarget.value,t)}},p.onInputKeyDown=function(e){var t=e.keyCode,n=void 0!==p.props.opened?p.props.opened:p.state.opened,i=p.base.initState();if(!(i.syntheticEvent=e).altKey&&(t===k.Keys.up||t===k.Keys.down))return e.preventDefault(),p.onNavigate(i,t),void p.applyState(i);var o=function(){e.preventDefault(),p.base.togglePopup(i),p.applyState(i)};n?e.altKey&&t===k.Keys.up?o():t===k.Keys.enter?(e.preventDefault(),p.applyValueOnEnter(e.currentTarget.value,i)):t===k.Keys.esc&&p.applyValueOnRejectSuggestions(e.currentTarget.value,i):e.altKey&&t===k.Keys.down&&o()},p.inputOnChange=function(e){var t=p.base.initState();t.syntheticEvent=e;var n=void 0!==p.props.opened?p.props.opened:p.state.opened,i=e.currentTarget,o=i.value;if(p.props.suggest){var a=i.selectionEnd===o.length,s=void 0!==p.props.filter?p.props.filter:p.state.text;P.isPresent(s)||(s=P.getItemValue(p.value,p.props.textField)||"");var r=s&&s===o,l=s&&s.length>o.length;r||l||!a?p._suggested="":p.suggestValue(o)}void 0===p.props.filter&&(t.data.text=o),void 0!==p.state.focusedItem&&(t.data.focusedItem=void 0),n||p.base.togglePopup(t),p.base.filterChanged(o,t),p.applyState(t)},p.clearButtonClick=function(e){var t=p.base.initState();(t.syntheticEvent=e).stopPropagation(),p._suggested="",p.base.filterChanged("",t),void 0===p.props.filter&&void 0!==p.state.text&&(t.data.text=void 0),p.triggerOnChange(null,t),(void 0!==p.props.opened?p.props.opened:p.state.opened)&&p.base.togglePopup(t),p.applyState(t)},p.setValidity=function(){p._input&&p._input.setCustomValidity&&p._input.setCustomValidity(p.validity.valid?"":p.props.validationMessage||"Please enter a valid value!")},p}return o(x,e),Object.defineProperty(x.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(x.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(x.prototype,"index",{get:function(){var e=this.props,t=e.data,n=void 0===t?[]:t,i=e.dataItemKey,o=this.value;return n.findIndex(function(e){return P.areSame(e,o,i)})},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(x.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(x.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:x.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:x.defaultProps.required},enumerable:!0,configurable:!0}),x.prototype.componentDidUpdate=function(e,t){var n=this.props,i=n.data,o=void 0===i?[]:i,a=n.dataItemKey,s=n.virtual,r=e.virtual?e.virtual.total:0,l=void 0!==this.props.opened?this.props.opened:this.state.opened,p=void 0!==e.opened?e.opened:t.opened,u=!p&&l,d=this.value;if(this._valueOnDidUpdate=d,s&&s.total!==r)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var c=void 0!==e.value?e.value:t.value,h=o.findIndex(function(e){return P.areSame(e,d,a)}),f=!P.areSame(c,d,a);u&&s?this.base.scrollToVirtualItem(s,h):u&&!s?this.base.scrollToItem(h):l&&p&&d&&f&&this.base.scrollToItem(h)}u&&this._input&&this._input.focus(),this.setValidity()},x.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},x.prototype.render=function(){var t=this,e=this.props,n=e.dir,i=e.disabled,o=e.clearButton,a=void 0===o?x.defaultProps.clearButton:o,s=e.label,r=e.textField,l=e.className,p=e.style,u=e.loading,d=e.iconClassName,c=e.virtual,h=this.state.focused,f=!this.validityStyles||this.validity.valid,v=void 0!==this.props.filter?this.props.filter:this.state.text,g=P.getItemValue(this.value,r),y=P.isPresent(v)?v:g,m=a&&(!!y||P.isPresent(this.value)),b=this.base,I=b.vs;I.enabled=void 0!==c,void 0!==c&&(I.skip=c.skip,I.total=c.total,I.pageSize=c.pageSize);var _=C.createElement("span",{className:k.classNames("k-widget k-combobox k-header",{"k-combobox-clearable":a,"k-state-invalid":!f},l),ref:function(e){return t._element=e},style:s?S({},p,{width:void 0}):p,dir:n},C.createElement("span",{ref:function(e){return b.wrapper=e},className:k.classNames("k-dropdown-wrap",{"k-state-default":!i,"k-state-disabled":i,"k-state-focused":h&&!i})},this.renderSearchBar(m,y||"",this._inputId),C.createElement("span",{className:"k-select",onClick:this.toggleBtnClick,onMouseDown:function(e){return e.preventDefault()}},C.createElement("span",{className:k.classNames("k-icon",d,{"k-i-arrow-s":!u&&!d,"k-i-loading":u&&!d})}))),this.renderListContainer());return s?C.createElement(k.FloatingLabel,{label:s,value:y,style:{width:p?p.width:void 0},valid:f,id:this._inputId,children:_}):_},x.prototype.onNavigate=function(e,t){var n=this.props,i=n.data,o=void 0===i?[]:i,a=n.virtual,s=void 0===a?{skip:0}:a,r=this.props.filter?this.props.filter:this.state.text,l=this.getFocusedIndex(),p=this.base.vs,u=this.value;if(this._suggested="",-1===l||P.isPresent(u))if(""===r)this.handleItemSelect(0,e);else{var d=s.skip+l,c=this.base.navigation.navigate({keyCode:t,current:d,max:(p.enabled?p.total:o.length)-1,min:0});void 0!==c&&this.handleItemSelect(c,e)}else this.handleItemSelect(l,e)},x.prototype.applyValueOnEnter=function(e,t){var n,i=this.props,o=i.data,a=void 0===o?[]:o,s=i.textField,r=i.allowCustom,l=void 0!==this.props.opened?this.props.opened:this.state.opened,p=P.getItemIndexByText(a,e,s),u=-1!==p,d=void 0;if(this._suggested="",u)d=a[p];else{if(!r)return this.selectFocusedItem(e,t);d=void 0!==s?((n={})[s]=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)},x.prototype.applyValueOnRejectSuggestions=function(e,t){var n,i=this.props,o=i.data,a=void 0===o?[]:o,s=i.textField,r=i.allowCustom,l=void 0!==this.props.opened?this.props.opened:this.state.opened,p=P.getItemValue(this.value,s);if(this._suggested="",e===p||""===e&&!P.isPresent(p))return l&&this.base.togglePopup(t),this.applyState(t);var u=P.getItemIndexByText(a,e,s,!0),d=null;-1!==u?d=a[u]:r&&(d=e?s?((n={})[s]=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)},x.prototype.selectFocusedItem=function(e,t){var n=void 0!==this.props.opened?this.props.opened:this.state.opened,i=this.props,o=i.data,a=void 0===o?[]:o,s=i.textField,r=i.virtual,l=(void 0===r?{skip:0}:r).skip,p=""===e&&0===l?0:P.itemIndexStartsWith(a,e,s);return-1!==p?this.handleItemSelect(p+l,t):(this.triggerOnChange(null,t),void 0!==this.state.text&&(t.data.text=void 0)),n&&this.base.togglePopup(t),this.applyState(t)},x.prototype.renderListContainer=function(){var e=this.base,t=this.props,n=t.dir,i=t.header,o=t.footer,a=void 0!==this.props.opened?this.props.opened:this.state.opened,s=e.getPopupSettings(),r=void 0!==s.width?s.width:e.popupWidth;return C.createElement(l.default,{onMouseDown:function(e){return e.preventDefault()},width:r,popupSettings:{animate:s.animate,anchor:this.element||void 0,show:a,className:k.classNames("k-list-container k-reset",s.className)},dir:void 0!==n?n:this.base.dirCalculated},i,e.renderScrollWrapper([this.renderList(),e.renderScrollElement()]),o)},x.prototype.renderList=function(){var t=this,e=this.base,n=this.props,i=n.textField,o=n.dataItemKey,a=n.listNoDataRender,s=n.itemRender,r=n.data,l=void 0===r?[]:r,p=n.virtual,u=void 0===p?{skip:0}:p,d=e.getPopupSettings(),c=e.vs,h=u.skip,f=void 0!==this.props.opened?this.props.opened:this.state.opened,v="translateY("+c.translate+"px)",g=f?this.getFocusedIndex():void 0,y=void 0!==this.props.filter?this.props.filter:this.state.text,m=P.getItemValue(this.value,i),b=P.isPresent(y)&&y!==m?null:this.value;return C.createElement(I.default,{id:e.listBoxId,show:f,data:l,focusedIndex:g,value:b,textField:i,valueField:o,optionPrefix:e.optionPrefix,listRef:function(e){return c.list=t.base.list=e},wrapperStyle:c.enabled?{float:"left",width:"100%"}:{maxHeight:d.height},wrapperCssClass:c.enabled?void 0:"k-list-scroller",listStyle:c.enabled?{transform:v}:void 0,key:"listkey",skip:h,onClick:this.handleItemClick,itemRender:s,noDataRender:a})},x.prototype.renderSearchBar=function(e,t,n){var i=this,o=this.props,a=o.placeholder,s=o.tabIndex,r=o.disabled,l=o.data,p=void 0===l?[]:l,u=o.dataItemKey,d=o.virtual,c=void 0===d?{skip:0}:d,h=void 0!==this.props.opened?this.props.opened:this.state.opened,f=this.value,v=Math.max(0,p.findIndex(function(e){return P.areSame(e,f,u)}));return this._suggested&&!P.areSame(this._valueOnDidUpdate,f,u)&&(this._suggested=""),C.createElement(g.default,{id:n,placeholder:a,tabIndex:s||void 0,value:t+this._suggested,suggestedText:this._suggested,ref:function(e){return i._input=e&&e.input},onKeyDown:this.onInputKeyDown,onChange:this.inputOnChange,onFocus:this.base.handleFocus,onBlur:this.handleBlur,disabled:r,expanded:h,owns:this.base.listBoxId,activedescendant:this.base.optionPrefix+"-"+(v+c.skip),clearButton:e,clearButtonClick:this.clearButtonClick})},x.prototype.triggerOnChange=function(e,t){var n=this.value;!P.isPresent(n)&&!P.isPresent(e)||P.areSame(n,e,this.props.dataItemKey)||(void 0===this.props.value&&(t.data.value=e),this._valueDuringOnChange=e,t.events.push({type:"onChange"}))},x.prototype.getFocusedIndex=function(){var t=this.value,e=this.props,n=e.data,i=void 0===n?[]:n,o=e.textField,a=e.dataItemKey,s=e.virtual,r=void 0===s?{skip:0}:s,l=this.props.filter?this.props.filter:this.state.text;return P.isPresent(t)&&void 0===l?i.findIndex(function(e){return P.areSame(e,t,a)}):l?P.itemIndexStartsWith(i,l,o):0===r.skip?0:-1},x.prototype.suggestValue=function(e){var t=this.props,n=t.data,i=t.textField;this._suggested=P.suggestValue(e,n,i)},x.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},x.propTypes=S({},s.default.propTypes,{dataItemKey:a.string,suggest:a.bool,placeholder:a.string,allowCustom:a.bool,clearButton:a.bool,iconClassName:a.string,validationMessage:a.string,required:a.bool}),x.defaultProps=S({},s.default.defaultProps,{allowCustom:!1,clearButton:!0,required:!1}),x}(C.Component);t.default=r},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(8),r=n(9),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(e){return e.preventDefault()},e}return o(e,t),e.prototype.render=function(){var e=s.provideLocalizationService(this).toLanguageString(r.clear,r.messages[r.clear]);return a.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"})},e}(a.Component);t.default=l,s.registerForLocalization(l)},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var g=n(0),a=n(3),y=n(7),l=n(4),c=n(5),s=n(6),I=n(1),m=n(2),r=function(e){function t(){var b=null!==e&&e.apply(this,arguments)||this;return b.state={},b.base=new s.default(b),b._inputId=m.guid(),b._suggested="",b.handleItemSelect=function(e,t){var n=b.props.data,i=void 0===n?[]:n,o=I.getItemValue(i[e],b.props.textField);b.triggerOnChange(o,t)},b.itemFocus=function(e,t){var n=b.props,i=n.data,o=void 0===i?[]:i,a=n.textField,s=o[e];I.areSame(b.state.focusedItem,s,a)||(t.data.focusedItem=s)},b.togglePopup=function(e){b.base.togglePopup(e)},b.setValidity=function(){b._input&&b._input.setCustomValidity&&b._input.setCustomValidity(b.validity.valid?"":b.props.validationMessage||"Please enter a valid value!")},b.handleItemClick=function(e,t){b.base.handleItemClick(e,t),b._valueDuringOnChange=void 0},b.onChangeHandler=function(e){var t=b.base.initState(),n=e.currentTarget,i=n.value,o=n.selectionEnd===i.length;t.syntheticEvent=e;var a=b._suggested,s=b.value,r=s&&s.substring(0,s.length-a.length),l=r&&r===i,p=r&&r.length>i.length,u=b.props,d=u.suggest,c=u.data,h=void 0===c?[]:c,f=u.textField,v=void 0!==b.props.opened?b.props.opened:b.state.opened;if(void 0!==d&&!1!==d){l||p||!o?b._suggested="":b.suggestValue(i);var g=i+b._suggested,y={userInput:i,value:b._suggested};b.triggerOnChange(g,t,{suggestion:y})}else b._suggested="",b.triggerOnChange(i,t);(!v&&i||v&&!i)&&b.togglePopup(t);var m=I.getFocusedItem(h,i,f);b.state.focusedItem!==m&&(t.data.focusedItem=m),b.applyState(t)},b.clearButtonClick=function(e){var t=b.base.initState(),n=void 0!==b.props.opened?b.props.opened:b.state.opened;t.syntheticEvent=e,b._suggested="",b.triggerOnChange("",t),void 0!==b.state.focusedItem&&(t.data.focusedItem=void 0),n&&b.togglePopup(t),b.applyState(t)},b.onInputKeyDown=function(e){var t=e.keyCode,n=void 0!==b.props.opened?b.props.opened:b.state.opened,i=b.base.initState();i.syntheticEvent=e;var o=function(){n&&e.preventDefault()};t===m.Keys.enter||t===m.Keys.esc?(o(),b.applyInputValue(e.currentTarget.value,i,e.keyCode)):t!==m.Keys.up&&t!==m.Keys.down||(o(),b.onNavigate(i,t))},b.handleBlur=function(e){if(b.state.focused){var t=b.base.initState();t.data.focused=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,b.applyInputValue(e.currentTarget.value,t)}},b}return o(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.state.focusedItem,i=void 0!==n&&t.focusedItem!==n,o=void 0!==this.props.opened?this.props.opened:this.state.opened,a=!(void 0!==e.opened?e.opened:t.opened)&&o,s=this.props,r=s.data,l=void 0===r?[]:r,p=s.textField;if(o&&i||a){var u=void 0!==n?l.findIndex(function(e){return I.areSame(e,n,p)}):l.indexOf(I.getFocusedItem(l,this.value,p));this.base.scrollToItem(u)}this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var t=this,e=this.props,n=e.dir,i=e.disabled,o=e.label,a=e.className,s=e.style,r=e.loading,l=e.suggest,p=!this.validityStyles||this.validity.valid,u=this.state.focused,d=this.base,c=this.value,h=!r&&!!c;"string"==typeof l&&(this._suggested=l);var f=g.createElement("span",{className:m.classNames("k-widget k-autocomplete k-header",a,{"k-state-disabled":i,"k-state-focused":u&&!i,"k-state-invalid":!p}),ref:function(e){t._element=e,d.wrapper=e},style:o?v({},s,{width:void 0}):s,dir:n},this.renderSearchBar(h,c||""),r&&g.createElement("span",{className:"k-icon k-i-loading"}),this.renderListContainer());return o?g.createElement(m.FloatingLabel,{label:o,value:c,valid:p,style:{width:s?s.width:void 0},id:this._inputId,children:f}):f},t.prototype.onNavigate=function(e,t){var n=this,i=this.value,o=this.props,a=o.data,s=void 0===a?[]:a,r=o.textField,l=void 0!==this.state.focusedItem?s.findIndex(function(e){return I.areSame(e,n.state.focusedItem,r)}):s.indexOf(I.getFocusedItem(s,i,r)),p=this.base.navigation.navigate({keyCode:t,current:l,max:s.length-1,min:0});void 0!==p&&this.itemFocus(p,e),this.applyState(e)},t.prototype.applyInputValue=function(e,t,n){var i=void 0!==this.props.opened?this.props.opened:this.state.opened,o=this.props,a=o.data,s=void 0===a?[]:a,r=o.textField,l=void 0!==this.state.focusedItem?this.state.focusedItem:I.getFocusedItem(s,e,r);if(this._suggested="",i&&n===m.Keys.enter){var p=I.getItemValue(l,r);this.triggerOnChange(p,t)}this.state.focusedItem!==l&&(t.data.focusedItem=l),i&&this.togglePopup(t),this.applyState(t)},t.prototype.renderSearchBar=function(e,t){var n=this,i=this.base,o=this.props,a=o.placeholder,s=o.tabIndex,r=o.disabled,l=o.readonly,p=o.textField,u=o.data,d=void 0===u?[]:u,c=this.state.focused,h=void 0!==this.props.opened?this.props.opened:this.state.opened,f=I.getItemIndexByText(d,t,p,!0);return g.createElement(y.default,{id:this._inputId,placeholder:a,tabIndex:s||void 0,value:t,suggestedText:this._suggested,focused:c,ref:function(e){return n._input=e&&e.input},onKeyDown:this.onInputKeyDown,onChange:this.onChangeHandler,onFocus:i.handleFocus,onBlur:this.handleBlur,disabled:r,readOnly:l,expanded:h,owns:i.listBoxId,activedescendant:i.optionPrefix+"-"+f,clearButton:e,clearButtonClick:this.clearButtonClick})},t.prototype.renderListContainer=function(){var e=this.base,t=this.props,n=t.dir,i=t.header,o=t.footer,a=e.getPopupSettings(),s=void 0!==this.props.opened?this.props.opened:this.state.opened,r=void 0!==a.width?a.width:e.popupWidth;return g.createElement(l.default,{onMouseDown:function(e){return e.preventDefault()},width:r,popupSettings:{animate:a.animate,anchor:this.element||void 0,show:s,className:m.classNames("k-list-container k-reset",a.className)},dir:void 0!==n?n:this.base.dirCalculated},i,this.renderList(),o)},t.prototype.renderList=function(){var t=this,n=this.base,e=n.getPopupSettings(),i=this.props,o=i.textField,a=i.data,s=void 0===a?[]:a,r=i.listNoDataRender,l=i.itemRender,p=this.value,u=void 0!==this.props.opened?this.props.opened:this.state.opened,d=void 0!==this.state.focusedItem?s.findIndex(function(e){return I.areSame(e,t.state.focusedItem,o)}):s.indexOf(I.getFocusedItem(s,this.value,o));return g.createElement(c.default,{id:n.listBoxId,show:u,data:s.slice(),focusedIndex:d,value:p,textField:o,valueField:o,highlightSelected:!1,optionPrefix:n.optionPrefix,listRef:function(e){return n.list=e},wrapperStyle:{maxHeight:e.height},wrapperCssClass:"k-list-scroller",onClick:this.handleItemClick,itemRender:l,noDataRender:r})},t.prototype.triggerOnChange=function(e,t,n){(this.value!==e||n)&&(t.data.value=e,this._valueDuringOnChange=e,t.events.push(v({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,i=void 0===n?[]:n,o=t.textField,a=i[I.itemIndexStartsWith(i,e,o)];if(a){var s=I.getItemValue(a,o);e.toLowerCase()!==s.toLowerCase()&&(this._suggested=s.substring(e.length))}}},t.propTypes=v({},s.default.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}),t.defaultProps=v({},s.default.defaultProps),t}(g.Component);t.default=r},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var h,a,I=n(0),s=n(3),_=n(2),v=n(4),g=n(5),x=n(22),y=n(7),r=n(6),m=n(23),S=n(1),C=function(e){return e.preventDefault()},k=function(e,t,n){return!!e==!!t&&e.text===t.text&&(e===t||S.matchDataCollections(e.data,t.data,n))},P=function(e){return e===h.CustomItem};(a=h||(h={}))[a.None=0]="None",a[a.ListItem=1]="ListItem",a[a.CustomItem=2]="CustomItem";var l=function(e){function t(){var f=null!==e&&e.apply(this,arguments)||this;return f.state={activedescendant:m.ActiveDescendant.PopupList},f._valueItemsDuringOnChange=null,f._inputId=_.guid(),f.base=new r.default(f),f._tags=[],f._skipFocusEvent=!1,f.handleItemSelect=function(e,t){var n=f.props,i=n.data,o=void 0===i?[]:i,a=n.dataItemKey,s=n.virtual,r=o[e-(s?s.skip:0)],l=f.value.findIndex(function(e){return S.areSame(e,r,a)}),p=[];-1!==l?(p=f.value).splice(l,1):p=f.value.concat([r]),(void 0!==f.props.filter?f.props.filter:f.state.text)&&(f.state.text&&(t.data.text=""),f.base.filterChanged("",t)),void 0!==f.state.focusedIndex&&(t.data.focusedIndex=void 0),f.triggerOnChange(p,t),f.base.triggerPageChangeCornerItems(r,t)},f.onTagDelete=function(e,t){var n=void 0!==f.props.opened?f.props.opened:f.state.opened,i=f.base.initState();i.syntheticEvent=t,n&&f.base.togglePopup(i),f.state.focused||(i.data.focused=!0);var o=f.value;S.removeDataItems(o,e,f.props.dataItemKey),f.triggerOnChange(o,i),f.applyState(i)},f.itemFocus=function(e,t){var n=f.props,i=n.data,o=void 0===i?[]:i,a=n.allowCustom,s=n.virtual,r=s?s.skip:0,l=void 0!==f.props.filter?f.props.filter:f.state.text,p=f.getFocusedState().focusedIndex,u=a&&l,d=o[e-r];d&&p!==e?f.state.focusedIndex!==e&&(t.data.focusedIndex=e):u&&-1===e&&void 0!==f.state.focusedIndex&&(t.data.focusedIndex=void 0),f.base.triggerPageChangeCornerItems(d,t)},f.searchbarRef=function(e){var t=f._input=e&&e.input;t&&f.state.focused&&setTimeout(function(){return t.focus()},0)},f.onChangeHandler=function(e){var t=f.base.initState(),n=e.currentTarget.value,i=f.props,o=i.allowCustom,a=i.data,s=void 0===a?[]:a,r=i.textField,l=i.virtual,p=l?l.skip:0,u=void 0!==f.props.opened?f.props.opened:f.state.opened;if(t.syntheticEvent=e,void 0===f.props.filter&&(t.data.text=n),o)t.data.focusedIndex=n?void 0:0;else{var d=(n?S.itemIndexStartsWith(s,n,r):0)+p;f.state.focusedIndex!==d&&(t.data.focusedIndex=d)}u||f.base.togglePopup(t),f.base.filterChanged(n,t),f.applyState(t)},f.clearButtonClick=function(e){var t=void 0!==f.props.opened?f.props.opened:f.state.opened,n=f.base.initState();(n.syntheticEvent=e).stopPropagation(),0<f.value.length&&f.triggerOnChange([],n),void 0!==f.state.focusedIndex&&(n.data.focusedIndex=void 0),t&&f.base.togglePopup(n);var i=void 0!==f.props.filter?f.props.filter:f.state.text;S.isPresent(i)&&""!==i&&f.base.filterChanged("",n),f.state.text&&(n.data.text=""),f.applyState(n)},f.onInputKeyDown=function(e){var t=e.keyCode,n=void 0!==f.props.filter?f.props.filter:f.state.text,i=void 0!==f.props.opened?f.props.opened:f.state.opened,o=f.getFocusedState().focusedItem,a=f.base.initState();if(a.syntheticEvent=e,!n&&0<f.value.length&&(t===_.Keys.left||t===_.Keys.right||t===_.Keys.home||t===_.Keys.end||t===_.Keys.delete||t===_.Keys.backspace))return f.onTagsNavigate(e,a);var s=function(){e.preventDefault(),f.base.togglePopup(a),f.applyState(a)};i?e.altKey&&t===_.Keys.up?s():t===_.Keys.up||t===_.Keys.down?(e.preventDefault(),f.onNavigate(a,t)):t===_.Keys.enter?(e.preventDefault(),f.props.allowCustom&&n&&null===o?f.customItemSelect(e):f.selectFocusedItem(e)):t===_.Keys.esc&&s():e.altKey&&t===_.Keys.down&&s()},f.renderListContainer=function(){var e=f.base,t=f.props,n=t.header,i=t.footer,o=t.allowCustom,a=t.dir,s=f.base.getPopupSettings(),r=void 0!==f.props.opened?f.props.opened:f.state.opened,l=void 0!==f.props.filter?f.props.filter:f.state.text,p=void 0!==f.props.virtual,u=void 0!==s.width?s.width:e.popupWidth,d={onMouseDown:C,dir:void 0!==a?a:e.dirCalculated,onBlur:f.handleBlur,width:u,popupSettings:{className:_.classNames("k-list-container k-reset",s.className),animate:s.animate,anchor:f.element||void 0,show:r,open:f.onPopupOpened,close:f.onPopupClosed}},c=f.getFocusedState().focusedType,h=o&&l&&I.createElement("div",{className:"k-list",key:"customitem",onClick:f.customItemSelect},I.createElement("div",{className:_.classNames("k-item k-custom-item",{"k-state-focused":P(c)})},l,I.createElement("span",{className:"k-icon k-i-plus",style:{float:"right"}})));return I.createElement(v.default,b({},d),p&&n,f.base.renderScrollWrapper(p?[h,f.renderList(),f.base.renderScrollElement()]:[n,h,f.renderList(),i,f.base.renderScrollElement()]),p&&i)},f.renderList=function(){var e=f.props,t=e.data,n=void 0===t?[]:t,i=e.textField,o=e.listNoDataRender,a=e.itemRender,s=e.dataItemKey,r=e.virtual,l=f.base.vs,p=r?r.skip:0,u=void 0!==f.props.opened?f.props.opened:f.state.opened,d=f.getFocusedState().focusedIndex,c=f.base.getPopupSettings(),h="translateY("+l.translate+"px)";return I.createElement(g.default,{id:f.base.listBoxId,show:u,data:n.slice(),focusedIndex:d-p,value:f.value,textField:i,valueField:s,optionPrefix:f.base.optionPrefix,listRef:function(e){return l.list=f.base.list=e},wrapperStyle:l.enabled?{float:"left",width:"100%"}:{maxHeight:c.height},wrapperCssClass:l.enabled?void 0:"k-list-scroller",listStyle:l.enabled?{transform:h}:void 0,key:"listKey",skip:p,onClick:f.handleItemClick,itemRender:a,noDataRender:o})},f.customItemSelect=function(e){var t,n=void 0!==f.props.filter?f.props.filter:f.state.text,i=f.props.textField;if(n){var o=f.base.initState();o.syntheticEvent=e;var a=i?((t={})[i]=n,t):n;void 0!==f.state.text&&(o.data.text=""),o.data.focusedIndex=void 0,f.base.filterChanged("",o);var s=f.value.concat([a]);f.triggerOnChange(s,o),f.base.togglePopup(o),f.applyState(o)}},f.handleWrapperClick=function(e){var t=void 0!==f.props.opened?f.props.opened:f.state.opened,n=f._input;!t&&n&&f.focusElement(n);var i=f.base.initState();i.syntheticEvent=e,f.state.focused||(i.events.push({type:"onFocus"}),i.data.focused=!0),f.base.togglePopup(i),f.applyState(i)},f.handleItemClick=function(e,t){f.base.handleItemClick(e,t),f._valueItemsDuringOnChange=null},f.handleBlur=function(e){if(f.state.focused&&!f._skipFocusEvent){var t=void 0!==f.props.opened?f.props.opened:f.state.opened,n=f.base.initState(),i=f.props,o=i.allowCustom,a=i.filterable;n.syntheticEvent=e,n.data.focused=!1,n.events.push({type:"onBlur"}),t&&(f.state.opened&&(n.data.opened=!1),n.events.push({type:"onClose"})),o||a||!f.state.text||(n.data.text=""),f.applyState(n)}},f.handleFocus=function(e){f._skipFocusEvent||f.base.handleFocus(e)},f.onPopupOpened=function(){f._input&&f.focusElement(f._input)},f.onPopupClosed=function(){f.state.focused&&setTimeout(function(){f.state.focused&&f.focusElement(f._input)},0)},f.setValidity=function(){f._input&&f._input.setCustomValidity&&f._input.setCustomValidity(f.validity.valid?"":f.props.validationMessage||"Please enter a valid value!")},f}return o(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&&0<this.value.length&&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,i=n?n.skip:0,o=e.virtual?e.virtual.total:0,a=void 0!==this.props.opened?this.props.opened:this.state.opened,s=void 0!==e.opened?e.opened:t.opened,r=!s&&a,l=s&&!a;if(!this.base.getPopupSettings().animate&&l&&this.onPopupClosed(),n&&n.total!==o)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var p=this.getFocusedState(),u=p.focusedItem,d=p.focusedIndex,c=void 0!==t.focusedIndex&&t.focusedIndex!==d;r&&n?this.base.scrollToVirtualItem(n,d-i):r&&!n?this.base.scrollToItem(d):a&&s&&u&&c&&this.base.scrollToItem(d-i)}this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.onNavigate=function(e,t){var n=this.props,i=n.allowCustom,o=n.data,a=void 0===o?[]:o,s=void 0!==this.props.opened?this.props.opened:this.state.opened,r=void 0!==this.props.filter?this.props.filter:this.state.text,l=this.getFocusedState(),p=l.focusedType,u=l.focusedIndex,d=i&&r,c=P(p),h=this.base,f=h.vs;if(s&&t===_.Keys.up&&c)void 0!==this.state.focusedIndex&&(e.data.focusedIndex=void 0);else{var v=h.navigation.navigate({keyCode:t,current:u,max:(f.enabled?f.total:a.length)-1,min:d?-1:0});void 0!==v&&this.itemFocus(v,e)}this.applyState(e)},t.prototype.render=function(){var t=this,e=this.props,n=e.style,i=e.className,o=e.label,a=e.dir,s=e.disabled,r=e.tags,l=void 0===r?[]:r,p=e.textField,u=e.dataItemKey,d=e.virtual,c=this.state,h=c.focused,f=c.text,v=c.focusedTag,g=this.base.vs;g.enabled=void 0!==d,void 0!==d&&(g.skip=d.skip,g.total=d.total,g.pageSize=d.pageSize),0===l.length&&this.value.forEach(function(e){l.push({text:S.getItemValue(e,p),data:[e]})}),this.setItems(l,this._tags);var y=!this.validityStyles||this.validity.valid,m=I.createElement("span",{ref:function(e){return t._element=e},className:_.classNames("k-widget k-multiselect k-header",i,{"k-state-focused":h&&!s,"k-state-invalid":!y,"k-state-disabled":s}),style:o?b({},n,{width:void 0}):n,dir:a,onFocus:this.handleFocus,onBlur:this.handleBlur},I.createElement("div",{onClick:this.handleWrapperClick,ref:function(e){return t.base.wrapper=e},className:"k-multiselect-wrap k-floatwrap",onMouseDown:S.preventDefaultNonInputs},I.createElement(x.default,{tagRender:this.props.tagRender,onTagDelete:this.onTagDelete,data:l,guid:this.base.optionPrefix,focused:v?l.find(function(e){return k(e,v,u)}):void 0}),this.renderSearchbar(),this.props.loading&&I.createElement("span",{className:"k-icon k-i-loading"})),this.renderListContainer());return o?I.createElement(_.FloatingLabel,{label:o,value:f||S.getItemValue(this.value[0],p),style:{width:n?n.width:void 0},children:m,valid:y}):m},t.prototype.renderSearchbar=function(){var e=this.state,t=e.activedescendant,n=e.focusedTag,i=this.props,o=i.disabled,a=i.textField,s=i.placeholder,r=(void 0!==this.props.filter?this.props.filter:this.state.text)||"",l=void 0!==this.props.opened?this.props.opened:this.state.opened,p=this.getFocusedState(),u=p.focusedItem,d=p.focusedIndex,c=!!r||0<this.value.length,h=0!==this.value.length||r?void 0:s,f=this.base.optionPrefix+"-"+(t===m.ActiveDescendant.TagsList&&void 0!==n)?S.getItemValue(u,a):d;return I.createElement(y.default,{id:this._inputId,size:Math.max((h||"").length,r.length,1),tabIndex:this.props.tabIndex,placeholder:h,value:r,onChange:this.onChangeHandler,onKeyDown:this.onInputKeyDown,ref:this.searchbarRef,disabled:o,expanded:l,owns:this.base.listBoxId,activedescendant:f,clearButton:c,clearButtonClick:this.clearButtonClick})},t.prototype.onTagsNavigate=function(e,t){var n=e.keyCode,i=this.state.focusedTag,o=this._tags,a=this.props.dataItemKey,s=i?o.findIndex(function(e){return k(e,i,a)}):-1,r=void 0,l=-1!==s;if(n===_.Keys.left)r=o[s=l?Math.max(0,s-1):o.length-1];else if(n===_.Keys.right)s===o.length-1?r=void 0:l&&(r=o[s=Math.min(o.length-1,s+1)]);else if(n===_.Keys.home)r=o[0];else if(n===_.Keys.end)r=o[o.length-1];else if(n===_.Keys.delete){if(l){var p=this.value;S.removeDataItems(p,o[s].data,a),this.triggerOnChange(p,t)}}else if(n===_.Keys.backspace)if(p=this.value,l)S.removeDataItems(p,o[s].data,a),this.triggerOnChange(p,t);else if(!l&&o.length){var u=o.pop();S.removeDataItems(p,u.data,a),this.triggerOnChange(p,t)}r!==i&&(t.data.focusedTag=r),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,i=void 0===n?[]:n,o=t.virtual,a=this.getFocusedState().focusedIndex,s=o?o.skip:0;void 0!==i[a-s]?this.handleItemClick(a,e):this.handleItemClick(s,e)},t.prototype.setItems=function(e,t){t.length=0,t.push.apply(t,e)},t.prototype.getFocusedState=function(){var e=this.state,t=e.focusedIndex,n=e.text,i=this.props,o=i.allowCustom,a=i.data,s=void 0===a?[]:a,r=i.dataItemKey,l=i.virtual,p=l&&l.skip||0;if(void 0!==t)return{focusedIndex:t,focusedItem:s[t-p],focusedType:h.ListItem};var u=this.value;if(o&&n)return{focusedItem:null,focusedIndex:-1,focusedType:h.CustomItem};if(u.length){var d=u[u.length-1],c=s.findIndex(function(e){return S.areSame(e,d,r)});return void 0!==s[c]?{focusedIndex:c+p,focusedItem:s[c],focusedType:h.ListItem}:{focusedType:h.None,focusedIndex:-1}}return 0===p?{focusedItem:s[0],focusedIndex:0,focusedType:h.ListItem}:{focusedType:h.None,focusedIndex:-1}},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),setTimeout(function(){return t._skipFocusEvent=!1},30)},t.prototype.applyState=function(e){this.base.applyState(e),this._valueItemsDuringOnChange=null},t.propTypes=b({},r.default.propTypes,{value:s.arrayOf(s.any),defaultValue:s.arrayOf(s.any),dataItemKey:s.string,placeholder:s.string,tags:s.arrayOf(s.shape({text:s.string,data:s.arrayOf(s.any)})),tagRender:s.func}),t.defaultProps=b({},r.default.defaultProps,{required:!1}),t}(I.Component);t.default=l},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=function(e){return e.preventDefault()},r=function(e){return e.stopPropagation()},l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var n=this;return a.createElement("ul",{className:"k-reset",role:"listbox"},this.props.data.map(function(t){var e=a.createElement("li",{className:t===n.props.focused?"k-button k-state-focused":"k-button",key:t.text,id:n.props.guid+"-"+t.text,onMouseDown:s,onClick:r},a.createElement("span",null,t.text),a.createElement("span",{"aria-label":"delete",className:"k-select",onClick:function(e){return n.props.onTagDelete.call(void 0,t.data,e)}},a.createElement("span",{className:"k-icon k-i-close"})));return n.props.tagRender?n.props.tagRender(t,e):e}))},t}(a.Component);t.default=l},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),(i=t.ActiveDescendant||(t.ActiveDescendant={}))[i.PopupList=0]="PopupList",i[i.TagsList=1]="TagsList"}])}}});
1
+ System.register("@progress/kendo-react-dropdowns",["react","prop-types","@progress/kendo-react-common","@progress/kendo-react-intl","@progress/kendo-react-popup"],function(r){var n,i,o,a,s;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){i=t(e)},function(e){o=t(e)},function(e){a=t(e)},function(e){s=t(e)}],execute:function(){!function(n){var i={};function o(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=n,o.c=i,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=10)}([function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return null!=e};t.isPresent=o,t.sameCharsOnly=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0},t.shuffleData=function(e,t,n){var i=e;return n&&(i=[n].concat(i)),i.slice(t).concat(i.slice(0,t))},t.matchText=function(e,t,n){if(!o(e))return!1;var i=String(e);return n&&(i=i.toLowerCase()),0===i.indexOf(t)},t.scrollToItem=function(e,t,n,i,o){var a=e.offsetHeight,s=t*n+(o?i-e.scrollTop:0);if(o){var r=0;a<s+t?r=s+t-a:s<0&&(r=s),0!==r?e.scrollTop+=r:0===e.scrollTop&&0!==i&&(e.scrollTop=i)}else s+t>a+e.scrollTop?e.scrollTop=s+t-a:s<e.scrollTop&&(e.scrollTop-=e.scrollTop-s)};var s=function(e,t,n){var i=-1;if(t){t=t.toLowerCase();for(var o=0;o<e.length;o++){var a=(r(e[o],n)||"")+"";if(a&&a.toLowerCase().startsWith(t)){i=o;break}}}return i};t.itemIndexStartsWith=s;var a=function(e,t,n,i){void 0===i&&(i=!1);var o=function(e){return i?e:e.toLowerCase()};return e.findIndex(function(e){return n?o(r(e,n))===o(t):o(t)===o(e.toString())})};t.getItemIndexByText=a;var r=function(e,t){if(t&&o(e)){var n=t.split("."),i=e;return n.forEach(function(e){i=i?i[e]:void 0}),i}return e};t.getItemValue=r,t.matchDataCollections=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 i=0;i<e.length;i++)if(!l(e[i],t[i],n))return!1;return!0},t.removeDataItems=function(n,e,i){e.forEach(function(t){var e=n.findIndex(function(e){return l(e,t,i)});-1!==e&&n.splice(e,1)})};var l=function(e,t,n){return e===t||o(e)===o(t)&&r(e,n)===r(t,n)};t.areSame=l,t.getFocusedItem=function(e,t,n){if(t){var i=a(e,t,n,!0);return-1!==i?e[i]:e[s(e,t,n)]}return e[0]},t.suggestValue=function(e,t,n){void 0===t&&(t=[]);var i="";if(e){var o=t[s(t,e,n)];if(o){var a=r(o,n);e.toLowerCase()!==a.toLowerCase()&&(i=a.substring(e.length))}}return i},t.preventDefaultNonInputs=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()}},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var l=n(0),p=n(12),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.onMouseDown,i=e.onBlur,o=e.width,a=e.dir,s=e.popupSettings;return l.createElement(p.Popup,r({style:{width:o,direction:a}},s),l.createElement("div",{onMouseDown:n,onBlur:i},t))},t}(l.Component);t.default=a},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var f=n(0),v=n(15),g=n(1),p=n(8),a=n(9),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.renderItems=function(){var o=this,e=this.props,a=e.textField,s=e.valueField,r=e.optionPrefix,t=e.skip,l=void 0===t?0:t,p=e.focusedIndex,n=e.highlightSelected,u=void 0===n||n,d=e.value,c=e.itemRender,h=Array.isArray(d);return this.props.data.map(function(t,e){var n=l+e,i=u&&(!h&&g.areSame(t,d,s)||h&&-1!==d.findIndex(function(e){return g.areSame(e,t,s)}));return f.createElement(v.default,{id:r+"-"+n,dataItem:t,selected:i,focused:p===e,index:n,key:n,onClick:o.props.onClick,textField:a,renderer:c})})},t.prototype.renderNoValueElement=function(e){var t=this.props.noDataRender,n=f.createElement("div",{className:"k-nodata"},f.createElement("div",null,e.toLanguageString(a.nodata,a.messages[a.nodata])));return t?t.call(void 0,n):n},t.prototype.render=function(){var e=p.provideLocalizationService(this),t=this.props,n=t.id,i=t.show,o=t.wrapperCssClass,a=t.wrapperStyle,s=t.listStyle,r=t.listRef,l=this.renderItems();return l.length?f.createElement("div",{className:o,style:a,ref:function(e){return e&&e.setAttribute("unselectable","on")}},f.createElement("ul",{id:n,role:"listbox","aria-hidden":!i||void 0,className:"k-list k-reset",ref:r,style:s},l)):this.renderNoValueElement(e)},t}(f.Component);t.default=s,p.registerForLocalization(s)},function(e,t,n){"use strict";var a=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(3),s=n(16),r=n(17),l=n(1),p=n(2),u=function(){function e(e){var o=this;this.vs=new s.default,this.navigation=new r.Navigation,this.handleItemClick=function(e,t){var n=o.initState();n.syntheticEvent=t,o.component.handleItemSelect(e,n),o.togglePopup(n),o.applyState(n)},this.handleFocus=function(e){if(!o.component.state.focused){var t=o.initState();t.data.focused=!0,t.events.push({type:"onFocus"}),t.syntheticEvent=e,o.applyState(t)}},this.filterChanged=function(e,t){var n=o.component.props,i=n.textField;n.filterable&&t.events.push({type:"onFilterChange",filter:{field:i,operator:"contains",ignoreCase:!0,value:e}})},this.togglePopup=function(e){var t=o.component.props,n=void 0!==t.opened?t.opened:o.component.state.opened;void 0===t.opened&&(e.data.opened=!n),n?e.events.push({type:"onClose"}):(e.events.push({type:"onOpen"}),o.calculatePopupWidth())},this.pageChange=function(e,t){var n=o.initState();n.syntheticEvent=t,o.triggerOnPageChange(n,e.skip,e.take),o.applyState(n)},this.scrollToVirtualItem=function(e,t){var n=o.vs;if(n.enabled=!1,0===e.skip)n.reset();else if(e.skip+e.pageSize===e.total)n.scrollToEnd();else{var i=n.translate;0===i&&(n.calcScrollElementHeight(),i=n.itemHeight*e.skip,n.translateTo(i-n.itemHeight)),n.container&&(n.container.scrollTop=i),o.scrollToItem(t,!0)}setTimeout(function(){return n.enabled=!0},10)},this.renderScrollWrapper=function(e){var t=o.getPopupSettings(),n=o.vs;return n.enabled?i.createElement("div",{onScroll:n.scrollHandler,ref:n.scrollerRef,style:{height:t.height,overflowY:"scroll"}},e):e},this.renderScrollElement=function(){var t=o.vs;return t.enabled&&i.createElement("div",{ref:function(e){return t.scrollElement=e},key:"scrollElementKey"})},this.listBoxId=p.guid(),this.optionPrefix=p.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||{},i=t.width,o=!0===e.opened;void 0===i&&this.calculatePopupWidth(),void 0===e.dir&&void 0===n.direction&&(this.calculateDir(),o=!0),o&&this.component.forceUpdate()},e.prototype.calculateDir=function(){this.component.element&&(this.dirCalculated=window.getComputedStyle(this.component.element).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,i=n?n.children[0]:void 0;if(i&&0<=e){var o=this.vs,a=o.container||n.parentNode,s=void 0!==t?t:o.enabled;l.scrollToItem(a,i.offsetHeight,e,o.translate,s)}},e.prototype.initState=function(){return{data:{},events:[],syntheticEvent:void 0}},e.prototype.applyState=function(e){var i=this,o={syntheticEvent:e.syntheticEvent,nativeEvent:e.syntheticEvent?e.syntheticEvent.nativeEvent:void 0,target:this.component};0<Object.keys(e.data).length&&this.component.setState(e.data),e.events.forEach(function(e){var t=e.type;delete e.type;var n=i.component.props[t];n&&n.call(void 0,a({},o,e))})},e.prototype.triggerOnPageChange=function(e,t,n){var i=this.component.props.virtual;if(i){var o=Math.min(Math.max(0,t),Math.max(0,i.total-n));o!==i.skip&&e.events.push({type:"onPageChange",page:{skip:o,take:n}})}},e.prototype.triggerPageChangeCornerItems=function(e,t){var n=this.component.props,i=n.data,o=void 0===i?[]:i,a=n.dataItemKey,s=n.virtual,r=void 0!==n.opened?n.opened:this.component.state.opened;e&&s&&this.vs.enabled&&(0<s.skip&&l.areSame(e,o[0],a)?this.triggerOnPageChange(t,s.skip-1,s.pageSize):!r&&s.skip+s.pageSize<s.total&&l.areSame(e,o[o.length-1],a)&&this.triggerOnPageChange(t,s.skip+1,s.pageSize))},e.prototype.getPopupSettings=function(){return Object.assign({},e.defaultProps.popupSettings,this.component.props.popupSettings)},e.basicPropTypes={opened:o.bool,disabled:o.bool,dir:o.string,tabIndex:o.number,data:o.array,textField:o.string,className:o.string,label:o.string,loading:o.bool,popupSettings:o.shape({animate:o.oneOfType([o.bool,o.shape({openDuration:o.number,closeDuration:o.number})]),width:o.string,height:o.string}),onOpen:o.func,onClose:o.func,onFocus:o.func,onBlur:o.func,onChange:o.func,itemRender:o.func,listNoDataRender:o.func,header:o.node,footer:o.node},e.propTypes=a({},e.basicPropTypes,{value:o.any,defaultValue:o.any,filterable:o.bool,filter:o.string,virtual:o.shape({pageSize:o.number.isRequired,skip:o.number.isRequired,total:o.number.isRequired}),onFilterChange:o.func,onPageChange:o.func}),e.defaultProps={popupSettings:{animate:!0,height:"200px"},required:!1,validityStyles:!0},e}();t.default=u},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(19),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(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,i=this.props,o=i.value,a=i.suggestedText,s=i.focused,r=this.input,l=t!==o||a!==n,p=l&&t.startsWith(o)&&!(n&&a&&n.endsWith(a));s&&r&&document.activeElement!==r&&r.focus(),a&&l&&!p&&r&&r.setSelectionRange(o.length-a.length,o.length)},t.prototype.render=function(){var t=this;return[a.createElement("span",{className:"k-searchbar",key:"searchbar"},a.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,role:"listbox",value:this.props.value,onChange:this.props.onChange,ref:function(e){return t._input=e},onKeyDown:this.props.onKeyDown,onFocus:this.props.onFocus,onBlur:this.props.onBlur,"aria-disabled":this.props.disabled||void 0,disabled:this.props.disabled||void 0,readOnly:this.props.readOnly||void 0,"aria-haspopup":!0,"aria-expanded":this.props.expanded||!1,"aria-owns":this.props.owns,"aria-activedescendant":this.props.activedescendant})),this.props.clearButton&&a.createElement(s.default,{onClick:this.props.clearButtonClick,key:"clearbutton"})]},t}(a.Component);t.default=r},function(e,t){e.exports=a},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.nodata="dropdowns.nodata",t.clear="dropdowns.clear",t.messages=((i={})[t.clear]="clear",i[t.nodata]="NO DATA FOUND.",i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(11);t.DropDownList=i.default;var o=n(18);t.ComboBox=o.default;var a=n(20);t.AutoComplete=a.default;var s=n(21);t.MultiSelect=s.default,function(e){for(var t in e)r(t,e[t])}(t)},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var b=n(0),a=n(3),_=n(2),u=n(4),s=n(13),r=n(14),f=n(5),l=n(6),x=n(1),p=function(e){function t(){var I=null!==e&&e.apply(this,arguments)||this;return I.state={},I.base=new l.default(I),I.searchState={word:"",last:""},I._skipFocusEvent=!1,I._filterInput=null,I._navigated=!1,I.handleItemSelect=function(e,t){var n=I.props,i=n.data,o=void 0===i?[]:i,a=n.virtual,s=n.dataItemKey,r=n.defaultItem,l=a?a.skip:0,p=-1===e&&void 0!==r?r:o[e-l],u=!x.areSame(p,I.value,s);I.triggerOnChange(p,t),u&&I.base.triggerPageChangeCornerItems(p,t)},I.renderDropDownWrapper=function(){var e=I.props,t=e.dataItemKey,n=e.data,i=void 0===n?[]:n,o=e.textField,a=e.disabled,s=e.tabIndex,r=e.loading,l=e.iconClassName,p=e.virtual,u=void 0===p?{skip:0}:p,d=e.valueRender,c=I.state.focused,h=void 0!==I.props.opened?I.props.opened:I.state.opened,f=I.value,v=i.findIndex(function(e){return x.areSame(e,f,t)}),g=x.getItemValue(f,o),y=b.createElement("span",{className:"k-input"},g),m=void 0!==d?d.call(void 0,y,f):y;return b.createElement("span",{ref:function(e){return I.base.wrapper=e},role:"listbox",tabIndex:a?void 0:s,className:_.classNames("k-dropdown-wrap",I.props.className,{"k-state-default":!a,"k-state-focused":c,"k-state-disabled":a}),style:I.props.style,onKeyDown:I.handleKeyDown,onKeyPress:I.handleKeyPress,onClick:I.handleWrapperClick,"aria-disabled":a||void 0,"aria-haspopup":!0,"aria-expanded":h||!1,"aria-owns":I.base.listBoxId,"aria-activedescendant":I.base.optionPrefix+"-"+(v+u.skip)},m,b.createElement("span",{className:"k-select"},b.createElement("span",{className:_.classNames("k-icon",l,{"k-i-arrow-s":!r&&!l,"k-i-loading":r&&!l})})),I.dummySelect(f))},I.dummySelect=function(e){return b.createElement("select",{name:I.props.name,ref:function(e){I._select=e},tabIndex:-1,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},b.createElement("option",{value:I.props.valueMap?I.props.valueMap.call(void 0,e):e}))},I.renderListContainer=function(){var e=I.props,t=e.header,n=e.footer,i=e.dir,o=I.base,a=o.getPopupSettings(),s=void 0!==I.props.opened?I.props.opened:I.state.opened,r=void 0!==I.props.virtual,l=void 0!==a.width?a.width:o.popupWidth,p={onMouseDown:x.preventDefaultNonInputs,dir:void 0!==i?i:o.dirCalculated,width:l,popupSettings:{className:_.classNames("k-list-container k-reset",a.className),animate:a.animate,anchor:I.element||void 0,show:s,open:I.onPopupOpened,close:I.onPopupClosed}};return b.createElement(u.default,c({},p),I.renderListFilter(),r?I.renderDefaultItem():void 0,r&&t,I.base.renderScrollWrapper(r?[I.renderList(),I.base.renderScrollElement()]:[I.renderDefaultItem(),t,I.renderList(),n,I.base.renderScrollElement()]),r&&n)},I.renderList=function(){var e=I.props,t=e.data,n=void 0===t?[]:t,i=e.textField,o=e.dataItemKey,a=e.virtual,s=void 0===a?{skip:0}:a,r=e.listNoDataRender,l=e.itemRender,p=I.base.vs,u=s.skip,d=void 0!==I.props.opened?I.props.opened:I.state.opened,c=I.base.getPopupSettings(),h="translateY("+p.translate+"px)";return b.createElement(f.default,{id:I.base.listBoxId,show:d,data:n.slice(),focusedIndex:I.focusedIndex(),value:I.value,textField:i,valueField:o,optionPrefix:I.base.optionPrefix,listRef:function(e){return p.list=I.base.list=e},wrapperStyle:p.enabled?{float:"left",width:"100%"}:{maxHeight:c.height},wrapperCssClass:p.enabled?void 0:"k-list-scroller",listStyle:p.enabled?{transform:h}:void 0,key:"listkey",skip:u,onClick:I.handleItemClick,itemRender:l,noDataRender:r})},I.renderListFilter=function(){var e=void 0!==I.props.filter?I.props.filter:I.state.text;return I.props.filterable&&b.createElement(s.default,{value:e,ref:function(e){return I._filterInput=e&&e.input},onChange:I.handleListFilterChange,onKeyDown:I.handleKeyDown})},I.renderDefaultItem=function(){var e=I.props,t=e.textField,n=e.defaultItem,i=e.dataItemKey;return void 0!==n&&b.createElement(r.default,{defaultItem:n,textField:t,selected:x.areSame(I.value,n,i),key:"defaultitemkey",onClick:I.handleDefaultItemClick})},I.search=function(e){clearTimeout(I._typingTimeout),I.props.filterable||(I._typingTimeout=setTimeout(function(){return I.searchState.word=""},I.props.delay),I.selectNext(e))},I.selectNext=function(e){var t,n=I.props,i=n.data,o=void 0===i?[]:i,a=n.dataItemKey,s=o.map(function(e,t){return{item:e,itemIndex:t}}),r=I.searchState.word,l=I.searchState.last,p=x.sameCharsOnly(r,l),u=s.length,d=Math.max(0,o.findIndex(function(e){return x.areSame(e,I.value,a)}));I.props.defaultItem&&(t={item:I.props.defaultItem,itemIndex:-1},u+=1,d+=1),d+=p?1:0,s=x.shuffleData(s,d,t);for(var c,h,f,v=0,g=I.props,y=g.textField,m=g.ignoreCase;v<u;v++)if(c=x.getItemValue(s[v].item,y),h=p&&x.matchText(c,l,m),f=x.matchText(c,r,m),h||f){v=s[v].itemIndex;break}if(v!==u){var b=I.base.initState();b.syntheticEvent=e,I.handleItemSelect(v,b),I.applyState(b),I._valueDuringOnChange=void 0}},I.handleKeyDown=function(e){var t=I.props,n=t.data,i=void 0===n?[]:n,o=t.filterable,a=t.disabled,s=t.virtual,r=void 0===s?{skip:0,total:0,pageSize:0}:s,l=void 0!==I.props.opened?I.props.opened:I.state.opened,p=e.keyCode,u=p===_.Keys.home||p===_.Keys.end,d=p===_.Keys.up||p===_.Keys.down,c=!l&&(e.altKey&&p===_.Keys.down||p===_.Keys.enter||p===_.Keys.space),h=l&&(e.altKey&&p===_.Keys.up||p===_.Keys.esc),f=p===_.Keys.left||p===_.Keys.right,v=d||!o&&(f||u),g=I.base.initState();if(g.syntheticEvent=e,!a){if(u&&I.base.vs.enabled)p===_.Keys.home?0!==r.skip?(I.base.triggerOnPageChange(g,0,r.pageSize),I._navigated=!0):I.triggerOnChange(i[0],g):r.skip<r.total-r.pageSize?(I.base.triggerOnPageChange(g,r.total-r.pageSize,r.pageSize),I._navigated=!0):I.triggerOnChange(i[i.length-1],g);else if(l&&p===_.Keys.enter){var y=I.focusedIndex();void 0!==y&&I.handleItemSelect(y,g),I.base.togglePopup(g),e.preventDefault()}else c||h?(I.base.togglePopup(g),e.preventDefault()):v&&(I.onNavigate(g,p),e.preventDefault());I.applyState(g)}},I.handleItemClick=function(e,t){I.base.handleItemClick(e,t),I._valueDuringOnChange=void 0},I.handleFocus=function(e){I._skipFocusEvent||I.base.handleFocus(e)},I.handleBlur=function(e){if(!I._skipFocusEvent&&I.state.focused){var t=void 0!==I.props.opened?I.props.opened:I.state.opened,n=I.base.initState();n.syntheticEvent=e,n.data.focused=!1,n.events.push({type:"onBlur"}),t&&I.base.togglePopup(n),I.applyState(n)}},I.handleDefaultItemClick=function(e){var t=I.base.initState();t.syntheticEvent=e,I.base.togglePopup(t),I.triggerOnChange(I.props.defaultItem,t),I.applyState(t)},I.handleWrapperClick=function(e){var t=I.base.initState();t.syntheticEvent=e,I.state.focused||(t.data.focused=!0),I.base.togglePopup(t),I.applyState(t)},I.handleKeyPress=function(e){if(!I.props.filterable&&0!==e.which&&e.keyCode!==_.Keys.enter){var t=String.fromCharCode(e.charCode||e.keyCode);I.props.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),I.searchState={word:I.searchState.word+t,last:I.searchState.last+t},I.search(e)}},I.handleListFilterChange=function(e){var t=I.base.initState();t.syntheticEvent=e,void 0===I.props.filter&&(t.data.text=e.target.value),I.base.filterChanged(e.target.value,t),I.applyState(t)},I.onPopupOpened=function(){I._filterInput&&I.focusElement(I._filterInput)},I.onPopupClosed=function(){I.state.focused&&setTimeout(function(){I.state.focused&&I.base.wrapper&&I.focusElement(I.base.wrapper)})},I.setValidity=function(){I._select&&I._select.setCustomValidity&&I._select.setCustomValidity(I.validity.valid?"":I.props.validationMessage||"Please select a value from the list!")},I}return o(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 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),x.isPresent(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,i=e.dataItemKey,o=this.value;return n.findIndex(function(e){return x.areSame(e,o,i)})},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,i=n.data,o=void 0===i?[]:i,a=n.dataItemKey,s=n.virtual,r=e.virtual?e.virtual.total:0,l=void 0!==this.props.opened?this.props.opened:this.state.opened,p=void 0!==e.opened?e.opened:t.opened,u=!p&&l;if(this.base.getPopupSettings().animate||u&&this.onPopupOpened(),s&&s.total!==r)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var d=this.value,c=void 0!==e.value?e.value:t.value,h=o.findIndex(function(e){return x.areSame(e,d,a)}),f=!x.areSame(c,d,a);u&&s?this.base.scrollToVirtualItem(s,h):u&&!s?this.base.scrollToItem(h):l&&p&&d&&f&&!this._navigated?this.base.scrollToItem(h):l&&p&&this._navigated&&(this._navigated&&s&&0===s.skip?this.base.vs.reset():this._navigated&&s&&s.skip===s.total-s.pageSize&&this.base.vs.scrollToEnd())}this._navigated=!1,this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var t=this,e=this.props,n=e.style,i=e.className,o=e.label,a=e.dir,s=e.virtual,r=void 0!==this.props.opened?this.props.opened:this.state.opened,l=x.getItemValue(this.value,this.props.textField),p=!this.validityStyles||this.validity.valid,u=this.base;u.vs.enabled=void 0!==s,void 0!==s&&(u.vs.skip=s.skip,u.vs.total=s.total,u.vs.pageSize=s.pageSize);var d=b.createElement("span",{ref:function(e){return t._element=e},className:_.classNames("k-widget k-dropdown k-header",{"k-state-invalid":!p},i),style:o?c({},n,{width:void 0}):n,dir:a,onMouseDown:r?x.preventDefaultNonInputs:void 0,onFocus:this.handleFocus,onBlur:this.handleBlur},this.renderDropDownWrapper(),this.renderListContainer());return o?b.createElement(_.FloatingLabel,{label:o,value:l,style:{width:n?n.width:void 0},valid:p,children:d}):d},t.prototype.onNavigate=function(e,t){var n=this.props,i=n.data,o=void 0===i?[]:i,a=n.defaultItem,s=n.dataItemKey,r=n.virtual,l=void 0===r?{skip:0,total:0,pageSize:0}:r,p=this.base.vs,u=this.value,d=o.findIndex(function(e){return x.areSame(e,u,s)}),c=this.base.navigation.navigate({current:l.skip+d,max:(p.enabled?l.total:o.length)-1,min:void 0!==a?-1:0,keyCode:t});void 0!==c&&this.handleItemSelect(c,e),this.applyState(e)},t.prototype.focusedIndex=function(){var e=x.isPresent(this.props.filter)?this.props.filter:this.state.text,t=this.props,n=t.data,i=void 0===n?[]:n,o=t.virtual,a=void 0===o?{skip:0}:o,s=t.dataItemKey,r=this.value,l=!(i.findIndex(function(e){return x.areSame(e,r,s)})<0&&!this.props.defaultItem);return!l&&e&&0===a.skip?i.indexOf(x.getFocusedItem(i,e,this.props.textField)):l||0!==a.skip?void 0:0},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),setTimeout(function(){return t._skipFocusEvent=!1},30)},t.prototype.triggerOnChange=function(e,t){x.areSame(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.propTypes=c({delay:a.number,ignoreCase:a.bool,iconClassName:a.string,defaultItem:a.any,valueRender:a.func,valueMap:a.func,validationMessage:a.string,required:a.bool},l.default.propTypes),t.defaultProps=c({delay:500,tabIndex:0,ignoreCase:!0},l.default.defaultProps,{required:!1}),t}(b.Component);t.default=p},function(e,t){e.exports=s},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var t=this;return a.createElement("span",{className:"k-list-filter"},a.createElement("input",{ref:function(e){return t.input=e},value:this.props.value||"",className:"k-textbox",onChange:this.props.onChange,onKeyDown:this.props.onKeyDown}),a.createElement("span",{className:"k-icon k-i-search"}))},t}(a.Component);t.default=s},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(2),r=n(1),l=function(e){return e.preventDefault()},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.defaultItem,i=e.textField;return a.createElement("div",{onClick:this.props.onClick,onMouseDown:l,className:s.classNames("k-list-optionlabel",{"k-state-selected":t})},r.getItemValue(n,i)||"")},t}(a.Component);t.default=p},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(2),r=n(1),l=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 o(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.renderer,i=a.createElement("li",{id:this.props.id,role:"option","aria-selected":t,className:s.classNames("k-item",{"k-state-selected":t,"k-state-focused":this.props.focused}),onClick:this.handleClick},r.getItemValue(this.props.dataItem,this.props.textField).toString());return void 0!==n?n.call(void 0,i,this.props):i},t}(a.Component);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){var n=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(e){var t=n;(t.container=e)&&(e.setAttribute("unselectable","on"),setTimeout(t.calcScrollElementHeight.bind(t),0))},this.calcScrollElementHeight=function(){var e=!(n.scrollSyncing=!0);n.itemHeight=n.list?n.list.children[0].offsetHeight:n.itemHeight,n.containerHeight=Math.min(1533915,n.itemHeight*n.total);var t=n.containerHeight;return n.scrollElement&&(e=n.scrollElement.style.height!==t+"px")&&(n.scrollElement.style.height=t+"px"),n.scrollSyncing=!1,e},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,i=this.container.scrollTop,o=this.listTranslate,a=i-o;if(!(n<a)){for(t=0;t<this.skip&&!(o+n+a<=i);t++)o-=n;if(o=this.validateTranslate(o),this.skip-t<=0&&i<=o)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,i=this.container.scrollTop,o=this.listTranslate,a=this.list.children.length;for(t=0;t<a&&!(i<=o+n);t++)o+=n;o=this.validateTranslate(o),a<=t&&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),i=this.containerHeight*t/this.total;i=this.validateTranslate(i),this.translateTo(i),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):0<t-n&&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),Math.min(this.containerHeight-this.list.offsetHeight,e)},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(2),a=function(){function e(){}return e.prototype.navigate=function(e){var t=e.keyCode;return t===o.Keys.up||t===o.Keys.left?this.next({current:e.current,min:e.min,max:e.max,step:-1}):t===o.Keys.down||t===o.Keys.right?this.next({current:e.current,min:e.min,max:e.max,step:1}):t===o.Keys.home?0:t===o.Keys.end?e.max:void 0},e.prototype.next=function(e){return i.isPresent(e.current)?Math.min(e.max,Math.max(e.current+e.step,e.min)):e.min},e}();t.Navigation=a},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),S=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var C=n(0),a=n(3),s=n(6),k=n(2),P=n(1),g=n(7),l=n(4),I=n(5),r=function(e){function x(){var p=null!==e&&e.apply(this,arguments)||this;return p.state={},p.base=new s.default(p),p._inputId=k.guid(),p._suggested="",p.handleItemSelect=function(e,t){var n=p.props,i=n.data,o=void 0===i?[]:i,a=n.virtual,s=n.dataItemKey,r=o[e-(a?a.skip:0)],l=!P.areSame(r,p.value,s);p.triggerOnChange(r,t),void 0!==p.state.text&&(t.data.text=void 0),l&&p.base.triggerPageChangeCornerItems(r,t)},p.toggleBtnClick=function(e){var t=p.base.initState();t.syntheticEvent=e,p.base.togglePopup(t),p.applyState(t)},p.handleItemClick=function(e,t){p.base.handleItemClick(e,t),p._valueDuringOnChange=void 0},p.handleBlur=function(e){if(p.state.focused){var t=p.base.initState();t.data.focused=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,p.applyValueOnRejectSuggestions(e.currentTarget.value,t)}},p.onInputKeyDown=function(e){var t=e.keyCode,n=void 0!==p.props.opened?p.props.opened:p.state.opened,i=p.base.initState();if(!(i.syntheticEvent=e).altKey&&(t===k.Keys.up||t===k.Keys.down))return e.preventDefault(),p.onNavigate(i,t),void p.applyState(i);var o=function(){e.preventDefault(),p.base.togglePopup(i),p.applyState(i)};n?e.altKey&&t===k.Keys.up?o():t===k.Keys.enter?(e.preventDefault(),p.applyValueOnEnter(e.currentTarget.value,i)):t===k.Keys.esc&&p.applyValueOnRejectSuggestions(e.currentTarget.value,i):e.altKey&&t===k.Keys.down&&o()},p.inputOnChange=function(e){var t=p.base.initState();t.syntheticEvent=e;var n=void 0!==p.props.opened?p.props.opened:p.state.opened,i=e.currentTarget,o=i.value;if(p.props.suggest){var a=i.selectionEnd===o.length,s=void 0!==p.props.filter?p.props.filter:p.state.text;P.isPresent(s)||(s=P.getItemValue(p.value,p.props.textField)||"");var r=s&&s===o,l=s&&s.length>o.length;r||l||!a?p._suggested="":p.suggestValue(o)}void 0===p.props.filter&&(t.data.text=o),void 0!==p.state.focusedItem&&(t.data.focusedItem=void 0),n||p.base.togglePopup(t),p.base.filterChanged(o,t),p.applyState(t)},p.clearButtonClick=function(e){var t=p.base.initState();(t.syntheticEvent=e).stopPropagation(),p._suggested="",p.base.filterChanged("",t),void 0===p.props.filter&&void 0!==p.state.text&&(t.data.text=void 0),p.triggerOnChange(null,t),(void 0!==p.props.opened?p.props.opened:p.state.opened)&&p.base.togglePopup(t),p.applyState(t)},p.setValidity=function(){p._input&&p._input.setCustomValidity&&p._input.setCustomValidity(p.validity.valid?"":p.props.validationMessage||"Please enter a valid value!")},p}return o(x,e),Object.defineProperty(x.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(x.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(x.prototype,"index",{get:function(){var e=this.props,t=e.data,n=void 0===t?[]:t,i=e.dataItemKey,o=this.value;return n.findIndex(function(e){return P.areSame(e,o,i)})},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(x.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(x.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:x.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:x.defaultProps.required},enumerable:!0,configurable:!0}),x.prototype.componentDidUpdate=function(e,t){var n=this.props,i=n.data,o=void 0===i?[]:i,a=n.dataItemKey,s=n.virtual,r=e.virtual?e.virtual.total:0,l=void 0!==this.props.opened?this.props.opened:this.state.opened,p=void 0!==e.opened?e.opened:t.opened,u=!p&&l,d=this.value;if(this._valueOnDidUpdate=d,s&&s.total!==r)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var c=void 0!==e.value?e.value:t.value,h=o.findIndex(function(e){return P.areSame(e,d,a)}),f=!P.areSame(c,d,a);u&&s?this.base.scrollToVirtualItem(s,h):u&&!s?this.base.scrollToItem(h):l&&p&&d&&f&&this.base.scrollToItem(h)}u&&this._input&&this._input.focus(),this.setValidity()},x.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},x.prototype.render=function(){var t=this,e=this.props,n=e.dir,i=e.disabled,o=e.clearButton,a=void 0===o?x.defaultProps.clearButton:o,s=e.label,r=e.textField,l=e.className,p=e.style,u=e.loading,d=e.iconClassName,c=e.virtual,h=this.state.focused,f=!this.validityStyles||this.validity.valid,v=void 0!==this.props.filter?this.props.filter:this.state.text,g=P.getItemValue(this.value,r),y=P.isPresent(v)?v:g,m=a&&(!!y||P.isPresent(this.value)),b=this.base,I=b.vs;I.enabled=void 0!==c,void 0!==c&&(I.skip=c.skip,I.total=c.total,I.pageSize=c.pageSize);var _=C.createElement("span",{className:k.classNames("k-widget k-combobox k-header",{"k-combobox-clearable":a,"k-state-invalid":!f},l),ref:function(e){return t._element=e},style:s?S({},p,{width:void 0}):p,dir:n},C.createElement("span",{ref:function(e){return b.wrapper=e},className:k.classNames("k-dropdown-wrap",{"k-state-default":!i,"k-state-disabled":i,"k-state-focused":h&&!i})},this.renderSearchBar(m,y||"",this._inputId),C.createElement("span",{className:"k-select",onClick:this.toggleBtnClick,onMouseDown:function(e){return e.preventDefault()}},C.createElement("span",{className:k.classNames("k-icon",d,{"k-i-arrow-s":!u&&!d,"k-i-loading":u&&!d})}))),this.renderListContainer());return s?C.createElement(k.FloatingLabel,{label:s,value:y,style:{width:p?p.width:void 0},valid:f,id:this._inputId,children:_}):_},x.prototype.onNavigate=function(e,t){var n=this.props,i=n.data,o=void 0===i?[]:i,a=n.virtual,s=void 0===a?{skip:0}:a,r=this.props.filter?this.props.filter:this.state.text,l=this.getFocusedIndex(),p=this.base.vs,u=this.value;if(this._suggested="",-1===l||P.isPresent(u))if(""===r)this.handleItemSelect(0,e);else{var d=s.skip+l,c=this.base.navigation.navigate({keyCode:t,current:d,max:(p.enabled?p.total:o.length)-1,min:0});void 0!==c&&this.handleItemSelect(c,e)}else this.handleItemSelect(l,e)},x.prototype.applyValueOnEnter=function(e,t){var n,i=this.props,o=i.data,a=void 0===o?[]:o,s=i.textField,r=i.allowCustom,l=void 0!==this.props.opened?this.props.opened:this.state.opened,p=P.getItemIndexByText(a,e,s),u=-1!==p,d=void 0;if(this._suggested="",u)d=a[p];else{if(!r)return this.selectFocusedItem(e,t);d=void 0!==s?((n={})[s]=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)},x.prototype.applyValueOnRejectSuggestions=function(e,t){var n,i=this.props,o=i.data,a=void 0===o?[]:o,s=i.textField,r=i.allowCustom,l=void 0!==this.props.opened?this.props.opened:this.state.opened,p=P.getItemValue(this.value,s);if(this._suggested="",e===p||""===e&&!P.isPresent(p))return l&&this.base.togglePopup(t),this.applyState(t);var u=P.getItemIndexByText(a,e,s,!0),d=null;-1!==u?d=a[u]:r&&(d=e?s?((n={})[s]=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)},x.prototype.selectFocusedItem=function(e,t){var n=void 0!==this.props.opened?this.props.opened:this.state.opened,i=this.props,o=i.data,a=void 0===o?[]:o,s=i.textField,r=i.virtual,l=(void 0===r?{skip:0}:r).skip,p=""===e&&0===l?0:P.itemIndexStartsWith(a,e,s);return-1!==p?this.handleItemSelect(p+l,t):(this.triggerOnChange(null,t),void 0!==this.state.text&&(t.data.text=void 0)),n&&this.base.togglePopup(t),this.applyState(t)},x.prototype.renderListContainer=function(){var e=this.base,t=this.props,n=t.dir,i=t.header,o=t.footer,a=void 0!==this.props.opened?this.props.opened:this.state.opened,s=e.getPopupSettings(),r=void 0!==s.width?s.width:e.popupWidth;return C.createElement(l.default,{onMouseDown:function(e){return e.preventDefault()},width:r,popupSettings:{animate:s.animate,anchor:this.element||void 0,show:a,className:k.classNames("k-list-container k-reset",s.className)},dir:void 0!==n?n:this.base.dirCalculated},i,e.renderScrollWrapper([this.renderList(),e.renderScrollElement()]),o)},x.prototype.renderList=function(){var t=this,e=this.base,n=this.props,i=n.textField,o=n.dataItemKey,a=n.listNoDataRender,s=n.itemRender,r=n.data,l=void 0===r?[]:r,p=n.virtual,u=void 0===p?{skip:0}:p,d=e.getPopupSettings(),c=e.vs,h=u.skip,f=void 0!==this.props.opened?this.props.opened:this.state.opened,v="translateY("+c.translate+"px)",g=f?this.getFocusedIndex():void 0,y=void 0!==this.props.filter?this.props.filter:this.state.text,m=P.getItemValue(this.value,i),b=P.isPresent(y)&&y!==m?null:this.value;return C.createElement(I.default,{id:e.listBoxId,show:f,data:l,focusedIndex:g,value:b,textField:i,valueField:o,optionPrefix:e.optionPrefix,listRef:function(e){return c.list=t.base.list=e},wrapperStyle:c.enabled?{float:"left",width:"100%"}:{maxHeight:d.height},wrapperCssClass:c.enabled?void 0:"k-list-scroller",listStyle:c.enabled?{transform:v}:void 0,key:"listkey",skip:h,onClick:this.handleItemClick,itemRender:s,noDataRender:a})},x.prototype.renderSearchBar=function(e,t,n){var i=this,o=this.props,a=o.placeholder,s=o.tabIndex,r=o.disabled,l=o.data,p=void 0===l?[]:l,u=o.dataItemKey,d=o.virtual,c=void 0===d?{skip:0}:d,h=void 0!==this.props.opened?this.props.opened:this.state.opened,f=this.value,v=Math.max(0,p.findIndex(function(e){return P.areSame(e,f,u)}));return this._suggested&&!P.areSame(this._valueOnDidUpdate,f,u)&&(this._suggested=""),C.createElement(g.default,{id:n,placeholder:a,tabIndex:s||void 0,value:t+this._suggested,suggestedText:this._suggested,ref:function(e){return i._input=e&&e.input},onKeyDown:this.onInputKeyDown,onChange:this.inputOnChange,onFocus:this.base.handleFocus,onBlur:this.handleBlur,disabled:r,expanded:h,owns:this.base.listBoxId,activedescendant:this.base.optionPrefix+"-"+(v+c.skip),clearButton:e,clearButtonClick:this.clearButtonClick})},x.prototype.triggerOnChange=function(e,t){var n=this.value;!P.isPresent(n)&&!P.isPresent(e)||P.areSame(n,e,this.props.dataItemKey)||(void 0===this.props.value&&(t.data.value=e),this._valueDuringOnChange=e,t.events.push({type:"onChange"}))},x.prototype.getFocusedIndex=function(){var t=this.value,e=this.props,n=e.data,i=void 0===n?[]:n,o=e.textField,a=e.dataItemKey,s=e.virtual,r=void 0===s?{skip:0}:s,l=this.props.filter?this.props.filter:this.state.text;return P.isPresent(t)&&void 0===l?i.findIndex(function(e){return P.areSame(e,t,a)}):l?P.itemIndexStartsWith(i,l,o):0===r.skip?0:-1},x.prototype.suggestValue=function(e){var t=this.props,n=t.data,i=t.textField;this._suggested=P.suggestValue(e,n,i)},x.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},x.propTypes=S({},s.default.propTypes,{dataItemKey:a.string,suggest:a.bool,placeholder:a.string,allowCustom:a.bool,clearButton:a.bool,iconClassName:a.string,validationMessage:a.string,required:a.bool}),x.defaultProps=S({},s.default.defaultProps,{allowCustom:!1,clearButton:!0,required:!1}),x}(C.Component);t.default=r},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(8),r=n(9),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(e){return e.preventDefault()},e}return o(e,t),e.prototype.render=function(){var e=s.provideLocalizationService(this).toLanguageString(r.clear,r.messages[r.clear]);return a.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"})},e}(a.Component);t.default=l,s.registerForLocalization(l)},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var g=n(0),a=n(3),y=n(7),l=n(4),c=n(5),s=n(6),I=n(1),m=n(2),r=function(e){function t(){var b=null!==e&&e.apply(this,arguments)||this;return b.state={},b.base=new s.default(b),b._inputId=m.guid(),b._suggested="",b.handleItemSelect=function(e,t){var n=b.props.data,i=void 0===n?[]:n,o=I.getItemValue(i[e],b.props.textField);b.triggerOnChange(o,t)},b.itemFocus=function(e,t){var n=b.props,i=n.data,o=void 0===i?[]:i,a=n.textField,s=o[e];I.areSame(b.state.focusedItem,s,a)||(t.data.focusedItem=s)},b.togglePopup=function(e){b.base.togglePopup(e)},b.setValidity=function(){b._input&&b._input.setCustomValidity&&b._input.setCustomValidity(b.validity.valid?"":b.props.validationMessage||"Please enter a valid value!")},b.handleItemClick=function(e,t){b.base.handleItemClick(e,t),b._valueDuringOnChange=void 0},b.onChangeHandler=function(e){var t=b.base.initState(),n=e.currentTarget,i=n.value,o=n.selectionEnd===i.length;t.syntheticEvent=e;var a=b._suggested,s=b.value,r=s&&s.substring(0,s.length-a.length),l=r&&r===i,p=r&&r.length>i.length,u=b.props,d=u.suggest,c=u.data,h=void 0===c?[]:c,f=u.textField,v=void 0!==b.props.opened?b.props.opened:b.state.opened;if(void 0!==d&&!1!==d){l||p||!o?b._suggested="":b.suggestValue(i);var g=i+b._suggested,y={userInput:i,value:b._suggested};b.triggerOnChange(g,t,{suggestion:y})}else b._suggested="",b.triggerOnChange(i,t);(!v&&i||v&&!i)&&b.togglePopup(t);var m=I.getFocusedItem(h,i,f);b.state.focusedItem!==m&&(t.data.focusedItem=m),b.applyState(t)},b.clearButtonClick=function(e){var t=b.base.initState(),n=void 0!==b.props.opened?b.props.opened:b.state.opened;t.syntheticEvent=e,b._suggested="",b.triggerOnChange("",t),void 0!==b.state.focusedItem&&(t.data.focusedItem=void 0),n&&b.togglePopup(t),b.applyState(t)},b.onInputKeyDown=function(e){var t=e.keyCode,n=void 0!==b.props.opened?b.props.opened:b.state.opened,i=b.base.initState();i.syntheticEvent=e;var o=function(){n&&e.preventDefault()};t===m.Keys.enter||t===m.Keys.esc?(o(),b.applyInputValue(e.currentTarget.value,i,e.keyCode)):t!==m.Keys.up&&t!==m.Keys.down||(o(),b.onNavigate(i,t))},b.handleBlur=function(e){if(b.state.focused){var t=b.base.initState();t.data.focused=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,b.applyInputValue(e.currentTarget.value,t)}},b}return o(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.state.focusedItem,i=void 0!==n&&t.focusedItem!==n,o=void 0!==this.props.opened?this.props.opened:this.state.opened,a=!(void 0!==e.opened?e.opened:t.opened)&&o,s=this.props,r=s.data,l=void 0===r?[]:r,p=s.textField;if(o&&i||a){var u=void 0!==n?l.findIndex(function(e){return I.areSame(e,n,p)}):l.indexOf(I.getFocusedItem(l,this.value,p));this.base.scrollToItem(u)}this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var t=this,e=this.props,n=e.dir,i=e.disabled,o=e.label,a=e.className,s=e.style,r=e.loading,l=e.suggest,p=!this.validityStyles||this.validity.valid,u=this.state.focused,d=this.base,c=this.value,h=!r&&!!c;"string"==typeof l&&(this._suggested=l);var f=g.createElement("span",{className:m.classNames("k-widget k-autocomplete k-header",a,{"k-state-disabled":i,"k-state-focused":u&&!i,"k-state-invalid":!p}),ref:function(e){t._element=e,d.wrapper=e},style:o?v({},s,{width:void 0}):s,dir:n},this.renderSearchBar(h,c||""),r&&g.createElement("span",{className:"k-icon k-i-loading"}),this.renderListContainer());return o?g.createElement(m.FloatingLabel,{label:o,value:c,valid:p,style:{width:s?s.width:void 0},id:this._inputId,children:f}):f},t.prototype.onNavigate=function(e,t){var n=this,i=this.value,o=this.props,a=o.data,s=void 0===a?[]:a,r=o.textField,l=void 0!==this.state.focusedItem?s.findIndex(function(e){return I.areSame(e,n.state.focusedItem,r)}):s.indexOf(I.getFocusedItem(s,i,r)),p=this.base.navigation.navigate({keyCode:t,current:l,max:s.length-1,min:0});void 0!==p&&this.itemFocus(p,e),this.applyState(e)},t.prototype.applyInputValue=function(e,t,n){var i=void 0!==this.props.opened?this.props.opened:this.state.opened,o=this.props,a=o.data,s=void 0===a?[]:a,r=o.textField,l=void 0!==this.state.focusedItem?this.state.focusedItem:I.getFocusedItem(s,e,r);if(this._suggested="",i&&n===m.Keys.enter){var p=I.getItemValue(l,r);this.triggerOnChange(p,t)}this.state.focusedItem!==l&&(t.data.focusedItem=l),i&&this.togglePopup(t),this.applyState(t)},t.prototype.renderSearchBar=function(e,t){var n=this,i=this.base,o=this.props,a=o.placeholder,s=o.tabIndex,r=o.disabled,l=o.readonly,p=o.textField,u=o.data,d=void 0===u?[]:u,c=this.state.focused,h=void 0!==this.props.opened?this.props.opened:this.state.opened,f=I.getItemIndexByText(d,t,p,!0);return g.createElement(y.default,{id:this._inputId,placeholder:a,tabIndex:s||void 0,value:t,suggestedText:this._suggested,focused:c,ref:function(e){return n._input=e&&e.input},onKeyDown:this.onInputKeyDown,onChange:this.onChangeHandler,onFocus:i.handleFocus,onBlur:this.handleBlur,disabled:r,readOnly:l,expanded:h,owns:i.listBoxId,activedescendant:i.optionPrefix+"-"+f,clearButton:e,clearButtonClick:this.clearButtonClick})},t.prototype.renderListContainer=function(){var e=this.base,t=this.props,n=t.dir,i=t.header,o=t.footer,a=e.getPopupSettings(),s=void 0!==this.props.opened?this.props.opened:this.state.opened,r=void 0!==a.width?a.width:e.popupWidth;return g.createElement(l.default,{onMouseDown:function(e){return e.preventDefault()},width:r,popupSettings:{animate:a.animate,anchor:this.element||void 0,show:s,className:m.classNames("k-list-container k-reset",a.className)},dir:void 0!==n?n:this.base.dirCalculated},i,this.renderList(),o)},t.prototype.renderList=function(){var t=this,n=this.base,e=n.getPopupSettings(),i=this.props,o=i.textField,a=i.data,s=void 0===a?[]:a,r=i.listNoDataRender,l=i.itemRender,p=this.value,u=void 0!==this.props.opened?this.props.opened:this.state.opened,d=void 0!==this.state.focusedItem?s.findIndex(function(e){return I.areSame(e,t.state.focusedItem,o)}):s.indexOf(I.getFocusedItem(s,this.value,o));return g.createElement(c.default,{id:n.listBoxId,show:u,data:s.slice(),focusedIndex:d,value:p,textField:o,valueField:o,highlightSelected:!1,optionPrefix:n.optionPrefix,listRef:function(e){return n.list=e},wrapperStyle:{maxHeight:e.height},wrapperCssClass:"k-list-scroller",onClick:this.handleItemClick,itemRender:l,noDataRender:r})},t.prototype.triggerOnChange=function(e,t,n){(this.value!==e||n)&&(t.data.value=e,this._valueDuringOnChange=e,t.events.push(v({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,i=void 0===n?[]:n,o=t.textField,a=i[I.itemIndexStartsWith(i,e,o)];if(a){var s=I.getItemValue(a,o);e.toLowerCase()!==s.toLowerCase()&&(this._suggested=s.substring(e.length))}}},t.propTypes=v({},s.default.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}),t.defaultProps=v({},s.default.defaultProps),t}(g.Component);t.default=r},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var h,a,I=n(0),s=n(3),_=n(2),v=n(4),g=n(5),x=n(22),y=n(7),r=n(6),m=n(23),S=n(1),C=function(e){return e.preventDefault()},k=function(e,t,n){return!!e==!!t&&e.text===t.text&&(e===t||S.matchDataCollections(e.data,t.data,n))},P=function(e){return e===h.CustomItem};(a=h||(h={}))[a.None=0]="None",a[a.ListItem=1]="ListItem",a[a.CustomItem=2]="CustomItem";var l=function(e){function t(){var f=null!==e&&e.apply(this,arguments)||this;return f.state={activedescendant:m.ActiveDescendant.PopupList},f._valueItemsDuringOnChange=null,f._inputId=_.guid(),f.base=new r.default(f),f._tags=[],f._skipFocusEvent=!1,f.handleItemSelect=function(e,t){var n=f.props,i=n.data,o=void 0===i?[]:i,a=n.dataItemKey,s=n.virtual,r=o[e-(s?s.skip:0)],l=f.value.findIndex(function(e){return S.areSame(e,r,a)}),p=[];-1!==l?(p=f.value).splice(l,1):p=f.value.concat([r]),(void 0!==f.props.filter?f.props.filter:f.state.text)&&(f.state.text&&(t.data.text=""),f.base.filterChanged("",t)),void 0!==f.state.focusedIndex&&(t.data.focusedIndex=void 0),f.triggerOnChange(p,t),f.base.triggerPageChangeCornerItems(r,t)},f.onTagDelete=function(e,t){var n=void 0!==f.props.opened?f.props.opened:f.state.opened,i=f.base.initState();i.syntheticEvent=t,n&&f.base.togglePopup(i),f.state.focused||(i.data.focused=!0);var o=f.value;S.removeDataItems(o,e,f.props.dataItemKey),f.triggerOnChange(o,i),f.applyState(i)},f.itemFocus=function(e,t){var n=f.props,i=n.data,o=void 0===i?[]:i,a=n.allowCustom,s=n.virtual,r=s?s.skip:0,l=void 0!==f.props.filter?f.props.filter:f.state.text,p=f.getFocusedState().focusedIndex,u=a&&l,d=o[e-r];d&&p!==e?f.state.focusedIndex!==e&&(t.data.focusedIndex=e):u&&-1===e&&void 0!==f.state.focusedIndex&&(t.data.focusedIndex=void 0),f.base.triggerPageChangeCornerItems(d,t)},f.searchbarRef=function(e){var t=f._input=e&&e.input;t&&f.state.focused&&setTimeout(function(){return t.focus()},0)},f.onChangeHandler=function(e){var t=f.base.initState(),n=e.currentTarget.value,i=f.props,o=i.allowCustom,a=i.data,s=void 0===a?[]:a,r=i.textField,l=i.virtual,p=l?l.skip:0,u=void 0!==f.props.opened?f.props.opened:f.state.opened;if(t.syntheticEvent=e,void 0===f.props.filter&&(t.data.text=n),o)t.data.focusedIndex=n?void 0:0;else{var d=(n?S.itemIndexStartsWith(s,n,r):0)+p;f.state.focusedIndex!==d&&(t.data.focusedIndex=d)}u||f.base.togglePopup(t),f.base.filterChanged(n,t),f.applyState(t)},f.clearButtonClick=function(e){var t=void 0!==f.props.opened?f.props.opened:f.state.opened,n=f.base.initState();(n.syntheticEvent=e).stopPropagation(),0<f.value.length&&f.triggerOnChange([],n),void 0!==f.state.focusedIndex&&(n.data.focusedIndex=void 0),t&&f.base.togglePopup(n);var i=void 0!==f.props.filter?f.props.filter:f.state.text;S.isPresent(i)&&""!==i&&f.base.filterChanged("",n),f.state.text&&(n.data.text=""),f.applyState(n)},f.onInputKeyDown=function(e){var t=e.keyCode,n=void 0!==f.props.filter?f.props.filter:f.state.text,i=void 0!==f.props.opened?f.props.opened:f.state.opened,o=f.getFocusedState().focusedItem,a=f.base.initState();if(a.syntheticEvent=e,!n&&0<f.value.length&&(t===_.Keys.left||t===_.Keys.right||t===_.Keys.home||t===_.Keys.end||t===_.Keys.delete||t===_.Keys.backspace))return f.onTagsNavigate(e,a);var s=function(){e.preventDefault(),f.base.togglePopup(a),f.applyState(a)};i?e.altKey&&t===_.Keys.up?s():t===_.Keys.up||t===_.Keys.down?(e.preventDefault(),f.onNavigate(a,t)):t===_.Keys.enter?(e.preventDefault(),f.props.allowCustom&&n&&null===o?f.customItemSelect(e):f.selectFocusedItem(e)):t===_.Keys.esc&&s():e.altKey&&t===_.Keys.down&&s()},f.renderListContainer=function(){var e=f.base,t=f.props,n=t.header,i=t.footer,o=t.allowCustom,a=t.dir,s=f.base.getPopupSettings(),r=void 0!==f.props.opened?f.props.opened:f.state.opened,l=void 0!==f.props.filter?f.props.filter:f.state.text,p=void 0!==f.props.virtual,u=void 0!==s.width?s.width:e.popupWidth,d={onMouseDown:C,dir:void 0!==a?a:e.dirCalculated,onBlur:f.handleBlur,width:u,popupSettings:{className:_.classNames("k-list-container k-reset",s.className),animate:s.animate,anchor:f.element||void 0,show:r,open:f.onPopupOpened,close:f.onPopupClosed}},c=f.getFocusedState().focusedType,h=o&&l&&I.createElement("div",{className:"k-list",key:"customitem",onClick:f.customItemSelect},I.createElement("div",{className:_.classNames("k-item k-custom-item",{"k-state-focused":P(c)})},l,I.createElement("span",{className:"k-icon k-i-plus",style:{float:"right"}})));return I.createElement(v.default,b({},d),p&&n,f.base.renderScrollWrapper(p?[h,f.renderList(),f.base.renderScrollElement()]:[n,h,f.renderList(),i,f.base.renderScrollElement()]),p&&i)},f.renderList=function(){var e=f.props,t=e.data,n=void 0===t?[]:t,i=e.textField,o=e.listNoDataRender,a=e.itemRender,s=e.dataItemKey,r=e.virtual,l=f.base.vs,p=r?r.skip:0,u=void 0!==f.props.opened?f.props.opened:f.state.opened,d=f.getFocusedState().focusedIndex,c=f.base.getPopupSettings(),h="translateY("+l.translate+"px)";return I.createElement(g.default,{id:f.base.listBoxId,show:u,data:n.slice(),focusedIndex:d-p,value:f.value,textField:i,valueField:s,optionPrefix:f.base.optionPrefix,listRef:function(e){return l.list=f.base.list=e},wrapperStyle:l.enabled?{float:"left",width:"100%"}:{maxHeight:c.height},wrapperCssClass:l.enabled?void 0:"k-list-scroller",listStyle:l.enabled?{transform:h}:void 0,key:"listKey",skip:p,onClick:f.handleItemClick,itemRender:a,noDataRender:o})},f.customItemSelect=function(e){var t,n=void 0!==f.props.filter?f.props.filter:f.state.text,i=f.props.textField;if(n){var o=f.base.initState();o.syntheticEvent=e;var a=i?((t={})[i]=n,t):n;void 0!==f.state.text&&(o.data.text=""),o.data.focusedIndex=void 0,f.base.filterChanged("",o);var s=f.value.concat([a]);f.triggerOnChange(s,o),f.base.togglePopup(o),f.applyState(o)}},f.handleWrapperClick=function(e){var t=void 0!==f.props.opened?f.props.opened:f.state.opened,n=f._input;!t&&n&&f.focusElement(n);var i=f.base.initState();i.syntheticEvent=e,f.state.focused||(i.events.push({type:"onFocus"}),i.data.focused=!0),f.base.togglePopup(i),f.applyState(i)},f.handleItemClick=function(e,t){f.base.handleItemClick(e,t),f._valueItemsDuringOnChange=null},f.handleBlur=function(e){if(f.state.focused&&!f._skipFocusEvent){var t=void 0!==f.props.opened?f.props.opened:f.state.opened,n=f.base.initState(),i=f.props,o=i.allowCustom,a=i.filterable;n.syntheticEvent=e,n.data.focused=!1,n.events.push({type:"onBlur"}),t&&(f.state.opened&&(n.data.opened=!1),n.events.push({type:"onClose"})),o||a||!f.state.text||(n.data.text=""),f.applyState(n)}},f.handleFocus=function(e){f._skipFocusEvent||f.base.handleFocus(e)},f.onPopupOpened=function(){f._input&&f.focusElement(f._input)},f.onPopupClosed=function(){f.state.focused&&setTimeout(function(){f.state.focused&&f.focusElement(f._input)},0)},f.setValidity=function(){f._input&&f._input.setCustomValidity&&f._input.setCustomValidity(f.validity.valid?"":f.props.validationMessage||"Please enter a valid value!")},f}return o(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&&0<this.value.length&&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,i=n?n.skip:0,o=e.virtual?e.virtual.total:0,a=void 0!==this.props.opened?this.props.opened:this.state.opened,s=void 0!==e.opened?e.opened:t.opened,r=!s&&a,l=s&&!a;if(!this.base.getPopupSettings().animate&&l&&this.onPopupClosed(),n&&n.total!==o)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var p=this.getFocusedState(),u=p.focusedItem,d=p.focusedIndex,c=void 0!==t.focusedIndex&&t.focusedIndex!==d;r&&n?this.base.scrollToVirtualItem(n,d-i):r&&!n?this.base.scrollToItem(d):a&&s&&u&&c&&this.base.scrollToItem(d-i)}this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.onNavigate=function(e,t){var n=this.props,i=n.allowCustom,o=n.data,a=void 0===o?[]:o,s=void 0!==this.props.opened?this.props.opened:this.state.opened,r=void 0!==this.props.filter?this.props.filter:this.state.text,l=this.getFocusedState(),p=l.focusedType,u=l.focusedIndex,d=i&&r,c=P(p),h=this.base,f=h.vs;if(s&&t===_.Keys.up&&c)void 0!==this.state.focusedIndex&&(e.data.focusedIndex=void 0);else{var v=h.navigation.navigate({keyCode:t,current:u,max:(f.enabled?f.total:a.length)-1,min:d?-1:0});void 0!==v&&this.itemFocus(v,e)}this.applyState(e)},t.prototype.render=function(){var t=this,e=this.props,n=e.style,i=e.className,o=e.label,a=e.dir,s=e.disabled,r=e.tags,l=void 0===r?[]:r,p=e.textField,u=e.dataItemKey,d=e.virtual,c=this.state,h=c.focused,f=c.text,v=c.focusedTag,g=this.base.vs;g.enabled=void 0!==d,void 0!==d&&(g.skip=d.skip,g.total=d.total,g.pageSize=d.pageSize),0===l.length&&this.value.forEach(function(e){l.push({text:S.getItemValue(e,p),data:[e]})}),this.setItems(l,this._tags);var y=!this.validityStyles||this.validity.valid,m=I.createElement("span",{ref:function(e){return t._element=e},className:_.classNames("k-widget k-multiselect k-header",i,{"k-state-focused":h&&!s,"k-state-invalid":!y,"k-state-disabled":s}),style:o?b({},n,{width:void 0}):n,dir:a,onFocus:this.handleFocus,onBlur:this.handleBlur},I.createElement("div",{onClick:this.handleWrapperClick,ref:function(e){return t.base.wrapper=e},className:"k-multiselect-wrap k-floatwrap",onMouseDown:S.preventDefaultNonInputs},I.createElement(x.default,{tagRender:this.props.tagRender,onTagDelete:this.onTagDelete,data:l,guid:this.base.optionPrefix,focused:v?l.find(function(e){return k(e,v,u)}):void 0}),this.renderSearchbar(),this.props.loading&&I.createElement("span",{className:"k-icon k-i-loading"})),this.renderListContainer());return o?I.createElement(_.FloatingLabel,{label:o,value:f||S.getItemValue(this.value[0],p),style:{width:n?n.width:void 0},children:m,valid:y}):m},t.prototype.renderSearchbar=function(){var e=this.state,t=e.activedescendant,n=e.focusedTag,i=this.props,o=i.disabled,a=i.textField,s=i.placeholder,r=(void 0!==this.props.filter?this.props.filter:this.state.text)||"",l=void 0!==this.props.opened?this.props.opened:this.state.opened,p=this.getFocusedState(),u=p.focusedItem,d=p.focusedIndex,c=!!r||0<this.value.length,h=0!==this.value.length||r?void 0:s,f=this.base.optionPrefix+"-"+(t===m.ActiveDescendant.TagsList&&void 0!==n)?S.getItemValue(u,a):d;return I.createElement(y.default,{id:this._inputId,size:Math.max((h||"").length,r.length,1),tabIndex:this.props.tabIndex,placeholder:h,value:r,onChange:this.onChangeHandler,onKeyDown:this.onInputKeyDown,ref:this.searchbarRef,disabled:o,expanded:l,owns:this.base.listBoxId,activedescendant:f,clearButton:c,clearButtonClick:this.clearButtonClick})},t.prototype.onTagsNavigate=function(e,t){var n=e.keyCode,i=this.state.focusedTag,o=this._tags,a=this.props.dataItemKey,s=i?o.findIndex(function(e){return k(e,i,a)}):-1,r=void 0,l=-1!==s;if(n===_.Keys.left)r=o[s=l?Math.max(0,s-1):o.length-1];else if(n===_.Keys.right)s===o.length-1?r=void 0:l&&(r=o[s=Math.min(o.length-1,s+1)]);else if(n===_.Keys.home)r=o[0];else if(n===_.Keys.end)r=o[o.length-1];else if(n===_.Keys.delete){if(l){var p=this.value;S.removeDataItems(p,o[s].data,a),this.triggerOnChange(p,t)}}else if(n===_.Keys.backspace)if(p=this.value,l)S.removeDataItems(p,o[s].data,a),this.triggerOnChange(p,t);else if(!l&&o.length){var u=o.pop();S.removeDataItems(p,u.data,a),this.triggerOnChange(p,t)}r!==i&&(t.data.focusedTag=r),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,i=void 0===n?[]:n,o=t.virtual,a=this.getFocusedState().focusedIndex,s=o?o.skip:0;void 0!==i[a-s]?this.handleItemClick(a,e):this.handleItemClick(s,e)},t.prototype.setItems=function(e,t){t.length=0,t.push.apply(t,e)},t.prototype.getFocusedState=function(){var e=this.state,t=e.focusedIndex,n=e.text,i=this.props,o=i.allowCustom,a=i.data,s=void 0===a?[]:a,r=i.dataItemKey,l=i.virtual,p=l&&l.skip||0;if(void 0!==t)return{focusedIndex:t,focusedItem:s[t-p],focusedType:h.ListItem};var u=this.value;if(o&&n)return{focusedItem:null,focusedIndex:-1,focusedType:h.CustomItem};if(u.length){var d=u[u.length-1],c=s.findIndex(function(e){return S.areSame(e,d,r)});return void 0!==s[c]?{focusedIndex:c+p,focusedItem:s[c],focusedType:h.ListItem}:{focusedType:h.None,focusedIndex:-1}}return 0===p?{focusedItem:s[0],focusedIndex:0,focusedType:h.ListItem}:{focusedType:h.None,focusedIndex:-1}},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),setTimeout(function(){return t._skipFocusEvent=!1},30)},t.prototype.applyState=function(e){this.base.applyState(e),this._valueItemsDuringOnChange=null},t.propTypes=b({},r.default.propTypes,{value:s.arrayOf(s.any),defaultValue:s.arrayOf(s.any),dataItemKey:s.string,placeholder:s.string,tags:s.arrayOf(s.shape({text:s.string,data:s.arrayOf(s.any)})),tagRender:s.func}),t.defaultProps=b({},r.default.defaultProps,{required:!1}),t}(I.Component);t.default=l},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=function(e){return e.preventDefault()},r=function(e){return e.stopPropagation()},l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var n=this;return a.createElement("ul",{className:"k-reset",role:"listbox"},this.props.data.map(function(t){var e=a.createElement("li",{className:t===n.props.focused?"k-button k-state-focused":"k-button",key:t.text,id:n.props.guid+"-"+t.text,onMouseDown:s,onClick:r},a.createElement("span",null,t.text),a.createElement("span",{"aria-label":"delete",className:"k-select",onClick:function(e){return n.props.onTagDelete.call(void 0,t.data,e)}},a.createElement("span",{className:"k-icon k-i-close"})));return n.props.tagRender?n.props.tagRender(t,e):e}))},t}(a.Component);t.default=l},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),(i=t.ActiveDescendant||(t.ActiveDescendant={}))[i.PopupList=0]="PopupList",i[i.TagsList=1]="TagsList"}])}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-dropdowns",
3
- "version": "2.7.0-dev.201902260733",
3
+ "version": "2.7.1",
4
4
  "description": "KendoReact Dropdowns package",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,18 +22,18 @@
22
22
  "React"
23
23
  ],
24
24
  "peerDependencies": {
25
- "@progress/kendo-react-intl": "^2.0.0",
26
- "react": "^16.0.0",
27
- "react-dom": "^16.0.0"
25
+ "@progress/kendo-react-intl": "^2.7.0",
26
+ "react": "^16.8.2",
27
+ "react-dom": "^16.8.2"
28
28
  },
29
29
  "dependencies": {
30
- "@progress/kendo-react-common": "2.7.0-dev.201902260733",
31
- "@progress/kendo-react-popup": "2.7.0-dev.201902260733",
30
+ "@progress/kendo-react-common": "2.7.1",
31
+ "@progress/kendo-react-popup": "2.7.1",
32
32
  "prop-types": "^15.6.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@progress/kendo-data-query": "^1.0.0",
36
- "@progress/kendo-react-intl": "2.7.0-dev.201902260733"
36
+ "@progress/kendo-react-intl": "2.7.1"
37
37
  },
38
38
  "@progress": {
39
39
  "friendlyName": "Dropdowns",