New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@progress/kendo-react-dropdowns

Package Overview
Dependencies
Maintainers
1
Versions
1259
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-react-dropdowns - npm Package Compare versions

Comparing version 1.0.1-dev.201805290749 to 1.0.1-dev.201805291556

2

dist/systemjs/kendo-react-dropdowns.js

@@ -1,1 +0,1 @@

System.register("@progress/kendo-react-dropdowns",["prop-types","react","@progress/kendo-react-common","@progress/kendo-react-intl","@progress/kendo-react-popup","react-dom"],function(s){var n,o,i,a,r,l;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){o=t(e)},function(e){i=t(e)},function(e){a=t(e)},function(e){r=t(e)},function(e){l=t(e)}],execute:function(){!function(n){var o={};function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=n,i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=25)}([function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return null!=e};t.isPresent=i;var s=function(e,t,n){if(void 0===n&&(n=!1),i(e))return n?t&&i(e[t])?e[t]:e:t?e[t]:e};t.getter=s,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(!i(e))return!1;var o=String(e);return n&&(o=o.toLowerCase()),0===o.indexOf(t)};var o=["string","number","undefined"],r=function(e){var t=typeof e;return-1!==o.indexOf(t)};t.isPrimitive=r,t.scrollToItem=function(e,t,n,o,i){var a=e.offsetHeight,s=t*n+(i?o-e.scrollTop:0);if(i){var r=0;a<s+t?r=s+t-a:s<0&&(r=s),0!==r?e.scrollTop+=r:0===e.scrollTop&&0!==o&&(e.scrollTop=o)}else s+t>a+e.scrollTop?e.scrollTop=s+t-a:s<e.scrollTop&&(e.scrollTop-=e.scrollTop-s)},t.itemIndexStartsWith=function(e,t,n){var o=-1;if(e){e=e.toLowerCase();for(var i=0;i<t.length;i++){var a=(s(t[i],n,r(t[i]))||"")+"";if(a&&a.toLowerCase().startsWith(e)){o=i;break}}}return o},t.getItemIndex=function(e,t){var n=e.valueField;return(e.data||[]).findIndex(function(e){return e===t||s(e,n)===t})},t.getItemIndexByText=function(e,t,n,o){var i=function(e){return o?e:e.toLowerCase()};return e.findIndex(function(e){return r(e)?i(t)===i(e.toString()):i(a(e,n))===i(t)})};var a=function(e,t){return r(e)?e:s(e,t)};t.getItemText=a;var l=function(e,t){return t?s(e,t):e};t.getItemValue=l,t.getText=function(e,t){if(!e.data)return null;if(-1===t)return a(e.defaultItem,e.textField);var n=e.data[t];return a(n,e.textField)},t.getValue=function(e,t){if(-1===t)return l(e.defaultItem,e.valueField);if(e.data){var n=e.data[t];return l(n,e.valueField)}}},function(e,t){e.exports=i},function(e,t){e.exports=n},function(e,t,n){"use strict";var a=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 o=n(0),i=n(11),s=n(3),r=n(10),l=n(17),p=n(1),u=n(2),d=function(){function e(e){var d=this;this.valueDuringOnChange=void 0,this.previousValue=void 0,this.indexDuringOnChange=void 0,this.valueNotInData=!1,this.text="",this.lastTextSelected="",this.selectedItemChanged=!1,this.initiallyShown=!1,this.vs=new r.default,this.navigation=new l.Navigation,this.handleKeyDown=function(e){var t=d.component.props,n=t.filterable,o=t.disabled,i=e.keyCode;o||(!n||37!==i&&39!==i&&32!==i&&16!==i&&36!==i&&35!==i)&&d.component.onNavigate(e)},this.handleWrapperClick=function(e){var t=d.initState();d.component.togglePopup(t),t.syntheticEvent=e,d.applyState(t)},this.handleItemClick=function(e,t){var n=d.initState();d.component.handleItemSelect(e,n),d.component.togglePopup(n),n.syntheticEvent=t,d.applyState(n)},this.handleFocus=function(e){if(!d.component.state.isFocused){var t=d.initState();t.data.isFocused=!0,t.events.push({type:"onFocus"}),t.syntheticEvent=e,d.applyState(t)}},this.filterChanged=function(e,t){var n=d.component.props.textField;t.data.filterText=e,t.events.push({type:"onFilterChange",filter:{field:n,operator:"contains",ignoreCase:!0,value:e}})},this.togglePopup=function(e){e.data.isFocused=!0,e.data.opened=!d.component.state.opened,d.component.state.opened?e.events.push({type:"onClose"}):e.events.push({type:"onOpen"})},this.pageChange=function(e,t){if(d.component.props.virtual){var n=d.initState();n.events.push({type:"onPageChange",page:{skip:e.skip,take:e.take}}),n.syntheticEvent=t,d.applyState(n)}},this.handleItemSelect=function(e,t){var n=e-(d.component.state.skip||0),o=d.component.props,i=o.data||[],a=void 0!==o.value;if(p.isPresent(e))if(0<=n&&n<i.length||-1===n&&o.defaultItem){var s=p.getValue(o,n),r=p.getText(o,n),l=d.value;a?(d.valueDuringOnChange=s,d.indexDuringOnChange=e):(d.value=s,d.index=e,d.text=r,t.data.selectedIndex=e),s!==l&&(t.events.push({type:"onChange"}),d.selectedItemChanged=!0)}else void 0!==o.virtual&&(d.vs.handleVirtualItemSelect(t,d.component.state,d.vs.container,e),d.valueNotInData=!0,a?d.indexDuringOnChange=e:(d.index=e,t.data.selectedIndex=e),d.selectedItemChanged=!0)},this.renderScrollWrapper=function(e){var t=d.getPopupSettings(),n=d.vs;return n.enabled?o.createElement("div",{onScroll:n.scrollHandler,ref:n.scrollerRef,style:{height:t.height,overflowY:"scroll"}},e):e},this.renderScrollElement=function(){var t=d.vs;return t.enabled&&o.createElement("div",{ref:function(e){t.scrollElement=e},key:"scrollElementKey"})},this.listBoxId=u.guid(),this.optionPrefix=u.guid(),this.component=e,this.vs.initVirtualization(e.props.virtual,void 0),this.vs.PageChange=this.pageChange,this.initiallyShown=!0===e.props.opened}return Object.defineProperty(e.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:this._value},set:function(e){this._value=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return void 0!==this.indexDuringOnChange?this.indexDuringOnChange:this._index},set:function(e){this._index=e},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){var t=this.initState(),n=e.filterable&&void 0!==e.filter&&e.filter!==this.component.props.filter;void 0!==e.opened&&(t.data.opened=e.opened),!e.filterable&&this.component.state.filterText?t.data.filterText="":n&&(t.data.filterText=e.filter),this.vs.updateVirtualization(e.virtual,this.component.props.virtual,t);var o=void 0!==e.value,i=o&&e.value!==this.component.props.value;if(this.selectedItemChanged||i){if(this.valueNotInData&&!o){var a=this.index-(t.data.skip||0);this.value=p.getValue(e,a),this.text=p.getText(e,a)}else i&&this.updateSelectedItem(e,t);this.lastValueSelected=this.value,this.lastTextSelected=this.text}o&&(this.previousValue=e.value),this.selectedItemChanged=!1,this.valueNotInData=!1,this.applyState(t)},e.prototype.componentWillUpdate=function(e,t){t.opened&&this.component.state.opened&&-1!==t.selectedIndex&&this.component.state.selectedIndex!==t.selectedIndex&&this.scrollToSelectedItem(t),void 0!==e.value&&void 0===this.value&&(this.value=e.value)},e.prototype.componentDidUpdate=function(e){var t=this;if(this.component.state.opened&&!e.opened){var n=this.vs.container;n?this.vs.updateListScroll(this.component.state,n,function(){0<=p.getItemIndex(t.component.props,t.value)&&t.scrollToSelectedItem(t.component.state)}):this.scrollToSelectedItem(this.component.state)}},e.prototype.componentDidMount=function(){this.component.element&&(this.dirCalculated=window.getComputedStyle(this.component.element).direction||void 0),this.initiallyShown&&(this.initiallyShown=!1,this.calculatePopupWidth(),this.component.setState({opened:this.component.props.opened}))},e.prototype.componentWillUnmount=function(){var e=this.vs;delete e.container,delete e.list},e.prototype.scrollToSelectedItem=function(e){var t=(e.selectedIndex||0)-(e.skip||0);this.scrollToItem(t)},e.prototype.scrollToItem=function(e){var t=this.list||this.vs.list,n=t?t.children[0]:void 0;if(n&&0<=e){var o=this.vs,i=o.container||t.parentNode;p.scrollToItem(i,n.offsetHeight,e,o.translate,o.enabled)}},e.prototype.initState=function(){return{data:{},events:[],syntheticEvent:void 0}},e.prototype.applyState=function(e){var o=this,i={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=o.component.props[t];n&&n.call(void 0,a({},i,e))}),-1!==e.events.findIndex(function(e){return"onChange"===e.type})&&(this.previousValue=this.value),this.indexDuringOnChange=void 0,this.valueDuringOnChange=void 0},e.prototype.calculatePopupWidth=function(){var e=this.getPopupSettings().width,t=i.findDOMNode(this.wrapper);this.popupWidth=void 0!==e?e:t&&t.offsetWidth+"px"},e.prototype.updateSelectedItem=function(e,t){var n=void 0!==e.value?e.value:this.value,o=p.getItemIndex(e,n),i=p.getText(e,o),a=e.defaultItem?p.getItemValue(e.defaultItem,e.valueField):void 0;p.isPresent(n)&&-1===o&&void 0===a||(-1===o&&void 0!==a&&(n=a,i=p.getItemText(e.defaultItem,this.component.props.textField)),o=-1!==o?o+(t.data.skip||0):o,this.text=i,this.component.setValueSelection&&this.component.setValueSelection(n,i,o,t))},e.prototype.getPopupSettings=function(){return Object.assign({},e.defaultProps.popupSettings,this.component.props.popupSettings)},e.basicPropTypes={opened:s.bool,disabled:s.bool,dir:s.string,tabIndex:s.number,data:s.array,textField:s.string,className:s.string,label:s.string,loading:s.bool,popupSettings:s.shape({animate:s.bool,width:s.string,height:s.string}),onOpen:s.func,onClose:s.func,onFocus:s.func,onBlur:s.func,onChange:s.func,itemRender:s.func,listNoDataRender:s.func,header:s.node,footer:s.node},e.propTypes=a({},e.basicPropTypes,{value:s.any,defaultValue:s.any,filterable:s.bool,valueField:s.string,virtual:s.shape({pageSize:s.number.isRequired,skip:s.number.isRequired,total:s.number.isRequired}),onFilterChange:s.func,onPageChange:s.func}),e.defaultProps={tabIndex:0,popupSettings:{animate:!0,height:"200px"}},e}();t.default=d},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=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 h=n(0),f=n(18),v=n(1),d=n(6),a=n(5),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.renderItems=function(){var i=this,e=this.props,a=e.textField,s=e.valueField,r=e.value,l=e.optionPrefix,d=e.skip,p=e.focusedIndex,u=e.highlightSelected,c=e.itemRender;return this.props.data.map(function(e,t){var n=v.getter(e,s),o=(d||0)+t;return h.createElement(f.default,{id:l+"-"+o,dataItem:e,selected:u&&n===r,focused:p===t,index:o,key:o,onClick:i.props.onClick,textField:a,renderer:c})})},t.prototype.renderNoValueElement=function(e){var t=this.props.noDataRender,n=h.createElement("div",{className:"k-nodata"},h.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=d.provideLocalizationService(this),t=this.props,n=t.id,o=t.show,i=t.wrapperCssClass,a=t.wrapperStyle,s=t.listStyle,r=t.listRef,l=this.renderItems();return l.length?h.createElement("div",{className:i,style:a,ref:function(e){return e&&e.setAttribute("unselectable","on")}},h.createElement("ul",{id:n,role:"listbox","aria-hidden":!o||void 0,className:"k-list k-reset",ref:r,style:s},l)):this.renderNoValueElement(e)},t.defaultProps={highlightSelected:!0},t}(h.Component);t.default=s,d.registerForLocalization(s)},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 l=n(0),d=n(21),a=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,a=e.dir,s=e.popupSettings;return l.createElement(d.Popup,r({style:{width:i,direction:a}},s),l.createElement("div",{onMouseDown:n,onBlur:o},t))},t}(l.Component);t.default=a},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 x=n(0),i=n(3),a=n(4),f=n(14),b=n(7),p=n(8),w=n(1),s=function(){function e(e){var s=this;this._lastMousedown=0,this.handleItemSelect=function(e,t){if(s.dropdown.handleItemSelect(e,t),s.dropdown.selectedItemChanged){var n=s.dropdown.component;n.state.typedText&&(t.data.typedText=""),n.state.filterText&&(t.data.filterText=""),n.state.suggestedText&&(n.state.suggestedText="")}},this.setValueSelection=function(e,t,n,o){void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0);var i=s.dropdown.component;i.props.filterable||t===i.state.text||(o.data.text=t),o.data.selectedIndex!==i.state.selectedIndex&&(o.data.selectedIndex=n,o.data.focusedIndex=-1!==n?n:void 0),s.dropdown.value=e},this.onInputKeyDown=function(e){var t=s.dropdown.component,n=e.keyCode,o=function(){t.state.opened&&e.preventDefault()};if(13===n||27===n){o();var i=e.currentTarget.value,a=s.dropdown.initState();a.syntheticEvent=e,t.applyInputValue(i,a,e.keyCode)}else 38!==n&&40!==n||(o(),s.dropdown.handleKeyDown(e))},this.onChangeHandler=function(e){var t=s.dropdown.component,n=s.dropdown.initState(),o=e.currentTarget.value,i=void 0!==t.props.value;if(n.syntheticEvent=e,!o)return s.clearValue(n,!1),s.dropdown.applyState(n);t.state.opened||(n.data.opened=!0),n.data.typedText=o,i||(n.data.selectedIndex=-1,s.dropdown.index=-1),t.props.filterable&&s.dropdown.filterChanged(o,n),t.state.opened===n.data.opened&&n.events.push({type:n.data.opened?"onOpen":"onClose"}),s.suggestValue(o,n),s.dropdown.applyState(n)},this.handleBlur=function(e){var t=s.dropdown.component;if(t.state.isFocused){if((new Date).getTime()-s._lastMousedown<500)return s._lastMousedown=0,e.currentTarget.focus();var n=s.dropdown.initState();n.data.isFocused=!1,n.events.push({type:"onBlur"}),n.syntheticEvent=e,t.applyInputValue(e.currentTarget.value,n)}},this.handleFocus=function(e){s.dropdown.handleFocus(e)},this.clearButtonClick=function(e){var t=s.dropdown.component,n=s.dropdown.initState();n.syntheticEvent=e,s.clearValue(n),t.state.opened&&s.dropdown.togglePopup(n),s.dropdown.applyState(n)},this.togglePopup=function(e){s.dropdown.togglePopup(e)},this.dropdown=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this.dropdown.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.dropdown.index},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){this.dropdown.componentWillReceiveProps(e)},e.prototype.componentWillUpdate=function(e,t){this.dropdown.componentWillUpdate(e,t);var n=this.dropdown.component;!n.state.opened&&t.opened&&this.dropdown.calculatePopupWidth();var o=void 0!==t.selectedIndex&&n.state.selectedIndex!==t.selectedIndex,i=n.state.typedText,a=t.typedText,s=void 0!==a&&a!==i||!a&&i&&void 0===this.dropdown.lastValueSelected;if(o){var r=(e.data||[])[(t.selectedIndex||0)-(t.skip||0)];this.dropdown.value=w.getItemValue(r,e.valueField),this.dropdown.text=w.getItemText(r,e.textField),this.dropdown.index=t.selectedIndex||0}else s&&(this.dropdown.lastTextSelected="",this.dropdown.lastValueSelected=void 0,null!==this.dropdown.value&&""!==this.dropdown.value&&(this.dropdown.value=void 0),this.dropdown.index=-1,this.dropdown.text="")},e.prototype.componentDidUpdate=function(e){var t=this.dropdown;t.componentDidUpdate(e);var n=t.component,o=n.state,i=o.typedText,a=o.opened,s=o.focusedIndex;if(a&&(i!==e.typedText||e.focusedIndex!==s)){var r=this.getFocusedIndex(i);-1!==r&&t.scrollToItem(r-(n.state.skip||0))}},e.prototype.componentDidMount=function(){this.dropdown.componentDidMount()},e.prototype.componentWillUnmount=function(){this.dropdown.componentWillUnmount()},e.prototype.onNavigate=function(e){var t=this.dropdown.component,n=t.props,o=n.data,i=void 0===o?[]:o,a=n.filterable,s=n.textField,r=this.dropdown.initState(),l=this.dropdown.vs,d=w.getItemIndex(t.props,t.value),p=t.state.typedText,u=l.skip+d;if(u<0&&p&&(38===e.keyCode||40===e.keyCode)){var c=w.itemIndexStartsWith(p,i,s);0<=c&&(u=38===e.keyCode?c+1:c-1)}this.dropdown.navigation.navigate({opened:t.state.opened,event:e,state:r,currentIndex:u,max:(l.enabled?l.total:i.length)-1,min:0,leftRightKeysNavigation:a,togglePopup:t.togglePopup,handleItemSelect:this.handleItemSelect}),r.syntheticEvent=e,this.dropdown.applyState(r)},e.prototype.valueToRender=function(e,t){var n=this.dropdown.component,o=e||n.state,i=o.typedText,a=void 0===i?"":i,s=o.filterText,r=void 0===s?"":s,l=o.selectedIndex,d=t||n.props,p=d.value,u=d.filterable,c=d.textField,h=d.valueField,f=d.data,v=void 0===f?[]:f,g=void 0!==p,m=this.dropdown.text||"",y=g?p:this.dropdown.value;if(u&&r)return{value:null,text:r};if(!(!a&&-1!==l)){var x=w.getItemIndexByText(v,a,c);return-1===x?{value:null,text:a}:{value:w.getItemValue(v[x],h),text:a}}return{value:y,text:m}},e.prototype.getFocusedIndex=function(e){var t=this.dropdown.component,n=t.state,o=n.opened,i=n.skip,a=n.focusedIndex,s=t.props,r=s.textField,l=s.data,d=void 0===l?[]:l;return o?void 0!==a?a:e?w.itemIndexStartsWith(e,d,r):0===i?0:-1:-1},e.prototype.applyValueOnEnter=function(e,t){var n=this.dropdown,o=n.component,i=o.state.suggestedText,a=void 0===i?"":i,s=o.props,r=s.data,l=void 0===r?[]:r,d=s.textField,p=s.valueField,u=s.suggest,c=s.allowCustom,h=w.getItemIndexByText(l,e,d),f=-1!==h,v=void 0,g="";if(u&&a)g=v=a,t.data.typedText=a;else if(f)v=w.getItemValue(l[h],p),g=w.getItemText(l[h],d);else{if(!c)return this.selectFocusedItem(e,t);g=v=e}n.previousValue!==v&&t.events.push({type:"onChange"}),this.closePopup(t),n.value=v,n.text=g,n.applyState(t)},e.prototype.closePopup=function(e){this.dropdown.component.state.opened&&(e.data.opened=!1,e.events.push({type:"onClose"}))},e.prototype.applyValueOnRejectSuggestions=function(e,t){var n=this.dropdown,o=n.component,i=o.props,a=i.data,s=void 0===a?[]:a,r=i.textField,l=i.valueField,d=i.allowCustom,p=w.getItemIndexByText(s,e,r,!0),u=-1!==p,c=void 0,h="";if(o.state.suggestedText&&(t.data.suggestedText=void 0),u||d||!e||e!==n.lastTextSelected){if(!u&&!d&&e===o.state.typedText)return this.clearValue(t),this.closePopup(t),n.applyState(t);if(u)c=w.getItemValue(s[p],l),h=e;else{if(!d)return this.selectFocusedItem(e,t);c=e||void 0,h=e}}else c=n.lastValueSelected,h=n.lastTextSelected;n.previousValue!==c&&(t.events.push({type:"onChange"}),n.value=c),n.text=h,this.closePopup(t),n.applyState(t)},e.prototype.selectFocusedItem=function(e,t){var n=this.dropdown,o=n.component,i=o.state,a=i.skip,s=void 0===a?0:a,r=i.opened,l=o.props,d=l.filterable,p=l.data,u=void 0===p?[]:p,c=l.textField,h=w.itemIndexStartsWith(e,u,c);return-1!==h&&this.handleItemSelect(h+s,t),r&&(t.data.opened=!1,t.events.push({type:"onClose"})),o.state.typedText&&(t.data.typedText=""),d&&(t.data.filterText=n.text),n.applyState(t)},e.prototype.applyInputValue=function(e,t,n){return 13===n?this.applyValueOnEnter(e,t):this.applyValueOnRejectSuggestions(e,t)},e.prototype.clearValue=function(e,t){void 0===t&&(t=!0);var n=this.dropdown.component,o=void 0!==n.props.value,i=this.dropdown.previousValue;t&&o?(this.dropdown.valueDuringOnChange=null,this.dropdown.indexDuringOnChange=-1):(this.dropdown.value=null,this.dropdown.index=-1,this.dropdown.text="",e.data.selectedIndex=-1),e.data.typedText="",void 0!==n.state.focusedIndex&&(e.data.focusedIndex=void 0),void 0!==n.state.suggestedText&&(e.data.suggestedText=void 0),t&&null!=i&&(e.events.push({type:"onChange"}),this.dropdown.selectedItemChanged=!0),n.props.filterable&&(this.dropdown.filterChanged("",e),this.dropdown.vs.reset())},e.prototype.suggestValue=function(e,t){var n=this.dropdown.component;if(void 0!==n.state.suggestedText&&(t.data.suggestedText=void 0),n.props.suggest&&e){var o=n.props.data||[],i=n.props.textField,a=o[w.itemIndexStartsWith(e,o,i)];a&&(t.data.suggestedText=w.getItemText(a,i))}},e.prototype.renderListContainer=function(){var e=this,t=this.dropdown,n=t.component,o=t.vs,i=n.props,a=i.dir,s=i.header,r=i.footer,l=n.state.opened,d=t.getPopupSettings();return x.createElement(p.default,{onMouseDown:function(){e._lastMousedown=(new Date).getTime()},width:t.popupWidth,popupSettings:{animate:d.animate,anchor:n.element||void 0,show:l,open:function(){o.hidden=!1},className:"k-list-container k-reset",close:function(){o.hidden=!0}},dir:void 0!==a?a:t.dirCalculated},s,t.renderScrollWrapper([this.renderList(),t.renderScrollElement()]),r)},e.prototype.renderSearchBar=function(e,t,n){var o=this.dropdown.component,i=o.props,a=i.placeholder,s=i.tabIndex,r=i.disabled,l=o.state,d=l.suggestedText,p=l.isFocused,u=l.opened,c=l.selectedIndex,h=void 0===c?0:c;return x.createElement(f.default,{id:n,placeholder:a,tabIndex:s||void 0,value:t,suggestedText:d,focused:p,onKeyDown:this.onInputKeyDown,onChange:this.onChangeHandler,onFocus:this.handleFocus,onBlur:this.handleBlur,disabled:r,expanded:u,owns:this.dropdown.listBoxId,activedescendant:this.dropdown.optionPrefix+"-"+h,clearButton:e,clearButtonClick:this.clearButtonClick})},e.prototype.renderList=function(){var e,t=this.dropdown,n=t.component,o=n.props,i=o.textField,a=o.valueField,s=o.listNoDataRender,r=o.itemRender,l=t.getPopupSettings(),d=t.vs,p=n.state,u=p.opened,c=p.skip,h=void 0===c?0:c,f="translateY("+d.translate+"px)",v=this.valueToRender(),g=v.value,m=v.text,y=(n.props.data||[]).slice();return u&&(e=this.getFocusedIndex(m)-h),x.createElement(b.default,{id:t.listBoxId,show:u,data:y,focusedIndex:e,value:g,textField:i,valueField:a,optionPrefix:t.optionPrefix,listRef:function(e){d.enabled&&(d.list=e),t.list=e},wrapperStyle:d.enabled?{float:"left",width:"100%"}:{maxHeight:l.height},wrapperCssClass:d.enabled?void 0:"k-list-scroller",listStyle:d.enabled?{transform:f}:void 0,key:1,skip:h,onClick:this.dropdown.handleItemClick,itemRender:r,noDataRender:s})},e.propTypes=o({},a.default.propTypes,{suggest:i.bool,placeholder:i.string}),e.defaultProps=o({},a.default.defaultProps),e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(e,t,n){e.events.push({type:"onPageChange",page:{skip:t,take:n}})},o=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.hidden=!1,this.prevScrollPos=0,this.listTranslate=0,this.scrollSyncing=!1,this.scrollerRef=function(e){if(e){var t=n;(t.container=e).setAttribute("unselectable","on"),setTimeout(t.calculateScrollSizes.bind(t),0)}},this.calculateScrollSizes=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(e=n.scrollElement&&n.scrollElement.style.height!==t+"px")&&(n.scrollElement.style.height=t+"px"),n.scrollSyncing=!1,e},this.scrollHandler=this.scrollHandler.bind(this)}return e.prototype.initVirtualization=function(e,t){this.enabled=void 0!==e,void 0!==e&&(this.skip=e.skip,this.pageSize=e.pageSize,this.total=e.total,void 0!==t&&(t.data.skip=e.skip))},e.prototype.updateVirtualization=function(e,t,n){if(void 0===e||void 0===t||t.total===e.total&&0!==e.skip)this.initVirtualization(e,n);else{var o=Object.assign({},e,{skip:0});this.initVirtualization(o,n),this.calculateScrollSizes()&&this.reset()}},e.prototype.handleVirtualItemSelect=function(t,e,n,o){var i=e.skip||0,a=e.selectedIndex||0,s=e.opened&&n,r=this,l=r.pageSize,d=o-i;if(s&&0===o)c(t,0,l),r.reset();else if(s&&o===r.total-1)c(t,r.total-r.pageSize,l),r.scrollToEnd();else if(s){var p=r.PageChange;r.PageChange=function(e){c(t,e.skip,e.take)},(a<o?r.localScrollDown:r.localScrollUp).call(r,e.syntheticEvent),r.PageChange=p}else if(s||0!==o)if(s||o!==r.total-1){if(!s){var u=Math.max(0,i+(d<0?-1:1));c(t,u,l)}}else c(t,r.total-r.pageSize,l);else c(t,0,l);e.opened||r.reset()},e.prototype.updateListScroll=function(e,t,n){var o=t.scrollTop,i=this,a=i.translate,s=i.hidden,r=e.skip||0;if(o!==a||0===a&&0===o&&0<r){var l=function(){i.enabled=!1;var e=0<a?a:i.itemHeight*r;t.scrollTop=e,i.translateTo(a||e),i.enabled=!0,n()};0===i.itemHeight||s?setTimeout(l,0):l()}},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.scrollSyncing=!0,this.container&&(this.container.scrollTop=0),this.translateTo(0),this.scrollSyncing=!1},e.prototype.maxScroll=function(){return this.container.scrollHeight-this.container.offsetHeight},e.prototype.scrollToEnd=function(){if(this.container){var e=this.maxScroll();this.translateTo(e),this.container.scrollTop=e}},e.prototype.localScrollUp=function(e){var t,n=this.itemHeight,o=this.container.scrollTop,i=this.listTranslate,a=o-i;if(!(0<a)){for(t=0;t<this.skip&&!(i+n+a<=o);t++)i-=n;if(i=this.validateTranslate(i),this.skip-t<=0&&o<i)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,a=this.list.children.length;for(t=0;t<a&&!(o<i+n);t++)i+=n;i=this.validateTranslate(i),a<=t&&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){if(this.enabled&&this.list&&!this.hidden&&!this.scrollSyncing){var t=this.container.scrollTop,n=this.prevScrollPos;(this.prevScrollPos=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=o},function(e,t){e.exports=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 m=n(0),y=n(6),x=n(5),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.valueChanged=!1,e.deleting=!1,e}return i(e,t),e.prototype.componentWillUpdate=function(e,t){var n=this.props,o=n.value,i=n.suggestedText,a=e.value,s=e.suggestedText;this.valueChanged=o!==a||s!==i,this.deleting=this.valueChanged&&o.startsWith(a)&&!(i&&s&&i.endsWith(s))},e.prototype.componentDidUpdate=function(){var e=this.props,t=e.value,n=e.suggestedText,o=this.input;n&&this.valueChanged&&!this.deleting&&o&&o.setSelectionRange(t.length-n.length,t.length)},e.prototype.render=function(){var t=this,e=this.props,n=e.id,o=e.placeholder,i=e.tabIndex,a=e.value,s=e.onKeyDown,r=e.onChange,l=e.onFocus,d=e.onBlur,p=e.disabled,u=e.readOnly,c=e.expanded,h=e.owns,f=e.activedescendant,v=e.clearButton,g=e.clearButtonClick;return[m.createElement("span",{className:"k-searchbar",key:"searchbar"},m.createElement("input",{autoComplete:"off",id:n,type:"text",placeholder:o,className:"k-input",tabIndex:i,role:"listbox",value:a,onChange:r,ref:function(e){t.input=e},onKeyDown:s,onFocus:l,onBlur:d,"aria-disabled":p||void 0,disabled:p||void 0,readOnly:u||void 0,"aria-haspopup":!0,"aria-expanded":c||!1,"aria-owns":h,"aria-activedescendant":f})),v&&m.createElement("span",{className:"k-icon k-clear-value k-i-close",role:"button",onClick:g,onMouseDown:function(e){e.preventDefault()},tabIndex:-1,title:y.provideLocalizationService(this).toLanguageString(x.clear,x.messages[x.clear]),key:"clearbutton"})]},e}(m.Component);t.default=a,y.registerForLocalization(a)},function(e,t,n){"use strict";var o,a=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)}),h=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 v=n(0),s=n(3),g=n(12),l=n(8),c=n(7),r=n(4),d=n(9),m=n(1),f=n(2),i=function(i){function e(e){var v=i.call(this,e)||this;v._suggested="",v.handleItemSelect=function(e,t){var n=m.getText(v.props,e),o=v.value;v.setValue(n),n!==o&&t.events.push({type:"onChange"})},v.itemFocus=function(e,t){t.data.focusedIndex=e},v.togglePopup=function(e){v.combobox.togglePopup(e)},v.onChangeHandler=function(e){var t=v.combobox.dropdown,n=t.initState(),o=e.currentTarget,i=o.value,a=o.selectionEnd===i.length;n.syntheticEvent=e;var s=v._suggested,r=v.value,l=r&&r.substring(0,r.length-s.length),d=l&&l===i,p=l&&l.length>i.length,u=v.props.suggest;if(void 0!==u&&!1!==u){d||p||!a?v._suggested="":v.suggestValue(i);var c=i+v._suggested;v.setValue(c);var h={userInput:i,value:v._suggested};n.events.push({type:"onChange",suggestion:h})}else v._suggested="",v.setValue(i),n.events.push({type:"onChange"});!v.state.opened&&i?(n.data.opened=!0,n.events.push({type:"onOpen"})):v.state.opened&&!i&&(n.data.opened=!1,n.events.push({type:"onClose"}));var f=v.getFocusedIndex(i);v.state.focusedIndex!==f&&(n.data.focusedIndex=f),v.forceUpdateIfNeeded(n),t.applyState(n)},v.clearButtonClick=function(e){var t=v.combobox.dropdown,n=t.initState();n.syntheticEvent=e;var o=v.value;v._suggested="",v.setValue(""),0!==v.state.focusedIndex&&(n.data.focusedIndex=0),""!==o&&n.events.push({type:"onChange"}),v.state.opened&&(n.data.opened=!1,n.events.push({type:"onClose"})),v.forceUpdateIfNeeded(n),t.applyState(n)};var t=e.opened,n=(void 0!==e.value?e.value:e.defaultValue)||"";v.state={isFocused:t,focusedIndex:t?v.getFocusedIndex(n):void 0,opened:t};var o=new r.default(v);return v.combobox=new d.default(o),o.value=n,v._inputId=f.guid(),v}return a(e,i),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.combobox.value},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){var t=this.combobox.dropdown,n=t.initState(),o=e.value,i=void 0!==o;void 0!==e.opened&&(n.data.opened=e.opened),i&&(t.value=o),n.data.focusedIndex=this.getFocusedIndex(o,e.data),e.suggest&&("string"==typeof e.suggest?this._suggested=e.suggest:this.suggestValue(t.value)),t.applyState(n)},e.prototype.componentWillUpdate=function(e,t){!this.state.opened&&t.opened&&this.combobox.dropdown.calculatePopupWidth()},e.prototype.componentDidUpdate=function(e,t){var n=this.state,o=n.opened,i=n.focusedIndex,a=!t.opened&&o,s=void 0!==i&&t.focusedIndex!==i;(o&&s||a)&&this.combobox.dropdown.scrollToItem(i)},e.prototype.componentDidMount=function(){this.combobox.componentDidMount()},e.prototype.onNavigate=function(e){var t=38===e.keyCode||40===e.keyCode,n=this.state,o=n.opened,i=n.focusedIndex,a=this.value;if(t&&(!t||!e.altKey&&o)){var s=this.combobox.dropdown,r=this.props.data,l=void 0===r?[]:r,d=s.initState(),p=void 0!==i?i:this.getFocusedIndex(a);s.navigation.navigate({opened:o,event:e,state:d,currentIndex:p,max:l.length-1,min:0,leftRightKeysNavigation:!1,togglePopup:this.togglePopup,handleItemSelect:this.itemFocus}),d.syntheticEvent=e,s.applyState(d)}},e.prototype.render=function(){var t=this,e=this.props,n=e.dir,o=e.disabled,i=e.label,a=e.className,s=e.style,r=e.loading,l=this.state.isFocused,d=this.value,p=!r&&!!d,u=this.combobox.dropdown,c=v.createElement("span",{className:f.classNames("k-widget k-autocomplete k-header",a,{"k-state-disabled":o,"k-state-focused":l&&!o}),ref:function(e){t._element=e,u.wrapper=e},style:i?h({},s,{width:void 0}):s,dir:n},this.renderSearchBar(p,d),r&&v.createElement("span",{className:"k-icon k-i-loading"}),this.renderListContainer());return i?v.createElement(f.FloatingLabel,{label:i,value:d,style:{width:s?s.width:void 0},id:this._inputId,children:c}):c},e.prototype.applyInputValue=function(e,t,n){var o=this.state.opened,i=void 0!==this.state.focusedIndex?this.state.focusedIndex:this.getFocusedIndex(e);if(this._suggested="",o&&13===n){var a=m.getText(this.props,i);this.setValue(a),e!==a&&t.events.push({type:"onChange"})}this.state.focusedIndex!==i&&(t.data.focusedIndex=i),o&&(t.data.opened=!1,t.events.push({type:"onClose"})),this.forceUpdateIfNeeded(t),this.combobox.dropdown.applyState(t)},e.prototype.getFocusedIndex=function(e,t){if(!e)return 0;var n=this.props.textField;t=t||this.props.data||[];var o=m.getItemIndexByText(t,e,n,!0);return-1!==o?o:m.itemIndexStartsWith(e,t,n)},e.prototype.renderSearchBar=function(e,t){var n=this.combobox.dropdown,o=this.props,i=o.placeholder,a=o.tabIndex,s=o.disabled,r=o.readonly,l=o.textField,d=o.data,p=void 0===d?[]:d,u=this.state,c=u.isFocused,h=u.opened,f=m.getItemIndexByText(p,t,l,!0);return v.createElement(g.default,{id:this._inputId,placeholder:i,tabIndex:a||void 0,value:t,suggestedText:this._suggested,focused:c,onKeyDown:this.combobox.onInputKeyDown,onChange:this.onChangeHandler,onFocus:this.combobox.handleFocus,onBlur:this.combobox.handleBlur,disabled:s,readOnly:r,expanded:h,owns:n.listBoxId,activedescendant:n.optionPrefix+"-"+f,clearButton:e,clearButtonClick:this.clearButtonClick})},e.prototype.renderListContainer=function(){var e=this,t=this.combobox.dropdown,n=this.props,o=n.dir,i=n.header,a=n.footer,s=t.getPopupSettings(),r=this.state.opened;return v.createElement(l.default,{onMouseDown:function(){e.combobox._lastMousedown=(new Date).getTime()},width:t.popupWidth,popupSettings:{animate:s.animate,anchor:this.element||void 0,show:r,className:"k-list-container k-reset"},dir:void 0!==o?o:t.dirCalculated},i,this.renderList(),a)},e.prototype.renderList=function(){var t=this.combobox.dropdown,e=t.getPopupSettings(),n=this.props,o=n.textField,i=n.data,a=void 0===i?[]:i,s=n.listNoDataRender,r=n.itemRender,l=this.state,d=l.opened,p=l.focusedIndex,u=this.value;return v.createElement(c.default,{id:t.listBoxId,show:d,data:a.slice(),focusedIndex:p,value:u,textField:o,valueField:o,highlightSelected:!1,optionPrefix:t.optionPrefix,listRef:function(e){t.list=e},wrapperStyle:{maxHeight:e.height},wrapperCssClass:"k-list-scroller",onClick:t.handleItemClick,itemRender:r,noDataRender:s})},e.prototype.forceUpdateIfNeeded=function(e){this.controlled()||0!==Object.keys(e.data).length||this.forceUpdate()},e.prototype.suggestValue=function(e){if(this._suggested="",e){var t=this.props,n=t.data,o=void 0===n?[]:n,i=t.textField,a=o[m.itemIndexStartsWith(e,o,i)];if(a){var s=m.getItemText(a,i);e.toLowerCase()!==s.toLowerCase()&&(this._suggested=s.substring(e.length))}}},e.prototype.setValue=function(e){var t=this.combobox.dropdown;this.controlled()?t.valueDuringOnChange=e:t.value=e},e.prototype.controlled=function(){return void 0!==this.props.value},e.propTypes=h({},r.default.basicPropTypes,{suggest:s.oneOfType([s.bool,s.string]),placeholder:s.string,value:s.string,defaultValue:s.string,readonly:s.bool}),e.defaultProps=h({},d.default.defaultProps),e}(v.Component);t.default=i},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 v=n(0),g=n(6),m=n(5),a=function(n){function e(e){var t=n.call(this,e)||this;return t.valueChanged=!1,t.deleting=!1,t.text="",t.text=e.value,t}return i(e,n),e.prototype.componentWillReceiveProps=function(e){e.focused&&this.input&&document.activeElement!==this.input&&this.input.focus()},e.prototype.componentWillUpdate=function(e,t){var n=this.props.value,o=e.value,i=e.suggestedText,a=this.input,s=a&&a.selectionEnd===a.value.length;this.valueChanged=n!==o,this.deleting=this.valueChanged&&n.startsWith(o),this.text=s&&i&&this.valueChanged&&!this.deleting?o+i.substring(o.length):o},e.prototype.componentDidUpdate=function(){var e=this.props,t=e.value,n=e.suggestedText,o=this.input;if(n&&this.valueChanged&&!this.deleting&&o){var i=o.selectionStart,a=o.selectionEnd,s=o.value.length;i===a&&i===s&&o.setSelectionRange(t.length,n.length)}},e.prototype.render=function(){var t=this,e=this.props,n=e.id,o=e.placeholder,i=e.tabIndex,a=e.onKeyDown,s=e.onChange,r=e.onFocus,l=e.onBlur,d=e.disabled,p=e.expanded,u=e.owns,c=e.activedescendant,h=e.clearButton,f=e.clearButtonClick;return[v.createElement("span",{className:"k-searchbar",key:"searchbar"},v.createElement("input",{autoComplete:"off",id:n,placeholder:o,className:"k-input",tabIndex:i,role:"listbox",value:this.text,onChange:s,ref:function(e){t.input=e},onKeyDown:a,onFocus:r,onBlur:l,"aria-disabled":d||void 0,disabled:d||void 0,"aria-haspopup":!0,"aria-expanded":p||!1,"aria-owns":u,"aria-activedescendant":c})),h&&v.createElement("span",{className:"k-icon k-clear-value k-i-close",role:"button",onClick:f,onMouseDown:function(e){e.preventDefault()},tabIndex:-1,title:g.provideLocalizationService(this).toLanguageString(m.clear,m.messages[m.clear]),key:"clearbutton"})]},e}(v.Component);t.default=a,g.registerForLocalization(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)}),v=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 g=n(0),a=n(3),u=n(4),c=n(9),h=n(1),m=n(2),s=function(p){function e(e){var i=p.call(this,e)||this;i.handleItemSelect=function(e,t){i.combobox.handleItemSelect(e,t)},i.togglePopup=function(e){i.combobox.togglePopup(e)},i.setValueSelection=function(e,t,n,o){void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0),i.combobox.setValueSelection(e,t,n,o)};var t=e.allowCustom,n=e.opened,o=e.textField,a=e.valueField,s=void 0!==e.value?e.value:e.defaultValue,r=-1,l="";t&&void 0!==s?(l=h.getItemText(s,o),r=h.getItemIndex(e,s)):t||(r=h.getItemIndex(e,s),l=h.getText(e,r)),i.state={filterText:i.props.filter||"",typedText:"",text:l,selectedIndex:r,skip:0,isFocused:n,opened:n};var d=new u.default(i);return i.combobox=new c.default(d),d.value=h.getItemValue(s,a),d.index=r,d.text=l,i._inputId=m.guid(),i}return i(e,p),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.combobox.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.combobox.index},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){this.combobox.componentWillReceiveProps(e)},e.prototype.componentWillUpdate=function(e,t){this.combobox.componentWillUpdate(e,t)},e.prototype.componentDidUpdate=function(e,t){this.combobox.componentDidUpdate(t)},e.prototype.componentDidMount=function(){this.combobox.componentDidMount()},e.prototype.componentWillUnmount=function(){this.combobox.componentWillUnmount()},e.prototype.onNavigate=function(e){this.combobox.onNavigate(e)},e.prototype.render=function(){var t=this,e=this.props,n=e.dir,o=e.disabled,i=e.clearButton,a=e.label,s=e.className,r=e.style,l=e.loading,d=e.iconClassName,p=this.state.isFocused,u=this.combobox.valueToRender().text,c=!(!i||!u),h=this.combobox.dropdown,f=g.createElement("span",{className:m.classNames("k-widget k-combobox k-header",{"k-combobox-clearable":i},s),ref:function(e){t._element=e},style:a?v({},r,{width:void 0}):r,dir:n},g.createElement("span",{ref:function(e){h.wrapper=e},className:m.classNames("k-dropdown-wrap",{"k-state-default":!o,"k-state-disabled":o,"k-state-focused":p&&!o})},this.combobox.renderSearchBar(c,u,this._inputId),g.createElement("span",{className:"k-select",onClick:h.handleWrapperClick,onMouseDown:function(e){e.preventDefault(),t.setState({isFocused:!0})}},g.createElement("span",{className:m.classNames("k-icon",d,{"k-i-arrow-s":!l&&!d,"k-i-loading":l&&!d})}))),this.combobox.renderListContainer());return a?g.createElement(m.FloatingLabel,{label:a,value:u,style:{width:r?r.width:void 0},id:this._inputId,children:f}):f},e.prototype.applyInputValue=function(e,t,n){this.combobox.applyInputValue(e,t,n)},e.propTypes=v({},c.default.propTypes,{allowCustom:a.bool,clearButton:a.bool,iconClassName:a.string}),e.defaultProps=v({},c.default.defaultProps,{allowCustom:!1,clearButton:!0}),e}(g.Component);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(15);t.ComboBox=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,o,i=n(1),r=function(e,t,n){this.index=e,this.event=t,this.action=n};t.NavigationData=r,(o=s=t.NavigationAction||(t.NavigationAction={}))[o.Undefined=0]="Undefined",o[o.Open=1]="Open",o[o.Close=2]="Close",o[o.Enter=3]="Enter",o[o.Space=4]="Space",o[o.Tab=5]="Tab",o[o.Esc=6]="Esc",o[o.Delete=7]="Delete",o[o.Backspace=8]="Backspace",o[o.Home=9]="Home",o[o.End=10]="End",o[o.Up=11]="Up",o[o.Down=12]="Down",o[o.Left=13]="Left",o[o.Right=14]="Right";var a=function(){function e(){}return e.prototype.navigate=function(e){var t=this.process({current:e.currentIndex,max:e.max,min:e.min,event:e.event}),n=t.action;n!==s.Undefined&&(n===s.Open&&!e.opened||n===s.Close&&e.opened||13===e.event.keyCode||32===e.event.keyCode?e.togglePopup(e.state):void 0!==t.index&&e.handleItemSelect(t.index,e.state));var o=n===s.Left||n===s.Right;n===s.Undefined||n===s.Tab||n===s.Backspace||n===s.Delete||o&&e.leftRightKeysNavigation||!(n!==s.Enter||n===s.Enter&&e.opened)||e.event.preventDefault()},e.prototype.process=function(e){var t=e.event,n=t.keyCode,o=t.altKey,i=void 0,a=s.Undefined;return o&&40===n?a=s.Open:o&&38===n?a=s.Close:13===n?a=s.Enter:32===n?a=s.Space:27===n?a=s.Close:9===n?a=s.Tab:38===n?(i=this.next({current:e.current,min:e.min,max:e.max,step:-1}),a=s.Up):37===n?(i=this.next({current:e.current,min:e.min,max:e.max,step:-1}),a=s.Left):40===n?(i=this.next({current:e.current,min:e.min,max:e.max,step:1}),a=s.Down):39===n?(i=this.next({current:e.current,min:e.min,max:e.max,step:1}),a=s.Right):36===n?(i=0,a=s.Home):35===n?(i=e.max,a=s.End):46===n?a=s.Delete:8===n&&(a=s.Backspace),new r(i,t,a)},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 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 l=n(0),d=n(2),p=n(1),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){e.preventDefault(),t.props.onClick(t.props.index,e)},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.selected,o=e.focused,i=e.dataItem,a=e.textField,s=e.renderer,r=l.createElement("li",{id:t,role:"option","aria-selected":n,className:d.classNames("k-item",{"k-state-selected":n,"k-state-focused":o}),onClick:this.handleClick},p.getter(i,a));return void 0!==s?s.call(void 0,r,this.props):r},t}(l.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 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.onMouseDown=function(e){e.preventDefault()},t.onClick=function(e){e.preventDefault(),t.props.onClick&&t.props.onClick(-1,e)},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.defaultItem,o=e.textField;return a.createElement("div",{onClick:this.onClick,onMouseDown:this.onMouseDown,className:s.classNames("k-list-optionlabel",{"k-state-selected":t})},r.getter(n,o)||"")},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 a=n(0),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.componentDidUpdate=function(){this._input&&this.props.focused&&(this.props.willFocus&&this.props.willFocus(),this._input.focus(),this.props.didFocus&&setTimeout(this.props.didFocus,0))},t.prototype.render=function(){var t=this;return a.createElement("span",{className:"k-list-filter"},a.createElement("input",{ref:function(e){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){e.exports=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)});Object.defineProperty(t,"__esModule",{value:!0});var l=n(0),d=n(2),a=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.disabled,n=e.focused,o=e.style,i=e.ariaExpanded,a=e.ariaOwns,s=e.ariaActiveDescendant,r=e.tabIndex;return l.createElement("span",{role:"listbox",tabIndex:t?void 0:r,className:d.classNames("k-dropdown-wrap",this.props.className,{"k-state-default":!t,"k-state-focused":n,"k-state-disabled":t}),style:o,onFocus:this.props.onFocus,onBlur:this.props.onBlur,onKeyDown:this.props.onKeyDown,onKeyPress:this.props.onKeyPress,onClick:this.props.onClick,"aria-disabled":t||void 0,"aria-haspopup":!0,"aria-expanded":i,"aria-owns":a,"aria-activedescendant":s},this.props.children)},t}(l.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)}),d=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 y=n(0),p=n(11),a=n(3),x=n(2),b=n(22),u=n(8),c=n(20),h=n(19),v=n(7),f=n(4),g=n(10),w=n(1),I=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()},s=function(l){function e(e){var m=l.call(this,e)||this;m.vs=new g.default,m._lastMousedown=0,m.searchState={word:"",last:""},m.handleItemSelect=function(e,t){m.base.handleItemSelect(e,t)},m.setValueSelection=function(e,t,n,o){void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0),m.state.selectedIndex!==n&&(o.data.selectedIndex=n),m.base.value=e,m.base.text=t,m.base.index=n},m.togglePopup=function(e){m.base.togglePopup(e),m.state.opened||m.base.calculatePopupWidth(),m.props.filterable&&m.state.filterInputFocused&&(e.data.filterInputFocused=!1)},m.renderDropDownWrapper=function(){var e=m.props,t=e.defaultItem,n=e.valueField,o=e.textField,i=e.disabled,a=e.tabIndex,s=e.loading,r=e.iconClassName,l=e.valueRender,d=m.state,p=d.opened,u=d.isFocused,c=m.value,h=m.base.index,f=m.base.text;w.isPresent(c)||void 0===t||(c=w.getItemValue(t,n),f=w.getItemText(t,o));var v=y.createElement("span",{className:"k-input"},f),g=void 0!==l?l.call(void 0,v,c):v;return y.createElement(b.default,{disabled:i,focused:u,tabIndex:a,ariaExpanded:p||!1,ariaOwns:m.base.listBoxId,ariaActiveDescendant:m.base.optionPrefix+"-"+h,onFocus:m.handleFocus,onBlur:m.handleBlur,onClick:m.base.handleWrapperClick,onKeyDown:m.base.handleKeyDown,onKeyPress:m.handleKeyPress,ref:function(e){m.base.wrapper=e}},g,y.createElement("span",{className:"k-select"},y.createElement("span",{className:x.classNames("k-icon",r,{"k-i-arrow-s":!s&&!r,"k-i-loading":s&&!r})})))},m.renderListContainer=function(){var e=m.props,t=e.header,n=e.footer,o=m.base.getPopupSettings(),i=m.state.opened,a=void 0!==m.props.virtual,s={onMouseDown:function(e){m._lastMousedown=(new Date).getTime(),I(e)},dir:void 0!==m.props.dir?m.props.dir:m.base.dirCalculated,onBlur:m.handleBlur,width:m.base.popupWidth,popupSettings:{className:"k-list-container k-reset",animate:o.animate,anchor:m.element||void 0,show:i,open:m.onPopupOpened,close:m.onPopupClosed}};return y.createElement(u.default,d({},s),m.renderListFilter(),a?m.renderDefaultItem():void 0,a&&t,m.base.renderScrollWrapper(a?[m.renderList(),m.base.renderScrollElement()]:[m.renderDefaultItem(),t,m.renderList(),n,m.base.renderScrollElement()]),a&&n)},m.renderList=function(){var e=m.props,t=e.data,n=e.textField,o=e.valueField,i=e.defaultItem,a=e.listNoDataRender,s=e.itemRender,r=m.base.vs,l=m.state,d=l.opened,p=l.skip,u=m.base.getPopupSettings(),c="translateY("+m.vs.translate+"px)",h=m.value,f=!(w.getItemIndex(m.props,h)<0&&!i);return y.createElement(v.default,{id:m.base.listBoxId,show:d,data:(t||[]).slice(),focusedIndex:f||0!==p?void 0:0,value:h,textField:n,valueField:o,optionPrefix:m.base.optionPrefix,listRef:function(e){r.enabled&&(r.list=e),m.base.list=e},wrapperStyle:r.enabled?{float:"left",width:"100%"}:{maxHeight:u.height},wrapperCssClass:r.enabled?void 0:"k-list-scroller",listStyle:r.enabled?{transform:c}:void 0,key:1,skip:p,onClick:m.base.handleItemClick,itemRender:s,noDataRender:a})},m.renderListFilter=function(){var e=m.props.filterable,t=m.state,n=t.opened,o=t.filterText,i=t.filterInputFocused;return e&&y.createElement(c.default,{value:o,focused:n&&i,willFocus:m.filteringInputWillFocus,didFocus:m.filteringInputDidFocus,onChange:m.handleListFilterChange,onKeyDown:m.base.handleKeyDown})},m.renderDefaultItem=function(){var e=m.props,t=e.textField,n=e.defaultItem;return n&&y.createElement(h.default,{defaultItem:n,textField:t,selected:-1===m.index,key:0,onClick:m.handleDefaultItemClick})},m.search=function(e){clearTimeout(m._typingTimeout),m.props.filterable||(m._typingTimeout=setTimeout(function(){return m.searchState.word=""},m.props.delay),m.selectNext(e))},m.selectNext=function(e){var t,n=(m.props.data||[]).map(function(e,t){return{item:e,itemIndex:t}}),o=m.searchState.word,i=m.searchState.last,a=w.sameCharsOnly(o,i),s=n.length,r=m.state.selectedIndex||0;m.props.defaultItem&&(t={item:m.props.defaultItem,itemIndex:-1},s+=1,r+=1),r+=a?1:0,n=w.shuffleData(n,r,t);for(var l,d,p,u=0,c=m.props,h=c.textField,f=c.ignoreCase;u<s;u++)if(l=w.getter(n[u].item,h),d=a&&w.matchText(l,i,f),p=w.matchText(l,o,f),d||p){u=n[u].itemIndex;break}if(u!==s){var v=m.base.initState();v.syntheticEvent=e,m.handleItemSelect(u,v),m.base.applyState(v)}},m.handleFocus=function(e){m.base.handleFocus(e)},m.handleBlur=function(e){if(m.state.isFocused&&!m._filteringWillFocus){if((new Date).getTime()-m._lastMousedown<500)return m._lastMousedown=0,e.target.focus();var t=m.base.initState();t.data.isFocused=!1,t.data.filterInputFocused=!1,t.data.opened=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,m.state.opened&&t.events.push({type:"onClose"}),m.base.applyState(t)}},m.handleDefaultItemClick=function(e,t){var n=m.base.initState(),o=m.props,i=o.defaultItem,a=o.valueField,s=o.textField;m.togglePopup(n);var r=w.getItemValue(i,a),l=w.getItemText(i,s);m.setValueSelection(r,l,e,n),n.events.push({type:"onChange"}),n.syntheticEvent=t,m.base.applyState(n)},m.handleKeyPress=function(e){if(!m.props.filterable&&0!==e.which&&13!==e.keyCode){var t=String.fromCharCode(e.charCode||e.keyCode);m.props.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),m.searchState={word:m.searchState.word+t,last:m.searchState.last+t},m.search(e)}},m.handleListFilterChange=function(e){var t=m.base.initState();m.base.filterChanged(e.target.value,t),t.syntheticEvent=e,m.base.applyState(t)},m.filteringInputWillFocus=function(){m._filteringWillFocus=!0},m.filteringInputDidFocus=function(){m._filteringWillFocus=!1},m.onPopupOpened=function(){m.base.vs.hidden=!1,m.props.filterable&&m.setState({filterInputFocused:!0})},m.onPopupClosed=function(){if(m.base.vs.hidden=!0,m.state.isFocused){var e=p.findDOMNode(m.base.wrapper);setTimeout(function(){m.state.isFocused&&e.focus()},0)}};var t=void 0!==e.value?e.value:e.defaultValue,n=-1,o="";!w.isPresent(t)&&w.isPresent(e.defaultItem)?(t=w.getItemValue(e.defaultItem,e.valueField),o=w.getItemText(e.defaultItem,e.textField)):(n=w.getItemIndex(e,t),o=w.getItemText((e.data||[])[n],e.textField));var i=m.props,a=i.filter,s=i.filterable,r=i.opened;return m.state={filterText:a||"",selectedIndex:n,skip:0,isFocused:r,filterInputFocused:s&&r,opened:r},m.base=new f.default(m),m.base.index=n,m.base.value=t,m.base.text=o,m}return i(e,l),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.base.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.base.index},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){this.base.componentWillReceiveProps(e)},e.prototype.componentWillUpdate=function(e,t){this.base.componentWillUpdate(e,t)},e.prototype.componentDidUpdate=function(e,t){this.base.getPopupSettings().animate||(!t.opened&&this.state.opened?this.onPopupOpened():t.opened&&!this.state.opened&&this.onPopupClosed()),this.base.componentDidUpdate(t)},e.prototype.componentDidMount=function(){this.base.componentDidMount()},e.prototype.componentWillUnmount=function(){this.base.componentWillUnmount()},e.prototype.onNavigate=function(e){var t=this.props,n=t.data,o=t.filterable,i=t.defaultItem,a=this.base.initState();a.syntheticEvent=e;var s=this.base.vs,r=w.getItemIndex(this.props,this.value);this.base.navigation.navigate({opened:this.state.opened,event:e,state:a,currentIndex:s.skip+r,max:(s.enabled?s.total:(n||[]).length)-1,min:i?-1:0,leftRightKeysNavigation:o,togglePopup:this.togglePopup,handleItemSelect:this.handleItemSelect}),this.base.applyState(a)},e.prototype.render=function(){var t=this,e=this.props,n=e.style,o=e.className,i=e.label,a=e.dir,s=this.state.opened,r=w.getText(this.props,w.getItemIndex(this.props,this.value)),l=y.createElement("span",{ref:function(e){t._element=e},className:x.classNames("k-widget k-dropdown k-header",o),style:i?d({},n,{width:void 0}):n,dir:a,onMouseDown:s?I:void 0},this.renderDropDownWrapper(),this.renderListContainer());return i?y.createElement(x.FloatingLabel,{label:i,value:r,style:{width:n?n.width:void 0},children:l}):l},e.propTypes=d({delay:a.number,ignoreCase:a.bool,iconClassName:a.string,defaultItem:a.any,valueRender:a.func},f.default.propTypes),e.defaultProps=d({delay:500,ignoreCase:!0},f.default.defaultProps),e}(y.Component);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(23);t.DropDownList=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(24);t.DropDownList=o.DropDownList;var i=n(16);t.ComboBox=i.ComboBox;var a=n(13);t.AutoComplete=a.default,function(e){for(var t in e)s(t,e[t])}(t)}])}}});
System.register("@progress/kendo-react-dropdowns",["react","prop-types","@progress/kendo-react-common","@progress/kendo-react-intl","@progress/kendo-react-popup","react-dom"],function(s){var n,o,i,a,r,l;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){o=t(e)},function(e){i=t(e)},function(e){a=t(e)},function(e){r=t(e)},function(e){l=t(e)}],execute:function(){!function(n){var o={};function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=n,i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=25)}([function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return null!=e};t.isPresent=i;var s=function(e,t,n){if(void 0===n&&(n=!1),i(e))return n?t&&i(e[t])?e[t]:e:t?e[t]:e};t.getter=s,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(!i(e))return!1;var o=String(e);return n&&(o=o.toLowerCase()),0===o.indexOf(t)};var o=["string","number","undefined"],r=function(e){var t=typeof e;return-1!==o.indexOf(t)};t.isPrimitive=r,t.scrollToItem=function(e,t,n,o,i){var a=e.offsetHeight,s=t*n+(i?o-e.scrollTop:0);if(i){var r=0;a<s+t?r=s+t-a:s<0&&(r=s),0!==r?e.scrollTop+=r:0===e.scrollTop&&0!==o&&(e.scrollTop=o)}else s+t>a+e.scrollTop?e.scrollTop=s+t-a:s<e.scrollTop&&(e.scrollTop-=e.scrollTop-s)},t.itemIndexStartsWith=function(e,t,n){var o=-1;if(e){e=e.toLowerCase();for(var i=0;i<t.length;i++){var a=(s(t[i],n,r(t[i]))||"")+"";if(a&&a.toLowerCase().startsWith(e)){o=i;break}}}return o},t.getItemIndex=function(e,t){var n=e.valueField;return(e.data||[]).findIndex(function(e){return e===t||s(e,n)===t})},t.getItemIndexByText=function(e,t,n,o){var i=function(e){return o?e:e.toLowerCase()};return e.findIndex(function(e){return r(e)?i(t)===i(e.toString()):i(a(e,n))===i(t)})};var a=function(e,t){return r(e)?e:s(e,t)};t.getItemText=a;var l=function(e,t){return t?s(e,t):e};t.getItemValue=l,t.getText=function(e,t){if(!e.data)return null;if(-1===t)return a(e.defaultItem,e.textField);var n=e.data[t];return a(n,e.textField)},t.getValue=function(e,t){if(-1===t)return l(e.defaultItem,e.valueField);if(e.data){var n=e.data[t];return l(n,e.valueField)}}},function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t,n){"use strict";var a=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 o=n(0),i=n(11),s=n(3),r=n(10),l=n(17),p=n(1),u=n(2),d=function(){function e(e){var d=this;this.valueDuringOnChange=void 0,this.previousValue=void 0,this.indexDuringOnChange=void 0,this.valueNotInData=!1,this.text="",this.lastTextSelected="",this.selectedItemChanged=!1,this.initiallyShown=!1,this.vs=new r.default,this.navigation=new l.Navigation,this.handleKeyDown=function(e){var t=d.component.props,n=t.filterable,o=t.disabled,i=e.keyCode;o||(!n||37!==i&&39!==i&&32!==i&&16!==i&&36!==i&&35!==i)&&d.component.onNavigate(e)},this.handleWrapperClick=function(e){var t=d.initState();d.component.togglePopup(t),t.syntheticEvent=e,d.applyState(t)},this.handleItemClick=function(e,t){var n=d.initState();d.component.handleItemSelect(e,n),d.component.togglePopup(n),n.syntheticEvent=t,d.applyState(n)},this.handleFocus=function(e){if(!d.component.state.isFocused){var t=d.initState();t.data.isFocused=!0,t.events.push({type:"onFocus"}),t.syntheticEvent=e,d.applyState(t)}},this.filterChanged=function(e,t){var n=d.component.props.textField;t.data.filterText=e,t.events.push({type:"onFilterChange",filter:{field:n,operator:"contains",ignoreCase:!0,value:e}})},this.togglePopup=function(e){e.data.isFocused=!0,e.data.opened=!d.component.state.opened,d.component.state.opened?e.events.push({type:"onClose"}):e.events.push({type:"onOpen"})},this.pageChange=function(e,t){if(d.component.props.virtual){var n=d.initState();n.events.push({type:"onPageChange",page:{skip:e.skip,take:e.take}}),n.syntheticEvent=t,d.applyState(n)}},this.handleItemSelect=function(e,t){var n=e-(d.component.state.skip||0),o=d.component.props,i=o.data||[],a=void 0!==o.value;if(p.isPresent(e))if(0<=n&&n<i.length||-1===n&&o.defaultItem){var s=p.getValue(o,n),r=p.getText(o,n),l=d.value;a?(d.valueDuringOnChange=s,d.indexDuringOnChange=e):(d.value=s,d.index=e,d.text=r,t.data.selectedIndex=e),s!==l&&(t.events.push({type:"onChange"}),d.selectedItemChanged=!0)}else void 0!==o.virtual&&(d.vs.handleVirtualItemSelect(t,d.component.state,d.vs.container,e),d.valueNotInData=!0,a?d.indexDuringOnChange=e:(d.index=e,t.data.selectedIndex=e),d.selectedItemChanged=!0)},this.renderScrollWrapper=function(e){var t=d.getPopupSettings(),n=d.vs;return n.enabled?o.createElement("div",{onScroll:n.scrollHandler,ref:n.scrollerRef,style:{height:t.height,overflowY:"scroll"}},e):e},this.renderScrollElement=function(){var t=d.vs;return t.enabled&&o.createElement("div",{ref:function(e){t.scrollElement=e},key:"scrollElementKey"})},this.listBoxId=u.guid(),this.optionPrefix=u.guid(),this.component=e,this.vs.initVirtualization(e.props.virtual,void 0),this.vs.PageChange=this.pageChange,this.initiallyShown=!0===e.props.opened}return Object.defineProperty(e.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:this._value},set:function(e){this._value=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return void 0!==this.indexDuringOnChange?this.indexDuringOnChange:this._index},set:function(e){this._index=e},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){var t=this.initState(),n=e.filterable&&void 0!==e.filter&&e.filter!==this.component.props.filter;void 0!==e.opened&&(t.data.opened=e.opened),!e.filterable&&this.component.state.filterText?t.data.filterText="":n&&(t.data.filterText=e.filter),this.vs.updateVirtualization(e.virtual,this.component.props.virtual,t);var o=void 0!==e.value,i=o&&e.value!==this.component.props.value;if(this.selectedItemChanged||i){if(this.valueNotInData&&!o){var a=this.index-(t.data.skip||0);this.value=p.getValue(e,a),this.text=p.getText(e,a)}else i&&this.updateSelectedItem(e,t);this.lastValueSelected=this.value,this.lastTextSelected=this.text}o&&(this.previousValue=e.value),this.selectedItemChanged=!1,this.valueNotInData=!1,this.applyState(t)},e.prototype.componentWillUpdate=function(e,t){t.opened&&this.component.state.opened&&-1!==t.selectedIndex&&this.component.state.selectedIndex!==t.selectedIndex&&this.scrollToSelectedItem(t),void 0!==e.value&&void 0===this.value&&(this.value=e.value)},e.prototype.componentDidUpdate=function(e){var t=this;if(this.component.state.opened&&!e.opened){var n=this.vs.container;n?this.vs.updateListScroll(this.component.state,n,function(){0<=p.getItemIndex(t.component.props,t.value)&&t.scrollToSelectedItem(t.component.state)}):this.scrollToSelectedItem(this.component.state)}},e.prototype.componentDidMount=function(){this.component.element&&(this.dirCalculated=window.getComputedStyle(this.component.element).direction||void 0),this.initiallyShown&&(this.initiallyShown=!1,this.calculatePopupWidth(),this.component.setState({opened:this.component.props.opened}))},e.prototype.componentWillUnmount=function(){var e=this.vs;delete e.container,delete e.list},e.prototype.scrollToSelectedItem=function(e){var t=(e.selectedIndex||0)-(e.skip||0);this.scrollToItem(t)},e.prototype.scrollToItem=function(e){var t=this.list||this.vs.list,n=t?t.children[0]:void 0;if(n&&0<=e){var o=this.vs,i=o.container||t.parentNode;p.scrollToItem(i,n.offsetHeight,e,o.translate,o.enabled)}},e.prototype.initState=function(){return{data:{},events:[],syntheticEvent:void 0}},e.prototype.applyState=function(e){var o=this,i={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=o.component.props[t];n&&n.call(void 0,a({},i,e))}),-1!==e.events.findIndex(function(e){return"onChange"===e.type})&&(this.previousValue=this.value),this.indexDuringOnChange=void 0,this.valueDuringOnChange=void 0},e.prototype.calculatePopupWidth=function(){var e=this.getPopupSettings().width,t=i.findDOMNode(this.wrapper);this.popupWidth=void 0!==e?e:t&&t.offsetWidth+"px"},e.prototype.updateSelectedItem=function(e,t){var n=void 0!==e.value?e.value:this.value,o=p.getItemIndex(e,n),i=p.getText(e,o),a=e.defaultItem?p.getItemValue(e.defaultItem,e.valueField):void 0;p.isPresent(n)&&-1===o&&void 0===a||(-1===o&&void 0!==a&&(n=a,i=p.getItemText(e.defaultItem,this.component.props.textField)),o=-1!==o?o+(t.data.skip||0):o,this.text=i,this.component.setValueSelection&&this.component.setValueSelection(n,i,o,t))},e.prototype.getPopupSettings=function(){return Object.assign({},e.defaultProps.popupSettings,this.component.props.popupSettings)},e.basicPropTypes={opened:s.bool,disabled:s.bool,dir:s.string,tabIndex:s.number,data:s.array,textField:s.string,className:s.string,label:s.string,loading:s.bool,popupSettings:s.shape({animate:s.bool,width:s.string,height:s.string}),onOpen:s.func,onClose:s.func,onFocus:s.func,onBlur:s.func,onChange:s.func,itemRender:s.func,listNoDataRender:s.func,header:s.node,footer:s.node},e.propTypes=a({},e.basicPropTypes,{value:s.any,defaultValue:s.any,filterable:s.bool,valueField:s.string,virtual:s.shape({pageSize:s.number.isRequired,skip:s.number.isRequired,total:s.number.isRequired}),onFilterChange:s.func,onPageChange:s.func}),e.defaultProps={tabIndex:0,popupSettings:{animate:!0,height:"200px"}},e}();t.default=d},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=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 h=n(0),f=n(18),v=n(1),d=n(6),a=n(5),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.renderItems=function(){var i=this,e=this.props,a=e.textField,s=e.valueField,r=e.value,l=e.optionPrefix,d=e.skip,p=e.focusedIndex,u=e.highlightSelected,c=e.itemRender;return this.props.data.map(function(e,t){var n=v.getter(e,s),o=(d||0)+t;return h.createElement(f.default,{id:l+"-"+o,dataItem:e,selected:u&&n===r,focused:p===t,index:o,key:o,onClick:i.props.onClick,textField:a,renderer:c})})},t.prototype.renderNoValueElement=function(e){var t=this.props.noDataRender,n=h.createElement("div",{className:"k-nodata"},h.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=d.provideLocalizationService(this),t=this.props,n=t.id,o=t.show,i=t.wrapperCssClass,a=t.wrapperStyle,s=t.listStyle,r=t.listRef,l=this.renderItems();return l.length?h.createElement("div",{className:i,style:a,ref:function(e){return e&&e.setAttribute("unselectable","on")}},h.createElement("ul",{id:n,role:"listbox","aria-hidden":!o||void 0,className:"k-list k-reset",ref:r,style:s},l)):this.renderNoValueElement(e)},t.defaultProps={highlightSelected:!0},t}(h.Component);t.default=s,d.registerForLocalization(s)},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 l=n(0),d=n(21),a=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,a=e.dir,s=e.popupSettings;return l.createElement(d.Popup,r({style:{width:i,direction:a}},s),l.createElement("div",{onMouseDown:n,onBlur:o},t))},t}(l.Component);t.default=a},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 x=n(0),i=n(3),a=n(4),f=n(14),b=n(7),p=n(8),w=n(1),s=function(){function e(e){var s=this;this._lastMousedown=0,this.handleItemSelect=function(e,t){if(s.dropdown.handleItemSelect(e,t),s.dropdown.selectedItemChanged){var n=s.dropdown.component;n.state.typedText&&(t.data.typedText=""),n.state.filterText&&(t.data.filterText=""),n.state.suggestedText&&(n.state.suggestedText="")}},this.setValueSelection=function(e,t,n,o){void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0);var i=s.dropdown.component;i.props.filterable||t===i.state.text||(o.data.text=t),o.data.selectedIndex!==i.state.selectedIndex&&(o.data.selectedIndex=n,o.data.focusedIndex=-1!==n?n:void 0),s.dropdown.value=e},this.onInputKeyDown=function(e){var t=s.dropdown.component,n=e.keyCode,o=function(){t.state.opened&&e.preventDefault()};if(13===n||27===n){o();var i=e.currentTarget.value,a=s.dropdown.initState();a.syntheticEvent=e,t.applyInputValue(i,a,e.keyCode)}else 38!==n&&40!==n||(o(),s.dropdown.handleKeyDown(e))},this.onChangeHandler=function(e){var t=s.dropdown.component,n=s.dropdown.initState(),o=e.currentTarget.value,i=void 0!==t.props.value;if(n.syntheticEvent=e,!o)return s.clearValue(n,!1),s.dropdown.applyState(n);t.state.opened||(n.data.opened=!0),n.data.typedText=o,i||(n.data.selectedIndex=-1,s.dropdown.index=-1),t.props.filterable&&s.dropdown.filterChanged(o,n),t.state.opened===n.data.opened&&n.events.push({type:n.data.opened?"onOpen":"onClose"}),s.suggestValue(o,n),s.dropdown.applyState(n)},this.handleBlur=function(e){var t=s.dropdown.component;if(t.state.isFocused){if((new Date).getTime()-s._lastMousedown<500)return s._lastMousedown=0,e.currentTarget.focus();var n=s.dropdown.initState();n.data.isFocused=!1,n.events.push({type:"onBlur"}),n.syntheticEvent=e,t.applyInputValue(e.currentTarget.value,n)}},this.handleFocus=function(e){s.dropdown.handleFocus(e)},this.clearButtonClick=function(e){var t=s.dropdown.component,n=s.dropdown.initState();n.syntheticEvent=e,s.clearValue(n),t.state.opened&&s.dropdown.togglePopup(n),s.dropdown.applyState(n)},this.togglePopup=function(e){s.dropdown.togglePopup(e)},this.dropdown=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this.dropdown.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.dropdown.index},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){this.dropdown.componentWillReceiveProps(e)},e.prototype.componentWillUpdate=function(e,t){this.dropdown.componentWillUpdate(e,t);var n=this.dropdown.component;!n.state.opened&&t.opened&&this.dropdown.calculatePopupWidth();var o=void 0!==t.selectedIndex&&n.state.selectedIndex!==t.selectedIndex,i=n.state.typedText,a=t.typedText,s=void 0!==a&&a!==i||!a&&i&&void 0===this.dropdown.lastValueSelected;if(o){var r=(e.data||[])[(t.selectedIndex||0)-(t.skip||0)];this.dropdown.value=w.getItemValue(r,e.valueField),this.dropdown.text=w.getItemText(r,e.textField),this.dropdown.index=t.selectedIndex||0}else s&&(this.dropdown.lastTextSelected="",this.dropdown.lastValueSelected=void 0,null!==this.dropdown.value&&""!==this.dropdown.value&&(this.dropdown.value=void 0),this.dropdown.index=-1,this.dropdown.text="")},e.prototype.componentDidUpdate=function(e){var t=this.dropdown;t.componentDidUpdate(e);var n=t.component,o=n.state,i=o.typedText,a=o.opened,s=o.focusedIndex;if(a&&(i!==e.typedText||e.focusedIndex!==s)){var r=this.getFocusedIndex(i);-1!==r&&t.scrollToItem(r-(n.state.skip||0))}},e.prototype.componentDidMount=function(){this.dropdown.componentDidMount()},e.prototype.componentWillUnmount=function(){this.dropdown.componentWillUnmount()},e.prototype.onNavigate=function(e){var t=this.dropdown.component,n=t.props,o=n.data,i=void 0===o?[]:o,a=n.filterable,s=n.textField,r=this.dropdown.initState(),l=this.dropdown.vs,d=w.getItemIndex(t.props,t.value),p=t.state.typedText,u=l.skip+d;if(u<0&&p&&(38===e.keyCode||40===e.keyCode)){var c=w.itemIndexStartsWith(p,i,s);0<=c&&(u=38===e.keyCode?c+1:c-1)}this.dropdown.navigation.navigate({opened:t.state.opened,event:e,state:r,currentIndex:u,max:(l.enabled?l.total:i.length)-1,min:0,leftRightKeysNavigation:a,togglePopup:t.togglePopup,handleItemSelect:this.handleItemSelect}),r.syntheticEvent=e,this.dropdown.applyState(r)},e.prototype.valueToRender=function(e,t){var n=this.dropdown.component,o=e||n.state,i=o.typedText,a=void 0===i?"":i,s=o.filterText,r=void 0===s?"":s,l=o.selectedIndex,d=t||n.props,p=d.value,u=d.filterable,c=d.textField,h=d.valueField,f=d.data,v=void 0===f?[]:f,g=void 0!==p,m=this.dropdown.text||"",y=g?p:this.dropdown.value;if(u&&r)return{value:null,text:r};if(!(!a&&-1!==l)){var x=w.getItemIndexByText(v,a,c);return-1===x?{value:null,text:a}:{value:w.getItemValue(v[x],h),text:a}}return{value:y,text:m}},e.prototype.getFocusedIndex=function(e){var t=this.dropdown.component,n=t.state,o=n.opened,i=n.skip,a=n.focusedIndex,s=t.props,r=s.textField,l=s.data,d=void 0===l?[]:l;return o?void 0!==a?a:e?w.itemIndexStartsWith(e,d,r):0===i?0:-1:-1},e.prototype.applyValueOnEnter=function(e,t){var n=this.dropdown,o=n.component,i=o.state.suggestedText,a=void 0===i?"":i,s=o.props,r=s.data,l=void 0===r?[]:r,d=s.textField,p=s.valueField,u=s.suggest,c=s.allowCustom,h=w.getItemIndexByText(l,e,d),f=-1!==h,v=void 0,g="";if(u&&a)g=v=a,t.data.typedText=a;else if(f)v=w.getItemValue(l[h],p),g=w.getItemText(l[h],d);else{if(!c)return this.selectFocusedItem(e,t);g=v=e}n.previousValue!==v&&t.events.push({type:"onChange"}),this.closePopup(t),n.value=v,n.text=g,n.applyState(t)},e.prototype.closePopup=function(e){this.dropdown.component.state.opened&&(e.data.opened=!1,e.events.push({type:"onClose"}))},e.prototype.applyValueOnRejectSuggestions=function(e,t){var n=this.dropdown,o=n.component,i=o.props,a=i.data,s=void 0===a?[]:a,r=i.textField,l=i.valueField,d=i.allowCustom,p=w.getItemIndexByText(s,e,r,!0),u=-1!==p,c=void 0,h="";if(o.state.suggestedText&&(t.data.suggestedText=void 0),u||d||!e||e!==n.lastTextSelected){if(!u&&!d&&e===o.state.typedText)return this.clearValue(t),this.closePopup(t),n.applyState(t);if(u)c=w.getItemValue(s[p],l),h=e;else{if(!d)return this.selectFocusedItem(e,t);c=e||void 0,h=e}}else c=n.lastValueSelected,h=n.lastTextSelected;n.previousValue!==c&&(t.events.push({type:"onChange"}),n.value=c),n.text=h,this.closePopup(t),n.applyState(t)},e.prototype.selectFocusedItem=function(e,t){var n=this.dropdown,o=n.component,i=o.state,a=i.skip,s=void 0===a?0:a,r=i.opened,l=o.props,d=l.filterable,p=l.data,u=void 0===p?[]:p,c=l.textField,h=w.itemIndexStartsWith(e,u,c);return-1!==h&&this.handleItemSelect(h+s,t),r&&(t.data.opened=!1,t.events.push({type:"onClose"})),o.state.typedText&&(t.data.typedText=""),d&&(t.data.filterText=n.text),n.applyState(t)},e.prototype.applyInputValue=function(e,t,n){return 13===n?this.applyValueOnEnter(e,t):this.applyValueOnRejectSuggestions(e,t)},e.prototype.clearValue=function(e,t){void 0===t&&(t=!0);var n=this.dropdown.component,o=void 0!==n.props.value,i=this.dropdown.previousValue;t&&o?(this.dropdown.valueDuringOnChange=null,this.dropdown.indexDuringOnChange=-1):(this.dropdown.value=null,this.dropdown.index=-1,this.dropdown.text="",e.data.selectedIndex=-1),e.data.typedText="",void 0!==n.state.focusedIndex&&(e.data.focusedIndex=void 0),void 0!==n.state.suggestedText&&(e.data.suggestedText=void 0),t&&null!=i&&(e.events.push({type:"onChange"}),this.dropdown.selectedItemChanged=!0),n.props.filterable&&(this.dropdown.filterChanged("",e),this.dropdown.vs.reset())},e.prototype.suggestValue=function(e,t){var n=this.dropdown.component;if(void 0!==n.state.suggestedText&&(t.data.suggestedText=void 0),n.props.suggest&&e){var o=n.props.data||[],i=n.props.textField,a=o[w.itemIndexStartsWith(e,o,i)];a&&(t.data.suggestedText=w.getItemText(a,i))}},e.prototype.renderListContainer=function(){var e=this,t=this.dropdown,n=t.component,o=t.vs,i=n.props,a=i.dir,s=i.header,r=i.footer,l=n.state.opened,d=t.getPopupSettings();return x.createElement(p.default,{onMouseDown:function(){e._lastMousedown=(new Date).getTime()},width:t.popupWidth,popupSettings:{animate:d.animate,anchor:n.element||void 0,show:l,open:function(){o.hidden=!1},className:"k-list-container k-reset",close:function(){o.hidden=!0}},dir:void 0!==a?a:t.dirCalculated},s,t.renderScrollWrapper([this.renderList(),t.renderScrollElement()]),r)},e.prototype.renderSearchBar=function(e,t,n){var o=this.dropdown.component,i=o.props,a=i.placeholder,s=i.tabIndex,r=i.disabled,l=o.state,d=l.suggestedText,p=l.isFocused,u=l.opened,c=l.selectedIndex,h=void 0===c?0:c;return x.createElement(f.default,{id:n,placeholder:a,tabIndex:s||void 0,value:t,suggestedText:d,focused:p,onKeyDown:this.onInputKeyDown,onChange:this.onChangeHandler,onFocus:this.handleFocus,onBlur:this.handleBlur,disabled:r,expanded:u,owns:this.dropdown.listBoxId,activedescendant:this.dropdown.optionPrefix+"-"+h,clearButton:e,clearButtonClick:this.clearButtonClick})},e.prototype.renderList=function(){var e,t=this.dropdown,n=t.component,o=n.props,i=o.textField,a=o.valueField,s=o.listNoDataRender,r=o.itemRender,l=t.getPopupSettings(),d=t.vs,p=n.state,u=p.opened,c=p.skip,h=void 0===c?0:c,f="translateY("+d.translate+"px)",v=this.valueToRender(),g=v.value,m=v.text,y=(n.props.data||[]).slice();return u&&(e=this.getFocusedIndex(m)-h),x.createElement(b.default,{id:t.listBoxId,show:u,data:y,focusedIndex:e,value:g,textField:i,valueField:a,optionPrefix:t.optionPrefix,listRef:function(e){d.enabled&&(d.list=e),t.list=e},wrapperStyle:d.enabled?{float:"left",width:"100%"}:{maxHeight:l.height},wrapperCssClass:d.enabled?void 0:"k-list-scroller",listStyle:d.enabled?{transform:f}:void 0,key:1,skip:h,onClick:this.dropdown.handleItemClick,itemRender:r,noDataRender:s})},e.propTypes=o({},a.default.propTypes,{suggest:i.bool,placeholder:i.string}),e.defaultProps=o({},a.default.defaultProps),e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(e,t,n){e.events.push({type:"onPageChange",page:{skip:t,take:n}})},o=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.hidden=!1,this.prevScrollPos=0,this.listTranslate=0,this.scrollSyncing=!1,this.scrollerRef=function(e){if(e){var t=n;(t.container=e).setAttribute("unselectable","on"),setTimeout(t.calculateScrollSizes.bind(t),0)}},this.calculateScrollSizes=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(e=n.scrollElement&&n.scrollElement.style.height!==t+"px")&&(n.scrollElement.style.height=t+"px"),n.scrollSyncing=!1,e},this.scrollHandler=this.scrollHandler.bind(this)}return e.prototype.initVirtualization=function(e,t){this.enabled=void 0!==e,void 0!==e&&(this.skip=e.skip,this.pageSize=e.pageSize,this.total=e.total,void 0!==t&&(t.data.skip=e.skip))},e.prototype.updateVirtualization=function(e,t,n){if(void 0===e||void 0===t||t.total===e.total&&0!==e.skip)this.initVirtualization(e,n);else{var o=Object.assign({},e,{skip:0});this.initVirtualization(o,n),this.calculateScrollSizes()&&this.reset()}},e.prototype.handleVirtualItemSelect=function(t,e,n,o){var i=e.skip||0,a=e.selectedIndex||0,s=e.opened&&n,r=this,l=r.pageSize,d=o-i;if(s&&0===o)c(t,0,l),r.reset();else if(s&&o===r.total-1)c(t,r.total-r.pageSize,l),r.scrollToEnd();else if(s){var p=r.PageChange;r.PageChange=function(e){c(t,e.skip,e.take)},(a<o?r.localScrollDown:r.localScrollUp).call(r,e.syntheticEvent),r.PageChange=p}else if(s||0!==o)if(s||o!==r.total-1){if(!s){var u=Math.max(0,i+(d<0?-1:1));c(t,u,l)}}else c(t,r.total-r.pageSize,l);else c(t,0,l);e.opened||r.reset()},e.prototype.updateListScroll=function(e,t,n){var o=t.scrollTop,i=this,a=i.translate,s=i.hidden,r=e.skip||0;if(o!==a||0===a&&0===o&&0<r){var l=function(){i.enabled=!1;var e=0<a?a:i.itemHeight*r;t.scrollTop=e,i.translateTo(a||e),i.enabled=!0,n()};0===i.itemHeight||s?setTimeout(l,0):l()}},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.scrollSyncing=!0,this.container&&(this.container.scrollTop=0),this.translateTo(0),this.scrollSyncing=!1},e.prototype.maxScroll=function(){return this.container.scrollHeight-this.container.offsetHeight},e.prototype.scrollToEnd=function(){if(this.container){var e=this.maxScroll();this.translateTo(e),this.container.scrollTop=e}},e.prototype.localScrollUp=function(e){var t,n=this.itemHeight,o=this.container.scrollTop,i=this.listTranslate,a=o-i;if(!(0<a)){for(t=0;t<this.skip&&!(i+n+a<=o);t++)i-=n;if(i=this.validateTranslate(i),this.skip-t<=0&&o<i)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,a=this.list.children.length;for(t=0;t<a&&!(o<i+n);t++)i+=n;i=this.validateTranslate(i),a<=t&&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){if(this.enabled&&this.list&&!this.hidden&&!this.scrollSyncing){var t=this.container.scrollTop,n=this.prevScrollPos;(this.prevScrollPos=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=o},function(e,t){e.exports=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 m=n(0),y=n(6),x=n(5),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.valueChanged=!1,e.deleting=!1,e}return i(e,t),e.prototype.componentWillUpdate=function(e,t){var n=this.props,o=n.value,i=n.suggestedText,a=e.value,s=e.suggestedText;this.valueChanged=o!==a||s!==i,this.deleting=this.valueChanged&&o.startsWith(a)&&!(i&&s&&i.endsWith(s))},e.prototype.componentDidUpdate=function(){var e=this.props,t=e.value,n=e.suggestedText,o=this.input;n&&this.valueChanged&&!this.deleting&&o&&o.setSelectionRange(t.length-n.length,t.length)},e.prototype.render=function(){var t=this,e=this.props,n=e.id,o=e.placeholder,i=e.tabIndex,a=e.value,s=e.onKeyDown,r=e.onChange,l=e.onFocus,d=e.onBlur,p=e.disabled,u=e.readOnly,c=e.expanded,h=e.owns,f=e.activedescendant,v=e.clearButton,g=e.clearButtonClick;return[m.createElement("span",{className:"k-searchbar",key:"searchbar"},m.createElement("input",{autoComplete:"off",id:n,type:"text",placeholder:o,className:"k-input",tabIndex:i,role:"listbox",value:a,onChange:r,ref:function(e){t.input=e},onKeyDown:s,onFocus:l,onBlur:d,"aria-disabled":p||void 0,disabled:p||void 0,readOnly:u||void 0,"aria-haspopup":!0,"aria-expanded":c||!1,"aria-owns":h,"aria-activedescendant":f})),v&&m.createElement("span",{className:"k-icon k-clear-value k-i-close",role:"button",onClick:g,onMouseDown:function(e){e.preventDefault()},tabIndex:-1,title:y.provideLocalizationService(this).toLanguageString(x.clear,x.messages[x.clear]),key:"clearbutton"})]},e}(m.Component);t.default=a,y.registerForLocalization(a)},function(e,t,n){"use strict";var o,a=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)}),h=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 v=n(0),s=n(3),g=n(12),l=n(8),c=n(7),r=n(4),d=n(9),m=n(1),f=n(2),i=function(i){function e(e){var v=i.call(this,e)||this;v._suggested="",v.handleItemSelect=function(e,t){var n=m.getText(v.props,e),o=v.value;v.setValue(n),n!==o&&t.events.push({type:"onChange"})},v.itemFocus=function(e,t){t.data.focusedIndex=e},v.togglePopup=function(e){v.combobox.togglePopup(e)},v.onChangeHandler=function(e){var t=v.combobox.dropdown,n=t.initState(),o=e.currentTarget,i=o.value,a=o.selectionEnd===i.length;n.syntheticEvent=e;var s=v._suggested,r=v.value,l=r&&r.substring(0,r.length-s.length),d=l&&l===i,p=l&&l.length>i.length,u=v.props.suggest;if(void 0!==u&&!1!==u){d||p||!a?v._suggested="":v.suggestValue(i);var c=i+v._suggested;v.setValue(c);var h={userInput:i,value:v._suggested};n.events.push({type:"onChange",suggestion:h})}else v._suggested="",v.setValue(i),n.events.push({type:"onChange"});!v.state.opened&&i?(n.data.opened=!0,n.events.push({type:"onOpen"})):v.state.opened&&!i&&(n.data.opened=!1,n.events.push({type:"onClose"}));var f=v.getFocusedIndex(i);v.state.focusedIndex!==f&&(n.data.focusedIndex=f),v.forceUpdateIfNeeded(n),t.applyState(n)},v.clearButtonClick=function(e){var t=v.combobox.dropdown,n=t.initState();n.syntheticEvent=e;var o=v.value;v._suggested="",v.setValue(""),0!==v.state.focusedIndex&&(n.data.focusedIndex=0),""!==o&&n.events.push({type:"onChange"}),v.state.opened&&(n.data.opened=!1,n.events.push({type:"onClose"})),v.forceUpdateIfNeeded(n),t.applyState(n)};var t=e.opened,n=(void 0!==e.value?e.value:e.defaultValue)||"";v.state={isFocused:t,focusedIndex:t?v.getFocusedIndex(n):void 0,opened:t};var o=new r.default(v);return v.combobox=new d.default(o),o.value=n,v._inputId=f.guid(),v}return a(e,i),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.combobox.value},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){var t=this.combobox.dropdown,n=t.initState(),o=e.value,i=void 0!==o;void 0!==e.opened&&(n.data.opened=e.opened),i&&(t.value=o),n.data.focusedIndex=this.getFocusedIndex(o,e.data),e.suggest&&("string"==typeof e.suggest?this._suggested=e.suggest:this.suggestValue(t.value)),t.applyState(n)},e.prototype.componentWillUpdate=function(e,t){!this.state.opened&&t.opened&&this.combobox.dropdown.calculatePopupWidth()},e.prototype.componentDidUpdate=function(e,t){var n=this.state,o=n.opened,i=n.focusedIndex,a=!t.opened&&o,s=void 0!==i&&t.focusedIndex!==i;(o&&s||a)&&this.combobox.dropdown.scrollToItem(i)},e.prototype.componentDidMount=function(){this.combobox.componentDidMount()},e.prototype.onNavigate=function(e){var t=38===e.keyCode||40===e.keyCode,n=this.state,o=n.opened,i=n.focusedIndex,a=this.value;if(t&&(!t||!e.altKey&&o)){var s=this.combobox.dropdown,r=this.props.data,l=void 0===r?[]:r,d=s.initState(),p=void 0!==i?i:this.getFocusedIndex(a);s.navigation.navigate({opened:o,event:e,state:d,currentIndex:p,max:l.length-1,min:0,leftRightKeysNavigation:!1,togglePopup:this.togglePopup,handleItemSelect:this.itemFocus}),d.syntheticEvent=e,s.applyState(d)}},e.prototype.render=function(){var t=this,e=this.props,n=e.dir,o=e.disabled,i=e.label,a=e.className,s=e.style,r=e.loading,l=this.state.isFocused,d=this.value,p=!r&&!!d,u=this.combobox.dropdown,c=v.createElement("span",{className:f.classNames("k-widget k-autocomplete k-header",a,{"k-state-disabled":o,"k-state-focused":l&&!o}),ref:function(e){t._element=e,u.wrapper=e},style:i?h({},s,{width:void 0}):s,dir:n},this.renderSearchBar(p,d),r&&v.createElement("span",{className:"k-icon k-i-loading"}),this.renderListContainer());return i?v.createElement(f.FloatingLabel,{label:i,value:d,style:{width:s?s.width:void 0},id:this._inputId,children:c}):c},e.prototype.applyInputValue=function(e,t,n){var o=this.state.opened,i=void 0!==this.state.focusedIndex?this.state.focusedIndex:this.getFocusedIndex(e);if(this._suggested="",o&&13===n){var a=m.getText(this.props,i);this.setValue(a),e!==a&&t.events.push({type:"onChange"})}this.state.focusedIndex!==i&&(t.data.focusedIndex=i),o&&(t.data.opened=!1,t.events.push({type:"onClose"})),this.forceUpdateIfNeeded(t),this.combobox.dropdown.applyState(t)},e.prototype.getFocusedIndex=function(e,t){if(!e)return 0;var n=this.props.textField;t=t||this.props.data||[];var o=m.getItemIndexByText(t,e,n,!0);return-1!==o?o:m.itemIndexStartsWith(e,t,n)},e.prototype.renderSearchBar=function(e,t){var n=this.combobox.dropdown,o=this.props,i=o.placeholder,a=o.tabIndex,s=o.disabled,r=o.readonly,l=o.textField,d=o.data,p=void 0===d?[]:d,u=this.state,c=u.isFocused,h=u.opened,f=m.getItemIndexByText(p,t,l,!0);return v.createElement(g.default,{id:this._inputId,placeholder:i,tabIndex:a||void 0,value:t,suggestedText:this._suggested,focused:c,onKeyDown:this.combobox.onInputKeyDown,onChange:this.onChangeHandler,onFocus:this.combobox.handleFocus,onBlur:this.combobox.handleBlur,disabled:s,readOnly:r,expanded:h,owns:n.listBoxId,activedescendant:n.optionPrefix+"-"+f,clearButton:e,clearButtonClick:this.clearButtonClick})},e.prototype.renderListContainer=function(){var e=this,t=this.combobox.dropdown,n=this.props,o=n.dir,i=n.header,a=n.footer,s=t.getPopupSettings(),r=this.state.opened;return v.createElement(l.default,{onMouseDown:function(){e.combobox._lastMousedown=(new Date).getTime()},width:t.popupWidth,popupSettings:{animate:s.animate,anchor:this.element||void 0,show:r,className:"k-list-container k-reset"},dir:void 0!==o?o:t.dirCalculated},i,this.renderList(),a)},e.prototype.renderList=function(){var t=this.combobox.dropdown,e=t.getPopupSettings(),n=this.props,o=n.textField,i=n.data,a=void 0===i?[]:i,s=n.listNoDataRender,r=n.itemRender,l=this.state,d=l.opened,p=l.focusedIndex,u=this.value;return v.createElement(c.default,{id:t.listBoxId,show:d,data:a.slice(),focusedIndex:p,value:u,textField:o,valueField:o,highlightSelected:!1,optionPrefix:t.optionPrefix,listRef:function(e){t.list=e},wrapperStyle:{maxHeight:e.height},wrapperCssClass:"k-list-scroller",onClick:t.handleItemClick,itemRender:r,noDataRender:s})},e.prototype.forceUpdateIfNeeded=function(e){this.controlled()||0!==Object.keys(e.data).length||this.forceUpdate()},e.prototype.suggestValue=function(e){if(this._suggested="",e){var t=this.props,n=t.data,o=void 0===n?[]:n,i=t.textField,a=o[m.itemIndexStartsWith(e,o,i)];if(a){var s=m.getItemText(a,i);e.toLowerCase()!==s.toLowerCase()&&(this._suggested=s.substring(e.length))}}},e.prototype.setValue=function(e){var t=this.combobox.dropdown;this.controlled()?t.valueDuringOnChange=e:t.value=e},e.prototype.controlled=function(){return void 0!==this.props.value},e.propTypes=h({},r.default.basicPropTypes,{suggest:s.oneOfType([s.bool,s.string]),placeholder:s.string,value:s.string,defaultValue:s.string,readonly:s.bool}),e.defaultProps=h({},d.default.defaultProps),e}(v.Component);t.default=i},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 v=n(0),g=n(6),m=n(5),a=function(n){function e(e){var t=n.call(this,e)||this;return t.valueChanged=!1,t.deleting=!1,t.text="",t.text=e.value,t}return i(e,n),e.prototype.componentWillReceiveProps=function(e){e.focused&&this.input&&document.activeElement!==this.input&&this.input.focus()},e.prototype.componentWillUpdate=function(e,t){var n=this.props.value,o=e.value,i=e.suggestedText,a=this.input,s=a&&a.selectionEnd===a.value.length;this.valueChanged=n!==o,this.deleting=this.valueChanged&&n.startsWith(o),this.text=s&&i&&this.valueChanged&&!this.deleting?o+i.substring(o.length):o},e.prototype.componentDidUpdate=function(){var e=this.props,t=e.value,n=e.suggestedText,o=this.input;if(n&&this.valueChanged&&!this.deleting&&o){var i=o.selectionStart,a=o.selectionEnd,s=o.value.length;i===a&&i===s&&o.setSelectionRange(t.length,n.length)}},e.prototype.render=function(){var t=this,e=this.props,n=e.id,o=e.placeholder,i=e.tabIndex,a=e.onKeyDown,s=e.onChange,r=e.onFocus,l=e.onBlur,d=e.disabled,p=e.expanded,u=e.owns,c=e.activedescendant,h=e.clearButton,f=e.clearButtonClick;return[v.createElement("span",{className:"k-searchbar",key:"searchbar"},v.createElement("input",{autoComplete:"off",id:n,placeholder:o,className:"k-input",tabIndex:i,role:"listbox",value:this.text,onChange:s,ref:function(e){t.input=e},onKeyDown:a,onFocus:r,onBlur:l,"aria-disabled":d||void 0,disabled:d||void 0,"aria-haspopup":!0,"aria-expanded":p||!1,"aria-owns":u,"aria-activedescendant":c})),h&&v.createElement("span",{className:"k-icon k-clear-value k-i-close",role:"button",onClick:f,onMouseDown:function(e){e.preventDefault()},tabIndex:-1,title:g.provideLocalizationService(this).toLanguageString(m.clear,m.messages[m.clear]),key:"clearbutton"})]},e}(v.Component);t.default=a,g.registerForLocalization(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)}),v=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 g=n(0),a=n(3),u=n(4),c=n(9),h=n(1),m=n(2),s=function(p){function e(e){var i=p.call(this,e)||this;i.handleItemSelect=function(e,t){i.combobox.handleItemSelect(e,t)},i.togglePopup=function(e){i.combobox.togglePopup(e)},i.setValueSelection=function(e,t,n,o){void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0),i.combobox.setValueSelection(e,t,n,o)};var t=e.allowCustom,n=e.opened,o=e.textField,a=e.valueField,s=void 0!==e.value?e.value:e.defaultValue,r=-1,l="";t&&void 0!==s?(l=h.getItemText(s,o),r=h.getItemIndex(e,s)):t||(r=h.getItemIndex(e,s),l=h.getText(e,r)),i.state={filterText:i.props.filter||"",typedText:"",text:l,selectedIndex:r,skip:0,isFocused:n,opened:n};var d=new u.default(i);return i.combobox=new c.default(d),d.value=h.getItemValue(s,a),d.index=r,d.text=l,i._inputId=m.guid(),i}return i(e,p),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.combobox.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.combobox.index},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){this.combobox.componentWillReceiveProps(e)},e.prototype.componentWillUpdate=function(e,t){this.combobox.componentWillUpdate(e,t)},e.prototype.componentDidUpdate=function(e,t){this.combobox.componentDidUpdate(t)},e.prototype.componentDidMount=function(){this.combobox.componentDidMount()},e.prototype.componentWillUnmount=function(){this.combobox.componentWillUnmount()},e.prototype.onNavigate=function(e){this.combobox.onNavigate(e)},e.prototype.render=function(){var t=this,e=this.props,n=e.dir,o=e.disabled,i=e.clearButton,a=e.label,s=e.className,r=e.style,l=e.loading,d=e.iconClassName,p=this.state.isFocused,u=this.combobox.valueToRender().text,c=!(!i||!u),h=this.combobox.dropdown,f=g.createElement("span",{className:m.classNames("k-widget k-combobox k-header",{"k-combobox-clearable":i},s),ref:function(e){t._element=e},style:a?v({},r,{width:void 0}):r,dir:n},g.createElement("span",{ref:function(e){h.wrapper=e},className:m.classNames("k-dropdown-wrap",{"k-state-default":!o,"k-state-disabled":o,"k-state-focused":p&&!o})},this.combobox.renderSearchBar(c,u,this._inputId),g.createElement("span",{className:"k-select",onClick:h.handleWrapperClick,onMouseDown:function(e){e.preventDefault(),t.setState({isFocused:!0})}},g.createElement("span",{className:m.classNames("k-icon",d,{"k-i-arrow-s":!l&&!d,"k-i-loading":l&&!d})}))),this.combobox.renderListContainer());return a?g.createElement(m.FloatingLabel,{label:a,value:u,style:{width:r?r.width:void 0},id:this._inputId,children:f}):f},e.prototype.applyInputValue=function(e,t,n){this.combobox.applyInputValue(e,t,n)},e.propTypes=v({},c.default.propTypes,{allowCustom:a.bool,clearButton:a.bool,iconClassName:a.string}),e.defaultProps=v({},c.default.defaultProps,{allowCustom:!1,clearButton:!0}),e}(g.Component);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(15);t.ComboBox=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,o,i=n(1),r=function(e,t,n){this.index=e,this.event=t,this.action=n};t.NavigationData=r,(o=s=t.NavigationAction||(t.NavigationAction={}))[o.Undefined=0]="Undefined",o[o.Open=1]="Open",o[o.Close=2]="Close",o[o.Enter=3]="Enter",o[o.Space=4]="Space",o[o.Tab=5]="Tab",o[o.Esc=6]="Esc",o[o.Delete=7]="Delete",o[o.Backspace=8]="Backspace",o[o.Home=9]="Home",o[o.End=10]="End",o[o.Up=11]="Up",o[o.Down=12]="Down",o[o.Left=13]="Left",o[o.Right=14]="Right";var a=function(){function e(){}return e.prototype.navigate=function(e){var t=this.process({current:e.currentIndex,max:e.max,min:e.min,event:e.event}),n=t.action;n!==s.Undefined&&(n===s.Open&&!e.opened||n===s.Close&&e.opened||13===e.event.keyCode||32===e.event.keyCode?e.togglePopup(e.state):void 0!==t.index&&e.handleItemSelect(t.index,e.state));var o=n===s.Left||n===s.Right;n===s.Undefined||n===s.Tab||n===s.Backspace||n===s.Delete||o&&e.leftRightKeysNavigation||!(n!==s.Enter||n===s.Enter&&e.opened)||e.event.preventDefault()},e.prototype.process=function(e){var t=e.event,n=t.keyCode,o=t.altKey,i=void 0,a=s.Undefined;return o&&40===n?a=s.Open:o&&38===n?a=s.Close:13===n?a=s.Enter:32===n?a=s.Space:27===n?a=s.Close:9===n?a=s.Tab:38===n?(i=this.next({current:e.current,min:e.min,max:e.max,step:-1}),a=s.Up):37===n?(i=this.next({current:e.current,min:e.min,max:e.max,step:-1}),a=s.Left):40===n?(i=this.next({current:e.current,min:e.min,max:e.max,step:1}),a=s.Down):39===n?(i=this.next({current:e.current,min:e.min,max:e.max,step:1}),a=s.Right):36===n?(i=0,a=s.Home):35===n?(i=e.max,a=s.End):46===n?a=s.Delete:8===n&&(a=s.Backspace),new r(i,t,a)},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 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 l=n(0),d=n(2),p=n(1),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){e.preventDefault(),t.props.onClick(t.props.index,e)},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.selected,o=e.focused,i=e.dataItem,a=e.textField,s=e.renderer,r=l.createElement("li",{id:t,role:"option","aria-selected":n,className:d.classNames("k-item",{"k-state-selected":n,"k-state-focused":o}),onClick:this.handleClick},p.getter(i,a));return void 0!==s?s.call(void 0,r,this.props):r},t}(l.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 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.onMouseDown=function(e){e.preventDefault()},t.onClick=function(e){e.preventDefault(),t.props.onClick&&t.props.onClick(-1,e)},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.defaultItem,o=e.textField;return a.createElement("div",{onClick:this.onClick,onMouseDown:this.onMouseDown,className:s.classNames("k-list-optionlabel",{"k-state-selected":t})},r.getter(n,o)||"")},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 a=n(0),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.componentDidUpdate=function(){this._input&&this.props.focused&&(this.props.willFocus&&this.props.willFocus(),this._input.focus(),this.props.didFocus&&setTimeout(this.props.didFocus,0))},t.prototype.render=function(){var t=this;return a.createElement("span",{className:"k-list-filter"},a.createElement("input",{ref:function(e){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){e.exports=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)});Object.defineProperty(t,"__esModule",{value:!0});var l=n(0),d=n(2),a=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.disabled,n=e.focused,o=e.style,i=e.ariaExpanded,a=e.ariaOwns,s=e.ariaActiveDescendant,r=e.tabIndex;return l.createElement("span",{role:"listbox",tabIndex:t?void 0:r,className:d.classNames("k-dropdown-wrap",this.props.className,{"k-state-default":!t,"k-state-focused":n,"k-state-disabled":t}),style:o,onFocus:this.props.onFocus,onBlur:this.props.onBlur,onKeyDown:this.props.onKeyDown,onKeyPress:this.props.onKeyPress,onClick:this.props.onClick,"aria-disabled":t||void 0,"aria-haspopup":!0,"aria-expanded":i,"aria-owns":a,"aria-activedescendant":s},this.props.children)},t}(l.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)}),d=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 y=n(0),p=n(11),a=n(3),x=n(2),b=n(22),u=n(8),c=n(20),h=n(19),v=n(7),f=n(4),g=n(10),w=n(1),I=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()},s=function(l){function e(e){var m=l.call(this,e)||this;m.vs=new g.default,m._lastMousedown=0,m.searchState={word:"",last:""},m.handleItemSelect=function(e,t){m.base.handleItemSelect(e,t)},m.setValueSelection=function(e,t,n,o){void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0),m.state.selectedIndex!==n&&(o.data.selectedIndex=n),m.base.value=e,m.base.text=t,m.base.index=n},m.togglePopup=function(e){m.base.togglePopup(e),m.state.opened||m.base.calculatePopupWidth(),m.props.filterable&&m.state.filterInputFocused&&(e.data.filterInputFocused=!1)},m.renderDropDownWrapper=function(){var e=m.props,t=e.defaultItem,n=e.valueField,o=e.textField,i=e.disabled,a=e.tabIndex,s=e.loading,r=e.iconClassName,l=e.valueRender,d=m.state,p=d.opened,u=d.isFocused,c=m.value,h=m.base.index,f=m.base.text;w.isPresent(c)||void 0===t||(c=w.getItemValue(t,n),f=w.getItemText(t,o));var v=y.createElement("span",{className:"k-input"},f),g=void 0!==l?l.call(void 0,v,c):v;return y.createElement(b.default,{disabled:i,focused:u,tabIndex:a,ariaExpanded:p||!1,ariaOwns:m.base.listBoxId,ariaActiveDescendant:m.base.optionPrefix+"-"+h,onFocus:m.handleFocus,onBlur:m.handleBlur,onClick:m.base.handleWrapperClick,onKeyDown:m.base.handleKeyDown,onKeyPress:m.handleKeyPress,ref:function(e){m.base.wrapper=e}},g,y.createElement("span",{className:"k-select"},y.createElement("span",{className:x.classNames("k-icon",r,{"k-i-arrow-s":!s&&!r,"k-i-loading":s&&!r})})))},m.renderListContainer=function(){var e=m.props,t=e.header,n=e.footer,o=m.base.getPopupSettings(),i=m.state.opened,a=void 0!==m.props.virtual,s={onMouseDown:function(e){m._lastMousedown=(new Date).getTime(),I(e)},dir:void 0!==m.props.dir?m.props.dir:m.base.dirCalculated,onBlur:m.handleBlur,width:m.base.popupWidth,popupSettings:{className:"k-list-container k-reset",animate:o.animate,anchor:m.element||void 0,show:i,open:m.onPopupOpened,close:m.onPopupClosed}};return y.createElement(u.default,d({},s),m.renderListFilter(),a?m.renderDefaultItem():void 0,a&&t,m.base.renderScrollWrapper(a?[m.renderList(),m.base.renderScrollElement()]:[m.renderDefaultItem(),t,m.renderList(),n,m.base.renderScrollElement()]),a&&n)},m.renderList=function(){var e=m.props,t=e.data,n=e.textField,o=e.valueField,i=e.defaultItem,a=e.listNoDataRender,s=e.itemRender,r=m.base.vs,l=m.state,d=l.opened,p=l.skip,u=m.base.getPopupSettings(),c="translateY("+m.vs.translate+"px)",h=m.value,f=!(w.getItemIndex(m.props,h)<0&&!i);return y.createElement(v.default,{id:m.base.listBoxId,show:d,data:(t||[]).slice(),focusedIndex:f||0!==p?void 0:0,value:h,textField:n,valueField:o,optionPrefix:m.base.optionPrefix,listRef:function(e){r.enabled&&(r.list=e),m.base.list=e},wrapperStyle:r.enabled?{float:"left",width:"100%"}:{maxHeight:u.height},wrapperCssClass:r.enabled?void 0:"k-list-scroller",listStyle:r.enabled?{transform:c}:void 0,key:1,skip:p,onClick:m.base.handleItemClick,itemRender:s,noDataRender:a})},m.renderListFilter=function(){var e=m.props.filterable,t=m.state,n=t.opened,o=t.filterText,i=t.filterInputFocused;return e&&y.createElement(c.default,{value:o,focused:n&&i,willFocus:m.filteringInputWillFocus,didFocus:m.filteringInputDidFocus,onChange:m.handleListFilterChange,onKeyDown:m.base.handleKeyDown})},m.renderDefaultItem=function(){var e=m.props,t=e.textField,n=e.defaultItem;return n&&y.createElement(h.default,{defaultItem:n,textField:t,selected:-1===m.index,key:0,onClick:m.handleDefaultItemClick})},m.search=function(e){clearTimeout(m._typingTimeout),m.props.filterable||(m._typingTimeout=setTimeout(function(){return m.searchState.word=""},m.props.delay),m.selectNext(e))},m.selectNext=function(e){var t,n=(m.props.data||[]).map(function(e,t){return{item:e,itemIndex:t}}),o=m.searchState.word,i=m.searchState.last,a=w.sameCharsOnly(o,i),s=n.length,r=m.state.selectedIndex||0;m.props.defaultItem&&(t={item:m.props.defaultItem,itemIndex:-1},s+=1,r+=1),r+=a?1:0,n=w.shuffleData(n,r,t);for(var l,d,p,u=0,c=m.props,h=c.textField,f=c.ignoreCase;u<s;u++)if(l=w.getter(n[u].item,h),d=a&&w.matchText(l,i,f),p=w.matchText(l,o,f),d||p){u=n[u].itemIndex;break}if(u!==s){var v=m.base.initState();v.syntheticEvent=e,m.handleItemSelect(u,v),m.base.applyState(v)}},m.handleFocus=function(e){m.base.handleFocus(e)},m.handleBlur=function(e){if(m.state.isFocused&&!m._filteringWillFocus){if((new Date).getTime()-m._lastMousedown<500)return m._lastMousedown=0,e.target.focus();var t=m.base.initState();t.data.isFocused=!1,t.data.filterInputFocused=!1,t.data.opened=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,m.state.opened&&t.events.push({type:"onClose"}),m.base.applyState(t)}},m.handleDefaultItemClick=function(e,t){var n=m.base.initState(),o=m.props,i=o.defaultItem,a=o.valueField,s=o.textField;m.togglePopup(n);var r=w.getItemValue(i,a),l=w.getItemText(i,s);m.setValueSelection(r,l,e,n),n.events.push({type:"onChange"}),n.syntheticEvent=t,m.base.applyState(n)},m.handleKeyPress=function(e){if(!m.props.filterable&&0!==e.which&&13!==e.keyCode){var t=String.fromCharCode(e.charCode||e.keyCode);m.props.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),m.searchState={word:m.searchState.word+t,last:m.searchState.last+t},m.search(e)}},m.handleListFilterChange=function(e){var t=m.base.initState();m.base.filterChanged(e.target.value,t),t.syntheticEvent=e,m.base.applyState(t)},m.filteringInputWillFocus=function(){m._filteringWillFocus=!0},m.filteringInputDidFocus=function(){m._filteringWillFocus=!1},m.onPopupOpened=function(){m.base.vs.hidden=!1,m.props.filterable&&m.setState({filterInputFocused:!0})},m.onPopupClosed=function(){if(m.base.vs.hidden=!0,m.state.isFocused){var e=p.findDOMNode(m.base.wrapper);setTimeout(function(){m.state.isFocused&&e.focus()},0)}};var t=void 0!==e.value?e.value:e.defaultValue,n=-1,o="";!w.isPresent(t)&&w.isPresent(e.defaultItem)?(t=w.getItemValue(e.defaultItem,e.valueField),o=w.getItemText(e.defaultItem,e.textField)):(n=w.getItemIndex(e,t),o=w.getItemText((e.data||[])[n],e.textField));var i=m.props,a=i.filter,s=i.filterable,r=i.opened;return m.state={filterText:a||"",selectedIndex:n,skip:0,isFocused:r,filterInputFocused:s&&r,opened:r},m.base=new f.default(m),m.base.index=n,m.base.value=t,m.base.text=o,m}return i(e,l),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.base.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.base.index},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){this.base.componentWillReceiveProps(e)},e.prototype.componentWillUpdate=function(e,t){this.base.componentWillUpdate(e,t)},e.prototype.componentDidUpdate=function(e,t){this.base.getPopupSettings().animate||(!t.opened&&this.state.opened?this.onPopupOpened():t.opened&&!this.state.opened&&this.onPopupClosed()),this.base.componentDidUpdate(t)},e.prototype.componentDidMount=function(){this.base.componentDidMount()},e.prototype.componentWillUnmount=function(){this.base.componentWillUnmount()},e.prototype.onNavigate=function(e){var t=this.props,n=t.data,o=t.filterable,i=t.defaultItem,a=this.base.initState();a.syntheticEvent=e;var s=this.base.vs,r=w.getItemIndex(this.props,this.value);this.base.navigation.navigate({opened:this.state.opened,event:e,state:a,currentIndex:s.skip+r,max:(s.enabled?s.total:(n||[]).length)-1,min:i?-1:0,leftRightKeysNavigation:o,togglePopup:this.togglePopup,handleItemSelect:this.handleItemSelect}),this.base.applyState(a)},e.prototype.render=function(){var t=this,e=this.props,n=e.style,o=e.className,i=e.label,a=e.dir,s=this.state.opened,r=w.getText(this.props,w.getItemIndex(this.props,this.value)),l=y.createElement("span",{ref:function(e){t._element=e},className:x.classNames("k-widget k-dropdown k-header",o),style:i?d({},n,{width:void 0}):n,dir:a,onMouseDown:s?I:void 0},this.renderDropDownWrapper(),this.renderListContainer());return i?y.createElement(x.FloatingLabel,{label:i,value:r,style:{width:n?n.width:void 0},children:l}):l},e.propTypes=d({delay:a.number,ignoreCase:a.bool,iconClassName:a.string,defaultItem:a.any,valueRender:a.func},f.default.propTypes),e.defaultProps=d({delay:500,ignoreCase:!0},f.default.defaultProps),e}(y.Component);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(23);t.DropDownList=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(24);t.DropDownList=o.DropDownList;var i=n(16);t.ComboBox=i.ComboBox;var a=n(13);t.AutoComplete=a.default,function(e){for(var t in e)s(t,e[t])}(t)}])}}});
{
"name": "@progress/kendo-react-dropdowns",
"version": "1.0.1-dev.201805290749",
"version": "1.0.1-dev.201805291556",
"description": "Kendo UI for React DropDowns package",

@@ -30,4 +30,4 @@ "repository": {

"dependencies": {
"@progress/kendo-react-common": "1.0.1-dev.201805290749",
"@progress/kendo-react-popup": "1.0.1-dev.201805290749",
"@progress/kendo-react-common": "1.0.1-dev.201805291556",
"@progress/kendo-react-popup": "1.0.1-dev.201805291556",
"prop-types": "^15.6.0"

@@ -37,3 +37,3 @@ },

"@progress/kendo-data-query": "^1.0.0",
"@progress/kendo-react-intl": "1.0.1-dev.201805290749"
"@progress/kendo-react-intl": "1.0.1-dev.201805291556"
},

@@ -40,0 +40,0 @@ "@progress": {

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc