mapState

fun mapState(countryCode: String, stateInput: String): String

Normalize a free-text state to its canonical dropdown value.

Matches case-insensitively against either the option value or label. Returns the input unchanged when no list exists or no match is found, so callers can pass arbitrary user input through.