package com.tencent.mm.plugin.finder.profile.uic; import a02.r; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.res.Resources; import android.graphics.Bitmap; import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.os.SystemClock; import android.text.SpannableString; import android.view.View; import android.view.ViewGroup; import android.view.ViewParent; import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import androidx.appcompat.app.AppCompatActivity; import androidx.coordinatorlayout.widget.CoordinatorLayout; import androidx.fragment.app.Fragment; import androidx.lifecycle.j; import bw3.ai0; import bw3.bm4; import bw3.bv1; import bw3.cm4; import bw3.de0; import bw3.fp1; import bw3.gt3; import bw3.jg1; import bw3.kn0; import bw3.kn1; import bw3.lo0; import bw3.ma; import bw3.r15; import bw3.s12; import bw3.sl0; import bw3.sm0; import bw3.tk0; import bw3.tl0; import bw3.ul0; import bw3.ut1; import bw3.wd1; import bw3.xd1; import bw3.xz1; import com.google.android.gms.common.Scopes; import com.tencent.mars.cdn.CdnLogic; import com.tencent.mm.R; import com.tencent.mm.autogen.events.FollowUserEvent; import com.tencent.mm.plugin.FinderCommonFeatureService; import com.tencent.mm.plugin.finder.feed.model.FinderDataLoader; import com.tencent.mm.plugin.finder.feed.model.FinderProfileFeedLoader; import com.tencent.mm.plugin.finder.profile.FinderProfileFeedFragment; import com.tencent.mm.plugin.finder.profile.FinderProfilePoiDrawer; import com.tencent.mm.plugin.finder.profile.view.FinderFollowMoreView; import com.tencent.mm.plugin.finder.service.r1; import com.tencent.mm.plugin.finder.service.v1; import com.tencent.mm.plugin.finder.utils.a5; import com.tencent.mm.plugin.finder.utils.b6; import com.tencent.mm.plugin.finder.utils.h4; import com.tencent.mm.plugin.finder.utils.n4; import com.tencent.mm.plugin.finder.utils.o4; import com.tencent.mm.plugin.finder.utils.x1; import com.tencent.mm.plugin.finder.view.CollapsibleTextView; import com.tencent.mm.plugin.finder.view.EllipsizedTextView; import com.tencent.mm.plugin.finder.view.p4; import com.tencent.mm.protocal.protobuf.FinderAuthInfo; import com.tencent.mm.protocal.protobuf.FinderContact; import com.tencent.mm.protocal.protobuf.FinderJumpInfo; import com.tencent.mm.protocal.protobuf.FinderUserPageResponse; import com.tencent.mm.protocal.protobuf.NativeInfo; import com.tencent.mm.sdk.event.IListener; import com.tencent.mm.sdk.platformtools.LocaleUtil; import com.tencent.mm.sdk.platformtools.Log; import com.tencent.mm.sdk.platformtools.MMApplicationContext; import com.tencent.mm.sdk.platformtools.Util; import com.tencent.mm.storage.w1; import com.tencent.mm.storage.z1; import com.tencent.mm.ui.l5; import com.tencent.mm.ui.t2; import com.tencent.mm.ui.widget.RoundCornerRelativeLayout; import com.tencent.mm.ui.widget.imageview.WeImageView; import com.tencent.mm.ui.x4; import com.tencent.mm.vfs.u1; import com.tencent.mm.view.drawer.RecyclerViewDrawer; import com.tencent.tinker.loader.hotplug.EnvConsts; import cs1.f0; import d32.ta; import dj1.a; import ek0.v2; import ek0.w2; import ek0.x2; import ez1.h; import ez1.o2; import hy1.j2; import hy1.p; import hy1.y1; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedList; import kotlin.Result; import kotlin.ResultKt; import nf0.e6; import org.json.JSONException; import org.json.JSONObject; import sk1.d; import t32.e2; import t32.k6; import t32.l6; import t32.m6; import t32.q3; import t32.q5; import t32.t4; import t32.w4; import tt1.h0; import wk1.b5; import wk1.y2; import y74.k; import zr.n; import zz1.j3; public final class FinderProfileHeaderUIC extends hy1.d0 implements yf0.n { public final wg4.g A = wg4.h.a(new n(this)); public final wg4.g B = wg4.h.a(new o(this)); public final wg4.g C = wg4.h.a(new g(this)); public final wg4.g D = wg4.h.a(new h(this)); public final wg4.g E = wg4.h.a(new i(this)); public final wg4.g F = wg4.h.a(new f(this)); public final wg4.g G = wg4.h.a(new s0(this)); public final wg4.g H = wg4.h.a(new q(this)); public final wg4.g I = wg4.h.a(new p0(this)); public final wg4.g J = wg4.h.a(new b(this)); public final wg4.g K = wg4.h.a(new d(this)); public final wg4.g L = wg4.h.a(new c(this)); public final wg4.g M = wg4.h.a(new t(this)); public final wg4.g N = wg4.h.a(new v0(this)); public final wg4.g P = wg4.h.a(new q0(this)); public final wg4.g Q = wg4.h.a(new g1(this)); public final wg4.g R = wg4.h.a(new r0(this)); public final wg4.g S = wg4.h.a(new f1(this)); public final wg4.g T = wg4.h.a(new m1(this)); public ky1.v T0; public ky1.d U; public ay1.e U0; public ky1.u V; public boolean V0; public ky1.x W; public String W0 = ""; public ky1.a X; public String X0 = ""; public ky1.h Y; public a Y0; public ky1.e0 Z; public a Z0; /* renamed from: a1 reason: collision with root package name */ public String f116152a1; /* renamed from: b1 reason: collision with root package name */ public long f116153b1; /* renamed from: c1 reason: collision with root package name */ public p64.n f116154c1; /* renamed from: d1 reason: collision with root package name */ public final wg4.g f116155d1; /* renamed from: e reason: collision with root package name */ public final wg4.g f116156e = wg4.h.a(new e(this)); /* renamed from: e1 reason: collision with root package name */ public final boolean f116157e1; /* renamed from: f reason: collision with root package name */ public final wg4.g f116158f = wg4.h.a(new i1(this)); /* renamed from: f1 reason: collision with root package name */ public final by1.c f116159f1; /* renamed from: g reason: collision with root package name */ public final wg4.g f116160g = wg4.h.a(new h1(this)); /* renamed from: g1 reason: collision with root package name */ public IListener<FollowUserEvent> f116161g1; /* renamed from: h reason: collision with root package name */ public View f116162h = t2.b(getActivity()).inflate(R.layout.b7r, (ViewGroup) null); /* renamed from: h1 reason: collision with root package name */ public final wg4.g f116163h1; /* renamed from: i reason: collision with root package name */ public final wg4.g f116164i = wg4.h.a(new m0(this)); /* renamed from: i1 reason: collision with root package name */ public boolean f116165i1; /* renamed from: j reason: collision with root package name */ public final wg4.g f116166j = wg4.h.a(new l0(this)); /* renamed from: j1 reason: collision with root package name */ public boolean f116167j1; /* renamed from: k1 reason: collision with root package name */ public final wg4.g f116168k1; /* renamed from: l1 reason: collision with root package name */ public String f116169l1; /* renamed from: m1 reason: collision with root package name */ public final int f116170m1; /* renamed from: n reason: collision with root package name */ public final wg4.g f116171n = wg4.h.a(new u(this)); /* renamed from: n1 reason: collision with root package name */ public final l f116172n1; /* renamed from: o reason: collision with root package name */ public final wg4.g f116173o = wg4.h.a(new n0(this)); /* renamed from: o1 reason: collision with root package name */ public k6<kn1> f116174o1; /* renamed from: p reason: collision with root package name */ public final wg4.g f116175p = wg4.h.a(new u0(this)); /* renamed from: p0 reason: collision with root package name */ public ky1.y f116176p0; /* renamed from: q reason: collision with root package name */ public final wg4.g f116177q = wg4.h.a(new t0(this)); /* renamed from: r reason: collision with root package name */ public final wg4.g f116178r = wg4.h.a(new j(this)); /* renamed from: s reason: collision with root package name */ public final wg4.g f116179s = wg4.h.a(new n1(this)); /* renamed from: t reason: collision with root package name */ public final wg4.g f116180t = wg4.h.a(new o1(this)); /* renamed from: u reason: collision with root package name */ public final wg4.g f116181u = wg4.h.a(new w(this)); /* renamed from: v reason: collision with root package name */ public final wg4.g f116182v = wg4.h.a(new x(this)); /* renamed from: w reason: collision with root package name */ public final wg4.g f116183w = wg4.h.a(new r(this)); /* renamed from: x reason: collision with root package name */ public final wg4.g f116184x = wg4.h.a(new o0(this)); /* renamed from: x0 reason: collision with root package name */ public ky1.c f116185x0; /* renamed from: y reason: collision with root package name */ public final wg4.g f116186y = wg4.h.a(new e1(this)); /* renamed from: y0 reason: collision with root package name */ public ky1.e f116187y0; /* renamed from: z reason: collision with root package name */ public final wg4.g f116188z = wg4.h.a(new s(this)); public static final class a { /* renamed from: a reason: collision with root package name */ public final String f116189a; /* renamed from: b reason: collision with root package name */ public final SpannableString f116190b; /* renamed from: c reason: collision with root package name */ public final StringBuilder f116191c; public a(String str, SpannableString spannableString, StringBuilder sb5) { lh4.m.g(str, "signature"); lh4.m.g(sb5, "reportNickName"); this.f116189a = str; this.f116190b = spannableString; this.f116191c = sb5; } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof a)) { return false; } a aVar = (a) obj; return lh4.m.b(this.f116189a, aVar.f116189a) && lh4.m.b(this.f116190b, aVar.f116190b) && lh4.m.b(this.f116191c, aVar.f116191c); } public int hashCode() { int hashCode = this.f116189a.hashCode() * 31; SpannableString spannableString = this.f116190b; return ((hashCode + (spannableString == null ? 0 : spannableString.hashCode())) * 31) + this.f116191c.hashCode(); } public String toString() { return "DescSpanInfo(signature=" + this.f116189a + ", signatureSpan=" + ((Object) this.f116190b) + ", reportNickName=" + ((Object) this.f116191c) + ')'; } } public static final class a0 implements Runnable { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116192d; public a0(FinderProfileHeaderUIC finderProfileHeaderUIC) { this.f116192d = finderProfileHeaderUIC; } public final void run() { String str; String str2; String str3; int i15; String stringExtra = this.f116192d.getIntent().getStringExtra("key_extra_info"); if (stringExtra == null) { stringExtra = ""; } z81.g gVar = (z81.g) yz3.j.c(z81.g.class); FrameLayout frameLayout = this.f116192d.E5().E; wg4.l[] lVarArr = new wg4.l[9]; ta.a aVar = ta.W0; ta f15 = aVar.f(this.f116192d.getActivity()); Integer num = null; if (f15 != null) { str = f15.f197190o; } else { str = null; } wg4.l lVar = new wg4.l("behaviour_session_id", str); int i16 = 0; lVarArr[0] = lVar; ta f16 = aVar.f(this.f116192d.getActivity()); if (f16 != null) { str2 = f16.f197189n; } else { str2 = null; } wg4.l lVar2 = new wg4.l("finder_context_id", str2); int i17 = 1; lVarArr[1] = lVar2; ta f17 = aVar.f(this.f116192d.getActivity()); if (f17 != null) { str3 = f17.f197191p; } else { str3 = null; } lVarArr[2] = new wg4.l("finder_tab_context_id", str3); f12.s sVar = f12.s.f211957e; f12.s sVar2 = f12.s.f211957e; if (!f12.s.b(sVar2, this.f116192d.f116152a1, true, false, 4, null)) { if (sVar2.c(this.f116192d.f116152a1)) { i16 = 2; } else { i16 = 1; } } lVarArr[3] = new wg4.l("follow_button_type", Integer.valueOf(i16)); ta f18 = aVar.f(this.f116192d.getActivity()); if (f18 != null) { num = Integer.valueOf(f18.f197187i); } lVarArr[4] = new wg4.l("comment_scene", num); FinderProfileHeaderUIC finderProfileHeaderUIC = this.f116192d; lVarArr[5] = new wg4.l("finder_username", finderProfileHeaderUIC.f116152a1); if (((hy1.p) y24.r.f342954a.b(finderProfileHeaderUIC.getContext()).a(hy1.p.class)).isSelf()) { i15 = 1; } else { i15 = 2; } lVarArr[6] = new wg4.l("profile_state_type", Integer.valueOf(i15)); if (this.f116192d.getFragmentMode()) { i17 = 2; } lVarArr[7] = new wg4.l("profile_screen_type", Integer.valueOf(i17)); lVarArr[8] = new wg4.l("extrainfo", stringExtra); gVar.G90(frameLayout, "finder_profile_follow", xg4.r0.f(lVarArr), 40, 24617); } } public static final class a1 extends lh4.o implements kh4.a<wg4.b0> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116193d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a1(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116193d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public wg4.b0 invoke() { FinderProfileHeaderUIC finderProfileHeaderUIC = this.f116193d; ky1.e0 e0Var = finderProfileHeaderUIC.Z; xd1 xd12 = null; if (e0Var != null) { p.a aVar = (p.a) hy1.p.f228915h.get(finderProfileHeaderUIC.f116152a1); if (aVar != null) { xd12 = aVar.f228930l; } l6.a.a(e0Var, xd12, null, false, this.f116193d.W0, 0, 22, null); return wg4.b0.f332794a; } lh4.m.p("moreLiveListWidget"); throw null; } } public static final class b extends lh4.o implements kh4.a<LinearLayout> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116194d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public b(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116194d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public LinearLayout invoke() { return (LinearLayout) ((wg4.n) ((hy1.a) y24.r.f342954a.c(this.f116194d.getActivity()).a(hy1.a.class)).f228592h).getValue(); } } public static final class b0 implements View.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ String f116195d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116196e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ JSONObject f116197f; public b0(String str, FinderProfileHeaderUIC finderProfileHeaderUIC, JSONObject jSONObject) { this.f116195d = str; this.f116196e = finderProfileHeaderUIC; this.f116197f = jSONObject; } public final void onClick(View view) { ArrayList arrayList = new ArrayList(); arrayList.add(view); Object[] array = arrayList.toArray(); arrayList.clear(); j30.a.b("com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC$handleLuckMoneyCoverLayout$3", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array); Intent intent = new Intent(); intent.putExtra("rawUrl", this.f116195d); bv1 bv12 = null; sv3.b.j(this.f116196e.getActivity(), "webview", ".ui.tools.WebViewUI", intent, null); o2 o2Var = o2.f210885a; ta f15 = ta.W0.f(this.f116196e.getContext()); if (f15 != null) { bv12 = f15.l0(); } o2.f(o2Var, bv12, "get_red_cover_panel", 1, this.f116197f, false, 16, null); j30.a.g(this, "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC$handleLuckMoneyCoverLayout$3", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V"); } } public static final class b1 implements q3.b { @Override // t32.q3.b public boolean a() { return true; } @Override // t32.q3.b public int b() { return 0; } @Override // t32.q3.b public boolean c() { return false; } } public static final class c extends lh4.o implements kh4.a<TextView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116198d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public c(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116198d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public TextView invoke() { return (TextView) ((wg4.n) ((hy1.a) y24.r.f342954a.c(this.f116198d.getActivity()).a(hy1.a.class)).f228594j).getValue(); } } public static final class c0 extends k.d { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116199a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ JSONObject f116200b; public c0(FinderProfileHeaderUIC finderProfileHeaderUIC, JSONObject jSONObject) { this.f116199a = finderProfileHeaderUIC; this.f116200b = jSONObject; } @Override // y74.k.d public void c(View view, long j15, long j16, boolean z15) { lh4.m.g(view, "view"); if (z15) { o2 o2Var = o2.f210885a; ta f15 = ta.W0.f(this.f116199a.getContext()); o2.f(o2Var, f15 != null ? f15.l0() : null, "get_red_cover_panel", 0, this.f116200b, false, 16, null); } } } public static final class c1 extends lh4.o implements kh4.r<Integer, Integer, String, m6, wg4.b0> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116201d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public c1(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(4); this.f116201d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object] */ @Override // kh4.r public wg4.b0 D(Integer num, Integer num2, String str, m6 m6Var) { wd1 wd12; int i15; kn0 response; num.intValue(); num2.intValue(); m6 m6Var2 = m6Var; gh.h<String, p.a> hVar = hy1.p.f228915h; p.a aVar = (p.a) hVar.get(this.f116201d.f116152a1); if (aVar == null) { aVar = new p.a(0, 0, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1048575, null); } if (m6Var2 == null || (response = m6Var2.getResponse()) == null) { wd12 = null; } else { wd12 = response.f27549e; } if (wd12 != null) { wd1 wd13 = aVar.f228923e; if (wd13 != null) { i15 = wd13.f40922d; } else { i15 = Integer.MAX_VALUE; } if (i15 > wd12.f40922d) { aVar.f228923e = wd12; } } hVar.put(this.f116201d.f116152a1, aVar); FinderProfileHeaderUIC.w6(this.f116201d, "onSceneEnd:[NetSceneCreateLiveNotice]", null, 2, null); return wg4.b0.f332794a; } } public static final class d extends lh4.o implements kh4.a<WeImageView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116202d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public d(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116202d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public WeImageView invoke() { return (WeImageView) ((wg4.n) ((hy1.a) y24.r.f342954a.c(this.f116202d.getActivity()).a(hy1.a.class)).f228593i).getValue(); } } public static final class d0 implements Runnable { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116203d; public d0(FinderProfileHeaderUIC finderProfileHeaderUIC) { this.f116203d = finderProfileHeaderUIC; } public final void run() { String str; String str2; String str3; int i15; String stringExtra = this.f116203d.getIntent().getStringExtra("key_extra_info"); if (stringExtra == null) { stringExtra = ""; } int i16 = 1; z81.g ce02 = ((z81.g) yz3.j.c(z81.g.class)).Wc(this.f116203d.E5().f201085x0, 40, 1, false).sC0(this.f116203d.E5().f201085x0, 40, 24617).ce0(this.f116203d.E5().f201085x0, "finder_profile_letter"); FrameLayout frameLayout = this.f116203d.E5().f201085x0; wg4.l[] lVarArr = new wg4.l[9]; ta.a aVar = ta.W0; ta f15 = aVar.f(this.f116203d.getActivity()); Integer num = null; if (f15 != null) { str = f15.f197191p; } else { str = null; } lVarArr[0] = new wg4.l("finder_tab_context_id", str); ta f16 = aVar.f(this.f116203d.getActivity()); if (f16 != null) { str2 = f16.f197189n; } else { str2 = null; } lVarArr[1] = new wg4.l("finder_context_id", str2); ta f17 = aVar.f(this.f116203d.getActivity()); if (f17 != null) { str3 = f17.f197190o; } else { str3 = null; } lVarArr[2] = new wg4.l("behaviour_session_id", str3); ta f18 = aVar.f(this.f116203d.getActivity()); if (f18 != null) { num = Integer.valueOf(f18.f197187i); } lVarArr[3] = new wg4.l("comment_scene", num); FinderProfileHeaderUIC finderProfileHeaderUIC = this.f116203d; lVarArr[4] = new wg4.l("finder_username", finderProfileHeaderUIC.f116152a1); if (((hy1.p) y24.r.f342954a.b(finderProfileHeaderUIC.getContext()).a(hy1.p.class)).isSelf()) { i15 = 1; } else { i15 = 2; } lVarArr[5] = new wg4.l("profile_state_type", Integer.valueOf(i15)); if (this.f116203d.getFragmentMode()) { i16 = 2; } lVarArr[6] = new wg4.l("profile_screen_type", Integer.valueOf(i16)); lVarArr[7] = new wg4.l("extrainfo", stringExtra); lVarArr[8] = new wg4.l("feedid", m60.d.p(this.f116203d.f116153b1)); ce02.FU(frameLayout, xg4.r0.f(lVarArr)); } } @dh4.f(c = "com.tencent.mm.plugin.finder.profile.uic.FinderProfileHeaderUIC$onResume$1", f = "FinderProfileHeaderUIC.kt", l = {er0.g.CTRL_INDEX}, m = "invokeSuspend") public static final class d1 extends dh4.j implements kh4.p<gk4.n0, bh4.d<? super wg4.b0>, Object> { /* renamed from: d reason: collision with root package name */ public int f116204d; public d1(bh4.d<? super d1> dVar) { super(2, dVar); } @Override // dh4.a public final bh4.d<wg4.b0> create(Object obj, bh4.d<?> dVar) { return new d1(dVar); } /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ @Override // kh4.p public Object invoke(gk4.n0 n0Var, bh4.d<? super wg4.b0> dVar) { return new d1(dVar).invokeSuspend(wg4.b0.f332794a); } @Override // dh4.a public final Object invokeSuspend(Object obj) { ch4.a aVar = ch4.a.COROUTINE_SUSPENDED; int i15 = this.f116204d; if (i15 == 0) { ResultKt.throwOnFailure(obj); dj1.b bVar = dj1.b.f200487e; this.f116204d = 1; if (bVar.X5(8, this) == aVar) { return aVar; } } else if (i15 == 1) { ResultKt.throwOnFailure(obj); ((Result) obj).m760unboximpl(); } else { throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } return wg4.b0.f332794a; } } public static final class e extends lh4.o implements kh4.a<dm1.y> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116205d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public e(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116205d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public dm1.y invoke() { return dm1.y.a(this.f116205d.findViewById(R.id.k2z)); } } public static final class e0 extends k.d { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116206a; public e0(FinderProfileHeaderUIC finderProfileHeaderUIC) { this.f116206a = finderProfileHeaderUIC; } @Override // y74.k.d public void c(View view, long j15, long j16, boolean z15) { lh4.m.g(view, "view"); if (z15) { ez1.h hVar = ez1.h.f210718a; h.b bVar = ez1.h.f210724g; bVar.c(r32.b.c(this.f116206a.getContext()), "", this.f116206a.f116152a1); h.b.b(bVar, this.f116206a.getContextObj(), 3, null, 4, null); FrameLayout frameLayout = this.f116206a.E5().f201085x0; lh4.m.f(frameLayout, "profileHeaderUiBinding.sendMsgBtn"); y74.m.h(frameLayout, null); } } } public static final class e1 extends lh4.o implements kh4.a<TextView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116207d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public e1(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116207d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public TextView invoke() { return this.f116207d.E5().U; } } public static final class f extends lh4.o implements kh4.a<TextView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116208d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public f(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116208d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public TextView invoke() { return this.f116208d.E5().f201048f; } } public static final class f0 implements View.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116209d; public f0(FinderProfileHeaderUIC finderProfileHeaderUIC) { this.f116209d = finderProfileHeaderUIC; } public final void onClick(View view) { int i15; ArrayList arrayList = new ArrayList(); arrayList.add(view); Object[] array = arrayList.toArray(); arrayList.clear(); j30.a.b("com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC$handleMessageBtn$3", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array); h4 h4Var = h4.f119006a; Activity context = this.f116209d.getContext(); sk1.q profileContact = this.f116209d.getProfileContact(); boolean z15 = false; if (profileContact != null) { i15 = profileContact.field_extFlag; } else { i15 = 0; } h4Var.getClass(); lh4.m.g(context, "context"); if ((i15 & 64) != 0) { z15 = true; } if (z15) { p64.q qVar = new p64.q(MMApplicationContext.getContext()); qVar.g(context.getResources().getString(R.string.eo6)); qVar.a(true); qVar.m(R.string.l_e); qVar.l(n4.f119197a); qVar.e(o4.f119209d); qVar.o(); } if (!z15) { h.b bVar = ez1.h.f210724g; bVar.c(r32.b.c(this.f116209d.getContext()), "", this.f116209d.f116152a1); h.b.a(bVar, this.f116209d.getContextObj(), 3, 2, null, 8, null); Intent intent = new Intent(); r32.b.a(this.f116209d.getActivity(), intent); yz3.d c15 = yz3.j.c(com.tencent.mm.plugin.finder.utils.b.class); lh4.m.f(c15, "getService(ActivityRouter::class.java)"); ((v2) c15).yH0(this.f116209d.getContext(), this.f116209d.f116152a1, 2, intent, null); } j30.a.g(this, "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC$handleMessageBtn$3", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V"); } } public static final class f1 extends lh4.o implements kh4.a<TextView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116210d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public f1(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116210d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public TextView invoke() { return ((dm1.y) ((wg4.n) this.f116210d.f116156e).getValue()).f201192g; } } public static final class g extends lh4.o implements kh4.a<LinearLayout> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116211d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public g(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116211d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public LinearLayout invoke() { return this.f116211d.E5().f201050g; } } public static final class g0 implements View.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116212d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ ym1.r f116213e; public g0(FinderProfileHeaderUIC finderProfileHeaderUIC, ym1.r rVar) { this.f116212d = finderProfileHeaderUIC; this.f116213e = rVar; } public final void onClick(View view) { bv1 bv12; String str; ArrayList arrayList = new ArrayList(); arrayList.add(view); Object[] array = arrayList.toArray(); arrayList.clear(); j30.a.b("com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC$handleMessageBtn$4", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array); ym1.e0.c(ym1.e0.f346876a, this.f116212d.getContext(), this.f116213e, 0, null, 12, null); ta f15 = ta.W0.f(this.f116212d.getContext()); if (f15 != null) { bv12 = f15.l0(); } else { bv12 = null; } JSONObject a15 = fy1.b.f217925e.a(this.f116212d.getContext(), this.f116213e.f347016a); sk1.q qVar = this.f116213e.f347025j; if (qVar != null) { str = qVar.getUsername(); } else { str = ""; } a15.put("finderusername", str); o2.f(o2.f210885a, bv12, "menu", 1, a15, false, 16, null); j30.a.g(this, "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC$handleMessageBtn$4", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V"); } } public static final class g1 extends lh4.o implements kh4.a<LinearLayout> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116214d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public g1(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116214d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public LinearLayout invoke() { return ((dm1.y) ((wg4.n) this.f116214d.f116156e).getValue()).f201203r; } } public static final class h extends lh4.o implements kh4.a<LinearLayout> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116215d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public h(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116215d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public LinearLayout invoke() { return this.f116215d.E5().f201052h; } } public static final class h0 implements View.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116216d; public h0(FinderProfileHeaderUIC finderProfileHeaderUIC) { this.f116216d = finderProfileHeaderUIC; } public final void onClick(View view) { ArrayList arrayList = new ArrayList(); arrayList.add(view); Object[] array = arrayList.toArray(); arrayList.clear(); j30.a.b("com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC$handleNickname$1", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array); o2.f(o2.f210885a, this.f116216d.getContextObj(), "link_halfscreen_profile_avatar_profile", 1, null, false, 24, null); j30.a.g(this, "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC$handleNickname$1", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V"); } } public static final class h1 extends lh4.o implements kh4.a<dm1.i0> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116217d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public h1(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116217d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public dm1.i0 invoke() { return dm1.i0.a(this.f116217d.f116162h); } } public static final class i extends lh4.o implements kh4.a<TextView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116218d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public i(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116218d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public TextView invoke() { return this.f116218d.E5().f201054i; } } public static final class i0 implements View.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ sk1.q f116219d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116220e; public i0(sk1.q qVar, FinderProfileHeaderUIC finderProfileHeaderUIC) { this.f116219d = qVar; this.f116220e = finderProfileHeaderUIC; } public final void onClick(View view) { bv1 bv12; ArrayList arrayList = new ArrayList(); arrayList.add(view); Object[] array = arrayList.toArray(); arrayList.clear(); j30.a.b("com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC$handleNickname$2", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array); Intent intent = new Intent(); intent.putStringArrayListExtra("key_url_list", new ArrayList<>(xg4.t.b(this.f116219d.k0()))); intent.putExtra("key_preview_avatar", true); r32.b.a(this.f116220e.getActivity(), intent); ((com.tencent.mm.plugin.finder.utils.b) yz3.j.c(com.tencent.mm.plugin.finder.utils.b.class)).mO0(this.f116220e.getActivity(), intent); o2 o2Var = o2.f210885a; ta f15 = ta.W0.f(this.f116220e.getContext()); if (f15 != null) { bv12 = f15.l0(); } else { bv12 = null; } o2.f(o2Var, bv12, "icon_avatar", 1, null, false, 24, null); j30.a.g(this, "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC$handleNickname$2", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V"); } } public static final class i1 extends lh4.o implements kh4.a<dm1.h0> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116221d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public i1(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116221d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public dm1.h0 invoke() { return dm1.h0.a(this.f116221d.findViewById(R.id.cgk)); } } public static final class j extends lh4.o implements kh4.a<ImageView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116222d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public j(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116222d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public ImageView invoke() { return this.f116222d.E5().f201058k; } } public static final class j0 implements View.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116223d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ FinderJumpInfo f116224e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ lh4.a0 f116225f; public j0(FinderProfileHeaderUIC finderProfileHeaderUIC, FinderJumpInfo finderJumpInfo, lh4.a0 a0Var) { this.f116223d = finderProfileHeaderUIC; this.f116224e = finderJumpInfo; this.f116225f = a0Var; } public final void onClick(View view) { bv1 bv12; ArrayList arrayList = new ArrayList(); arrayList.add(view); Object[] array = arrayList.toArray(); arrayList.clear(); j30.a.b("com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC$handleShopBrandArea$1$4", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array); ((t4) y24.r.f342954a.b(this.f116223d.getContext()).c(t4.class)).Q4(this.f116224e); ym1.e0 e0Var = ym1.e0.f346876a; Context context = this.f116223d.E5().W.getContext(); lh4.m.f(context, "profileHeaderUiBinding.f…ShoppingBrandArea.context"); ym1.e0.c(e0Var, context, new ym1.r(this.f116224e), 0, null, 12, null); o2 o2Var = o2.f210885a; ta f15 = ta.W0.f(this.f116223d.getContext()); if (f15 != null) { bv12 = f15.l0(); } else { bv12 = null; } FinderProfileHeaderUIC finderProfileHeaderUIC = this.f116223d; FinderJumpInfo finderJumpInfo = this.f116224e; boolean z15 = this.f116225f.f253280d; JSONObject jSONObject = new JSONObject(); jSONObject.put("link_word", finderJumpInfo.wording); jSONObject.put("finderusername", finderProfileHeaderUIC.f116152a1); jSONObject.put("is_brand_label", z15 ? 1 : 0); o2.f(o2Var, bv12, "profile_shopwindow_link", 1, jSONObject, false, 16, null); FinderProfileHeaderUIC finderProfileHeaderUIC2 = this.f116223d; long longExtra = finderProfileHeaderUIC2.getIntent().getLongExtra("finder_from_feed_id", 0); if (longExtra != 0) { HashMap hashMap = new HashMap(); hashMap.put("feedActionType", 72); String c15 = a5.f118672a.c(hashMap); de0 de02 = new de0(); de02.f19226d = longExtra; String Sy = ((ez1.f1) yz3.j.c(ez1.f1.class)).Sy(longExtra, finderProfileHeaderUIC2.getContextObj().f17677n); de02.f19228f = Sy; de02.f19229g = c15; Log.i("Finder.FinderProfileHeaderUIC", "handleShopBrandArea reportExtStats json=" + c15 + ", sessionBuffer=" + Sy); d60.z.d().f(new y2(finderProfileHeaderUIC2.getContextObj(), 18054, de02, Sy)); } j30.a.g(this, "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC$handleShopBrandArea$1$4", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V"); } } public static final class j1 implements View.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116226d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ FinderJumpInfo f116227e; public j1(FinderProfileHeaderUIC finderProfileHeaderUIC, FinderJumpInfo finderJumpInfo) { this.f116226d = finderProfileHeaderUIC; this.f116227e = finderJumpInfo; } public final void onClick(View view) { ArrayList arrayList = new ArrayList(); arrayList.add(view); Object[] array = arrayList.toArray(); arrayList.clear(); j30.a.b("com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC$refreshBanner$1$1", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array); ym1.e0.c(ym1.e0.f346876a, this.f116226d.getActivity(), new ym1.r(this.f116227e), 0, null, 12, null); j30.a.g(this, "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC$refreshBanner$1$1", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V"); } } public static final class k extends lh4.o implements kh4.a<bv1> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116228d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public k(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116228d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public bv1 invoke() { return ((ta) y24.r.f342954a.c(this.f116228d.getActivity()).a(ta.class)).l0(); } } public static final class k0 extends k.d { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116229a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ FinderJumpInfo f116230b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ lh4.a0 f116231c; public k0(FinderProfileHeaderUIC finderProfileHeaderUIC, FinderJumpInfo finderJumpInfo, lh4.a0 a0Var) { this.f116229a = finderProfileHeaderUIC; this.f116230b = finderJumpInfo; this.f116231c = a0Var; } @Override // y74.k.d public void c(View view, long j15, long j16, boolean z15) { lh4.m.g(view, "view"); if (z15) { o2 o2Var = o2.f210885a; ta f15 = ta.W0.f(this.f116229a.getContext()); bv1 l05 = f15 != null ? f15.l0() : null; FinderProfileHeaderUIC finderProfileHeaderUIC = this.f116229a; FinderJumpInfo finderJumpInfo = this.f116230b; boolean z16 = this.f116231c.f253280d; JSONObject jSONObject = new JSONObject(); jSONObject.put("link_word", finderJumpInfo.wording); jSONObject.put("finderusername", finderProfileHeaderUIC.f116152a1); jSONObject.put("is_brand_label", z16 ? 1 : 0); o2.f(o2Var, l05, "profile_shopwindow_link", 0, jSONObject, false, 16, null); } } } public static final class k1 implements View.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ kh4.l f116232d; public k1(kh4.l lVar) { this.f116232d = lVar; } public final void onClick(View view) { ArrayList arrayList = new ArrayList(); arrayList.add(view); Object[] array = arrayList.toArray(); arrayList.clear(); j30.a.b("com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC$sam$android_view_View_OnClickListener$0", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array); this.f116232d.invoke(view); j30.a.g(this, "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC$sam$android_view_View_OnClickListener$0", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V"); } } public static final class l implements sk1.l { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116233d; public l(FinderProfileHeaderUIC finderProfileHeaderUIC) { this.f116233d = finderProfileHeaderUIC; } @Override // sk1.l public void ZL(tl0 tl02, int i15, int i16) { lh4.m.g(tl02, "cmdItem"); y24.r rVar = y24.r.f342954a; if (((hy1.p) rVar.b(this.f116233d.getContext()).a(hy1.p.class)).isSelf() && ((hy1.p) rVar.b(this.f116233d.getContext()).a(hy1.p.class)).isSelfFlag() && tl02.f37688d == 106) { FinderProfileHeaderUIC.w6(this.f116233d, "handleCmd", null, 2, null); } } } public static final class l0 extends lh4.o implements kh4.a<FrameLayout> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116234d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public l0(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116234d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public FrameLayout invoke() { return this.f116234d.E5().K; } } public static final class l1 extends lh4.o implements kh4.q<Integer, Integer, String, wg4.b0> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ SpannableString f116235d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ int f116236e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ int f116237f; /* renamed from: g reason: collision with root package name */ public final /* synthetic */ StringBuilder f116238g; /* renamed from: h reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116239h; /* renamed from: i reason: collision with root package name */ public final /* synthetic */ sk1.q f116240i; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public l1(SpannableString spannableString, int i15, int i16, StringBuilder sb5, FinderProfileHeaderUIC finderProfileHeaderUIC, sk1.q qVar) { super(3); this.f116235d = spannableString; this.f116236e = i15; this.f116237f = i16; this.f116238g = sb5; this.f116239h = finderProfileHeaderUIC; this.f116240i = qVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object, java.lang.Object] */ @Override // kh4.q public wg4.b0 invoke(Integer num, Integer num2, String str) { int intValue = num.intValue(); int intValue2 = num2.intValue(); String str2 = str; lh4.m.g(str2, "nickname"); this.f116235d.setSpan(new p4(str2, this.f116236e, this.f116237f, false, false, new i(this.f116239h, this.f116240i), 16, null), intValue, intValue2, 17); StringBuilder sb5 = this.f116238g; sb5.append(str2 + '|'); return wg4.b0.f332794a; } } public static final class m extends lh4.o implements kh4.a<hy1.p> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116241d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public m(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116241d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public hy1.p invoke() { return (hy1.p) y24.r.f342954a.b(this.f116241d.getContext()).a(hy1.p.class); } } public static final class m0 extends lh4.o implements kh4.a<FrameLayout> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116242d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public m0(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116242d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public FrameLayout invoke() { return ((dm1.h0) ((wg4.n) this.f116242d.f116158f).getValue()).f201026f; } } public static final class m1 extends lh4.o implements kh4.a<View> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116243d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public m1(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116243d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public View invoke() { return this.f116243d.E5().Z; } } public static final class n extends lh4.o implements kh4.a<CollapsibleTextView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116244d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public n(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116244d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public CollapsibleTextView invoke() { return this.f116244d.E5().f201080v; } } public static final class n0 extends lh4.o implements kh4.a<LinearLayout> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116245d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public n0(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116245d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public LinearLayout invoke() { return this.f116245d.E5().M; } } public static final class n1 extends lh4.o implements kh4.a<TextView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116246d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public n1(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116246d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public TextView invoke() { return this.f116246d.E5().f201087y0; } } public static final class o extends lh4.o implements kh4.a<WeImageView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116247d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public o(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116247d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public WeImageView invoke() { return this.f116247d.E5().f201078u; } } public static final class o0 extends lh4.o implements kh4.a<LinearLayout> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116248d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public o0(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116248d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public LinearLayout invoke() { return this.f116248d.E5().f201039a0; } } public static final class o1 extends lh4.o implements kh4.a<LinearLayout> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116249d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public o1(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116249d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public LinearLayout invoke() { return this.f116249d.E5().f201089z0; } } public static final class p implements k6<kn1> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116251d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ boolean f116252e; public p(FinderProfileHeaderUIC finderProfileHeaderUIC, boolean z15) { this.f116251d = finderProfileHeaderUIC; this.f116252e = z15; } /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, bw3.ul0] */ @Override // t32.k6 public void D6(kn1 kn12, ul0 ul02) { sk1.q profileContact; kn1 kn13 = kn12; lh4.m.g(kn13, "req"); lh4.m.g(ul02, "ret"); boolean z15 = false; if (ul02.f38816e == 0) { d.b bVar = sk1.d.f302423a; sk1.q b15 = bVar.b(this.f116251d.f116152a1); if (b15 != null) { boolean z16 = this.f116252e; FinderProfileHeaderUIC finderProfileHeaderUIC = this.f116251d; if (kn13.f27551e == 1) { b15.field_extFlag |= 16384; if (z16) { i14.y0.g(finderProfileHeaderUIC.getActivity(), finderProfileHeaderUIC.getString(R.string.eom), R.raw.icons_filled_eyes_off); } if (d.b.h(bVar, finderProfileHeaderUIC.f116152a1, null, true, false, 10, null) && (profileContact = finderProfileHeaderUIC.getProfileContact()) != null) { FinderProfileHeaderUIC.k5(finderProfileHeaderUIC, profileContact); } } else { b15.field_extFlag &= -16385; if (z16) { i14.y0.g(finderProfileHeaderUIC.getActivity(), finderProfileHeaderUIC.getString(R.string.eon), R.raw.icons_filled_done); } } bVar.o(b15); if (kn13.f27551e == 1) { z15 = true; } finderProfileHeaderUIC.x6(z15, ""); return; } return; } i14.y0.makeText(this.f116251d.getActivity(), this.f116251d.getString(R.string.eoi), 0).show(); } } public static final class p0 extends lh4.o implements kh4.a<View> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116253d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public p0(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116253d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public View invoke() { return this.f116253d.E5().f201041b0; } } public static final class q extends lh4.o implements kh4.a<RoundCornerRelativeLayout> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116254d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public q(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116254d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public RoundCornerRelativeLayout invoke() { return this.f116254d.E5().f201082w; } } public static final class q0 extends lh4.o implements kh4.a<dm1.a> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116255d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public q0(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116255d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public dm1.a invoke() { return ((dm1.h0) ((wg4.n) this.f116255d.f116158f).getValue()).f201027g; } } public static final class r extends lh4.o implements kh4.a<LinearLayout> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116256d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public r(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116256d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public LinearLayout invoke() { return this.f116256d.E5().B; } } public static final class r0 extends lh4.o implements kh4.a<FrameLayout> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116257d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public r0(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116257d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public FrameLayout invoke() { return ((dm1.y) ((wg4.n) this.f116257d.f116156e).getValue()).f201198m; } } public static final class s extends lh4.o implements kh4.a<TextView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116258d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public s(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116258d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public TextView invoke() { return this.f116258d.E5().C; } } public static final class s0 extends lh4.o implements kh4.a<LinearLayout> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116259d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public s0(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116259d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public LinearLayout invoke() { return this.f116259d.E5().S; } } public static final class t extends lh4.o implements kh4.a<WeImageView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116260d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public t(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116260d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public WeImageView invoke() { return this.f116260d.E5().f201074s; } } public static final class t0 extends lh4.o implements kh4.a<WeImageView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116261d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public t0(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116261d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public WeImageView invoke() { return this.f116261d.E5().R; } } public static final class u extends lh4.o implements kh4.a<WeImageView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116262d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public u(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116262d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public WeImageView invoke() { return this.f116262d.E5().H; } } public static final class u0 extends lh4.o implements kh4.a<TextView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116263d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public u0(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116263d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public TextView invoke() { return this.f116263d.E5().T; } } public static final class v extends lh4.o implements kh4.a<Boolean> { /* renamed from: d reason: collision with root package name */ public static final v f116264d = new v(); public v() { super(0); } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public Boolean invoke() { zz1.e.f356376d.getClass(); boolean z15 = true; if (zz1.e.I5.t().intValue() != 1) { z15 = false; } return Boolean.valueOf(z15); } } public static final class v0 extends lh4.o implements kh4.a<CoordinatorLayout> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116265d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public v0(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116265d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public CoordinatorLayout invoke() { return ((dm1.h0) ((wg4.n) this.f116265d.f116158f).getValue()).f201022b; } } public static final class w extends lh4.o implements kh4.a<LinearLayout> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116266d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public w(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116266d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public LinearLayout invoke() { return this.f116266d.E5().I; } } public static final class w0 implements t80.k<t80.d> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116267a; public w0(FinderProfileHeaderUIC finderProfileHeaderUIC) { this.f116267a = finderProfileHeaderUIC; } @Override // t80.k public void a(t80.d dVar, t80.o oVar) { lh4.m.g(dVar, "task"); lh4.m.g(oVar, "status"); if (oVar == t80.o.f310242g) { i14.y0.makeText(this.f116267a.getActivity(), this.f116267a.getString(R.string.f9b), 0).show(); } else { i14.y0.makeText(this.f116267a.getActivity(), this.f116267a.getString(R.string.f9d), 0).show(); } } } public static final class x extends lh4.o implements kh4.a<TextView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116268d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public x(FinderProfileHeaderUIC finderProfileHeaderUIC) { super(0); this.f116268d = finderProfileHeaderUIC; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public TextView invoke() { return this.f116268d.E5().J; } } public static final class x0 extends k.d { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116269a; public x0(FinderProfileHeaderUIC finderProfileHeaderUIC) { this.f116269a = finderProfileHeaderUIC; } @Override // y74.k.d public void c(View view, long j15, long j16, boolean z15) { lh4.m.g(view, "view"); if (z15) { o2 o2Var = o2.f210885a; ta f15 = ta.W0.f(this.f116269a.getContext()); o2.f(o2Var, f15 != null ? f15.l0() : null, "icon_avatar", 0, null, false, 24, null); } } } public static final class y implements Runnable { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ LinearLayout f116270d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116271e; public y(LinearLayout linearLayout, FinderProfileHeaderUIC finderProfileHeaderUIC) { this.f116270d = linearLayout; this.f116271e = finderProfileHeaderUIC; } public final void run() { hy1.a aVar; View view = this.f116270d; int measuredHeight = view.getMeasuredHeight(); while (view.getId() != R.id.gyg) { measuredHeight += view.getTop(); ViewParent parent = view.getParent(); if (parent instanceof View) { view = (View) parent; continue; } else { view = null; continue; } if (view == null) { break; } } int measuredHeight2 = measuredHeight + this.f116271e.E5().L.getMeasuredHeight(); if (measuredHeight2 > 0 && (aVar = (hy1.a) y24.r.f342954a.b(this.f116271e.getContext()).e(hy1.a.class)) != null) { aVar.M = measuredHeight2; } } } public static final class y0 extends k.d { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116272a; public y0(FinderProfileHeaderUIC finderProfileHeaderUIC) { this.f116272a = finderProfileHeaderUIC; } @Override // y74.k.d public void c(View view, long j15, long j16, boolean z15) { lh4.m.g(view, "view"); if (z15) { o2 o2Var = o2.f210885a; ta f15 = ta.W0.f(this.f116272a.getContext()); o2.f(o2Var, f15 != null ? f15.l0() : null, "link_halfscreen_profile_avatar_profile", 0, null, false, 24, null); } } } public static final class z implements View.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116273d; public z(FinderProfileHeaderUIC finderProfileHeaderUIC) { this.f116273d = finderProfileHeaderUIC; } public final void onClick(View view) { int i15; ArrayList arrayList = new ArrayList(); arrayList.add(view); Object[] array = arrayList.toArray(); arrayList.clear(); j30.a.b("com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC$handleFansLayout$1", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array); dj1.b bVar = dj1.b.f200487e; ij1.b a15 = a.C2191a.a(bVar, this.f116273d.f116152a1, false, 2, null); if (a15 != null) { i15 = a15.field_fansAddCount; } else { i15 = 0; } if (i15 > 0) { yz3.d c15 = yz3.j.c(ez1.f1.class); lh4.m.f(c15, "getService(FinderReportLogic::class.java)"); ez1.f1.nO0((ez1.f1) c15, "3", 1, 2, 5, 3, i15, null, null, 0, this.f116273d.getContextObj(), 0, 0, 3520, null); } ij1.c cVar = new ij1.c(r32.b.c(this.f116273d.getContext())); cVar.field_fansAddCount = 0; bVar.k6(cVar, ij1.i.ACCOUNT_MODIFY); xz1 l15 = ((FinderCommonFeatureService) yz3.j.c(FinderCommonFeatureService.class)).lJ0().l("AuthorProfileFans"); com.tencent.mm.plugin.finder.extension.reddot.e1 c65 = ((FinderCommonFeatureService) yz3.j.c(FinderCommonFeatureService.class)).lJ0().c6("AuthorProfileFans"); FinderProfileHeaderUIC finderProfileHeaderUIC = this.f116273d; if (!(c65 == null || l15 == null)) { ez1.c1.g(ez1.c1.f210617a, "3", c65, l15, 2, finderProfileHeaderUIC.getContextObj(), 0, null, 0, 0, 480, null); ((FinderCommonFeatureService) yz3.j.c(FinderCommonFeatureService.class)).lJ0().e("AuthorProfileFans"); } ((com.tencent.mm.plugin.finder.utils.b) yz3.j.c(com.tencent.mm.plugin.finder.utils.b.class)).iO0(this.f116273d.getActivity(), null); j30.a.g(this, "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC$handleFansLayout$1", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V"); } } public static final class z0 extends k.d { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ FinderProfileHeaderUIC f116274a; public z0(FinderProfileHeaderUIC finderProfileHeaderUIC) { this.f116274a = finderProfileHeaderUIC; } @Override // y74.k.d public void c(View view, long j15, long j16, boolean z15) { lh4.m.g(view, "view"); if (z15) { o2 o2Var = o2.f210885a; ta f15 = ta.W0.f(this.f116274a.getContext()); o2.f(o2Var, f15 != null ? f15.l0() : null, "channel_profile_otherfrdfollow", 0, null, false, 24, null); } } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public FinderProfileHeaderUIC(AppCompatActivity appCompatActivity) { super(appCompatActivity); lh4.m.g(appCompatActivity, EnvConsts.ACTIVITY_MANAGER_SRVNAME); String stringExtra = getActivity().getIntent().getStringExtra("finder_username"); this.f116152a1 = stringExtra == null ? "" : stringExtra; this.f116155d1 = wg4.h.a(new k(this)); this.f116157e1 = ((e2) yz3.j.c(e2.class)).TL(); View view = this.f116162h; lh4.m.e(view, "null cannot be cast to non-null type android.view.ViewGroup"); this.f116159f1 = new by1.c((ViewGroup) view); this.f116163h1 = wg4.h.a(v.f116264d); this.f116165i1 = true; this.f116167j1 = true; this.f116168k1 = wg4.h.a(new m(this)); this.f116169l1 = ""; this.f116170m1 = 1; this.f116172n1 = new l(this); } public static final void J5(FinderProfileHeaderUIC finderProfileHeaderUIC) { boolean z15; int i15 = 8; finderProfileHeaderUIC.C5().f200952a.setVisibility(8); ((CoordinatorLayout) ((wg4.n) finderProfileHeaderUIC.N).getValue()).setVisibility(0); if (!finderProfileHeaderUIC.q6() || !((hy1.n1) y24.r.f342954a.b(finderProfileHeaderUIC.getContext()).a(hy1.n1.class)).f228872o || ((hy1.p) ((wg4.n) finderProfileHeaderUIC.f116168k1).getValue()).l5()) { ((LinearLayout) ((wg4.n) finderProfileHeaderUIC.Q).getValue()).setVisibility(8); } else { ((LinearLayout) ((wg4.n) finderProfileHeaderUIC.Q).getValue()).setVisibility(0); } hy1.a aVar = (hy1.a) y24.r.f342954a.b(finderProfileHeaderUIC.getContext()).e(hy1.a.class); if (aVar != null) { z15 = aVar.N; } else { z15 = false; } FrameLayout frameLayout = (FrameLayout) ((wg4.n) finderProfileHeaderUIC.R).getValue(); if (z15) { i15 = 0; } frameLayout.setVisibility(i15); } public static final void j5(FinderProfileHeaderUIC finderProfileHeaderUIC) { finderProfileHeaderUIC.getClass(); Log.i("Finder.FinderProfileHeaderUIC", "[initEditLayout] onClick username:" + finderProfileHeaderUIC.f116152a1); Intent intent = new Intent(); ta.a.e(ta.W0, finderProfileHeaderUIC.getActivity(), intent, 0, null, 0, 0, false, 0, 128, null); ((com.tencent.mm.plugin.finder.utils.b) yz3.j.c(com.tencent.mm.plugin.finder.utils.b.class)).HO0(finderProfileHeaderUIC.getActivity(), intent, 10010, finderProfileHeaderUIC.f116152a1); xz1 b05 = ((FinderCommonFeatureService) yz3.j.c(FinderCommonFeatureService.class)).lJ0().b0("FinderSetting", finderProfileHeaderUIC.f116152a1); com.tencent.mm.plugin.finder.extension.reddot.e1 L2 = ((FinderCommonFeatureService) yz3.j.c(FinderCommonFeatureService.class)).lJ0().L("FinderSetting", finderProfileHeaderUIC.f116152a1); if (!(L2 == null || b05 == null)) { ez1.c1.g(ez1.c1.f210617a, "3", L2, b05, 2, finderProfileHeaderUIC.getContextObj(), 0, null, 0, 0, 480, null); } ((FinderCommonFeatureService) yz3.j.c(FinderCommonFeatureService.class)).lJ0().O("FinderSetting", finderProfileHeaderUIC.f116152a1); String str = finderProfileHeaderUIC.f116152a1; lh4.m.g(str, "username"); w4.a.c(((FinderCommonFeatureService) yz3.j.c(FinderCommonFeatureService.class)).lJ0(), "ProfileEntrance", new com.tencent.mm.plugin.finder.extension.reddot.v0(new int[]{1000}), false, str, 4, null); ((tr.b) yz3.j.c(tr.b.class)).Db0(finderProfileHeaderUIC.f116152a1, e6.a(), 1); finderProfileHeaderUIC.D5().setVisibility(8); } public static final void k5(FinderProfileHeaderUIC finderProfileHeaderUIC, sk1.q qVar) { finderProfileHeaderUIC.getClass(); y24.r rVar = y24.r.f342954a; FinderProfileFeedLoader.State state = ((FinderProfileFeedUIC) rVar.d(((FinderProfileTabUIC) rVar.c(finderProfileHeaderUIC.getActivity()).a(FinderProfileTabUIC.class)).A6(FinderProfileFeedFragment.class)).a(FinderProfileFeedUIC.class)).getState(); ((ez1.f1) yz3.j.c(ez1.f1.class)).SO0(finderProfileHeaderUIC.f116152a1, 3, e6.e(), a5.f118672a.S(qVar) ? 1 : 0, state == FinderProfileFeedLoader.State.PRIVATE_LOCK ? 1 : 0); bv1 contextObj = finderProfileHeaderUIC.getContextObj(); String str = finderProfileHeaderUIC.f116152a1; int i15 = wk1.x.f334055v; o5(finderProfileHeaderUIC, contextObj, str, 2, finderProfileHeaderUIC.f116153b1, false, null, null, 112, null); finderProfileHeaderUIC.M5(); finderProfileHeaderUIC.I5("setFollowed"); finderProfileHeaderUIC.m5(); } public static void o5(FinderProfileHeaderUIC finderProfileHeaderUIC, bv1 bv12, String str, int i15, long j15, boolean z15, String str2, jg1 jg12, int i16, Object obj) { long j16; boolean z16; String str3; jg1 jg13; boolean z17; int i17; int i18; if ((i16 & 8) != 0) { j16 = 0; } else { j16 = j15; } if ((i16 & 16) != 0) { z16 = false; } else { z16 = z15; } if ((i16 & 32) != 0) { str3 = ""; } else { str3 = str2; } if ((i16 & 64) != 0) { jg13 = null; } else { jg13 = jg12; } int intExtra = finderProfileHeaderUIC.getIntent().getIntExtra("key_enter_profile_type", -1); boolean z18 = true; if (intExtra == 11) { z17 = true; } else { z17 = false; } if (!(intExtra == 45 || intExtra == 46)) { z18 = false; } if (z17) { i17 = 2; } else if (z18) { i17 = 8; } else { i17 = 0; } int intExtra2 = finderProfileHeaderUIC.getIntent().getIntExtra("key_entrance_type", -1); int intExtra3 = finderProfileHeaderUIC.getIntent().getIntExtra("key_enter_profile_type", 0); if ((intExtra2 < 34 || intExtra2 > 37) && intExtra2 != 14 && intExtra2 != 45 && intExtra2 != 46) { i18 = -1; } else if (intExtra3 > 0) { i18 = intExtra3; } else { i18 = intExtra2; } pu1.r0.e(pu1.r0.f285698a, bv12, str, i15, j16, z16, str3, jg13, Integer.valueOf(i17), i18, null, null, 1536, null); } public static /* synthetic */ void w6(FinderProfileHeaderUIC finderProfileHeaderUIC, String str, String str2, int i15, Object obj) { if ((i15 & 2) != 0) { str2 = ""; } finderProfileHeaderUIC.v6(str, str2); } public final WeImageView A5() { return (WeImageView) this.f116171n.getValue(); } public final dm1.a C5() { return (dm1.a) this.P.getValue(); } public final TextView D5() { return (TextView) this.S.getValue(); } public final dm1.i0 E5() { return (dm1.i0) this.f116160g.getValue(); } public final void F5() { y24.r rVar = y24.r.f342954a; if ((!((hy1.p) rVar.b(getContext()).a(hy1.p.class)).isSelf() && !((hy1.p) rVar.b(getContext()).a(hy1.p.class)).isSelfFlag()) || !((hy1.p) ((wg4.n) this.f116168k1).getValue()).m5()) { LinearLayout linearLayout = E5().D; lh4.m.f(linearLayout, "profileHeaderUiBinding.finderProfileFollowArea"); linearLayout.post(new y(linearLayout, this)); } } public final void G5() { p.a aVar = (p.a) hy1.p.f228915h.get(this.f116152a1); if (aVar == null) { aVar = new p.a(0, 0, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1048575, null); } if (aVar.f228920b <= 0 || !p6()) { ((LinearLayout) ((wg4.n) this.f116183w).getValue()).setVisibility(8); return; } boolean q65 = q6(); ((LinearLayout) ((wg4.n) this.f116183w).getValue()).setVisibility(0); if (q65) { ((TextView) ((wg4.n) this.f116188z).getValue()).setText(getContext().getResources().getString(R.string.cue, com.tencent.mm.plugin.finder.utils.s0.d((long) aVar.f228920b))); ((LinearLayout) ((wg4.n) this.f116183w).getValue()).setOnClickListener(new z(this)); return; } ((TextView) ((wg4.n) this.f116188z).getValue()).setText(getContext().getResources().getString(R.string.cuh, com.tencent.mm.plugin.finder.utils.s0.d((long) aVar.f228920b))); } public final void H5() { boolean z15; LinearLayout linearLayout = E5().D; lh4.m.f(linearLayout, "profileHeaderUiBinding.finderProfileFollowArea"); FrameLayout frameLayout = E5().E; lh4.m.f(frameLayout, "profileHeaderUiBinding.finderProfileFollowBtn"); FrameLayout frameLayout2 = E5().f201085x0; lh4.m.f(frameLayout2, "profileHeaderUiBinding.sendMsgBtn"); FrameLayout frameLayout3 = E5().N.f201091a; lh4.m.f(frameLayout3, "profileHeaderUiBinding.f…ea.finderProfileMemberBtn"); if (frameLayout.getVisibility() == 8 && frameLayout2.getVisibility() == 8 && frameLayout3.getVisibility() == 8) { ky1.d dVar = this.U; if (dVar != null) { if (dVar.b().getVisibility() == 0) { z15 = true; } else { z15 = false; } if (!z15 && !((hy1.n1) y24.r.f342954a.c(getActivity()).a(hy1.n1.class)).f228873p) { linearLayout.setVisibility(8); return; } } else { lh4.m.p("enterpriseAdd"); throw null; } } linearLayout.setVisibility(0); } public final void I5(String str) { int i15; FrameLayout frameLayout; TextView textView; String str2; FrameLayout frameLayout2 = E5().E; lh4.m.f(frameLayout2, "profileHeaderUiBinding.finderProfileFollowBtn"); zz1.e.f356376d.getClass(); if (((Number) ((tl1.c) ((wg4.n) zz1.e.f356520o4).getValue()).t()).intValue() == 1) { Log.i("Finder.FinderProfileHeaderUIC", "handleFollowBtn return for FINDER_PROFILE_COVER_TEST_ENABLE"); frameLayout2.setVisibility(8); return; } y24.r rVar = y24.r.f342954a; if (((hy1.p) rVar.b(getContext()).a(hy1.p.class)).isSelf() || ((hy1.p) rVar.b(getContext()).a(hy1.p.class)).isSelfFlag()) { frameLayout = frameLayout2; i15 = 8; } else if (!this.f116157e1) { i15 = 8; frameLayout = frameLayout2; } else { ky1.e eVar = this.f116187y0; if (eVar != null) { String str3 = this.f116152a1; boolean isSelf = ((hy1.p) rVar.b(getContext()).a(hy1.p.class)).isSelf(); lh4.m.g(str3, "username"); FinderFollowMoreView a15 = eVar.a(); boolean booleanValue = ((Boolean) ((wg4.n) eVar.f249763d).getValue()).booleanValue(); a15.getClass(); a15.f116519i = str3; Context context = a15.getContext(); lh4.m.e(context, "null cannot be cast to non-null type android.app.Activity"); Activity activity = (Activity) context; z81.g gVar = (z81.g) yz3.j.c(z81.g.class); wg4.l[] lVarArr = new wg4.l[8]; ta.a aVar = ta.W0; ta f15 = aVar.f(activity); lVarArr[0] = new wg4.l("finder_tab_context_id", f15 != null ? f15.f197191p : null); ta f16 = aVar.f(activity); lVarArr[1] = new wg4.l("finder_context_id", f16 != null ? f16.f197189n : null); ta f17 = aVar.f(activity); lVarArr[2] = new wg4.l("behaviour_session_id", f17 != null ? f17.f197190o : null); ta f18 = aVar.f(activity); lVarArr[3] = new wg4.l("comment_scene", f18 != null ? Integer.valueOf(f18.f197187i) : null); Context context2 = a15.getContext(); lh4.m.f(context2, "context"); lVarArr[4] = new wg4.l("finder_username", r32.b.c(context2)); lVarArr[5] = new wg4.l("profile_state_type", Integer.valueOf(isSelf ? 1 : 2)); lVarArr[6] = new wg4.l("profile_screen_type", Integer.valueOf(booleanValue ? 2 : 1)); lVarArr[7] = new wg4.l("recommend_source_finder_username", str3); gVar.G90(a15, "recommend_account", xg4.r0.f(lVarArr), 40, 25496); z81.g gVar2 = (z81.g) yz3.j.c(z81.g.class); TextView textView2 = a15.f116515e; if (textView2 != null) { wg4.l[] lVarArr2 = new wg4.l[8]; ta f19 = aVar.f(activity); if (f19 != null) { str2 = f19.f197191p; textView = textView2; } else { textView = textView2; str2 = null; } lVarArr2[0] = new wg4.l("finder_tab_context_id", str2); ta f25 = aVar.f(activity); lVarArr2[1] = new wg4.l("finder_context_id", f25 != null ? f25.f197189n : null); ta f26 = aVar.f(activity); int i16 = 2; lVarArr2[2] = new wg4.l("behaviour_session_id", f26 != null ? f26.f197190o : null); ta f27 = aVar.f(activity); lVarArr2[3] = new wg4.l("comment_scene", f27 != null ? Integer.valueOf(f27.f197187i) : null); Context context3 = a15.getContext(); lh4.m.f(context3, "context"); lVarArr2[4] = new wg4.l("finder_username", r32.b.c(context3)); lVarArr2[5] = new wg4.l("profile_state_type", Integer.valueOf(isSelf ? 1 : 2)); if (!booleanValue) { i16 = 1; } lVarArr2[6] = new wg4.l("profile_screen_type", Integer.valueOf(i16)); lVarArr2[7] = new wg4.l("recommend_source_finder_username", str3); gVar2.G90(textView, "more_recommend_account", xg4.r0.f(lVarArr2), 40, 25496); TextView textView3 = E5().F; lh4.m.f(textView3, "profileHeaderUiBinding.finderProfileFollowBtnTv"); x4.m0(textView3.getPaint(), 0.8f); if (!lh4.m.b(str, "onCreate")) { frameLayout2.setVisibility(0); } f12.s sVar = f12.s.f211957e; if (f12.s.b(sVar, this.f116152a1, true, false, 4, null)) { FrameLayout frameLayout3 = E5().E; lh4.m.f(frameLayout3, "profileHeaderUiBinding.finderProfileFollowBtn"); t5().setImageDrawable(c04.a.e(getContext().getResources(), R.raw.finder_filled_correct, 0.0f)); t5().setIconColor(getResources().getColor(R.color.f358398mc)); A5().setImageDrawable(c04.a.e(getContext().getResources(), R.raw.finder_filled_correct, 0.0f)); int b15 = gy3.a.b(getContext(), 12); WeImageView A5 = A5(); ViewGroup.LayoutParams layoutParams = A5().getLayoutParams(); lh4.m.e(layoutParams, "null cannot be cast to non-null type android.view.ViewGroup.LayoutParams"); layoutParams.width = b15; layoutParams.height = b15; A5.setLayoutParams(layoutParams); if (((FinderProfileUiStyleUIC) rVar.c(getActivity()).a(FinderProfileUiStyleUIC.class)).J0()) { frameLayout3.setBackgroundResource(R.drawable.av4); r5().setBackgroundResource(R.drawable.av4); A5().setIconColor(getResources().getColor(R.color.f357977an)); } else { frameLayout3.setBackgroundResource(R.drawable.abh); r5().setBackgroundResource(R.drawable.abh); A5().setIconColor(getResources().getColor(R.color.f358398mc)); } TextView textView4 = E5().F; lh4.m.f(textView4, "profileHeaderUiBinding.finderProfileFollowBtnTv"); A5().setVisibility(0); if (((FinderProfileUiStyleUIC) rVar.c(getActivity()).a(FinderProfileUiStyleUIC.class)).J0()) { s5().setTextColor(getResources().getColor(R.color.f357977an)); textView4.setTextColor(getResources().getColor(R.color.f357977an)); A5().setIconColor(getResources().getColor(R.color.f357977an)); } else { s5().setTextColor(getResources().getColor(R.color.f358398mc)); textView4.setTextColor(getResources().getColor(R.color.f358398mc)); A5().setIconColor(getResources().getColor(R.color.f358398mc)); } s5().setText(R.string.f368173cy3); textView4.setText(R.string.f368173cy3); t5().setVisibility(0); sk1.q profileContact = getProfileContact(); if (profileContact != null) { hy1.c1 c1Var = new hy1.c1(this, profileContact); frameLayout3.setOnClickListener(new k1(c1Var)); r5().setOnClickListener(new k1(c1Var)); frameLayout3.setTag(R.id.e7d, getContext().getString(R.string.eyb)); frameLayout3.post(new hy1.b1(this)); } } else if (sVar.c(this.f116152a1)) { FrameLayout frameLayout4 = E5().E; lh4.m.f(frameLayout4, "profileHeaderUiBinding.finderProfileFollowBtn"); A5().setVisibility(8); t5().setVisibility(8); z6(); TextView textView5 = E5().F; lh4.m.f(textView5, "profileHeaderUiBinding.finderProfileFollowBtnTv"); s5().setText(R.string.f368171cy1); s5().setTextColor(getResources().getColor(R.color.f358398mc)); s5().setBackgroundResource(R.drawable.abh); textView5.setText(R.string.f368171cy1); textView5.setTextColor(getResources().getColor(R.color.f358398mc)); frameLayout4.setBackgroundResource(R.drawable.abh); sk1.q profileContact2 = getProfileContact(); if (profileContact2 != null) { frameLayout4.setOnClickListener(new k1(new hy1.h1(this, profileContact2))); r5().setOnClickListener(null); frameLayout4.setTag(R.id.e7d, textView5.getText()); frameLayout4.post(new hy1.g1(this)); } } else { sk1.q profileContact3 = getProfileContact(); if (profileContact3 != null) { FrameLayout frameLayout5 = E5().E; lh4.m.f(frameLayout5, "profileHeaderUiBinding.finderProfileFollowBtn"); TextView textView6 = E5().F; lh4.m.f(textView6, "profileHeaderUiBinding.finderProfileFollowBtnTv"); t5().setVisibility(8); t5().setImageDrawable(c04.a.e(getContext().getResources(), R.raw.icon_filled_add, 0.0f)); A5().setVisibility(8); A5().setImageDrawable(c04.a.e(getContext().getResources(), R.raw.icon_filled_add, 0.0f)); wg4.g gVar3 = zz1.e.Ea; if (((Number) ((tl1.c) ((wg4.n) gVar3).getValue()).t()).intValue() == 1) { t5().setIconColor(getResources().getColor(R.color.f357977an)); A5().setIconColor(getResources().getColor(R.color.f357977an)); } else { t5().setIconColor(getResources().getColor(R.color.FG_0_5)); A5().setIconColor(getResources().getColor(R.color.FG_0_5)); } int b16 = gy3.a.b(getContext(), 16); WeImageView A52 = A5(); ViewGroup.LayoutParams layoutParams2 = A5().getLayoutParams(); lh4.m.e(layoutParams2, "null cannot be cast to non-null type android.view.ViewGroup.LayoutParams"); layoutParams2.width = b16; layoutParams2.height = b16; A52.setLayoutParams(layoutParams2); z6(); boolean S2 = a5.f118672a.S(profileContact3); if (lh4.m.b(str, "onSceneEnd")) { ((ez1.f1) yz3.j.c(ez1.f1.class)).SO0(this.f116152a1, 4, e6.e(), S2 ? 1 : 0, ((FinderProfileFeedUIC) rVar.d(((FinderProfileTabUIC) rVar.c(getActivity()).a(FinderProfileTabUIC.class)).A6(FinderProfileFeedFragment.class)).a(FinderProfileFeedUIC.class)).getState() == FinderProfileFeedLoader.State.PRIVATE_LOCK ? 1 : 0); } if (S2) { s5().setText(R.string.cxe); textView6.setText(R.string.cxe); } else { s5().setText(R.string.cxd); textView6.setText(R.string.cxd); } if (((Number) ((tl1.c) ((wg4.n) gVar3).getValue()).t()).intValue() == 1) { r5().setBackgroundResource(R.drawable.abg); frameLayout5.setBackgroundResource(R.drawable.abg); } else { r5().setBackgroundResource(R.drawable.abh); frameLayout5.setBackgroundResource(R.drawable.abh); } boolean[] zArr = {false}; frameLayout5.setOnTouchListener(new hy1.d1(zArr)); hy1.f1 f1Var = new hy1.f1(zArr, this, S2); frameLayout5.setOnClickListener(new k1(f1Var)); r5().setOnClickListener(new k1(f1Var)); frameLayout5.setTag(R.id.e7d, textView6.getText()); frameLayout5.post(new hy1.e1(this)); } } new Handler(Looper.getMainLooper()).postDelayed(new a0(this), 300); H5(); return; } lh4.m.p("moreTv"); throw null; } lh4.m.p("followMore"); throw null; } frameLayout.setVisibility(i15); H5(); } public final void K5() { JSONObject jSONObject; View findViewById = this.f116162h.findViewById(R.id.l9k); String stringExtra = getIntent().getStringExtra("key_same_receive_link"); boolean booleanExtra = getIntent().getBooleanExtra("key_enter_from_story", false); String stringExtra2 = getIntent().getStringExtra("key_packet_id"); String str = ""; if (stringExtra2 == null) { stringExtra2 = str; } String stringExtra3 = getIntent().getStringExtra("key_extra_info"); if (stringExtra3 != null) { str = stringExtra3; } Log.i("Finder.FinderProfileHeaderUIC", "[handleLuckMoneyCoverLayout] forbid:" + ((Boolean) ((wg4.n) this.f116163h1).getValue()).booleanValue() + " redPackId:" + stringExtra2 + " url:" + stringExtra + " extraInfo:" + str); int i15 = 1; if ((stringExtra == null || stringExtra.length() == 0) || ((Boolean) ((wg4.n) this.f116163h1).getValue()).booleanValue()) { k30.a aVar = new k30.a(); ThreadLocal<k30.a> threadLocal = k30.c.f244265a; aVar.c(8); j30.a.d(findViewById, aVar.b(), "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC", "handleLuckMoneyCoverLayout", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById.setVisibility(((Integer) aVar.a(0)).intValue()); j30.a.e(findViewById, "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC", "handleLuckMoneyCoverLayout", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); return; } TextView textView = (TextView) findViewById.findViewById(R.id.l9l); if (textView != null) { x4.n0(textView.getPaint()); } try { jSONObject = new JSONObject(str); } catch (JSONException unused) { jSONObject = new JSONObject(); } jSONObject.put("red_cover_id", stringExtra2); jSONObject.put("finderusername", this.f116152a1); jSONObject.put("red_cover_type", 1); if (booleanExtra) { i15 = 2; } jSONObject.put("red_entrance_type", i15); k30.a aVar2 = new k30.a(); ThreadLocal<k30.a> threadLocal2 = k30.c.f244265a; aVar2.c(0); j30.a.d(findViewById, aVar2.b(), "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC", "handleLuckMoneyCoverLayout", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById.setVisibility(((Integer) aVar2.a(0)).intValue()); j30.a.e(findViewById, "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC", "handleLuckMoneyCoverLayout", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById.setOnClickListener(new b0(stringExtra, this, jSONObject)); y74.m.h(findViewById, new c0(this, jSONObject)); } public final void L5(String str) { boolean z15; String str2; s12 s122; new Handler(Looper.getMainLooper()).postDelayed(new d0(this), 300); y24.r rVar = y24.r.f342954a; if (((hy1.p) rVar.b(getContext()).a(hy1.p.class)).isSelf() || ((hy1.p) rVar.b(getContext()).a(hy1.p.class)).isSelfFlag() || zz1.e.f356376d.o().t().intValue() <= 0 || !this.f116157e1 || r6()) { z15 = false; } else { z15 = true; } if (z15) { if (lh4.m.b(str, "onCreate")) { FrameLayout frameLayout = E5().f201085x0; lh4.m.f(frameLayout, "profileHeaderUiBinding.sendMsgBtn"); y74.m.h(frameLayout, new e0(this)); } else { zz1.e.f356376d.getClass(); if (((Number) ((tl1.c) ((wg4.n) zz1.e.f356520o4).getValue()).t()).intValue() == 1) { E5().f201085x0.setVisibility(8); } else { E5().f201085x0.setVisibility(0); } } E5().f201085x0.setOnClickListener(new f0(this)); } else { E5().f201085x0.setVisibility(8); } TextView textView = E5().V; lh4.m.f(textView, "profileHeaderUiBinding.finderProfileSendMsgBtnTv"); x4.m0(textView.getPaint(), 0.8f); p.a aVar = (p.a) hy1.p.f228915h.get(this.f116152a1); if (aVar == null || (s122 = aVar.f228929k) == null || (str2 = s122.f35978d) == null) { str2 = ""; } if (!Util.isNullOrNil(str2)) { FinderJumpInfo finderJumpInfo = new FinderJumpInfo(); finderJumpInfo.jumpinfo_type = 3; NativeInfo nativeInfo = new NativeInfo(); nativeInfo.native_type = 7; JSONObject jSONObject = new JSONObject(); jSONObject.put("kf_url", str2); nativeInfo.necessary_params = jSONObject.toString(); finderJumpInfo.native_info = nativeInfo; ym1.r rVar2 = new ym1.r(finderJumpInfo); rVar2.f347025j = getProfileContact(); E5().f201085x0.setVisibility(0); E5().V.setText(getContext().getString(R.string.f0m)); E5().f201085x0.setOnClickListener(new g0(this, rVar2)); } } public final void M5() { sk1.q profileContact = getProfileContact(); if (profileContact != null) { x4.m0(((TextView) ((wg4.n) this.f116175p).getValue()).getPaint(), 0.8f); y24.r rVar = y24.r.f342954a; j80.d<tt1.j0> M3 = ((tt1.v0) rVar.e(e2.class).c(tt1.v0.class)).M3(); tt1.f fVar = new tt1.f(profileContact.k0(), null, 2, null); ImageView imageView = (ImageView) ((wg4.n) this.f116178r).getValue(); lh4.m.f(imageView, "avatarIv"); M3.c(fVar, imageView, ((tt1.v0) rVar.e(e2.class).c(tt1.v0.class)).W(h0.a.f315072h)); ((LinearLayout) ((wg4.n) this.G).getValue()).setOnClickListener(new h0(this)); ((ImageView) ((wg4.n) this.f116178r).getValue()).setOnClickListener(new i0(profileContact, this)); ((WeImageView) ((wg4.n) this.f116177q).getValue()).setVisibility(8); } } public final bv1 getContextObj() { return (bv1) this.f116155d1.getValue(); } public final sk1.q getProfileContact() { return sk1.d.f302423a.b(this.f116152a1); } public final p.a l5(b5 b5Var) { LinkedList<tk0> linkedList; T t15; boolean z15; p.a aVar = (p.a) hy1.p.f228915h.get(this.f116152a1); if (aVar == null) { aVar = new p.a(0, 0, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1048575, null); } aVar.f228920b = b5Var.f333615w; aVar.f228921c = b5Var.f333616x; aVar.f228919a = b5Var.f333614v; LinkedList<String> linkedList2 = b5Var.f333613u; lh4.m.g(linkedList2, "<set-?>"); aVar.f228922d = linkedList2; ky1.h hVar = this.Y; s12 s122 = null; if (hVar != null) { xv3.a aVar2 = b5Var.f333608p.f345549b.f345576a; lh4.m.e(aVar2, "null cannot be cast to non-null type com.tencent.mm.protocal.protobuf.FinderUserPageResponse"); wd1 wd12 = ((FinderUserPageResponse) aVar2).liveNoticeInfo; hVar.a(wd12); aVar.f228923e = wd12; xv3.a aVar3 = b5Var.f333608p.f345549b.f345576a; lh4.m.e(aVar3, "null cannot be cast to non-null type com.tencent.mm.protocal.protobuf.FinderUserPageResponse"); aVar.f228924f = ((FinderUserPageResponse) aVar3).wxaShopInfo; xv3.a aVar4 = b5Var.f333608p.f345549b.f345576a; lh4.m.e(aVar4, "null cannot be cast to non-null type com.tencent.mm.protocal.protobuf.FinderUserPageResponse"); aVar.f228925g = ((FinderUserPageResponse) aVar4).biz_info; xv3.a aVar5 = b5Var.f333608p.f345549b.f345576a; lh4.m.e(aVar5, "null cannot be cast to non-null type com.tencent.mm.protocal.protobuf.FinderUserPageResponse"); LinkedList<lo0> linkedList3 = ((FinderUserPageResponse) aVar5).eventInfoList; aVar.f228926h = linkedList3 != null ? (lo0) xg4.c0.Q(linkedList3) : null; aVar.f228927i = dj1.b.f200487e.j6(this.f116152a1); xv3.a aVar6 = b5Var.f333608p.f345549b.f345576a; lh4.m.e(aVar6, "null cannot be cast to non-null type com.tencent.mm.protocal.protobuf.FinderUserPageResponse"); aVar.f228928j = ((FinderUserPageResponse) aVar6).poi_info; xv3.a aVar7 = b5Var.f333608p.f345549b.f345576a; lh4.m.e(aVar7, "null cannot be cast to non-null type com.tencent.mm.protocal.protobuf.FinderUserPageResponse"); FinderContact finderContact = ((FinderUserPageResponse) aVar7).contact; if (!(finderContact == null || (linkedList = finderContact.bind_info) == null)) { Iterator<T> it = linkedList.iterator(); while (true) { if (!it.hasNext()) { t15 = null; break; } t15 = it.next(); if (t15.f37656d == 2) { z15 = true; continue; } else { z15 = false; continue; } if (z15) { break; } } T t16 = t15; if (t16 != null) { s122 = t16.f37658f; } } aVar.f228929k = s122; xv3.a aVar8 = b5Var.f333608p.f345549b.f345576a; lh4.m.e(aVar8, "null cannot be cast to non-null type com.tencent.mm.protocal.protobuf.FinderUserPageResponse"); aVar.f228930l = ((FinderUserPageResponse) aVar8).live_notice_list_info; xv3.a aVar9 = b5Var.f333608p.f345549b.f345576a; lh4.m.e(aVar9, "null cannot be cast to non-null type com.tencent.mm.protocal.protobuf.FinderUserPageResponse"); LinkedList<FinderJumpInfo> linkedList4 = ((FinderUserPageResponse) aVar9).jump_info; lh4.m.f(linkedList4, "rr.responseProtoBuf as F…erPageResponse).jump_info"); aVar.f228931m = linkedList4; xv3.a aVar10 = b5Var.f333608p.f345549b.f345576a; lh4.m.e(aVar10, "null cannot be cast to non-null type com.tencent.mm.protocal.protobuf.FinderUserPageResponse"); aVar.f228932n = ((FinderUserPageResponse) aVar10).anchor_stat; xv3.a aVar11 = b5Var.f333608p.f345549b.f345576a; lh4.m.e(aVar11, "null cannot be cast to non-null type com.tencent.mm.protocal.protobuf.FinderUserPageResponse"); aVar.f228933o = ((FinderUserPageResponse) aVar11).ip_region_info; xv3.a aVar12 = b5Var.f333608p.f345549b.f345576a; lh4.m.e(aVar12, "null cannot be cast to non-null type com.tencent.mm.protocal.protobuf.FinderUserPageResponse"); aVar.f228935q = ((FinderUserPageResponse) aVar12).attr_region_info; xv3.a aVar13 = b5Var.f333608p.f345549b.f345576a; lh4.m.e(aVar13, "null cannot be cast to non-null type com.tencent.mm.protocal.protobuf.FinderUserPageResponse"); aVar.f228934p = ((FinderUserPageResponse) aVar13).mcn_info; xv3.a aVar14 = b5Var.f333608p.f345549b.f345576a; lh4.m.e(aVar14, "null cannot be cast to non-null type com.tencent.mm.protocal.protobuf.FinderUserPageResponse"); aVar.f228936r = ((FinderUserPageResponse) aVar14).product_info; xv3.a aVar15 = b5Var.f333608p.f345549b.f345576a; lh4.m.e(aVar15, "null cannot be cast to non-null type com.tencent.mm.protocal.protobuf.FinderUserPageResponse"); aVar.f228937s = ((FinderUserPageResponse) aVar15).club_info; xv3.a aVar16 = b5Var.f333608p.f345549b.f345576a; lh4.m.e(aVar16, "null cannot be cast to non-null type com.tencent.mm.protocal.protobuf.FinderUserPageResponse"); aVar.f228938t = ((FinderUserPageResponse) aVar16).profile_banner; hy1.p.f228915h.put(this.f116152a1, aVar); FinderProfileFeedUIC z55 = z5(); if (z55 != null) { z55.updateOnSceneEnd(); } return aVar; } lh4.m.p("liveWidget"); throw null; } public final void m5() { String str; hz.h hVar = (hz.h) yz3.j.c(hz.h.class); Context context = this.f116162h.getContext(); sk1.q profileContact = getProfileContact(); SpannableString g25 = hVar.g2(context, profileContact != null ? profileContact.C1() : null); by1.c cVar = this.f116159f1; p.a aVar = (p.a) hy1.p.f228915h.get(this.f116152a1); if (aVar == null) { aVar = new p.a(0, 0, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1048575, null); } LinkedList<String> linkedList = aVar.f228922d; if (!linkedList.isEmpty()) { StringBuilder sb5 = new StringBuilder(); int size = linkedList.size(); int i15 = this.f116170m1; if (size > i15) { sb5.append(linkedList.get(i15)); sb5.append(" "); } int i16 = 0; if (linkedList.size() > 0) { sb5.append(linkedList.get(0)); sb5.append(" "); } for (T t15 : linkedList) { int i17 = i16 + 1; if (i16 >= 0) { T t16 = t15; if (i16 > this.f116170m1) { sb5.append((String) t16); sb5.append(" "); } i16 = i17; } else { xg4.u.l(); throw null; } } SpannableString g26 = ((hz.h) yz3.j.c(hz.h.class)).g2(getContext(), sb5.toString()); if (g26 != null) { str = g26.toString(); lh4.m.f(str, "this.toString()"); boolean fragmentMode = getFragmentMode(); cVar.getClass(); if (!(g25 == null || Util.isNullOrNil(g25.toString()))) { String spannableString = g25.toString(); lh4.m.f(spannableString, "spannableStr.toString()"); cVar.f45414a.post(new by1.a(cVar, spannableString, fragmentMode, str)); return; } } } str = ""; boolean fragmentMode2 = getFragmentMode(); cVar.getClass(); if (g25 == null) { } } public final void n5(boolean z15, boolean z16) { this.f116174o1 = new p(this, z16); ((r1) yz3.j.c(r1.class)).Zx0(this.f116152a1, z15, this.f116174o1); } /* JADX WARNING: Removed duplicated region for block: B:39:0x00cf */ /* JADX WARNING: Removed duplicated region for block: B:41:0x00d3 */ /* JADX WARNING: Removed duplicated region for block: B:43:0x00d6 */ /* JADX WARNING: Removed duplicated region for block: B:49:0x012e */ public final void o6(String str) { FinderJumpInfo finderJumpInfo; String str2; String str3; FinderJumpInfo finderJumpInfo2; FinderJumpInfo finderJumpInfo3; StringBuilder sb5 = new StringBuilder(); sb5.append(str); sb5.append(" handleShopBrandArea type:"); gh.h<String, p.a> hVar = hy1.p.f228915h; gh.h<String, p.a> hVar2 = hy1.p.f228915h; p.a aVar = (p.a) hVar2.get(this.f116152a1); wg4.b0 b0Var = null; sb5.append((aVar == null || (finderJumpInfo3 = aVar.f228936r) == null) ? null : Integer.valueOf(finderJumpInfo3.business_type)); sb5.append(",ext_info:"); p.a aVar2 = (p.a) hVar2.get(this.f116152a1); sb5.append((aVar2 == null || (finderJumpInfo2 = aVar2.f228936r) == null) ? null : finderJumpInfo2.ext_info); Log.i("Finder.FinderProfileHeaderUIC", sb5.toString()); p.a aVar3 = (p.a) hVar2.get(this.f116152a1); if (!(aVar3 == null || (finderJumpInfo = aVar3.f228936r) == null)) { String str4 = finderJumpInfo.wording; boolean z15 = false; if (str4 == null || str4.length() == 0) { E5().W.setVisibility(8); } else { E5().W.setVisibility(0); x4.m0(E5().Y.getPaint(), 0.8f); lh4.a0 a0Var = new lh4.a0(); String str5 = finderJumpInfo.ext_info; String str6 = ""; if (!(str5 == null || str5.length() == 0)) { try { str2 = new JSONObject(finderJumpInfo.ext_info).optString("tail_icon"); lh4.m.f(str2, "JSONObject(finderJumpInf…o).optString(\"tail_icon\")"); } catch (Exception unused) { Log.e("Finder.FinderProfileHeaderUIC", "handleShopBrandArea prase jumpInfo ext_info exception!"); } if (str2.length() > 0) { z15 = true; } if (!z15) { str2 = null; } if (str2 != null) { a0Var.f253280d = true; yz3.d c15 = yz3.j.c(zr.n.class); lh4.m.f(c15, "getService(IFinderLiveFeatureService::class.java)"); zr.n nVar = (zr.n) c15; gk4.n0 mainScope = getMainScope(); TextView textView = E5().Y; lh4.m.f(textView, "profileHeaderUiBinding.f…derProfileShoppingBrandTv"); LinkedList linkedList = new LinkedList(); linkedList.add(str2); wg4.b0 b0Var2 = wg4.b0.f332794a; String str7 = finderJumpInfo.wording; n.a.d(nVar, "ProfileMenuConvert-tailIcon", mainScope, textView, linkedList, str7 == null ? str6 : str7, false, true, false, false, 0, MMApplicationContext.getContext().getResources().getDimensionPixelOffset(R.dimen.f359119dv), null, 768, null); b0Var = wg4.b0.f332794a; } if (b0Var == null) { E5().Y.setText(finderJumpInfo.wording); } j80.d<tt1.j0> s05 = ((tt1.v0) y24.r.f342954a.e(e2.class).c(tt1.v0.class)).s0(); if (!x4.B() ? (str3 = finderJumpInfo.icon_url) != null : (str3 = finderJumpInfo.icon_url_dark) != null) { str6 = str3; } k80.b<tt1.j0, Bitmap> a15 = s05.a(new tt1.q0(str6, j3.f357048e)); ImageView imageView = E5().X; lh4.m.f(imageView, "profileHeaderUiBinding.f…derProfileShoppingBrandIv"); ((k80.a) a15).c(imageView); E5().W.setOnClickListener(new j0(this, finderJumpInfo, a0Var)); FrameLayout frameLayout = E5().W; lh4.m.f(frameLayout, "profileHeaderUiBinding.f…rProfileShoppingBrandArea"); y74.m.h(frameLayout, new k0(this, finderJumpInfo, a0Var)); } str2 = str6; if (str2.length() > 0) { } if (!z15) { } if (str2 != null) { } if (b0Var == null) { } j80.d<tt1.j0> s052 = ((tt1.v0) y24.r.f342954a.e(e2.class).c(tt1.v0.class)).s0(); str6 = str3; k80.b<tt1.j0, Bitmap> a152 = s052.a(new tt1.q0(str6, j3.f357048e)); ImageView imageView2 = E5().X; lh4.m.f(imageView2, "profileHeaderUiBinding.f…derProfileShoppingBrandIv"); ((k80.a) a152).c(imageView2); E5().W.setOnClickListener(new j0(this, finderJumpInfo, a0Var)); FrameLayout frameLayout2 = E5().W; lh4.m.f(frameLayout2, "profileHeaderUiBinding.f…rProfileShoppingBrandArea"); y74.m.h(frameLayout2, new k0(this, finderJumpInfo, a0Var)); } b0Var = wg4.b0.f332794a; } if (b0Var == null) { E5().W.setVisibility(8); } } @Override // y24.g, com.tencent.mm.ui.component.UIComponent public void onActivityResult(int i15, int i16, Intent intent) { String path; int i17; String str; super.onActivityResult(i15, i16, intent); if (intent != null) { wg4.b0 b0Var = null; if (i15 != 100) { boolean z15 = true; String str2 = ""; int i18 = 0; switch (i15) { case 10006: Uri data = intent.getData(); if (!(data == null || (path = data.getPath()) == null)) { str2 = path; } if (str2.length() == 0) { Log.w("Finder.FinderProfileHeaderUIC", "filePath is null.try to getResultPhotoPath."); Context applicationContext = getActivity().getApplicationContext(); b6 b6Var = b6.f118823a; String J6 = ((zw.f) yz3.j.c(zw.f.class)).J6(applicationContext, intent, b6.f118831i); lh4.m.f(J6, "getService(ITakePhotoSer…athRouter.FINDER_TMP_DIR)"); str2 = J6; } Log.i("Finder.FinderProfileHeaderUIC", "filePath[" + str2 + "] " + intent); if (str2.length() != 0) { z15 = false; } if (z15) { Log.e("Finder.FinderProfileHeaderUIC", "filePath is null."); return; } AppCompatActivity activity = getActivity(); byte[] bytes = (str2 + System.currentTimeMillis()).getBytes(ek4.c.f208058a); lh4.m.f(bytes, "this as java.lang.String).getBytes(charset)"); String f15 = gh.g.f(bytes); lh4.m.f(f15, "getMessageDigest((filePa…eMillis()).toByteArray())"); ((cs.b) yz3.j.c(cs.b.class)).XE0().s0(activity, intent, str2, f15, 10008); return; case CdnLogic.kMediaTypeFavoriteBigFile: Context applicationContext2 = getActivity().getApplicationContext(); b6 b6Var2 = b6.f118823a; String str3 = b6.f118831i; String J62 = ((zw.f) yz3.j.c(zw.f.class)).J6(applicationContext2, intent, str3); if (J62 == null) { Log.e("Finder.FinderProfileHeaderUIC", "filePath is null."); return; } Intent intent2 = new Intent(); intent2.putExtra("CropImageMode", 1); intent2.putExtra("CropImage_ImgPath", J62); byte[] bytes2 = (J62 + System.currentTimeMillis()).getBytes(ek4.c.f208058a); lh4.m.f(bytes2, "this as java.lang.String).getBytes(charset)"); String f16 = gh.g.f(bytes2); StringBuilder sb5 = new StringBuilder(); sb5.append(str3); lh4.m.d(f16); sb5.append(f16); intent2.putExtra("CropImage_OutputPath", sb5.toString()); intent2.setClassName(getActivity(), "com.tencent.mm.ui.tools.CropImageNewUI"); Activity context = getContext(); k30.a aVar = new k30.a(); ThreadLocal<k30.a> threadLocal = k30.c.f244265a; aVar.c(10008); aVar.c(intent2); j30.a.j(context, aVar.b(), "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC", "onActivityResult", "(IILandroid/content/Intent;)V", "android/app/Activity", "startActivityForResult", "(Landroid/content/Intent;I)V"); return; case 10008: String stringExtra = intent.getStringExtra("key_result_img_path"); if (stringExtra == null || !u1.k(stringExtra)) { Log.e("Finder.FinderProfileHeaderUIC", "ERROR! filePath=" + stringExtra); return; } d60.z.s().i().L(w1.a.f175257eh, stringExtra); ((cs.b) yz3.j.c(cs.b.class)).JZ().k(stringExtra, this.f116152a1, new w0(this)); return; case 10009: d.b bVar = sk1.d.f302423a; sk1.q b15 = bVar.b(r32.b.c(getContext())); String stringExtra2 = intent.getStringExtra("Country"); if (stringExtra2 == null) { stringExtra2 = str2; } String stringExtra3 = intent.getStringExtra("Contact_Province"); if (stringExtra3 == null) { stringExtra3 = str2; } String stringExtra4 = intent.getStringExtra("Contact_City"); if (stringExtra4 == null) { stringExtra4 = str2; } Log.i("Finder.FinderProfileHeaderUIC", "countryCode " + stringExtra2 + " provinceCode" + stringExtra3 + " cityCode" + stringExtra4); if (lh4.m.b(stringExtra2, "unshow")) { dj1.b bVar2 = dj1.b.f200487e; String str4 = b15 != null ? b15.field_username : null; if (str4 == null) { str4 = str2; } ij1.b a15 = a.C2191a.a(bVar2, str4, false, 2, null); if (a15 != null) { i18 = a15.field_extFlag; } int i19 = i18 & -5; String str5 = b15 != null ? b15.field_username : null; if (str5 == null) { str5 = str2; } ij1.c cVar = new ij1.c(str5); cVar.field_extFlag = i19; bVar2.k6(cVar, ij1.i.MODIFY_USER); i17 = 1; str = str2; } else { str = stringExtra2; i17 = 0; } if (b15 != null) { sm0 sm02 = b15.field_extInfo; if (sm02 != null) { sm02.f36592d = str; sm02.f36593e = stringExtra3; sm02.f36594f = stringExtra4; b0Var = wg4.b0.f332794a; } if (b0Var == null) { sm0 sm03 = new sm0(); b15.field_extInfo = sm03; sm03.f36592d = str; sm03.f36593e = stringExtra3; sm03.f36594f = stringExtra4; } bVar.o(b15); } ((v1) yz3.j.c(v1.class)).Ah0(str, stringExtra3, stringExtra4, i17, null, this.f116152a1); return; case 10010: if (intent.getBooleanExtra("NEED_REFRESH_CONTACT", false)) { q5(true); return; } return; case 10011: if (i16 == 1000) { String stringExtra5 = intent.getStringExtra("ACTIVITY_RESULT_REMOVE_NOTICE_KEY"); if (stringExtra5 != null) { if (stringExtra5.length() <= 0) { z15 = false; } if (!z15) { stringExtra5 = null; } if (stringExtra5 != null) { ky1.e0 e0Var = this.Z; if (e0Var != null) { e0Var.e(stringExtra5); q5(false); return; } lh4.m.p("moreLiveListWidget"); throw null; } return; } return; } else if (i16 == 1001) { this.V0 = true; q5(false); return; } else { return; } default: return; } } else { gh.h<String, p.a> hVar = hy1.p.f228915h; gh.h<String, p.a> hVar2 = hy1.p.f228915h; p.a aVar2 = (p.a) hVar2.get(this.f116152a1); if (aVar2 == null) { aVar2 = new p.a(0, 0, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1048575, null); } byte[] byteArrayExtra = intent.getByteArrayExtra("KEY_FINDER_LIVE_NOTICE_INFO"); if (byteArrayExtra != null) { wd1 wd12 = new wd1(); wd12.parseFrom(byteArrayExtra); if (wd12.f40936u == 0) { wd1 wd13 = aVar2.f228923e; if ((wd13 != null ? wd13.f40922d : Integer.MAX_VALUE) > wd12.f40922d) { aVar2.f228923e = wd12; } } } hVar2.put(this.f116152a1, aVar2); w6(this, "onSceneEnd:[NetSceneCreateLiveNotice]", null, 2, null); } } } @Override // y24.g, com.tencent.mm.ui.component.UIComponent public boolean onBackPressed() { boolean z15; boolean z16; ay1.e eVar = this.U0; boolean z17 = false; if (eVar != null) { FinderProfilePoiDrawer finderProfilePoiDrawer = eVar.f9023g; if (finderProfilePoiDrawer == null || !finderProfilePoiDrawer.l()) { z15 = false; } else { z15 = true; } if (z15) { FinderProfilePoiDrawer finderProfilePoiDrawer2 = eVar.f9023g; if (finderProfilePoiDrawer2 != null) { RecyclerViewDrawer.j(finderProfilePoiDrawer2, false, 1, null); } z16 = true; } else { z16 = false; } if (z16) { z17 = true; } } if (z17) { return true; } return super.onBackPressed(); } @Override // com.tencent.mm.ui.component.UIComponent public void onCreate(Bundle bundle) { int i15; ta f15; super.onCreate(bundle); d60.z.d().a(3736, this); d60.z.d().a(6653, this); d60.z.d().a(7289, this); d60.z.d().a(kp0.b.CTRL_INDEX, this); d60.z.d().a(10526, this); ((FinderCommonFeatureService) yz3.j.c(FinderCommonFeatureService.class)).f80345n.g(106, this.f116172n1); this.f116153b1 = getIntent().getLongExtra("finder_read_feed_id", 0); byte[] byteArrayExtra = getIntent().getByteArrayExtra("KEY_FINDER_LIVE_NOTICE_INFO"); if (byteArrayExtra != null) { gh.h<String, p.a> hVar = hy1.p.f228915h; p.a aVar = (p.a) hVar.get(this.f116152a1); if (aVar == null) { p.a aVar2 = new p.a(0, 0, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1048575, null); wd1 wd12 = new wd1(); aVar2.f228923e = wd12; wd12.parseFrom(byteArrayExtra); hVar.put(this.f116152a1, aVar2); } else { wd1 wd13 = new wd1(); wd13.parseFrom(byteArrayExtra); wd1 wd14 = aVar.f228923e; if ((wd14 != null ? wd14.f40922d : Integer.MAX_VALUE) > wd13.f40922d) { aVar.f228923e = wd13; } else { StringBuilder sb5 = new StringBuilder(); sb5.append("use existInfo.finderLiveNoticInfo. ["); wd1 wd15 = aVar.f228923e; sb5.append(wd15 != null ? Integer.valueOf(wd15.f40922d) : null); sb5.append(", "); sb5.append(wd13.f40922d); sb5.append(']'); Log.i("Finder.FinderProfileHeaderUIC", sb5.toString()); } } } if (getIntent().hasExtra("key_extra_info") && !getIntent().hasExtra("key_enter_source_info") && (f15 = ta.W0.f(getContext())) != null) { f15.F5(0, this.f116152a1); } boolean z15 = false; this.V0 = getIntent().getBooleanExtra("KEY_FINDER_PROFILE_UI_AFTER_SHOW_NOTICE_LIST", false); String stringExtra = getIntent().getStringExtra("KEY_FINDER_PROFILE_UI_REF_PAGE_TYPE"); String str = ""; if (stringExtra == null) { stringExtra = str; } this.W0 = stringExtra; String stringExtra2 = getIntent().getStringExtra("KEY_FINDER_PROFILE_UI_REQUEST_LIST_POSITION"); if (stringExtra2 != null) { str = stringExtra2; } this.X0 = str; View view = this.f116162h; lh4.m.f(view, "header"); this.U = new ky1.d(view, getActivity(), getContextObj()); View view2 = this.f116162h; lh4.m.f(view2, "header"); this.V = new ky1.u(view2, getActivity()); View view3 = this.f116162h; lh4.m.f(view3, "header"); this.W = new ky1.x(view3, getActivity()); View view4 = this.f116162h; lh4.m.f(view4, "header"); this.X = new ky1.a(view4, getActivity()); String str2 = this.f116152a1; AppCompatActivity activity = getActivity(); y24.r rVar = y24.r.f342954a; boolean isSelf = ((hy1.p) rVar.b(getContext()).a(hy1.p.class)).isSelf(); bv1 contextObj = getContextObj(); gh.h<String, p.a> hVar2 = hy1.p.f228915h; ky1.e0 e0Var = new ky1.e0(str2, activity, isSelf, contextObj, 101, false, false, hVar2, "temp_5"); e0Var.f249789u = new hy1.x0(e0Var, this); this.Z = e0Var; View view5 = this.f116162h; lh4.m.f(view5, "header"); ky1.h hVar3 = new ky1.h(view5, getActivity(), getContextObj(), false, hVar2, "temp_5"); hVar3.f249827g = new hy1.y0(this); hVar3.f249845y = getFragmentMode(); this.Y = hVar3; View view6 = this.f116162h; lh4.m.f(view6, "header"); this.f116176p0 = new ky1.y(view6, getActivity(), getContextObj()); View view7 = this.f116162h; lh4.m.f(view7, "header"); this.f116185x0 = new ky1.c(view7, getActivity()); View view8 = this.f116162h; lh4.m.f(view8, "header"); this.f116187y0 = new ky1.e(view8, getActivity()); View view9 = this.f116162h; lh4.m.f(view9, "header"); this.T0 = new ky1.v(view9, getActivity(), q6()); r.a a15 = a02.r.f345a.a(this.f116152a1); if (a15 != null) { l5(a15.f348b); } if (!getIntent().getBooleanExtra("KEY_DO_NOT_CHECK_ENTER_BIZ_PROFILE", false)) { ky1.u uVar = this.V; if (uVar != null) { getProfileContact(); String stringExtra3 = uVar.f249929a.getIntent().getStringExtra("key_biz_username"); if (stringExtra3 != null) { if ((stringExtra3.length() > 0) && !lh4.m.b("null", stringExtra3)) { z15 = true; } if (!z15) { stringExtra3 = null; } if (stringExtra3 != null) { Intent intent = new Intent(); ta.a.e(ta.W0, uVar.f249929a, intent, 0, null, 0, 0, false, 0, 252, null); intent.putExtra("Contact_User", stringExtra3); intent.putExtra("Contact_Scene", 213); intent.putExtra("force_get_contact", true); intent.putExtra("key_use_new_contact_profile", true); intent.putExtra("biz_profile_tab_type", 1); sv3.b.j(uVar.f249929a, Scopes.PROFILE, ".ui.ContactInfoUI", intent, null); m60.d.M(0, new ky1.t(uVar)); } } } else { lh4.m.p("mediaEntrance"); throw null; } } ((FrameLayout) ((wg4.n) this.f116164i).getValue()).addView(this.f116162h); ViewGroup.LayoutParams layoutParams = ((FrameLayout) ((wg4.n) this.f116166j).getValue()).getLayoutParams(); int f16 = l5.f(getActivity()); if (!getFragmentMode()) { i15 = nh4.c.b(getActivity().getResources().getDimension(R.dimen.f359015ay) + ((float) gy3.a.b(getContext(), 8)) + ((float) f16)); } else { i15 = gy3.a.b(getContext(), 8); } layoutParams.height = i15; ((FrameLayout) ((wg4.n) this.f116166j).getValue()).setLayoutParams(layoutParams); ((FrameLayout) ((wg4.n) this.f116164i).getValue()).setMinimumHeight(i15); w6(this, "onCreate", null, 2, null); ImageView imageView = (ImageView) ((wg4.n) this.f116178r).getValue(); lh4.m.f(imageView, "avatarIv"); y74.m.h(imageView, new x0(this)); LinearLayout linearLayout = (LinearLayout) ((wg4.n) this.G).getValue(); lh4.m.f(linearLayout, "nickNameContainer"); y74.m.h(linearLayout, new y0(this)); TextView textView = (TextView) ((wg4.n) this.f116182v).getValue(); lh4.m.f(textView, "friendFollowTv"); y74.m.h(textView, new z0(this)); FinderProfileHeaderUIC$onCreate$4 finderProfileHeaderUIC$onCreate$4 = new FinderProfileHeaderUIC$onCreate$4(this, com.tencent.mm.app.h.f61283d); this.f116161g1 = finderProfileHeaderUIC$onCreate$4; finderProfileHeaderUIC$onCreate$4.alive(); ky1.h hVar4 = this.Y; if (hVar4 != null) { hVar4.i(this.f116152a1); if (this.X != null) { lh4.m.g(this.f116152a1, "username"); E5().f201065n0.setVisibility(8); ((q3) rVar.c(getActivity()).c(q3.class)).a1(new a1(this)); ((q3) rVar.c(getActivity()).c(q3.class)).n0(new b1()); ((q3) rVar.c(getActivity()).c(q3.class)).D4(new c1(this)); boolean isSelf2 = ((hy1.p) rVar.b(getContext()).a(hy1.p.class)).isSelf(); boolean isSelfFlag = ((hy1.p) rVar.b(getContext()).a(hy1.p.class)).isSelfFlag(); ky1.a aVar3 = this.X; if (aVar3 != null) { String str3 = this.f116152a1; lh4.m.g(str3, "username"); x4.m0(((TextView) ((wg4.n) aVar3.f249697d).getValue()).getPaint(), 0.8f); aVar3.b().setOnClickListener(new ky1.b(str3, aVar3)); ky1.y yVar = this.f116176p0; if (yVar != null) { m60.d.t(com.tencent.mm.plugin.finder.extension.reddot.x0.B, yVar.f249972a, new ky1.b0(yVar, isSelf2, isSelfFlag)); ky1.e eVar = this.f116187y0; if (eVar != null) { String str4 = this.f116152a1; lh4.m.g(str4, "username"); zz1.e.f356376d.getClass(); if (!(zz1.e.f356453ic.t().intValue() == 0 && zz1.e.f356440hc.t().intValue() == 0)) { FinderDataLoader finderDataLoader = eVar.f249764e; en1.a aVar4 = new en1.a(); aVar4.f208424b = new wk1.h(str4, null, 2); ky1.f fVar = ky1.f.f249812d; lh4.m.g(fVar, "next"); aVar4.f208425c = new en1.b(fVar); aVar4.f208430a = new ky1.g(eVar, null); finderDataLoader.d(aVar4); } p5(); return; } lh4.m.p("followMore"); throw null; } lh4.m.p("redPackWidget"); throw null; } lh4.m.p("activityWidget"); throw null; } lh4.m.p("activityWidget"); throw null; } lh4.m.p("liveWidget"); throw null; } @Override // y24.g, com.tencent.mm.ui.component.UIComponent public void onDestroy() { super.onDestroy(); IListener<FollowUserEvent> iListener = this.f116161g1; if (iListener != null) { iListener.dead(); } ky1.h hVar = this.Y; if (hVar != null) { d60.z.d().p(6276, hVar.E); ((FinderCommonFeatureService) yz3.j.c(FinderCommonFeatureService.class)).f80345n.k(106, this.f116172n1); d60.z.d().p(3736, this); d60.z.d().p(6653, this); d60.z.d().p(7289, this); d60.z.d().p(kp0.b.CTRL_INDEX, this); d60.z.d().p(10526, this); return; } lh4.m.p("liveWidget"); throw null; } @Override // y24.g, com.tencent.mm.ui.component.UIComponent public void onPause() { super.onPause(); this.X0 = ""; } @Override // y24.g, com.tencent.mm.ui.component.UIComponent public void onResume() { super.onResume(); com.tencent.mm.plugin.finder.extension.reddot.x0.a(com.tencent.mm.plugin.finder.extension.reddot.x0.f109678a, "FinderProfileBanner", null, 2, null); ky1.a aVar = this.X; if (aVar != null) { String str = this.f116152a1; boolean z15 = this.f116167j1; y24.r rVar = y24.r.f342954a; aVar.c("onResume", str, z15, ((hy1.p) rVar.b(getContext()).a(hy1.p.class)).isSelf(), ((hy1.p) rVar.b(getContext()).a(hy1.p.class)).isSelfFlag()); if (q6() && ((q3) rVar.c(getActivity()).c(q3.class)).c2() == null) { y24.e.launch$default(this, null, null, new d1(null), 3, null); return; } return; } lh4.m.p("activityWidget"); throw null; } @Override // yf0.n public void onSceneEnd(int i15, int i16, String str, yf0.y yVar) { gt3 gt32; LinkedList<wd1> linkedList; T t15; LinkedList<wd1> linkedList2; T t16; String str2; lh4.m.g(yVar, "sceneBase"); Fragment fragment = getFragment(); int i17 = 0; if (!(fragment != null && fragment.isDetached()) && !getActivity().isFinishing()) { if (i15 == 0 && i16 == 0) { int type = yVar.getType(); if (type == 372) { pw.j jVar = yVar instanceof pw.j ? (pw.j) yVar : null; if (jVar != null) { ky1.d dVar = this.U; if (dVar != null) { yf0.c j05 = jVar.j0(); if (!(j05 instanceof yf0.c)) { j05 = null; } xv3.a aVar = j05 != null ? j05.f345548a.f345573a : null; cm4 cm42 = aVar instanceof cm4 ? (cm4) aVar : null; if ((cm42 == null || (gt32 = cm42.f18494h) == null || gt32.f23038d != 1) ? false : true) { bm4 r15 = jVar.r(); if (r15 != null) { String str3 = r15.f17407d; String nullAsNil = Util.nullAsNil(str3); lh4.m.f(nullAsNil, "nullAsNil(userName)"); if (nullAsNil.length() > 0) { z1 z1Var = ((jh2.k0) d60.z.q(jh2.k0.class)).Zx().get(str3); Intent intent = new Intent(); ih.d.a(intent, r15, 161); if (z1Var != null && !z1Var.z3()) { intent.putExtra("Contact_IsLBSFriend", true); } sv3.b.j(dVar.f249737a, Scopes.PROFILE, ".ui.ContactInfoUI", intent, null); } else { ak.a.makeText(dVar.f249737a.getApplicationContext(), (int) R.string.f0l, 0).show(); } } p64.i0 i0Var = dVar.f249740d; if (i0Var != null) { i0Var.dismiss(); } dVar.f249745i = false; return; } return; } lh4.m.p("enterpriseAdd"); throw null; } } else if (type == 3736) { b5 b5Var = yVar instanceof b5 ? (b5) yVar : null; if (b5Var != null && b5Var.f333603h == 0) { StringBuilder sb5 = new StringBuilder(); sb5.append("username="); sb5.append(this.f116152a1); sb5.append(", scene username="); FinderContact R0 = b5Var.R0(); sb5.append(R0 != null ? R0.username : null); Log.i("Finder.FinderProfileHeaderUIC", sb5.toString()); if (lh4.m.b(b5Var.f333602g, this.f116152a1) && b5Var.o1() == 0 && !b5Var.f333607o) { FinderContact R02 = b5Var.R0(); if (!(R02 == null || (str2 = R02.username) == null)) { this.f116152a1 = str2; } p.a l55 = l5(b5Var); xd1 xd12 = l55.f228930l; v6("onSceneEnd:[NetSceneFinderUserPage]", xd12 != null ? xd12.f42054i : null); x2 x2Var = (x2) yz3.j.c(x2.class); xv3.a aVar2 = b5Var.f333608p.f345549b.f345576a; lh4.m.e(aVar2, "null cannot be cast to non-null type com.tencent.mm.protocal.protobuf.FinderUserPageResponse"); xd1 xd13 = ((FinderUserPageResponse) aVar2).live_notice_list_info; x2Var.Pn0(xd13 != null ? xd13.f42049d : null, 0); ((FinderProfileUiStyleUIC) y24.r.f342954a.c(getActivity()).a(FinderProfileUiStyleUIC.class)).k5(this.f116152a1, true); if (this.f116167j1) { this.f116167j1 = false; } String str4 = this.X0; if (!(str4 == null || str4.length() == 0)) { if (b5Var.f333606n.length() > 0) { xd1 xd14 = l55.f228930l; if (xd14 == null || (linkedList2 = xd14.f42049d) == null) { t15 = null; } else { synchronized (linkedList2) { Iterator<T> it = linkedList2.iterator(); while (true) { if (!it.hasNext()) { t16 = null; break; } t16 = it.next(); String str5 = t16.f40926h; xd1 xd15 = l55.f228930l; if (Util.isEqual(str5, xd15 != null ? xd15.f42054i : null)) { break; } } } t15 = t16; } if ((t15 == null) && getLifecycle().getCurrentState().a(j.c.RESUMED)) { i14.y0.e(getContext(), getContext().getResources().getString(R.string.f368435eg3)); } } } if (!this.V0) { ky1.e0 e0Var = this.Z; if (e0Var != null) { p64.e0 e0Var2 = e0Var.f249778j; if (!(e0Var2 != null && e0Var2.h())) { return; } } else { lh4.m.p("moreLiveListWidget"); throw null; } } this.V0 = false; xd1 xd16 = l55.f228930l; if (!(xd16 == null || (linkedList = xd16.f42049d) == null)) { i17 = linkedList.size(); } if (i17 > 1) { ky1.e0 e0Var3 = this.Z; if (e0Var3 != null) { p.a aVar3 = (p.a) hy1.p.f228915h.get(this.f116152a1); xd1 xd17 = aVar3 != null ? aVar3.f228930l : null; xd1 xd18 = l55.f228930l; l6.a.a(e0Var3, xd17, xd18 != null ? xd18.f42054i : null, true, this.W0, 0, 16, null); return; } lh4.m.p("moreLiveListWidget"); throw null; } ky1.h hVar = this.Y; if (hVar != null) { hVar.b(); } else { lh4.m.p("liveWidget"); throw null; } } } } else if (type == 7289) { com.tencent.mm.network.t reqResp = yVar.getReqResp(); yf0.c cVar = reqResp instanceof yf0.c ? (yf0.c) reqResp : null; xv3.a aVar4 = cVar != null ? cVar.f345549b.f345576a : null; fp1 fp12 = aVar4 instanceof fp1 ? (fp1) aVar4 : null; y24.r rVar = y24.r.f342954a; ((q3) rVar.c(getActivity()).c(q3.class)).N1(fp12); ((FinderProfileUiStyleUIC) rVar.c(getActivity()).a(FinderProfileUiStyleUIC.class)).k5(this.f116152a1, true); ((nx1.m1) rVar.c(getActivity()).a(nx1.m1.class)).onSceneEnd(i15, i16, str, yVar); FinderProfileFeedUIC z55 = z5(); if (z55 != null) { z55.updateOnSceneEnd(); } } else if (type == 10526 && (yVar instanceof hu1.j)) { hu1.j jVar2 = (hu1.j) yVar; if (lh4.m.b(jVar2.f228299i, this.f116152a1)) { com.tencent.mm.network.t reqResp2 = jVar2.getReqResp(); yf0.c cVar2 = reqResp2 instanceof yf0.c ? (yf0.c) reqResp2 : null; xv3.a aVar5 = cVar2 != null ? cVar2.f345549b.f345576a : null; ai0 ai02 = aVar5 instanceof ai0 ? (ai0) aVar5 : null; if (ai02 != null) { ky1.v vVar = this.T0; if (vVar != null) { String str6 = this.f116152a1; y24.r rVar2 = y24.r.f342954a; ((hy1.p) rVar2.b(getContext()).a(hy1.p.class)).isSelfFlag(); lh4.m.g(str6, "authorFinderUsername"); Log.i("Finder.HeaderMemberWidget", "memberStatus %d visitorStatus %d", Integer.valueOf(ai02.f16301d), Integer.valueOf(ai02.f16302e)); ((z81.g) yz3.j.c(z81.g.class)).ce0(vVar.c(), "member_zone"); ((z81.g) yz3.j.c(z81.g.class)).kW(vVar.c(), 40, 25496); z81.g gVar = (z81.g) yz3.j.c(z81.g.class); FrameLayout c15 = vVar.c(); wg4.l[] lVarArr = new wg4.l[5]; lVarArr[0] = new wg4.l("finder_username", str6); ta.a aVar6 = ta.W0; ta f15 = aVar6.f(vVar.f249942a); lVarArr[1] = new wg4.l("finder_tab_context_id", f15 != null ? f15.f197191p : null); ta f16 = aVar6.f(vVar.f249942a); lVarArr[2] = new wg4.l("finder_context_id", f16 != null ? f16.f197189n : null); ta f17 = aVar6.f(vVar.f249942a); lVarArr[3] = new wg4.l("behaviour_session_id", f17 != null ? f17.f197190o : null); ta f18 = aVar6.f(vVar.f249942a); lVarArr[4] = new wg4.l("comment_scene", f18 != null ? Integer.valueOf(f18.f197187i) : null); gVar.FU(c15, xg4.r0.f(lVarArr)); int i18 = ai02.f16301d; if (i18 == 1 || i18 == 2) { vVar.c().setVisibility(0); if (ai02.f16302e == 2 || lh4.m.b(str6, r32.b.c(vVar.f249942a))) { ((WeImageView) ((wg4.n) vVar.f249948g).getValue()).setVisibility(0); m60.d.t(com.tencent.mm.plugin.finder.extension.reddot.x0.f109690i, vVar.f249942a, vVar.f249950i); } else { ((WeImageView) ((wg4.n) vVar.f249948g).getValue()).setVisibility(8); } x4.m0(((TextView) ((wg4.n) vVar.f249947f).getValue()).getPaint(), 0.8f); if (vVar.d(ai02, str6)) { ((TextView) ((wg4.n) vVar.f249947f).getValue()).setText(vVar.f249942a.getResources().getString(R.string.eli)); } else { ((TextView) ((wg4.n) vVar.f249947f).getValue()).setText(vVar.f249942a.getResources().getString(R.string.elr)); } vVar.c().setOnClickListener(new ky1.w(vVar, ai02, str6)); } else { vVar.c().setVisibility(8); } H5(); ((j2) rVar2.c(getActivity()).a(j2.class)).j5(getProfileContact()); u6(); return; } lh4.m.p("memberWidget"); throw null; } } } } else { int type2 = yVar.getType(); if (type2 == 372) { ky1.d dVar2 = this.U; if (dVar2 != null) { p64.i0 i0Var2 = dVar2.f249740d; if (i0Var2 != null) { i0Var2.dismiss(); } dVar2.f249745i = false; i14.y0.k(getActivity().getApplicationContext(), getActivity().getResources().getString(R.string.cnc)); } else { lh4.m.p("enterpriseAdd"); throw null; } } else if (type2 == 7289) { ((nx1.m1) y24.r.f342954a.c(getActivity()).a(nx1.m1.class)).onSceneEnd(i15, i16, str, yVar); } if (i16 == -5900) { b5 b5Var2 = yVar instanceof b5 ? (b5) yVar : null; if (b5Var2 != null && lh4.m.b(b5Var2.f333602g, this.f116152a1)) { gh.h<String, p.a> hVar2 = hy1.p.f228915h; p.a aVar7 = (p.a) hVar2.get(this.f116152a1); if (aVar7 == null) { aVar7 = new p.a(0, 0, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1048575, null); } ij1.h j65 = dj1.b.f200487e.j6(this.f116152a1); if (j65 == null) { j65 = new ij1.h(0, null, false, 7, null); } j65.f233535c = true; aVar7.f228927i = j65; hVar2.put(this.f116152a1, aVar7); w6(this, "onSceneEnd:[NetSceneFinderUserPage]", null, 2, null); } } } } } @Override // y24.g, com.tencent.mm.ui.component.UIComponent public void onStart() { super.onStart(); if (!this.f116165i1) { q5(true); p5(); } this.f116165i1 = false; } public final void p5() { zz1.e.f356376d.getClass(); if (zz1.e.f356594tc.t().intValue() == 1) { d60.z.d().f(new hu1.j(this.f116152a1, getContextObj())); } } public final boolean p6() { if (!q6()) { zz1.e.f356376d.getClass(); if (((Boolean) ((vl1.a) ((wg4.n) zz1.e.N6).getValue()).t()).booleanValue()) { return true; } return false; } return true; } public final void q5(boolean z15) { yf0.b0 d15 = d60.z.d(); b5 b5Var = new b5(this.f116152a1, 0, null, 0, getContextObj(), 0, 0, false, null, 0, null, null, null, false, false, null, 65518, null); b5Var.f333604i = z15; d15.f(b5Var); } public final boolean q6() { y24.r rVar = y24.r.f342954a; if (!((hy1.p) rVar.b(getContext()).a(hy1.p.class)).isSelf() || !((hy1.p) rVar.b(getContext()).a(hy1.p.class)).isSelfFlag()) { return false; } return true; } public final LinearLayout r5() { return (LinearLayout) this.J.getValue(); } public final boolean r6() { return ((q5) yz3.j.c(q5.class)).isTeenMode(); } public final TextView s5() { return (TextView) this.L.getValue(); } public final void s6() { ut1 ut12; FinderJumpInfo finderJumpInfo; T t15; boolean z15; gh.h<String, p.a> hVar = hy1.p.f228915h; p.a aVar = (p.a) hy1.p.f228915h.get(this.f116152a1); if (aVar != null && (ut12 = aVar.f228938t) != null && (finderJumpInfo = ut12.f39116d) != null) { LinkedList<r15> linkedList = finderJumpInfo.style; ma maVar = null; if (linkedList != null) { Iterator<T> it = linkedList.iterator(); while (true) { if (!it.hasNext()) { t15 = null; break; } t15 = it.next(); if (t15.f34849h == 25) { z15 = true; continue; } else { z15 = false; continue; } if (z15) { break; } } T t16 = t15; if (t16 != null) { maVar = t16.X; } } int i15 = 8; if (maVar != null) { String str = maVar.f29475e; if (!(str == null || str.length() == 0)) { WeImageView weImageView = E5().f201064n; int i16 = finderJumpInfo.jumpinfo_type; if (!(i16 == 0 || i16 == 8)) { i15 = 0; } weImageView.setVisibility(i15); E5().f201068p.setText(maVar.f29475e); int i17 = maVar.f29477g; int i18 = R.raw.icons_outlined_error; if (i17 != 1 && i17 == 2) { i18 = R.raw.icons_outlined_info; } if (i18 > 0) { E5().f201066o.setImageResource(i18); WeImageView weImageView2 = E5().f201066o; int i19 = maVar.f29477g; int i25 = R.color.Red_100; if (i19 != 1 && i19 == 2) { i25 = R.color.FG_1; } weImageView2.setIconColor(getColor(i25)); } RoundCornerRelativeLayout roundCornerRelativeLayout = E5().f201062m; ez1.p0 p0Var = ez1.p0.f210888a; lh4.m.f(roundCornerRelativeLayout, LocaleUtil.ITALIAN); JSONObject h15 = m60.i.h(finderJumpInfo); h15.remove("ext_info"); h15.remove("style"); ez1.p0.b(p0Var, roundCornerRelativeLayout, "dispute_banner", 0, 0, xg4.r0.f(new wg4.l("author_finder_username", this.f116152a1), new wg4.l("jump_info", h15.toString())), 12, null); int i26 = maVar.f29477g; int i27 = R.color.Red_Alpha_0_1; if (i26 != 1 && i26 == 2) { i27 = x4.B() ? R.color.f357948v : R.color.BW_97; } roundCornerRelativeLayout.setBackgroundColor(getColor(i27)); roundCornerRelativeLayout.setRadius(getDimension(R.dimen.f359119dv)); roundCornerRelativeLayout.setVisibility(0); roundCornerRelativeLayout.setOnClickListener(new j1(this, finderJumpInfo)); return; } } E5().f201062m.setVisibility(8); } } public final WeImageView t5() { return (WeImageView) this.K.getValue(); } /* JADX WARNING: Code restructure failed: missing block: B:8:0x0015, code lost: if (r0 == false) goto L_0x0019; */ public final void t6(boolean z15, int i15) { String str; boolean z16; sk1.q profileContact = getProfileContact(); boolean z17 = true; if (!(profileContact == null || (str = profileContact.field_signature) == null)) { if (str.length() == 0) { z16 = true; } else { z16 = false; } } z17 = false; if (z17) { sk1.q profileContact2 = getProfileContact(); lh4.m.d(profileContact2); y6(profileContact2, i15, z15); } } public final TextView u5() { return (TextView) this.F.getValue(); } public final void u6() { int i15; View findViewById = this.f116162h.findViewById(R.id.l9k); View findViewById2 = this.f116162h.findViewById(R.id.kfn); View findViewById3 = this.f116162h.findViewById(R.id.kfh); View findViewById4 = this.f116162h.findViewById(R.id.kff); ky1.y yVar = this.f116176p0; if (yVar != null) { if ((yVar.b().getVisibility() == 0) || findViewById.getVisibility() == 0) { if (findViewById2.getVisibility() == 0 || findViewById3.getVisibility() == 0 || findViewById4.getVisibility() == 0) { View findViewById5 = this.f116162h.findViewById(R.id.f364309la4); k30.a aVar = new k30.a(); ThreadLocal<k30.a> threadLocal = k30.c.f244265a; aVar.c(8); j30.a.d(findViewById5, aVar.b(), "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC", "refreshDivider", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById5.setVisibility(((Integer) aVar.a(0)).intValue()); j30.a.e(findViewById5, "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC", "refreshDivider", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); View findViewById6 = this.f116162h.findViewById(R.id.l9j); k30.a aVar2 = new k30.a(); aVar2.c(8); j30.a.d(findViewById6, aVar2.b(), "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC", "refreshDivider", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById6.setVisibility(((Integer) aVar2.a(0)).intValue()); j30.a.e(findViewById6, "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC", "refreshDivider", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); View findViewById7 = this.f116162h.findViewById(R.id.l9j); k30.a aVar3 = new k30.a(); aVar3.c(8); j30.a.d(findViewById7, aVar3.b(), "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC", "refreshDivider", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById7.setVisibility(((Integer) aVar3.a(0)).intValue()); j30.a.e(findViewById7, "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC", "refreshDivider", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); } if (this.f116162h.findViewById(R.id.l_a).getVisibility() == 8) { if (((View) ((wg4.n) this.T).getValue()).getVisibility() == 0) { i15 = getActivity().getResources().getDimensionPixelSize(R.dimen.f359061c9); } else { i15 = getActivity().getResources().getDimensionPixelSize(R.dimen.f359087cz); } this.f116162h.setPadding(0, 0, 0, i15); return; } return; } return; } lh4.m.p("redPackWidget"); throw null; } public final LinearLayout v5() { return (LinearLayout) this.C.getValue(); } /* JADX DEBUG: Failed to insert an additional move for type inference into block B:46:0x01c0 */ /* JADX WARNING: Code restructure failed: missing block: B:46:0x01c0, code lost: if (r2 != null) goto L_0x01c7; */ /* JADX WARNING: Code restructure failed: missing block: B:73:0x0254, code lost: if ((r7 == null || r7.length() == 0) != false) goto L_0x0256; */ /* JADX WARNING: Removed duplicated region for block: B:112:0x03af */ /* JADX WARNING: Removed duplicated region for block: B:114:0x03b2 */ /* JADX WARNING: Removed duplicated region for block: B:120:0x03ea */ /* JADX WARNING: Removed duplicated region for block: B:130:0x0458 */ /* JADX WARNING: Removed duplicated region for block: B:133:0x04a9 */ /* JADX WARNING: Removed duplicated region for block: B:143:0x053b */ /* JADX WARNING: Removed duplicated region for block: B:173:0x077c */ /* JADX WARNING: Removed duplicated region for block: B:174:0x078d */ /* JADX WARNING: Removed duplicated region for block: B:184:0x0839 */ /* JADX WARNING: Removed duplicated region for block: B:185:0x083c */ /* JADX WARNING: Removed duplicated region for block: B:187:0x083f */ /* JADX WARNING: Removed duplicated region for block: B:191:0x0869 */ /* JADX WARNING: Removed duplicated region for block: B:194:0x089c */ /* JADX WARNING: Removed duplicated region for block: B:199:0x08ad */ /* JADX WARNING: Removed duplicated region for block: B:250:0x0c15 */ /* JADX WARNING: Removed duplicated region for block: B:251:0x0c27 */ /* JADX WARNING: Removed duplicated region for block: B:262:0x0cbe */ /* JADX WARNING: Removed duplicated region for block: B:265:0x0cf6 */ /* JADX WARNING: Removed duplicated region for block: B:270:0x0d12 */ /* JADX WARNING: Removed duplicated region for block: B:279:0x0d53 */ /* JADX WARNING: Removed duplicated region for block: B:347:0x0f8d */ public final void v6(String str, String str2) { Boolean bool; String str3; String str4; p.a aVar; int i15; long j15; sk1.q profileContact; ViewGroup.MarginLayoutParams marginLayoutParams; FinderProfileHeaderUIC finderProfileHeaderUIC; p.a aVar2; int i16; ky1.h hVar; int i17; sl0 k55; int i18; String str5; boolean z15; String str6; String str7; wg4.b0 b0Var; SpannableString spannableString; boolean z16; ij1.h hVar2; long uptimeMillis = SystemClock.uptimeMillis(); y24.r rVar = y24.r.f342954a; boolean isSelf = ((hy1.p) rVar.b(getContext()).a(hy1.p.class)).isSelf(); boolean isSelfFlag = ((hy1.p) rVar.b(getContext()).a(hy1.p.class)).isSelfFlag(); ViewGroup.LayoutParams layoutParams = C5().f200952a.getLayoutParams(); lh4.m.e(layoutParams, "null cannot be cast to non-null type android.view.ViewGroup.MarginLayoutParams"); ViewGroup.MarginLayoutParams marginLayoutParams2 = (ViewGroup.MarginLayoutParams) layoutParams; if (getFragmentMode()) { marginLayoutParams2.topMargin = 0; } else { marginLayoutParams2.topMargin = (int) getContext().getResources().getDimension(R.dimen.f359015ay); } gh.h<String, p.a> hVar3 = hy1.p.f228915h; p.a aVar3 = (p.a) hVar3.get(this.f116152a1); if (!(aVar3 == null || (hVar2 = aVar3.f228927i) == null)) { if (!hVar2.f233535c) { sk1.q profileContact2 = getProfileContact(); if (!(profileContact2 != null && profileContact2.s2())) { if (hVar2.f233533a == 1) { if (!q6()) { C5().f200952a.setVisibility(0); ((CoordinatorLayout) ((wg4.n) this.N).getValue()).setVisibility(8); } else if (lh4.m.b(str, "onSceneEnd:[NetSceneFinderUserPage]")) { getActivity().finish(); ((com.tencent.mm.plugin.finder.utils.b) yz3.j.c(com.tencent.mm.plugin.finder.utils.b.class)).TM0(getActivity(), this.f116152a1); } ((LinearLayout) ((wg4.n) this.Q).getValue()).setVisibility(8); ((FrameLayout) ((wg4.n) this.R).getValue()).setVisibility(8); bool = Boolean.TRUE; } else { J5(this); bool = Boolean.FALSE; } } } ((LinearLayout) ((wg4.n) this.Q).getValue()).setVisibility(8); ((FrameLayout) ((wg4.n) this.R).getValue()).setVisibility(8); C5().f200952a.setVisibility(0); ((CoordinatorLayout) ((wg4.n) this.N).getValue()).setVisibility(8); if (((hy1.p) ((wg4.n) this.f116168k1).getValue()).l5()) { WeImageView weImageView = (WeImageView) C5().f200952a.findViewById(R.id.h5n); if (weImageView != null) { weImageView.setIconColor(getColor(R.color.f357965ac)); } TextView textView = (TextView) C5().f200952a.findViewById(R.id.o3b); if (textView != null) { textView.setText(getString(R.string.f5r)); } TextView textView2 = (TextView) C5().f200952a.findViewById(R.id.fzb); if (textView2 != null) { textView2.setVisibility(0); } TextView textView3 = (TextView) C5().f200952a.findViewById(R.id.e7u); if (textView3 != null) { textView3.setText(getString(R.string.f367504vi)); textView3.setTextColor(getColor(R.color.f357939m)); bool = textView3; } else { bool = null; } } else { TextView textView4 = (TextView) C5().f200952a.findViewById(R.id.o3b); if (textView4 != null) { textView4.setText(getString(R.string.chp)); } bool = wg4.b0.f332794a; } } J5(this); bool = Boolean.FALSE; Log.i("Finder.FinderProfileHeaderUIC", "[handleLogOut] logout = " + bool); v5().setVisibility(8); sk1.q profileContact3 = getProfileContact(); FinderAuthInfo finderAuthInfo = profileContact3 != null ? profileContact3.field_authInfo : null; if (finderAuthInfo == null) { StringBuilder sb5 = new StringBuilder(); sb5.append("[handleAuthGenerator] profileContact="); sb5.append(getProfileContact() != null); Log.w("Finder.FinderProfileHeaderUIC", sb5.toString()); } else if (finderAuthInfo.authIconType > 0 || !Util.isNullOrNil(finderAuthInfo.unauth_profession)) { if (finderAuthInfo.authGenerator != null) { String str8 = finderAuthInfo.realName; } zz1.e.f356376d.getClass(); if (((Boolean) ((vl1.a) ((wg4.n) zz1.e.H7).getValue()).t()).booleanValue()) { FinderContact finderContact = new FinderContact(); finderContact.nickname = "test auth"; finderContact.headUrl = "http://wx.qlogo.cn/finderhead/Q3auHgzwzM5ibPQZNRq2SprG986yC2zMUjSVXgN7CV2hbm0QUjOcAnA/0"; finderContact.username = "v2_060000231003b20faec8c5e18f1cc4d7ca00ee33b07704a3d9a508fb83cdb3ecb0f31f019ec2@finder"; finderAuthInfo.authGenerator = finderContact; } LinearLayout w55 = w5(); lh4.m.f(w55, "authGenerator"); y74.m.h(w55, new hy1.i0(this)); w5().setOnClickListener(new hy1.j0(this, finderAuthInfo)); u5().setOnClickListener(new hy1.k0(finderAuthInfo, this)); yz3.d c15 = yz3.j.c(w2.class); lh4.m.f(c15, "getService(IFinderCommon…atureService::class.java)"); w2 w2Var = (w2) c15; ImageView imageView = E5().f201056j; lh4.m.f(imageView, "profileHeaderUiBinding.finderProfileAuthIcon"); w2.a.j(w2Var, imageView, finderAuthInfo, 0, null, 12, null); int i19 = finderAuthInfo.authIconType; if (i19 != 1) { if (i19 == 2) { w5().setVisibility(8); v5().setVisibility(0); str5 = finderAuthInfo.authProfession; if (str5 != null) { u5().setVisibility(0); str4 = ""; str3 = "Finder.FinderProfileHeaderUIC"; u5().setText(getResources().getString(R.string.cq8, str5)); } else { str4 = ""; str3 = "Finder.FinderProfileHeaderUIC"; str5 = str4; } } else if (i19 != 100) { str5 = ""; str4 = str5; str3 = "Finder.FinderProfileHeaderUIC"; z15 = false; str6 = ""; if (!z15 && !Util.isNullOrNil(finderAuthInfo.unauth_profession)) { v5().setVisibility(0); w5().setVisibility(8); u5().setVisibility(0); u5().setText(finderAuthInfo.unauth_profession); str5 = finderAuthInfo.unauth_profession; lh4.m.d(str5); } v5().setTag(R.id.e5i, Integer.valueOf(finderAuthInfo.authIconType)); v5().setTag(R.id.e5j, str5); v5().setTag(R.id.e5h, str6); aVar = (p.a) hVar3.get(this.f116152a1); if (aVar == null) { aVar = new p.a(0, 0, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1048575, null); } i15 = aVar.f228921c; x1 x1Var = x1.f119449a; TextView textView5 = (TextView) ((wg4.n) this.f116186y).getValue(); lh4.m.f(textView5, "originCountTv"); x1Var.g(textView5, "original_feed_number", 40, null); if (i15 > 0) { zz1.e.f356376d.getClass(); if (zz1.e.B1.t().intValue() == 1) { j15 = uptimeMillis; ((TextView) ((wg4.n) this.f116186y).getValue()).setText(getContext().getResources().getString(R.string.eta, com.tencent.mm.plugin.finder.utils.s0.d((long) aVar.f228921c))); ((TextView) ((wg4.n) this.f116186y).getValue()).setVisibility(0); if (q6() && zz1.e.C1.t().intValue() == 1) { ((TextView) ((wg4.n) this.f116186y).getValue()).setOnClickListener(new hy1.n0(this)); } G5(); G5(); profileContact = getProfileContact(); if (profileContact != null) { View findViewById = getContext().findViewById(R.id.fy7); if (!r6() && findViewById != null) { k30.a aVar4 = new k30.a(); ThreadLocal<k30.a> threadLocal = k30.c.f244265a; aVar4.c(0); j30.a.d(findViewById, aVar4.b(), "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC", "handleUserDesc", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById.setVisibility(((Integer) aVar4.a(0)).intValue()); j30.a.e(findViewById, "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC", "handleUserDesc", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); } CollapsibleTextView x55 = x5(); int color = getContext().getResources().getColor(R.color.FG_0); int color2 = getContext().getResources().getColor(R.color.FG_1); x55.f119911n.setTextColor(color); x55.f119912o.setTextColor(color2); String str9 = profileContact.field_signature; if (!(str9 == null || str9.length() == 0)) { ((WeImageView) ((wg4.n) this.B).getValue()).setVisibility(8); if (r6()) { i18 = MMApplicationContext.getContext().getResources().getColor(R.color.FG_0); } else { i18 = MMApplicationContext.getContext().getResources().getColor(R.color.f358550qk); } ViewGroup.LayoutParams layoutParams2 = findViewById.getLayoutParams(); lh4.m.e(layoutParams2, "null cannot be cast to non-null type android.widget.LinearLayout.LayoutParams"); LinearLayout.LayoutParams layoutParams3 = (LinearLayout.LayoutParams) layoutParams2; layoutParams3.topMargin = (int) getActivity().getResources().getDimension(R.dimen.f359038bl); layoutParams3.bottomMargin = 0; findViewById.setLayoutParams(layoutParams3); String sb6 = y6(profileContact, i18, false).toString(); lh4.m.f(sb6, "reportNickname.toString()"); String username = profileContact.getUsername(); if (!lh4.m.b(sb6, this.f116169l1)) { this.f116169l1 = sb6; com.tencent.mm.plugin.report.service.q.INSTANCE.kvStat(21172, "0,1," + sb6 + ",0," + username); } x5().setVisibility(0); findViewById.setBackgroundResource(0); findViewById.setPadding(0, 0, 0, 0); x5().setOnExpandBtnClickListener(new hy1.p0(this)); x5().setOnExpandStateChangeListener(new hy1.q0(this)); x5().setOnClickListener(new hy1.r0(this)); x5().setOnLongClickListener(new hy1.s0(this)); } else if ((!q6() || ((hy1.p) ((wg4.n) this.f116168k1).getValue()).l5()) && !cl1.b.a(((hy1.p) ((wg4.n) this.f116168k1).getValue()).k5())) { x5().setVisibility(8); ((WeImageView) ((wg4.n) this.B).getValue()).setVisibility(8); } else { String string = getContext().getString(R.string.ctf); lh4.m.f(string, "context.getString(R.string.finder_desc_guide)"); x5().setText(string); CollapsibleTextView x56 = x5(); x56.getClass(); ((WeImageView) ((wg4.n) this.B).getValue()).setVisibility(0); ViewGroup.LayoutParams layoutParams4 = ((WeImageView) ((wg4.n) this.B).getValue()).getLayoutParams(); lh4.m.e(layoutParams4, "null cannot be cast to non-null type android.widget.FrameLayout.LayoutParams"); FrameLayout.LayoutParams layoutParams5 = (FrameLayout.LayoutParams) layoutParams4; layoutParams5.setMarginStart(((int) x56.f119911n.getPaint().measureText(string)) + ((int) getActivity().getResources().getDimension(R.dimen.f359038bl))); ((WeImageView) ((wg4.n) this.B).getValue()).setLayoutParams(layoutParams5); ViewGroup.LayoutParams layoutParams6 = findViewById.getLayoutParams(); lh4.m.e(layoutParams6, "null cannot be cast to non-null type android.widget.LinearLayout.LayoutParams"); LinearLayout.LayoutParams layoutParams7 = (LinearLayout.LayoutParams) layoutParams6; layoutParams7.topMargin = (int) getActivity().getResources().getDimension(R.dimen.f359038bl); layoutParams7.bottomMargin = 0; findViewById.setLayoutParams(layoutParams7); findViewById.setOnClickListener(new hy1.o0(this)); } } if (!((hy1.p) ((wg4.n) this.f116168k1).getValue()).l5()) { ((TextView) ((wg4.n) this.f116179s).getValue()).setVisibility(8); } else { p.a aVar5 = (p.a) hVar3.get(this.f116152a1); if (aVar5 == null) { aVar5 = new p.a(0, 0, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1048575, null); } if (aVar5.f228922d.isEmpty()) { ((TextView) ((wg4.n) this.f116179s).getValue()).setVisibility(8); ((LinearLayout) ((wg4.n) this.f116180t).getValue()).setVisibility(8); } else { ((TextView) ((wg4.n) this.f116179s).getValue()).setVisibility(0); ((LinearLayout) ((wg4.n) this.f116180t).getValue()).setVisibility(0); } ((TextView) ((wg4.n) this.f116179s).getValue()).setOnClickListener(new hy1.t0(this, aVar5)); } LinearLayout linearLayout = (LinearLayout) ((wg4.n) this.f116173o).getValue(); ViewGroup.LayoutParams layoutParams8 = ((LinearLayout) ((wg4.n) this.f116173o).getValue()).getLayoutParams(); marginLayoutParams = !(layoutParams8 instanceof ViewGroup.MarginLayoutParams) ? (ViewGroup.MarginLayoutParams) layoutParams8 : null; if (marginLayoutParams != null) { marginLayoutParams = null; } else if (getFragmentMode()) { marginLayoutParams.rightMargin = getContext().getResources().getDimensionPixelOffset(R.dimen.f359075cn); } else { marginLayoutParams.rightMargin = getContext().getResources().getDimensionPixelOffset(R.dimen.f359080cs); } linearLayout.setLayoutParams(marginLayoutParams); M5(); hy1.n1 n1Var = (hy1.n1) rVar.c(getActivity()).a(hy1.n1.class); View view = this.f116162h; lh4.m.f(view, "header"); n1Var.getClass(); finderProfileHeaderUIC = (FinderProfileHeaderUIC) rVar.b(n1Var.getContext()).e(FinderProfileHeaderUIC.class); if (!(finderProfileHeaderUIC == null && finderProfileHeaderUIC.C5().f200952a.getVisibility() == 0)) { dj1.b bVar = dj1.b.f200487e; String username2 = n1Var.getUsername(); lh4.m.f(username2, "username"); if ((bVar.W5(username2) || (n1Var.o5() && n1Var.getDataUic().m5())) && ((Boolean) ((wg4.n) n1Var.f228868h).getValue()).booleanValue()) { ((q3) rVar.c(n1Var.getActivity()).c(q3.class)).a5(1); cs1.f0 config = ((t32.e6) yz3.j.c(t32.e6.class)).getConfig(); f0.l0 l0Var = f0.l0.FINDER_PROFILE_RIGHT_CORNER; config.m(l0Var); cs1.f0 config2 = ((t32.e6) yz3.j.c(t32.e6.class)).getConfig(); config2.getClass(); config2.f192788h0 = l0Var; if (!n1Var.o5() || !n1Var.getDataUic().l5() || !n1Var.getDataUic().m5()) { zz1.e.f356376d.getClass(); zz1.e.f356653y4.p(); zz1.e.C4.p(); if (n1Var.f228872o) { if (!n1Var.f228874q) { n1Var.r5((int) 1); n1Var.f228874q = true; } ((LinearLayout) ((wg4.n) n1Var.f228866f).getValue()).setVisibility(0); ((LinearLayout) ((wg4.n) n1Var.f228866f).getValue()).setOnClickListener(new hy1.v1(n1Var)); } else { n1Var.f228873p = true; View findViewById2 = view.findViewById(R.id.fzx); View findViewById3 = view.findViewById(R.id.fz9); View findViewById4 = view.findViewById(R.id.fzo); TextView textView6 = (TextView) view.findViewById(R.id.fzz); if (textView6 != null) { x4.m0(textView6.getPaint(), 0.8f); if (((Boolean) ((wg4.n) n1Var.f228877t).getValue()).booleanValue()) { textView6.setText(n1Var.getContext().getResources().getString(R.string.f368508ew0)); } } TextView textView7 = (TextView) view.findViewById(R.id.fza); if (textView7 != null) { x4.m0(textView7.getPaint(), 0.8f); } if (!n1Var.f228874q) { AppCompatActivity activity = n1Var.getActivity(); lh4.m.f(findViewById2, "postBtn"); n1Var.q5(activity, findViewById2, "post_video", new hy1.w1(n1Var)); if (!n1Var.f228871n) { n1Var.r5((int) 1); AppCompatActivity activity2 = n1Var.getActivity(); lh4.m.f(findViewById3, "liveBtn"); n1Var.q5(activity2, findViewById3, "start_live", null); } n1Var.f228874q = true; } k30.a aVar6 = new k30.a(); ThreadLocal<k30.a> threadLocal2 = k30.c.f244265a; aVar6.c(0); j30.a.d(findViewById2, aVar6.b(), "com/tencent/mm/plugin/finder/profile/uic/FinderProfilePostUIC", "showPostBtn", "(Landroid/view/View;)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById2.setVisibility(((Integer) aVar6.a(0)).intValue()); j30.a.e(findViewById2, "com/tencent/mm/plugin/finder/profile/uic/FinderProfilePostUIC", "showPostBtn", "(Landroid/view/View;)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById2.setOnClickListener(new hy1.x1(n1Var)); if (n1Var.f228871n) { k30.a aVar7 = new k30.a(); aVar7.c(8); j30.a.d(findViewById3, aVar7.b(), "com/tencent/mm/plugin/finder/profile/uic/FinderProfilePostUIC", "showPostBtn", "(Landroid/view/View;)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById3.setVisibility(((Integer) aVar7.a(0)).intValue()); j30.a.e(findViewById3, "com/tencent/mm/plugin/finder/profile/uic/FinderProfilePostUIC", "showPostBtn", "(Landroid/view/View;)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); } else { k30.a aVar8 = new k30.a(); aVar8.c(0); j30.a.d(findViewById3, aVar8.b(), "com/tencent/mm/plugin/finder/profile/uic/FinderProfilePostUIC", "showPostBtn", "(Landroid/view/View;)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById3.setVisibility(((Integer) aVar8.a(0)).intValue()); j30.a.e(findViewById3, "com/tencent/mm/plugin/finder/profile/uic/FinderProfilePostUIC", "showPostBtn", "(Landroid/view/View;)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById3.setOnClickListener(new y1(n1Var)); } if (((Boolean) ((wg4.n) n1Var.f228877t).getValue()).booleanValue()) { TextView textView8 = (TextView) view.findViewById(R.id.fzq); if (textView8 != null) { x4.m0(textView8.getPaint(), 0.8f); } k30.a aVar9 = new k30.a(); aVar9.c(0); j30.a.d(findViewById4, aVar9.b(), "com/tencent/mm/plugin/finder/profile/uic/FinderProfilePostUIC", "showPostBtn", "(Landroid/view/View;)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById4.setVisibility(((Integer) aVar9.a(0)).intValue()); j30.a.e(findViewById4, "com/tencent/mm/plugin/finder/profile/uic/FinderProfilePostUIC", "showPostBtn", "(Landroid/view/View;)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById4.setOnClickListener(new hy1.z1(n1Var)); } else { k30.a aVar10 = new k30.a(); aVar10.c(8); j30.a.d(findViewById4, aVar10.b(), "com/tencent/mm/plugin/finder/profile/uic/FinderProfilePostUIC", "showPostBtn", "(Landroid/view/View;)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById4.setVisibility(((Integer) aVar10.a(0)).intValue()); j30.a.e(findViewById4, "com/tencent/mm/plugin/finder/profile/uic/FinderProfilePostUIC", "showPostBtn", "(Landroid/view/View;)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); } n1Var.f228878u = view.findViewById(R.id.f363388g01); n1Var.f228879v = view.findViewById(R.id.f363389g02); m60.d.t(com.tencent.mm.plugin.finder.extension.reddot.x0.f109689h, n1Var.getActivity(), n1Var.f228880w); } } else { View findViewById5 = view.findViewById(R.id.eac); if (findViewById5 != null) { k30.a aVar11 = new k30.a(); ThreadLocal<k30.a> threadLocal3 = k30.c.f244265a; aVar11.c(0); j30.a.d(findViewById5, aVar11.b(), "com/tencent/mm/plugin/finder/profile/uic/FinderProfilePostUIC", "showPostBtn", "(Landroid/view/View;)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById5.setVisibility(((Integer) aVar11.a(0)).intValue()); j30.a.e(findViewById5, "com/tencent/mm/plugin/finder/profile/uic/FinderProfilePostUIC", "showPostBtn", "(Landroid/view/View;)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById5.setOnClickListener(new hy1.u1(n1Var)); } } } } I5(str); ((LinearLayout) ((wg4.n) this.f116181u).getValue()).setOnClickListener(null); if (!q6()) { ((LinearLayout) ((wg4.n) this.f116181u).getValue()).setVisibility(8); } else { p.a aVar12 = (p.a) hVar3.get(this.f116152a1); if (aVar12 == null) { aVar12 = new p.a(0, 0, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1048575, null); } if (aVar12.f228919a <= 0 || !this.f116157e1) { ((LinearLayout) ((wg4.n) this.f116181u).getValue()).setVisibility(8); } else { ((LinearLayout) ((wg4.n) this.f116181u).getValue()).setVisibility(0); ((TextView) ((wg4.n) this.f116182v).getValue()).setText(getContext().getResources().getString(R.string.cy4, com.tencent.mm.plugin.finder.utils.s0.j(aVar12.f228919a, false))); } } aVar2 = (p.a) hVar3.get(this.f116152a1); if (aVar2 == null) { aVar2 = new p.a(0, 0, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1048575, null); } if (aVar2.f228920b <= 0 && p6()) { ((LinearLayout) ((wg4.n) this.f116184x).getValue()).setVisibility(0); } else if (!q6() || aVar2.f228919a <= 0 || !this.f116157e1) { i16 = 8; ((LinearLayout) ((wg4.n) this.f116184x).getValue()).setVisibility(8); y5().post(new hy1.m0(this)); L5(str); K5(); hVar = this.Y; if (hVar != null) { String str10 = this.f116152a1; boolean z17 = this.f116167j1; sk1.q profileContact4 = getProfileContact(); if (str2 != null) { str4 = str2; } hVar.d(str, str10, z17, isSelf, isSelfFlag, profileContact4, str4, this.W0); if (!this.V0) { ky1.h hVar4 = this.Y; if (hVar4 != null) { hVar4.b(); } else { lh4.m.p("liveWidget"); throw null; } } ky1.u uVar = this.V; if (uVar != null) { uVar.a(this.f116152a1, getProfileContact()); ky1.x xVar = this.W; if (xVar != null) { xVar.a(str, this.f116152a1, getProfileContact()); ky1.a aVar13 = this.X; if (aVar13 != null) { aVar13.c(str, this.f116152a1, this.f116167j1, isSelf, isSelfFlag); if (this.U0 == null) { Activity context = getContext(); View view2 = this.f116162h; lh4.m.f(view2, "header"); ay1.e eVar = new ay1.e(context, view2, null, 4, null); this.U0 = eVar; String str11 = this.f116152a1; lh4.m.g(str11, "userName"); eVar.f9026j = str11; } ay1.e eVar2 = this.U0; if (eVar2 != null) { eVar2.i(null); } ky1.d dVar = this.U; if (dVar != null) { dVar.c(this.f116152a1, getProfileContact()); ky1.c cVar = this.f116185x0; if (cVar != null) { cVar.a(this.f116152a1); x6(a5.f118672a.K(sk1.d.f302423a.b(this.f116152a1)), str); ((j2) rVar.c(getActivity()).a(j2.class)).j5(getProfileContact()); if (!((wr.b) yz3.j.c(wr.b.class)).YN()) { i17 = 0; } else { if (((hy1.p) ((wg4.n) this.f116168k1).getValue()).l5()) { i17 = 0; ((LinearLayout) ((wg4.n) this.f116184x).getValue()).setVisibility(0); } else { i17 = 0; } if (((hy1.p) rVar.b(getContext()).a(hy1.p.class)).isSelfFlag() && ((hy1.p) ((wg4.n) this.f116168k1).getValue()).m5() && (k55 = ((hy1.p) ((wg4.n) this.f116168k1).getValue()).k5()) != null && k55.f36553f > 0) { TextView textView9 = E5().f201076t; textView9.setVisibility(i17); Resources resources = getContext().getResources(); Object[] objArr = new Object[1]; objArr[i17] = Integer.valueOf(k55.f36553f); textView9.setText(resources.getString(R.string.f368127com, objArr)); textView9.setOnClickListener(new hy1.l0(this, k55)); } } m5(); o6(str); F5(); u6(); s6(); if (!(!isSelf || !isSelfFlag || E5().D.getVisibility() == 0 || E5().G.getVisibility() == 0 || E5().W.getVisibility() == 0)) { View view3 = (View) ((wg4.n) this.I).getValue(); k30.a aVar14 = new k30.a(); ThreadLocal<k30.a> threadLocal4 = k30.c.f244265a; aVar14.c(Integer.valueOf(i16)); j30.a.d(view3, aVar14.b(), "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC", "refreshProfile", "(Ljava/lang/String;Ljava/lang/String;)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); view3.setVisibility(((Integer) aVar14.a(i17)).intValue()); j30.a.e(view3, "com/tencent/mm/plugin/finder/profile/uic/FinderProfileHeaderUIC", "refreshProfile", "(Ljava/lang/String;Ljava/lang/String;)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); } StringBuilder sb7 = new StringBuilder(); sb7.append("[refreshProfile] nickname:"); sk1.q profileContact5 = getProfileContact(); sb7.append(profileContact5 != null ? profileContact5.C1() : null); sb7.append(" COST="); sb7.append(SystemClock.uptimeMillis() - j15); sb7.append("ms source="); sb7.append(str); Log.i(str3, sb7.toString()); return; } lh4.m.p("belongWidget"); throw null; } lh4.m.p("enterpriseAdd"); throw null; } lh4.m.p("activityWidget"); throw null; } lh4.m.p("miniProgram"); throw null; } lh4.m.p("mediaEntrance"); throw null; } lh4.m.p("liveWidget"); throw null; } else { ((LinearLayout) ((wg4.n) this.f116184x).getValue()).setVisibility(0); } i16 = 8; y5().post(new hy1.m0(this)); L5(str); K5(); hVar = this.Y; if (hVar != null) { } } } j15 = uptimeMillis; ((TextView) ((wg4.n) this.f116186y).getValue()).setVisibility(8); G5(); G5(); profileContact = getProfileContact(); if (profileContact != null) { } if (!((hy1.p) ((wg4.n) this.f116168k1).getValue()).l5()) { } LinearLayout linearLayout2 = (LinearLayout) ((wg4.n) this.f116173o).getValue(); ViewGroup.LayoutParams layoutParams82 = ((LinearLayout) ((wg4.n) this.f116173o).getValue()).getLayoutParams(); if (!(layoutParams82 instanceof ViewGroup.MarginLayoutParams)) { } if (marginLayoutParams != null) { } linearLayout2.setLayoutParams(marginLayoutParams); M5(); hy1.n1 n1Var2 = (hy1.n1) rVar.c(getActivity()).a(hy1.n1.class); View view4 = this.f116162h; lh4.m.f(view4, "header"); n1Var2.getClass(); finderProfileHeaderUIC = (FinderProfileHeaderUIC) rVar.b(n1Var2.getContext()).e(FinderProfileHeaderUIC.class); if (!(finderProfileHeaderUIC == null && finderProfileHeaderUIC.C5().f200952a.getVisibility() == 0)) { } I5(str); ((LinearLayout) ((wg4.n) this.f116181u).getValue()).setOnClickListener(null); if (!q6()) { } aVar2 = (p.a) hVar3.get(this.f116152a1); if (aVar2 == null) { } if (aVar2.f228920b <= 0) { } if (!q6()) { } i16 = 8; ((LinearLayout) ((wg4.n) this.f116184x).getValue()).setVisibility(8); y5().post(new hy1.m0(this)); L5(str); K5(); hVar = this.Y; if (hVar != null) { } } else { v5().setVisibility(0); w5().setVisibility(8); u5().setOnClickListener(null); u5().setText(R.string.d0n); str5 = getContext().getString(R.string.d0n); lh4.m.f(str5, "context.getString(com.te…ing.finder_has_real_name)"); str4 = ""; str3 = "Finder.FinderProfileHeaderUIC"; } str7 = str4; } else { str4 = ""; str3 = "Finder.FinderProfileHeaderUIC"; String str12 = finderAuthInfo.authProfession; if (str12 != null) { u5().setVisibility(0); u5().setText(getResources().getString(R.string.cq8, str12)); str5 = str12; } else { str5 = str4; } FinderContact finderContact2 = finderAuthInfo.authGenerator; if (finderContact2 != null) { String str13 = finderContact2.username; if (str13 != null) { if (str13.length() > 0) { z16 = true; if (!(!z16 || finderAuthInfo.verify_status == 12)) { finderContact2 = null; } if (finderContact2 != null) { w5().setVisibility(0); hz.h hVar5 = (hz.h) yz3.j.c(hz.h.class); Activity context2 = getContext(); String str14 = finderContact2.nickname; if (str14 == null) { str14 = str4; } SpannableString g25 = hVar5.g2(context2, str14); ((TextView) ((wg4.n) this.E).getValue()).setText(g25); lh4.m.f(g25, "ss"); b0Var = wg4.b0.f332794a; spannableString = g25; if (b0Var == null) { w5().setVisibility(8); } v5().setVisibility(0); str7 = spannableString; } } } z16 = false; if (!(!z16 || finderAuthInfo.verify_status == 12)) { } if (finderContact2 != null) { } } spannableString = str4; b0Var = null; if (b0Var == null) { } v5().setVisibility(0); str7 = spannableString; } z15 = true; str6 = str7; v5().setVisibility(0); w5().setVisibility(8); u5().setVisibility(0); u5().setText(finderAuthInfo.unauth_profession); str5 = finderAuthInfo.unauth_profession; lh4.m.d(str5); v5().setTag(R.id.e5i, Integer.valueOf(finderAuthInfo.authIconType)); v5().setTag(R.id.e5j, str5); v5().setTag(R.id.e5h, str6); aVar = (p.a) hVar3.get(this.f116152a1); if (aVar == null) { } i15 = aVar.f228921c; x1 x1Var2 = x1.f119449a; TextView textView52 = (TextView) ((wg4.n) this.f116186y).getValue(); lh4.m.f(textView52, "originCountTv"); x1Var2.g(textView52, "original_feed_number", 40, null); if (i15 > 0) { } j15 = uptimeMillis; ((TextView) ((wg4.n) this.f116186y).getValue()).setVisibility(8); G5(); G5(); profileContact = getProfileContact(); if (profileContact != null) { } if (!((hy1.p) ((wg4.n) this.f116168k1).getValue()).l5()) { } LinearLayout linearLayout22 = (LinearLayout) ((wg4.n) this.f116173o).getValue(); ViewGroup.LayoutParams layoutParams822 = ((LinearLayout) ((wg4.n) this.f116173o).getValue()).getLayoutParams(); if (!(layoutParams822 instanceof ViewGroup.MarginLayoutParams)) { } if (marginLayoutParams != null) { } linearLayout22.setLayoutParams(marginLayoutParams); M5(); hy1.n1 n1Var22 = (hy1.n1) rVar.c(getActivity()).a(hy1.n1.class); View view42 = this.f116162h; lh4.m.f(view42, "header"); n1Var22.getClass(); finderProfileHeaderUIC = (FinderProfileHeaderUIC) rVar.b(n1Var22.getContext()).e(FinderProfileHeaderUIC.class); if (!(finderProfileHeaderUIC == null && finderProfileHeaderUIC.C5().f200952a.getVisibility() == 0)) { } I5(str); ((LinearLayout) ((wg4.n) this.f116181u).getValue()).setOnClickListener(null); if (!q6()) { } aVar2 = (p.a) hVar3.get(this.f116152a1); if (aVar2 == null) { } if (aVar2.f228920b <= 0) { } if (!q6()) { } i16 = 8; ((LinearLayout) ((wg4.n) this.f116184x).getValue()).setVisibility(8); y5().post(new hy1.m0(this)); L5(str); K5(); hVar = this.Y; if (hVar != null) { } } else { Log.w("Finder.FinderProfileHeaderUIC", "[handleAuthGenerator] return authIconType=" + finderAuthInfo.authIconType + " unAuthProfession=" + finderAuthInfo.unauth_profession); } str4 = ""; str3 = "Finder.FinderProfileHeaderUIC"; aVar = (p.a) hVar3.get(this.f116152a1); if (aVar == null) { } i15 = aVar.f228921c; x1 x1Var22 = x1.f119449a; TextView textView522 = (TextView) ((wg4.n) this.f116186y).getValue(); lh4.m.f(textView522, "originCountTv"); x1Var22.g(textView522, "original_feed_number", 40, null); if (i15 > 0) { } j15 = uptimeMillis; ((TextView) ((wg4.n) this.f116186y).getValue()).setVisibility(8); G5(); G5(); profileContact = getProfileContact(); if (profileContact != null) { } if (!((hy1.p) ((wg4.n) this.f116168k1).getValue()).l5()) { } LinearLayout linearLayout222 = (LinearLayout) ((wg4.n) this.f116173o).getValue(); ViewGroup.LayoutParams layoutParams8222 = ((LinearLayout) ((wg4.n) this.f116173o).getValue()).getLayoutParams(); if (!(layoutParams8222 instanceof ViewGroup.MarginLayoutParams)) { } if (marginLayoutParams != null) { } linearLayout222.setLayoutParams(marginLayoutParams); M5(); hy1.n1 n1Var222 = (hy1.n1) rVar.c(getActivity()).a(hy1.n1.class); View view422 = this.f116162h; lh4.m.f(view422, "header"); n1Var222.getClass(); finderProfileHeaderUIC = (FinderProfileHeaderUIC) rVar.b(n1Var222.getContext()).e(FinderProfileHeaderUIC.class); if (!(finderProfileHeaderUIC == null && finderProfileHeaderUIC.C5().f200952a.getVisibility() == 0)) { } I5(str); ((LinearLayout) ((wg4.n) this.f116181u).getValue()).setOnClickListener(null); if (!q6()) { } aVar2 = (p.a) hVar3.get(this.f116152a1); if (aVar2 == null) { } if (aVar2.f228920b <= 0) { } if (!q6()) { } i16 = 8; ((LinearLayout) ((wg4.n) this.f116184x).getValue()).setVisibility(8); y5().post(new hy1.m0(this)); L5(str); K5(); hVar = this.Y; if (hVar != null) { } } public final LinearLayout w5() { return (LinearLayout) this.D.getValue(); } public final CollapsibleTextView x5() { return (CollapsibleTextView) this.A.getValue(); } public final void x6(boolean z15, String str) { if (z15) { ((WeImageView) ((wg4.n) this.M).getValue()).setVisibility(0); } else { ((WeImageView) ((wg4.n) this.M).getValue()).setVisibility(8); } if (!lh4.m.b(str, "onCreate")) { m5(); } } public final RoundCornerRelativeLayout y5() { return (RoundCornerRelativeLayout) this.H.getValue(); } /* JADX WARNING: Removed duplicated region for block: B:22:0x0031 */ /* JADX WARNING: Removed duplicated region for block: B:29:0x0057 */ public final StringBuilder y6(sk1.q qVar, int i15, boolean z15) { a aVar; int i16; String str = qVar.field_signature; if (str == null) { str = ""; } wg4.b0 b0Var = null; if (z15) { a aVar2 = this.Z0; if (lh4.m.b(aVar2 != null ? aVar2.f116189a : null, str)) { aVar = this.Z0; if (aVar != null) { SpannableString spannableString = aVar.f116190b; if (spannableString != null) { x5().setText(spannableString); h4.f119006a.U1(x5().getContentTextView(), spannableString); b0Var = wg4.b0.f332794a; } if (b0Var == null) { x5().setText(""); } return aVar.f116191c; } String string = getContext().getResources().getString(R.string.cq_, qVar.field_signature); lh4.m.f(string, "context.resources.getStr… contact.field_signature)"); SpannableString Vr0 = ((hz.h) yz3.j.c(hz.h.class)).Vr0(getContext(), string, 0.0f); StringBuilder sb5 = new StringBuilder(); if (r6()) { i16 = MMApplicationContext.getContext().getResources().getColor(R.color.a9e); } else { i16 = MMApplicationContext.getContext().getResources().getColor(R.color.BW_0_Alpha_0_2); } com.tencent.mm.plugin.finder.utils.u.f119339a.h(string, new l1(Vr0, i15, i16, sb5, this, qVar)); x5().setText(Vr0); h4 h4Var = h4.f119006a; EllipsizedTextView contentTextView = x5().getContentTextView(); lh4.m.f(Vr0, "signatureSpan"); h4Var.U1(contentTextView, Vr0); String str2 = qVar.field_signature; lh4.m.f(str2, "contact.field_signature"); a aVar3 = new a(str2, Vr0, sb5); if (z15) { this.Z0 = aVar3; } else { this.Y0 = aVar3; } return sb5; } } if (!z15) { a aVar4 = this.Y0; if (lh4.m.b(aVar4 != null ? aVar4.f116189a : null, str)) { aVar = this.Y0; if (aVar != null) { } } } aVar = null; if (aVar != null) { } } public final FinderProfileFeedUIC z5() { y24.r rVar = y24.r.f342954a; return (FinderProfileFeedUIC) rVar.d(((FinderProfileTabUIC) rVar.c(getActivity()).a(FinderProfileTabUIC.class)).A6(FinderProfileFeedFragment.class)).e(FinderProfileFeedUIC.class); } public final void z6() { A5().setVisibility(8); t5().setVisibility(8); TextView textView = E5().F; lh4.m.f(textView, "profileHeaderUiBinding.finderProfileFollowBtnTv"); zz1.e.f356376d.getClass(); if (((Number) ((tl1.c) ((wg4.n) zz1.e.Ea).getValue()).t()).intValue() == 1) { s5().setTextColor(getResources().getColor(R.color.f357977an)); textView.setTextColor(getResources().getColor(R.color.f357977an)); return; } s5().setTextColor(getResources().getColor(R.color.FG_0_5)); textView.setTextColor(getResources().getColor(R.color.FG_0_5)); } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public FinderProfileHeaderUIC(Fragment fragment) { super(fragment); lh4.m.g(fragment, "fragment"); String stringExtra = getActivity().getIntent().getStringExtra("finder_username"); this.f116152a1 = stringExtra == null ? "" : stringExtra; this.f116155d1 = wg4.h.a(new k(this)); this.f116157e1 = ((e2) yz3.j.c(e2.class)).TL(); View view = this.f116162h; lh4.m.e(view, "null cannot be cast to non-null type android.view.ViewGroup"); this.f116159f1 = new by1.c((ViewGroup) view); this.f116163h1 = wg4.h.a(v.f116264d); this.f116165i1 = true; this.f116167j1 = true; this.f116168k1 = wg4.h.a(new m(this)); this.f116169l1 = ""; this.f116170m1 = 1; this.f116172n1 = new l(this); } }