Hoping that maybe someone in the community may have insight on the following situation: We have ...

Hoping that maybe someone in the community may have insight on the following situation:

We have a white 2020 Lexus NX400h with 13k miles that is leased with a buyout value of approximately $22k.

It has just been in an accident but the airbags DID NOT deploy. There is however extensive exterior body damage and unknown frame damage at this time. The interior is very clean.  The car’s repair bills stand at 17k with some additional damage discovered and being submitted to insurance.  As of now, the car has NOT been totaled by the insurance company.

The current plan is to buy out the lease and possibly turn around and sell the vehicle.  Market value is showing this model (the base which is pretty loaded) with low miles in the 38-42k range.

The question is:

Assuming the car comes out of the shop looking great, how much value can we expect to loose with the accident on the record?