To "sell themselves" is a metaphor for committing completely to do that which was evil. AT: "committed themselves to do things that Yahweh said were evil" (See: [[rc://en/ta/man/translate/figs-metaphor]])
"Sight" is metonymy for being within the attention of Yahweh so he no longer cared for them. AT: "removed them from his attention" (See: [[rc://en/ta/man/translate/figs-metonymy]])