package ys1; import android.content.Context; import android.os.Bundle; import android.util.AttributeSet; import androidx.fragment.app.Fragment; import bw3.tc1; import c70.i; import c80.b; import com.tencent.midas.api.APMidasPayAPI; import com.tencent.mm.live.core.trtc.TRTCVideoRatioLayout; import com.tencent.mm.plugin.finder.live.view.b; import com.tencent.mm.plugin.finder.ui.MMFinderUI; import ek0.z2; import ft1.k1; import ft1.o; import ft1.s; import it1.c2; import it1.d2; import it1.e; import it1.f; import it1.f3; import lh4.m; import lo1.g; import m60.d; import pu1.d3; import sr1.h4; import sr1.q3; import wg4.n; public abstract class a extends b { /* renamed from: d reason: collision with root package name */ public f3 f348372d; /* renamed from: e reason: collision with root package name */ public f f348373e; /* renamed from: f reason: collision with root package name */ public e f348374f; /* renamed from: g reason: collision with root package name */ public b70.b f348375g; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(Context context, Fragment fragment, AttributeSet attributeSet) { super(context, fragment, attributeSet); m.g(context, "context"); MMFinderUI mMFinderUI = (MMFinderUI) context; this.f348372d = new f3(mMFinderUI); this.f348373e = new f(mMFinderUI); this.f348374f = new e(mMFinderUI); } public final b70.b getLiveCore() { return this.f348375g; } public final e getLiveEndUIC() { return this.f348374f; } public final f3 getLivePrepareUIC() { return this.f348372d; } @Override // com.tencent.mm.plugin.finder.live.view.b, c80.b, com.tencent.mm.live.view.BaseLivePluginLayout public abstract /* synthetic */ int getLiveRole(); public final f getLiveStartUIC() { return this.f348373e; } public final f getStartUIC() { return this.f348373e; } public void prepareToStart(boolean z15) { TRTCVideoRatioLayout renderRatioLayout; q3 q3Var; int i15; i iVar; f fVar = this.f348373e; if (z15) { a aVar = fVar.f290744f; Boolean bool = null; boolean z16 = false; if (aVar != null) { b.hideLoadingLayer$default(aVar, false, 1, null); } Bundle bundle = new Bundle(); bundle.putBoolean("PARAM_FINDER_LIVE_START_BY_MINI_WINDOW", true); a aVar2 = fVar.f290744f; if (aVar2 != null) { aVar2.statusChange(b.EnumC0425b.START_LIVE, bundle); } b70.b bVar = fVar.f290746h; if (!(!((bVar == null || (iVar = bVar.A) == null || !iVar.f47352k) ? false : true) || (q3Var = fVar.f234807n) == null || (i15 = ((o) q3Var.C0(o.class)).W3) == 0)) { q3Var.f306290u.h(i15); q3Var.f306290u.f(); q3Var.f1(true); } q3 q3Var2 = fVar.f234807n; if (!(q3Var2 == null || (renderRatioLayout = q3Var2.f306287r.getRenderRatioLayout()) == null)) { renderRatioLayout.post(new c2(fVar)); } h4 h4Var = fVar.f234821y0; if (h4Var != null) { h4Var.j1(); } d.M(200, new d2(fVar)); k1 k1Var = (k1) fVar.g(k1.class); d3 d3Var = ((k1) fVar.f290759d.a(k1.class)).f217154v; z2 z2Var = d3Var instanceof z2 ? (z2) d3Var : null; k1Var.f217155w = z2Var != null ? z2Var.c() : 0; a aVar3 = fVar.f290744f; if (aVar3 != null) { rs1.d.f297303a.E1(fVar.f290759d, aVar3); } ((g) fVar.g(g.class)).j5(); Object t15 = ((vl1.a) ((n) tn1.a.f313232n4).getValue()).t(); if (((Boolean) t15).booleanValue()) { z16 = true; } if (z16) { bool = t15; } Boolean bool2 = bool; if (bool2 != null) { bool2.booleanValue(); tc1 tc12 = new tc1(); tc12.f37371d = 2; tc12.f37374g = "这是测试文案,不是后台下发文案"; tc12.f37375h = APMidasPayAPI.ENV_TEST; tc12.f37376i = "https://mmocgame.qpic.cn/wechatgame/491KtdHdGbZZKy8RFvcVaMzw5iaVfLYgISDoOef2mFL0y7cQECIzia9bZ5FUcA1fS3/0"; d.O(new s((o) fVar.g(o.class), tc12)); return; } return; } fVar.J(); } public final void setLiveCore(b70.b bVar) { this.f348375g = bVar; } public final void setLiveEndUIC(e eVar) { m.g(eVar, "<set-?>"); this.f348374f = eVar; } public final void setLivePrepareUIC(f3 f3Var) { m.g(f3Var, "<set-?>"); this.f348372d = f3Var; } public final void setLiveStartUIC(f fVar) { m.g(fVar, "<set-?>"); this.f348373e = fVar; } }