'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

var inherits = require('../inherits-c86d64c1.js');
var React = require('react');
var React__default = _interopDefault(React);
var styleInject_es = require('../style-inject.es-dcee06b6.js');
var defineProperty = require('../defineProperty-ba7cd53d.js');
require('../_commonjsHelpers-72d386ba.js');
var index = require('../index-44e17595.js');
var antd = require('antd');

var img = "data:image/png;base64,[encoded data, 5884 characters]";

var css = ".WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_middle__1UdIU {\n  color: #E1AD28;\n  font-size: 17px;\n  margin-top: 21px;\n}\n.WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_middle__1UdIU .WantedPublishView_wanted_cover__30Gn1 {\n  width: 95px;\n}\n.WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_bottom__3EIE0 .WantedPublishView_wanted_bottom_title__2LAKy {\n  color: #565656;\n  font-size: 14px;\n}\n.WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_bottom__3EIE0 .WantedPublishView_wanted_input_number__2Afkg {\n  margin: 11px auto;\n  width: 266px;\n  height: 36px;\n}\n.WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_bottom__3EIE0 .WantedPublishView_wanted_input_number__2Afkg .ant-input {\n  color: #FB4B56;\n  font-size: 16px;\n  text-align: center;\n}\n.WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_bottom__3EIE0 .WantedPublishView_wanted_input_number__2Afkg .ant-input:focus,\n.WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_bottom__3EIE0 .WantedPublishView_wanted_input_number__2Afkg .ant-input:hover {\n  outline: none;\n  box-shadow: none;\n  border-color: #FB4B56;\n}\n.WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_bottom__3EIE0 .WantedPublishView_wanted_bottom_tips__19Je0 {\n  color: #9B9B9B;\n  font-size: 12px;\n}\n.WantedPublishView_wrapper__3lkb6 footer {\n  margin-top: 40px;\n}\n.WantedPublishView_wrapper__3lkb6 footer .WantedPublishView_wanted_confirm_button__1JBhv {\n  font-size: 16px;\n  color: white;\n  background-color: #71C135;\n}\n.WantedPublishView_wrapper__3lkb6 footer .WantedPublishView_wanted_confirm_button__1JBhv:hover,\n.WantedPublishView_wrapper__3lkb6 footer .WantedPublishView_wanted_confirm_button__1JBhv:focus {\n  color: white;\n  outline: none;\n  box-shadow: none;\n  background-color: #8cd158;\n  border-color: #fafdf8;\n}\n.WantedPublishView_wrapper__3lkb6 footer .WantedPublishView_wanted_cancel_button__CosmE {\n  margin-top: 12px;\n  color: #787F8C;\n  font-size: 12px;\n  cursor: pointer;\n}\n.WantedPublishView_wrapper__3lkb6 footer .WantedPublishView_wanted_cancel_button__CosmE:hover,\n.WantedPublishView_wrapper__3lkb6 footer .WantedPublishView_wanted_cancel_button__CosmE:focus {\n  color: #787F8C;\n  text-shadow: #565656;\n}\n";
var styles = {
  "wrapper": "WantedPublishView_wrapper__3lkb6",
  "wanted_middle": "WantedPublishView_wanted_middle__1UdIU",
  "wanted_cover": "WantedPublishView_wanted_cover__30Gn1",
  "wanted_bottom": "WantedPublishView_wanted_bottom__3EIE0",
  "wanted_bottom_title": "WantedPublishView_wanted_bottom_title__2LAKy",
  "wanted_input_number": "WantedPublishView_wanted_input_number__2Afkg",
  "wanted_bottom_tips": "WantedPublishView_wanted_bottom_tips__19Je0",
  "wanted_confirm_button": "WantedPublishView_wanted_confirm_button__1JBhv",
  "wanted_cancel_button": "WantedPublishView_wanted_cancel_button__CosmE",
  "wantedMiddle": "WantedPublishView_wanted_middle__1UdIU",
  "wantedCover": "WantedPublishView_wanted_cover__30Gn1",
  "wantedBottom": "WantedPublishView_wanted_bottom__3EIE0",
  "wantedBottomTitle": "WantedPublishView_wanted_bottom_title__2LAKy",
  "wantedInputNumber": "WantedPublishView_wanted_input_number__2Afkg",
  "wantedBottomTips": "WantedPublishView_wanted_bottom_tips__19Je0",
  "wantedConfirmButton": "WantedPublishView_wanted_confirm_button__1JBhv",
  "wantedCancelButton": "WantedPublishView_wanted_cancel_button__CosmE"
};
styleInject_es.styleInject(css);

var WantedPublishView =
/*#__PURE__*/
function (_React$Component) {
  inherits._inherits(WantedPublishView, _React$Component);

  function WantedPublishView(props) {
    var _this;

    inherits._classCallCheck(this, WantedPublishView);

    _this = inherits._possibleConstructorReturn(this, inherits._getPrototypeOf(WantedPublishView).call(this, props));
    _this.state = {};
    return _this;
  }

  inherits._createClass(WantedPublishView, [{
    key: "render",
    value: function render() {
      var _this2 = this;

      var _this$props = this.props,
          current_wanted = _this$props.current_wanted,
          wrapperClass = _this$props.wrapperClass;
      return React__default.createElement("div", {
        className: index.classnames(styles.wrapper, defineProperty._defineProperty({}, wrapperClass ? wrapperClass : '', true))
      }, React__default.createElement("header", null, "\u8BBE\u7F6E\u60AC\u8D4F\u91D1\u989D"), React__default.createElement("section", {
        className: styles.wanted_middle
      }, React__default.createElement("img", {
        className: styles.wanted_cover,
        src: img,
        alt: "wanted_image"
      }), React__default.createElement("div", null, "\u60AC\u8D4F\u63D0\u95EE")), React__default.createElement(antd.Divider, {
        style: {
          minWidth: 'auto',
          marginLeft: 'auto',
          marginRight: 'auto',
          width: '266px'
        }
      }), React__default.createElement("section", {
        className: styles.wanted_bottom
      }, React__default.createElement("div", {
        className: styles.wanted_bottom_title
      }, "\u8BBE\u7F6E\u60AC\u8D4F\u91D1\u989D\u8303\u56F4\xA55.00\uFF5E\xA510000"), React__default.createElement(antd.Input, {
        className: styles.wanted_input_number,
        suffix: "\u5143",
        value: current_wanted || '',
        onChange: function onChange(v) {
          if (!/^[.0-9]*$/g.test(v.target.value)) return;

          _this2.props.InputWantedValueChange(v.target.value);
        },
        onPressEnter: function onPressEnter() {
          _this2.props.InputWantedPressEnter(current_wanted);
        },
        onBlur: function onBlur() {
          _this2.props.InputWantedOnBlur(current_wanted);
        },
        autoFocus: true
      }), React__default.createElement("div", {
        className: styles.wanted_bottom_tips
      }, "\u82E55\u5929\u5185\u6CA1\u4EBA\u56DE\u7B54\u8BE5\u95EE\u9898, \u6240\u652F\u4ED8\u7684\u91D1\u989D\u5C06\u9000\u8FD8\u81F3\u60A8\u7684\u94B1\u5305")), React__default.createElement("footer", null, React__default.createElement(antd.Button, {
        className: styles.wanted_confirm_button,
        onClick: function onClick() {
          return _this2.props.CloseFunction();
        }
      }, "\u786E\u5B9A"), React__default.createElement("div", {
        role: "button",
        tabIndex: -1,
        onClick: function onClick() {
          return _this2.props.InputWantedClear();
        },
        className: styles.wanted_cancel_button
      }, "\u53D6\u6D88\u60AC\u8D4F")));
    }
  }]);

  return WantedPublishView;
}(React__default.Component);

exports.default = WantedPublishView;
//# sourceMappingURL=index.js.map
