package t02; import a12.c; import a12.h; import android.content.Context; import android.content.Intent; import android.view.MenuItem; import bw3.jn1; import bw3.ul0; import com.tencent.mm.R; import com.tencent.mm.plugin.finder.service.t1; import com.tencent.mm.sdk.platformtools.ClipboardHelper; import com.tencent.mm.sdk.platformtools.Log; import com.tencent.mm.sdk.platformtools.MMApplicationContext; import com.tencent.mm.sdk.platformtools.Util; import d32.ta; import ez1.f1; import i14.p0; import i14.y0; import im1.a; import kh4.l; import lh4.m; import sv3.b; import t32.b5; import t32.k6; import wg4.b0; import yz3.j; public final class j1 implements p0 { /* renamed from: d reason: collision with root package name */ public h f308772d; /* renamed from: e reason: collision with root package name */ public l<? super h, b0> f308773e; public static final class a implements k6<jn1> { /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, bw3.ul0] */ @Override // t32.k6 public void D6(jn1 jn12, ul0 ul02) { m.g(jn12, "req"); m.g(ul02, "ret"); Context context = MMApplicationContext.getContext(); if (ul02.f38816e == 0) { Log.i("Finder.MenuItemCreateListener", "comment black list succ"); y0.makeText(context, context.getResources().getString(R.string.e7g), 0).show(); return; } Log.i("Finder.MenuItemCreateListener", "comment black list failed:" + ul02.f38816e); y0.makeText(context, context.getResources().getString(R.string.e7h), 0).show(); } } public j1(h hVar, int i15, l<? super h, b0> lVar) { m.g(hVar, "commentItem"); this.f308772d = hVar; this.f308773e = lVar; } @Override // i14.p0 public void onMMMenuItemSelected(MenuItem menuItem, int i15) { c cVar; im1.a b15; if (menuItem != null) { int itemId = menuItem.getItemId(); if (itemId == 0) { if (!Util.isNullOrNil(this.f308772d.f620d.getContent())) { ClipboardHelper.setText(this.f308772d.f620d.getContent()); ak.a.makeText(MMApplicationContext.getContext(), (int) R.string.f367407st, 0).show(); } } else if (itemId == 1) { l<? super h, b0> lVar = this.f308773e; if (lVar != null) { lVar.invoke(this.f308772d); } } else { String str = null; if (itemId == 2) { Context context = MMApplicationContext.getContext(); m.f(context, "getContext()"); c cVar2 = this.f308772d.f620d; long j15 = cVar2.field_feedId; String str2 = "https://weixin110.qq.com/security/readtemplate?t=weixin_report/w_type&scene=79&comment_ID=" + cVar2.q2() + "&Content_ID=" + j15; Intent intent = new Intent(); intent.putExtra("rawUrl", str2); b.j(context, "webview", ".ui.tools.WebViewUI", intent, null); ((f1) j.c(f1.class)).eO0(j15); ta f15 = ta.W0.f(context); if (f15 != null && (b15 = b5.a.b(f15, 0, 1, null)) != null) { b15.a(new a.C3178a(17, j15)); } } else if (itemId == 3) { t1 t1Var = (t1) j.c(t1.class); long itemId2 = this.f308772d.getItemId(); c cVar3 = this.f308772d.f620d; long j16 = cVar3.field_feedId; String str3 = cVar3.field_objectNonceId; if (str3 == null) { str3 = ""; } t1Var.yX(itemId2, j16, str3, true, new a()); } else if (itemId == 999) { h hVar = this.f308772d; if (!(hVar == null || (cVar = hVar.f620d) == null)) { str = cVar.toString(); } ClipboardHelper.setText(str); } } } } }