; and (ii) is signed by the applicant, under oath. (B) Notice and due process The individual named in a petition for an extreme risk protection order as described in subparagraph (A) shall be given written notice of the petition and an opportunity to be heard on the matter in accordance with this paragraph. (C) Issuance of extreme risk protection orders (i) Hearing (I) In general Upon receipt of a petition described in subparagraph (A) or request of an individual named in such a petition, the court shall order a hearing to be held within a reasonable time, and not later than 30 days after the date of the petition or request. (II) Determination If the court finds at the hearing ordered under subclause (I), by a preponderance of the evidence or according to a higher evidentiary standard established by the State or Indian Tribe, that the respondent poses a danger of causing harm to self or others by having access to a firearm, the court may issue an extreme risk protection order. (ii) Duration of extreme risk protection order An extreme risk protection order shall be in effect— (I) until an order terminating or superseding the extreme risk protection order is issued; or (II) for a set period of time. (D) Ex parte extreme risk protection orders (i) In general Upon receipt of a petition described in subparagraph (A), the court may issue an ex parte extreme risk protection order, if— (I) the petition for an extreme risk protection order alleges that the respondent poses a danger of causing harm to self or others by having access to a firearm