"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
require("./index.scss");
var React = _interopRequireWildcard(require("react"));
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 winner01 = function winner01(winner01Props) {
  var bgColor = winner01Props.bgColor,
    isBgColor = winner01Props.isBgColor,
    titleColor = winner01Props.titleColor,
    textColor = winner01Props.textColor,
    textFontSize = winner01Props.textFontSize,
    textFontFamily = winner01Props.textFontFamily,
    lineHeight = winner01Props.lineHeight;
  var mainStyle = {
    style: {
      backgroundColor: isBgColor ? bgColor : ''
    }
  };
  // const titleStyle = {
  //   style: {
  //     fontWeight: titleBold ? 'bolder' : 'normal',
  //     textAlign: 'center',
  //     fontSize: `${titleFontSize}px`,
  //     fontFamily: titleFontFamily,
  //     color: titleColor,
  //     paddingBottom: '2vw',
  //   },
  // };
  var innerStyle = {
    style: {
      backgroundColor: isBgColor ? bgColor : '',
      color: textColor,
      fontSize: textFontSize + "px",
      fontFamily: textFontFamily,
      lineHeight: lineHeight + "px"
    }
  };
  var list = [{
    time: '10分钟前',
    name: '张*',
    prizeName: '500元大奖'
  }, {
    time: '10分钟前',
    name: '李*',
    prizeName: '500元大奖'
  }, {
    time: '1小时前',
    name: '王*子',
    prizeName: '500元空气炸锅'
  }, {
    time: '10分钟前',
    name: '张*',
    prizeName: '500元大奖'
  }, {
    time: '1小时前',
    name: '王*子',
    prizeName: '500元空气炸锅'
  }, {
    time: '1小时前',
    name: '王*子',
    prizeName: '价值500元空气炸锅'
  }];
  // const { list = demo } = this.props
  return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
    className: "winner"
  }, mainStyle), /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
    className: "content"
  }, innerStyle), /*#__PURE__*/React.createElement("div", {
    className: "list"
  }, list.map(function (item, index) {
    return /*#__PURE__*/React.createElement("div", {
      className: "card",
      key: index
    }, /*#__PURE__*/React.createElement("div", {
      className: "list-item"
    }, item.time), /*#__PURE__*/React.createElement("div", {
      className: "list-item"
    }, item.name), /*#__PURE__*/React.createElement("div", {
      className: "list-item flex-2"
    }, "\u62BD\u4E2D\u4E86", /*#__PURE__*/React.createElement("span", {
      style: {
        color: titleColor
      }
    }, item.prizeName)));
  }))));
};
var _default = winner01;
exports["default"] = _default;