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

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

/* JADX INFO: loaded from: classes2.dex */
public final class qm0 extends rm0 {

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final boolean f15781c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final boolean f15782d;

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

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final boolean f15784f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final String f15785g;

    @Nullable
    private final JSONObject zzh;

    public qm0(wa1 wa1Var, JSONObject jSONObject) {
        super(wa1Var);
        this.f15780b = p7.y.zzi(jSONObject, "tracking_urls_and_actions", "active_view");
        this.f15781c = p7.y.g(jSONObject, "allow_pub_owned_ad_view");
        this.f15782d = p7.y.g(jSONObject, "attribution", "allow_pub_rendering");
        this.f15783e = p7.y.g(jSONObject, "enable_omid");
        this.f15785g = p7.y.h(jSONObject, "watermark_overlay_png_base64");
        this.f15784f = jSONObject.optJSONObject("overlay") != null;
        this.zzh = jSONObject.optJSONObject("omid_settings");
    }

    @Override // com.google.android.gms.internal.ads.rm0
    public final boolean a() {
        return this.f15784f;
    }

    @Override // com.google.android.gms.internal.ads.rm0
    public final boolean b() {
        return this.f15781c;
    }

    @Override // com.google.android.gms.internal.ads.rm0
    public final boolean c() {
        return this.f15783e;
    }

    @Override // com.google.android.gms.internal.ads.rm0
    public final boolean d() {
        return this.f15782d;
    }

    @Override // com.google.android.gms.internal.ads.rm0
    public final String e() {
        return this.f15785g;
    }

    @Override // com.google.android.gms.internal.ads.rm0
    public final jb1 f() {
        JSONObject jSONObject = this.zzh;
        return jSONObject != null ? new jb1(jSONObject) : this.f16166a.S;
    }

    @Nullable
    public final JSONObject zza() {
        JSONObject jSONObject = this.f15780b;
        if (jSONObject != null) {
            return jSONObject;
        }
        try {
            return new JSONObject(this.f16166a.f18017x);
        } catch (JSONException unused) {
            return null;
        }
    }
}
