Blowing voltage regulators

Purple one I believe is for ac. Download a factory schematic if you dont have one.
It very possibly could have grounded on the case. I also have no clue what this third wire is supposed to connect to.

View attachment 1715458222