Yes, the second circuit does the same thing as the top circuit although it has components, it has the advantage of being able to use an off the shelf inductor so if you're getting 1000s cheaply made in China, it's the best solution.
The first circuit requires you to wind a transformer which is more labour intensive so is not an option unless you're either only making a few or are making millions so it's worth getting a machine to do it. You might be able to use a small ready made common mode choke but inductors are probably cheaper.
There's lots of information, on the Internet, check Google, YouTube, Wikipedia etc.