Are these pigtails inside the panel and outside a junction box allowed?
Wire-splicing and pigtailing within a loadcenter cabinet (panel enclosure) is expressly permitted by NEC 312.8 (A), and is quite safe (provided the splices are made up properly, of course):