package records

import "strings"

// isBlankValue is the standard blank check used across the records package:
// nil, a whitespace-only string, or empty bytes are blank; every other
// typed value (including 0, false) is non-blank. Lifted out of the
// deleted quote_create.go into its own file so the helper survives the
// Quote/Order cutover.
func isBlankValue(v interface{}) bool {
	if v == nil {
		return true
	}
	switch val := v.(type) {
	case string:
		return strings.TrimSpace(val) == ""
	case []byte:
		return strings.TrimSpace(string(val)) == ""
	default:
		return false
	}
}
