"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getObjTypeMapText = exports.PlanReportType = exports.PlanReportTrackActionNameMap = exports.OkrRiskMapping = exports.ObjectType = exports.EStatusStatus2ClassType = exports.EShareType = exports.EObjType = exports.EFeedType = 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 OkrRiskMapping = {
  0: "normal",
  // 正常推进
  1: "normal",
  // 正常推进
  2: "risk",
  // 注意风险
  3: "delay",
  // 已有风险
  4: "end",
  // kr及o全都完成
  5: "delay",
  // 延期完成
  6: "normal" // 正常推进

};
exports.OkrRiskMapping = OkrRiskMapping;
var EFeedType;
exports.EFeedType = EFeedType;

(function (EFeedType) {
  EFeedType[EFeedType["Unknow"] = 0] = "Unknow";
  EFeedType[EFeedType["Share"] = 1] = "Share";
  EFeedType[EFeedType["Plan"] = 4] = "Plan";
  EFeedType[EFeedType["Report"] = 5] = "Report";
  EFeedType[EFeedType["Assessment"] = 7] = "Assessment";
  EFeedType[EFeedType["Project"] = 10] = "Project";
  EFeedType[EFeedType["Reward"] = 11] = "Reward";
  EFeedType[EFeedType["WorkHour"] = 13] = "WorkHour";
  EFeedType[EFeedType["Bless"] = 14] = "Bless";
  EFeedType[EFeedType["Kr"] = 15] = "Kr";
  EFeedType[EFeedType["MileStone"] = 16] = "MileStone";
  EFeedType[EFeedType["OKREStatistics"] = 17] = "OKREStatistics";
  EFeedType[EFeedType["Reply"] = 18] = "Reply";
  EFeedType[EFeedType["OkrCycle"] = 19] = "OkrCycle";
  EFeedType[EFeedType["Task"] = 20] = "Task";
  EFeedType[EFeedType["Progress"] = 21] = "Progress";
  EFeedType[EFeedType["Align"] = 22] = "Align";
  EFeedType[EFeedType["Relative"] = 23] = "Relative";
  EFeedType[EFeedType["Announcement"] = 24] = "Announcement";
  EFeedType[EFeedType["Signin"] = 80] = "Signin";
  EFeedType[EFeedType["O"] = 101] = "O";
  EFeedType[EFeedType["OKRsCommunication"] = 102] = "OKRsCommunication";
  EFeedType[EFeedType["Interview"] = 103] = "Interview";
  EFeedType[EFeedType["Discovery"] = 2] = "Discovery";
})(EFeedType || (exports.EFeedType = EFeedType = {}));

var EShareType;
exports.EShareType = EShareType;

(function (EShareType) {
  EShareType[EShareType["CommonShare"] = 0] = "CommonShare";
  EShareType[EShareType["ShareToDynamic"] = 1] = "ShareToDynamic";
  EShareType[EShareType["BiShare"] = 3] = "BiShare";
  EShareType[EShareType["InterviewShare"] = 5] = "InterviewShare";
})(EShareType || (exports.EShareType = EShareType = {}));

var EObjType;
exports.EObjType = EObjType;

(function (EObjType) {
  EObjType[EObjType["Project"] = 4] = "Project";
  EObjType[EObjType["Task"] = 7] = "Task";
  EObjType[EObjType["O"] = 62] = "O";
  EObjType[EObjType["Kr"] = 65] = "Kr";
  EObjType[EObjType["Assess"] = 23] = "Assess";
  EObjType[EObjType["MileStone"] = 27] = "MileStone";
  EObjType[EObjType["KanBan"] = 66] = "KanBan";
  EObjType[EObjType["Report"] = 8] = "Report";
})(EObjType || (exports.EObjType = EObjType = {}));

var getObjTypeMapText = function getObjTypeMapText(key) {
  var _data;

  var data = (_data = {}, _defineProperty(_data, EObjType.Project, (0, _getLocale.getLocale)("Menu_Title_Projects")), _defineProperty(_data, EObjType.Task, (0, _getLocale.getLocale)("Mod_Tasks")), _defineProperty(_data, EObjType.O, (0, _getLocale.getLocale)("Mod_Objective")), _defineProperty(_data, EObjType.Kr, (0, _getLocale.getLocale)("Mod_KeyResults")), _defineProperty(_data, EObjType.MileStone, (0, _getLocale.getLocale)("Pro_page_Plan_Milestone")), _defineProperty(_data, EObjType.KanBan, (0, _getLocale.getLocale)("Pro_page_V_Tab_Kanban")), _defineProperty(_data, EObjType.Report, "总结"), _data);
  return data[key];
};

exports.getObjTypeMapText = getObjTypeMapText;

var ObjectType = function ObjectType() {
  return {
    1: (0, _getLocale.getLocale)("Mod_sannouncement"),
    4: (0, _getLocale.getLocale)("Menu_Title_Projects"),
    5: (0, _getLocale.getLocale)("Mod_sPerformanceForm"),
    6: (0, _getLocale.getLocale)("Mod_sPerformanceGoals"),
    7: (0, _getLocale.getLocale)("Mod_stasks"),
    8: (0, _getLocale.getLocale)("Mod_sDailySummary"),
    10: (0, _getLocale.getLocale)("Feed_sFeed"),
    11: (0, _getLocale.getLocale)("Pro_page_Plan"),
    12: (0, _getLocale.getLocale)("Feed_OperationTasks"),
    62: (0, _getLocale.getLocale)("Mod_sobjective"),
    65: (0, _getLocale.getLocale)("Feed_Keyresults"),
    70: (0, _getLocale.getLocale)("OKR_MyO_KRP_Review"),
    79: (0, _getLocale.getLocale)("Mod_skeyprogress"),
    80: (0, _getLocale.getLocale)("Feed_sAnnouncement"),
    42: (0, _getLocale.getLocale)("OKR_MyO_E_Reward")
  };
};

exports.ObjectType = ObjectType;
var EStatusStatus2ClassType = {
  2: "tu-icon-finished",
  1: "tu-icon-running",
  4: "tu-icon-canceled",
  3: "tu-icon-deferred",
  6: "tu-icon-paused",
  0: "tu-icon-notstart",
  5: "tu-icon-weijieshou-right"
};
exports.EStatusStatus2ClassType = EStatusStatus2ClassType;
var PlanReportType = ["titaPlanReport", "titaPlanManagerReport", "TeamCompletionNotice"];
exports.PlanReportType = PlanReportType;
var PlanReportTrackActionNameMap = {
  titaPlanReport: "动态日报推送",
  titaPlanManagerReport: "动态日报推送-管理者",
  StaffPlanAnalysis: "动态日报推送-员工",
  TenantManagerAttentionAnalysis: "动态日报推送-管理者关注度分析",
  TeamCompletionAnalysis: "动态日报推送-团队完成度分析",
  TeamCompletionNotice: "动态日报推送-团队完成度通知"
};
exports.PlanReportTrackActionNameMap = PlanReportTrackActionNameMap;