package com.vungle.warren.model; import android.text.TextUtils; import com.google.android.gms.ads.RequestConfiguration; import com.vungle.warren.utility.w; import java.util.concurrent.TimeUnit; /* loaded from: classes2.dex */ public class l { /* renamed from: c, reason: collision with root package name */ public static String f8374c = "consent_status"; /* renamed from: d, reason: collision with root package name */ public static String f8375d = "consent_source"; /* renamed from: e, reason: collision with root package name */ public static String f8376e = "no_interaction"; /* renamed from: f, reason: collision with root package name */ public static String f8377f = "timestamp"; /* renamed from: g, reason: collision with root package name */ public static String f8378g = "consent_message_version"; /* renamed from: h, reason: collision with root package name */ public static String f8379h = "unknown"; /* renamed from: a, reason: collision with root package name */ private final j f8380a; /* renamed from: b, reason: collision with root package name */ private final g8.j f8381b; public l(g8.j jVar, w wVar) { this.f8381b = jVar; j jVar2 = (j) jVar.T("consentIsImportantToVungle", j.class).get(wVar.a(), TimeUnit.MILLISECONDS); this.f8380a = jVar2 == null ? a() : jVar2; } private j a() { j jVar = new j("consentIsImportantToVungle"); jVar.e(f8378g, RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED); jVar.e(f8374c, f8379h); jVar.e(f8375d, f8376e); jVar.e(f8377f, 0L); return jVar; } public String b() { j jVar = this.f8380a; return jVar != null ? jVar.d(f8374c) : "unknown"; } public String c() { j jVar = this.f8380a; return jVar != null ? jVar.d(f8378g) : RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED; } public String d() { j jVar = this.f8380a; return jVar != null ? jVar.d(f8375d) : f8376e; } public Long e() { j jVar = this.f8380a; return Long.valueOf(jVar != null ? jVar.c(f8377f).longValue() : 0L); } public void f(z4.k kVar) { boolean z10 = m.e(kVar, "is_country_data_protected") && kVar.u("is_country_data_protected").b(); boolean e10 = m.e(kVar, "consent_title"); String str = RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED; String j10 = e10 ? kVar.u("consent_title").j() : RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED; String j11 = m.e(kVar, "consent_message") ? kVar.u("consent_message").j() : RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED; String j12 = m.e(kVar, "consent_message_version") ? kVar.u("consent_message_version").j() : RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED; String j13 = m.e(kVar, "button_accept") ? kVar.u("button_accept").j() : RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED; String j14 = m.e(kVar, "button_deny") ? kVar.u("button_deny").j() : RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED; this.f8380a.e("is_country_data_protected", Boolean.valueOf(z10)); j jVar = this.f8380a; if (TextUtils.isEmpty(j10)) { j10 = "Targeted Ads"; } jVar.e("consent_title", j10); j jVar2 = this.f8380a; if (TextUtils.isEmpty(j11)) { j11 = "To receive more relevant ad content based on your interactions with our ads, click \"I Consent\" below. Either way, you will see the same amount of ads."; } jVar2.e("consent_message", j11); if (!"publisher".equalsIgnoreCase(this.f8380a.d(f8375d))) { j jVar3 = this.f8380a; String str2 = f8378g; if (!TextUtils.isEmpty(j12)) { str = j12; } jVar3.e(str2, str); } j jVar4 = this.f8380a; if (TextUtils.isEmpty(j13)) { j13 = "I Consent"; } jVar4.e("button_accept", j13); j jVar5 = this.f8380a; if (TextUtils.isEmpty(j14)) { j14 = "I Do Not Consent"; } jVar5.e("button_deny", j14); this.f8381b.h0(this.f8380a); } }