"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _tab = _interopRequireDefault(require("@alifd/next/lib/tab"));
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
var _react = _interopRequireWildcard(require("react"));
var _indexModule = _interopRequireDefault(require("./index.module.scss"));
var _tab2 = _interopRequireDefault(require("./tpls/tab1"));
var _tab3 = _interopRequireDefault(require("./tpls/tab2"));
var _longRitch = _interopRequireDefault(require("./tpls/longRitch"));
var _briefIntroduction = _interopRequireDefault(require("./tpls/briefIntroduction"));
var _activity = _interopRequireDefault(require("./tpls/activity"));
var _blue = _interopRequireDefault(require("./tpls/blue"));
var _purple = _interopRequireDefault(require("./tpls/purple"));
var _black = _interopRequireDefault(require("./tpls/black"));
var _red = _interopRequireDefault(require("./tpls/red"));
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 EditorLeft = /*#__PURE__*/function (_Component) {
  (0, _inheritsLoose2["default"])(EditorLeft, _Component);
  function EditorLeft() {
    return _Component.apply(this, arguments) || this;
  }
  var _proto = EditorLeft.prototype;
  _proto.render = function render() {
    var tabs = [{
      tab: "红色系",
      key: 8,
      content: /*#__PURE__*/_react["default"].createElement(_red["default"], {
        insetFn: this.props.insetContent
      })
    }, {
      tab: "黑色系",
      key: 7,
      content: /*#__PURE__*/_react["default"].createElement(_black["default"], {
        insetFn: this.props.insetContent
      })
    }, {
      tab: "紫色系",
      key: 6,
      content: /*#__PURE__*/_react["default"].createElement(_purple["default"], {
        insetFn: this.props.insetContent
      })
    }, {
      tab: "蓝色系",
      key: 5,
      content: /*#__PURE__*/_react["default"].createElement(_blue["default"], {
        insetFn: this.props.insetContent
      })
    }, {
      tab: "推荐",
      key: 0,
      content: /*#__PURE__*/_react["default"].createElement(_tab2["default"], {
        insetFn: this.props.insetContent
      })
    }, {
      tab: "基金理财",
      key: 1,
      content: /*#__PURE__*/_react["default"].createElement(_tab3["default"], {
        insetFn: this.props.insetContent
      })
    }, {
      tab: "邀请函",
      key: 2,
      content: /*#__PURE__*/_react["default"].createElement(_longRitch["default"], {
        insetFn: this.props.insetContent
      })
    }, {
      tab: "品牌介绍",
      key: 3,
      content: /*#__PURE__*/_react["default"].createElement(_briefIntroduction["default"], {
        insetFn: this.props.insetContent
      })
    }, {
      tab: "活动",
      key: 4,
      content: /*#__PURE__*/_react["default"].createElement(_activity["default"], {
        insetFn: this.props.insetContent
      })
    }];
    return /*#__PURE__*/_react["default"].createElement("div", {
      className: _indexModule["default"]['dialog-left']
    }, /*#__PURE__*/_react["default"].createElement(_tab["default"], {
      triggerType: "click",
      excessMode: "dropdown"
    }, tabs.map(function (item) {
      return /*#__PURE__*/_react["default"].createElement(_tab["default"].Item, {
        key: item.key,
        title: item.tab
      }, /*#__PURE__*/_react["default"].createElement("div", {
        className: "dialog-left-item"
      }, /*#__PURE__*/_react["default"].createElement("div", {
        className: "dialog-left-body"
      }, item.content)));
    })));
  };
  return EditorLeft;
}(_react.Component);
exports["default"] = EditorLeft;