Between the inverter and the battery, that is most of the drivetrain. I guess you will find out if the motor is fried once the other parts are replaced. I have to admit, I would be clamoring for a new car.
2013 LEAF 'S' Model with QC & rear-view camera
Bought off-lease Jan 2017 from N. California
Two years in Colorado, now in NM
03/2018: 58 Ahr, 28k miles
11/2018: 56.16 Ahr, 30k miles
2018 Tesla Model 3 LR, Delivered 6/2018