Hi,
At a guess, but don't take my word for any of it: The blue cube is a relay or a transformer? The connectors behind it are for you to connect phase and neutral or a DC input? The metal tab sticking out of the heatshrink (mmm, safe design if that's a "hot" tab) that comes from the relay/transformer board may be a power transistor or similar? Black wire is ground, red is VCC (12V?). I can't imagine what the white wire is for, it says "in" on the little relay/transformer board, and it's connected to the yellow wire too, maybe it's a MOSFET gate connection?
Notice all the question marks... I could be very wrong about everything.
Have a look at the other side of the blue cube, the PCB may have written what needs to be connected there in the screw terminal block (e.g. phase and neutral or another DC voltage), and read what it says on the top of the relay/transformer, from that info. you should be able to locate manufacturer and part to know what it is.