"use strict";

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

var _react = _interopRequireDefault(require("react"));

var _FlashDealConfigTitle = _interopRequireDefault(require("./FlashDealConfigTitle"));

var _FlashDealConfigContent = _interopRequireDefault(require("./FlashDealConfigContent"));

var _layout = _interopRequireDefault(require("./imgs/layout1.png"));

var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));

var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));

var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function FlashDealConfig(props) {
  var data = props.data;
  return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
    divider: "bold",
    headerSize: "large",
    source: [{
      key: '1',
      name: 'Title',
      value: /*#__PURE__*/_react["default"].createElement(_FlashDealConfigTitle["default"], {
        panelProps: data.title
      })
    }, {
      key: '2',
      name: 'Content',
      value: /*#__PURE__*/_react["default"].createElement(_FlashDealConfigContent["default"], {
        panelProps: data.content
      })
    }, {
      key: '3',
      name: 'Customize',
      value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
        data: data.customize,
        isHideAlign: true,
        layoutSource: [{
          id: 'layout1',
          name: 'left',
          image: _layout["default"]
        }]
      })
    }, {
      key: '4',
      name: 'Background',
      value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
        data: data.background
      })
    }],
    type: "triangle"
  }));
}