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 zzaeo implements zzaek { private final String zza; private final String zzb = Preconditions.checkNotEmpty("phone"); private final String zzc; private final String zzd; private final String zze; private final String zzf; private zzacr zzg; private zzaeo(String str, String str2, String str3, String str4, String str5, String str6, String str7) { this.zza = Preconditions.checkNotEmpty(str); this.zzc = str3; this.zzd = str4; this.zze = str5; this.zzf = str6; } public static zzaeo zzb(String str, String str2, String str3, String str4, String str5, String str6) { Preconditions.checkNotEmpty(str2); return new zzaeo(str, "phone", str2, str3, str4, str5, null); } @Override // com.google.android.gms.internal.p002firebaseauthapi.zzabc public final String zza() { JSONObject jSONObject = new JSONObject(); jSONObject.put("idToken", this.zza); jSONObject.put("mfaProvider", 1); if (this.zzc != null) { JSONObject jSONObject2 = new JSONObject(); jSONObject2.put("phoneNumber", this.zzc); if (!TextUtils.isEmpty(this.zze)) { jSONObject2.put("recaptchaToken", this.zze); } if (!TextUtils.isEmpty(this.zzf)) { jSONObject2.put("playIntegrityToken", this.zzf); } zzacr zzacrVar = this.zzg; if (zzacrVar != null) { jSONObject2.put("autoRetrievalInfo", zzacrVar.zza()); } jSONObject.put("phoneEnrollmentInfo", jSONObject2); } if (!TextUtils.isEmpty(null)) { jSONObject.put("tenantId", (Object) null); } return jSONObject.toString(); } public final String zzc() { return this.zzd; } public final void zzd(zzacr zzacrVar) { this.zzg = zzacrVar; } }