; and (B) is signed by the applicant, under oath. (2) Notice The individual named in an application for an extreme risk protection order as described in paragraph (1) shall be given written notice of the application and an opportunity to be heard on the matter in accordance with this section. (3) Issuance of extreme risk protection orders (A) Hearing (i) In general Upon receipt of an application described in paragraph (1), the court shall order a hearing to be held not later than 30 days after the date of such application. (ii) Determination If the court finds by a preponderance of the evidence that the respondent poses a danger of causing harm to himself, herself, or others by having access to a firearm, the court may issue an extreme risk protection order. (B) Length of extreme risk protection order An extreme risk protection order shall be in effect for a period not to exceed 1 year, unless renewed. (4) Ex parte extreme risk protection orders (A) In general Upon receipt of an application described in paragraph (1), the court may issue an ex parte extreme risk protection order before conducting the hearing required under paragraph (3), if— (i) the application for an extreme risk protection order alleges that the respondent poses a danger of causing harm to himself, herself, or others in the near future by having access to a firearm