"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.USER_NODE = exports.USER_CONCERN_NODE = exports.TONGJI_NODE = exports.SUMMARY_USER_CONCERN_NODE = exports.SUMMARY_FOLLOWER_NODE = exports.SUB_MENU_ITEM_NOE = exports.SUBORDINATES_NODE = exports.SHARE_NODE = exports.SAME_LEVEL_USER_NODE = exports.PARENT_MENU_NODE = exports.NO_SUBORDINATES_NODE = exports.NO_FOLLOWER_NODE = exports.MENU_ITEM_NOE = exports.MENU_ASSESS_TEMPLATE = exports.MENU_ASSESS_MANAGE = exports.LOADING_NODE = exports.GROUP_NAME_NODE = exports.FOLLOWER_NODE = exports.DEPART_NODE = exports.COMPANY_NODE = exports.COMPANY_ALL_NODE = void 0;
exports["default"] = _default;

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

var _subMenuItem = _interopRequireDefault(require("./sub-menu-item"));

var _menuItem = _interopRequireDefault(require("./menu-item"));

var _parentMenu = _interopRequireDefault(require("./parent-menu"));

var _groupName = _interopRequireDefault(require("./group-name"));

var _userConcern = _interopRequireDefault(require("./user-concern"));

var _summaryUserConcern = _interopRequireDefault(require("./summary-user-concern"));

var _subordinates = _interopRequireDefault(require("./subordinates"));

var _summaryShare = _interopRequireDefault(require("./summary-share"));

var _summaryTongji = _interopRequireDefault(require("./summary-tongji"));

var _compony = _interopRequireDefault(require("./compony"));

var _depart = _interopRequireDefault(require("./depart"));

var _user = _interopRequireDefault(require("./user"));

var _sameLevelUser = _interopRequireDefault(require("./same-level-user"));

var _companyAll = _interopRequireDefault(require("./company-all"));

var _noFollower = _interopRequireDefault(require("./no-follower"));

var _follower = _interopRequireDefault(require("./follower"));

var _summaryFollower = _interopRequireDefault(require("./summary-follower"));

var _loading = _interopRequireDefault(require("./loading"));

var _noSubordinates = _interopRequireDefault(require("./no-subordinates"));

var _assessTemplate = _interopRequireDefault(require("./assess-template"));

var _assessManage = _interopRequireDefault(require("./assess-manage"));

require("./index.css");

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

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _default(node, level, _ref) {
  var onExpand = _ref.onExpand;

  switch (node.nodeType) {
    case LOADING_NODE:
      return /*#__PURE__*/_react["default"].createElement(_loading["default"], null);

    case FOLLOWER_NODE:
      return /*#__PURE__*/_react["default"].createElement(_follower["default"], _extends({}, node, {
        level: level
      }));

    case SUMMARY_FOLLOWER_NODE:
      return /*#__PURE__*/_react["default"].createElement(_summaryFollower["default"], _extends({}, node, {
        level: level
      }));

    case NO_SUBORDINATES_NODE:
      return /*#__PURE__*/_react["default"].createElement(_noSubordinates["default"], null);

    case NO_FOLLOWER_NODE:
      return /*#__PURE__*/_react["default"].createElement(_noFollower["default"], null);

    case COMPANY_ALL_NODE:
      return /*#__PURE__*/_react["default"].createElement(_companyAll["default"], node);

    case COMPANY_NODE:
      return /*#__PURE__*/_react["default"].createElement(_compony["default"], _extends({}, node, {
        level: level
      }));

    case USER_NODE:
      return /*#__PURE__*/_react["default"].createElement(_user["default"], _extends({}, node, {
        level: level,
        onExpand: onExpand
      }));

    case SAME_LEVEL_USER_NODE:
      return /*#__PURE__*/_react["default"].createElement(_sameLevelUser["default"], _extends({}, node, {
        level: level,
        onExpand: onExpand
      }));

    case USER_CONCERN_NODE:
      return /*#__PURE__*/_react["default"].createElement(_userConcern["default"], _extends({}, node, {
        level: level,
        onExpand: onExpand
      }));

    case GROUP_NAME_NODE:
      return /*#__PURE__*/_react["default"].createElement(_groupName["default"], _extends({}, node, {
        level: level
      }));

    case DEPART_NODE:
      return /*#__PURE__*/_react["default"].createElement(_depart["default"], _extends({}, node, {
        level: level,
        onExpand: onExpand
      }));

    case PARENT_MENU_NODE:
      return /*#__PURE__*/_react["default"].createElement(_parentMenu["default"], _extends({}, node, {
        level: level,
        onExpand: onExpand
      }));

    case SUB_MENU_ITEM_NOE:
      return /*#__PURE__*/_react["default"].createElement(_subMenuItem["default"], _extends({}, node, {
        level: level
      }));

    case MENU_ITEM_NOE:
      return /*#__PURE__*/_react["default"].createElement(_menuItem["default"], _extends({}, node, {
        level: level
      }));

    case MENU_ASSESS_MANAGE:
      return /*#__PURE__*/_react["default"].createElement(_assessManage["default"], _extends({}, node, {
        level: level
      }));

    case MENU_ASSESS_TEMPLATE:
      return /*#__PURE__*/_react["default"].createElement(_assessTemplate["default"], _extends({}, node, {
        level: level
      }));

    case SUBORDINATES_NODE:
      return /*#__PURE__*/_react["default"].createElement(_subordinates["default"], _extends({}, node, {
        level: level,
        onExpand: onExpand
      }));

    case SHARE_NODE:
      return /*#__PURE__*/_react["default"].createElement(_summaryShare["default"], _extends({}, node, {
        level: level,
        onExpand: onExpand
      }));

    case TONGJI_NODE:
      return /*#__PURE__*/_react["default"].createElement(_summaryTongji["default"], _extends({}, node, {
        level: level,
        onExpand: onExpand
      }));

    case SUMMARY_USER_CONCERN_NODE:
      return /*#__PURE__*/_react["default"].createElement(_summaryUserConcern["default"], _extends({}, node, {
        level: level,
        onExpand: onExpand
      }));

    default:
  }
}

var USER_NODE = "user";
exports.USER_NODE = USER_NODE;
var LOADING_NODE = "loading";
exports.LOADING_NODE = LOADING_NODE;
var FOLLOWER_NODE = "follower";
exports.FOLLOWER_NODE = FOLLOWER_NODE;
var NO_SUBORDINATES_NODE = "no-subordinates";
exports.NO_SUBORDINATES_NODE = NO_SUBORDINATES_NODE;
var NO_FOLLOWER_NODE = "no-follower";
exports.NO_FOLLOWER_NODE = NO_FOLLOWER_NODE;
var COMPANY_ALL_NODE = "company-all";
exports.COMPANY_ALL_NODE = COMPANY_ALL_NODE;
var COMPANY_NODE = "company";
exports.COMPANY_NODE = COMPANY_NODE;
var USER_CONCERN_NODE = "user-concern";
exports.USER_CONCERN_NODE = USER_CONCERN_NODE;
var GROUP_NAME_NODE = "group-name";
exports.GROUP_NAME_NODE = GROUP_NAME_NODE;
var DEPART_NODE = "depart";
exports.DEPART_NODE = DEPART_NODE;
var PARENT_MENU_NODE = "parent-menu";
exports.PARENT_MENU_NODE = PARENT_MENU_NODE;
var SUB_MENU_ITEM_NOE = "sub-menu-item";
exports.SUB_MENU_ITEM_NOE = SUB_MENU_ITEM_NOE;
var MENU_ITEM_NOE = "menu-item";
exports.MENU_ITEM_NOE = MENU_ITEM_NOE;
var MENU_ASSESS_MANAGE = "assess-manage";
exports.MENU_ASSESS_MANAGE = MENU_ASSESS_MANAGE;
var MENU_ASSESS_TEMPLATE = "assess-template";
exports.MENU_ASSESS_TEMPLATE = MENU_ASSESS_TEMPLATE;
var SUBORDINATES_NODE = 'subordinates';
exports.SUBORDINATES_NODE = SUBORDINATES_NODE;
var SHARE_NODE = 'share';
exports.SHARE_NODE = SHARE_NODE;
var TONGJI_NODE = 'tongji';
exports.TONGJI_NODE = TONGJI_NODE;
var SAME_LEVEL_USER_NODE = 'same-level-user';
exports.SAME_LEVEL_USER_NODE = SAME_LEVEL_USER_NODE;
var SUMMARY_USER_CONCERN_NODE = 'summary-user-concern';
exports.SUMMARY_USER_CONCERN_NODE = SUMMARY_USER_CONCERN_NODE;
var SUMMARY_FOLLOWER_NODE = 'summary-follower';
exports.SUMMARY_FOLLOWER_NODE = SUMMARY_FOLLOWER_NODE;