"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _dialog = _interopRequireDefault(require("@alifd/next/lib/dialog"));
var _progress = _interopRequireDefault(require("@alifd/next/lib/progress"));
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
var _react = _interopRequireWildcard(require("react"));
var _indexModule = _interopRequireDefault(require("./index.module.scss"));
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 tpl2 = /*#__PURE__*/function (_Component) {
  (0, _inheritsLoose2["default"])(tpl2, _Component);
  function tpl2() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _Component.call.apply(_Component, [this].concat(args)) || this;
    _this.state = {
      avatar: 'https://img.maimairen.com/low-code/components/text-image/service-man.png?imageMogr2/thumbnail/144x173',
      upload: {
        isLoadding: false,
        progress: 0
      }
    };
    return _this;
  }
  var _proto = tpl2.prototype;
  _proto.render = function render() {
    var avatar = this.state.avatar;
    return /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        background: 'linear-gradient(180deg, transparent, #E1C491)',
        borderRadius: '.5em',
        position: 'relative',
        overflow: 'hidden',
        // padding: '.5em',
        maxWidth: '420px',
        display: 'flex',
        alignItem: 'center',
        margin: '0 auto'
      }
    }, /*#__PURE__*/_react["default"].createElement(_dialog["default"], {
      title: "\u6587\u4EF6\u4E0A\u4F20\u4E2D...",
      visible: this.state.upload.isLoadding,
      footer: /*#__PURE__*/_react["default"].createElement("div", null),
      closeMode: [],
      className: _indexModule["default"].uploading
    }, /*#__PURE__*/_react["default"].createElement(_progress["default"], {
      percent: this.state.upload.progress,
      shape: "circle"
    })), /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        padding: '4% 2%'
      }
    }, /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        width: '120px',
        height: '120px',
        backgroundColor: '#ffffff',
        borderRadius: '50%',
        position: 'relative',
        overflow: 'hidden'
      }
    }, /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        position: 'absolute',
        top: '57%',
        left: '54%',
        transform: 'translate(-50%, -50%)',
        width: '74%'
      }
    }, /*#__PURE__*/_react["default"].createElement("img", {
      src: avatar,
      style: {
        maxWidth: '100%'
      }
    })))), /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        width: '100%',
        paddingBottom: '20px',
        paddingLeft: '4px'
      }
    }, /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        display: 'flex',
        alignItems: 'flex-end'
      }
    }, /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        fontSize: '24px',
        fontFamily: 'MiSans',
        fontWeight: 'bolder',
        color: '#222222',
        whiteSpace: 'nowrap',
        marginTop: '20px'
      }
    }, "\u4E07\u743C"), /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        background: '#EDDBBC',
        fontSize: '12px',
        fontFamily: 'MiSans',
        fontWeight: '500',
        display: 'inline-block',
        color: '#755C2F',
        padding: '6px 10px',
        marginLeft: '10px',
        whiteSpace: 'nowrap',
        borderRadius: '6px'
      }
    }, "\u535A\u65F6\u533B\u7597ETF\u57FA\u91D1\u7ECF\u7406")), /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        paddingTop: '20px'
      }
    }, /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        fontSize: '14px',
        fontFamily: 'MiSans',
        fontWeight: 'bolder',
        color: '#755C2F',
        lineHeight: '1.5em'
      }
    }, /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        display: 'inline-block',
        width: '0.5em',
        height: '0.5em',
        marginRight: '10px',
        background: '#C7B08E',
        borderRadius: '50%',
        lineHeight: '1.5em',
        verticalAlign: 'middle'
      }
    }), "27\u5E74\u8BC1\u5238\u4ECE\u4E1A\u7ECF\u5386"), /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        fontSize: '14px',
        fontFamily: 'MiSans',
        fontWeight: 'bolder',
        color: '#755C2F',
        lineHeight: '1.5em'
      }
    }, /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        display: 'inline-block',
        width: '0.5em',
        height: '0.5em',
        marginRight: '10px',
        background: '#C7B08E',
        borderRadius: '50%',
        lineHeight: '1.5em',
        verticalAlign: 'middle'
      }
    }), "\u6DF1\u8015\u5883\u5916\u5E02\u573A\uFF0C\u5173\u6CE8\u65B0\u5174\u4EA7\u4E1A"), /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        fontSize: '14px',
        fontFamily: 'MiSans',
        fontWeight: 'bolder',
        color: '#755C2F',
        lineHeight: '1.5em'
      }
    }, /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        display: 'inline-block',
        width: '0.5em',
        height: '0.5em',
        marginRight: '10px',
        background: '#C7B08E',
        borderRadius: '50%',
        lineHeight: '1.5em',
        verticalAlign: 'middle'
      }
    }), "\u64C5\u957F\u901A\u8FC7\u91CF\u5316\u7B56\u7565\u7D27\u5BC6\u8DDF\u8E2A\u6307\u6570"))));
  };
  return tpl2;
}(_react.Component);
exports["default"] = tpl2;