; or (B) the Secretary determines that notification to the establishment owner or operator in advance of an inspection is needed to protect the public health. (2) (A) With respect to all inspections described in paragraph (1), the Secretary shall attempt to minimize the time between advance notification to an establishment owner or operator and the conduct of a surveillance inspection. (B) If the Secretary determines that notification to an owner or operator of a foreign establishment of an inspection in advance of a surveillance inspection pursuant to paragraph (1)(B) is needed, the Secretary shall provide such notification only as far in advance as is needed to protect the public health. (3) If an establishment is located in a country that, on or after the date of enactment of this subsection, enacts a law that prevents the Secretary from carrying out inspections as described in this subsection, the manufacturer shall agree to waive any right to enforce any advanced-notice requirement pursuant to such a law, to the extent expressly permitted under applicable local law. If the manufacturer does not agree to such a waiver, the manufacturer shall be deemed to have refused to permit entry or inspection in violation of section 301(f). (4) The requirement of paragraph (1) shall not apply to preapproval, prelicensure, or for-cause inspections. .