"use strict";

var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")["default"];

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

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

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

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

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

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

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

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

var _tslib = require("tslib");

var React = _interopRequireWildcard(require("react"));

var _mobxReact = require("mobx-react");

var _Base = _interopRequireDefault(require("./Base"));

var _FormField2 = require("../field/FormField");

var Paragraph = /*#__PURE__*/function (_FormField) {
  (0, _inherits2["default"])(Paragraph, _FormField);

  var _super = (0, _createSuper2["default"])(Paragraph);

  function Paragraph() {
    (0, _classCallCheck2["default"])(this, Paragraph);
    return _super.apply(this, arguments);
  }

  (0, _createClass2["default"])(Paragraph, [{
    key: "renderWrapper",
    value: function renderWrapper() {
      return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Base["default"], (0, _extends2["default"])({}, this.props, {
        component: "div"
      }), this.processRenderer(this.getValue()) || this.props.children), this.renderFloatLabel());
    }
  }]);
  return Paragraph;
}(_FormField2.FormField);

Paragraph.displayName = 'Paragraph';
Paragraph.__PRO_TEXT = true;
Paragraph.defaultProps = (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, _FormField2.FormField.defaultProps), {}, {
  suffixCls: 'paragraph'
});
Paragraph = (0, _tslib.__decorate)([_mobxReact.observer], Paragraph);
var _default = Paragraph;
exports["default"] = _default;
//# sourceMappingURL=Paragraph.js.map
