; applicability (1) Effective date The amendments made by this section shall take effect on October 1, 2018. (2) Invalidity of certain petitions and applications (A) In general No person may file, and the Secretary of Homeland Security and the Secretary of State may not accept, adjudicate, or approve any petition under section 204 of the Immigration and Nationality Act ( 8 U.S.C. 1154 ) filed on or after the date of enactment of this Act seeking classification of an alien under section 201(b)(2)(A)(i) with respect to a parent of a United States citizen, or under section 203(a)(1), (2)(B), (3) or (4) of such Act ( 8 U.S.C. 1151(b)(2)(A)(i) , 1153(a)(1), (2)(B), (3), or (4)). Any application for adjustment of status or an immigrant visa based on such a petition shall be invalid. (B) Pending petitions Neither the Secretary of Homeland Security nor the Secretary of State may adjudicate or approve any petition under section 204 of the Immigration and Nationality Act ( 8 U.S.C. 1154 ) pending as of the date of enactment of this Act seeking classification of an alien under section 201(b)(2)(A)(i) with respect to a parent of a United States citizen, or under section 203(a)(1), (2)(B), (3) or (4) of such Act ( 8 U.S.C. 1151(b)(2)(A)(i) , 1153(a)(1), (2)(B), (3), or (4)). Any application for adjustment of status or an immigrant visa based on such a petition shall be invalid. (3) Applicability to waitlisted applicants (A) In general Notwithstanding the amendments made by this section, an alien with regard to whom a petition or application for status under paragraph (1), (2)(B), (3) or (4) of section 203(a) of the Immigration and Nationality Act ( 8 U.S.C. 1153(a) ), as in effect on September 30, 2018, was approved prior to the date of the enactment of this Act, may be issued a visa pursuant to that paragraph in accordance with the availability of visas under subparagraph (B). (B) Availability of visas Visas may be issued to beneficiaries of approved petitions under each category described in subparagraph (A), but only until