"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 _tpl = _interopRequireDefault(require("./tpls/tpl1"));
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 tabs = [{
  tab: "推荐",
  key: 0,
  content: /*#__PURE__*/_react["default"].createElement(_tpl["default"], null)
}, {
  tab: "单图",
  key: 1,
  content: "单图"
}, {
  tab: "双图",
  key: 2,
  content: "双图"
}, {
  tab: "三图",
  key: 3,
  content: "三图"
}, {
  tab: "四图",
  key: 4,
  content: "四图"
}, {
  tab: "五图",
  key: 5,
  content: "五图"
}, {
  tab: "六图",
  key: 6,
  content: "六图"
}];
function onChange() {
  // console.log("change", key);
}
function handleClick() {
  // console.log("click", content);
}
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() {
    return /*#__PURE__*/_react["default"].createElement("div", {
      className: _indexModule["default"]['dialog-left']
    }, /*#__PURE__*/_react["default"].createElement(_tab["default"], {
      triggerType: "click",
      onChange: onChange,
      excessMode: "dropdown"
    }, tabs.map(function (item) {
      return /*#__PURE__*/_react["default"].createElement(_tab["default"].Item, {
        key: item.key,
        title: item.tab,
        onClick: function onClick() {
          return handleClick(item.content);
        }
      }, item.content);
    })));
  };
  return EditorLeft;
}(_react.Component);
exports["default"] = EditorLeft;