If you can dry it out quick you might can save the floor from rot. I have seen plenty of wet floors get dried out and be fine. Look at the housing construction industry at how they get rained on while framing the house, the floor and studs all get wet, but if they dry they will not rot. This is a lot to ask, however, when you have carpet and vinyl flooring covering the wet and many things bolted to the wood, and the water likely soaked up the walls...
Everything has to be taken off the wood for it to dry.
Do mold prevention treatments.
With carpet, maybe you can use a good wet vac and pull the water out and blow hot air to dry it, maybe.
If you had to try to save it I would try that first, but if it is a warranty issue then send it back quick.