HP USB-C charger repair

I have a HP USB-C charger , with a ruined USB socket. I thought I would buy another socket from Digikey and solder it to the wires. Problem is I don't know about the wiring. There are 3 wires inside the cable one white, black , blue(thinner) . I looked...