Need to change usb port

Hi, my surface pro usb socket is fried, i guess. I need to change it but i cant decide which type of socket should i buy. There are 2 types of type a ome is curved legs and the other has something like connector itself. Any help will be appreciated

Thanks

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 1
crwdns2934285:0crwdne2934285:0