package f8; import android.webkit.WebView; import java.util.concurrent.TimeUnit; import t5.e; import t5.f; import t5.g; import t5.h; /* loaded from: classes2.dex */ public class b implements c { /* renamed from: d, reason: collision with root package name */ static final long f9650d = TimeUnit.SECONDS.toMillis(1); /* renamed from: a, reason: collision with root package name */ private final boolean f9651a; /* renamed from: b, reason: collision with root package name */ private boolean f9652b; /* renamed from: c, reason: collision with root package name */ private t5.a f9653c; /* renamed from: f8.b$b, reason: collision with other inner class name */ public static class C0143b { public b a(boolean z10) { return new b(z10); } } @Override // f8.c public void a(WebView webView) { if (this.f9652b && this.f9653c == null) { e eVar = e.DEFINED_BY_JAVASCRIPT; f fVar = f.DEFINED_BY_JAVASCRIPT; g gVar = g.JAVASCRIPT; t5.a a10 = t5.a.a(t5.b.a(eVar, fVar, gVar, gVar, false), t5.c.a(h.a("Vungle", "6.11.0"), webView, null, null)); this.f9653c = a10; a10.c(webView); this.f9653c.d(); } } public void b() { if (this.f9651a && r5.a.b()) { this.f9652b = true; } } public long c() { long j10; t5.a aVar; if (!this.f9652b || (aVar = this.f9653c) == null) { j10 = 0; } else { aVar.b(); j10 = f9650d; } this.f9652b = false; this.f9653c = null; return j10; } private b(boolean z10) { this.f9651a = z10; } }