Plug & Play Portable Power Systems

How does a plug-and-play inverter work?

How do these systems work? The device is constantly plugged into a power outlet, so the built-in charger charges the batteries as long as there is mains power and keeps them fully charged until a power outage.