Rewiring gem e580 for different charger

I have agem e580 48v cart that the charger is shot. How do I rewire it to take a diferent charger?

Remove old charger noting where it terminates and wiring new charger in same place? What am I missing? Admittedly I’ve not seen a 48V GEM so might be more complicated than that.

There are only 4 wires. The power wires and interlock wires.