@wargeron
The problem is that you can’t buy these miniature sockets with wires already soldered on.
They only come as one-sided parts designed for attaching (with soldered pads) to a pcb.
You would need a microscope soldering station to work at this miniature size.
The power supply socket is a 2 pin Molex Micro-Fit 3 plug.
It is also used in A1418 21” iMacs, and the iMac Pro, both of which have sockets with wires attached.
The multicoloured wire 13 pin plug looks like a 13 pin Molex Pico-Lock 1.5mm pitch plug.
You can stick the pins of a JST ZH 1.5mm pcb socket into this plug to connect to it.
This pic is the DIY connection to an iMac backlight cable plug, using a JST ZH socket pushed into the iMac plug, and a 12 pin plug with wires connected to the socket:
The other smaller 1mm pitch plugs are so far unidentified as they don’t appear to be in the Molex catalogue.
There are alternatives with the same pitch, but not quite the right form factor to be a proper match.
The 1mm pitch equivalent is JST SH, which is sometimes known as STEMMA QT/Qwiic in Arduino catalogues.
There are other long forums here devoted to converting A1312 or later 5K A1419 iMacs.
From @SubDriver (24 May 2025) Converting iMac 5K Retina Display to a Standalone 5K Display I believe the details in the table below are accurate, but I am not 100% certain. I tried my best to use reputable sources (datasheets, etc.) for the info in the table, but some information comes from...
forums.macrumors.com
Also is also another thread dealing with using the USB webcam and the SD card wiring.