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

import androidx.annotation.Nullable;
import org.json.JSONObject;

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

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

    public jb1(JSONObject jSONObject) {
        this.f12804a = jSONObject;
    }

    public final int a() {
        int iOptInt = this.f12804a.optInt("media_type", -1);
        if (iOptInt != 0) {
            return iOptInt != 1 ? 3 : 1;
        }
        return 2;
    }

    @Nullable
    public final String zza() {
        if (a() - 1 != 1) {
            return "javascript";
        }
        return null;
    }
}
