"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../constants/accuracy.js");function r(e,r,t){return e>=r?"high":e>=t?"moderate":"low"}exports.getColorBySeverity=function(t,n,a,o){var i;switch(t&&(i=n&&a?r(t.distance_to_plan,n,a):t.severity),i){case"low":return e.COLOR.green;case"moderate":return o?e.COLOR.orange:e.COLOR.yellow;case"high":return e.COLOR.red;default:return e.COLOR.white}},exports.getSeverity=r,exports.purifyPlanName=function(e){var r=e.indexOf(", Updated Target");return-1!==r?e.slice(0,r):e};
//# sourceMappingURL=accuracy.js.map
