package com.fyber.inneractive.sdk.renderers; import android.content.Context; import com.fyber.inneractive.sdk.config.IAConfigManager; import com.fyber.inneractive.sdk.config.enums.Skip; import com.fyber.inneractive.sdk.config.f0; import com.fyber.inneractive.sdk.config.global.s; import com.fyber.inneractive.sdk.external.InneractiveAdSpot; import com.fyber.inneractive.sdk.flow.e0; import com.fyber.inneractive.sdk.flow.g0; import com.fyber.inneractive.sdk.flow.h0; import com.fyber.inneractive.sdk.player.c; /* loaded from: classes2.dex */ public final class d extends o { public enum a { ORIGINAL, NEW } public d(com.fyber.inneractive.sdk.player.h hVar) { super(hVar); } @Override // com.fyber.inneractive.sdk.renderers.o public final void b() { this.c.getClass(); } @Override // com.fyber.inneractive.sdk.renderers.o public final com.fyber.inneractive.sdk.player.ui.l a(Context context, s sVar) { g0 g0Var; if (this.b == null) { com.fyber.inneractive.sdk.player.ui.e eVar = new com.fyber.inneractive.sdk.player.ui.e(); com.fyber.inneractive.sdk.player.e eVar2 = this.c; com.fyber.inneractive.sdk.response.g gVar = (eVar2 == null || (g0Var = eVar2.e) == null) ? null : (com.fyber.inneractive.sdk.response.g) g0Var.b; this.b = new com.fyber.inneractive.sdk.player.ui.h(context, eVar, eVar2, sVar, gVar != null ? gVar.D : null); } return this.b; } @Override // com.fyber.inneractive.sdk.renderers.o public final com.fyber.inneractive.sdk.player.controller.b a(InneractiveAdSpot inneractiveAdSpot, g0 g0Var) { g0 g0Var2; if (this.a == null) { Object selectedUnitController = inneractiveAdSpot.getSelectedUnitController(); boolean isOverlayOutside = selectedUnitController instanceof h0 ? ((h0) selectedUnitController).isOverlayOutside() : false; Skip a2 = inneractiveAdSpot instanceof e0 ? ((e0) inneractiveAdSpot).a() : null; com.fyber.inneractive.sdk.player.e eVar = this.c; com.fyber.inneractive.sdk.player.ui.h hVar = this.b; f0 f0Var = inneractiveAdSpot.getAdContent().d; s sVar = g0Var.c; boolean z = IAConfigManager.L.k || g0Var.f; com.fyber.inneractive.sdk.player.e eVar2 = this.c; com.fyber.inneractive.sdk.response.g gVar = (eVar2 == null || (g0Var2 = eVar2.e) == null) ? null : (com.fyber.inneractive.sdk.response.g) g0Var2.b; this.a = new com.fyber.inneractive.sdk.player.controller.e(eVar, hVar, f0Var, sVar, isOverlayOutside, a2, z, gVar != null ? gVar.D : null, a()); } return this.a; } @Override // com.fyber.inneractive.sdk.renderers.o public final void a(c.InterfaceC0080c interfaceC0080c) { this.c.getClass(); interfaceC0080c.a(); } }