I think the bottom is part of the ignition system, top I'm not sure. Should be a part number on it, find it and google it or follow the wires to narrow it down.
It looks like a forklift ran into the side of the box, is there any damage to the tent? You might be better off taking it out of that trashed box and taking more pictures. Seems like a good deal if there's no damage.
Just my 2 cents and a free bump