function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

import { has, get } from '@choerodon/inject';
var deployReportList = [{
  key: 'deploy-times',
  link: '/devops/charts/deploy/deploy-times',
  pic: 'number',
  title: '部署次数图'
}, {
  key: 'deploy-duration',
  link: '/devops/charts/deploy/deploy-duration',
  pic: 'deploy-duration',
  title: '部署时长图'
}];
var developReportList = [{
  key: 'submission',
  link: '/devops/charts/develop/submission',
  pic: 'submission',
  title: '代码提交图'
}, {
  key: 'build-number',
  link: '/devops/charts/develop/build-number',
  pic: 'number',
  title: '构建次数图'
}, {
  key: 'build-duration',
  link: '/devops/charts/develop/build-duration',
  pic: 'build-duration',
  title: '构建时长图'
}, {
  key: 'pipelineTrigger-number',
  link: '/devops/charts/develop/pipelineTrigger-number',
  pic: 'pipelineTrigger-number',
  title: '流水线触发次数图'
}, {
  key: 'pipeline-duration',
  link: '/devops/charts/develop/pipeline-duration',
  pic: 'pipeline-duration',
  title: '流水线执行时长图'
}];
has('rdqam:reportList') && developReportList.splice.apply(developReportList, [1, 0].concat(_toConsumableArray(get('rdqam:reportList'))));
var reportListMap = {
  deploy: deployReportList,
  develop: developReportList
};
export { deployReportList, developReportList, reportListMap };