import { colors } from "./colors.mjs";
//#region src/utilities/style/colorConverter.js
const getEllipseColor = (theme, color, variant = "main") => {
	if (!theme) return "";
	let ellipseColor = theme.palette.primary[variant];
	switch (color) {
		case "action":
			ellipseColor = theme.palette.action?.[variant];
			break;
		case "sequence":
			ellipseColor = theme.palette.sequence?.[variant];
			break;
		case "trigger":
			ellipseColor = theme.palette.trigger?.[variant];
			break;
		case "condition":
			ellipseColor = theme.palette.condition?.[variant];
			break;
		case "primary":
			ellipseColor = theme.palette.primary[variant];
			break;
		case "secondary":
			ellipseColor = theme.palette.secondary[variant];
			break;
		case "info":
			ellipseColor = theme.palette.info[variant];
			break;
		case "warning":
			ellipseColor = theme.palette.warning[variant];
			break;
		case "error":
			ellipseColor = theme.palette.error[variant];
			break;
		case "success":
			ellipseColor = theme.palette.success[variant];
			break;
		case "textPrimary":
			ellipseColor = theme.palette.text?.primary;
			break;
		case "textSecondary":
			ellipseColor = theme.palette.text?.secondary;
			break;
		default:
			ellipseColor = theme.palette.secondary[variant];
			break;
	}
	return ellipseColor;
};
const getCategoryColor = (color) => {
	let highlightColor = colors.unity.info.hint;
	switch (color) {
		case "info":
			highlightColor = colors.unity.info.hint;
			break;
		case "warning":
			highlightColor = colors.unity.warning.hint;
			break;
		case "error":
			highlightColor = colors.unity.error.hint;
			break;
		case "four":
			highlightColor = colors.categoryColors.four.main;
			break;
		case "five":
			highlightColor = colors.categoryColors.five.main;
			break;
		case "six":
			highlightColor = colors.categoryColors.six.main;
			break;
		default: highlightColor = colors.unity.info.hint;
	}
	return highlightColor;
};
//#endregion
export { getCategoryColor, getEllipseColor };

//# sourceMappingURL=colorConverter.mjs.map