Please see the attached image for details. Thanks
-----
Edit 2022-09-16
thanks dagamma and Eric M for your comments - the mods community looks awesome, hopefully someday I'll get round to properly delving in there!
My beef is only that I find the current diagram to be misleading (or dare I say straight up wrong?) in that it implies that somehow the DC element somehow goes into the battery first before then being extracted. When in fact the electrical currents balance on the DC bus (Kirchhoff’s Current Law, if memory of my long ago school days serves me right?)