"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.okrUpdateColumns = exports.okrAlignColumns = exports.myOkrColumns = void 0;

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

var _link = _interopRequireDefault(require("./link"));

var _okrName = _interopRequireDefault(require("./okrName"));

var _progressAndRisk = _interopRequireDefault(require("./progressAndRisk"));

var _getLocale = require("../../../../../../utils/getLocale");

var _tag = _interopRequireDefault(require("./tag"));

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

var _cycleTime = _interopRequireDefault(require("./cycleTime"));

var _updateTime = _interopRequireDefault(require("./updateTime"));

var _createDate = _interopRequireDefault(require("./createDate"));

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

var okrAlignColumns = [{
  title: (0, _getLocale.getLocale)("Mod_Name"),
  width: "38%",
  render: function render(data) {
    return /*#__PURE__*/_react["default"].createElement(_okrName["default"], {
      onClick: data.behave
    }, data.okrName);
  }
}, {
  title: (0, _getLocale.getLocale)("Mod_period"),
  width: "19%",
  render: function render(data) {
    return /*#__PURE__*/_react["default"].createElement(_cycleTime["default"], null, data.cycleTime);
  }
}, {
  title: (0, _getLocale.getLocale)("Mod_Owner"),
  width: "12%",
  render: function render(data) {
    return /*#__PURE__*/_react["default"].createElement(_user["default"], {
      userInfo: data.userInfo
    });
  }
}, {
  title: (0, _getLocale.getLocale)("OKR_MyO_RiskProgress"),
  width: "12%",
  render: function render(data) {
    return /*#__PURE__*/_react["default"].createElement(_progressAndRisk["default"], {
      status: data.status,
      progress: data.progress,
      riskLevel: data.riskLevel
    });
  }
}, {
  title: (0, _getLocale.getLocale)("Mod_States"),
  width: "12%",
  render: function render(data) {
    return /*#__PURE__*/_react["default"].createElement(_tag["default"], {
      color: data.typeName === (0, _getLocale.getLocale)("OKR_Db_Aligned") ? "green" : "red"
    }, data.typeName);
  }
}, {
  title: (0, _getLocale.getLocale)("Mod_Operation"),
  width: "7%",
  render: function render(data) {
    return /*#__PURE__*/_react["default"].createElement(_link["default"], {
      onClick: data.behave
    }, data.typeName === (0, _getLocale.getLocale)("OKR_Db_Aligned") ? (0, _getLocale.getLocale)("Mod_Checkdetails") : "去对齐");
  }
}];
exports.okrAlignColumns = okrAlignColumns;
var okrUpdateColumns = [{
  title: (0, _getLocale.getLocale)("Mod_Name"),
  width: "38%",
  render: function render(data) {
    return /*#__PURE__*/_react["default"].createElement(_okrName["default"], {
      onClick: data.behave,
      type: data.okrType
    }, data.okrName);
  }
}, {
  title: (0, _getLocale.getLocale)("Mod_period"),
  width: "19%",
  render: function render(data) {
    return /*#__PURE__*/_react["default"].createElement(_cycleTime["default"], null, data.cycleTime);
  }
}, {
  title: (0, _getLocale.getLocale)("Mod_Owner"),
  width: "12%",
  render: function render(data) {
    return /*#__PURE__*/_react["default"].createElement(_user["default"], {
      userInfo: data.userInfo
    });
  }
}, {
  title: (0, _getLocale.getLocale)("OKR_MyO_RiskProgress"),
  width: "12%",
  render: function render(data) {
    return /*#__PURE__*/_react["default"].createElement(_progressAndRisk["default"], {
      status: data.status,
      progress: data.progress,
      riskLevel: data.riskLevel
    });
  }
}, {
  title: (0, _getLocale.getLocale)("Pro_detail_Recentupdated"),
  width: "12%",
  render: function render(data) {
    return /*#__PURE__*/_react["default"].createElement(_updateTime["default"], {
      updateTime: data.updateTime
    });
  }
}, {
  title: (0, _getLocale.getLocale)("Mod_Operation"),
  width: "7%",
  render: function render(data) {
    return /*#__PURE__*/_react["default"].createElement(_link["default"], {
      onClick: data.behave
    }, data.typeName === (0, _getLocale.getLocale)("HP_Updated") ? (0, _getLocale.getLocale)("Mod_Checkdetails") : (0, _getLocale.getLocale)("OKR_OKRW_Gotoupdate"));
  }
}];
exports.okrUpdateColumns = okrUpdateColumns;
var myOkrColumns = [{
  title: (0, _getLocale.getLocale)("Mod_Name"),
  width: "38%",
  render: function render(data) {
    return /*#__PURE__*/_react["default"].createElement(_okrName["default"], {
      onClick: data.behave,
      type: data.okrType
    }, data.okrName);
  }
}, {
  title: (0, _getLocale.getLocale)("Mod_period"),
  width: "19%",
  render: function render(data) {
    return /*#__PURE__*/_react["default"].createElement(_cycleTime["default"], null, data.cycleTime);
  }
}, {
  title: (0, _getLocale.getLocale)("Mod_Owner"),
  width: "12%",
  render: function render(data) {
    return /*#__PURE__*/_react["default"].createElement(_user["default"], {
      userInfo: data.userInfo
    });
  }
}, {
  title: (0, _getLocale.getLocale)("OKR_MyO_RiskProgress"),
  width: "12%",
  render: function render(data) {
    return /*#__PURE__*/_react["default"].createElement(_progressAndRisk["default"], {
      status: data.status,
      progress: data.progress,
      riskLevel: data.riskLevel
    });
  }
}, {
  title: (0, _getLocale.getLocale)("Pro_detail_Recentupdated"),
  width: "12%",
  render: function render(data) {
    return /*#__PURE__*/_react["default"].createElement(_updateTime["default"], {
      updateTime: data.updateTime
    });
  }
}, {
  title: (0, _getLocale.getLocale)("OKR_MyO_CreationDate"),
  width: "7%",
  render: function render(data) {
    return /*#__PURE__*/_react["default"].createElement(_createDate["default"], {
      createDate: data.createDate
    });
  }
}];
exports.myOkrColumns = myOkrColumns;