export const getEllipseColor = (theme, color) => {
    var _a, _b, _c, _d, _e, _f, _g, _h;
    if (!theme) {
        return '';
    }
    let ellipseColor = theme.palette.primary.main;
    switch (color) {
        case 'action':
            ellipseColor = (_b = (_a = theme.palette.systemIcon) === null || _a === void 0 ? void 0 : _a.action) === null || _b === void 0 ? void 0 : _b.main;
            break;
        case 'sequence':
            ellipseColor = (_d = (_c = theme.palette.systemIcon) === null || _c === void 0 ? void 0 : _c.sequence) === null || _d === void 0 ? void 0 : _d.main;
            break;
        case 'trigger':
            ellipseColor = (_f = (_e = theme.palette.systemIcon) === null || _e === void 0 ? void 0 : _e.trigger) === null || _f === void 0 ? void 0 : _f.main;
            break;
        case 'condition':
            ellipseColor = (_h = (_g = theme.palette.systemIcon) === null || _g === void 0 ? void 0 : _g.condition) === null || _h === void 0 ? void 0 : _h.main;
            break;
        case 'primary':
            ellipseColor = theme.palette.primary.main;
            break;
        case 'secondary':
            ellipseColor = theme.palette.secondary.main;
            break;
        case 'info':
            ellipseColor = theme.palette.info.main;
            break;
        case 'warning':
            ellipseColor = theme.palette.warning.main;
            break;
        case 'error':
            ellipseColor = theme.palette.error.main;
            break;
        case 'success':
            ellipseColor = theme.palette.success.main;
            break;
        default:
            ellipseColor = theme.palette.secondary.main;
            break;
    }
    return ellipseColor;
};
export const getEllipseHintColor = (theme, color) => {
    var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
    if (!theme) {
        return '';
    }
    let ellipseHintColor = theme.palette.primary.main;
    switch (color) {
        case 'action':
            ellipseHintColor = (_b = (_a = theme.palette.systemIcon) === null || _a === void 0 ? void 0 : _a.action) === null || _b === void 0 ? void 0 : _b.hint;
            break;
        case 'sequence':
            ellipseHintColor = (_d = (_c = theme.palette.systemIcon) === null || _c === void 0 ? void 0 : _c.sequence) === null || _d === void 0 ? void 0 : _d.hint;
            break;
        case 'trigger':
            ellipseHintColor = (_f = (_e = theme.palette.systemIcon) === null || _e === void 0 ? void 0 : _e.trigger) === null || _f === void 0 ? void 0 : _f.hint;
            break;
        case 'condition':
            ellipseHintColor = (_h = (_g = theme.palette.systemIcon) === null || _g === void 0 ? void 0 : _g.condition) === null || _h === void 0 ? void 0 : _h.hint;
            break;
        case 'primary':
            ellipseHintColor = theme.palette.primary.hint;
            break;
        case 'secondary':
            ellipseHintColor = theme.palette.secondary.hint;
            break;
        case 'info':
            ellipseHintColor = (_k = (_j = theme.palette.unity) === null || _j === void 0 ? void 0 : _j.info) === null || _k === void 0 ? void 0 : _k.hint;
            break;
        case 'warning':
            ellipseHintColor = (_m = (_l = theme.palette.unity) === null || _l === void 0 ? void 0 : _l.warning) === null || _m === void 0 ? void 0 : _m.hint;
            break;
        case 'error':
            ellipseHintColor = (_p = (_o = theme.palette.unity) === null || _o === void 0 ? void 0 : _o.error) === null || _p === void 0 ? void 0 : _p.hint;
            break;
        case 'success':
            ellipseHintColor = (_r = (_q = theme.palette.unity) === null || _q === void 0 ? void 0 : _q.success) === null || _r === void 0 ? void 0 : _r.hint;
            break;
        default:
            ellipseHintColor = theme.palette.common.white;
            break;
    }
    return ellipseHintColor;
};
//# sourceMappingURL=styleUtils.js.map