If Element of a solar panel is shaded, that string will need to eat electric power, reversing the stream of electrical energy. Diodes Within the junction box protect against that from happening.
These connections https://tessodch956661.blog-a-story.com/10418009/the-single-best-strategy-to-use-for-best-pv-junction-box-manufacturer