import{gI as F}from"./index-9PRMimni.js";import{t as f}from"./toPairs-DMqubSQo.js";function s(r,o){if(r==2){if(o>=0&&o<=3)return{color:"#4FAC5B",textColor:"#FFFFFF",borderColor:"#4FAC5B"};if(o>=4&&o<=12)return{color:"#FFFE56",textColor:"#000000",borderColor:"#FFFE56"};if(o>=13)return{color:"#EC3324",textColor:"#FFFFFF",borderColor:"#EC3324"}}else{if(o>=0&&o<=1)return{color:"#00B050",textColor:"#ffffff",borderColor:"#00B050"};if(o>=2&&o<=3)return{color:"#538DD5",textColor:"#ffffff",borderColor:"#538DD5"};if(o>=4&&o<=6)return{color:"#FFFF00",textColor:"#000000",borderColor:"#FFFF00"};if(o>=8&&o<=12)return{color:"#FF0000",textColor:"#ffffff",borderColor:"#FF0000"}}return{color:"#CCCCCC",textColor:"#000000"}}function n(r){return r=r.replace("#",""),r.length===3&&(r=r.split("").map(o=>o+o).join("")),r.toUpperCase()}function t(r,o){const e=n(r),C=Math.round(Math.max(0,Math.min(1,o))*255).toString(16).padStart(2,"0").toUpperCase();return`#${e}${C}`}const c=Object.fromEntries(F(f({0:"#E36BB5",2:"#e3db40",3:"#9463E2",4:"#1DCCB7",5:"#2180F1",6:"#E2792E",9:"#D24C4C",10:"#3FC33F"}),([r,o])=>[Number(r),{color:t(o,.12),borderColor:t(o,.5),textColor:t(o,1)}]));export{s as getRiskColor,c as tagColorEnum};
