2 weeks will probably be fine, but 3 weeks would be better IMO.
i've kegged a couple hefes after 9-10 days in primary with mixed results.
hefe yeast generally ferments out faster than other yeasts and you want to have some yeast in suspension in the bottles. they taste better fresher.
Ideally, I like to leave mine in the primary for at least 2-3 weeks and then leave in the bottle for 4-6 weeks. Always better not to rush things.
Hope it turns out great!