'use strict';

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

exports.__esModule = true;
exports.Tooltip = 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 _classnames = _interopRequireDefault(require("classnames"));

var _Tooltip = _interopRequireDefault(require("react-bootstrap/lib/Tooltip"));

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

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

  var _proto = Tooltip.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        children = _this$props.children,
        className = _this$props.className,
        props = (0, _objectWithoutPropertiesLoose2.default)(_this$props, ["children", "className"]);
    return _react.default.createElement(_Tooltip.default, (0, _extends2.default)({
      className: (0, _classnames.default)(className, 'bootstrap-rc'),
      "data-test-automation-id": "tooltip"
    }, props), children);
  };

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

exports.Tooltip = Tooltip;
(0, _defineProperty2.default)(Tooltip, "propTypes", Object.assign({}, _Tooltip.default.propTypes, {
  children: _propTypes.default.node.isRequired,
  className: _propTypes.default.string
}));
(0, _defineProperty2.default)(Tooltip, "defaultProps", {
  className: null
});