what-the-bank/sources/com/google/android/gms/internal/gtm/zzmi.java

56 lines
2.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.gtm;
import android.net.Uri;
import com.google.android.gms.common.internal.Preconditions;
import java.util.Map;
/* loaded from: classes.dex */
public final class zzmi extends zzhb {
private final zzei zzary;
public zzmi(zzei zzeiVar) {
this.zzary = zzeiVar;
}
@Override // com.google.android.gms.internal.gtm.zzhb
protected final zzoa<?> zza(zzfl zzflVar, zzoa<?>... zzoaVarArr) {
boolean z = true;
Preconditions.checkArgument(true);
Preconditions.checkArgument(zzoaVarArr.length > 0);
zzoa<?> zzoaVar = zzoaVarArr[0];
Preconditions.checkArgument(!(zzoaVar instanceof zzog));
zzoa<?> zzoaVar2 = zzoaVarArr.length > 1 ? zzoaVarArr[1] : zzog.zzaum;
Preconditions.checkArgument(zzoaVar2 == zzog.zzaum || (zzoaVar2 instanceof zzoh));
zzoa<?> zzoaVar3 = zzoaVarArr.length > 2 ? zzoaVarArr[2] : zzog.zzaum;
if (zzoaVar3 != zzog.zzaum && (zzoaVar3 instanceof zzog)) {
z = false;
}
Preconditions.checkArgument(z);
Uri.Builder buildUpon = Uri.parse(zzha.zzd(zzoaVar)).buildUpon();
if (zzoaVar2 != zzog.zzaum) {
for (zzoa<?> zzoaVar4 : ((zzoh) zzoaVar2).value()) {
Preconditions.checkArgument(zzoaVar4 instanceof zzok);
for (Map.Entry<String, zzoa<?>> entry : ((zzok) zzoaVar4).value().entrySet()) {
buildUpon.appendQueryParameter(entry.getKey().toString(), zzha.zzd(zzoo.zza(zzflVar, entry.getValue())));
}
}
}
String uri = buildUpon.build().toString();
if (zzoaVar3 == zzog.zzaum) {
this.zzary.zzay(uri);
String valueOf = String.valueOf(uri);
zzev.zzab(valueOf.length() != 0 ? "SendPixel: url = ".concat(valueOf) : new String("SendPixel: url = "));
} else {
String zzd = zzha.zzd(zzoaVar3);
this.zzary.zzf(uri, zzd);
StringBuilder sb = new StringBuilder(String.valueOf(uri).length() + 30 + String.valueOf(zzd).length());
sb.append("SendPixel: url = ");
sb.append(uri);
sb.append(", uniqueId = ");
sb.append(zzd);
zzev.zzab(sb.toString());
}
return zzog.zzaum;
}
}