"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 tpl5 = /*#__PURE__*/function (_Component) {
  (0, _inheritsLoose2["default"])(tpl5, _Component);
  function tpl5() {
    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',
      // trapezoid:'https://img.maimairen.com/upload/img-text-tpl2/2022/09/21/edf80e74b686014330c07e01286b6b1a.png',
      // trapezoid:'https://img.maimairen.com/upload/img-text-tpl2/2022/09/21/c55d62004196f1c6ffe83bb0ac738257.png',
      upload: {
        isLoadding: false,
        progress: 0
      }
    };
    return _this;
  }
  var _proto = tpl5.prototype;
  _proto.render = function render() {
    var avatar = this.state.avatar;
    return /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        borderRadius: '.5em',
        position: 'relative',
        overflow: 'hidden',
        // padding: '.5em',
        maxWidth: '420px',
        display: 'flex',
        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: {
        width: '100%'
      }
    }, /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        position: 'relative',
        overflow: 'hidden',
        background: "url('https://img.maimairen.com/upload/img-text-tpl2/2022/09/21/c55d62004196f1c6ffe83bb0ac738257.png') no-repeat",
        backgroundSize: 'cover',
        maxWidth: "420px",
        height: "244px",
        maxHeight: "244px"
      }
    }, /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        display: "flex",
        justifyContent: "space-between",
        alignItems: "flex-end",
        position: "absolute",
        width: "88%",
        top: "60px",
        left: "16px"
      }
    }, /*#__PURE__*/_react["default"].createElement("img", {
      src: avatar,
      style: {
        verticalAlign: "middle",
        maxWidth: "100%"
      }
    }), /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        display: "flex",
        flexDirection: "column",
        alignItems: "flex-end",
        width: "100%",
        paddingLeft: "10%",
        paddingBottom: "4%"
      }
    }, /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        fontSize: '28px',
        fontFamily: 'MiSans',
        fontWeight: "bold",
        color: "#D16416",
        lineHeight: "1.5em"
      }
    }, "\u4E07\u743C"), /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        fontSize: '16px',
        fontFamily: 'MiSans',
        fontWeight: '400',
        color: '#D16416',
        lineHeight: '1em',
        paddingTop: '4%'
      }
    }, "\u535A\u65F6\u533B\u7597ETF\u57FA\u91D1\u7ECF\u7406")))), /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        width: '100%',
        padding: '6% 0',
        background: 'linear-gradient(-85deg, #EB3F3E 0%, #FD856E 100%)',
        borderTopLeftRadius: '5%',
        borderTopRightRadius: '5%',
        position: 'relative',
        top: '0',
        marginTop: '-4%'
      }
    }, /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        paddingLeft: '6%'
      }
    }, /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        fontSize: '14px',
        fontFamily: 'MiSans',
        fontWeight: 'bolder',
        color: '#FFFFFF',
        lineHeight: '1.5em'
      }
    }, /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        display: 'inline-block',
        width: '0.6em',
        height: '0.6em',
        marginRight: '10px',
        background: '#FCD9AC',
        borderRadius: '50%',
        lineHeight: '1.5em',
        verticalAlign: 'middle'
      }
    }), "27\u5E74\u8BC1\u5238\u4ECE\u4E1A\u7ECF\u5386,\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: '#FFFFFF',
        lineHeight: '1.5em'
      }
    }, /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        display: 'inline-block',
        width: '0.6em',
        height: '0.6em',
        marginRight: '10px',
        background: '#FCD9AC',
        borderRadius: '50%',
        lineHeight: '1.5em',
        verticalAlign: 'middle'
      }
    }), "\u64C5\u957F\u901A\u8FC7\u91CF\u5316\u7B56\u7565\u7D27\u5BC6\u8DDF\u8E2A\u6307\u6570")))));
  };
  return tpl5;
}(_react.Component);
exports["default"] = tpl5;