import { colors } from './colors';
export const getEllipseColor = (theme, color, variant = 'main') => {
    var _a, _b, _c, _d, _e, _f;
    if (!theme) {
        return '';
    }
    let ellipseColor = theme.palette.primary[variant];
    switch (color) {
        case 'action':
            ellipseColor = (_a = theme.palette.action) === null || _a === void 0 ? void 0 : _a[variant];
            break;
        case 'sequence':
            ellipseColor = (_b = theme.palette.sequence) === null || _b === void 0 ? void 0 : _b[variant];
            break;
        case 'trigger':
            ellipseColor = (_c = theme.palette.trigger) === null || _c === void 0 ? void 0 : _c[variant];
            break;
        case 'condition':
            ellipseColor = (_d = theme.palette.condition) === null || _d === void 0 ? void 0 : _d[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 = (_e = theme.palette.text) === null || _e === void 0 ? void 0 : _e.primary;
            break;
        case 'textSecondary':
            ellipseColor = (_f = theme.palette.text) === null || _f === void 0 ? void 0 : _f.secondary;
            break;
        default:
            ellipseColor = theme.palette.secondary[variant];
            break;
    }
    return ellipseColor;
};
export const getCustomHintColor = (color) => {
    // if (!theme) {
    //   return '';
    // }
    let customHintColor = colors.unity.info.hint;
    switch (color) {
        // case 'primary':
        //   customHintColor = theme.palette.primary.hint;
        //   break;
        // case 'secondary':
        //   customHintColor = theme.palette.secondary.hint;
        //   break;
        case 'info':
            customHintColor = colors.unity.info.hint;
            break;
        case 'warning':
            customHintColor = colors.unity.warning.hint;
            break;
        case 'error':
            customHintColor = colors.unity.error.hint;
            break;
        case 'success':
            customHintColor = colors.unity.success.hint;
            break;
        default:
            customHintColor = colors.unity.info.hint;
    }
    return customHintColor;
};
export const getCategoryColor = (color) => {
    // if (!theme) {
    //   return '';
    // }
    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;
};
//# sourceMappingURL=colorConverter.js.map