{"version":3,"sources":["webpack:///./node_modules/rc-select/es/util.js","webpack:///./node_modules/rc-select/es/Option.js","webpack:///./node_modules/rc-select/es/PropTypes.js","webpack:///./node_modules/rc-select/es/index.js","webpack:///./node_modules/rc-select/es/OptGroup.js","webpack:///./node_modules/rc-select/es/Select.js","webpack:///./node_modules/rc-select/node_modules/warning/warning.js","webpack:///./node_modules/rc-select/es/SelectTrigger.js","webpack:///./node_modules/rc-select/es/DropdownMenu.js"],"names":["__importDefault","this","mod","__esModule","Object","defineProperty","exports","value","react_1","getValuePropValue","child","props","key","type","isSelectOptGroup","label","Error","concat","getPropValue","prop","isMultiple","multiple","isCombobox","combobox","isMultipleOrTags","tags","isMultipleOrTagsOrCombobox","isSingleMode","toArray","ret","undefined","Array","isArray","findIndexInValueBySingleValue","singleValue","index","i","length","toTitle","title","getMapKey","preventDefaultEvent","e","preventDefault","getLabelFromPropsValue","getSelectKeys","menuItems","selectedKeys","Children","forEach","item","isMenuItemGroup","children","itemValue","itemKey","push","UNSELECTABLE_STYLE","userSelect","WebkitUserSelect","UNSELECTABLE_ATTRIBUTE","unselectable","findFirstMenuItem","found","disabled","includesSeparators","str","separators","lastIndexOf","splitBySeparators","reg","RegExp","join","split","filter","token","defaultFilterFn","input","optionFilterProp","toLowerCase","indexOf","validateOptionValue","saveRef","instance","name","node","generateUUID","d","Date","getTime","replace","c","r","Math","random","floor","toString","_classCallCheck","Constructor","TypeError","_possibleConstructorReturn","self","call","ReferenceError","_assertThisInitialized","_getPrototypeOf","o","setPrototypeOf","getPrototypeOf","__proto__","_setPrototypeOf","p","__importStar","result","k","hasOwnProperty","PropTypes","Option","_react_1$Component","apply","arguments","subClass","superClass","prototype","create","constructor","writable","configurable","_inherits","Component","propTypes","oneOfType","string","number","isSelectOption","_toConsumableArray","arr","arr2","_arrayWithoutHoles","iter","Symbol","iterator","from","_iterableToArray","_nonIterableSpread","propsValueType","_len","args","_key","propName","componentName","rest","slice","basicType","labelInValueShape","shape","isRequired","labelInValue","mode","_validate","arrayOf","validate","error","SelectPropTypes","id","defaultActiveFirstOption","bool","filterOption","any","showSearch","allowClear","showArrow","prefixCls","className","transitionName","optionLabelProp","animation","choiceTransitionName","open","defaultOpen","onChange","func","onBlur","onFocus","onSelect","onSearch","onPopupScroll","onMouseEnter","onMouseLeave","onInputKeyDown","placeholder","onDeselect","loading","defaultValue","dropdownStyle","object","maxTagTextLength","maxTagCount","maxTagPlaceholder","tokenSeparators","getInputElement","showAction","clearIcon","inputIcon","removeIcon","menuItemSelectedIcon","dropdownRender","OptGroup_1","OptGroup","Option_1","PropTypes_1","Select_1","ownKeys","enumerableOnly","keys","getOwnPropertySymbols","symbols","sym","getOwnPropertyDescriptor","enumerable","_objectSpread","target","source","_defineProperty","getOwnPropertyDescriptors","defineProperties","obj","_extends","assign","_defineProperties","descriptor","classnames_1","component_classes_1","rc_animate_1","rc_menu_1","toArray_1","KeyCode_1","React","ReactDOM","react_lifecycles_compat_1","warning_1","SelectTrigger_1","util_1","noop","chaining","fns","_len2","_key2","Select","_React$Component","_this","inputRef","inputMirrorRef","topCtrlRef","selectTriggerRef","rootRef","selectionRef","dropdownContainer","blurTimer","focusTimer","comboboxTimer","_focused","_mouseDown","_options","_empty","onInputChange","event","val","nextValue","getValueByInput","fireChange","setOpenState","needFocus","setInputValue","setState","onDropdownVisibleChange","clearBlurTime","timeoutFocus","updateFocusClassName","onKeyDown","state","keyCode","getInputDOMNode","ENTER","DOWN","SPACE","_this$props","isRealOpen","getRealOpenState","BACKSPACE","openIfHasChildren","stopPropagation","setTimeout","ESC","menu","getInnerMenu","handleBackfill","removeSelected","onMenuSelect","_ref","selectedValue","lastValue","skipTrigger","backfillValue","fireSearch","fireSelect","inputValue","autoClearSearchValue","onMenuDeselect","_ref2","domEvent","menuItemDomNode","findDOMNode","offsetParent","onArrowClick","onPlaceholderClick","focus","onOuterFocus","inputNode","onPopupFocus","maybeFocus","onOuterBlur","window","options","firstOption","tmpValue","getVLForOnChange","onClearSelection","onChoiceAnimationLeave","forcePopupAlign","getOptionInfoBySingleValue","optionsInfo","info","defaultLabel","valueLabel","defaultValueLabel","option","createElement","getOptionBySingleValue","getOptionsBySingleValue","values","map","getValueByLabel","oldLable","getVLBySingleValue","getLabelBySingleValue","vlsS","vls","vl","v","getDropdownContainer","document","body","appendChild","getPlaceholderElement","hidden","onMouseDown","style","display","onClick","defaultInput","autoComplete","inputElement","inputCls","cloneElement","ref","saveInputRef","saveInputMirrorRef","querySelector","getInputMirrorDOMNode","getPopupDOMNode","getPopupMenuComponent","config","nextState","prevState","_this$props2","hasNewValue","_open","markMouseDown","markMouseLeave","backfill","defaultFilter","filterFn","bind","clearFocusTime","clearTimeout","clearComboboxTime","add","remove","activeElement","selectedKey","isChildDisabled","count","some","triggerRef","renderFilterOptions","_this$props3","notFoundContent","childrenKeys","empty","renderFilterOptionsFromChildren","String","sort","val1","val2","menuItem","Item","role","attribute","every","unshift","sel","innerItems","subChild","childValueSub","ItemGroup","_innerItems","displayName","childValue","renderTopControlNode","_this$state","innerNode","showSelectedValue","opacity","_this$getOptionInfoBy3","maxTagPlaceholderEl","selectedValueNodes","limitedCountValue","omittedValues","content","choiceClassName","onLeave","component","saveTopCtrlRef","getOptionsInfoFromProps","isDisabledExist","getValueFromProps","getInputValueForCombobox","skipBuildOptionsInfo","ariaId","saveSelectTriggerRef","saveRootRef","saveSelectionRef","protoProps","staticProps","autoFocus","mirrorNode","width","clientWidth","unmountComponentAtNode","removeChild","blur","_this$props4","_this$props4$showArro","defaultIcon","_this$props5","clear","_rootCls","_props$showArrow","ctrlNode","_this$state2","filterOptions","realOpen","dataOrAriaAttributeProps","substr","extraSelectionProps","tabIndex","rootCls","dropdownAlign","dropdownClassName","dropdownMatchSelectWidth","dropdownMenuStyle","visible","firstActiveValue","getPopupContainer","onMouseUp","onMouseOut","renderClear","renderArrow","defaultProps","getDerivedStateFromProps","nextProps","newState","getOptionsFromChildren","useDefaultValue","getLabelFromOption","preState","oldOptionsInfo","polyfill","warning","module","_objectWithoutProperties","excluded","sourceKeys","_objectWithoutPropertiesLoose","sourceSymbolKeys","propertyIsEnumerable","raf_1","rc_trigger_1","DropdownMenu_1","BUILT_IN_PLACEMENTS","bottomLeft","points","offset","overflow","adjustX","adjustY","topLeft","SelectTrigger","dropdownMenuRef","rafInstance","setDropdownWidth","cancelRafInstance","offsetWidth","dropdownWidth","cancel","menuRef","getPopupDomNode","getDropdownElement","newProps","menuNode","saveDropdownMenuRef","getDropdownPrefixCls","getDropdownTransitionName","saveTriggerRef","_popupClassName","hideAction","dropdownPrefixCls","popupClassName","popupElement","popupStyle","widthProp","popupPlacement","builtinPlacements","popupTransitionName","onPopupVisibleChange","popup","popupAlign","popupVisible","dom_scroll_into_view_1","react_dom_1","DropdownMenu","lastVisible","scrollActiveItemToView","itemComponent","firstActiveItem","scrollIntoViewOpts","onlyScrollIfNeeded","alignWithTop","renderMenu","menuProps","activeKeyProps","defaultActiveFirst","clonedMenuItems","activeKey","foundFirst","clone","lastInputValue","saveMenuRef","itemIcon","prevProps","transform","onScroll","onMenuDeSelect"],"mappings":"2FAEA,IAAIA,EAAkBC,MAAQA,KAAKD,iBAAmB,SAAUE,GAC9D,OAAOA,GAAOA,EAAIC,WAAaD,EAAM,CACnC,QAAWA,IAIfE,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAGT,IAAIC,EAAUR,EAAgB,EAAQ,IAYtC,SAASS,EAAkBC,GACzB,IAAKA,EACH,OAAO,KAGT,IAAIC,EAAQD,EAAMC,MAElB,GAAI,UAAWA,EACb,OAAOA,EAAMJ,MAGf,GAAIG,EAAME,IACR,OAAOF,EAAME,IAGf,GAAIF,EAAMG,MAAQH,EAAMG,KAAKC,kBAAoBH,EAAMI,MACrD,OAAOJ,EAAMI,MAGf,MAAM,IAAIC,MAAM,qEAAqEC,OAAOP,IAK9F,SAASQ,EAAaR,EAAOS,GAC3B,MAAa,UAATA,EACKV,EAAkBC,GAGpBA,EAAMC,MAAMQ,GAKrB,SAAS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Ac,MAAO,CAC7CoB,MAAO,CACLmJ,SAAU,OACVyD,UAAW,iBAEb7Y,GAAIlK,KAAKU,MAAM2a,OACfhQ,QAASrL,KAAKU,MAAMmT,aACpBqC,YAAalH,EAAOxM,oBACpBwgB,SAAUhjB,KAAKU,MAAM8K,eACpB2W,GAAc,UAjPuDhU,EAAkBnI,EAAYyB,UAAWgU,GAAiBC,GAAavN,EAAkBnI,EAAa0V,GAqP3KiG,EAnMT,CAoMEhT,EAAM5G,WAER1H,EAAiB,QAAIshB,EACrBA,EAAa5H,YAAc,eAC3B4H,EAAa3Z,UAAY,CACvBqT,OAAQnU,EAAUgB,OAClBiC,yBAA0BjD,EAAUkD,KACpC9J,MAAO4G,EAAUoD,IACjB+S,kBAAmBnW,EAAU+E,OAC7B7K,SAAU8F,EAAUkD,KACpByJ,aAAc3M,EAAUiE,KACxBK,cAAetE,EAAUiE,KACzB8X,eAAgB/b,EAAUiE,KAC1BqH,aAActL,EAAUiE,KACxBT,UAAWxD,EAAUgB,OACrBrF,UAAWqE,EAAUoD,IACrB0I,WAAY9L,EAAUgB,OACtBoV,QAASpW,EAAUkD,KACnBmT,iBAAkBrW,EAAUgB,OAC5ByE,qBAAsBzF,EAAUe,UAAU,CAACf,EAAUiE,KAAMjE,EAAU/B","file":"npm.rc-select.c920b4ddeb9b68365139.js","sourcesContent":["\"use strict\";\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar react_1 = __importDefault(require(\"react\"));\n\nfunction toTitle(title) {\n if (typeof title === 'string') {\n return title;\n }\n\n return '';\n}\n\nexports.toTitle = toTitle;\n\nfunction getValuePropValue(child) {\n if (!child) {\n return null;\n }\n\n var props = child.props;\n\n if ('value' in props) {\n return props.value;\n }\n\n if (child.key) {\n return child.key;\n }\n\n if (child.type && child.type.isSelectOptGroup && props.label) {\n return props.label;\n }\n\n throw new Error(\"Need at least a key or a value or a label (only for OptGroup) for \".concat(child));\n}\n\nexports.getValuePropValue = getValuePropValue;\n\nfunction getPropValue(child, prop) {\n if (prop === 'value') {\n return getValuePropValue(child);\n }\n\n return child.props[prop];\n}\n\nexports.getPropValue = getPropValue;\n\nfunction isMultiple(props) {\n return props.multiple;\n}\n\nexports.isMultiple = isMultiple;\n\nfunction isCombobox(props) {\n return props.combobox;\n}\n\nexports.isCombobox = isCombobox;\n\nfunction isMultipleOrTags(props) {\n return props.multiple || props.tags;\n}\n\nexports.isMultipleOrTags = isMultipleOrTags;\n\nfunction isMultipleOrTagsOrCombobox(props) {\n return isMultipleOrTags(props) || isCombobox(props);\n}\n\nexports.isMultipleOrTagsOrCombobox = isMultipleOrTagsOrCombobox;\n\nfunction isSingleMode(props) {\n return !isMultipleOrTagsOrCombobox(props);\n}\n\nexports.isSingleMode = isSingleMode;\n\nfunction toArray(value) {\n var ret = value;\n\n if (value === undefined) {\n ret = [];\n } else if (!Array.isArray(value)) {\n ret = [value];\n }\n\n return ret;\n}\n\nexports.toArray = toArray;\n\nfunction getMapKey(value) {\n return \"\".concat(typeof value, \"-\").concat(value);\n}\n\nexports.getMapKey = getMapKey;\n\nfunction preventDefaultEvent(e) {\n e.preventDefault();\n}\n\nexports.preventDefaultEvent = preventDefaultEvent;\n\nfunction findIndexInValueBySingleValue(value, singleValue) {\n var index = -1;\n\n if (value) {\n for (var i = 0; i < value.length; i++) {\n if (value[i] === singleValue) {\n index = i;\n break;\n }\n }\n }\n\n return index;\n}\n\nexports.findIndexInValueBySingleValue = findIndexInValueBySingleValue;\n\nfunction getLabelFromPropsValue(value, key) {\n var label;\n value = toArray(value);\n\n if (value) {\n // tslint:disable-next-line:prefer-for-of\n for (var i = 0; i < value.length; i++) {\n if (value[i].key === key) {\n label = value[i].label;\n break;\n }\n }\n }\n\n return label;\n}\n\nexports.getLabelFromPropsValue = getLabelFromPropsValue;\n\nfunction getSelectKeys(menuItems, value) {\n if (value === null || value === undefined) {\n return [];\n }\n\n var selectedKeys = [];\n react_1[\"default\"].Children.forEach(menuItems, function (item) {\n var type = item.type;\n\n if (type.isMenuItemGroup) {\n selectedKeys = selectedKeys.concat(getSelectKeys(item.props.children, value));\n } else {\n var itemValue = getValuePropValue(item);\n var itemKey = item.key;\n\n if (findIndexInValueBySingleValue(value, itemValue) !== -1 && itemKey) {\n selectedKeys.push(itemKey);\n }\n }\n });\n return selectedKeys;\n}\n\nexports.getSelectKeys = getSelectKeys;\nexports.UNSELECTABLE_STYLE = {\n userSelect: 'none',\n WebkitUserSelect: 'none'\n};\nexports.UNSELECTABLE_ATTRIBUTE = {\n unselectable: 'on'\n};\n\nfunction findFirstMenuItem(children) {\n // tslint:disable-next-line:prefer-for-of\n for (var i = 0; i < children.length; i++) {\n var child = children[i];\n\n if (child.type.isMenuItemGroup) {\n var found = findFirstMenuItem(child.props.children);\n\n if (found) {\n return found;\n }\n } else if (!child.props.disabled) {\n return child;\n }\n }\n\n return null;\n}\n\nexports.findFirstMenuItem = findFirstMenuItem;\n\nfunction includesSeparators(str, separators) {\n // tslint:disable-next-line:prefer-for-of\n for (var i = 0; i < separators.length; ++i) {\n if (str.lastIndexOf(separators[i]) > 0) {\n return true;\n }\n }\n\n return false;\n}\n\nexports.includesSeparators = includesSeparators;\n\nfunction splitBySeparators(str, separators) {\n var reg = new RegExp(\"[\".concat(separators.join(), \"]\"));\n return str.split(reg).filter(function (token) {\n return token;\n });\n}\n\nexports.splitBySeparators = splitBySeparators;\n\nfunction defaultFilterFn(input, child) {\n if (child.props.disabled) {\n return false;\n }\n\n var value = toArray(getPropValue(child, this.props.optionFilterProp)).join('');\n return value.toLowerCase().indexOf(input.toLowerCase()) > -1;\n}\n\nexports.defaultFilterFn = defaultFilterFn;\n\nfunction validateOptionValue(value, props) {\n if (isSingleMode(props) || isMultiple(props)) {\n return;\n }\n\n if (typeof value !== 'string') {\n throw new Error(\"Invalid `value` of type `\".concat(typeof value, \"` supplied to Option, \") + \"expected `string` when `tags/combobox` is `true`.\");\n }\n}\n\nexports.validateOptionValue = validateOptionValue;\n\nfunction saveRef(instance, name) {\n return function (node) {\n instance[name] = node;\n };\n}\n\nexports.saveRef = saveRef;\n\nfunction generateUUID() {\n if (process.env.NODE_ENV === 'test') {\n return 'test-uuid';\n }\n\n var d = new Date().getTime();\n var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\n // tslint:disable-next-line:no-bitwise\n var r = (d + Math.random() * 16) % 16 | 0;\n d = Math.floor(d / 16); // tslint:disable-next-line:no-bitwise\n\n return (c === 'x' ? r : r & 0x7 | 0x8).toString(16);\n });\n return uuid;\n}\n\nexports.generateUUID = generateUUID;","\"use strict\";\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nvar __importStar = this && this.__importStar || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) {\n if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n }\n result[\"default\"] = mod;\n return result;\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar PropTypes = __importStar(require(\"prop-types\"));\n\nvar react_1 = require(\"react\");\n\nvar Option =\n/*#__PURE__*/\nfunction (_react_1$Component) {\n _inherits(Option, _react_1$Component);\n\n function Option() {\n _classCallCheck(this, Option);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Option).apply(this, arguments));\n }\n\n return Option;\n}(react_1.Component);\n\nexports[\"default\"] = Option;\nOption.propTypes = {\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number])\n};\nOption.isSelectOption = true;","\"use strict\";\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nvar __importStar = this && this.__importStar || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) {\n if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n }\n result[\"default\"] = mod;\n return result;\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar PropTypes = __importStar(require(\"prop-types\"));\n\nfunction propsValueType() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var props = args[0],\n propName = args[1],\n componentName = args[2],\n rest = args.slice(3);\n var basicType = PropTypes.oneOfType([PropTypes.string, PropTypes.number]);\n var labelInValueShape = PropTypes.shape({\n key: basicType.isRequired,\n label: PropTypes.node\n });\n\n if (props.labelInValue) {\n var validate = PropTypes.oneOfType([PropTypes.arrayOf(labelInValueShape), labelInValueShape]);\n var error = validate.apply(void 0, [props, propName, componentName].concat(_toConsumableArray(rest)));\n\n if (error) {\n return new Error(\"Invalid prop `\".concat(propName, \"` supplied to `\").concat(componentName, \"`, \") + \"when you set `labelInValue` to `true`, `\".concat(propName, \"` should in \") + \"shape of `{ key: string | number, label?: ReactNode }`.\");\n }\n } else if ((props.mode === 'multiple' || props.mode === 'tags' || props.multiple || props.tags) && props[propName] === '') {\n return new Error(\"Invalid prop `\".concat(propName, \"` of type `string` supplied to `\").concat(componentName, \"`, \") + \"expected `array` when `multiple` or `tags` is `true`.\");\n } else {\n var _validate = PropTypes.oneOfType([PropTypes.arrayOf(basicType), basicType]);\n\n return _validate.apply(void 0, [props, propName, componentName].concat(_toConsumableArray(rest)));\n }\n\n return null;\n}\n\nvar SelectPropTypes = {\n id: PropTypes.string,\n defaultActiveFirstOption: PropTypes.bool,\n multiple: PropTypes.bool,\n filterOption: PropTypes.any,\n children: PropTypes.any,\n showSearch: PropTypes.bool,\n disabled: PropTypes.bool,\n allowClear: PropTypes.bool,\n showArrow: PropTypes.bool,\n tags: PropTypes.bool,\n prefixCls: PropTypes.string,\n className: PropTypes.string,\n transitionName: PropTypes.string,\n optionLabelProp: PropTypes.string,\n optionFilterProp: PropTypes.string,\n animation: PropTypes.string,\n choiceTransitionName: PropTypes.string,\n open: PropTypes.bool,\n defaultOpen: PropTypes.bool,\n onChange: PropTypes.func,\n onBlur: PropTypes.func,\n onFocus: PropTypes.func,\n onSelect: PropTypes.func,\n onSearch: PropTypes.func,\n onPopupScroll: PropTypes.func,\n onMouseEnter: PropTypes.func,\n onMouseLeave: PropTypes.func,\n onInputKeyDown: PropTypes.func,\n placeholder: PropTypes.any,\n onDeselect: PropTypes.func,\n labelInValue: PropTypes.bool,\n loading: PropTypes.bool,\n value: propsValueType,\n defaultValue: propsValueType,\n dropdownStyle: PropTypes.object,\n maxTagTextLength: PropTypes.number,\n maxTagCount: PropTypes.number,\n maxTagPlaceholder: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),\n tokenSeparators: PropTypes.arrayOf(PropTypes.string),\n getInputElement: PropTypes.func,\n showAction: PropTypes.arrayOf(PropTypes.string),\n clearIcon: PropTypes.node,\n inputIcon: PropTypes.node,\n removeIcon: PropTypes.node,\n menuItemSelectedIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),\n dropdownRender: PropTypes.func\n};\nexports[\"default\"] = SelectPropTypes;","\"use strict\";\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar OptGroup_1 = __importDefault(require(\"./OptGroup\"));\n\nexports.OptGroup = OptGroup_1[\"default\"];\n\nvar Option_1 = __importDefault(require(\"./Option\"));\n\nexports.Option = Option_1[\"default\"];\n\nvar PropTypes_1 = __importDefault(require(\"./PropTypes\"));\n\nexports.SelectPropTypes = PropTypes_1[\"default\"];\n\nvar Select_1 = __importDefault(require(\"./Select\"));\n\nSelect_1[\"default\"].Option = Option_1[\"default\"];\nSelect_1[\"default\"].OptGroup = OptGroup_1[\"default\"];\nexports[\"default\"] = Select_1[\"default\"];","\"use strict\";\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar react_1 = require(\"react\");\n\nvar OptGroup =\n/*#__PURE__*/\nfunction (_react_1$Component) {\n _inherits(OptGroup, _react_1$Component);\n\n function OptGroup() {\n _classCallCheck(this, OptGroup);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(OptGroup).apply(this, arguments));\n }\n\n return OptGroup;\n}(react_1.Component);\n\nexports[\"default\"] = OptGroup;\nOptGroup.isSelectOptGroup = true;","\"use strict\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\n\nvar __importStar = this && this.__importStar || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) {\n if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n }\n result[\"default\"] = mod;\n return result;\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar classnames_1 = __importDefault(require(\"classnames\"));\n\nvar component_classes_1 = __importDefault(require(\"component-classes\"));\n\nvar rc_animate_1 = __importDefault(require(\"rc-animate\"));\n\nvar rc_menu_1 = require(\"rc-menu\");\n\nvar toArray_1 = __importDefault(require(\"rc-util/lib/Children/toArray\"));\n\nvar KeyCode_1 = __importDefault(require(\"rc-util/lib/KeyCode\"));\n\nvar React = __importStar(require(\"react\"));\n\nvar ReactDOM = __importStar(require(\"react-dom\"));\n\nvar react_lifecycles_compat_1 = require(\"react-lifecycles-compat\");\n\nvar warning_1 = __importDefault(require(\"warning\"));\n\nvar Option_1 = __importDefault(require(\"./Option\")); // Where el is the DOM element you'd like to test for visibility\n\n\nfunction isHidden(node) {\n return !node || node.offsetParent === null;\n}\n\nvar PropTypes_1 = __importDefault(require(\"./PropTypes\"));\n\nvar SelectTrigger_1 = __importDefault(require(\"./SelectTrigger\"));\n\nvar util_1 = require(\"./util\");\n\nvar SELECT_EMPTY_VALUE_KEY = 'RC_SELECT_EMPTY_VALUE_KEY';\n\nvar noop = function noop() {\n return null;\n};\n\nfunction chaining() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n // tslint:disable-next-line:prefer-for-of\n for (var i = 0; i < fns.length; i++) {\n if (fns[i] && typeof fns[i] === 'function') {\n fns[i].apply(chaining, args);\n }\n }\n };\n}\n\nvar Select =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(Select, _React$Component);\n\n function Select(props) {\n var _this;\n\n _classCallCheck(this, Select);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Select).call(this, props));\n _this.inputRef = null;\n _this.inputMirrorRef = null;\n _this.topCtrlRef = null;\n _this.selectTriggerRef = null;\n _this.rootRef = null;\n _this.selectionRef = null;\n _this.dropdownContainer = null;\n _this.blurTimer = null;\n _this.focusTimer = null;\n _this.comboboxTimer = null; // tslint:disable-next-line:variable-name\n\n _this._focused = false; // tslint:disable-next-line:variable-name\n\n _this._mouseDown = false; // tslint:disable-next-line:variable-name\n\n _this._options = []; // tslint:disable-next-line:variable-name\n\n _this._empty = false;\n\n _this.onInputChange = function (event) {\n var tokenSeparators = _this.props.tokenSeparators;\n var val = event.target.value;\n\n if (util_1.isMultipleOrTags(_this.props) && tokenSeparators.length && util_1.includesSeparators(val, tokenSeparators)) {\n var nextValue = _this.getValueByInput(val);\n\n if (nextValue !== undefined) {\n _this.fireChange(nextValue);\n }\n\n _this.setOpenState(false, {\n needFocus: true\n });\n\n _this.setInputValue('', false);\n\n return;\n }\n\n _this.setInputValue(val);\n\n _this.setState({\n open: true\n });\n\n if (util_1.isCombobox(_this.props)) {\n _this.fireChange([val]);\n }\n };\n\n _this.onDropdownVisibleChange = function (open) {\n if (open && !_this._focused) {\n _this.clearBlurTime();\n\n _this.timeoutFocus();\n\n _this._focused = true;\n\n _this.updateFocusClassName();\n }\n\n _this.setOpenState(open);\n }; // combobox ignore\n\n\n _this.onKeyDown = function (event) {\n var open = _this.state.open;\n var disabled = _this.props.disabled;\n\n if (disabled) {\n return;\n }\n\n var keyCode = event.keyCode;\n\n if (open && !_this.getInputDOMNode()) {\n _this.onInputKeyDown(event);\n } else if (keyCode === KeyCode_1[\"default\"].ENTER || keyCode === KeyCode_1[\"default\"].DOWN) {\n if (!open) {\n _this.setOpenState(true);\n }\n\n event.preventDefault();\n } else if (keyCode === KeyCode_1[\"default\"].SPACE) {\n // Not block space if popup is shown\n if (!open) {\n _this.setOpenState(true);\n\n event.preventDefault();\n }\n }\n };\n\n _this.onInputKeyDown = function (event) {\n var _this$props = _this.props,\n disabled = _this$props.disabled,\n combobox = _this$props.combobox,\n defaultActiveFirstOption = _this$props.defaultActiveFirstOption;\n\n if (disabled) {\n return;\n }\n\n var state = _this.state;\n\n var isRealOpen = _this.getRealOpenState(state); // magic code\n\n\n var keyCode = event.keyCode;\n\n if (util_1.isMultipleOrTags(_this.props) && !event.target.value && keyCode === KeyCode_1[\"default\"].BACKSPACE) {\n event.preventDefault();\n var value = state.value;\n\n if (value.length) {\n _this.removeSelected(value[value.length - 1]);\n }\n\n return;\n }\n\n if (keyCode === KeyCode_1[\"default\"].DOWN) {\n if (!state.open) {\n _this.openIfHasChildren();\n\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n } else if (keyCode === KeyCode_1[\"default\"].ENTER && state.open) {\n // Aviod trigger form submit when select item\n // https://github.com/ant-design/ant-design/issues/10861\n // https://github.com/ant-design/ant-design/issues/14544\n if (isRealOpen || !combobox) {\n event.preventDefault();\n } // Hard close popup to avoid lock of non option in combobox mode\n\n\n if (isRealOpen && combobox && defaultActiveFirstOption === false) {\n _this.comboboxTimer = setTimeout(function () {\n _this.setOpenState(false);\n });\n }\n } else if (keyCode === KeyCode_1[\"default\"].ESC) {\n if (state.open) {\n _this.setOpenState(false);\n\n event.preventDefault();\n event.stopPropagation();\n }\n\n return;\n }\n\n if (isRealOpen && _this.selectTriggerRef) {\n var menu = _this.selectTriggerRef.getInnerMenu();\n\n if (menu && menu.onKeyDown(event, _this.handleBackfill)) {\n event.preventDefault();\n event.stopPropagation();\n }\n }\n };\n\n _this.onMenuSelect = function (_ref) {\n var item = _ref.item;\n\n if (!item) {\n return;\n }\n\n var value = _this.state.value;\n var props = _this.props;\n var selectedValue = util_1.getValuePropValue(item);\n var lastValue = value[value.length - 1];\n var skipTrigger = false;\n\n if (util_1.isMultipleOrTags(props)) {\n if (util_1.findIndexInValueBySingleValue(value, selectedValue) !== -1) {\n skipTrigger = true;\n } else {\n value = value.concat([selectedValue]);\n }\n } else {\n if (!util_1.isCombobox(props) && lastValue !== undefined && lastValue === selectedValue && selectedValue !== _this.state.backfillValue) {\n _this.setOpenState(false, {\n needFocus: true,\n fireSearch: false\n });\n\n skipTrigger = true;\n } else {\n value = [selectedValue];\n\n _this.setOpenState(false, {\n needFocus: true,\n fireSearch: false\n });\n }\n }\n\n if (!skipTrigger) {\n _this.fireChange(value);\n }\n\n _this.fireSelect(selectedValue);\n\n if (!skipTrigger) {\n var inputValue = util_1.isCombobox(props) ? util_1.getPropValue(item, props.optionLabelProp) : '';\n\n if (props.autoClearSearchValue) {\n _this.setInputValue(inputValue, false);\n }\n }\n };\n\n _this.onMenuDeselect = function (_ref2) {\n var item = _ref2.item,\n domEvent = _ref2.domEvent;\n\n if (domEvent.type === 'keydown' && domEvent.keyCode === KeyCode_1[\"default\"].ENTER) {\n var menuItemDomNode = ReactDOM.findDOMNode(item); // https://github.com/ant-design/ant-design/issues/20465#issuecomment-569033796\n\n if (!isHidden(menuItemDomNode)) {\n _this.removeSelected(util_1.getValuePropValue(item));\n }\n\n return;\n }\n\n if (domEvent.type === 'click') {\n _this.removeSelected(util_1.getValuePropValue(item));\n }\n\n var props = _this.props;\n\n if (props.autoClearSearchValue) {\n _this.setInputValue('');\n }\n };\n\n _this.onArrowClick = function (e) {\n e.stopPropagation();\n e.preventDefault();\n\n if (!_this.props.disabled) {\n _this.setOpenState(!_this.state.open, {\n needFocus: !_this.state.open\n });\n }\n };\n\n _this.onPlaceholderClick = function () {\n if (_this.getInputDOMNode && _this.getInputDOMNode()) {\n _this.getInputDOMNode().focus();\n }\n };\n\n _this.onOuterFocus = function (e) {\n if (_this.props.disabled) {\n e.preventDefault();\n return;\n }\n\n _this.clearBlurTime(); // In IE11, onOuterFocus will be trigger twice when focus input\n // First one: e.target is div\n // Second one: e.target is input\n // other browser only trigger second one\n // https://github.com/ant-design/ant-design/issues/15942\n // Here we ignore the first one when e.target is div\n\n\n var inputNode = _this.getInputDOMNode();\n\n if (inputNode && e.target === _this.rootRef) {\n return;\n }\n\n if (!util_1.isMultipleOrTagsOrCombobox(_this.props) && e.target === inputNode) {\n return;\n }\n\n if (_this._focused) {\n return;\n }\n\n _this._focused = true;\n\n _this.updateFocusClassName(); // only effect multiple or tag mode\n\n\n if (!util_1.isMultipleOrTags(_this.props) || !_this._mouseDown) {\n _this.timeoutFocus();\n }\n };\n\n _this.onPopupFocus = function () {\n // fix ie scrollbar, focus element again\n _this.maybeFocus(true, true);\n };\n\n _this.onOuterBlur = function (e) {\n if (_this.props.disabled) {\n e.preventDefault();\n return;\n }\n\n _this.blurTimer = window.setTimeout(function () {\n _this._focused = false;\n\n _this.updateFocusClassName();\n\n var props = _this.props;\n var value = _this.state.value;\n var inputValue = _this.state.inputValue;\n\n if (util_1.isSingleMode(props) && props.showSearch && inputValue && props.defaultActiveFirstOption) {\n var options = _this._options || [];\n\n if (options.length) {\n var firstOption = util_1.findFirstMenuItem(options);\n\n if (firstOption) {\n value = [util_1.getValuePropValue(firstOption)];\n\n _this.fireChange(value);\n }\n }\n } else if (util_1.isMultipleOrTags(props) && inputValue) {\n if (_this._mouseDown) {\n // need update dropmenu when not blur\n _this.setInputValue('');\n } else {\n // why not use setState?\n // https://github.com/ant-design/ant-design/issues/14262\n _this.state.inputValue = '';\n\n if (_this.getInputDOMNode && _this.getInputDOMNode()) {\n _this.getInputDOMNode().value = '';\n }\n }\n\n var tmpValue = _this.getValueByInput(inputValue);\n\n if (tmpValue !== undefined) {\n value = tmpValue;\n\n _this.fireChange(value);\n }\n } // if click the rest space of Select in multiple mode\n\n\n if (util_1.isMultipleOrTags(props) && _this._mouseDown) {\n _this.maybeFocus(true, true);\n\n _this._mouseDown = false;\n return;\n }\n\n _this.setOpenState(false);\n\n if (props.onBlur) {\n props.onBlur(_this.getVLForOnChange(value));\n }\n }, 10);\n };\n\n _this.onClearSelection = function (event) {\n var props = _this.props;\n var state = _this.state;\n\n if (props.disabled) {\n return;\n }\n\n var inputValue = state.inputValue;\n var value = state.value;\n event.stopPropagation();\n\n if (inputValue || value.length) {\n if (value.length) {\n _this.fireChange([]);\n }\n\n _this.setOpenState(false, {\n needFocus: true\n });\n\n if (inputValue) {\n _this.setInputValue('');\n }\n }\n };\n\n _this.onChoiceAnimationLeave = function () {\n _this.forcePopupAlign();\n };\n\n _this.getOptionInfoBySingleValue = function (value, optionsInfo) {\n var info;\n optionsInfo = optionsInfo || _this.state.optionsInfo;\n\n if (optionsInfo[util_1.getMapKey(value)]) {\n info = optionsInfo[util_1.getMapKey(value)];\n }\n\n if (info) {\n return info;\n }\n\n var defaultLabel = value;\n\n if (_this.props.labelInValue) {\n var valueLabel = util_1.getLabelFromPropsValue(_this.props.value, value);\n var defaultValueLabel = util_1.getLabelFromPropsValue(_this.props.defaultValue, value);\n\n if (valueLabel !== undefined) {\n defaultLabel = valueLabel;\n } else if (defaultValueLabel !== undefined) {\n defaultLabel = defaultValueLabel;\n }\n }\n\n var defaultInfo = {\n option: React.createElement(Option_1[\"default\"], {\n value: value,\n key: value\n }, value),\n value: value,\n label: defaultLabel\n };\n return defaultInfo;\n };\n\n _this.getOptionBySingleValue = function (value) {\n var _this$getOptionInfoBy = _this.getOptionInfoBySingleValue(value),\n option = _this$getOptionInfoBy.option;\n\n return option;\n };\n\n _this.getOptionsBySingleValue = function (values) {\n return values.map(function (value) {\n return _this.getOptionBySingleValue(value);\n });\n };\n\n _this.getValueByLabel = function (label) {\n if (label === undefined) {\n return null;\n }\n\n var value = null;\n Object.keys(_this.state.optionsInfo).forEach(function (key) {\n var info = _this.state.optionsInfo[key];\n var disabled = info.disabled;\n\n if (disabled) {\n return;\n }\n\n var oldLable = util_1.toArray(info.label);\n\n if (oldLable && oldLable.join('') === label) {\n value = info.value;\n }\n });\n return value;\n };\n\n _this.getVLBySingleValue = function (value) {\n if (_this.props.labelInValue) {\n return {\n key: value,\n label: _this.getLabelBySingleValue(value)\n };\n }\n\n return value;\n };\n\n _this.getVLForOnChange = function (vlsS) {\n var vls = vlsS;\n\n if (vls !== undefined) {\n if (!_this.props.labelInValue) {\n vls = vls.map(function (v) {\n return v;\n });\n } else {\n vls = vls.map(function (vl) {\n return {\n key: vl,\n label: _this.getLabelBySingleValue(vl)\n };\n });\n }\n\n return util_1.isMultipleOrTags(_this.props) ? vls : vls[0];\n }\n\n return vls;\n };\n\n _this.getLabelBySingleValue = function (value, optionsInfo) {\n var _this$getOptionInfoBy2 = _this.getOptionInfoBySingleValue(value, optionsInfo),\n label = _this$getOptionInfoBy2.label;\n\n return label;\n };\n\n _this.getDropdownContainer = function () {\n if (!_this.dropdownContainer) {\n _this.dropdownContainer = document.createElement('div');\n document.body.appendChild(_this.dropdownContainer);\n }\n\n return _this.dropdownContainer;\n };\n\n _this.getPlaceholderElement = function () {\n var props = _this.props;\n var state = _this.state;\n var hidden = false;\n\n if (state.inputValue) {\n hidden = true;\n }\n\n var value = state.value;\n\n if (value.length) {\n hidden = true;\n }\n\n if (util_1.isCombobox(props) && value.length === 1 && state.value && !state.value[0]) {\n hidden = false;\n }\n\n var placeholder = props.placeholder;\n\n if (placeholder) {\n return React.createElement(\"div\", _extends({\n onMouseDown: util_1.preventDefaultEvent,\n style: _objectSpread({\n display: hidden ? 'none' : 'block'\n }, util_1.UNSELECTABLE_STYLE)\n }, util_1.UNSELECTABLE_ATTRIBUTE, {\n onClick: _this.onPlaceholderClick,\n className: \"\".concat(props.prefixCls, \"-selection__placeholder\")\n }), placeholder);\n }\n\n return null;\n };\n\n _this.getInputElement = function () {\n var props = _this.props;\n var defaultInput = React.createElement(\"input\", {\n id: props.id,\n autoComplete: \"off\"\n }); // tslint:disable-next-line:typedef-whitespace\n\n var inputElement = props.getInputElement ? props.getInputElement() : defaultInput;\n var inputCls = classnames_1[\"default\"](inputElement.props.className, _defineProperty({}, \"\".concat(props.prefixCls, \"-search__field\"), true)); // https://github.com/ant-design/ant-design/issues/4992#issuecomment-281542159\n // Add space to the end of the inputValue as the width measurement tolerance\n\n return React.createElement(\"div\", {\n className: \"\".concat(props.prefixCls, \"-search__field__wrap\")\n }, React.cloneElement(inputElement, {\n ref: _this.saveInputRef,\n onChange: _this.onInputChange,\n onKeyDown: chaining(_this.onInputKeyDown, inputElement.props.onKeyDown, _this.props.onInputKeyDown),\n value: _this.state.inputValue,\n disabled: props.disabled,\n className: inputCls\n }), React.createElement(\"span\", {\n ref: _this.saveInputMirrorRef,\n className: \"\".concat(props.prefixCls, \"-search__field__mirror\")\n }, _this.state.inputValue, \"\\xA0\"));\n };\n\n _this.getInputDOMNode = function () {\n return _this.topCtrlRef ? _this.topCtrlRef.querySelector('input,textarea,div[contentEditable]') : _this.inputRef;\n };\n\n _this.getInputMirrorDOMNode = function () {\n return _this.inputMirrorRef;\n };\n\n _this.getPopupDOMNode = function () {\n if (_this.selectTriggerRef) {\n return _this.selectTriggerRef.getPopupDOMNode();\n }\n };\n\n _this.getPopupMenuComponent = function () {\n if (_this.selectTriggerRef) {\n return _this.selectTriggerRef.getInnerMenu();\n }\n };\n\n _this.setOpenState = function (open) {\n var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var needFocus = config.needFocus,\n fireSearch = config.fireSearch;\n var props = _this.props;\n var state = _this.state;\n\n if (state.open === open) {\n _this.maybeFocus(open, !!needFocus);\n\n return;\n }\n\n if (_this.props.onDropdownVisibleChange) {\n _this.props.onDropdownVisibleChange(open);\n }\n\n var nextState = {\n open: open,\n backfillValue: ''\n }; // clear search input value when open is false in singleMode.\n // https://github.com/ant-design/ant-design/issues/16572\n\n if (!open && util_1.isSingleMode(props) && props.showSearch) {\n _this.setInputValue('', fireSearch);\n }\n\n if (!open) {\n _this.maybeFocus(open, !!needFocus);\n }\n\n _this.setState(_objectSpread({\n open: open\n }, nextState), function () {\n if (open) {\n _this.maybeFocus(open, !!needFocus);\n }\n });\n };\n\n _this.setInputValue = function (inputValue) {\n var fireSearch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n var onSearch = _this.props.onSearch;\n\n if (inputValue !== _this.state.inputValue) {\n _this.setState(function (prevState) {\n // Additional check if `inputValue` changed in latest state.\n if (fireSearch && inputValue !== prevState.inputValue && onSearch) {\n onSearch(inputValue);\n }\n\n return {\n inputValue: inputValue\n };\n }, _this.forcePopupAlign);\n }\n };\n\n _this.getValueByInput = function (str) {\n var _this$props2 = _this.props,\n multiple = _this$props2.multiple,\n tokenSeparators = _this$props2.tokenSeparators;\n var nextValue = _this.state.value;\n var hasNewValue = false;\n util_1.splitBySeparators(str, tokenSeparators).forEach(function (label) {\n var selectedValue = [label];\n\n if (multiple) {\n var value = _this.getValueByLabel(label);\n\n if (value && util_1.findIndexInValueBySingleValue(nextValue, value) === -1) {\n nextValue = nextValue.concat(value);\n hasNewValue = true;\n\n _this.fireSelect(value);\n }\n } else if (util_1.findIndexInValueBySingleValue(nextValue, label) === -1) {\n nextValue = nextValue.concat(selectedValue);\n hasNewValue = true;\n\n _this.fireSelect(label);\n }\n });\n return hasNewValue ? nextValue : undefined;\n };\n\n _this.getRealOpenState = function (state) {\n // tslint:disable-next-line:variable-name\n var _open = _this.props.open;\n\n if (typeof _open === 'boolean') {\n return _open;\n }\n\n var open = (state || _this.state).open;\n var options = _this._options || [];\n\n if (util_1.isMultipleOrTagsOrCombobox(_this.props) || !_this.props.showSearch) {\n if (open && !options.length) {\n open = false;\n }\n }\n\n return open;\n };\n\n _this.markMouseDown = function () {\n _this._mouseDown = true;\n };\n\n _this.markMouseLeave = function () {\n _this._mouseDown = false;\n };\n\n _this.handleBackfill = function (item) {\n if (!_this.props.backfill || !(util_1.isSingleMode(_this.props) || util_1.isCombobox(_this.props))) {\n return;\n }\n\n var key = util_1.getValuePropValue(item);\n\n if (util_1.isCombobox(_this.props)) {\n _this.setInputValue(key, false);\n }\n\n _this.setState({\n value: [key],\n backfillValue: key\n });\n };\n\n _this.filterOption = function (input, child) {\n var defaultFilter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : util_1.defaultFilterFn;\n var value = _this.state.value;\n var lastValue = value[value.length - 1];\n\n if (!input || lastValue && lastValue === _this.state.backfillValue) {\n return true;\n }\n\n var filterFn = _this.props.filterOption;\n\n if ('filterOption' in _this.props) {\n if (filterFn === true) {\n filterFn = defaultFilter.bind(_assertThisInitialized(_this));\n }\n } else {\n filterFn = defaultFilter.bind(_assertThisInitialized(_this));\n }\n\n if (!filterFn) {\n return true;\n } else if (typeof filterFn === 'function') {\n return filterFn.call(_assertThisInitialized(_this), input, child);\n } else if (child.props.disabled) {\n return false;\n }\n\n return true;\n };\n\n _this.timeoutFocus = function () {\n var onFocus = _this.props.onFocus;\n\n if (_this.focusTimer) {\n _this.clearFocusTime();\n }\n\n _this.focusTimer = window.setTimeout(function () {\n if (onFocus) {\n onFocus();\n }\n }, 10);\n };\n\n _this.clearFocusTime = function () {\n if (_this.focusTimer) {\n clearTimeout(_this.focusTimer);\n _this.focusTimer = null;\n }\n };\n\n _this.clearBlurTime = function () {\n if (_this.blurTimer) {\n clearTimeout(_this.blurTimer);\n _this.blurTimer = null;\n }\n };\n\n _this.clearComboboxTime = function () {\n if (_this.comboboxTimer) {\n clearTimeout(_this.comboboxTimer);\n _this.comboboxTimer = null;\n }\n };\n\n _this.updateFocusClassName = function () {\n var rootRef = _this.rootRef;\n var props = _this.props; // avoid setState and its side effect\n\n if (_this._focused) {\n component_classes_1[\"default\"](rootRef).add(\"\".concat(props.prefixCls, \"-focused\"));\n } else {\n component_classes_1[\"default\"](rootRef).remove(\"\".concat(props.prefixCls, \"-focused\"));\n }\n };\n\n _this.maybeFocus = function (open, needFocus) {\n if (needFocus || open) {\n var input = _this.getInputDOMNode();\n\n var _document = document,\n activeElement = _document.activeElement;\n\n if (input && (open || util_1.isMultipleOrTagsOrCombobox(_this.props))) {\n if (activeElement !== input) {\n input.focus();\n _this._focused = true;\n }\n } else if (activeElement !== _this.selectionRef && _this.selectionRef) {\n _this.selectionRef.focus();\n\n _this._focused = true;\n }\n }\n };\n\n _this.removeSelected = function (selectedKey, e) {\n var props = _this.props;\n\n if (props.disabled || _this.isChildDisabled(selectedKey)) {\n return;\n } // Do not trigger Trigger popup\n\n\n if (e && e.stopPropagation) {\n e.stopPropagation();\n }\n\n var oldValue = _this.state.value;\n var value = oldValue.filter(function (singleValue) {\n return singleValue !== selectedKey;\n });\n var canMultiple = util_1.isMultipleOrTags(props);\n\n if (canMultiple) {\n var event = selectedKey;\n\n if (props.labelInValue) {\n event = {\n key: selectedKey,\n label: _this.getLabelBySingleValue(selectedKey)\n };\n }\n\n if (props.onDeselect) {\n props.onDeselect(event, _this.getOptionBySingleValue(selectedKey));\n }\n }\n\n _this.fireChange(value);\n };\n\n _this.openIfHasChildren = function () {\n var props = _this.props;\n\n if (React.Children.count(props.children) || util_1.isSingleMode(props)) {\n _this.setOpenState(true);\n }\n };\n\n _this.fireSelect = function (value) {\n if (_this.props.onSelect) {\n _this.props.onSelect(_this.getVLBySingleValue(value), _this.getOptionBySingleValue(value));\n }\n };\n\n _this.fireChange = function (value) {\n var props = _this.props;\n\n if (!('value' in props)) {\n _this.setState({\n value: value\n }, _this.forcePopupAlign);\n }\n\n var vls = _this.getVLForOnChange(value);\n\n var options = _this.getOptionsBySingleValue(value);\n\n if (props.onChange) {\n props.onChange(vls, util_1.isMultipleOrTags(_this.props) ? options : options[0]);\n }\n };\n\n _this.isChildDisabled = function (key) {\n return toArray_1[\"default\"](_this.props.children).some(function (child) {\n var childValue = util_1.getValuePropValue(child);\n return childValue === key && child.props && child.props.disabled;\n });\n };\n\n _this.forcePopupAlign = function () {\n if (!_this.state.open) {\n return;\n }\n\n if (_this.selectTriggerRef && _this.selectTriggerRef.triggerRef) {\n _this.selectTriggerRef.triggerRef.forcePopupAlign();\n }\n };\n\n _this.renderFilterOptions = function () {\n var inputValue = _this.state.inputValue;\n var _this$props3 = _this.props,\n children = _this$props3.children,\n tags = _this$props3.tags,\n notFoundContent = _this$props3.notFoundContent;\n var menuItems = [];\n var childrenKeys = [];\n var empty = false;\n\n var options = _this.renderFilterOptionsFromChildren(children, childrenKeys, menuItems);\n\n if (tags) {\n // tags value must be string\n var value = _this.state.value;\n value = value.filter(function (singleValue) {\n return childrenKeys.indexOf(singleValue) === -1 && (!inputValue || String(singleValue).indexOf(String(inputValue)) > -1);\n }); // sort by length\n\n value.sort(function (val1, val2) {\n return val1.length - val2.length;\n });\n value.forEach(function (singleValue) {\n var key = singleValue;\n var menuItem = React.createElement(rc_menu_1.Item, {\n style: util_1.UNSELECTABLE_STYLE,\n role: \"option\",\n attribute: util_1.UNSELECTABLE_ATTRIBUTE,\n value: key,\n key: key\n }, key);\n options.push(menuItem);\n menuItems.push(menuItem);\n }); // ref: https://github.com/ant-design/ant-design/issues/14090\n\n if (inputValue && menuItems.every(function (option) {\n return util_1.getValuePropValue(option) !== inputValue;\n })) {\n options.unshift(React.createElement(rc_menu_1.Item, {\n style: util_1.UNSELECTABLE_STYLE,\n role: \"option\",\n attribute: util_1.UNSELECTABLE_ATTRIBUTE,\n value: inputValue,\n key: inputValue\n }, inputValue));\n }\n }\n\n if (!options.length && notFoundContent) {\n empty = true;\n options = [React.createElement(rc_menu_1.Item, {\n style: util_1.UNSELECTABLE_STYLE,\n attribute: util_1.UNSELECTABLE_ATTRIBUTE,\n disabled: true,\n role: \"option\",\n value: \"NOT_FOUND\",\n key: \"NOT_FOUND\"\n }, notFoundContent)];\n }\n\n return {\n empty: empty,\n options: options\n };\n };\n\n _this.renderFilterOptionsFromChildren = function (children, childrenKeys, menuItems) {\n var sel = [];\n var props = _this.props;\n var inputValue = _this.state.inputValue;\n var tags = props.tags;\n React.Children.forEach(children, function (child) {\n if (!child) {\n return;\n }\n\n var type = child.type;\n\n if (type.isSelectOptGroup) {\n var label = child.props.label;\n var key = child.key;\n\n if (!key && typeof label === 'string') {\n key = label;\n } else if (!label && key) {\n label = key;\n } // Match option group label\n\n\n if (inputValue && _this.filterOption(inputValue, child)) {\n var innerItems = toArray_1[\"default\"](child.props.children).map(function (subChild) {\n var childValueSub = util_1.getValuePropValue(subChild) || subChild.key;\n return React.createElement(rc_menu_1.Item, _extends({\n key: childValueSub,\n value: childValueSub\n }, subChild.props));\n });\n sel.push(React.createElement(rc_menu_1.ItemGroup, {\n key: key,\n title: label\n }, innerItems)); // Not match\n } else {\n var _innerItems = _this.renderFilterOptionsFromChildren(child.props.children, childrenKeys, menuItems);\n\n if (_innerItems.length) {\n sel.push(React.createElement(rc_menu_1.ItemGroup, {\n key: key,\n title: label\n }, _innerItems));\n }\n }\n\n return;\n }\n\n warning_1[\"default\"](type.isSelectOption, 'the children of `Select` should be `Select.Option` or `Select.OptGroup`, ' + \"instead of `\".concat(type.name || type.displayName || child.type, \"`.\"));\n var childValue = util_1.getValuePropValue(child);\n util_1.validateOptionValue(childValue, _this.props);\n\n if (_this.filterOption(inputValue, child)) {\n var menuItem = React.createElement(rc_menu_1.Item, _extends({\n style: util_1.UNSELECTABLE_STYLE,\n attribute: util_1.UNSELECTABLE_ATTRIBUTE,\n value: childValue,\n key: childValue,\n role: \"option\"\n }, child.props));\n sel.push(menuItem);\n menuItems.push(menuItem);\n }\n\n if (tags) {\n childrenKeys.push(childValue);\n }\n });\n return sel;\n };\n\n _this.renderTopControlNode = function () {\n var _this$state = _this.state,\n open = _this$state.open,\n inputValue = _this$state.inputValue;\n var value = _this.state.value;\n var props = _this.props;\n var choiceTransitionName = props.choiceTransitionName,\n prefixCls = props.prefixCls,\n maxTagTextLength = props.maxTagTextLength,\n maxTagCount = props.maxTagCount,\n showSearch = props.showSearch,\n removeIcon = props.removeIcon;\n var maxTagPlaceholder = props.maxTagPlaceholder;\n var className = \"\".concat(prefixCls, \"-selection__rendered\"); // search input is inside topControlNode in single, multiple & combobox. 2016/04/13\n\n var innerNode = null;\n\n if (util_1.isSingleMode(props)) {\n var selectedValue = null;\n\n if (value.length) {\n var showSelectedValue = false;\n var opacity = 1;\n\n if (!showSearch) {\n showSelectedValue = true;\n } else if (open) {\n showSelectedValue = !inputValue;\n\n if (showSelectedValue) {\n opacity = 0.4;\n }\n } else {\n showSelectedValue = true;\n }\n\n var singleValue = value[0];\n\n var _this$getOptionInfoBy3 = _this.getOptionInfoBySingleValue(singleValue),\n label = _this$getOptionInfoBy3.label,\n title = _this$getOptionInfoBy3.title;\n\n selectedValue = React.createElement(\"div\", {\n key: \"value\",\n className: \"\".concat(prefixCls, \"-selection-selected-value\"),\n title: util_1.toTitle(title || label),\n style: {\n display: showSelectedValue ? 'block' : 'none',\n opacity: opacity\n }\n }, label);\n }\n\n if (!showSearch) {\n innerNode = [selectedValue];\n } else {\n innerNode = [selectedValue, React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-search \").concat(prefixCls, \"-search--inline\"),\n key: \"input\",\n style: {\n display: open ? 'block' : 'none'\n }\n }, _this.getInputElement())];\n }\n } else {\n var selectedValueNodes = [];\n var limitedCountValue = value;\n var maxTagPlaceholderEl;\n\n if (maxTagCount !== undefined && value.length > maxTagCount) {\n limitedCountValue = limitedCountValue.slice(0, maxTagCount);\n\n var omittedValues = _this.getVLForOnChange(value.slice(maxTagCount, value.length));\n\n var content = \"+ \".concat(value.length - maxTagCount, \" ...\");\n\n if (maxTagPlaceholder) {\n content = typeof maxTagPlaceholder === 'function' ? maxTagPlaceholder(omittedValues) : maxTagPlaceholder;\n }\n\n maxTagPlaceholderEl = React.createElement(\"li\", _extends({\n style: util_1.UNSELECTABLE_STYLE\n }, util_1.UNSELECTABLE_ATTRIBUTE, {\n role: \"presentation\",\n onMouseDown: util_1.preventDefaultEvent,\n className: \"\".concat(prefixCls, \"-selection__choice \").concat(prefixCls, \"-selection__choice__disabled\"),\n key: \"maxTagPlaceholder\",\n title: util_1.toTitle(content)\n }), React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-selection__choice__content\")\n }, content));\n }\n\n if (util_1.isMultipleOrTags(props)) {\n selectedValueNodes = limitedCountValue.map(function (singleValue) {\n var info = _this.getOptionInfoBySingleValue(singleValue);\n\n var content = info.label;\n var title = info.title || content;\n\n if (maxTagTextLength && typeof content === 'string' && content.length > maxTagTextLength) {\n content = \"\".concat(content.slice(0, maxTagTextLength), \"...\");\n }\n\n var disabled = _this.isChildDisabled(singleValue);\n\n var choiceClassName = disabled ? \"\".concat(prefixCls, \"-selection__choice \").concat(prefixCls, \"-selection__choice__disabled\") : \"\".concat(prefixCls, \"-selection__choice\");\n return React.createElement(\"li\", _extends({\n style: util_1.UNSELECTABLE_STYLE\n }, util_1.UNSELECTABLE_ATTRIBUTE, {\n onMouseDown: util_1.preventDefaultEvent,\n className: choiceClassName,\n role: \"presentation\",\n key: singleValue || SELECT_EMPTY_VALUE_KEY,\n title: util_1.toTitle(title)\n }), React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-selection__choice__content\")\n }, content), disabled ? null : React.createElement(\"span\", {\n onClick: function onClick(event) {\n _this.removeSelected(singleValue, event);\n },\n className: \"\".concat(prefixCls, \"-selection__choice__remove\")\n }, removeIcon || React.createElement(\"i\", {\n className: \"\".concat(prefixCls, \"-selection__choice__remove-icon\")\n }, \"\\xD7\")));\n });\n }\n\n if (maxTagPlaceholderEl) {\n selectedValueNodes.push(maxTagPlaceholderEl);\n }\n\n selectedValueNodes.push(React.createElement(\"li\", {\n className: \"\".concat(prefixCls, \"-search \").concat(prefixCls, \"-search--inline\"),\n key: \"__input\"\n }, _this.getInputElement()));\n\n if (util_1.isMultipleOrTags(props) && choiceTransitionName) {\n innerNode = React.createElement(rc_animate_1[\"default\"], {\n onLeave: _this.onChoiceAnimationLeave,\n component: \"ul\",\n transitionName: choiceTransitionName\n }, selectedValueNodes);\n } else {\n innerNode = React.createElement(\"ul\", null, selectedValueNodes);\n }\n }\n\n return React.createElement(\"div\", {\n className: className,\n ref: _this.saveTopCtrlRef\n }, _this.getPlaceholderElement(), innerNode);\n };\n\n var optionsInfo = Select.getOptionsInfoFromProps(props);\n\n if (props.tags && typeof props.filterOption !== 'function') {\n var isDisabledExist = Object.keys(optionsInfo).some(function (key) {\n return optionsInfo[key].disabled;\n });\n warning_1[\"default\"](!isDisabledExist, 'Please avoid setting option to disabled in tags mode since user can always type text as tag.');\n }\n\n _this.state = {\n value: Select.getValueFromProps(props, true),\n inputValue: props.combobox ? Select.getInputValueForCombobox(props, optionsInfo, true) : '',\n open: props.defaultOpen,\n optionsInfo: optionsInfo,\n backfillValue: '',\n // a flag for aviod redundant getOptionsInfoFromProps call\n skipBuildOptionsInfo: true,\n ariaId: ''\n };\n _this.saveInputRef = util_1.saveRef(_assertThisInitialized(_this), 'inputRef');\n _this.saveInputMirrorRef = util_1.saveRef(_assertThisInitialized(_this), 'inputMirrorRef');\n _this.saveTopCtrlRef = util_1.saveRef(_assertThisInitialized(_this), 'topCtrlRef');\n _this.saveSelectTriggerRef = util_1.saveRef(_assertThisInitialized(_this), 'selectTriggerRef');\n _this.saveRootRef = util_1.saveRef(_assertThisInitialized(_this), 'rootRef');\n _this.saveSelectionRef = util_1.saveRef(_assertThisInitialized(_this), 'selectionRef');\n return _this;\n }\n\n _createClass(Select, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n // when defaultOpen is true, we should auto focus search input\n // https://github.com/ant-design/ant-design/issues/14254\n if (this.props.autoFocus || this.state.open) {\n this.focus();\n }\n\n this.setState({\n ariaId: util_1.generateUUID()\n });\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n if (util_1.isMultipleOrTags(this.props)) {\n var inputNode = this.getInputDOMNode();\n var mirrorNode = this.getInputMirrorDOMNode();\n\n if (inputNode && inputNode.value && mirrorNode) {\n inputNode.style.width = '';\n inputNode.style.width = \"\".concat(mirrorNode.clientWidth, \"px\");\n } else if (inputNode) {\n inputNode.style.width = '';\n }\n }\n\n this.forcePopupAlign();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.clearFocusTime();\n this.clearBlurTime();\n this.clearComboboxTime();\n\n if (this.dropdownContainer) {\n ReactDOM.unmountComponentAtNode(this.dropdownContainer);\n document.body.removeChild(this.dropdownContainer);\n this.dropdownContainer = null;\n }\n }\n }, {\n key: \"focus\",\n value: function focus() {\n if (util_1.isSingleMode(this.props) && this.selectionRef) {\n this.selectionRef.focus();\n } else if (this.getInputDOMNode()) {\n this.getInputDOMNode().focus();\n }\n }\n }, {\n key: \"blur\",\n value: function blur() {\n if (util_1.isSingleMode(this.props) && this.selectionRef) {\n this.selectionRef.blur();\n } else if (this.getInputDOMNode()) {\n this.getInputDOMNode().blur();\n }\n }\n }, {\n key: \"renderArrow\",\n value: function renderArrow(multiple) {\n // showArrow : Set to true if not multiple by default but keep set value.\n var _this$props4 = this.props,\n _this$props4$showArro = _this$props4.showArrow,\n showArrow = _this$props4$showArro === void 0 ? !multiple : _this$props4$showArro,\n loading = _this$props4.loading,\n inputIcon = _this$props4.inputIcon,\n prefixCls = _this$props4.prefixCls;\n\n if (!showArrow && !loading) {\n return null;\n } // if loading have loading icon\n\n\n var defaultIcon = loading ? React.createElement(\"i\", {\n className: \"\".concat(prefixCls, \"-arrow-loading\")\n }) : React.createElement(\"i\", {\n className: \"\".concat(prefixCls, \"-arrow-icon\")\n });\n return React.createElement(\"span\", _extends({\n key: \"arrow\",\n className: \"\".concat(prefixCls, \"-arrow\"),\n style: util_1.UNSELECTABLE_STYLE\n }, util_1.UNSELECTABLE_ATTRIBUTE, {\n onClick: this.onArrowClick\n }), inputIcon || defaultIcon);\n }\n }, {\n key: \"renderClear\",\n value: function renderClear() {\n var _this$props5 = this.props,\n prefixCls = _this$props5.prefixCls,\n allowClear = _this$props5.allowClear,\n clearIcon = _this$props5.clearIcon;\n var inputValue = this.state.inputValue;\n var value = this.state.value;\n var clear = React.createElement(\"span\", _extends({\n key: \"clear\",\n className: \"\".concat(prefixCls, \"-selection__clear\"),\n onMouseDown: util_1.preventDefaultEvent,\n style: util_1.UNSELECTABLE_STYLE\n }, util_1.UNSELECTABLE_ATTRIBUTE, {\n onClick: this.onClearSelection\n }), clearIcon || React.createElement(\"i\", {\n className: \"\".concat(prefixCls, \"-selection__clear-icon\")\n }, \"\\xD7\"));\n\n if (!allowClear) {\n return null;\n }\n\n if (util_1.isCombobox(this.props)) {\n if (inputValue) {\n return clear;\n }\n\n return null;\n }\n\n if (inputValue || value.length) {\n return clear;\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _rootCls;\n\n var props = this.props;\n var multiple = util_1.isMultipleOrTags(props); // Default set showArrow to true if not set (not set directly in defaultProps to handle multiple case)\n\n var _props$showArrow = props.showArrow,\n showArrow = _props$showArrow === void 0 ? true : _props$showArrow;\n var state = this.state;\n var className = props.className,\n disabled = props.disabled,\n prefixCls = props.prefixCls,\n loading = props.loading;\n var ctrlNode = this.renderTopControlNode();\n var _this$state2 = this.state,\n open = _this$state2.open,\n ariaId = _this$state2.ariaId;\n\n if (open) {\n var filterOptions = this.renderFilterOptions();\n this._empty = filterOptions.empty;\n this._options = filterOptions.options;\n }\n\n var realOpen = this.getRealOpenState();\n var empty = this._empty;\n var options = this._options || [];\n var dataOrAriaAttributeProps = {};\n Object.keys(props).forEach(function (key) {\n if (Object.prototype.hasOwnProperty.call(props, key) && (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-' || key === 'role')) {\n dataOrAriaAttributeProps[key] = props[key];\n }\n }); // for (const key in props) {\n // if (\n // Object.prototype.hasOwnProperty.call(props, key) &&\n // (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-' || key === 'role')\n // ) {\n // dataOrAriaAttributeProps[key] = props[key];\n // }\n // }\n\n var extraSelectionProps = _objectSpread({}, dataOrAriaAttributeProps);\n\n if (!util_1.isMultipleOrTagsOrCombobox(props)) {\n extraSelectionProps = _objectSpread({}, extraSelectionProps, {\n onKeyDown: this.onKeyDown,\n tabIndex: props.disabled ? -1 : props.tabIndex\n });\n }\n\n var rootCls = (_rootCls = {}, _defineProperty(_rootCls, className, !!className), _defineProperty(_rootCls, prefixCls, 1), _defineProperty(_rootCls, \"\".concat(prefixCls, \"-open\"), open), _defineProperty(_rootCls, \"\".concat(prefixCls, \"-focused\"), open || !!this._focused), _defineProperty(_rootCls, \"\".concat(prefixCls, \"-combobox\"), util_1.isCombobox(props)), _defineProperty(_rootCls, \"\".concat(prefixCls, \"-disabled\"), disabled), _defineProperty(_rootCls, \"\".concat(prefixCls, \"-enabled\"), !disabled), _defineProperty(_rootCls, \"\".concat(prefixCls, \"-allow-clear\"), !!props.allowClear), _defineProperty(_rootCls, \"\".concat(prefixCls, \"-no-arrow\"), !showArrow), _defineProperty(_rootCls, \"\".concat(prefixCls, \"-loading\"), !!loading), _rootCls);\n return React.createElement(SelectTrigger_1[\"default\"], {\n onPopupFocus: this.onPopupFocus,\n onMouseEnter: this.props.onMouseEnter,\n onMouseLeave: this.props.onMouseLeave,\n dropdownAlign: props.dropdownAlign,\n dropdownClassName: props.dropdownClassName,\n dropdownMatchSelectWidth: props.dropdownMatchSelectWidth,\n defaultActiveFirstOption: props.defaultActiveFirstOption,\n dropdownMenuStyle: props.dropdownMenuStyle,\n transitionName: props.transitionName,\n animation: props.animation,\n prefixCls: props.prefixCls,\n dropdownStyle: props.dropdownStyle,\n combobox: props.combobox,\n showSearch: props.showSearch,\n options: options,\n empty: empty,\n multiple: multiple,\n disabled: disabled,\n visible: realOpen,\n inputValue: state.inputValue,\n value: state.value,\n backfillValue: state.backfillValue,\n firstActiveValue: props.firstActiveValue,\n onDropdownVisibleChange: this.onDropdownVisibleChange,\n getPopupContainer: props.getPopupContainer,\n onMenuSelect: this.onMenuSelect,\n onMenuDeselect: this.onMenuDeselect,\n onPopupScroll: props.onPopupScroll,\n showAction: props.showAction,\n ref: this.saveSelectTriggerRef,\n menuItemSelectedIcon: props.menuItemSelectedIcon,\n dropdownRender: props.dropdownRender,\n ariaId: ariaId\n }, React.createElement(\"div\", {\n id: props.id,\n style: props.style,\n ref: this.saveRootRef,\n onBlur: this.onOuterBlur,\n onFocus: this.onOuterFocus,\n className: classnames_1[\"default\"](rootCls),\n onMouseDown: this.markMouseDown,\n onMouseUp: this.markMouseLeave,\n onMouseOut: this.markMouseLeave\n }, React.createElement(\"div\", _extends({\n ref: this.saveSelectionRef,\n key: \"selection\",\n className: \"\".concat(prefixCls, \"-selection\\n \").concat(prefixCls, \"-selection--\").concat(multiple ? 'multiple' : 'single'),\n role: \"combobox\",\n \"aria-autocomplete\": \"list\",\n \"aria-haspopup\": \"true\",\n \"aria-controls\": ariaId,\n \"aria-expanded\": realOpen\n }, extraSelectionProps), ctrlNode, this.renderClear(), this.renderArrow(!!multiple))));\n }\n }]);\n\n return Select;\n}(React.Component);\n\nSelect.propTypes = PropTypes_1[\"default\"];\nSelect.defaultProps = {\n prefixCls: 'rc-select',\n defaultOpen: false,\n labelInValue: false,\n defaultActiveFirstOption: true,\n showSearch: true,\n allowClear: false,\n placeholder: '',\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onSelect: noop,\n onSearch: noop,\n onDeselect: noop,\n onInputKeyDown: noop,\n dropdownMatchSelectWidth: true,\n dropdownStyle: {},\n dropdownMenuStyle: {},\n optionFilterProp: 'value',\n optionLabelProp: 'value',\n notFoundContent: 'Not Found',\n backfill: false,\n showAction: ['click'],\n tokenSeparators: [],\n autoClearSearchValue: true,\n tabIndex: 0,\n dropdownRender: function dropdownRender(menu) {\n return menu;\n }\n};\n\nSelect.getDerivedStateFromProps = function (nextProps, prevState) {\n var optionsInfo = prevState.skipBuildOptionsInfo ? prevState.optionsInfo : Select.getOptionsInfoFromProps(nextProps, prevState);\n var newState = {\n optionsInfo: optionsInfo,\n skipBuildOptionsInfo: false\n };\n\n if ('open' in nextProps) {\n newState.open = nextProps.open;\n }\n\n if ('value' in nextProps) {\n var value = Select.getValueFromProps(nextProps);\n newState.value = value;\n\n if (nextProps.combobox) {\n newState.inputValue = Select.getInputValueForCombobox(nextProps, optionsInfo);\n }\n }\n\n return newState;\n};\n\nSelect.getOptionsFromChildren = function (children) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n React.Children.forEach(children, function (child) {\n if (!child) {\n return;\n }\n\n var type = child.type;\n\n if (type.isSelectOptGroup) {\n Select.getOptionsFromChildren(child.props.children, options);\n } else {\n options.push(child);\n }\n });\n return options;\n};\n\nSelect.getInputValueForCombobox = function (props, optionsInfo, useDefaultValue) {\n var value = [];\n\n if ('value' in props && !useDefaultValue) {\n value = util_1.toArray(props.value);\n }\n\n if ('defaultValue' in props && useDefaultValue) {\n value = util_1.toArray(props.defaultValue);\n }\n\n if (value.length) {\n value = value[0];\n } else {\n return '';\n }\n\n var label = value;\n\n if (props.labelInValue) {\n label = value.label;\n } else if (optionsInfo[util_1.getMapKey(value)]) {\n label = optionsInfo[util_1.getMapKey(value)].label;\n }\n\n if (label === undefined) {\n label = '';\n }\n\n return label;\n};\n\nSelect.getLabelFromOption = function (props, option) {\n return util_1.getPropValue(option, props.optionLabelProp);\n};\n\nSelect.getOptionsInfoFromProps = function (props, preState) {\n var options = Select.getOptionsFromChildren(props.children);\n var optionsInfo = {};\n options.forEach(function (option) {\n var singleValue = util_1.getValuePropValue(option);\n optionsInfo[util_1.getMapKey(singleValue)] = {\n option: option,\n value: singleValue,\n label: Select.getLabelFromOption(props, option),\n title: option.props.title,\n disabled: option.props.disabled\n };\n });\n\n if (preState) {\n // keep option info in pre state value.\n var oldOptionsInfo = preState.optionsInfo;\n var value = preState.value;\n\n if (value) {\n value.forEach(function (v) {\n var key = util_1.getMapKey(v);\n\n if (!optionsInfo[key] && oldOptionsInfo[key] !== undefined) {\n optionsInfo[key] = oldOptionsInfo[key];\n }\n });\n }\n }\n\n return optionsInfo;\n};\n\nSelect.getValueFromProps = function (props, useDefaultValue) {\n var value = [];\n\n if ('value' in props && !useDefaultValue) {\n value = util_1.toArray(props.value);\n }\n\n if ('defaultValue' in props && useDefaultValue) {\n value = util_1.toArray(props.defaultValue);\n }\n\n if (props.labelInValue) {\n value = value.map(function (v) {\n return v.key;\n });\n }\n\n return value;\n};\n\nSelect.displayName = 'Select';\nreact_lifecycles_compat_1.polyfill(Select);\nexports[\"default\"] = Select;","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar __DEV__ = process.env.NODE_ENV !== 'production';\n\nvar warning = function() {};\n\nif (__DEV__) {\n var printWarning = function printWarning(format, args) {\n var len = arguments.length;\n args = new Array(len > 1 ? len - 1 : 0);\n for (var key = 1; key < len; key++) {\n args[key - 1] = arguments[key];\n }\n var argIndex = 0;\n var message = 'Warning: ' +\n format.replace(/%s/g, function() {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n }\n\n warning = function(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n if (format === undefined) {\n throw new Error(\n '`warning(condition, format, ...args)` requires a warning ' +\n 'message argument'\n );\n }\n if (!condition) {\n printWarning.apply(null, [format].concat(args));\n }\n };\n}\n\nmodule.exports = warning;\n","\"use strict\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\n\nvar __importStar = this && this.__importStar || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) {\n if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n }\n result[\"default\"] = mod;\n return result;\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar classnames_1 = __importDefault(require(\"classnames\"));\n\nvar PropTypes = __importStar(require(\"prop-types\"));\n\nvar raf_1 = __importDefault(require(\"raf\"));\n\nvar rc_trigger_1 = __importDefault(require(\"rc-trigger\"));\n\nvar React = __importStar(require(\"react\"));\n\nvar ReactDOM = __importStar(require(\"react-dom\"));\n\nvar DropdownMenu_1 = __importDefault(require(\"./DropdownMenu\"));\n\nvar util_1 = require(\"./util\");\n\nrc_trigger_1[\"default\"].displayName = 'Trigger';\nvar BUILT_IN_PLACEMENTS = {\n bottomLeft: {\n points: ['tl', 'bl'],\n offset: [0, 4],\n overflow: {\n adjustX: 0,\n adjustY: 1\n }\n },\n topLeft: {\n points: ['bl', 'tl'],\n offset: [0, -4],\n overflow: {\n adjustX: 0,\n adjustY: 1\n }\n }\n};\n\nvar SelectTrigger =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(SelectTrigger, _React$Component);\n\n function SelectTrigger(props) {\n var _this;\n\n _classCallCheck(this, SelectTrigger);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(SelectTrigger).call(this, props));\n _this.dropdownMenuRef = null;\n _this.rafInstance = null;\n\n _this.setDropdownWidth = function () {\n _this.cancelRafInstance();\n\n _this.rafInstance = raf_1[\"default\"](function () {\n var dom = ReactDOM.findDOMNode(_assertThisInitialized(_this));\n var width = dom.offsetWidth;\n\n if (width !== _this.state.dropdownWidth) {\n _this.setState({\n dropdownWidth: width\n });\n }\n });\n };\n\n _this.cancelRafInstance = function () {\n if (_this.rafInstance) {\n raf_1[\"default\"].cancel(_this.rafInstance);\n }\n };\n\n _this.getInnerMenu = function () {\n return _this.dropdownMenuRef && _this.dropdownMenuRef.menuRef;\n };\n\n _this.getPopupDOMNode = function () {\n return _this.triggerRef.getPopupDomNode();\n };\n\n _this.getDropdownElement = function (newProps) {\n var props = _this.props;\n var dropdownRender = props.dropdownRender,\n ariaId = props.ariaId;\n var menuNode = React.createElement(DropdownMenu_1[\"default\"], _extends({\n ref: _this.saveDropdownMenuRef\n }, newProps, {\n ariaId: ariaId,\n prefixCls: _this.getDropdownPrefixCls(),\n onMenuSelect: props.onMenuSelect,\n onMenuDeselect: props.onMenuDeselect,\n onPopupScroll: props.onPopupScroll,\n value: props.value,\n backfillValue: props.backfillValue,\n firstActiveValue: props.firstActiveValue,\n defaultActiveFirstOption: props.defaultActiveFirstOption,\n dropdownMenuStyle: props.dropdownMenuStyle,\n menuItemSelectedIcon: props.menuItemSelectedIcon\n }));\n\n if (dropdownRender) {\n return dropdownRender(menuNode, props);\n }\n\n return null;\n };\n\n _this.getDropdownTransitionName = function () {\n var props = _this.props;\n var transitionName = props.transitionName;\n\n if (!transitionName && props.animation) {\n transitionName = \"\".concat(_this.getDropdownPrefixCls(), \"-\").concat(props.animation);\n }\n\n return transitionName;\n };\n\n _this.getDropdownPrefixCls = function () {\n return \"\".concat(_this.props.prefixCls, \"-dropdown\");\n };\n\n _this.saveDropdownMenuRef = util_1.saveRef(_assertThisInitialized(_this), 'dropdownMenuRef');\n _this.saveTriggerRef = util_1.saveRef(_assertThisInitialized(_this), 'triggerRef');\n _this.state = {\n dropdownWidth: 0\n };\n return _this;\n }\n\n _createClass(SelectTrigger, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.setDropdownWidth();\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n this.setDropdownWidth();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.cancelRafInstance();\n }\n }, {\n key: \"render\",\n value: function render() {\n var _popupClassName;\n\n var _this$props = this.props,\n onPopupFocus = _this$props.onPopupFocus,\n empty = _this$props.empty,\n props = _objectWithoutProperties(_this$props, [\"onPopupFocus\", \"empty\"]);\n\n var multiple = props.multiple,\n visible = props.visible,\n inputValue = props.inputValue,\n dropdownAlign = props.dropdownAlign,\n disabled = props.disabled,\n showSearch = props.showSearch,\n dropdownClassName = props.dropdownClassName,\n dropdownStyle = props.dropdownStyle,\n dropdownMatchSelectWidth = props.dropdownMatchSelectWidth;\n var dropdownPrefixCls = this.getDropdownPrefixCls();\n var popupClassName = (_popupClassName = {}, _defineProperty(_popupClassName, dropdownClassName, !!dropdownClassName), _defineProperty(_popupClassName, \"\".concat(dropdownPrefixCls, \"--\").concat(multiple ? 'multiple' : 'single'), 1), _defineProperty(_popupClassName, \"\".concat(dropdownPrefixCls, \"--empty\"), empty), _popupClassName);\n var popupElement = this.getDropdownElement({\n menuItems: props.options,\n onPopupFocus: onPopupFocus,\n multiple: multiple,\n inputValue: inputValue,\n visible: visible\n });\n var hideAction;\n\n if (disabled) {\n hideAction = [];\n } else if (util_1.isSingleMode(props) && !showSearch) {\n hideAction = ['click'];\n } else {\n hideAction = ['blur'];\n }\n\n var popupStyle = _objectSpread({}, dropdownStyle);\n\n var widthProp = dropdownMatchSelectWidth ? 'width' : 'minWidth';\n\n if (this.state.dropdownWidth) {\n popupStyle[widthProp] = \"\".concat(this.state.dropdownWidth, \"px\");\n }\n\n return React.createElement(rc_trigger_1[\"default\"], _extends({}, props, {\n showAction: disabled ? [] : this.props.showAction,\n hideAction: hideAction,\n ref: this.saveTriggerRef,\n popupPlacement: \"bottomLeft\",\n builtinPlacements: BUILT_IN_PLACEMENTS,\n prefixCls: dropdownPrefixCls,\n popupTransitionName: this.getDropdownTransitionName(),\n onPopupVisibleChange: props.onDropdownVisibleChange,\n popup: popupElement,\n popupAlign: dropdownAlign,\n popupVisible: visible,\n getPopupContainer: props.getPopupContainer,\n popupClassName: classnames_1[\"default\"](popupClassName),\n popupStyle: popupStyle\n }), props.children);\n }\n }]);\n\n return SelectTrigger;\n}(React.Component);\n\nexports[\"default\"] = SelectTrigger;\nSelectTrigger.defaultProps = {\n dropdownRender: function dropdownRender(menu) {\n return menu;\n }\n};\nSelectTrigger.propTypes = {\n onPopupFocus: PropTypes.func,\n onPopupScroll: PropTypes.func,\n dropdownMatchSelectWidth: PropTypes.bool,\n dropdownAlign: PropTypes.object,\n visible: PropTypes.bool,\n disabled: PropTypes.bool,\n showSearch: PropTypes.bool,\n dropdownClassName: PropTypes.string,\n multiple: PropTypes.bool,\n inputValue: PropTypes.string,\n filterOption: PropTypes.any,\n options: PropTypes.any,\n prefixCls: PropTypes.string,\n popupClassName: PropTypes.string,\n children: PropTypes.any,\n showAction: PropTypes.arrayOf(PropTypes.string),\n menuItemSelectedIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),\n dropdownRender: PropTypes.func,\n ariaId: PropTypes.string\n};\nSelectTrigger.displayName = 'SelectTrigger';","\"use strict\";\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\n\nvar __importStar = this && this.__importStar || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) {\n if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n }\n result[\"default\"] = mod;\n return result;\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar dom_scroll_into_view_1 = __importDefault(require(\"dom-scroll-into-view\"));\n\nvar PropTypes = __importStar(require(\"prop-types\"));\n\nvar raf_1 = __importDefault(require(\"raf\"));\n\nvar rc_menu_1 = __importDefault(require(\"rc-menu\"));\n\nvar toArray_1 = __importDefault(require(\"rc-util/lib/Children/toArray\"));\n\nvar React = __importStar(require(\"react\"));\n\nvar react_dom_1 = require(\"react-dom\");\n\nvar util_1 = require(\"./util\");\n\nvar DropdownMenu =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(DropdownMenu, _React$Component);\n\n function DropdownMenu(props) {\n var _this;\n\n _classCallCheck(this, DropdownMenu);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(DropdownMenu).call(this, props));\n _this.rafInstance = null;\n _this.lastVisible = false;\n\n _this.scrollActiveItemToView = function () {\n // scroll into view\n var itemComponent = react_dom_1.findDOMNode(_this.firstActiveItem);\n var _this$props = _this.props,\n visible = _this$props.visible,\n firstActiveValue = _this$props.firstActiveValue;\n var value = _this.props.value;\n\n if (!itemComponent || !visible) {\n return;\n }\n\n var scrollIntoViewOpts = {\n onlyScrollIfNeeded: true\n };\n\n if ((!value || value.length === 0) && firstActiveValue) {\n scrollIntoViewOpts.alignWithTop = true;\n } // Delay to scroll since current frame item position is not ready when pre view is by filter\n // https://github.com/ant-design/ant-design/issues/11268#issuecomment-406634462\n\n\n _this.rafInstance = raf_1[\"default\"](function () {\n dom_scroll_into_view_1[\"default\"](itemComponent, react_dom_1.findDOMNode(_this.menuRef), scrollIntoViewOpts);\n });\n };\n\n _this.renderMenu = function () {\n var _this$props2 = _this.props,\n menuItems = _this$props2.menuItems,\n menuItemSelectedIcon = _this$props2.menuItemSelectedIcon,\n defaultActiveFirstOption = _this$props2.defaultActiveFirstOption,\n prefixCls = _this$props2.prefixCls,\n multiple = _this$props2.multiple,\n onMenuSelect = _this$props2.onMenuSelect,\n inputValue = _this$props2.inputValue,\n backfillValue = _this$props2.backfillValue,\n onMenuDeselect = _this$props2.onMenuDeselect,\n visible = _this$props2.visible;\n var firstActiveValue = _this.props.firstActiveValue;\n\n if (menuItems && menuItems.length) {\n var menuProps = {};\n\n if (multiple) {\n menuProps.onDeselect = onMenuDeselect;\n menuProps.onSelect = onMenuSelect;\n } else {\n menuProps.onClick = onMenuSelect;\n }\n\n var value = _this.props.value;\n var selectedKeys = util_1.getSelectKeys(menuItems, value);\n var activeKeyProps = {};\n var defaultActiveFirst = defaultActiveFirstOption;\n var clonedMenuItems = menuItems;\n\n if (selectedKeys.length || firstActiveValue) {\n if (visible && !_this.lastVisible) {\n activeKeyProps.activeKey = selectedKeys[0] || firstActiveValue;\n } else if (!visible) {\n // Do not trigger auto active since we already have selectedKeys\n if (selectedKeys[0]) {\n defaultActiveFirst = false;\n }\n\n activeKeyProps.activeKey = undefined;\n }\n\n var foundFirst = false; // set firstActiveItem via cloning menus\n // for scroll into view\n\n var clone = function clone(item) {\n var key = item.key;\n\n if (!foundFirst && selectedKeys.indexOf(key) !== -1 || !foundFirst && !selectedKeys.length && firstActiveValue.indexOf(item.key) !== -1) {\n foundFirst = true;\n return React.cloneElement(item, {\n ref: function ref(_ref) {\n _this.firstActiveItem = _ref;\n }\n });\n }\n\n return item;\n };\n\n clonedMenuItems = menuItems.map(function (item) {\n if (item.type.isMenuItemGroup) {\n var children = toArray_1[\"default\"](item.props.children).map(clone);\n return React.cloneElement(item, {}, children);\n }\n\n return clone(item);\n });\n } else {\n // Clear firstActiveItem when dropdown menu items was empty\n // Avoid `Unable to find node on an unmounted component`\n // https://github.com/ant-design/ant-design/issues/10774\n _this.firstActiveItem = null;\n } // clear activeKey when inputValue change\n\n\n var lastValue = value && value[value.length - 1];\n\n if (inputValue !== _this.lastInputValue && (!lastValue || lastValue !== backfillValue)) {\n activeKeyProps.activeKey = '';\n }\n\n return React.createElement(rc_menu_1[\"default\"], _extends({\n ref: _this.saveMenuRef,\n style: _this.props.dropdownMenuStyle,\n defaultActiveFirst: defaultActiveFirst,\n role: \"listbox\",\n itemIcon: multiple ? menuItemSelectedIcon : null\n }, activeKeyProps, {\n multiple: multiple\n }, menuProps, {\n selectedKeys: selectedKeys,\n prefixCls: \"\".concat(prefixCls, \"-menu\")\n }), clonedMenuItems);\n }\n\n return null;\n };\n\n _this.lastInputValue = props.inputValue;\n _this.saveMenuRef = util_1.saveRef(_assertThisInitialized(_this), 'menuRef');\n return _this;\n }\n\n _createClass(DropdownMenu, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.scrollActiveItemToView();\n this.lastVisible = this.props.visible;\n }\n }, {\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate(nextProps) {\n if (!nextProps.visible) {\n this.lastVisible = false;\n } // freeze when hide\n\n\n return this.props.visible && !nextProps.visible || nextProps.visible || nextProps.inputValue !== this.props.inputValue;\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var props = this.props;\n\n if (!prevProps.visible && props.visible) {\n this.scrollActiveItemToView();\n }\n\n this.lastVisible = props.visible;\n this.lastInputValue = props.inputValue;\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.rafInstance) {\n raf_1[\"default\"].cancel(this.rafInstance);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var renderMenu = this.renderMenu();\n return renderMenu ? React.createElement(\"div\", {\n style: {\n overflow: 'auto',\n transform: 'translateZ(0)'\n },\n id: this.props.ariaId,\n onFocus: this.props.onPopupFocus,\n onMouseDown: util_1.preventDefaultEvent,\n onScroll: this.props.onPopupScroll\n }, renderMenu) : null;\n }\n }]);\n\n return DropdownMenu;\n}(React.Component);\n\nexports[\"default\"] = DropdownMenu;\nDropdownMenu.displayName = 'DropdownMenu';\nDropdownMenu.propTypes = {\n ariaId: PropTypes.string,\n defaultActiveFirstOption: PropTypes.bool,\n value: PropTypes.any,\n dropdownMenuStyle: PropTypes.object,\n multiple: PropTypes.bool,\n onPopupFocus: PropTypes.func,\n onPopupScroll: PropTypes.func,\n onMenuDeSelect: PropTypes.func,\n onMenuSelect: PropTypes.func,\n prefixCls: PropTypes.string,\n menuItems: PropTypes.any,\n inputValue: PropTypes.string,\n visible: PropTypes.bool,\n firstActiveValue: PropTypes.string,\n menuItemSelectedIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.node])\n};"],"sourceRoot":""}