That is 100% the responsibility of the dealership. They should have cargo insurance for everything they haul.
If necessary, talk to the general manager and DEMAND they repair the machine to it's "as purchased" condition.
Some years back, I bought a Cat D8N from a reputable used equipment dealer. While being delivered, their truck hit a low bridge. They paid for a brand new enclosed cab and fuel tank to be installed at the local Cat dealership. Never a question as to who was responsible.