react-select-allow-create
Advanced tools
Comparing version 1.0.0-beta11.17 to 1.0.0-beta11.18
@@ -1,2 +0,2 @@ | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Select=e()}}(function(){return function e(t,u,n){function s(i,a){if(!u[i]){if(!t[i]){var r="function"==typeof require&&require;if(!a&&r)return r(i,!0);if(o)return o(i,!0);var l=new Error("Cannot find module '"+i+"'");throw l.code="MODULE_NOT_FOUND",l}var p=u[i]={exports:{}};t[i][0].call(p.exports,function(e){var u=t[i][1][e];return s(u?u:e)},p,p.exports,e,t,u,n)}return u[i].exports}for(var o="function"==typeof require&&require,i=0;i<n.length;i++)s(n[i]);return s}({1:[function(e,t,u){(function(n){"use strict";function s(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,u){return t in e?Object.defineProperty(e,t,{value:u,enumerable:!0,configurable:!0,writable:!0}):e[t]=u,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function r(e){return f["default"].createElement(E["default"],e)}Object.defineProperty(u,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var u=arguments[t];for(var n in u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n])}return e},p=function(){function e(e,t){for(var u=0;u<t.length;u++){var n=t[u];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,u,n){return u&&e(t.prototype,u),n&&e(t,n),t}}(),d=function(e,t,u){for(var n=!0;n;){var s=e,o=t,i=u;n=!1,null===s&&(s=Function.prototype);var a=Object.getOwnPropertyDescriptor(s,o);if(void 0!==a){if("value"in a)return a.value;var r=a.get;if(void 0===r)return;return r.call(i)}var l=Object.getPrototypeOf(s);if(null===l)return;e=l,t=o,u=i,n=!0,a=l=void 0}},c="undefined"!=typeof window?window.React:"undefined"!=typeof n?n.React:null,f=s(c),h=e("./Select"),E=s(h),y=e("./utils/stripDiacritics"),g=s(y),b={autoload:f["default"].PropTypes.bool.isRequired,cache:f["default"].PropTypes.any,children:f["default"].PropTypes.func.isRequired,ignoreAccents:f["default"].PropTypes.bool,ignoreCase:f["default"].PropTypes.bool,loadingPlaceholder:f["default"].PropTypes.oneOfType([f["default"].PropTypes.string,f["default"].PropTypes.node]),loadOptions:f["default"].PropTypes.func.isRequired,options:c.PropTypes.array.isRequired,placeholder:f["default"].PropTypes.oneOfType([f["default"].PropTypes.string,f["default"].PropTypes.node]),noResultsText:f["default"].PropTypes.oneOfType([f["default"].PropTypes.string,f["default"].PropTypes.node]),searchPromptText:f["default"].PropTypes.oneOfType([f["default"].PropTypes.string,f["default"].PropTypes.node]),onInputChange:f["default"].PropTypes.func,value:f["default"].PropTypes.any},v={autoload:!0,cache:{},children:r,ignoreAccents:!0,ignoreCase:!0,loadingPlaceholder:"Loading...",options:[],searchPromptText:"Type to search"},m=function(e){function t(e,u){i(this,t),d(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e,u),this.state={isLoading:!1,options:e.options},this._onInputChange=this._onInputChange.bind(this)}return a(t,e),p(t,[{key:"componentDidMount",value:function(){var e=this.props.autoload;e&&this.loadOptions("")}},{key:"componentWillUpdate",value:function(e,t){var u=this,n=["options"];n.forEach(function(t){u.props[t]!==e[t]&&u.setState(o({},t,e[t]))})}},{key:"clearOptions",value:function(){this.setState({options:[]})}},{key:"loadOptions",value:function u(e){var t=this,n=this.props,s=n.cache,u=n.loadOptions;if(s&&s.hasOwnProperty(e))return void this.setState({options:s[e]});var o=function a(u,n){if(a===t._callback){t._callback=null;var o=n&&n.options||[];s&&(s[e]=o),t.setState({isLoading:!1,options:o})}};this._callback=o;var i=u(e,o);return i&&i.then(function(e){return o(null,e)},function(e){return o(e)}),this._callback&&!this.state.isLoading&&this.setState({isLoading:!0}),e}},{key:"_onInputChange",value:function(e){var t=this.props,u=t.ignoreAccents,n=t.ignoreCase,s=t.onInputChange;return u&&(e=(0,g["default"])(e)),n&&(e=e.toLowerCase()),s&&s(e),this.loadOptions(e)}},{key:"inputValue",value:function(){return this.select?this.select.state.inputValue:""}},{key:"noResultsText",value:function n(){var e=this.props,t=e.loadingPlaceholder,n=e.noResultsText,u=e.searchPromptText,s=this.state.isLoading,o=this.inputValue();return s?t:o&&n?n:u}},{key:"render",value:function(){var e=this,t=this.props,u=t.children,n=t.loadingPlaceholder,s=t.placeholder,o=this.state,i=o.isLoading,a=o.options,r={noResultsText:this.noResultsText(),placeholder:i?n:s,options:i&&n?[]:a,ref:function(t){return e.select=t},onChange:function(t){e.props.value&&t.length>e.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return u(l({},this.props,r,{isLoading:i,onInputChange:this._onInputChange}))}}]),t}(c.Component);u["default"]=m,m.propTypes=b,m.defaultProps=v,t.exports=u["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./Select":5,"./utils/stripDiacritics":10}],2:[function(e,t,u){(function(u){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var u=arguments[t];for(var n in u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n])}return e},o="undefined"!=typeof window?window.React:"undefined"!=typeof u?u.React:null,i=n(o),a=e("./Select"),r=n(a),l=i["default"].createClass({displayName:"AsyncCreatableSelect",render:function(){var e=this;return i["default"].createElement(r["default"].Async,this.props,function(t){return i["default"].createElement(r["default"].Creatable,e.props,function(e){return i["default"].createElement(r["default"],s({},t,e,{onInputChange:function(u){return e.onInputChange(u),t.onInputChange(u)}}))})})}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./Select":5}],3:[function(e,t,u){(function(u){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){var u={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(u[n]=e[n]);return u}function o(e){return f["default"].createElement(E["default"],e)}function i(e){var t=e.option,u=e.options,n=e.labelKey,s=e.valueKey;return 0===u.filter(function(e){return e[n]===t[n]||e[s]===t[s]}).length}function a(e){var t=e.label;return!!t}function r(e){var t=e.label,u=e.labelKey,n=e.valueKey,s={};return s[n]=t,s[u]=t,s.className="Select-create-option-placeholder",s}function l(e){return'Create option "'+e+'"'}function p(e){var t=e.keyCode;switch(t){case 9:case 13:case 188:return!0}return!1}var d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var u=arguments[t];for(var n in u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n])}return e},c="undefined"!=typeof window?window.React:"undefined"!=typeof u?u.React:null,f=n(c),h=e("./Select"),E=n(h),y=e("./utils/defaultFilterOptions"),g=n(y),b=e("./utils/defaultMenuRenderer"),v=n(b),m=f["default"].createClass({displayName:"CreatableSelect",propTypes:{children:f["default"].PropTypes.func,filterOptions:f["default"].PropTypes.any,isOptionUnique:f["default"].PropTypes.func,isValidNewOption:f["default"].PropTypes.func,menuRenderer:f["default"].PropTypes.any,newOptionCreator:f["default"].PropTypes.func,options:f["default"].PropTypes.array,promptTextCreator:f["default"].PropTypes.func,shouldKeyDownEventCreateNewOption:f["default"].PropTypes.func},statics:{isOptionUnique:i,isValidNewOption:a,newOptionCreator:r,promptTextCreator:l,shouldKeyDownEventCreateNewOption:p},getDefaultProps:function(){return{filterOptions:g["default"],isOptionUnique:i,isValidNewOption:a,menuRenderer:v["default"],newOptionCreator:r,promptTextCreator:l,shouldKeyDownEventCreateNewOption:p}},createNewOption:function(){var e=this.props,t=e.isValidNewOption,u=e.newOptionCreator,n=e.options,s=void 0===n?[]:n;e.shouldKeyDownEventCreateNewOption;if(t({label:this.inputValue})){var o=u({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),i=this.isOptionUnique({option:o});i&&(s.unshift(o),this.select.selectValue(o))}},filterOptions:function F(){var e=this.props,F=e.filterOptions,t=e.isValidNewOption,u=(e.options,e.promptTextCreator),n=arguments[2]||[],s=F.apply(void 0,arguments)||[];if(t({label:this.inputValue})){var o=this.props.newOptionCreator,i=o({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),a=this.isOptionUnique({option:i,options:n.concat(s)});if(a){var r=u(this.inputValue);this._createPlaceholderOption=o({label:r,labelKey:this.labelKey,valueKey:this.valueKey}),s.unshift(this._createPlaceholderOption)}}return s},isOptionUnique:function C(e){var t=e.option,u=e.options,C=this.props.isOptionUnique;return u=u||this.select.filterOptions(),C({labelKey:this.labelKey,option:t,options:u,valueKey:this.valueKey})},menuRenderer:function O(e){var O=this.props.menuRenderer;return O(d({},e,{onSelect:this.onOptionSelect}))},onInputChange:function(e){this.inputValue=e},onInputKeyDown:function A(e){var t=this.props,u=t.shouldKeyDownEventCreateNewOption,A=t.onInputKeyDown,n=this.select.getFocusedOption();n&&n===this._createPlaceholderOption&&u({keyCode:e.keyCode})?(this.createNewOption(),e.preventDefault()):A&&A(e)},onOptionSelect:function(e,t){e===this._createPlaceholderOption?this.createNewOption():this.select.selectValue(e)},render:function(){var e=this,t=this.props,u=t.children,n=void 0===u?o:u,i=(t.newOptionCreator,t.shouldKeyDownEventCreateNewOption,s(t,["children","newOptionCreator","shouldKeyDownEventCreateNewOption"])),a=d({},i,{allowCreate:!0,filterOptions:this.filterOptions,menuRenderer:this.menuRenderer,onInputChange:this.onInputChange,onInputKeyDown:this.onInputKeyDown,ref:function(t){e.select=t,t&&(e.labelKey=t.props.labelKey,e.valueKey=t.props.valueKey)}});return n(a)}});t.exports=m}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./Select":5,"./utils/defaultFilterOptions":8,"./utils/defaultMenuRenderer":9}],4:[function(e,t,u){(function(e){"use strict";function u(e){return e&&e.__esModule?e:{"default":e}}var n="undefined"!=typeof window?window.React:"undefined"!=typeof e?e.React:null,s=u(n),o="undefined"!=typeof window?window.classNames:"undefined"!=typeof e?e.classNames:null,i=u(o),a=s["default"].createClass({displayName:"Option",propTypes:{children:s["default"].PropTypes.node,className:s["default"].PropTypes.string,instancePrefix:s["default"].PropTypes.string.isRequired,isDisabled:s["default"].PropTypes.bool,isFocused:s["default"].PropTypes.bool,isSelected:s["default"].PropTypes.bool,onFocus:s["default"].PropTypes.func,onSelect:s["default"].PropTypes.func,onUnfocus:s["default"].PropTypes.func,option:s["default"].PropTypes.object.isRequired,optionIndex:s["default"].PropTypes.number},blockEvent:function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)},handleMouseDown:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)},handleMouseEnter:function(e){this.onFocus(e)},handleMouseMove:function(e){this.onFocus(e)},handleTouchEnd:function(e){this.dragging||this.handleMouseDown(e)},handleTouchMove:function(e){this.dragging=!0},handleTouchStart:function(e){this.dragging=!1},onFocus:function(e){this.props.isFocused||this.props.onFocus(this.props.option,e)},render:function(){var e=this.props,t=e.option,u=e.instancePrefix,n=e.optionIndex,o=(0,i["default"])(this.props.className,t.className);return t.disabled?s["default"].createElement("div",{className:o,onMouseDown:this.blockEvent,onClick:this.blockEvent},this.props.children):s["default"].createElement("div",{className:o,style:t.style,role:"option",onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,id:u+"-option-"+n,title:t.title},this.props.children)}});t.exports=a}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],5:[function(e,t,u){(function(n){"use strict";function s(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var u={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(u[n]=e[n]);return u}function i(e,t,u){return t in e?Object.defineProperty(e,t,{value:u,enumerable:!0,configurable:!0,writable:!0}):e[t]=u,e}function a(e){var t=typeof e;return"string"===t?e:"object"===t?JSON.stringify(e):"number"===t||"boolean"===t?String(e):""}Object.defineProperty(u,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var u=arguments[t];for(var n in u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n])}return e},l="undefined"!=typeof window?window.React:"undefined"!=typeof n?n.React:null,p=s(l),d="undefined"!=typeof window?window.ReactDOM:"undefined"!=typeof n?n.ReactDOM:null,c=s(d),f="undefined"!=typeof window?window.AutosizeInput:"undefined"!=typeof n?n.AutosizeInput:null,h=s(f),E="undefined"!=typeof window?window.classNames:"undefined"!=typeof n?n.classNames:null,y=s(E),g=e("./utils/defaultArrowRenderer"),b=s(g),v=e("./utils/defaultFilterOptions"),m=s(v),F=e("./utils/defaultMenuRenderer"),C=s(F),O=e("./Async"),A=s(O),w=e("./AsyncCreatable"),P=s(w),T=e("./Creatable"),D=s(T),V=e("./Option"),S=s(V),B=e("./Value"),x=s(B),R=p["default"].PropTypes.oneOfType([p["default"].PropTypes.string,p["default"].PropTypes.node]),M=1,N=p["default"].createClass({displayName:"Select",propTypes:{addLabelText:p["default"].PropTypes.string,"aria-label":p["default"].PropTypes.string,"aria-labelledby":p["default"].PropTypes.string,arrowRenderer:p["default"].PropTypes.func,autoBlur:p["default"].PropTypes.bool,autofocus:p["default"].PropTypes.bool,autosize:p["default"].PropTypes.bool,backspaceRemoves:p["default"].PropTypes.bool,backspaceToRemoveMessage:p["default"].PropTypes.string,className:p["default"].PropTypes.string,clearAllText:R,clearValueText:R,clearable:p["default"].PropTypes.bool,delimiter:p["default"].PropTypes.string,disabled:p["default"].PropTypes.bool,escapeClearsValue:p["default"].PropTypes.bool,filterOption:p["default"].PropTypes.func,filterOptions:p["default"].PropTypes.any,focusedInputValue:p["default"].PropTypes.func,ignoreAccents:p["default"].PropTypes.bool,ignoreCase:p["default"].PropTypes.bool,inputProps:p["default"].PropTypes.object,inputRenderer:p["default"].PropTypes.func,instanceId:p["default"].PropTypes.string,isLoading:p["default"].PropTypes.bool,joinValues:p["default"].PropTypes.bool,labelKey:p["default"].PropTypes.string,matchPos:p["default"].PropTypes.string,matchProp:p["default"].PropTypes.string,menuBuffer:p["default"].PropTypes.number,menuContainerStyle:p["default"].PropTypes.object,menuRenderer:p["default"].PropTypes.func,menuStyle:p["default"].PropTypes.object,multi:p["default"].PropTypes.bool,name:p["default"].PropTypes.string,noResultsText:R,onBlur:p["default"].PropTypes.func,onBlurResetsInput:p["default"].PropTypes.bool,onChange:p["default"].PropTypes.func,onClose:p["default"].PropTypes.func,onCloseResetsInput:p["default"].PropTypes.bool,onFocus:p["default"].PropTypes.func,onInputChange:p["default"].PropTypes.func,onInputKeyDown:p["default"].PropTypes.func,onMenuScrollToBottom:p["default"].PropTypes.func,onOpen:p["default"].PropTypes.func,onValueClick:p["default"].PropTypes.func,openAfterFocus:p["default"].PropTypes.bool,openOnFocus:p["default"].PropTypes.bool,optionClassName:p["default"].PropTypes.string,optionComponent:p["default"].PropTypes.func,optionRenderer:p["default"].PropTypes.func,options:p["default"].PropTypes.array,pageSize:p["default"].PropTypes.number,placeholder:R,required:p["default"].PropTypes.bool,resetValue:p["default"].PropTypes.any,scrollMenuIntoView:p["default"].PropTypes.bool,searchable:p["default"].PropTypes.bool,simpleValue:p["default"].PropTypes.bool,style:p["default"].PropTypes.object,tabIndex:p["default"].PropTypes.string,tabSelectsValue:p["default"].PropTypes.bool,value:p["default"].PropTypes.any,valueComponent:p["default"].PropTypes.func,valueKey:p["default"].PropTypes.string,valueRenderer:p["default"].PropTypes.func,wrapperStyle:p["default"].PropTypes.object,inputValue:p["default"].PropTypes.string},statics:{Async:A["default"],AsyncCreatable:P["default"],Creatable:D["default"]},getDefaultProps:function(){return{addLabelText:'Add "{label}"?',arrowRenderer:b["default"],autosize:!0,backspaceRemoves:!0,backspaceToRemoveMessage:"Press backspace to remove {label}",clearable:!0,clearAllText:"Clear all",clearValueText:"Clear value",delimiter:",",disabled:!1,escapeClearsValue:!0,filterOptions:m["default"],ignoreAccents:!0,ignoreCase:!0,inputProps:{},isLoading:!1,joinValues:!1,labelKey:"label",matchPos:"any",matchProp:"any",menuBuffer:0,menuRenderer:C["default"],multi:!1,noResultsText:"No results found",onBlurResetsInput:!0,onCloseResetsInput:!0,openAfterFocus:!1,optionComponent:S["default"],pageSize:5,placeholder:"Select...",required:!1,scrollMenuIntoView:!0,searchable:!0,simpleValue:!1,tabSelectsValue:!0,valueComponent:x["default"],valueKey:"value",inputValue:""}},getInitialState:function(){return{inputValue:this.props.inputValue,isFocused:!1,isOpen:!1,isPseudoFocused:!1,required:!1}},componentWillMount:function(){this._instancePrefix="react-select-"+(this.props.instanceId||++M)+"-";var e=this.getValueArray(this.props.value);this.props.required&&this.setState({required:this.handleRequired(e[0],this.props.multi)})},componentDidMount:function(){this.props.autofocus&&this.focus()},componentWillReceiveProps:function(e){var t=this.getValueArray(e.value,e);e.required&&this.setState({required:this.handleRequired(t[0],e.multi)}),""!==e.inputValue&&this.setState({inputValue:e.inputValue})},componentWillUpdate:function(e,t){if(t.isOpen!==this.state.isOpen){this.toggleTouchOutsideEvent(t.isOpen);var u=t.isOpen?e.onOpen:e.onClose;u&&u()}},componentDidUpdate:function(e,t){if(this.menu&&this.focused&&this.state.isOpen&&!this.hasScrolledToOption){var u=c["default"].findDOMNode(this.focused),n=c["default"].findDOMNode(this.menu);n.scrollTop=u.offsetTop,this.hasScrolledToOption=!0}else this.state.isOpen||(this.hasScrolledToOption=!1);if(this._scrollToFocusedOptionOnUpdate&&this.focused&&this.menu){this._scrollToFocusedOptionOnUpdate=!1;var s=c["default"].findDOMNode(this.focused),o=c["default"].findDOMNode(this.menu),i=s.getBoundingClientRect(),a=o.getBoundingClientRect();(i.bottom>a.bottom||i.top<a.top)&&(o.scrollTop=s.offsetTop+s.clientHeight-o.offsetHeight)}if(this.props.scrollMenuIntoView&&this.menuContainer){var r=this.menuContainer.getBoundingClientRect();window.innerHeight<r.bottom+this.props.menuBuffer&&window.scrollBy(0,r.bottom+this.props.menuBuffer-window.innerHeight)}e.disabled!==this.props.disabled&&(this.setState({isFocused:!1}),this.closeMenu())},componentWillUnmount:function(){!document.removeEventListener&&document.detachEvent?document.detachEvent("ontouchstart",this.handleTouchOutside):document.removeEventListener("touchstart",this.handleTouchOutside)},toggleTouchOutsideEvent:function(e){e?!document.addEventListener&&document.attachEvent?document.attachEvent("ontouchstart",this.handleTouchOutside):document.addEventListener("touchstart",this.handleTouchOutside):!document.removeEventListener&&document.detachEvent?document.detachEvent("ontouchstart",this.handleTouchOutside):document.removeEventListener("touchstart",this.handleTouchOutside)},handleTouchOutside:function(e){this.wrapper&&!this.wrapper.contains(e.target)&&this.closeMenu()},focus:function(){this.input&&(this.input.focus(),this.props.openAfterFocus&&this.setState({isOpen:!0}))},blurInput:function(){this.input&&this.input.blur()},handleTouchMove:function(e){this.dragging=!0},handleTouchStart:function(e){this.dragging=!1},handleTouchEnd:function(e){this.dragging||this.handleMouseDown(e)},handleTouchEndClearValue:function(e){this.dragging||this.clearValue(e)},handleMouseDown:function(e){if(!(this.props.disabled||"mousedown"===e.type&&0!==e.button)&&"INPUT"!==e.target.tagName){if(this.state.isOpen||e.preventDefault(),e.stopPropagation(),!this.props.searchable)return this.focus(),this.setState({isOpen:!this.state.isOpen});if(this.state.isFocused){this.focus();var t=this.input;"function"==typeof t.getInput&&(t=t.getInput()),t.value="",this.setState({isOpen:!0,isPseudoFocused:!1})}else this._openAfterFocus=!0,this.focus()}},handleMouseDownOnArrow:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||this.state.isOpen&&(e.stopPropagation(),e.preventDefault(),this.closeMenu())},handleMouseDownOnMenu:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this._openAfterFocus=!0,this.focus())},closeMenu:function(){this.props.onCloseResetsInput?this.setState({isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi,inputValue:""}):this.setState({isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi,inputValue:this.state.inputValue}),this.hasScrolledToOption=!1},handleInputFocus:function(e){if(!this.props.disabled){var t=this.state.isOpen||this._openAfterFocus||this.props.openOnFocus;this.props.onFocus&&this.props.onFocus(e);var u={isFocused:!0,isOpen:t};this.props.focusedInputValue&&!this.props.multi&&(u.inputValue=this.props.focusedInputValue(this.props.value)),this.setState(u),this._openAfterFocus=!1}},handleInputBlur:function(e){if(this.menu&&(this.menu===document.activeElement||this.menu.contains(document.activeElement)))return void this.focus();this.props.onBlur&&this.props.onBlur(e);var t={isFocused:!1,isOpen:!1,isPseudoFocused:!1};this.props.onBlurResetsInput&&(t.inputValue=""),this.setState(t)},handleInputChange:function(e){var t=e.target.value;if(this.state.inputValue!==e.target.value&&this.props.onInputChange){var u=this.props.onInputChange(t);null!=u&&"object"!=typeof u&&(t=""+u)}this.setState({isOpen:!0,isPseudoFocused:!1,inputValue:t})},handleKeyDown:function(e){if(!(this.props.disabled||"function"==typeof this.props.onInputKeyDown&&(this.props.onInputKeyDown(e),e.defaultPrevented))){switch(e.keyCode){case 8:return void(!this.state.inputValue&&this.props.backspaceRemoves&&(e.preventDefault(),this.popValue()));case 9:if(e.shiftKey||!this.state.isOpen||!this.props.tabSelectsValue)return;return void this.selectFocusedOption();case 13:if(!this.state.isOpen)return;e.stopPropagation(),this.selectFocusedOption();break;case 27:this.state.isOpen?(this.closeMenu(),e.stopPropagation()):this.props.clearable&&this.props.escapeClearsValue&&(this.clearValue(e),e.stopPropagation());break;case 38:this.focusPreviousOption();break;case 40:this.focusNextOption();break;case 33:this.focusPageUpOption();break;case 34:this.focusPageDownOption();break;case 35:if(e.shiftKey)return;this.focusEndOption();break;case 36:if(e.shiftKey)return;this.focusStartOption();break;default:return}e.preventDefault()}},handleValueClick:function(e,t){this.props.onValueClick&&(this.removeValue(e),this.setState({inputValue:e.label}),this.props.onValueClick(e,t))},handleMenuScroll:function(e){if(this.props.onMenuScrollToBottom){var t=e.target;t.scrollHeight>t.offsetHeight&&!(t.scrollHeight-t.offsetHeight-t.scrollTop)&&this.props.onMenuScrollToBottom()}},handleRequired:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},getOptionLabel:function(e){return e[this.props.labelKey]},getValueArray:function(e,t){var u=this,n="object"==typeof t?t:this.props;if(n.multi){if("string"==typeof e&&(e=e.split(n.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return u.expandValue(e,n)}).filter(function(e){return e})}var s=this.expandValue(e,n);return s?[s]:[]},expandValue:function(e,t){var u=typeof e;if("string"!==u&&"number"!==u&&"boolean"!==u)return e;var n=t.options,s=t.valueKey;if(n)for(var o=0;o<n.length;o++)if(n[o][s]===e)return n[o]},setValue:function(e){var t=this;if(this.props.autoBlur&&this.blurInput(),this.props.onChange){if(this.props.required){var u=this.handleRequired(e,this.props.multi);this.setState({required:u})}this.props.simpleValue&&e&&(e=this.props.multi?e.map(function(e){return e[t.props.valueKey]}).join(this.props.delimiter):e[this.props.valueKey]),this.props.onChange(e)}},selectValue:function(e){var t=this;this.hasScrolledToOption=!1,this.props.multi?this.setState({inputValue:"",focusedIndex:null},function(){t.addValue(e)}):this.setState({isOpen:!1,inputValue:"",isPseudoFocused:this.state.isFocused},function(){t.setValue(e)})},addValue:function(e){var t=this.getValueArray(this.props.value);this.setValue(t.concat(e))},popValue:function(){var e=this.getValueArray(this.props.value);e.length&&e[e.length-1].clearableValue!==!1&&this.setValue(e.slice(0,e.length-1))},removeValue:function(e){var t=this.getValueArray(this.props.value);this.setValue(t.filter(function(t){return t!==e})),this.focus()},clearValue:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.setValue(this.getResetValue()),this.setState({isOpen:!1,inputValue:""},this.focus))},getResetValue:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusPageUpOption:function(){this.focusAdjacentOption("page_up")},focusPageDownOption:function(){this.focusAdjacentOption("page_down")},focusStartOption:function(){this.focusAdjacentOption("start")},focusEndOption:function(){this.focusAdjacentOption("end")},focusAdjacentOption:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this._focusedOption||t["next"===e?0:t.length-1].option});if(t.length){for(var u=-1,n=0;n<t.length;n++)if(this._focusedOption===t[n].option){u=n;break}if("next"===e&&u!==-1)u=(u+1)%t.length;else if("previous"===e)u>0?u-=1:u=t.length-1;else if("start"===e)u=0;else if("end"===e)u=t.length-1;else if("page_up"===e){var s=u-this.props.pageSize;u=s<0?0:s}else if("page_down"===e){var s=u+this.props.pageSize;u=s>t.length-1?t.length-1:s}u===-1&&(u=0),this.setState({focusedIndex:t[u].index,focusedOption:t[u].option})}},getFocusedOption:function(){return this._focusedOption},getInputValue:function(){return this.state.inputValue},selectFocusedOption:function(){var e=this.filterOptions(null),t=this._focusedOption&&e.length>0;return this.props.allowCreate&&!t?this.selectValue(this.state.inputValue):this._focusedOption?this.selectValue(this._focusedOption):void 0},renderLoading:function(){if(this.props.isLoading)return p["default"].createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},p["default"].createElement("span",{className:"Select-loading"}))},renderValue:function(e,t){var u=this,n=this.props.valueRenderer||this.getOptionLabel,s=this.props.valueComponent;if(!e.length)return this.state.inputValue?null:p["default"].createElement("div",{className:"Select-placeholder"},this.props.placeholder);var o=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return p["default"].createElement(s,{id:u._instancePrefix+"-value-"+t,instancePrefix:u._instancePrefix,disabled:u.props.disabled||e.clearableValue===!1,key:"value-"+t+"-"+e[u.props.valueKey],onClick:o,onRemove:u.removeValue,value:e},n(e,t),p["default"].createElement("span",{className:"Select-aria-only"}," "))}):this.state.inputValue?void 0:(t&&(o=null),p["default"].createElement(s,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:o,value:e[0]},n(e[0])))},renderInput:function(e,t){var u=this;if(this.props.inputRenderer)return this.props.inputRenderer();var n,s=(0,y["default"])("Select-input",this.props.inputProps.className),a=!!this.state.isOpen,l=(0,y["default"])((n={},i(n,this._instancePrefix+"-list",a),i(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),d=r({},this.props.inputProps,{role:"combobox","aria-expanded":""+a,"aria-owns":l,"aria-haspopup":""+a,"aria-activedescendant":a?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:s,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return u.input=e},required:this.state.required,value:this.state.inputValue});if(this.props.disabled||!this.props.searchable){var c=this.props.inputProps,f=(c.inputClassName,o(c,["inputClassName"]));return p["default"].createElement("div",r({},f,{role:"combobox","aria-expanded":a,"aria-owns":a?this._instancePrefix+"-list":this._instancePrefix+"-value","aria-activedescendant":a?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value",className:s,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return u.input=e},"aria-readonly":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?p["default"].createElement(h["default"],r({},d,{minWidth:"5"})):p["default"].createElement("div",{className:s},p["default"].createElement("input",d))},renderClear:function(){if(this.props.clearable&&this.props.value&&0!==this.props.value&&(!this.props.multi||this.props.value.length)&&!this.props.disabled&&!this.props.isLoading)return p["default"].createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},p["default"].createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"×"}}))},renderArrow:function(){var e=this.handleMouseDownOnArrow,t=this.props.arrowRenderer({onMouseDown:e});return p["default"].createElement("span",{className:"Select-arrow-zone",onMouseDown:e},t)},filterOptions:function _(e){var t=this.state.inputValue,u=this.props.options||[];if(this.props.filterOptions){var _="function"==typeof this.props.filterOptions?this.props.filterOptions:m["default"];return _(u,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey})}return u},onOptionRef:function(e,t){t&&(this.focused=e)},renderMenu:function(e,t,u){return e&&e.length?this.props.menuRenderer({focusedOption:u,focusOption:this.focusOption,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?p["default"].createElement("div",{className:"Select-noresults" | ||
},this.props.noResultsText):null},renderHiddenField:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var u=e.map(function(e){return a(e[t.props.valueKey])}).join(this.props.delimiter);return p["default"].createElement("input",{type:"hidden",ref:function(e){return t.value=e},name:this.props.name,value:u,disabled:this.props.disabled})}return e.map(function(e,u){return p["default"].createElement("input",{key:"hidden."+u,type:"hidden",ref:"value"+u,name:t.props.name,value:a(e[t.props.valueKey]),disabled:t.props.disabled})})}},getFocusableOptionIndex:function(e){var t=this._visibleOptions;if(!t.length)return null;var u=this.state.focusedOption||e;if(u&&!u.disabled){var n=t.indexOf(u);if(n!==-1)return n}for(var s=0;s<t.length;s++)if(!t[s].disabled)return s;return null},renderOuter:function(e,t,u){var n=this,s=this.renderMenu(e,t,u);if(!s)return null;var o=p["default"].createElement("div",{ref:function(e){return n.menu=e},role:"listbox",className:"Select-menu",id:this._instancePrefix+"-list",style:this.props.menuStyle,onScroll:this.handleMenuScroll,onMouseDown:this.handleMouseDownOnMenu},s);return p["default"].createElement("div",{ref:function(e){return n.menuContainer=e},className:"Select-menu-outer",style:this.props.menuContainerStyle},o)},render:function(){var e=this,t=this.getValueArray(this.props.value),u=this._visibleOptions=this.filterOptions(this.props.multi?this.getValueArray(this.props.value):null),n=this.state.isOpen;this.props.multi&&!u.length&&t.length&&!this.state.inputValue&&(n=!1);var s=this.getFocusableOptionIndex(t[0]),o=null;o=null!==s?this._focusedOption=u[s]:this._focusedOption=null;var i=(0,y["default"])("Select",this.props.className,{"Select--multi":this.props.multi,"Select--single":!this.props.multi,"is-disabled":this.props.disabled,"is-focused":this.state.isFocused,"is-loading":this.props.isLoading,"is-open":n,"is-pseudo-focused":this.state.isPseudoFocused,"is-searchable":this.props.searchable,"has-value":t.length}),a=null;return this.props.multi&&!this.props.disabled&&t.length&&!this.state.inputValue&&this.state.isFocused&&this.props.backspaceRemoves&&(a=p["default"].createElement("span",{id:this._instancePrefix+"-backspace-remove-message",className:"Select-aria-only","aria-live":"assertive"},this.props.backspaceToRemoveMessage.replace("{label}",t[t.length-1][this.props.labelKey]))),p["default"].createElement("div",{ref:function(t){return e.wrapper=t},className:i,style:this.props.wrapperStyle},this.renderHiddenField(t),p["default"].createElement("div",{ref:function(t){return e.control=t},className:"Select-control",style:this.props.style,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleTouchEnd,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},p["default"].createElement("span",{className:"Select-multi-value-wrapper",id:this._instancePrefix+"-value"},this.renderValue(t,n),this.renderInput(t,s)),a,this.renderLoading(),this.renderClear(),this.renderArrow()),n?this.renderOuter(u,this.props.multi?null:t,o):null)}});u["default"]=N,t.exports=u["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./Async":1,"./AsyncCreatable":2,"./Creatable":3,"./Option":4,"./Value":6,"./utils/defaultArrowRenderer":7,"./utils/defaultFilterOptions":8,"./utils/defaultMenuRenderer":9}],6:[function(e,t,u){(function(e){"use strict";function u(e){return e&&e.__esModule?e:{"default":e}}var n="undefined"!=typeof window?window.React:"undefined"!=typeof e?e.React:null,s=u(n),o="undefined"!=typeof window?window.classNames:"undefined"!=typeof e?e.classNames:null,i=u(o),a=s["default"].createClass({displayName:"Value",propTypes:{children:s["default"].PropTypes.node,disabled:s["default"].PropTypes.bool,id:s["default"].PropTypes.string,onClick:s["default"].PropTypes.func,onRemove:s["default"].PropTypes.func,value:s["default"].PropTypes.object.isRequired},handleMouseDown:function(e){if("mousedown"!==e.type||0===e.button)return this.props.onClick?(e.stopPropagation(),void this.props.onClick(this.props.value,e)):void(this.props.value.href&&e.stopPropagation())},onRemove:function(e){e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.value)},handleTouchEndRemove:function(e){this.dragging||this.onRemove(e)},handleTouchMove:function(e){this.dragging=!0},handleTouchStart:function(e){this.dragging=!1},renderRemoveIcon:function(){if(!this.props.disabled&&this.props.onRemove)return s["default"].createElement("span",{className:"Select-value-icon","aria-hidden":"true",onMouseDown:this.onRemove,onTouchEnd:this.handleTouchEndRemove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},"×")},renderLabel:function(){var e="Select-value-label";return this.props.onClick||this.props.value.href?s["default"].createElement("a",{className:e,href:this.props.value.href,target:this.props.value.target,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},this.props.children):s["default"].createElement("span",{className:e,role:"option","aria-selected":"true",id:this.props.id},this.props.children)},render:function(){return s["default"].createElement("div",{className:(0,i["default"])("Select-value",this.props.value.className),style:this.props.value.style,title:this.props.value.title},s["default"].createElement("div",{className:"Select-value-inner"},this.renderRemoveIcon(),this.renderLabel()))}});t.exports=a}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(e,t,u){(function(e){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e){var t=e.onMouseDown;return i["default"].createElement("span",{className:"Select-arrow",onMouseDown:t})}Object.defineProperty(u,"__esModule",{value:!0}),u["default"]=s;var o="undefined"!=typeof window?window.React:"undefined"!=typeof e?e.React:null,i=n(o);t.exports=u["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(e,t,u){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e,t,u,n){var s=this;return n.ignoreAccents&&(t=(0,i["default"])(t)),n.ignoreCase&&(t=t.toLowerCase()),u&&(u=u.map(function(e){return e[n.valueKey]})),e.filter(function(e){if(u&&u.indexOf(e[n.valueKey])>-1)return!1;if(n.filterOption)return n.filterOption.call(s,e,t);if(!t)return!0;var o=String(e[n.valueKey]),a=String(e[n.labelKey]);return n.ignoreAccents&&("label"!==n.matchProp&&(o=(0,i["default"])(o)),"value"!==n.matchProp&&(a=(0,i["default"])(a))),n.ignoreCase&&("label"!==n.matchProp&&(o=o.toLowerCase()),"value"!==n.matchProp&&(a=a.toLowerCase())),"start"===n.matchPos?"label"!==n.matchProp&&o.substr(0,t.length)===t||"value"!==n.matchProp&&a.substr(0,t.length)===t:"label"!==n.matchProp&&o.indexOf(t)>=0||"value"!==n.matchProp&&a.indexOf(t)>=0})}var o=e("./stripDiacritics"),i=n(o);t.exports=s},{"./stripDiacritics":10}],9:[function(e,t,u){(function(e){"use strict";function u(e){return e&&e.__esModule?e:{"default":e}}function n(e){var t=e.focusedOption,u=e.instancePrefix,n=(e.labelKey,e.onFocus),s=e.onSelect,i=e.optionClassName,r=e.optionComponent,l=e.optionRenderer,p=e.options,d=e.valueArray,c=e.valueKey,f=e.onOptionRef,h=r;return p.map(function(e,r){var p=d&&d.indexOf(e)>-1,E=e===t,y=(0,o["default"])(i,{"Select-option":!0,"is-selected":p,"is-focused":E,"is-disabled":e.disabled});return a["default"].createElement(h,{className:y,instancePrefix:u,isDisabled:e.disabled,isFocused:E,isSelected:p,key:"option-"+r+"-"+e[c],onFocus:n,onSelect:s,option:e,optionIndex:r,ref:function(e){f(e,E)}},l(e,r))})}var s="undefined"!=typeof window?window.classNames:"undefined"!=typeof e?e.classNames:null,o=u(s),i="undefined"!=typeof window?window.React:"undefined"!=typeof e?e.React:null,a=u(i);t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],10:[function(e,t,u){"use strict";var n=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];t.exports=function(e){for(var t=0;t<n.length;t++)e=e.replace(n[t].letters,n[t].base);return e}},{}]},{},[5])(5)}); | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Select=e()}}(function(){return function e(t,n,u){function o(s,r){if(!n[s]){if(!t[s]){var a="function"==typeof require&&require;if(!r&&a)return a(s,!0);if(i)return i(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var p=n[s]={exports:{}};t[s][0].call(p.exports,function(e){var n=t[s][1][e];return o(n?n:e)},p,p.exports,e,t,n,u)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<u.length;s++)o(u[s]);return o}({1:[function(e,t,n){"use strict";function u(e){return e}function o(e,t,n){function o(e,t){var n=y.hasOwnProperty(t)?y[t]:null;F.hasOwnProperty(t)&&a("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&a("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function i(e,n){if(n){a("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),a(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var u=e.prototype,i=u.__reactAutoBindPairs;n.hasOwnProperty(l)&&g.mixins(e,n.mixins);for(var s in n)if(n.hasOwnProperty(s)&&s!==l){var r=n[s],p=u.hasOwnProperty(s);if(o(p,s),g.hasOwnProperty(s))g[s](e,r);else{var c=y.hasOwnProperty(s),h="function"==typeof r,E=h&&!c&&!p&&n.autobind!==!1;if(E)i.push(s,r),u[s]=r;else if(p){var b=y[s];a(c&&("DEFINE_MANY_MERGED"===b||"DEFINE_MANY"===b),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",b,s),"DEFINE_MANY_MERGED"===b?u[s]=f(u[s],r):"DEFINE_MANY"===b&&(u[s]=d(u[s],r))}else u[s]=r}}}else;}function p(e,t){if(t)for(var n in t){var u=t[n];if(t.hasOwnProperty(n)){var o=n in g;a(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var i=n in e;a(!i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=u}}}function c(e,t){a(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(a(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function f(e,t){return function(){var n=e.apply(this,arguments),u=t.apply(this,arguments);if(null==n)return u;if(null==u)return n;var o={};return c(o,n),c(o,u),o}}function d(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function h(e,t){var n=t.bind(e);return n}function E(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var u=t[n],o=t[n+1];e[u]=h(e,o)}}function b(e){var t=u(function(e,u,o){this.__reactAutoBindPairs.length&&E(this),this.props=e,this.context=u,this.refs=r,this.updater=o||n,this.state=null;var i=this.getInitialState?this.getInitialState():null;a("object"==typeof i&&!Array.isArray(i),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=i});t.prototype=new C,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],v.forEach(i.bind(null,t)),i(t,m),i(t,e),i(t,O),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),a(t.prototype.render,"createClass(...): Class specification must implement a `render` method.");for(var o in y)t.prototype[o]||(t.prototype[o]=null);return t}var v=[],y={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},g={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)i(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=s({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=s({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=f(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=s({},e.propTypes,t)},statics:function(e,t){p(e,t)},autobind:function(){}},m={componentDidMount:function(){this.__isMounted=!0}},O={componentWillUnmount:function(){this.__isMounted=!1}},F={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},C=function(){};return s(C.prototype,e.prototype,F),b}var i,s=e("object-assign"),r=e("fbjs/lib/emptyObject"),a=e("fbjs/lib/invariant"),l="mixins";i={},t.exports=o},{"fbjs/lib/emptyObject":5,"fbjs/lib/invariant":6,"fbjs/lib/warning":7,"object-assign":3}],2:[function(e,t,n){"use strict";var u=e("react"),o=e("./factory");if("undefined"==typeof u)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var i=(new u.Component).updater;t.exports=o(u.Component,u.isValidElement,i)},{"./factory":1,react:void 0}],3:[function(e,t,n){"use strict";function u(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var u=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==u.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(i){return!1}}var i=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;t.exports=o()?Object.assign:function(e,t){for(var n,o,a=u(e),l=1;l<arguments.length;l++){n=Object(arguments[l]);for(var p in n)s.call(n,p)&&(a[p]=n[p]);if(i){o=i(n);for(var c=0;c<o.length;c++)r.call(n,o[c])&&(a[o[c]]=n[o[c]])}}return a}},{}],4:[function(e,t,n){"use strict";function u(e){return function(){return e}}var o=function(){};o.thatReturns=u,o.thatReturnsFalse=u(!1),o.thatReturnsTrue=u(!0),o.thatReturnsNull=u(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},t.exports=o},{}],5:[function(e,t,n){"use strict";var u={};t.exports=u},{}],6:[function(e,t,n){"use strict";function u(e,t,n,u,i,s,r,a){if(o(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[n,u,i,s,r,a],c=0;l=new Error(t.replace(/%s/g,function(){return p[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var o=function(e){};t.exports=u},{}],7:[function(e,t,n){"use strict";var u=e("./emptyFunction"),o=u;t.exports=o},{"./emptyFunction":4}],8:[function(e,t,n){"use strict";function u(e,t,n,u,o){}t.exports=u},{"./lib/ReactPropTypesSecret":12,"fbjs/lib/invariant":6,"fbjs/lib/warning":7}],9:[function(e,t,n){"use strict";var u=e("fbjs/lib/emptyFunction"),o=e("fbjs/lib/invariant"),i=e("./lib/ReactPropTypesSecret");t.exports=function(){function e(e,t,n,u,s,r){r!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=u,n.PropTypes=n,n}},{"./lib/ReactPropTypesSecret":12,"fbjs/lib/emptyFunction":4,"fbjs/lib/invariant":6}],10:[function(e,t,n){"use strict";var u=e("fbjs/lib/emptyFunction"),o=e("fbjs/lib/invariant"),i=e("fbjs/lib/warning"),s=e("object-assign"),r=e("./lib/ReactPropTypesSecret"),a=e("./checkPropTypes");t.exports=function(e,t){function n(e){var t=e&&(x&&e[x]||e[R]);if("function"==typeof t)return t}function l(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function p(e){this.message=e,this.stack=""}function c(e){function n(n,u,i,s,a,l,c){if(s=s||S,l=l||i,c!==r)if(t)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else;return null==u[i]?n?new p(null===u[i]?"The "+a+" `"+l+"` is marked as required "+("in `"+s+"`, but its value is `null`."):"The "+a+" `"+l+"` is marked as required in "+("`"+s+"`, but its value is `undefined`.")):null:e(u,i,s,a,l)}var u=n.bind(null,!1);return u.isRequired=n.bind(null,!0),u}function f(e){function t(t,n,u,o,i,s){var r=t[n],a=A(r);if(a!==e){var l=D(r);return new p("Invalid "+o+" `"+i+"` of type "+("`"+l+"` supplied to `"+u+"`, expected ")+("`"+e+"`."))}return null}return c(t)}function d(){return c(u.thatReturnsNull)}function h(e){function t(t,n,u,o,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+u+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){var a=A(s);return new p("Invalid "+o+" `"+i+"` of type "+("`"+a+"` supplied to `"+u+"`, expected an array."))}for(var l=0;l<s.length;l++){var c=e(s,l,u,o,i+"["+l+"]",r);if(c instanceof Error)return c}return null}return c(t)}function E(){function t(t,n,u,o,i){var s=t[n];if(!e(s)){var r=A(s);return new p("Invalid "+o+" `"+i+"` of type "+("`"+r+"` supplied to `"+u+"`, expected a single ReactElement."))}return null}return c(t)}function b(e){function t(t,n,u,o,i){if(!(t[n]instanceof e)){var s=e.name||S,r=T(t[n]);return new p("Invalid "+o+" `"+i+"` of type "+("`"+r+"` supplied to `"+u+"`, expected ")+("instance of `"+s+"`."))}return null}return c(t)}function v(e){function t(t,n,u,o,i){for(var s=t[n],r=0;r<e.length;r++)if(l(s,e[r]))return null;var a=JSON.stringify(e);return new p("Invalid "+o+" `"+i+"` of value `"+s+"` "+("supplied to `"+u+"`, expected one of "+a+"."))}return Array.isArray(e)?c(t):u.thatReturnsNull}function y(e){function t(t,n,u,o,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+u+"` has invalid PropType notation inside objectOf.");var s=t[n],a=A(s);if("object"!==a)return new p("Invalid "+o+" `"+i+"` of type "+("`"+a+"` supplied to `"+u+"`, expected an object."));for(var l in s)if(s.hasOwnProperty(l)){var c=e(s,l,u,o,i+"."+l,r);if(c instanceof Error)return c}return null}return c(t)}function g(e){function t(t,n,u,o,i){for(var s=0;s<e.length;s++){var a=e[s];if(null==a(t,n,u,o,i,r))return null}return new p("Invalid "+o+" `"+i+"` supplied to "+("`"+u+"`."))}if(!Array.isArray(e))return u.thatReturnsNull;for(var n=0;n<e.length;n++){var o=e[n];if("function"!=typeof o)return i(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",P(o),n),u.thatReturnsNull}return c(t)}function m(){function e(e,t,n,u,o){return C(e[t])?null:new p("Invalid "+u+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return c(e)}function O(e){function t(t,n,u,o,i){var s=t[n],a=A(s);if("object"!==a)return new p("Invalid "+o+" `"+i+"` of type `"+a+"` "+("supplied to `"+u+"`, expected `object`."));for(var l in e){var c=e[l];if(c){var f=c(s,l,u,o,i+"."+l,r);if(f)return f}}return null}return c(t)}function F(e){function t(t,n,u,o,i){var a=t[n],l=A(a);if("object"!==l)return new p("Invalid "+o+" `"+i+"` of type `"+l+"` "+("supplied to `"+u+"`, expected `object`."));var c=s({},t[n],e);for(var f in c){var d=e[f];if(!d)return new p("Invalid "+o+" `"+i+"` key `"+f+"` supplied to `"+u+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=d(a,f,u,o,i+"."+f,r);if(h)return h}return null}return c(t)}function C(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(C);if(null===t||e(t))return!0;var u=n(t);if(!u)return!1;var o,i=u.call(t);if(u!==t.entries){for(;!(o=i.next()).done;)if(!C(o.value))return!1}else for(;!(o=i.next()).done;){var s=o.value;if(s&&!C(s[1]))return!1}return!0;default:return!1}}function w(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function A(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":w(t,e)?"symbol":t}function D(e){if("undefined"==typeof e||null===e)return""+e;var t=A(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function P(e){var t=D(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function T(e){return e.constructor&&e.constructor.name?e.constructor.name:S}var x="function"==typeof Symbol&&Symbol.iterator,R="@@iterator",S="<<anonymous>>",N={array:f("array"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:d(),arrayOf:h,element:E(),instanceOf:b,node:m(),objectOf:y,oneOf:v,oneOfType:g,shape:O,exact:F};return p.prototype=Error.prototype,N.checkPropTypes=a,N.PropTypes=N,N}},{"./checkPropTypes":8,"./lib/ReactPropTypesSecret":12,"fbjs/lib/emptyFunction":4,"fbjs/lib/invariant":6,"fbjs/lib/warning":7,"object-assign":13}],11:[function(e,t,n){t.exports=e("./factoryWithThrowingShims")()},{"./factoryWithThrowingShims":9,"./factoryWithTypeCheckers":10}],12:[function(e,t,n){"use strict";var u="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=u},{}],13:[function(e,t,n){arguments[4][3][0].apply(n,arguments)},{dup:3}],14:[function(e,t,n){(function(u){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){return d["default"].createElement(v["default"],e)}Object.defineProperty(n,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(e[u]=n[u])}return e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var u=t[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,n,u){return n&&e(t.prototype,n),u&&e(t,u),t}}(),c=function(e,t,n){for(var u=!0;u;){var o=e,i=t,s=n;u=!1,null===o&&(o=Function.prototype);var r=Object.getOwnPropertyDescriptor(o,i);if(void 0!==r){if("value"in r)return r.value;var a=r.get;if(void 0===a)return;return a.call(s)}var l=Object.getPrototypeOf(o);if(null===l)return;e=l,t=i,n=s,u=!0,r=l=void 0}},f="undefined"!=typeof window?window.React:"undefined"!=typeof u?u.React:null,d=o(f),h=e("prop-types"),E=o(h),b=e("./Select"),v=o(b),y=e("./utils/stripDiacritics"),g=o(y),m={autoload:E["default"].bool.isRequired,cache:E["default"].any,children:E["default"].func.isRequired,ignoreAccents:E["default"].bool,ignoreCase:E["default"].bool,loadingPlaceholder:E["default"].oneOfType([E["default"].string,E["default"].node]),loadOptions:E["default"].func.isRequired,options:E["default"].array.isRequired,placeholder:E["default"].oneOfType([E["default"].string,E["default"].node]),noResultsText:E["default"].oneOfType([E["default"].string,E["default"].node]),searchPromptText:E["default"].oneOfType([E["default"].string,E["default"].node]),onInputChange:E["default"].func,value:E["default"].any},O={autoload:!0,cache:{},children:a,ignoreAccents:!0,ignoreCase:!0,loadingPlaceholder:"Loading...",options:[],searchPromptText:"Type to search"},F=function(e){function t(e,n){s(this,t),c(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e,n),this.state={isLoading:!1,options:e.options},this._onInputChange=this._onInputChange.bind(this)}return r(t,e),p(t,[{key:"componentDidMount",value:function(){var e=this.props.autoload;e&&this.loadOptions("")}},{key:"componentWillUpdate",value:function(e,t){var n=this,u=["options"];u.forEach(function(t){n.props[t]!==e[t]&&n.setState(i({},t,e[t]))})}},{key:"clearOptions",value:function(){this.setState({options:[]})}},{key:"loadOptions",value:function n(e){var t=this,u=this.props,o=u.cache,n=u.loadOptions;if(o&&o.hasOwnProperty(e))return void this.setState({options:o[e]});var i=function r(n,u){if(r===t._callback){t._callback=null;var i=u&&u.options||[];o&&(o[e]=i),t.setState({isLoading:!1,options:i})}};this._callback=i;var s=n(e,i);return s&&s.then(function(e){return i(null,e)},function(e){return i(e)}),this._callback&&!this.state.isLoading&&this.setState({isLoading:!0}),e}},{key:"_onInputChange",value:function(e){var t=this.props,n=t.ignoreAccents,u=t.ignoreCase,o=t.onInputChange;return n&&(e=(0,g["default"])(e)),u&&(e=e.toLowerCase()),o&&o(e),this.loadOptions(e)}},{key:"inputValue",value:function(){return this.select?this.select.state.inputValue:""}},{key:"noResultsText",value:function u(){var e=this.props,t=e.loadingPlaceholder,u=e.noResultsText,n=e.searchPromptText,o=this.state.isLoading,i=this.inputValue();return o?t:i&&u?u:n}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,u=t.loadingPlaceholder,o=t.placeholder,i=this.state,s=i.isLoading,r=i.options,a={noResultsText:this.noResultsText(),placeholder:s?u:o,options:s&&u?[]:r,ref:function(t){return e.select=t},onChange:function(t){e.props.value&&t.length>e.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(l({},this.props,a,{isLoading:s,onInputChange:this._onInputChange}))}}]),t}(f.Component);n["default"]=F,F.propTypes=m,F.defaultProps=O,t.exports=n["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./Select":18,"./utils/stripDiacritics":23,"prop-types":11}],15:[function(e,t,n){(function(n){"use strict";function u(e){return e&&e.__esModule?e:{"default":e}}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(e[u]=n[u])}return e},i="undefined"!=typeof window?window.React:"undefined"!=typeof n?n.React:null,s=u(i),r=e("prop-types"),a=(u(r),e("create-react-class")),l=u(a),p=e("./Select"),c=u(p),f=(0,l["default"])({displayName:"AsyncCreatableSelect",render:function(){var e=this;return s["default"].createElement(c["default"].Async,this.props,function(t){return s["default"].createElement(c["default"].Creatable,e.props,function(e){return s["default"].createElement(c["default"],o({},t,e,{onInputChange:function(n){return e.onInputChange(n),t.onInputChange(n)}}))})})}});t.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./Select":18,"create-react-class":2,"prop-types":11}],16:[function(e,t,n){(function(n){"use strict";function u(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var u in e)t.indexOf(u)>=0||Object.prototype.hasOwnProperty.call(e,u)&&(n[u]=e[u]);return n}function i(e){return d["default"].createElement(g["default"],e)}function s(e){var t=e.option,n=e.options,u=e.labelKey,o=e.valueKey;return 0===n.filter(function(e){return e[u]===t[u]||e[o]===t[o]}).length}function r(e){var t=e.label;return!!t}function a(e){var t=e.label,n=e.labelKey,u=e.valueKey,o={};return o[u]=t,o[n]=t,o.className="Select-create-option-placeholder",o}function l(e){return'Create option "'+e+'"'}function p(e){var t=e.keyCode;switch(t){case 9:case 13:case 188:return!0}return!1}var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(e[u]=n[u])}return e},f="undefined"!=typeof window?window.React:"undefined"!=typeof n?n.React:null,d=u(f),h=e("prop-types"),E=u(h),b=e("create-react-class"),v=u(b),y=e("./Select"),g=u(y),m=e("./utils/defaultFilterOptions"),O=u(m),F=e("./utils/defaultMenuRenderer"),C=u(F),w=(0,v["default"])({displayName:"CreatableSelect",propTypes:{children:E["default"].func,filterOptions:E["default"].any,isOptionUnique:E["default"].func,isValidNewOption:E["default"].func,menuRenderer:E["default"].any,newOptionCreator:E["default"].func,options:E["default"].array,promptTextCreator:E["default"].func,shouldKeyDownEventCreateNewOption:E["default"].func},statics:{isOptionUnique:s,isValidNewOption:r,newOptionCreator:a,promptTextCreator:l,shouldKeyDownEventCreateNewOption:p},getDefaultProps:function(){return{filterOptions:O["default"],isOptionUnique:s,isValidNewOption:r,menuRenderer:C["default"],newOptionCreator:a,promptTextCreator:l,shouldKeyDownEventCreateNewOption:p}},createNewOption:function(){var e=this.props,t=e.isValidNewOption,n=e.newOptionCreator,u=e.options,o=void 0===u?[]:u;e.shouldKeyDownEventCreateNewOption;if(t({label:this.inputValue})){var i=n({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),s=this.isOptionUnique({option:i});s&&(o.unshift(i),this.select.selectValue(i))}},filterOptions:function A(){var e=this.props,A=e.filterOptions,t=e.isValidNewOption,n=(e.options,e.promptTextCreator),u=arguments[2]||[],o=A.apply(void 0,arguments)||[];if(t({label:this.inputValue})){var i=this.props.newOptionCreator,s=i({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),r=this.isOptionUnique({option:s,options:u.concat(o)});if(r){var a=n(this.inputValue);this._createPlaceholderOption=i({label:a,labelKey:this.labelKey,valueKey:this.valueKey}),o.unshift(this._createPlaceholderOption)}}return o},isOptionUnique:function D(e){var t=e.option,n=e.options,D=this.props.isOptionUnique;return n=n||this.select.filterOptions(),D({labelKey:this.labelKey,option:t,options:n,valueKey:this.valueKey})},menuRenderer:function P(e){var P=this.props.menuRenderer;return P(c({},e,{onSelect:this.onOptionSelect}))},onInputChange:function(e){this.inputValue=e},onInputKeyDown:function T(e){var t=this.props,n=t.shouldKeyDownEventCreateNewOption,T=t.onInputKeyDown,u=this.select.getFocusedOption();u&&u===this._createPlaceholderOption&&n({keyCode:e.keyCode})?(this.createNewOption(),e.preventDefault()):T&&T(e)},onOptionSelect:function(e,t){e===this._createPlaceholderOption?this.createNewOption():this.select.selectValue(e)},render:function(){var e=this,t=this.props,n=t.children,u=void 0===n?i:n,s=(t.newOptionCreator,t.shouldKeyDownEventCreateNewOption,o(t,["children","newOptionCreator","shouldKeyDownEventCreateNewOption"])),r=c({},s,{allowCreate:!0,filterOptions:this.filterOptions,menuRenderer:this.menuRenderer,onInputChange:this.onInputChange,onInputKeyDown:this.onInputKeyDown,ref:function(t){e.select=t,t&&(e.labelKey=t.props.labelKey,e.valueKey=t.props.valueKey)}});return u(r)}});t.exports=w}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./Select":18,"./utils/defaultFilterOptions":21,"./utils/defaultMenuRenderer":22,"create-react-class":2,"prop-types":11}],17:[function(e,t,n){(function(n){"use strict";function u(e){return e&&e.__esModule?e:{"default":e}}var o="undefined"!=typeof window?window.React:"undefined"!=typeof n?n.React:null,i=u(o),s=e("prop-types"),r=u(s),a=e("create-react-class"),l=u(a),p="undefined"!=typeof window?window.classNames:"undefined"!=typeof n?n.classNames:null,c=u(p),f=(0,l["default"])({propTypes:{children:r["default"].node,className:r["default"].string,instancePrefix:r["default"].string.isRequired,isDisabled:r["default"].bool,isFocused:r["default"].bool,isSelected:r["default"].bool,onFocus:r["default"].func,onSelect:r["default"].func,onUnfocus:r["default"].func,option:r["default"].object.isRequired,optionIndex:r["default"].number},blockEvent:function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)},handleMouseDown:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)},handleMouseEnter:function(e){this.onFocus(e)},handleMouseMove:function(e){this.onFocus(e)},handleTouchEnd:function(e){this.dragging||this.handleMouseDown(e)},handleTouchMove:function(e){this.dragging=!0},handleTouchStart:function(e){this.dragging=!1},onFocus:function(e){this.props.isFocused||this.props.onFocus(this.props.option,e)},render:function(){var e=this.props,t=e.option,n=e.instancePrefix,u=e.optionIndex,o=(0,c["default"])(this.props.className,t.className);return t.disabled?i["default"].createElement("div",{className:o,onMouseDown:this.blockEvent,onClick:this.blockEvent},this.props.children):i["default"].createElement("div",{className:o,style:t.style,role:"option",onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,id:n+"-option-"+u,title:t.title},this.props.children)}});t.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"create-react-class":2,"prop-types":11}],18:[function(e,t,n){(function(u){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){var n={};for(var u in e)t.indexOf(u)>=0||Object.prototype.hasOwnProperty.call(e,u)&&(n[u]=e[u]);return n}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){var t=typeof e;return"string"===t?e:"object"===t?JSON.stringify(e):"number"===t||"boolean"===t?String(e):""}Object.defineProperty(n,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(e[u]=n[u])}return e},l="undefined"!=typeof window?window.React:"undefined"!=typeof u?u.React:null,p=o(l),c="undefined"!=typeof window?window.ReactDOM:"undefined"!=typeof u?u.ReactDOM:null,f=o(c),d=e("create-react-class"),h=o(d),E=e("prop-types"),b=o(E),v="undefined"!=typeof window?window.AutosizeInput:"undefined"!=typeof u?u.AutosizeInput:null,y=o(v),g="undefined"!=typeof window?window.classNames:"undefined"!=typeof u?u.classNames:null,m=o(g),O=e("./utils/defaultArrowRenderer"),F=o(O),C=e("./utils/defaultFilterOptions"),w=o(C),A=e("./utils/defaultMenuRenderer"),D=o(A),P=e("./Async"),T=o(P),x=e("./AsyncCreatable"),R=o(x),S=e("./Creatable"),N=o(S),_=e("./Option"),V=o(_),I=e("./Value"),M=o(I),j=b["default"].oneOfType([b["default"].string,b["default"].node]),B=1,k=(0,h["default"])({displayName:"Select",propTypes:{addLabelText:b["default"].string,"aria-label":b["default"].string,"aria-labelledby":b["default"].string,arrowRenderer:b["default"].func,autoBlur:b["default"].bool,autofocus:b["default"].bool,autosize:b["default"].bool,backspaceRemoves:b["default"].bool,backspaceToRemoveMessage:b["default"].string,className:b["default"].string,clearAllText:j,clearValueText:j,clearable:b["default"].bool,delimiter:b["default"].string,disabled:b["default"].bool,escapeClearsValue:b["default"].bool,filterOption:b["default"].func,filterOptions:b["default"].any,focusedInputValue:b["default"].func,ignoreAccents:b["default"].bool,ignoreCase:b["default"].bool,inputProps:b["default"].object,inputRenderer:b["default"].func,instanceId:b["default"].string,isLoading:b["default"].bool,joinValues:b["default"].bool,labelKey:b["default"].string,matchPos:b["default"].string,matchProp:b["default"].string,menuBuffer:b["default"].number,menuContainerStyle:b["default"].object,menuRenderer:b["default"].func,menuStyle:b["default"].object,multi:b["default"].bool,name:b["default"].string,noResultsText:j,onBlur:b["default"].func,onBlurResetsInput:b["default"].bool,onChange:b["default"].func,onClose:b["default"].func,onCloseResetsInput:b["default"].bool,onFocus:b["default"].func,onInputChange:b["default"].func,onInputKeyDown:b["default"].func,onMenuScrollToBottom:b["default"].func,onOpen:b["default"].func,onValueClick:b["default"].func,openAfterFocus:b["default"].bool,openOnFocus:b["default"].bool,optionClassName:b["default"].string,optionComponent:b["default"].func,optionRenderer:b["default"].func,options:b["default"].array,pageSize:b["default"].number,placeholder:j,required:b["default"].bool,resetValue:b["default"].any,scrollMenuIntoView:b["default"].bool,searchable:b["default"].bool,simpleValue:b["default"].bool,style:b["default"].object,tabIndex:b["default"].string,tabSelectsValue:b["default"].bool,value:b["default"].any,valueComponent:b["default"].func,valueKey:b["default"].string,valueRenderer:b["default"].func,wrapperStyle:b["default"].object,inputValue:b["default"].string},statics:{Async:T["default"],AsyncCreatable:R["default"],Creatable:N["default"]},getDefaultProps:function(){return{addLabelText:'Add "{label}"?',arrowRenderer:F["default"],autosize:!0,backspaceRemoves:!0,backspaceToRemoveMessage:"Press backspace to remove {label}",clearable:!0,clearAllText:"Clear all",clearValueText:"Clear value",delimiter:",",disabled:!1,escapeClearsValue:!0,filterOptions:w["default"],ignoreAccents:!0,ignoreCase:!0,inputProps:{},isLoading:!1,joinValues:!1,labelKey:"label",matchPos:"any",matchProp:"any",menuBuffer:0,menuRenderer:D["default"],multi:!1,noResultsText:"No results found",onBlurResetsInput:!0,onCloseResetsInput:!0,openAfterFocus:!1,optionComponent:V["default"],pageSize:5,placeholder:"Select...",required:!1,scrollMenuIntoView:!0,searchable:!0,simpleValue:!1,tabSelectsValue:!0,valueComponent:M["default"],valueKey:"value",inputValue:""}},getInitialState:function(){return{inputValue:this.props.inputValue,isFocused:!1,isOpen:!1,isPseudoFocused:!1,required:!1}},componentWillMount:function(){this._instancePrefix="react-select-"+(this.props.instanceId||++B)+"-";var e=this.getValueArray(this.props.value);this.props.required&&this.setState({required:this.handleRequired(e[0],this.props.multi)})},componentDidMount:function(){this.props.autofocus&&this.focus()},componentWillReceiveProps:function(e){var t=this.getValueArray(e.value,e);e.required&&this.setState({required:this.handleRequired(t[0],e.multi)}),""!==e.inputValue&&this.setState({inputValue:e.inputValue})},componentWillUpdate:function(e,t){if(t.isOpen!==this.state.isOpen){this.toggleTouchOutsideEvent(t.isOpen);var n=t.isOpen?e.onOpen:e.onClose;n&&n()}},componentDidUpdate:function(e,t){if(this.menu&&this.focused&&this.state.isOpen&&!this.hasScrolledToOption){var n=f["default"].findDOMNode(this.focused),u=f["default"].findDOMNode(this.menu);u.scrollTop=n.offsetTop,this.hasScrolledToOption=!0}else this.state.isOpen||(this.hasScrolledToOption=!1);if(this._scrollToFocusedOptionOnUpdate&&this.focused&&this.menu){this._scrollToFocusedOptionOnUpdate=!1;var o=f["default"].findDOMNode(this.focused),i=f["default"].findDOMNode(this.menu),s=o.getBoundingClientRect(),r=i.getBoundingClientRect(); | ||
(s.bottom>r.bottom||s.top<r.top)&&(i.scrollTop=o.offsetTop+o.clientHeight-i.offsetHeight)}if(this.props.scrollMenuIntoView&&this.menuContainer){var a=this.menuContainer.getBoundingClientRect();window.innerHeight<a.bottom+this.props.menuBuffer&&window.scrollBy(0,a.bottom+this.props.menuBuffer-window.innerHeight)}e.disabled!==this.props.disabled&&(this.setState({isFocused:!1}),this.closeMenu())},componentWillUnmount:function(){!document.removeEventListener&&document.detachEvent?document.detachEvent("ontouchstart",this.handleTouchOutside):document.removeEventListener("touchstart",this.handleTouchOutside)},toggleTouchOutsideEvent:function(e){e?!document.addEventListener&&document.attachEvent?document.attachEvent("ontouchstart",this.handleTouchOutside):document.addEventListener("touchstart",this.handleTouchOutside):!document.removeEventListener&&document.detachEvent?document.detachEvent("ontouchstart",this.handleTouchOutside):document.removeEventListener("touchstart",this.handleTouchOutside)},handleTouchOutside:function(e){this.wrapper&&!this.wrapper.contains(e.target)&&this.closeMenu()},focus:function(){this.input&&(this.input.focus(),this.props.openAfterFocus&&this.setState({isOpen:!0}))},blurInput:function(){this.input&&this.input.blur()},handleTouchMove:function(e){this.dragging=!0},handleTouchStart:function(e){this.dragging=!1},handleTouchEnd:function(e){this.dragging||this.handleMouseDown(e)},handleTouchEndClearValue:function(e){this.dragging||this.clearValue(e)},handleMouseDown:function(e){if(!(this.props.disabled||"mousedown"===e.type&&0!==e.button)&&"INPUT"!==e.target.tagName){if(this.state.isOpen||e.preventDefault(),e.stopPropagation(),!this.props.searchable)return this.focus(),this.setState({isOpen:!this.state.isOpen});if(this.state.isFocused){this.focus();var t=this.input;"function"==typeof t.getInput&&(t=t.getInput()),t.value="",this.setState({isOpen:!0,isPseudoFocused:!1})}else this._openAfterFocus=!0,this.focus()}},handleMouseDownOnArrow:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||this.state.isOpen&&(e.stopPropagation(),e.preventDefault(),this.closeMenu())},handleMouseDownOnMenu:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this._openAfterFocus=!0,this.focus())},closeMenu:function(){this.props.onCloseResetsInput?this.setState({isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi,inputValue:""}):this.setState({isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi,inputValue:this.state.inputValue}),this.hasScrolledToOption=!1},handleInputFocus:function(e){if(!this.props.disabled){var t=this.state.isOpen||this._openAfterFocus||this.props.openOnFocus;this.props.onFocus&&this.props.onFocus(e);var n={isFocused:!0,isOpen:t};this.props.focusedInputValue&&!this.props.multi&&(n.inputValue=this.props.focusedInputValue(this.props.value)),this.setState(n),this._openAfterFocus=!1}},handleInputBlur:function(e){if(this.menu&&(this.menu===document.activeElement||this.menu.contains(document.activeElement)))return void this.focus();this.props.onBlur&&this.props.onBlur(e);var t={isFocused:!1,isOpen:!1,isPseudoFocused:!1};this.props.onBlurResetsInput&&(t.inputValue=""),this.setState(t)},handleInputChange:function(e){var t=e.target.value;if(this.state.inputValue!==e.target.value&&this.props.onInputChange){var n=this.props.onInputChange(t);null!=n&&"object"!=typeof n&&(t=""+n)}this.setState({isOpen:!0,isPseudoFocused:!1,inputValue:t})},handleKeyDown:function(e){if(!(this.props.disabled||"function"==typeof this.props.onInputKeyDown&&(this.props.onInputKeyDown(e),e.defaultPrevented))){switch(e.keyCode){case 8:return void(!this.state.inputValue&&this.props.backspaceRemoves&&(e.preventDefault(),this.popValue()));case 9:if(e.shiftKey||!this.state.isOpen||!this.props.tabSelectsValue)return;return void this.selectFocusedOption();case 13:if(!this.state.isOpen)return;e.stopPropagation(),this.selectFocusedOption();break;case 27:this.state.isOpen?(this.closeMenu(),e.stopPropagation()):this.props.clearable&&this.props.escapeClearsValue&&(this.clearValue(e),e.stopPropagation());break;case 38:this.focusPreviousOption();break;case 40:this.focusNextOption();break;case 33:this.focusPageUpOption();break;case 34:this.focusPageDownOption();break;case 35:if(e.shiftKey)return;this.focusEndOption();break;case 36:if(e.shiftKey)return;this.focusStartOption();break;default:return}e.preventDefault()}},handleValueClick:function(e,t){this.props.onValueClick&&(this.removeValue(e),this.setState({inputValue:e.label}),this.props.onValueClick(e,t))},handleMenuScroll:function(e){if(this.props.onMenuScrollToBottom){var t=e.target;t.scrollHeight>t.offsetHeight&&!(t.scrollHeight-t.offsetHeight-t.scrollTop)&&this.props.onMenuScrollToBottom()}},handleRequired:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},getOptionLabel:function(e){return e[this.props.labelKey]},getValueArray:function(e,t){var n=this,u="object"==typeof t?t:this.props;if(u.multi){if("string"==typeof e&&(e=e.split(u.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return n.expandValue(e,u)}).filter(function(e){return e})}var o=this.expandValue(e,u);return o?[o]:[]},expandValue:function(e,t){var n=typeof e;if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var u=t.options,o=t.valueKey;if(u)for(var i=0;i<u.length;i++)if(u[i][o]===e)return u[i]},setValue:function(e){var t=this;if(this.props.autoBlur&&this.blurInput(),this.props.onChange){if(this.props.required){var n=this.handleRequired(e,this.props.multi);this.setState({required:n})}this.props.simpleValue&&e&&(e=this.props.multi?e.map(function(e){return e[t.props.valueKey]}).join(this.props.delimiter):e[this.props.valueKey]),this.props.onChange(e)}},selectValue:function(e){var t=this;this.hasScrolledToOption=!1,this.props.multi?this.setState({inputValue:"",focusedIndex:null},function(){t.addValue(e)}):this.setState({isOpen:!1,inputValue:"",isPseudoFocused:this.state.isFocused},function(){t.setValue(e)})},addValue:function(e){var t=this.getValueArray(this.props.value);this.setValue(t.concat(e))},popValue:function(){var e=this.getValueArray(this.props.value);e.length&&e[e.length-1].clearableValue!==!1&&this.setValue(e.slice(0,e.length-1))},removeValue:function(e){var t=this.getValueArray(this.props.value);this.setValue(t.filter(function(t){return t!==e})),this.focus()},clearValue:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.setValue(this.getResetValue()),this.setState({isOpen:!1,inputValue:""},this.focus))},getResetValue:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusPageUpOption:function(){this.focusAdjacentOption("page_up")},focusPageDownOption:function(){this.focusAdjacentOption("page_down")},focusStartOption:function(){this.focusAdjacentOption("start")},focusEndOption:function(){this.focusAdjacentOption("end")},focusAdjacentOption:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this._focusedOption||t["next"===e?0:t.length-1].option});if(t.length){for(var n=-1,u=0;u<t.length;u++)if(this._focusedOption===t[u].option){n=u;break}if("next"===e&&n!==-1)n=(n+1)%t.length;else if("previous"===e)n>0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){var o=n-this.props.pageSize;n=o<0?0:o}else if("page_down"===e){var o=n+this.props.pageSize;n=o>t.length-1?t.length-1:o}n===-1&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}},getFocusedOption:function(){return this._focusedOption},getInputValue:function(){return this.state.inputValue},selectFocusedOption:function(){var e=this.filterOptions(null),t=this._focusedOption&&e.length>0;return this.props.allowCreate&&!t?this.selectValue(this.state.inputValue):this._focusedOption?this.selectValue(this._focusedOption):void 0},renderLoading:function(){if(this.props.isLoading)return p["default"].createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},p["default"].createElement("span",{className:"Select-loading"}))},renderValue:function(e,t){var n=this,u=this.props.valueRenderer||this.getOptionLabel,o=this.props.valueComponent;if(!e.length)return this.state.inputValue?null:p["default"].createElement("div",{className:"Select-placeholder"},this.props.placeholder);var i=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return p["default"].createElement(o,{id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,disabled:n.props.disabled||e.clearableValue===!1,key:"value-"+t+"-"+e[n.props.valueKey],onClick:i,onRemove:n.removeValue,value:e},u(e,t),p["default"].createElement("span",{className:"Select-aria-only"}," "))}):this.state.inputValue?void 0:(t&&(i=null),p["default"].createElement(o,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:i,value:e[0]},u(e[0])))},renderInput:function(e,t){var n=this;if(this.props.inputRenderer)return this.props.inputRenderer();var u,o=(0,m["default"])("Select-input",this.props.inputProps.className),r=!!this.state.isOpen,l=(0,m["default"])((u={},s(u,this._instancePrefix+"-list",r),s(u,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),u)),c=a({},this.props.inputProps,{role:"combobox","aria-expanded":""+r,"aria-owns":l,"aria-haspopup":""+r,"aria-activedescendant":r?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:o,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return n.input=e},required:this.state.required,value:this.state.inputValue});if(this.props.disabled||!this.props.searchable){var f=this.props.inputProps,d=(f.inputClassName,i(f,["inputClassName"]));return p["default"].createElement("div",a({},d,{role:"combobox","aria-expanded":r,"aria-owns":r?this._instancePrefix+"-list":this._instancePrefix+"-value","aria-activedescendant":r?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value",className:o,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return n.input=e},"aria-readonly":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?p["default"].createElement(y["default"],a({},c,{minWidth:"5"})):p["default"].createElement("div",{className:o},p["default"].createElement("input",c))},renderClear:function(){if(this.props.clearable&&this.props.value&&0!==this.props.value&&(!this.props.multi||this.props.value.length)&&!this.props.disabled&&!this.props.isLoading)return p["default"].createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},p["default"].createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"×"}}))},renderArrow:function(){var e=this.handleMouseDownOnArrow,t=this.props.arrowRenderer({onMouseDown:e});return p["default"].createElement("span",{className:"Select-arrow-zone",onMouseDown:e},t)},filterOptions:function K(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){var K="function"==typeof this.props.filterOptions?this.props.filterOptions:w["default"];return K(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey})}return n},onOptionRef:function(e,t){t&&(this.focused=e)},renderMenu:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?p["default"].createElement("div",{className:"Select-noresults"},this.props.noResultsText):null},renderHiddenField:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return r(e[t.props.valueKey])}).join(this.props.delimiter);return p["default"].createElement("input",{type:"hidden",ref:function(e){return t.value=e},name:this.props.name,value:n,disabled:this.props.disabled})}return e.map(function(e,n){return p["default"].createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:t.props.name,value:r(e[t.props.valueKey]),disabled:t.props.disabled})})}},getFocusableOptionIndex:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.state.focusedOption||e;if(n&&!n.disabled){var u=t.indexOf(n);if(u!==-1)return u}for(var o=0;o<t.length;o++)if(!t[o].disabled)return o;return null},renderOuter:function(e,t,n){var u=this,o=this.renderMenu(e,t,n);if(!o)return null;var i=p["default"].createElement("div",{ref:function(e){return u.menu=e},role:"listbox",className:"Select-menu",id:this._instancePrefix+"-list",style:this.props.menuStyle,onScroll:this.handleMenuScroll,onMouseDown:this.handleMouseDownOnMenu},o);return p["default"].createElement("div",{ref:function(e){return u.menuContainer=e},className:"Select-menu-outer",style:this.props.menuContainerStyle},i)},render:function(){var e=this,t=this.getValueArray(this.props.value),n=this._visibleOptions=this.filterOptions(this.props.multi?this.getValueArray(this.props.value):null),u=this.state.isOpen;this.props.multi&&!n.length&&t.length&&!this.state.inputValue&&(u=!1);var o=this.getFocusableOptionIndex(t[0]),i=null;i=null!==o?this._focusedOption=n[o]:this._focusedOption=null;var s=(0,m["default"])("Select",this.props.className,{"Select--multi":this.props.multi,"Select--single":!this.props.multi,"is-disabled":this.props.disabled,"is-focused":this.state.isFocused,"is-loading":this.props.isLoading,"is-open":u,"is-pseudo-focused":this.state.isPseudoFocused,"is-searchable":this.props.searchable,"has-value":t.length}),r=null;return this.props.multi&&!this.props.disabled&&t.length&&!this.state.inputValue&&this.state.isFocused&&this.props.backspaceRemoves&&(r=p["default"].createElement("span",{id:this._instancePrefix+"-backspace-remove-message",className:"Select-aria-only","aria-live":"assertive"},this.props.backspaceToRemoveMessage.replace("{label}",t[t.length-1][this.props.labelKey]))),p["default"].createElement("div",{ref:function(t){return e.wrapper=t},className:s,style:this.props.wrapperStyle},this.renderHiddenField(t),p["default"].createElement("div",{ref:function(t){return e.control=t},className:"Select-control",style:this.props.style,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleTouchEnd,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},p["default"].createElement("span",{className:"Select-multi-value-wrapper",id:this._instancePrefix+"-value"},this.renderValue(t,u),this.renderInput(t,o)),r,this.renderLoading(),this.renderClear(),this.renderArrow()),u?this.renderOuter(n,this.props.multi?null:t,i):null)}});n["default"]=k,t.exports=n["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./Async":14,"./AsyncCreatable":15,"./Creatable":16,"./Option":17,"./Value":19,"./utils/defaultArrowRenderer":20,"./utils/defaultFilterOptions":21,"./utils/defaultMenuRenderer":22,"create-react-class":2,"prop-types":11}],19:[function(e,t,n){(function(n){"use strict";function u(e){return e&&e.__esModule?e:{"default":e}}var o="undefined"!=typeof window?window.React:"undefined"!=typeof n?n.React:null,i=u(o),s=e("prop-types"),r=u(s),a=e("create-react-class"),l=u(a),p="undefined"!=typeof window?window.classNames:"undefined"!=typeof n?n.classNames:null,c=u(p),f=(0,l["default"])({displayName:"Value",propTypes:{children:r["default"].node,disabled:r["default"].bool,id:r["default"].string,onClick:r["default"].func,onRemove:r["default"].func,value:r["default"].object.isRequired},handleMouseDown:function(e){if("mousedown"!==e.type||0===e.button)return this.props.onClick?(e.stopPropagation(),void this.props.onClick(this.props.value,e)):void(this.props.value.href&&e.stopPropagation())},onRemove:function(e){e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.value)},handleTouchEndRemove:function(e){this.dragging||this.onRemove(e)},handleTouchMove:function(e){this.dragging=!0},handleTouchStart:function(e){this.dragging=!1},renderRemoveIcon:function(){if(!this.props.disabled&&this.props.onRemove)return i["default"].createElement("span",{className:"Select-value-icon","aria-hidden":"true",onMouseDown:this.onRemove,onTouchEnd:this.handleTouchEndRemove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},"×")},renderLabel:function(){var e="Select-value-label";return this.props.onClick||this.props.value.href?i["default"].createElement("a",{className:e,href:this.props.value.href,target:this.props.value.target,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},this.props.children):i["default"].createElement("span",{className:e,role:"option","aria-selected":"true",id:this.props.id},this.props.children)},render:function(){return i["default"].createElement("div",{className:(0,c["default"])("Select-value",this.props.value.className),style:this.props.value.style,title:this.props.value.title},i["default"].createElement("div",{className:"Select-value-inner"},this.renderRemoveIcon(),this.renderLabel()))}});t.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"create-react-class":2,"prop-types":11}],20:[function(e,t,n){(function(e){"use strict";function u(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.onMouseDown;return s["default"].createElement("span",{className:"Select-arrow",onMouseDown:t})}Object.defineProperty(n,"__esModule",{value:!0}),n["default"]=o;var i="undefined"!=typeof window?window.React:"undefined"!=typeof e?e.React:null,s=u(i);t.exports=n["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],21:[function(e,t,n){"use strict";function u(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,u){var o=this;return u.ignoreAccents&&(t=(0,s["default"])(t)),u.ignoreCase&&(t=t.toLowerCase()),n&&(n=n.map(function(e){return e[u.valueKey]})),e.filter(function(e){if(n&&n.indexOf(e[u.valueKey])>-1)return!1;if(u.filterOption)return u.filterOption.call(o,e,t);if(!t)return!0;var i=String(e[u.valueKey]),r=String(e[u.labelKey]);return u.ignoreAccents&&("label"!==u.matchProp&&(i=(0,s["default"])(i)),"value"!==u.matchProp&&(r=(0,s["default"])(r))),u.ignoreCase&&("label"!==u.matchProp&&(i=i.toLowerCase()),"value"!==u.matchProp&&(r=r.toLowerCase())),"start"===u.matchPos?"label"!==u.matchProp&&i.substr(0,t.length)===t||"value"!==u.matchProp&&r.substr(0,t.length)===t:"label"!==u.matchProp&&i.indexOf(t)>=0||"value"!==u.matchProp&&r.indexOf(t)>=0})}var i=e("./stripDiacritics"),s=u(i);t.exports=o},{"./stripDiacritics":23}],22:[function(e,t,n){(function(e){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t=e.focusedOption,n=e.instancePrefix,u=(e.labelKey,e.onFocus),o=e.onSelect,s=e.optionClassName,a=e.optionComponent,l=e.optionRenderer,p=e.options,c=e.valueArray,f=e.valueKey,d=e.onOptionRef,h=a;return p.map(function(e,a){var p=c&&c.indexOf(e)>-1,E=e===t,b=(0,i["default"])(s,{"Select-option":!0,"is-selected":p,"is-focused":E,"is-disabled":e.disabled});return r["default"].createElement(h,{className:b,instancePrefix:n,isDisabled:e.disabled,isFocused:E,isSelected:p,key:"option-"+a+"-"+e[f],onFocus:u,onSelect:o,option:e,optionIndex:a,ref:function(e){d(e,E)}},l(e,a))})}var o="undefined"!=typeof window?window.classNames:"undefined"!=typeof e?e.classNames:null,i=n(o),s="undefined"!=typeof window?window.React:"undefined"!=typeof e?e.React:null,r=n(s);t.exports=u}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],23:[function(e,t,n){"use strict";var u=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];t.exports=function(e){for(var t=0;t<u.length;t++)e=e.replace(u[t].letters,u[t].base);return e}},{}]},{},[18])(18)}); |
@@ -25,2 +25,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _Select = require('./Select'); | ||
@@ -35,19 +39,19 @@ | ||
var propTypes = { | ||
autoload: _react2['default'].PropTypes.bool.isRequired, // automatically call the `loadOptions` prop on-mount; defaults to true | ||
cache: _react2['default'].PropTypes.any, // object to use to cache results; set to null/false to disable caching | ||
children: _react2['default'].PropTypes.func.isRequired, // Child function responsible for creating the inner Select component; (props: Object): PropTypes.element | ||
ignoreAccents: _react2['default'].PropTypes.bool, // strip diacritics when filtering; defaults to true | ||
ignoreCase: _react2['default'].PropTypes.bool, // perform case-insensitive filtering; defaults to true | ||
loadingPlaceholder: _react2['default'].PropTypes.oneOfType([// replaces the placeholder while options are loading | ||
_react2['default'].PropTypes.string, _react2['default'].PropTypes.node]), | ||
loadOptions: _react2['default'].PropTypes.func.isRequired, // callback to load options asynchronously; (inputValue: string, callback: Function): ?Promise | ||
options: _react.PropTypes.array.isRequired, // array of options | ||
placeholder: _react2['default'].PropTypes.oneOfType([// field placeholder, displayed when there's no value (shared with Select) | ||
_react2['default'].PropTypes.string, _react2['default'].PropTypes.node]), | ||
noResultsText: _react2['default'].PropTypes.oneOfType([// field noResultsText, displayed when no options come back from the server | ||
_react2['default'].PropTypes.string, _react2['default'].PropTypes.node]), | ||
searchPromptText: _react2['default'].PropTypes.oneOfType([// label to prompt for search input | ||
_react2['default'].PropTypes.string, _react2['default'].PropTypes.node]), | ||
onInputChange: _react2['default'].PropTypes.func, // optional for keeping track of what is being typed | ||
value: _react2['default'].PropTypes.any }; | ||
autoload: _propTypes2['default'].bool.isRequired, // automatically call the `loadOptions` prop on-mount; defaults to true | ||
cache: _propTypes2['default'].any, // object to use to cache results; set to null/false to disable caching | ||
children: _propTypes2['default'].func.isRequired, // Child function responsible for creating the inner Select component; (props: Object): PropTypes.element | ||
ignoreAccents: _propTypes2['default'].bool, // strip diacritics when filtering; defaults to true | ||
ignoreCase: _propTypes2['default'].bool, // perform case-insensitive filtering; defaults to true | ||
loadingPlaceholder: _propTypes2['default'].oneOfType([// replaces the placeholder while options are loading | ||
_propTypes2['default'].string, _propTypes2['default'].node]), | ||
loadOptions: _propTypes2['default'].func.isRequired, // callback to load options asynchronously; (inputValue: string, callback: Function): ?Promise | ||
options: _propTypes2['default'].array.isRequired, // array of options | ||
placeholder: _propTypes2['default'].oneOfType([// field placeholder, displayed when there's no value (shared with Select) | ||
_propTypes2['default'].string, _propTypes2['default'].node]), | ||
noResultsText: _propTypes2['default'].oneOfType([// field noResultsText, displayed when no options come back from the server | ||
_propTypes2['default'].string, _propTypes2['default'].node]), | ||
searchPromptText: _propTypes2['default'].oneOfType([// label to prompt for search input | ||
_propTypes2['default'].string, _propTypes2['default'].node]), | ||
onInputChange: _propTypes2['default'].func, // optional for keeping track of what is being typed | ||
value: _propTypes2['default'].any }; | ||
@@ -54,0 +58,0 @@ // initial field value |
@@ -11,2 +11,10 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _createReactClass = require('create-react-class'); | ||
var _createReactClass2 = _interopRequireDefault(_createReactClass); | ||
var _Select = require('./Select'); | ||
@@ -16,3 +24,3 @@ | ||
var AsyncCreatable = _react2['default'].createClass({ | ||
var AsyncCreatable = (0, _createReactClass2['default'])({ | ||
displayName: 'AsyncCreatableSelect', | ||
@@ -19,0 +27,0 @@ |
@@ -13,2 +13,10 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _createReactClass = require('create-react-class'); | ||
var _createReactClass2 = _interopRequireDefault(_createReactClass); | ||
var _Select = require('./Select'); | ||
@@ -26,3 +34,3 @@ | ||
var Creatable = _react2['default'].createClass({ | ||
var Creatable = (0, _createReactClass2['default'])({ | ||
displayName: 'CreatableSelect', | ||
@@ -34,6 +42,6 @@ | ||
// (props: Object): PropTypes.element | ||
children: _react2['default'].PropTypes.func, | ||
children: _propTypes2['default'].func, | ||
// See Select.propTypes.filterOptions | ||
filterOptions: _react2['default'].PropTypes.any, | ||
filterOptions: _propTypes2['default'].any, | ||
@@ -43,24 +51,24 @@ // Searches for any matching option within the set of options. | ||
// ({ option: Object, options: Array, labelKey: string, valueKey: string }): boolean | ||
isOptionUnique: _react2['default'].PropTypes.func, | ||
isOptionUnique: _propTypes2['default'].func, | ||
// Determines if the current input text represents a valid option. | ||
// ({ label: string }): boolean | ||
isValidNewOption: _react2['default'].PropTypes.func, | ||
isValidNewOption: _propTypes2['default'].func, | ||
// See Select.propTypes.menuRenderer | ||
menuRenderer: _react2['default'].PropTypes.any, | ||
menuRenderer: _propTypes2['default'].any, | ||
// Factory to create new option. | ||
// ({ label: string, labelKey: string, valueKey: string }): Object | ||
newOptionCreator: _react2['default'].PropTypes.func, | ||
newOptionCreator: _propTypes2['default'].func, | ||
// See Select.propTypes.options | ||
options: _react2['default'].PropTypes.array, | ||
options: _propTypes2['default'].array, | ||
// Creates prompt/placeholder option text. | ||
// (filterText: string): string | ||
promptTextCreator: _react2['default'].PropTypes.func, | ||
promptTextCreator: _propTypes2['default'].func, | ||
// Decides if a keyDown event (eg its `keyCode`) should result in the creation of a new option. | ||
shouldKeyDownEventCreateNewOption: _react2['default'].PropTypes.func | ||
shouldKeyDownEventCreateNewOption: _propTypes2['default'].func | ||
}, | ||
@@ -67,0 +75,0 @@ |
@@ -9,2 +9,10 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _createReactClass = require('create-react-class'); | ||
var _createReactClass2 = _interopRequireDefault(_createReactClass); | ||
var _classnames = require('classnames'); | ||
@@ -14,17 +22,15 @@ | ||
var Option = _react2['default'].createClass({ | ||
displayName: 'Option', | ||
var Option = (0, _createReactClass2['default'])({ | ||
propTypes: { | ||
children: _react2['default'].PropTypes.node, | ||
className: _react2['default'].PropTypes.string, // className (based on mouse position) | ||
instancePrefix: _react2['default'].PropTypes.string.isRequired, // unique prefix for the ids (used for aria) | ||
isDisabled: _react2['default'].PropTypes.bool, // the option is disabled | ||
isFocused: _react2['default'].PropTypes.bool, // the option is focused | ||
isSelected: _react2['default'].PropTypes.bool, // the option is selected | ||
onFocus: _react2['default'].PropTypes.func, // method to handle mouseEnter on option element | ||
onSelect: _react2['default'].PropTypes.func, // method to handle click on option element | ||
onUnfocus: _react2['default'].PropTypes.func, // method to handle mouseLeave on option element | ||
option: _react2['default'].PropTypes.object.isRequired, // object that is base for that option | ||
optionIndex: _react2['default'].PropTypes.number }, | ||
children: _propTypes2['default'].node, | ||
className: _propTypes2['default'].string, // className (based on mouse position) | ||
instancePrefix: _propTypes2['default'].string.isRequired, // unique prefix for the ids (used for aria) | ||
isDisabled: _propTypes2['default'].bool, // the option is disabled | ||
isFocused: _propTypes2['default'].bool, // the option is focused | ||
isSelected: _propTypes2['default'].bool, // the option is selected | ||
onFocus: _propTypes2['default'].func, // method to handle mouseEnter on option element | ||
onSelect: _propTypes2['default'].func, // method to handle click on option element | ||
onUnfocus: _propTypes2['default'].func, // method to handle mouseLeave on option element | ||
option: _propTypes2['default'].object.isRequired, // object that is base for that option | ||
optionIndex: _propTypes2['default'].number }, | ||
// index of the option, used to generate unique ids for aria | ||
@@ -31,0 +37,0 @@ blockEvent: function blockEvent(event) { |
@@ -29,2 +29,10 @@ /*! | ||
var _createReactClass = require('create-react-class'); | ||
var _createReactClass2 = _interopRequireDefault(_createReactClass); | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _reactInputAutosize = require('react-input-autosize'); | ||
@@ -83,7 +91,7 @@ | ||
var stringOrNode = _react2['default'].PropTypes.oneOfType([_react2['default'].PropTypes.string, _react2['default'].PropTypes.node]); | ||
var stringOrNode = _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].node]); | ||
var instanceId = 1; | ||
var Select = _react2['default'].createClass({ | ||
var Select = (0, _createReactClass2['default'])({ | ||
@@ -93,71 +101,71 @@ displayName: 'Select', | ||
propTypes: { | ||
addLabelText: _react2['default'].PropTypes.string, // placeholder displayed when you want to add a label on a multi-value input | ||
'aria-label': _react2['default'].PropTypes.string, // Aria label (for assistive tech) | ||
'aria-labelledby': _react2['default'].PropTypes.string, // HTML ID of an element that should be used as the label (for assistive tech) | ||
arrowRenderer: _react2['default'].PropTypes.func, // Create drop-down caret element | ||
autoBlur: _react2['default'].PropTypes.bool, // automatically blur the component when an option is selected | ||
autofocus: _react2['default'].PropTypes.bool, // autofocus the component on mount | ||
autosize: _react2['default'].PropTypes.bool, // whether to enable autosizing or not | ||
backspaceRemoves: _react2['default'].PropTypes.bool, // whether backspace removes an item if there is no text input | ||
backspaceToRemoveMessage: _react2['default'].PropTypes.string, // Message to use for screenreaders to press backspace to remove the current item - {label} is replaced with the item label | ||
className: _react2['default'].PropTypes.string, // className for the outer element | ||
addLabelText: _propTypes2['default'].string, // placeholder displayed when you want to add a label on a multi-value input | ||
'aria-label': _propTypes2['default'].string, // Aria label (for assistive tech) | ||
'aria-labelledby': _propTypes2['default'].string, // HTML ID of an element that should be used as the label (for assistive tech) | ||
arrowRenderer: _propTypes2['default'].func, // Create drop-down caret element | ||
autoBlur: _propTypes2['default'].bool, // automatically blur the component when an option is selected | ||
autofocus: _propTypes2['default'].bool, // autofocus the component on mount | ||
autosize: _propTypes2['default'].bool, // whether to enable autosizing or not | ||
backspaceRemoves: _propTypes2['default'].bool, // whether backspace removes an item if there is no text input | ||
backspaceToRemoveMessage: _propTypes2['default'].string, // Message to use for screenreaders to press backspace to remove the current item - {label} is replaced with the item label | ||
className: _propTypes2['default'].string, // className for the outer element | ||
clearAllText: stringOrNode, // title for the "clear" control when multi: true | ||
clearValueText: stringOrNode, // title for the "clear" control | ||
clearable: _react2['default'].PropTypes.bool, // should it be possible to reset value | ||
delimiter: _react2['default'].PropTypes.string, // delimiter to use to join multiple values for the hidden field value | ||
disabled: _react2['default'].PropTypes.bool, // whether the Select is disabled or not | ||
escapeClearsValue: _react2['default'].PropTypes.bool, // whether escape clears the value when the menu is closed | ||
filterOption: _react2['default'].PropTypes.func, // method to filter a single option (option, filterString) | ||
filterOptions: _react2['default'].PropTypes.any, // boolean to enable default filtering or function to filter the options array ([options], filterString, [values]) | ||
focusedInputValue: _react2['default'].PropTypes.func, // function(value) {} to ensure populated input on focus | ||
ignoreAccents: _react2['default'].PropTypes.bool, // whether to strip diacritics when filtering | ||
ignoreCase: _react2['default'].PropTypes.bool, // whether to perform case-insensitive filtering | ||
inputProps: _react2['default'].PropTypes.object, // custom attributes for the Input | ||
inputRenderer: _react2['default'].PropTypes.func, // returns a custom input component | ||
instanceId: _react2['default'].PropTypes.string, // set the components instanceId | ||
isLoading: _react2['default'].PropTypes.bool, // whether the Select is loading externally or not (such as options being loaded) | ||
joinValues: _react2['default'].PropTypes.bool, // joins multiple values into a single form field with the delimiter (legacy mode) | ||
labelKey: _react2['default'].PropTypes.string, // path of the label value in option objects | ||
matchPos: _react2['default'].PropTypes.string, // (any|start) match the start or entire string when filtering | ||
matchProp: _react2['default'].PropTypes.string, // (any|label|value) which option property to filter on | ||
menuBuffer: _react2['default'].PropTypes.number, // optional buffer (in px) between the bottom of the viewport and the bottom of the menu | ||
menuContainerStyle: _react2['default'].PropTypes.object, // optional style to apply to the menu container | ||
menuRenderer: _react2['default'].PropTypes.func, // renders a custom menu with options | ||
menuStyle: _react2['default'].PropTypes.object, // optional style to apply to the menu | ||
multi: _react2['default'].PropTypes.bool, // multi-value input | ||
name: _react2['default'].PropTypes.string, // generates a hidden <input /> tag with this field name for html forms | ||
clearable: _propTypes2['default'].bool, // should it be possible to reset value | ||
delimiter: _propTypes2['default'].string, // delimiter to use to join multiple values for the hidden field value | ||
disabled: _propTypes2['default'].bool, // whether the Select is disabled or not | ||
escapeClearsValue: _propTypes2['default'].bool, // whether escape clears the value when the menu is closed | ||
filterOption: _propTypes2['default'].func, // method to filter a single option (option, filterString) | ||
filterOptions: _propTypes2['default'].any, // boolean to enable default filtering or function to filter the options array ([options], filterString, [values]) | ||
focusedInputValue: _propTypes2['default'].func, // function(value) {} to ensure populated input on focus | ||
ignoreAccents: _propTypes2['default'].bool, // whether to strip diacritics when filtering | ||
ignoreCase: _propTypes2['default'].bool, // whether to perform case-insensitive filtering | ||
inputProps: _propTypes2['default'].object, // custom attributes for the Input | ||
inputRenderer: _propTypes2['default'].func, // returns a custom input component | ||
instanceId: _propTypes2['default'].string, // set the components instanceId | ||
isLoading: _propTypes2['default'].bool, // whether the Select is loading externally or not (such as options being loaded) | ||
joinValues: _propTypes2['default'].bool, // joins multiple values into a single form field with the delimiter (legacy mode) | ||
labelKey: _propTypes2['default'].string, // path of the label value in option objects | ||
matchPos: _propTypes2['default'].string, // (any|start) match the start or entire string when filtering | ||
matchProp: _propTypes2['default'].string, // (any|label|value) which option property to filter on | ||
menuBuffer: _propTypes2['default'].number, // optional buffer (in px) between the bottom of the viewport and the bottom of the menu | ||
menuContainerStyle: _propTypes2['default'].object, // optional style to apply to the menu container | ||
menuRenderer: _propTypes2['default'].func, // renders a custom menu with options | ||
menuStyle: _propTypes2['default'].object, // optional style to apply to the menu | ||
multi: _propTypes2['default'].bool, // multi-value input | ||
name: _propTypes2['default'].string, // generates a hidden <input /> tag with this field name for html forms | ||
noResultsText: stringOrNode, // placeholder displayed when there are no matching search results | ||
onBlur: _react2['default'].PropTypes.func, // onBlur handler: function (event) {} | ||
onBlurResetsInput: _react2['default'].PropTypes.bool, // whether input is cleared on blur | ||
onChange: _react2['default'].PropTypes.func, // onChange handler: function (newValue) {} | ||
onClose: _react2['default'].PropTypes.func, // fires when the menu is closed | ||
onCloseResetsInput: _react2['default'].PropTypes.bool, // whether input is cleared when menu is closed through the arrow | ||
onFocus: _react2['default'].PropTypes.func, // onFocus handler: function (event) {} | ||
onInputChange: _react2['default'].PropTypes.func, // onInputChange handler: function (inputValue) {} | ||
onInputKeyDown: _react2['default'].PropTypes.func, // input keyDown handler: function (event) {} | ||
onMenuScrollToBottom: _react2['default'].PropTypes.func, // fires when the menu is scrolled to the bottom; can be used to paginate options | ||
onOpen: _react2['default'].PropTypes.func, // fires when the menu is opened | ||
onValueClick: _react2['default'].PropTypes.func, // onClick handler for value labels: function (value, event) {} | ||
openAfterFocus: _react2['default'].PropTypes.bool, // boolean to enable opening dropdown when focused | ||
openOnFocus: _react2['default'].PropTypes.bool, // always open options menu on focus | ||
optionClassName: _react2['default'].PropTypes.string, // additional class(es) to apply to the <Option /> elements | ||
optionComponent: _react2['default'].PropTypes.func, // option component to render in dropdown | ||
optionRenderer: _react2['default'].PropTypes.func, // optionRenderer: function (option) {} | ||
options: _react2['default'].PropTypes.array, // array of options | ||
pageSize: _react2['default'].PropTypes.number, // number of entries to page when using page up/down keys | ||
onBlur: _propTypes2['default'].func, // onBlur handler: function (event) {} | ||
onBlurResetsInput: _propTypes2['default'].bool, // whether input is cleared on blur | ||
onChange: _propTypes2['default'].func, // onChange handler: function (newValue) {} | ||
onClose: _propTypes2['default'].func, // fires when the menu is closed | ||
onCloseResetsInput: _propTypes2['default'].bool, // whether input is cleared when menu is closed through the arrow | ||
onFocus: _propTypes2['default'].func, // onFocus handler: function (event) {} | ||
onInputChange: _propTypes2['default'].func, // onInputChange handler: function (inputValue) {} | ||
onInputKeyDown: _propTypes2['default'].func, // input keyDown handler: function (event) {} | ||
onMenuScrollToBottom: _propTypes2['default'].func, // fires when the menu is scrolled to the bottom; can be used to paginate options | ||
onOpen: _propTypes2['default'].func, // fires when the menu is opened | ||
onValueClick: _propTypes2['default'].func, // onClick handler for value labels: function (value, event) {} | ||
openAfterFocus: _propTypes2['default'].bool, // boolean to enable opening dropdown when focused | ||
openOnFocus: _propTypes2['default'].bool, // always open options menu on focus | ||
optionClassName: _propTypes2['default'].string, // additional class(es) to apply to the <Option /> elements | ||
optionComponent: _propTypes2['default'].func, // option component to render in dropdown | ||
optionRenderer: _propTypes2['default'].func, // optionRenderer: function (option) {} | ||
options: _propTypes2['default'].array, // array of options | ||
pageSize: _propTypes2['default'].number, // number of entries to page when using page up/down keys | ||
placeholder: stringOrNode, // field placeholder, displayed when there's no value | ||
required: _react2['default'].PropTypes.bool, // applies HTML5 required attribute when needed | ||
resetValue: _react2['default'].PropTypes.any, // value to use when you clear the control | ||
scrollMenuIntoView: _react2['default'].PropTypes.bool, // boolean to enable the viewport to shift so that the full menu fully visible when engaged | ||
searchable: _react2['default'].PropTypes.bool, // whether to enable searching feature or not | ||
simpleValue: _react2['default'].PropTypes.bool, // pass the value to onChange as a simple value (legacy pre 1.0 mode), defaults to false | ||
style: _react2['default'].PropTypes.object, // optional style to apply to the control | ||
tabIndex: _react2['default'].PropTypes.string, // optional tab index of the control | ||
tabSelectsValue: _react2['default'].PropTypes.bool, // whether to treat tabbing out while focused to be value selection | ||
value: _react2['default'].PropTypes.any, // initial field value | ||
valueComponent: _react2['default'].PropTypes.func, // value component to render | ||
valueKey: _react2['default'].PropTypes.string, // path of the label value in option objects | ||
valueRenderer: _react2['default'].PropTypes.func, // valueRenderer: function (option) {} | ||
wrapperStyle: _react2['default'].PropTypes.object, // optional style to apply to the component wrapper | ||
inputValue: _react2['default'].PropTypes.string | ||
required: _propTypes2['default'].bool, // applies HTML5 required attribute when needed | ||
resetValue: _propTypes2['default'].any, // value to use when you clear the control | ||
scrollMenuIntoView: _propTypes2['default'].bool, // boolean to enable the viewport to shift so that the full menu fully visible when engaged | ||
searchable: _propTypes2['default'].bool, // whether to enable searching feature or not | ||
simpleValue: _propTypes2['default'].bool, // pass the value to onChange as a simple value (legacy pre 1.0 mode), defaults to false | ||
style: _propTypes2['default'].object, // optional style to apply to the control | ||
tabIndex: _propTypes2['default'].string, // optional tab index of the control | ||
tabSelectsValue: _propTypes2['default'].bool, // whether to treat tabbing out while focused to be value selection | ||
value: _propTypes2['default'].any, // initial field value | ||
valueComponent: _propTypes2['default'].func, // value component to render | ||
valueKey: _propTypes2['default'].string, // path of the label value in option objects | ||
valueRenderer: _propTypes2['default'].func, // valueRenderer: function (option) {} | ||
wrapperStyle: _propTypes2['default'].object, // optional style to apply to the component wrapper | ||
inputValue: _propTypes2['default'].string | ||
}, | ||
@@ -164,0 +172,0 @@ |
@@ -9,2 +9,10 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _createReactClass = require('create-react-class'); | ||
var _createReactClass2 = _interopRequireDefault(_createReactClass); | ||
var _classnames = require('classnames'); | ||
@@ -14,3 +22,3 @@ | ||
var Value = _react2['default'].createClass({ | ||
var Value = (0, _createReactClass2['default'])({ | ||
@@ -20,8 +28,8 @@ displayName: 'Value', | ||
propTypes: { | ||
children: _react2['default'].PropTypes.node, | ||
disabled: _react2['default'].PropTypes.bool, // disabled prop passed to ReactSelect | ||
id: _react2['default'].PropTypes.string, // Unique id for the value - used for aria | ||
onClick: _react2['default'].PropTypes.func, // method to handle click on value label | ||
onRemove: _react2['default'].PropTypes.func, // method to handle removal of the value | ||
value: _react2['default'].PropTypes.object.isRequired }, | ||
children: _propTypes2['default'].node, | ||
disabled: _propTypes2['default'].bool, // disabled prop passed to ReactSelect | ||
id: _propTypes2['default'].string, // Unique id for the value - used for aria | ||
onClick: _propTypes2['default'].func, // method to handle click on value label | ||
onRemove: _propTypes2['default'].func, // method to handle removal of the value | ||
value: _propTypes2['default'].object.isRequired }, | ||
@@ -28,0 +36,0 @@ // the option object for this value |
{ | ||
"name": "react-select-allow-create", | ||
"version": "1.0.0-beta11.17", | ||
"version": "1.0.0-beta11.18", | ||
"description": "A Select control built with and for ReactJS", | ||
@@ -11,7 +11,7 @@ "main": "lib/Select.js", | ||
"type": "git", | ||
"url": "git+https://github.com/JedWatson/react-select.git" | ||
"url": "git+https://github.com/honeycombio/react-select.git" | ||
}, | ||
"dependencies": { | ||
"classnames": "^2.2.4", | ||
"react-input-autosize": "^1.1.0" | ||
"react-input-autosize": "^2.0.1" | ||
}, | ||
@@ -23,2 +23,3 @@ "devDependencies": { | ||
"coveralls": "^2.11.12", | ||
"create-react-class": "^15.6.2", | ||
"eslint": "^1.10.3", | ||
@@ -31,4 +32,5 @@ "eslint-plugin-react": "^3.15.0", | ||
"mocha": "^3.0.2", | ||
"prop-types": "^15.6.0", | ||
"react": "^15.0", | ||
"react-addons-shallow-compare": "^15.0", | ||
"react-addons-shallow-compare": "^15.6", | ||
"react-addons-test-utils": "^15.0", | ||
@@ -82,6 +84,3 @@ "react-component-gulp-tasks": "^0.7.7", | ||
], | ||
"bugs": { | ||
"url": "https://github.com/JedWatson/react-select/issues" | ||
}, | ||
"homepage": "https://github.com/JedWatson/react-select#readme", | ||
"homepage": "https://github.com/honeycombio/react-select#readme", | ||
"directories": { | ||
@@ -88,0 +87,0 @@ "example": "examples", |
@@ -53,14 +53,4 @@ [![NPM](https://img.shields.io/npm/v/react-select-allow-create.svg)](https://www.npmjs.com/package/react-select-allow-create) | ||
You can also use the standalone build by including `react-select.js` and `react-select.css` in your page. (If you do this though you'll also need to include the dependencies.) For example: | ||
```html | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react-dom.min.js"></script> | ||
<script src="https://unpkg.com/classnames/index.js"></script> | ||
<script src="https://unpkg.com/react-input-autosize/dist/react-input-autosize.js"></script> | ||
<script src="https://unpkg.com/react-select/dist/react-select.js"></script> | ||
You can also use the standalone build by including `react-select.js` and `react-select.css` in your page. (If you do this though you'll also need to include the dependencies.) | ||
<link rel="stylesheet" href="https://unpkg.com/react-select/dist/react-select.css"> | ||
``` | ||
## Usage | ||
@@ -67,0 +57,0 @@ |
@@ -1,2 +0,3 @@ | ||
import React, { Component, PropTypes } from 'react'; | ||
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import Select from './Select'; | ||
@@ -6,27 +7,27 @@ import stripDiacritics from './utils/stripDiacritics'; | ||
const propTypes = { | ||
autoload: React.PropTypes.bool.isRequired, // automatically call the `loadOptions` prop on-mount; defaults to true | ||
cache: React.PropTypes.any, // object to use to cache results; set to null/false to disable caching | ||
children: React.PropTypes.func.isRequired, // Child function responsible for creating the inner Select component; (props: Object): PropTypes.element | ||
ignoreAccents: React.PropTypes.bool, // strip diacritics when filtering; defaults to true | ||
ignoreCase: React.PropTypes.bool, // perform case-insensitive filtering; defaults to true | ||
loadingPlaceholder: React.PropTypes.oneOfType([ // replaces the placeholder while options are loading | ||
React.PropTypes.string, | ||
React.PropTypes.node | ||
autoload: PropTypes.bool.isRequired, // automatically call the `loadOptions` prop on-mount; defaults to true | ||
cache: PropTypes.any, // object to use to cache results; set to null/false to disable caching | ||
children: PropTypes.func.isRequired, // Child function responsible for creating the inner Select component; (props: Object): PropTypes.element | ||
ignoreAccents: PropTypes.bool, // strip diacritics when filtering; defaults to true | ||
ignoreCase: PropTypes.bool, // perform case-insensitive filtering; defaults to true | ||
loadingPlaceholder: PropTypes.oneOfType([ // replaces the placeholder while options are loading | ||
PropTypes.string, | ||
PropTypes.node | ||
]), | ||
loadOptions: React.PropTypes.func.isRequired, // callback to load options asynchronously; (inputValue: string, callback: Function): ?Promise | ||
loadOptions: PropTypes.func.isRequired, // callback to load options asynchronously; (inputValue: string, callback: Function): ?Promise | ||
options: PropTypes.array.isRequired, // array of options | ||
placeholder: React.PropTypes.oneOfType([ // field placeholder, displayed when there's no value (shared with Select) | ||
React.PropTypes.string, | ||
React.PropTypes.node | ||
placeholder: PropTypes.oneOfType([ // field placeholder, displayed when there's no value (shared with Select) | ||
PropTypes.string, | ||
PropTypes.node | ||
]), | ||
noResultsText: React.PropTypes.oneOfType([ // field noResultsText, displayed when no options come back from the server | ||
React.PropTypes.string, | ||
React.PropTypes.node | ||
noResultsText: PropTypes.oneOfType([ // field noResultsText, displayed when no options come back from the server | ||
PropTypes.string, | ||
PropTypes.node | ||
]), | ||
searchPromptText: React.PropTypes.oneOfType([ // label to prompt for search input | ||
React.PropTypes.string, | ||
React.PropTypes.node | ||
searchPromptText: PropTypes.oneOfType([ // label to prompt for search input | ||
PropTypes.string, | ||
PropTypes.node | ||
]), | ||
onInputChange: React.PropTypes.func, // optional for keeping track of what is being typed | ||
value: React.PropTypes.any, // initial field value | ||
onInputChange: PropTypes.func, // optional for keeping track of what is being typed | ||
value: PropTypes.any, // initial field value | ||
}; | ||
@@ -33,0 +34,0 @@ |
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import createReactClass from 'create-react-class'; | ||
import Select from './Select'; | ||
const AsyncCreatable = React.createClass({ | ||
const AsyncCreatable = createReactClass({ | ||
displayName: 'AsyncCreatableSelect', | ||
@@ -6,0 +8,0 @@ |
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import createReactClass from 'create-react-class'; | ||
import Select from './Select'; | ||
@@ -6,3 +8,3 @@ import defaultFilterOptions from './utils/defaultFilterOptions'; | ||
const Creatable = React.createClass({ | ||
const Creatable = createReactClass({ | ||
displayName: 'CreatableSelect', | ||
@@ -14,6 +16,6 @@ | ||
// (props: Object): PropTypes.element | ||
children: React.PropTypes.func, | ||
children: PropTypes.func, | ||
// See Select.propTypes.filterOptions | ||
filterOptions: React.PropTypes.any, | ||
filterOptions: PropTypes.any, | ||
@@ -23,24 +25,24 @@ // Searches for any matching option within the set of options. | ||
// ({ option: Object, options: Array, labelKey: string, valueKey: string }): boolean | ||
isOptionUnique: React.PropTypes.func, | ||
isOptionUnique: PropTypes.func, | ||
// Determines if the current input text represents a valid option. | ||
// ({ label: string }): boolean | ||
isValidNewOption: React.PropTypes.func, | ||
isValidNewOption: PropTypes.func, | ||
// See Select.propTypes.menuRenderer | ||
menuRenderer: React.PropTypes.any, | ||
menuRenderer: PropTypes.any, | ||
// Factory to create new option. | ||
// ({ label: string, labelKey: string, valueKey: string }): Object | ||
newOptionCreator: React.PropTypes.func, | ||
newOptionCreator: PropTypes.func, | ||
// See Select.propTypes.options | ||
options: React.PropTypes.array, | ||
options: PropTypes.array, | ||
// Creates prompt/placeholder option text. | ||
// (filterText: string): string | ||
promptTextCreator: React.PropTypes.func, | ||
promptTextCreator: PropTypes.func, | ||
// Decides if a keyDown event (eg its `keyCode`) should result in the creation of a new option. | ||
shouldKeyDownEventCreateNewOption: React.PropTypes.func, | ||
shouldKeyDownEventCreateNewOption: PropTypes.func, | ||
}, | ||
@@ -47,0 +49,0 @@ |
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import createReactClass from 'create-react-class'; | ||
import classNames from 'classnames'; | ||
const Option = React.createClass({ | ||
const Option = createReactClass({ | ||
propTypes: { | ||
children: React.PropTypes.node, | ||
className: React.PropTypes.string, // className (based on mouse position) | ||
instancePrefix: React.PropTypes.string.isRequired, // unique prefix for the ids (used for aria) | ||
isDisabled: React.PropTypes.bool, // the option is disabled | ||
isFocused: React.PropTypes.bool, // the option is focused | ||
isSelected: React.PropTypes.bool, // the option is selected | ||
onFocus: React.PropTypes.func, // method to handle mouseEnter on option element | ||
onSelect: React.PropTypes.func, // method to handle click on option element | ||
onUnfocus: React.PropTypes.func, // method to handle mouseLeave on option element | ||
option: React.PropTypes.object.isRequired, // object that is base for that option | ||
optionIndex: React.PropTypes.number, // index of the option, used to generate unique ids for aria | ||
children: PropTypes.node, | ||
className: PropTypes.string, // className (based on mouse position) | ||
instancePrefix: PropTypes.string.isRequired, // unique prefix for the ids (used for aria) | ||
isDisabled: PropTypes.bool, // the option is disabled | ||
isFocused: PropTypes.bool, // the option is focused | ||
isSelected: PropTypes.bool, // the option is selected | ||
onFocus: PropTypes.func, // method to handle mouseEnter on option element | ||
onSelect: PropTypes.func, // method to handle click on option element | ||
onUnfocus: PropTypes.func, // method to handle mouseLeave on option element | ||
option: PropTypes.object.isRequired, // object that is base for that option | ||
optionIndex: PropTypes.number, // index of the option, used to generate unique ids for aria | ||
}, | ||
@@ -18,0 +20,0 @@ blockEvent (event) { |
@@ -9,2 +9,4 @@ /*! | ||
import ReactDOM from 'react-dom'; | ||
import createReactClass from 'create-react-class'; | ||
import PropTypes from 'prop-types'; | ||
import AutosizeInput from 'react-input-autosize'; | ||
@@ -36,5 +38,5 @@ import classNames from 'classnames'; | ||
const stringOrNode = React.PropTypes.oneOfType([ | ||
React.PropTypes.string, | ||
React.PropTypes.node | ||
const stringOrNode = PropTypes.oneOfType([ | ||
PropTypes.string, | ||
PropTypes.node | ||
]); | ||
@@ -44,3 +46,3 @@ | ||
const Select = React.createClass({ | ||
const Select = createReactClass({ | ||
@@ -50,71 +52,71 @@ displayName: 'Select', | ||
propTypes: { | ||
addLabelText: React.PropTypes.string, // placeholder displayed when you want to add a label on a multi-value input | ||
'aria-label': React.PropTypes.string, // Aria label (for assistive tech) | ||
'aria-labelledby': React.PropTypes.string, // HTML ID of an element that should be used as the label (for assistive tech) | ||
arrowRenderer: React.PropTypes.func, // Create drop-down caret element | ||
autoBlur: React.PropTypes.bool, // automatically blur the component when an option is selected | ||
autofocus: React.PropTypes.bool, // autofocus the component on mount | ||
autosize: React.PropTypes.bool, // whether to enable autosizing or not | ||
backspaceRemoves: React.PropTypes.bool, // whether backspace removes an item if there is no text input | ||
backspaceToRemoveMessage: React.PropTypes.string, // Message to use for screenreaders to press backspace to remove the current item - {label} is replaced with the item label | ||
className: React.PropTypes.string, // className for the outer element | ||
addLabelText: PropTypes.string, // placeholder displayed when you want to add a label on a multi-value input | ||
'aria-label': PropTypes.string, // Aria label (for assistive tech) | ||
'aria-labelledby': PropTypes.string, // HTML ID of an element that should be used as the label (for assistive tech) | ||
arrowRenderer: PropTypes.func, // Create drop-down caret element | ||
autoBlur: PropTypes.bool, // automatically blur the component when an option is selected | ||
autofocus: PropTypes.bool, // autofocus the component on mount | ||
autosize: PropTypes.bool, // whether to enable autosizing or not | ||
backspaceRemoves: PropTypes.bool, // whether backspace removes an item if there is no text input | ||
backspaceToRemoveMessage: PropTypes.string, // Message to use for screenreaders to press backspace to remove the current item - {label} is replaced with the item label | ||
className: PropTypes.string, // className for the outer element | ||
clearAllText: stringOrNode, // title for the "clear" control when multi: true | ||
clearValueText: stringOrNode, // title for the "clear" control | ||
clearable: React.PropTypes.bool, // should it be possible to reset value | ||
delimiter: React.PropTypes.string, // delimiter to use to join multiple values for the hidden field value | ||
disabled: React.PropTypes.bool, // whether the Select is disabled or not | ||
escapeClearsValue: React.PropTypes.bool, // whether escape clears the value when the menu is closed | ||
filterOption: React.PropTypes.func, // method to filter a single option (option, filterString) | ||
filterOptions: React.PropTypes.any, // boolean to enable default filtering or function to filter the options array ([options], filterString, [values]) | ||
focusedInputValue: React.PropTypes.func, // function(value) {} to ensure populated input on focus | ||
ignoreAccents: React.PropTypes.bool, // whether to strip diacritics when filtering | ||
ignoreCase: React.PropTypes.bool, // whether to perform case-insensitive filtering | ||
inputProps: React.PropTypes.object, // custom attributes for the Input | ||
inputRenderer: React.PropTypes.func, // returns a custom input component | ||
instanceId: React.PropTypes.string, // set the components instanceId | ||
isLoading: React.PropTypes.bool, // whether the Select is loading externally or not (such as options being loaded) | ||
joinValues: React.PropTypes.bool, // joins multiple values into a single form field with the delimiter (legacy mode) | ||
labelKey: React.PropTypes.string, // path of the label value in option objects | ||
matchPos: React.PropTypes.string, // (any|start) match the start or entire string when filtering | ||
matchProp: React.PropTypes.string, // (any|label|value) which option property to filter on | ||
menuBuffer: React.PropTypes.number, // optional buffer (in px) between the bottom of the viewport and the bottom of the menu | ||
menuContainerStyle: React.PropTypes.object, // optional style to apply to the menu container | ||
menuRenderer: React.PropTypes.func, // renders a custom menu with options | ||
menuStyle: React.PropTypes.object, // optional style to apply to the menu | ||
multi: React.PropTypes.bool, // multi-value input | ||
name: React.PropTypes.string, // generates a hidden <input /> tag with this field name for html forms | ||
clearable: PropTypes.bool, // should it be possible to reset value | ||
delimiter: PropTypes.string, // delimiter to use to join multiple values for the hidden field value | ||
disabled: PropTypes.bool, // whether the Select is disabled or not | ||
escapeClearsValue: PropTypes.bool, // whether escape clears the value when the menu is closed | ||
filterOption: PropTypes.func, // method to filter a single option (option, filterString) | ||
filterOptions: PropTypes.any, // boolean to enable default filtering or function to filter the options array ([options], filterString, [values]) | ||
focusedInputValue: PropTypes.func, // function(value) {} to ensure populated input on focus | ||
ignoreAccents: PropTypes.bool, // whether to strip diacritics when filtering | ||
ignoreCase: PropTypes.bool, // whether to perform case-insensitive filtering | ||
inputProps: PropTypes.object, // custom attributes for the Input | ||
inputRenderer: PropTypes.func, // returns a custom input component | ||
instanceId: PropTypes.string, // set the components instanceId | ||
isLoading: PropTypes.bool, // whether the Select is loading externally or not (such as options being loaded) | ||
joinValues: PropTypes.bool, // joins multiple values into a single form field with the delimiter (legacy mode) | ||
labelKey: PropTypes.string, // path of the label value in option objects | ||
matchPos: PropTypes.string, // (any|start) match the start or entire string when filtering | ||
matchProp: PropTypes.string, // (any|label|value) which option property to filter on | ||
menuBuffer: PropTypes.number, // optional buffer (in px) between the bottom of the viewport and the bottom of the menu | ||
menuContainerStyle: PropTypes.object, // optional style to apply to the menu container | ||
menuRenderer: PropTypes.func, // renders a custom menu with options | ||
menuStyle: PropTypes.object, // optional style to apply to the menu | ||
multi: PropTypes.bool, // multi-value input | ||
name: PropTypes.string, // generates a hidden <input /> tag with this field name for html forms | ||
noResultsText: stringOrNode, // placeholder displayed when there are no matching search results | ||
onBlur: React.PropTypes.func, // onBlur handler: function (event) {} | ||
onBlurResetsInput: React.PropTypes.bool, // whether input is cleared on blur | ||
onChange: React.PropTypes.func, // onChange handler: function (newValue) {} | ||
onClose: React.PropTypes.func, // fires when the menu is closed | ||
onCloseResetsInput: React.PropTypes.bool, // whether input is cleared when menu is closed through the arrow | ||
onFocus: React.PropTypes.func, // onFocus handler: function (event) {} | ||
onInputChange: React.PropTypes.func, // onInputChange handler: function (inputValue) {} | ||
onInputKeyDown: React.PropTypes.func, // input keyDown handler: function (event) {} | ||
onMenuScrollToBottom: React.PropTypes.func, // fires when the menu is scrolled to the bottom; can be used to paginate options | ||
onOpen: React.PropTypes.func, // fires when the menu is opened | ||
onValueClick: React.PropTypes.func, // onClick handler for value labels: function (value, event) {} | ||
openAfterFocus: React.PropTypes.bool, // boolean to enable opening dropdown when focused | ||
openOnFocus: React.PropTypes.bool, // always open options menu on focus | ||
optionClassName: React.PropTypes.string, // additional class(es) to apply to the <Option /> elements | ||
optionComponent: React.PropTypes.func, // option component to render in dropdown | ||
optionRenderer: React.PropTypes.func, // optionRenderer: function (option) {} | ||
options: React.PropTypes.array, // array of options | ||
pageSize: React.PropTypes.number, // number of entries to page when using page up/down keys | ||
onBlur: PropTypes.func, // onBlur handler: function (event) {} | ||
onBlurResetsInput: PropTypes.bool, // whether input is cleared on blur | ||
onChange: PropTypes.func, // onChange handler: function (newValue) {} | ||
onClose: PropTypes.func, // fires when the menu is closed | ||
onCloseResetsInput: PropTypes.bool, // whether input is cleared when menu is closed through the arrow | ||
onFocus: PropTypes.func, // onFocus handler: function (event) {} | ||
onInputChange: PropTypes.func, // onInputChange handler: function (inputValue) {} | ||
onInputKeyDown: PropTypes.func, // input keyDown handler: function (event) {} | ||
onMenuScrollToBottom: PropTypes.func, // fires when the menu is scrolled to the bottom; can be used to paginate options | ||
onOpen: PropTypes.func, // fires when the menu is opened | ||
onValueClick: PropTypes.func, // onClick handler for value labels: function (value, event) {} | ||
openAfterFocus: PropTypes.bool, // boolean to enable opening dropdown when focused | ||
openOnFocus: PropTypes.bool, // always open options menu on focus | ||
optionClassName: PropTypes.string, // additional class(es) to apply to the <Option /> elements | ||
optionComponent: PropTypes.func, // option component to render in dropdown | ||
optionRenderer: PropTypes.func, // optionRenderer: function (option) {} | ||
options: PropTypes.array, // array of options | ||
pageSize: PropTypes.number, // number of entries to page when using page up/down keys | ||
placeholder: stringOrNode, // field placeholder, displayed when there's no value | ||
required: React.PropTypes.bool, // applies HTML5 required attribute when needed | ||
resetValue: React.PropTypes.any, // value to use when you clear the control | ||
scrollMenuIntoView: React.PropTypes.bool, // boolean to enable the viewport to shift so that the full menu fully visible when engaged | ||
searchable: React.PropTypes.bool, // whether to enable searching feature or not | ||
simpleValue: React.PropTypes.bool, // pass the value to onChange as a simple value (legacy pre 1.0 mode), defaults to false | ||
style: React.PropTypes.object, // optional style to apply to the control | ||
tabIndex: React.PropTypes.string, // optional tab index of the control | ||
tabSelectsValue: React.PropTypes.bool, // whether to treat tabbing out while focused to be value selection | ||
value: React.PropTypes.any, // initial field value | ||
valueComponent: React.PropTypes.func, // value component to render | ||
valueKey: React.PropTypes.string, // path of the label value in option objects | ||
valueRenderer: React.PropTypes.func, // valueRenderer: function (option) {} | ||
wrapperStyle: React.PropTypes.object, // optional style to apply to the component wrapper | ||
inputValue: React.PropTypes.string, | ||
required: PropTypes.bool, // applies HTML5 required attribute when needed | ||
resetValue: PropTypes.any, // value to use when you clear the control | ||
scrollMenuIntoView: PropTypes.bool, // boolean to enable the viewport to shift so that the full menu fully visible when engaged | ||
searchable: PropTypes.bool, // whether to enable searching feature or not | ||
simpleValue: PropTypes.bool, // pass the value to onChange as a simple value (legacy pre 1.0 mode), defaults to false | ||
style: PropTypes.object, // optional style to apply to the control | ||
tabIndex: PropTypes.string, // optional tab index of the control | ||
tabSelectsValue: PropTypes.bool, // whether to treat tabbing out while focused to be value selection | ||
value: PropTypes.any, // initial field value | ||
valueComponent: PropTypes.func, // value component to render | ||
valueKey: PropTypes.string, // path of the label value in option objects | ||
valueRenderer: PropTypes.func, // valueRenderer: function (option) {} | ||
wrapperStyle: PropTypes.object, // optional style to apply to the component wrapper | ||
inputValue: PropTypes.string, | ||
}, | ||
@@ -121,0 +123,0 @@ |
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import createReactClass from 'create-react-class'; | ||
import classNames from 'classnames'; | ||
const Value = React.createClass({ | ||
const Value = createReactClass({ | ||
@@ -9,8 +11,8 @@ displayName: 'Value', | ||
propTypes: { | ||
children: React.PropTypes.node, | ||
disabled: React.PropTypes.bool, // disabled prop passed to ReactSelect | ||
id: React.PropTypes.string, // Unique id for the value - used for aria | ||
onClick: React.PropTypes.func, // method to handle click on value label | ||
onRemove: React.PropTypes.func, // method to handle removal of the value | ||
value: React.PropTypes.object.isRequired, // the option object for this value | ||
children: PropTypes.node, | ||
disabled: PropTypes.bool, // disabled prop passed to ReactSelect | ||
id: PropTypes.string, // Unique id for the value - used for aria | ||
onClick: PropTypes.func, // method to handle click on value label | ||
onRemove: PropTypes.func, // method to handle removal of the value | ||
value: PropTypes.object.isRequired, // the option object for this value | ||
}, | ||
@@ -17,0 +19,0 @@ |
@@ -20,3 +20,3 @@ 'use strict'; | ||
var ReactDOM = require('react-dom'); | ||
var TestUtils = require('react-addons-test-utils'); | ||
var TestUtils = require('react-dom/test-utils'); | ||
var sinon = require('sinon'); | ||
@@ -23,0 +23,0 @@ |
@@ -17,3 +17,3 @@ 'use strict'; | ||
var ReactDOM = require('react-dom'); | ||
var TestUtils = require('react-addons-test-utils'); | ||
var TestUtils = require('react-dom/test-utils'); | ||
var sinon = require('sinon'); | ||
@@ -20,0 +20,0 @@ var Select = require('../src/Select'); |
@@ -18,3 +18,3 @@ 'use strict'; | ||
var ReactDOM = require('react-dom'); | ||
var TestUtils = require('react-addons-test-utils'); | ||
var TestUtils = require('react-dom/test-utils'); | ||
var Select = require('../src/Select'); | ||
@@ -21,0 +21,0 @@ |
@@ -19,3 +19,3 @@ 'use strict'; | ||
var ReactDOM = require('react-dom'); | ||
var TestUtils = require('react-addons-test-utils'); | ||
var TestUtils = require('react-dom/test-utils'); | ||
@@ -22,0 +22,0 @@ var OPTION = { label: 'TEST-LABEL', value: 'TEST-VALUE' }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1091253
85
13400
27
2
400
3
+ Addedreact-input-autosize@2.2.2(transitive)
- Removedreact-input-autosize@1.2.0(transitive)
Updatedreact-input-autosize@^2.0.1