package com.google.android.gms.internal.ads;

import android.webkit.WebView;
import androidx.annotation.Nullable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/* JADX INFO: loaded from: classes2.dex */
public final class tf1 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final xf1 f16870a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final WebView f16871b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final ArrayList f16872c = new ArrayList();

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final HashMap f16873d = new HashMap();

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final zzfsm f16874e;

    @Nullable
    private final String zze;

    @Nullable
    private final String zzf;

    private tf1(xf1 xf1Var, WebView webView, String str, List list, @Nullable String str2, @Nullable String str3, zzfsm zzfsmVar) {
        this.f16870a = xf1Var;
        this.f16871b = webView;
        this.f16874e = zzfsmVar;
        this.zzf = str2;
        this.zze = str3;
    }

    public static tf1 zza(xf1 xf1Var, WebView webView, @Nullable String str, @Nullable String str2) {
        if (str2 == null || str2.length() <= 256) {
            return new tf1(xf1Var, webView, null, null, str, str2, zzfsm.HTML);
        }
        throw new IllegalArgumentException("CustomReferenceData is greater than 256 characters");
    }

    public static tf1 zzb(xf1 xf1Var, WebView webView, @Nullable String str, @Nullable String str2) {
        return new tf1(xf1Var, webView, null, null, str, "", zzfsm.JAVASCRIPT);
    }

    @Nullable
    public final String zzg() {
        return this.zzf;
    }

    @Nullable
    public final String zzh() {
        return this.zze;
    }
}
