/**
 * Shared utility for computing row background colors based on data_ok state.
 * Used by edit_view, summary_view, and approval_view for consistent row highlighting.
 */
/**
 * Get the background color class for a row based on its data_ok state.
 * Returns empty string if the setting is 'none' or data_ok is an unrecognized value.
 */
export function get_row_color_for_data_ok(data_ok, settings) {
    if (data_ok === true || data_ok === 'ok') {
        return settings.data_ok_row_color !== 'none' ? settings.data_ok_row_color : '';
    }
    if (data_ok === 'pending') {
        return settings.pending_row_color !== 'none' ? settings.pending_row_color : '';
    }
    if (data_ok === false || data_ok === 'not_ok' || data_ok === undefined) {
        return settings.data_not_ok_row_color !== 'none' ? settings.data_not_ok_row_color : '';
    }
    return '';
}
//# sourceMappingURL=row_color_utils.js.map