import "choerodon-ui/pro/lib/table/style";
import _Table from "@hzero-front-ui/c7n-ui/lib/TablePro";
import { SelectApp } from "../tool-bar";
import React from 'react';
import branchTheme4Style from "../contents/branch/theme4.module.less?modules";
var Column = _Table.Column;
var map = {
  key: {
    breadCrumb: {
      origin: {},
      theme4: {
        extraNode: /*#__PURE__*/React.createElement(SelectApp, {
          theme4: true
        })
      }
    }
  }
};
var branchMap = {
  style: {
    origin: null,
    theme4: branchTheme4Style
  },
  key: {
    columnsRender: {
      origin: function origin(_ref) {
        var branchNameRenderer = _ref.branchNameRenderer,
            actionRender = _ref.actionRender,
            updateCommitRender = _ref.updateCommitRender,
            createUserRender = _ref.createUserRender,
            isOPERATIONS = _ref.isOPERATIONS,
            issueNameRender = _ref.issueNameRender;
        return [/*#__PURE__*/React.createElement(Column, {
          name: "branchName",
          renderer: branchNameRenderer,
          sortable: true
        }), /*#__PURE__*/React.createElement(Column, {
          align: "right",
          width: 60,
          renderer: actionRender
        }), /*#__PURE__*/React.createElement(Column, {
          name: "commitContent",
          className: "lasetCommit",
          width: 300,
          renderer: updateCommitRender
        }), /*#__PURE__*/React.createElement(Column, {
          name: "createUserRealName",
          renderer: createUserRender
        }), !isOPERATIONS && [/*#__PURE__*/React.createElement(Column, {
          name: "projectName"
        }), /*#__PURE__*/React.createElement(Column, {
          name: "issueName",
          renderer: issueNameRender,
          tooltip: "overflow"
        })]];
      },
      theme4: function theme4(_ref2) {
        var theme4RenderColumn = _ref2.theme4RenderColumn;
        return /*#__PURE__*/React.createElement(Column, {
          renderer: theme4RenderColumn
        });
      }
    }
  }
};
export { map, branchMap };