"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var getProcessColor = function getProcessColor(level, type, status) {
  var cancelColor = {
    linearStartColor: "#e1e5ec",
    linearEndColor: "#bfc7d5",
    backgroundColor: "rgba(40, 121, 255, 0.11)"
  };

  if (status == 2) {
    return cancelColor[type];
  }

  if (status == 4) {
    return cancelColor[type];
  }

  var processColor = {
    1: {
      riskLevel: 1,
      linearStartColor: "#9fbfff",
      linearEndColor: "#2879ff",
      backgroundColor: "rgba(40, 121, 255, 0.11)"
    },
    2: {
      riskLevel: 2,
      linearStartColor: "#9fbfff",
      linearEndColor: "#2879ff",
      backgroundColor: "rgba(40, 121, 255, 0.11)"
    },
    3: {
      riskLevel: 3,
      linearStartColor: "#FFA5A5",
      linearEndColor: "#F05E5E",
      backgroundColor: "rgba(222, 89, 89, 0.1)"
    },
    4: {
      riskLevel: 4,
      linearStartColor: "#93eed2",
      linearEndColor: "#5ad8a6",
      backgroundColor: "rgba(40, 121, 255, 0.11)"
    },
    5: {
      riskLevel: 5,
      linearStartColor: "#93eed2",
      linearEndColor: "#5ad8a6",
      backgroundColor: "rgba(40, 121, 255, 0.11)"
    }
  };
  var color = processColor["".concat(level)];
  if (level == 0) color = processColor["1"];
  if (!color) return {};
  return color[type];
};

var _default = getProcessColor;
exports["default"] = _default;