Before giving directions under subsection (3), the court must give the Crown, the special advocate, and any other party the opportunity to make submissions in relation to the application, the proposed direction, and the proposed terms and conditions.