"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getApproveStatusTextMap = exports.ApproveStatusColor = exports.ApproveStatus = void 0;

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

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var ApproveStatus;
exports.ApproveStatus = ApproveStatus;

(function (ApproveStatus) {
  ApproveStatus[ApproveStatus["None"] = 0] = "None";
  ApproveStatus[ApproveStatus["WaitCommit"] = 6] = "WaitCommit";
  ApproveStatus[ApproveStatus["Rejected"] = 3] = "Rejected";
  ApproveStatus[ApproveStatus["UnderApproval"] = 1] = "UnderApproval";
  ApproveStatus[ApproveStatus["ApproveAgree"] = 2] = "ApproveAgree";
  ApproveStatus[ApproveStatus["WithDraw"] = 4] = "WithDraw";
  ApproveStatus[ApproveStatus["Done"] = 5] = "Done";
})(ApproveStatus || (exports.ApproveStatus = ApproveStatus = {}));

var getApproveStatusTextMap = function getApproveStatusTextMap(status) {
  var _ApproveStatusTextMap;

  var ApproveStatusTextMap = (_ApproveStatusTextMap = {}, _defineProperty(_ApproveStatusTextMap, ApproveStatus.WaitCommit, (0, _getLocale.getLocale)('OKR_MyO_Tobesubmitted')), _defineProperty(_ApproveStatusTextMap, ApproveStatus.Rejected, (0, _getLocale.getLocale)('OKR_MyO_Tobesubmitted')), _defineProperty(_ApproveStatusTextMap, ApproveStatus.UnderApproval, (0, _getLocale.getLocale)('Pro_detail_Approval')), _defineProperty(_ApproveStatusTextMap, ApproveStatus.ApproveAgree, ''), _defineProperty(_ApproveStatusTextMap, ApproveStatus.WithDraw, ''), _defineProperty(_ApproveStatusTextMap, ApproveStatus.None, ''), _defineProperty(_ApproveStatusTextMap, ApproveStatus.Done, ''), _ApproveStatusTextMap);
  return ApproveStatusTextMap[status];
};

exports.getApproveStatusTextMap = getApproveStatusTextMap;

var ApproveStatusColor = function ApproveStatusColor(status) {
  var _ApprovalStatusColorM;

  var ApprovalStatusColorMap = (_ApprovalStatusColorM = {}, _defineProperty(_ApprovalStatusColorM, ApproveStatus.WaitCommit, {
    color: '#F0A326',
    bgColor: 'rgba(240, 163, 38, 0.1)'
  }), _defineProperty(_ApprovalStatusColorM, ApproveStatus.Rejected, {
    color: '#F0A326',
    bgColor: 'rgba(240, 163, 38, 0.1)'
  }), _defineProperty(_ApprovalStatusColorM, ApproveStatus.UnderApproval, {
    color: '#2879FF',
    bgColor: 'rgba(40, 121, 255, 0.1)'
  }), _defineProperty(_ApprovalStatusColorM, ApproveStatus.ApproveAgree, {
    color: '#ffffff',
    bgColor: '#ffffff'
  }), _ApprovalStatusColorM);
  return ApprovalStatusColorMap[status];
};

exports.ApproveStatusColor = ApproveStatusColor;