"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

exports.__esModule = true;
exports.Dropdown = void 0;

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));

var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));

var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));

var _react = _interopRequireDefault(require("react"));

var _propTypes = _interopRequireDefault(require("prop-types"));

var _Dropdown = _interopRequireDefault(require("react-bootstrap/lib/Dropdown"));

var Dropdown =
/*#__PURE__*/
function (_React$Component) {
  (0, _inheritsLoose2.default)(Dropdown, _React$Component);

  function Dropdown() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Dropdown.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        children = _this$props.children,
        testAutomationId = _this$props.testAutomationId,
        props = (0, _objectWithoutPropertiesLoose2.default)(_this$props, ["children", "testAutomationId"]);
    return _react.default.createElement(_Dropdown.default, (0, _extends2.default)({
      "data-test-automation-id": testAutomationId
    }, props), children);
  };

  return Dropdown;
}(_react.default.Component);

exports.Dropdown = Dropdown;
(0, _defineProperty2.default)(Dropdown, "Menu", _Dropdown.default.Menu);
(0, _defineProperty2.default)(Dropdown, "Toggle", _Dropdown.default.Toggle);
(0, _defineProperty2.default)(Dropdown, "propTypes", {
  testAutomationId: _propTypes.default.string,
  children: _propTypes.default.node.isRequired
});
(0, _defineProperty2.default)(Dropdown, "defaultProps", {
  testAutomationId: null,
  children: null
});