Chosen Solution

Hello, I accidentally broke off a part that a wire connects to on the power supply. It connects in a spot labeled CN3. It’s black, very small, and has 2 pins. Is this repairable by finding that one part and soldering it on or do I need a new power supply? The larger board

Zoomed in where the part was, box CN3

Where the connection is

Two angles of the broken part

how about try to solder that part or find some tiny wire to make as extension, then solder it to the board and part that was been remove but make sure you properly attach the exact connection for both end.