I am wondering if this is hooked up correctly. Purchased it this way with no paperwork or diagram?

the ballast is getting Hot as soon as key is switched on.

IMG_4483.JPGIMG_4485.JPG