"use strict";

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

var getProcessColor = function getProcessColor(level, type, status) {
  var stopColor = {
    linearStartColor: "#e1e5ec",
    linearEndColor: "#bfc7d5",
    backgroundColor: "#f0f2f5"
  };

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

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

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