Pop then the smell of burnt electrical

Dishwasher was running great then a pop then the smell of burnt electrical, lights flashed. then the lights went off

Your model number is incomplete. It should have about 6 more digits.

You have to locate what popped.
Probably in the door so you will have to remove the inner door panel and investigate.