package fu1; import android.content.Context; import android.content.Intent; import android.view.MenuItem; import androidx.appcompat.app.AppCompatActivity; import com.tencent.mm.R; import com.tencent.mm.plugin.finder.utils.b3; import com.tencent.mm.ui.MMActivity; import com.tencent.tinker.loader.hotplug.EnvConsts; import i14.d0; import i14.l0; import i14.p0; import java.util.Arrays; import lh4.m; import p64.n; import sk1.d; import sk1.q; import zz1.e; public final class a extends sj1.a { /* renamed from: f reason: collision with root package name */ public final String f217672f; /* renamed from: fu1.a$a reason: collision with other inner class name */ public static final class C2668a implements l0 { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ a f217673d; public C2668a(a aVar) { this.f217673d = aVar; } @Override // i14.l0 public final void onCreateMMMenu(d0 d0Var) { if (d0Var.v()) { e.f356376d.getClass(); if (e.f356594tc.t().intValue() == 1 && d.f302423a.b(this.f217673d.f217672f) != null) { d0Var.k(10002, this.f217673d.f301986d.getString(R.string.f367611yh), R.raw.finder_icons_filled_share, false); } if (!this.f217673d.e()) { d0Var.k(10005, this.f217673d.f301986d.getResources().getString(R.string.dy4), R.raw.icons_outlined_report_problem, false); } } } } public static final class b implements p0 { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ a f217674d; public b(a aVar) { this.f217674d = aVar; } @Override // i14.p0 public final void onMMMenuItemSelected(MenuItem menuItem, int i15) { int itemId = menuItem.getItemId(); if (itemId == 10002) { this.f217674d.getClass(); this.f217674d.i(); } else if (itemId == 10003) { this.f217674d.getClass(); this.f217674d.getClass(); } else if (itemId == 10005) { this.f217674d.d(); } } } public static final class c implements n.p { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ a f217675a; public c(a aVar) { this.f217675a = aVar; } @Override // p64.n.p public final void onDismiss() { this.f217675a.f301987e = null; } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(AppCompatActivity appCompatActivity, String str) { super(appCompatActivity); m.g(appCompatActivity, EnvConsts.ACTIVITY_MANAGER_SRVNAME); m.g(str, "finderAuthorUsername"); this.f217672f = str; } @Override // sj1.a public void a(n nVar) { m.g(nVar, "bottomSheet"); super.a(nVar); nVar.f281245i = new C2668a(this); nVar.f281259q = new b(this); } @Override // sj1.a public void d() { AppCompatActivity appCompatActivity = this.f301986d; String str = this.f217672f; m.g(appCompatActivity, "context"); m.g(str, "username"); String format = String.format("https://weixin110.qq.com/security/readtemplate?t=weixin_report/w_type&scene=%d&user_ID=%s", Arrays.copyOf(new Object[]{87, str}, 2)); m.f(format, "format(format, *args)"); Intent intent = new Intent(); intent.putExtra("rawUrl", format); sv3.b.j(appCompatActivity, "webview", ".ui.tools.WebViewUI", intent, null); } @Override // sj1.a public boolean e() { return m.b(this.f217672f, r32.b.c(this.f301986d)); } @Override // sj1.a public void i() { q b15 = d.f302423a.b(this.f217672f); if (b15 != null) { b3.a aVar = b3.f118772a; AppCompatActivity appCompatActivity = this.f301986d; m.e(appCompatActivity, "null cannot be cast to non-null type com.tencent.mm.ui.MMActivity"); aVar.n((MMActivity) appCompatActivity, b15); } } @Override // sj1.a public void k() { if (this.f301987e == null) { n nVar = new n((Context) this.f301986d, 1, true); a(nVar); b(nVar); nVar.f281235d = new c(this); this.f301987e = nVar; } n nVar2 = this.f301987e; if (nVar2 != null) { nVar2.q(); } } }