package com.google.android.gms.internal.p002firebaseauthapi; import android.text.TextUtils; import com.google.android.gms.common.internal.Preconditions; import org.json.JSONObject; /* loaded from: classes.dex */ public final class zzaem implements zzabc { private final String zza = Preconditions.checkNotEmpty("phone"); private final String zzb; private final String zzc; private final String zzd; private final String zze; private final String zzf; private final String zzg; private zzacr zzh; private zzaem(String str, String str2, String str3, String str4, String str5, String str6, String str7) { this.zzb = Preconditions.checkNotEmpty(str2); this.zzc = Preconditions.checkNotEmpty(str3); this.zze = str4; this.zzd = str5; this.zzf = str6; this.zzg = str7; } public static zzaem zzb(String str, String str2, String str3, String str4, String str5, String str6) { Preconditions.checkNotEmpty(str3); return new zzaem("phone", str, str2, str3, str4, str5, str6); } @Override // com.google.android.gms.internal.p002firebaseauthapi.zzabc public final String zza() { JSONObject jSONObject = new JSONObject(); jSONObject.put("mfaPendingCredential", this.zzb); jSONObject.put("mfaEnrollmentId", this.zzc); this.zza.hashCode(); jSONObject.put("mfaProvider", 1); if (this.zze != null) { JSONObject jSONObject2 = new JSONObject(); jSONObject2.put("phoneNumber", this.zze); if (!TextUtils.isEmpty(this.zzf)) { jSONObject2.put("recaptchaToken", this.zzf); } if (!TextUtils.isEmpty(this.zzg)) { jSONObject2.put("playIntegrityToken", this.zzg); } zzacr zzacrVar = this.zzh; if (zzacrVar != null) { jSONObject2.put("autoRetrievalInfo", zzacrVar.zza()); } jSONObject.put("phoneSignInInfo", jSONObject2); } return jSONObject.toString(); } public final String zzc() { return this.zzd; } public final void zzd(zzacr zzacrVar) { this.zzh = zzacrVar; } }