"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _select = _interopRequireDefault(require("@alifd/next/lib/select"));
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
var React = _interopRequireWildcard(require("react"));
require("./styles.less");
var _excluded = ["placeholder", "defaultValue", "value", "mode", "hasClear", "showSearch", "dataSource", "disabled", "size", "notFoundContent", "hasBorder", "hasArrow"];
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
var MySelect = function MySelect(_ref) {
  var placeholder = _ref.placeholder,
    defaultValue = _ref.defaultValue,
    value = _ref.value,
    mode = _ref.mode,
    hasClear = _ref.hasClear,
    showSearch = _ref.showSearch,
    dataSource = _ref.dataSource,
    disabled = _ref.disabled,
    size = _ref.size,
    notFoundContent = _ref.notFoundContent,
    hasBorder = _ref.hasBorder,
    hasArrow = _ref.hasArrow,
    otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
  return /*#__PURE__*/React.createElement(_select["default"], (0, _extends2["default"])({
    popupClassName: "myselect",
    size: size,
    placeholder: placeholder,
    value: defaultValue,
    mode: mode,
    hasClear: hasClear,
    showSearch: showSearch,
    dataSource: dataSource,
    disabled: disabled,
    notFoundContent: notFoundContent,
    hasBorder: hasBorder,
    autoWidth: true,
    hasArrow: hasArrow
    //    style={style}
  }, otherProps));
};
var _default = MySelect;
exports["default"] = _default;