package com.tencent.mm.app.plugin; import android.app.Activity; import android.app.Service; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.PackageManager; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.os.Looper; import android.text.TextUtils; import android.view.View; import bg0.d; import bg0.e; import bg0.l; import bj.b0; import bj.c0; import bw3.bi3; import bw3.j45; import bw3.l95; import bw3.wx3; import com.google.android.gms.common.Scopes; import com.google.firebase.analytics.FirebaseAnalytics; import com.tencent.kinda.framework.widget.tools.ConstantsKinda; import com.tencent.kinda.gen.ITransmitKvData; import com.tencent.kinda.gen.UseCaseCallback; import com.tencent.mm.R; import com.tencent.mm.autogen.events.CloseAAEvent; import com.tencent.mm.autogen.events.CloseAAUrgeNotifyEvent; import com.tencent.mm.autogen.events.GetA8KeyRedirectEvent; import com.tencent.mm.autogen.events.NotifyGroupTodoEvent; import com.tencent.mm.autogen.events.RemittanceAccountDetailEvent; import com.tencent.mm.autogen.events.RemittanceRefuseEvent; import com.tencent.mm.autogen.events.ScrollChattingUIConversationListEvent; import com.tencent.mm.autogen.events.StartAppBrandUIFromOuterEvent; import com.tencent.mm.autogen.events.VoipEvent; import com.tencent.mm.autogen.mmdata.rpt.VoiceToTextChatInterfaceStruct; import com.tencent.mm.autogen.mmdata.rpt.VoipExceptionReportStruct; import com.tencent.mm.autogen.mmdata.rpt.WCTopicSearchContentActionStruct; import com.tencent.mm.chatroom.ui.ManagerRoomByWeworkUI; import com.tencent.mm.plugin.account.bind.ui.BindMContactIntroUI; import com.tencent.mm.plugin.account.bind.ui.MobileFriendUI; import com.tencent.mm.plugin.appbrand.jsapi.q2; import com.tencent.mm.plugin.appbrand.service.d1; import com.tencent.mm.plugin.appbrand.ui.AppBrandCheckWxaShortLinkUI; import com.tencent.mm.plugin.report.service.q; import com.tencent.mm.plugin.setting.ui.setting.SettingsPersonalInfoUI; import com.tencent.mm.plugin.sns.model.f1; import com.tencent.mm.plugin.sns.storage.SnsInfo; import com.tencent.mm.plugin.webview.ui.tools.WebViewUI; import com.tencent.mm.plugin.wxpaysdk.api.ResendMsgInfo; import com.tencent.mm.sdk.http.HttpWrapperBase; import com.tencent.mm.sdk.platformtools.BuildInfo; import com.tencent.mm.sdk.platformtools.Log; import com.tencent.mm.sdk.platformtools.MMApplicationContext; import com.tencent.mm.sdk.platformtools.MMHandler; import com.tencent.mm.sdk.platformtools.Util; import com.tencent.mm.sdk.platformtools.WeChatHosts; import com.tencent.mm.storage.f4; import com.tencent.mm.storage.g4; import com.tencent.mm.storage.k1; import com.tencent.mm.storage.r4; import com.tencent.mm.storage.s4; import com.tencent.mm.storage.z1; import com.tencent.mm.ui.LauncherUI; import com.tencent.mm.ui.MMWizardActivity; import com.tencent.mm.ui.chatting.ChattingUI; import com.tencent.mm.ui.chatting.component.c; import com.tencent.mm.ui.contact.AddressUI; import com.tencent.mm.ui.contact.SelectContactUI; import com.tencent.mm.ui.vas.VASActivity; import com.tencent.mm.ui.w; import com.tencent.mm.vfs.u1; import com.tencent.thumbplayer.tplayer.plugins.report.TPReportKeys; import com.tencent.xweb.ProxyConfig; import com.tencent.xweb.xwalk.plugin.XWalkReaderBasePlugin; import cu3.l0; import cu3.m; import cu3.n; import d60.z; import dv3.t0; import dx.f; import f14.i; import h03.s; import i14.j; import i14.y0; import ie1.h; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import java.lang.ref.WeakReference; import java.util.HashMap; import java.util.LinkedList; import jh2.k0; import jo3.l1; import kq2.g; import kv3.a0; import kv3.h0; import kv3.p; import nf0.e6; import nf0.i2; import nf0.j2; import nf0.p3; import nf0.q0; import nf0.u0; import nf0.w0; import nf0.x0; import nf0.z0; import om0.o; import p64.i0; import p64.u; import t32.e2; import t32.f5; import vj.r; import yf0.y; import z80.b; import zg0.f0; import zg0.g0; public class URISpanHandlerSet { /* renamed from: a reason: collision with root package name */ public Context f61394a = null; @a public class AAUriSpanHandler extends BaseUriSpanHandler { public class a implements DialogInterface.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ String f61396d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ String f61397e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ long f61398f; public a(AAUriSpanHandler aAUriSpanHandler, String str, String str2, long j15) { this.f61396d = str; this.f61397e = str2; this.f61398f = j15; } public void onClick(DialogInterface dialogInterface, int i15) { CloseAAEvent closeAAEvent = new CloseAAEvent(); CloseAAEvent.a aVar = closeAAEvent.f62082d; aVar.f62083a = this.f61396d; aVar.f62084b = this.f61397e; aVar.f62085c = this.f61398f; closeAAEvent.publish(); } } public class b implements DialogInterface.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ String f61399d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ String f61400e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ long f61401f; public b(AAUriSpanHandler aAUriSpanHandler, String str, String str2, long j15) { this.f61399d = str; this.f61400e = str2; this.f61401f = j15; } public void onClick(DialogInterface dialogInterface, int i15) { CloseAAUrgeNotifyEvent closeAAUrgeNotifyEvent = new CloseAAUrgeNotifyEvent(); CloseAAUrgeNotifyEvent.a aVar = closeAAUrgeNotifyEvent.f62086d; aVar.f62087a = this.f61399d; aVar.f62088b = this.f61400e; aVar.f62089c = this.f61401f; closeAAUrgeNotifyEvent.publish(); } } public AAUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{35, 36, 37}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().toLowerCase().startsWith("weixin://weixinnewaa/opendetail")) { return new t0(str, 35, null); } if (str.trim().toLowerCase().startsWith("weixin://weixinnewaa/closeurgenotify")) { return new t0(str, 36, null); } if (str.trim().toLowerCase().startsWith("weixin://weixinnewaa/closeaa")) { return new t0(str, 37, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { String str; int i15 = t0Var.f203634d; Bundle bundle = null; if (i15 == 35) { try { Uri parse = Uri.parse(t0Var.b()); String queryParameter = parse.getQueryParameter("billno"); if (Util.isNullOrNil(queryParameter)) { Log.e("MicroMsg.URISpanHandlerSet", "url error, billno is null"); return true; } int i16 = Util.getInt(parse.getQueryParameter(TPReportKeys.PlayerStep.PLAYER_BUFFERING_SCENE), 3); Object obj = t0Var.f203635e; if (obj instanceof Bundle) { str = ((Bundle) obj).getString("chatroom_name"); } else if (obj instanceof String) { str = obj.toString(); } else { Log.e("MicroMsg.URISpanHandlerSet", "illegal data type, %s", t0Var); return true; } Intent intent = new Intent(); intent.putExtra("bill_no", queryParameter); intent.putExtra("enter_scene", i16); intent.putExtra("chatroom", str); sv3.b.j(URISpanHandlerSet.this.f61394a, "aa", ".ui.PaylistAAUI", intent, null); return true; } catch (Exception e15) { Log.e("MicroMsg.URISpanHandlerSet", "handle click new aa open detail link error: %s, url: %s", e15.getMessage(), t0Var.b()); } } else { if (i15 == 37) { try { String queryParameter2 = Uri.parse(t0Var.b()).getQueryParameter("billno"); if (Util.isNullOrNil(queryParameter2)) { Log.e("MicroMsg.URISpanHandlerSet", "url error, billno is null"); return true; } Object obj2 = t0Var.f203635e; if (!(obj2 instanceof Bundle)) { Log.e("MicroMsg.URISpanHandlerSet", "error data!"); return true; } Bundle bundle2 = (Bundle) obj2; String string = bundle2.getString("chatroom_name"); if (Util.isNullOrNil(string)) { Log.e("MicroMsg.URISpanHandlerSet", "empty chatroom!"); return true; } long j15 = bundle2.getLong("msg_id", -1); if (j15 < 0) { Log.e("MicroMsg.URISpanHandlerSet", "msgId is null"); return true; } j.j(URISpanHandlerSet.this.f61394a, R.string.jjb, -1, R.string.jje, R.string.aq7, new a(this, queryParameter2, string, j15), null); } catch (Exception e16) { Log.e("MicroMsg.URISpanHandlerSet", "handle click new aa close link error: %s, url: %s", e16.getMessage(), t0Var.b()); } } else if (i15 == 36) { try { String queryParameter3 = Uri.parse(t0Var.b()).getQueryParameter("billno"); if (Util.isNullOrNil(queryParameter3)) { Log.e("MicroMsg.URISpanHandlerSet", "url error, billno is null"); return true; } Object obj3 = t0Var.f203635e; if (obj3 instanceof Bundle) { bundle = (Bundle) obj3; } if (bundle != null) { if (!Util.isNullOrNil(bundle.getString("chatroom_name"))) { j.j(URISpanHandlerSet.this.f61394a, R.string.jjc, -1, R.string.jjd, R.string.aq7, new b(this, queryParameter3, bundle.getString("chatroom_name"), bundle.getLong("msg_id", -1)), null); } } Log.e("MicroMsg.URISpanHandlerSet", "empty chatroom!"); return true; } catch (Exception e17) { Log.e("MicroMsg.URISpanHandlerSet", "handle click new aa urge notify link error: %s, url: %s", e17.getMessage(), t0Var.b()); } } return false; } } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class AddressUriSpanHandler extends BaseUriSpanHandler { public AddressUriSpanHandler(URISpanHandlerSet uRISpanHandlerSet) { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{44}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 44) { return false; } Uri parse = Uri.parse("geo:0,0?q=" + Uri.encode(t0Var.b())); Intent intent = new Intent("android.intent.action.VIEW"); intent.setData(parse); intent.addFlags(268435456); if (intent.resolveActivity(MMApplicationContext.getContext().getPackageManager()) != null) { Context context = MMApplicationContext.getContext(); k30.a aVar = new k30.a(); aVar.c(intent); j30.a.d(context, aVar.b(), "com/tencent/mm/app/plugin/URISpanHandlerSet$AddressUriSpanHandler", "handleSpanClick", "(Landroid/view/View;Lcom/tencent/mm/pluginsdk/ui/applet/HrefInfo;Lcom/tencent/mm/pluginsdk/ui/span/MMSpanClickCallback;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); context.startActivity((Intent) aVar.a(0)); j30.a.e(context, "com/tencent/mm/app/plugin/URISpanHandlerSet$AddressUriSpanHandler", "handleSpanClick", "(Landroid/view/View;Lcom/tencent/mm/pluginsdk/ui/applet/HrefInfo;Lcom/tencent/mm/pluginsdk/ui/span/MMSpanClickCallback;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); q.INSTANCE.g(12809, 9, ""); } else { Log.w("MicroMsg.URISpanHandlerSet", "Cannot find map app"); } q.INSTANCE.g(12809, 8, ""); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class AlphaInstallUriSpanHandler extends BaseUriSpanHandler { public AlphaInstallUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{32}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().toLowerCase().startsWith("weixin://alphainstall?")) { return new t0(str, 32, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 32) { return false; } String replace = t0Var.b().replace("weixin://alphainstall?", ""); String str = b.E() + Uri.parse(replace).getQueryParameter("md5") + ".apk"; if (u1.k(str)) { ((f) yz3.j.c(f.class)).Xh0(MMApplicationContext.getContext(), str, null, false); return true; } Intent intent = new Intent(); intent.putExtra("rawUrl", replace.toString()); sv3.b.j(URISpanHandlerSet.this.f61394a, "webview", ".ui.tools.WebViewUI", intent, null); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class AppBrandLinkSpanHandler extends BaseUriSpanHandler { public AppBrandLinkSpanHandler(URISpanHandlerSet uRISpanHandlerSet) { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{45}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { f4 f4Var; if (t0Var.f203634d != 45) { return false; } if (t0Var.f203644n == 1 && (f4Var = t0Var.f203645o) != null) { long j15 = bg0.q.f12473j; d dVar = d.f12387a; if (f4Var.y2() != 1) { ((xc4.j) xc4.j.f338034d).a(new e(f4Var, j15)); } } if (pVar != null) { Log.i("MicroMsg.URISpanHandlerSet", "AppBrandLinkSpanHandler click appbrandlink"); pVar.a(t0Var); return true; } Log.e("MicroMsg.URISpanHandlerSet", "clickCallback is null, return"); return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } public static abstract class BaseUriSpanHandler { public abstract int[] a(); public abstract t0 b(String str); public abstract boolean c(View view, t0 t0Var, p pVar); public abstract boolean d(String str, boolean z15, l0 l0Var, Bundle bundle); } @a public class BindMobileUrilSpanHandler extends BaseUriSpanHandler { public BindMobileUrilSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{5}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://setting/bindphone")) { return new t0(str, 5, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 5) { return false; } if (pVar != null) { pVar.b(t0Var); } MMWizardActivity.X7(URISpanHandlerSet.this.f61394a, new Intent(URISpanHandlerSet.this.f61394a, BindMContactIntroUI.class)); if (pVar == null) { return true; } pVar.a(t0Var); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { if (!str.equals("weixin://setting/bindphone")) { return false; } Intent intent = new Intent(URISpanHandlerSet.this.f61394a, BindMContactIntroUI.class); if (URISpanHandlerSet.this.f61394a instanceof Service) { intent.addFlags(268435456); } MMWizardActivity.X7(URISpanHandlerSet.this.f61394a, intent); return true; } } @a public class BizMsgMenuUriSpanHandler extends BaseUriSpanHandler { public BizMsgMenuUriSpanHandler(URISpanHandlerSet uRISpanHandlerSet) { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{43}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://bizmsgmenu")) { return new t0(str, 43, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { f4 f4Var; if (43 != t0Var.f203634d) { return false; } if (Util.isNullOrNil(t0Var.f203636f)) { Log.w("MicroMsg.URISpanHandlerSet", "BizMsgMenuUriSpanHandler Username is null."); return true; } if (t0Var.f203644n == 1 && (f4Var = t0Var.f203645o) != null) { long j15 = bg0.q.f12473j; d dVar = d.f12387a; if (f4Var.y2() != 1) { ((xc4.j) xc4.j.f338034d).a(new e(f4Var, j15)); } } t0Var.b(); Uri parse = Uri.parse(t0Var.b().trim()); String trim = Util.nullAs(parse.getQueryParameter("msgmenuid"), "").trim(); String queryParameter = parse.getQueryParameter("msgmenucontent"); q.INSTANCE.g(14522, Util.nullAsNil(trim), t0Var.f203636f); if (Util.isNullOrNil(trim) || Util.isNullOrNil(queryParameter)) { Log.w("MicroMsg.URISpanHandlerSet", "BizMsgMenuUriSpanHandler id or msgContent is null."); return true; } HashMap hashMap = new HashMap(); hashMap.put("bizmsgmenuid", trim); if (g0.a(t0Var.f203636f)) { f0.f a15 = f0.a(t0Var.f203636f); a15.k(t0Var.f203636f); a15.g(queryParameter); a15.f352545d = w0.z(t0Var.f203636f); a15.f352546e = 1; a15.f352548g = hashMap; a15.c(); } else { f0.f a16 = f0.a(t0Var.f203636f); a16.k(t0Var.f203636f); a16.g(queryParameter); a16.f352545d = w0.z(t0Var.f203636f); a16.f352546e = 1; a16.f352548g = hashMap; a16.f352549h = 5; a16.a().a(); } return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class CardUriSpanHandler extends BaseUriSpanHandler { public CardUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[0]; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { if (!str.startsWith("wxcard://cardjumptype=1")) { return false; } String obj = l0Var != null ? ((c) l0Var).f179021a.f178869d.o().getUsername().toString() : null; Intent intent = new Intent(); intent.putExtra("user_name", obj); intent.putExtra(XWalkReaderBasePlugin.PARAM_KEY_VIEW_TYPE, 1); sv3.b.j(URISpanHandlerSet.this.f61394a, "card", ".ui.CardViewUI", intent, null); return true; } } @a public class ChatroomNotifyDetailSpanHandler extends BaseUriSpanHandler { public ChatroomNotifyDetailSpanHandler(URISpanHandlerSet uRISpanHandlerSet) { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{67}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://chatroomnotify/detail/")) { return new t0(str, 67, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 67) { return false; } Log.i("MicroMsg.URISpanHandlerSet", "ChatroomNotifyDetailSpanHandler"); Uri.parse(t0Var.b()); String b15 = t0Var.b(); long j15 = Util.getLong(b15.substring(b15.trim().lastIndexOf("/") + 1), 0); if (j15 > 0) { f4 tz4 = ((g4) ((k0) z.q(k0.class)).WU()).tz(j15); ((gm0.b) yz3.j.c(gm0.b.class)).FJ(view.getContext(), tz4.i(), tz4.F2()); } return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class ContactUriSpanHandler extends BaseUriSpanHandler { public ContactUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{23, 21, 22, 2}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { String substring; int lastIndexOf; if (str.trim().equals("weixin://contacts/all/")) { return new t0(str, 23, new i2("@all.android", null, URISpanHandlerSet.this.f61394a.getString(R.string.fsa), null, true, true)); } if (str.trim().equals("weixin://contacts/microblog/")) { return new t0(str, 22, j2.c(URISpanHandlerSet.this.f61394a.getString(R.string.fti))); } if (str.trim().equals("weixin://contacts/micromessenger/")) { return new t0(str, 2, new i2("@micromsg.qq.com", null, URISpanHandlerSet.this.f61394a.getString(R.string.ftj), null, true, true)); } if (!str.trim().startsWith("weixin://contacts/") || (lastIndexOf = (substring = str.trim().substring(0, str.trim().length() - 1)).lastIndexOf("/")) == -1) { return null; } String substring2 = substring.substring(lastIndexOf + 1); return new t0(str, 21, j2.b("@" + substring2, URISpanHandlerSet.this.f61394a.getString(R.string.fsc))); } /* JADX WARNING: Removed duplicated region for block: B:41:0x00e8 */ @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { boolean z15; int i15 = t0Var.f203634d; if (i15 != 23 && i15 != 21 && i15 != 22 && i15 != 2) { return false; } i2 i2Var = (i2) t0Var.a(i2.class); if (pVar != null) { pVar.b(t0Var); } if (i2Var == null) { Context context = URISpanHandlerSet.this.f61394a; j.s(context, context.getString(R.string.gbg), URISpanHandlerSet.this.f61394a.getString(R.string.f367625yv)); return false; } if (i2Var.a().equals("@t.qq.com")) { if (!(((s4) ((k0) z.q(k0.class)).Cj0()).Ga("@t.qq.com") != null)) { Context context2 = URISpanHandlerSet.this.f61394a; j.s(context2, context2.getString(R.string.gbg), URISpanHandlerSet.this.f61394a.getString(R.string.f367625yv)); } } if (i2Var.a().equals("@domain.android")) { s4 s4Var = (s4) ((k0) z.q(k0.class)).Cj0(); s4Var.getClass(); LinkedList linkedList = new LinkedList(); Cursor query = s4Var.f175033d.query("role_info", null, "int_reserved1=1", null, null, null, null, 2); while (query.moveToNext()) { r4 r4Var = new r4(); r4Var.a(query); linkedList.add(r4Var); } query.close(); if (linkedList.size() > 0) { int i16 = 0; while (true) { if (i16 >= linkedList.size()) { break; } else if (((r4) linkedList.get(i16)).c()) { z15 = true; break; } else { i16++; } } if (!z15) { Context context3 = URISpanHandlerSet.this.f61394a; j.s(context3, context3.getString(R.string.gbg), URISpanHandlerSet.this.f61394a.getString(R.string.f367625yv)); } } z15 = false; if (!z15) { } } Intent intent = new Intent(); intent.setClass(URISpanHandlerSet.this.f61394a, SelectContactUI.class); Intent putExtra = intent.putExtra("Contact_GroupFilter_Type", i2Var.a()); String str = i2Var.f270681c; String str2 = ""; if (str == null) { str = str2; } Intent putExtra2 = putExtra.putExtra("Contact_GroupFilter_Str", str); String str3 = i2Var.f270680b; if (str3 != null) { str2 = str3; } putExtra2.putExtra("Contact_GroupFilter_DisplayName", str2); intent.addFlags(268435456); Context context4 = URISpanHandlerSet.this.f61394a; k30.a aVar = new k30.a(); aVar.c(intent); j30.a.d(context4, aVar.b(), "com/tencent/mm/app/plugin/URISpanHandlerSet$ContactUriSpanHandler", "handleSpanClick", "(Landroid/view/View;Lcom/tencent/mm/pluginsdk/ui/applet/HrefInfo;Lcom/tencent/mm/pluginsdk/ui/span/MMSpanClickCallback;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); context4.startActivity((Intent) aVar.a(0)); j30.a.e(context4, "com/tencent/mm/app/plugin/URISpanHandlerSet$ContactUriSpanHandler", "handleSpanClick", "(Landroid/view/View;Lcom/tencent/mm/pluginsdk/ui/applet/HrefInfo;Lcom/tencent/mm/pluginsdk/ui/span/MMSpanClickCallback;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); if (pVar != null) { pVar.a(t0Var); } return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { if (!str.equals("weixin://contacts/microblog/") && !str.equals("weixin://contacts/micromessenger/") && !str.equals("weixin://contacts/all/")) { return false; } i2 c15 = j2.c(URISpanHandlerSet.this.f61394a.getString(R.string.ftj)); if (str.equals("weixin://contacts/microblog/")) { c15 = j2.c(URISpanHandlerSet.this.f61394a.getString(R.string.fti)); } if (str.equals("weixin://contacts/micromessenger/")) { c15 = j2.c(URISpanHandlerSet.this.f61394a.getString(R.string.ftj)); } if (str.equals("weixin://contacts/all/")) { c15 = j2.c(URISpanHandlerSet.this.f61394a.getString(R.string.fsa)); } Intent intent = new Intent(); intent.setClass(URISpanHandlerSet.this.f61394a, SelectContactUI.class); Intent putExtra = intent.putExtra("Contact_GroupFilter_Type", c15.a()); String str2 = c15.f270681c; String str3 = ""; if (str2 == null) { str2 = str3; } Intent putExtra2 = putExtra.putExtra("Contact_GroupFilter_Str", str2); String str4 = c15.f270680b; if (str4 != null) { str3 = str4; } putExtra2.putExtra("Contact_GroupFilter_DisplayName", str3); intent.addFlags(268435456); return true; } } @a(priority = PRIORITY.LOW) public class DeeplinkUriSpanHandler extends BaseUriSpanHandler { public class a implements DialogInterface.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ ih.c f61407d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ String f61408e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ String f61409f; public a(DeeplinkUriSpanHandler deeplinkUriSpanHandler, ih.c cVar, String str, String str2) { this.f61407d = cVar; this.f61408e = str; this.f61409f = str2; } public void onClick(DialogInterface dialogInterface, int i15) { ih.c cVar = this.f61407d; int i16 = cVar.field_brandFlag; cVar.field_brandFlag = i16 | 1; Log.i("MicroMsg.URISpanHandlerSet", "shield biz msg %s, %s, old = %d, new = %d", this.f61408e, this.f61409f, Integer.valueOf(i16), Integer.valueOf(this.f61407d.field_brandFlag)); l.r(this.f61407d); } } public class b implements DialogInterface.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ ih.c f61410d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ String f61411e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ String f61412f; public b(DeeplinkUriSpanHandler deeplinkUriSpanHandler, ih.c cVar, String str, String str2) { this.f61410d = cVar; this.f61411e = str; this.f61412f = str2; } public void onClick(DialogInterface dialogInterface, int i15) { ih.c cVar = this.f61410d; int i16 = cVar.field_brandFlag; cVar.field_brandFlag = i16 & -2; Log.i("MicroMsg.URISpanHandlerSet", "receive biz msg %s, %s, old = %d, new = %d", this.f61411e, this.f61412f, Integer.valueOf(i16), Integer.valueOf(this.f61410d.field_brandFlag)); l.r(this.f61410d); } } public class c implements DialogInterface.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ String f61413d; public c(String str) { this.f61413d = str; } public void onClick(DialogInterface dialogInterface, int i15) { Log.i("MicroMsg.URISpanHandlerSet", "AppBrandServiceHelper switchTo to receive msg for username %s", this.f61413d); i.d(URISpanHandlerSet.this.f61394a, this.f61413d, true); } } public class d implements m.h { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ i0 f61415a; public d(i0 i0Var) { this.f61415a = i0Var; } @Override // cu3.m.h public void c(int i15, int i16, String str, y yVar, boolean z15) { l95 f15; i0 i0Var = this.f61415a; if (i0Var != null && i0Var.isShowing()) { this.f61415a.dismiss(); } if (yVar != null && i15 != 0 && i16 != 0 && (yVar instanceof com.tencent.mm.modelsimple.i0) && (f15 = ((com.tencent.mm.modelsimple.i0) yVar).f()) != null && URISpanHandlerSet.this.f61394a != null && !Util.isNullOrNil(f15.f28277g)) { Context context = URISpanHandlerSet.this.f61394a; y0.makeText(context, URISpanHandlerSet.this.f61394a.getString(R.string.f367625yv) + " : " + Util.nullAsNil(f15.f28277g), 0).show(); } } } public DeeplinkUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{30}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { Log.i("MicroMsg.URISpanHandlerSet", "DeeplinkUriSpanHandler getHrefFromUrl %s", str); if (str.trim().toLowerCase().startsWith("weixin://")) { return new t0(str, 30, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { Log.i("MicroMsg.URISpanHandlerSet", "DeeplinkUriSpanHandler handleSpanClick %d, %s", Integer.valueOf(t0Var.f203634d), t0Var.b()); String str = pVar != null ? (String) pVar.b(t0Var) : null; if (t0Var.f203634d != 30) { return false; } String nullAsNil = Util.nullAsNil(t0Var.b()); if (nullAsNil.startsWith("weixin://shieldBrandMsg/") || nullAsNil.startsWith("weixin://receiveBrandMsg/")) { if (Util.isNullOrNil(str)) { Log.e("MicroMsg.URISpanHandlerSet", "DeeplinkUriSpanHandler username is null"); return true; } ih.c b15 = l.b(str); if (b15 == null) { Log.e("MicroMsg.URISpanHandlerSet", "DeeplinkUriSpanHandler BizInfo is null"); return true; } else if (nullAsNil.startsWith("weixin://shieldBrandMsg/")) { j.j(URISpanHandlerSet.this.f61394a, R.string.f369368ju1, R.string.f367625yv, R.string.f369367ju0, R.string.aq7, new a(this, b15, nullAsNil, str), null); } else if (nullAsNil.startsWith("weixin://receiveBrandMsg/")) { j.j(URISpanHandlerSet.this.f61394a, R.string.jtz, R.string.f367625yv, R.string.jty, R.string.aq7, new b(this, b15, nullAsNil, str), null); } } else if (m.q(Uri.parse(nullAsNil))) { Context context = URISpanHandlerSet.this.f61394a; if (!m.b(nullAsNil)) { i0 Q = j.Q(context, "", "", true, true, null); int i15 = 6; if (!Util.isNullOrNil(str)) { if (z1.Y5(str)) { i15 = 7; } else if (w0.D(str)) { i15 = 9; } } m.g(context, nullAsNil, i15, null, new n(Q, context), null, null, false); } } else if (nullAsNil.startsWith("weixin://receiveWeAppKFMsg")) { if (Util.isNullOrNil(str)) { Log.e("MicroMsg.URISpanHandlerSet", "DeeplinkUriSpanHandler username is null, handle the BUILTIN_RECEIVE_WEAPP_KFMSG , the herfUrl is %s", nullAsNil); return true; } j.j(URISpanHandlerSet.this.f61394a, R.string.f367323qh, R.string.f367625yv, R.string.f367322qg, R.string.aq7, new c(str), null); } else if (nullAsNil.startsWith("weixin://xmail/bind")) { Intent putExtra = new Intent().putExtra("Contact_User", "qqmail"); putExtra.putExtra("key_need_rebind_xmail", true); sv3.b.j(URISpanHandlerSet.this.f61394a, Scopes.PROFILE, ".ui.ContactInfoUI", putExtra, null); } else { m.d(URISpanHandlerSet.this.f61394a, nullAsNil, str, 1, nullAsNil, null); } return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { if (Util.isNullOrNil(str) || bundle == null) { Object[] objArr = new Object[2]; objArr[0] = Boolean.valueOf(str == null); objArr[1] = Boolean.valueOf(bundle == null); Log.e("MicroMsg.URISpanHandlerSet", "url is null ? %b, paramsBundle is null ? %b", objArr); return false; } else if (!m.q(Uri.parse(str))) { return false; } else { int i15 = bundle.getInt("key_scene", -1); if (i15 == -1) { i15 = 5; } m.g(URISpanHandlerSet.this.f61394a, str, i15, null, new d(j.Q(URISpanHandlerSet.this.f61394a, "", "", false, true, null)), null, null, false); return true; } } } @a public class EmotionStoreUriSpanHandler extends BaseUriSpanHandler { public EmotionStoreUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{29}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { String str2; if (!str.trim().startsWith("weixin://emoticonstore/")) { return null; } int lastIndexOf = str.lastIndexOf("/"); if (lastIndexOf != -1) { str2 = str.substring(lastIndexOf + 1); } else { str2 = ""; } return new t0(str, 29, str2); } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 29) { return false; } if (pVar != null) { pVar.b(t0Var); } Intent intent = new Intent(); intent.putExtra("download_entrance_scene", 21); intent.putExtra("extra_id", (String) t0Var.a(String.class)); intent.putExtra("preceding_scence", 3); sv3.b.j(URISpanHandlerSet.this.f61394a, "emoji", ".ui.EmojiStoreDetailUI", intent, null); if (pVar == null) { return true; } pVar.a(t0Var); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class EnterChatRoomUriSpanHandler extends BaseUriSpanHandler { public EnterChatRoomUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{55}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().toLowerCase().startsWith("weixin://jump/chatroom/")) { return new t0(str, 55, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { int i15; Exception e15; z1 z1Var; if (t0Var.f203634d == 55) { Log.i("MicroMsg.URISpanHandlerSet", "handleClickEnterChatRoomSystemMsgUrl"); try { String b15 = t0Var.b(); int lastIndexOf = b15.trim().lastIndexOf("/"); if (lastIndexOf >= 0 && lastIndexOf < b15.trim().length() - 1) { String substring = b15.trim().substring(lastIndexOf + 1); if (z1.Y5(substring) && ((z1Var = p3.b().v().get(substring)) == null || ((int) z1Var.V1) == 0)) { z1 z1Var2 = new z1(); z1Var2.setUsername(substring); p3.b().v().j4(z1Var2); } Intent putExtra = new Intent(URISpanHandlerSet.this.f61394a, ChattingUI.class).putExtra("Chat_User", substring).putExtra("Chat_Mode", 1); if (URISpanHandlerSet.this.f61394a instanceof Service) { putExtra.addFlags(268435456); } Context context = URISpanHandlerSet.this.f61394a; k30.a aVar = new k30.a(); aVar.c(putExtra); j30.a.d(context, aVar.b(), "com/tencent/mm/app/plugin/URISpanHandlerSet$EnterChatRoomUriSpanHandler", "handleSpanClick", "(Landroid/view/View;Lcom/tencent/mm/pluginsdk/ui/applet/HrefInfo;Lcom/tencent/mm/pluginsdk/ui/span/MMSpanClickCallback;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); context.startActivity((Intent) aVar.a(0)); j30.a.e(context, "com/tencent/mm/app/plugin/URISpanHandlerSet$EnterChatRoomUriSpanHandler", "handleSpanClick", "(Landroid/view/View;Lcom/tencent/mm/pluginsdk/ui/applet/HrefInfo;Lcom/tencent/mm/pluginsdk/ui/span/MMSpanClickCallback;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); if (t0Var.f203640j == 1) { String nullAs = Util.nullAs(t0Var.f203639i, ""); aj.d.d(Util.nullAs(substring, ""), nullAs, 3); try { Object[] objArr = new Object[2]; objArr[0] = nullAs; objArr[1] = Util.nullAs(substring, ""); Log.i("MicroMsg.URISpanHandlerSet", "handleClickEnterChatRoomSystemMsgUrl migrate(%s -> %s)", objArr); } catch (Exception e16) { e15 = e16; i15 = 2; Object[] objArr2 = new Object[i15]; objArr2[0] = e15.getMessage(); objArr2[1] = t0Var.b(); Log.e("MicroMsg.URISpanHandlerSet", "handle click link error: %s, url: %s", objArr2); return false; } } return true; } } catch (Exception e17) { e15 = e17; i15 = 2; Object[] objArr22 = new Object[i15]; objArr22[0] = e15.getMessage(); objArr22[1] = t0Var.b(); Log.e("MicroMsg.URISpanHandlerSet", "handle click link error: %s, url: %s", objArr22); return false; } } return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class EnterRoomUriSpanHandler extends BaseUriSpanHandler { public EnterRoomUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[0]; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { int lastIndexOf; z1 z1Var; if (!str.startsWith("weixin://jump/mainframe/") || (lastIndexOf = str.trim().lastIndexOf("/")) < 0 || lastIndexOf >= str.trim().length() - 1) { return false; } String substring = str.trim().substring(lastIndexOf + 1); if (z1.Y5(substring) && ((z1Var = p3.b().v().get(substring)) == null || ((int) z1Var.V1) == 0)) { z1 z1Var2 = new z1(); z1Var2.setUsername(substring); p3.b().v().j4(z1Var2); } Intent putExtra = new Intent(URISpanHandlerSet.this.f61394a, ChattingUI.class).putExtra("Chat_User", substring).putExtra("Chat_Mode", 1).putExtra("enter_room_from_uri_jump", true); if (URISpanHandlerSet.this.f61394a instanceof Service) { putExtra.addFlags(268435456); } Context context = URISpanHandlerSet.this.f61394a; k30.a aVar = new k30.a(); aVar.c(putExtra); j30.a.d(context, aVar.b(), "com/tencent/mm/app/plugin/URISpanHandlerSet$EnterRoomUriSpanHandler", "handleUriJump", "(Ljava/lang/String;ZLcom/tencent/mm/pluginsdk/UriJumpCallback;Landroid/os/Bundle;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); context.startActivity((Intent) aVar.a(0)); j30.a.e(context, "com/tencent/mm/app/plugin/URISpanHandlerSet$EnterRoomUriSpanHandler", "handleUriJump", "(Ljava/lang/String;ZLcom/tencent/mm/pluginsdk/UriJumpCallback;Landroid/os/Bundle;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); return true; } } @a public class ExposeUriSpanHandler extends BaseUriSpanHandler { public ExposeUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{31}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().toLowerCase().equals("weixin://expose/")) { return new t0(str, 31, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 31) { return false; } Intent intent = new Intent(); if (pVar == null) { return false; } String str = (String) pVar.b(t0Var); intent.putExtra("k_username", str); int i15 = 39; if (!Util.isNullOrNil(str) && str.endsWith("@chatroom")) { i15 = 36; } intent.putExtra("showShare", false); intent.putExtra("rawUrl", String.format(w.e.f187129a, Integer.valueOf(i15))); sv3.b.j(URISpanHandlerSet.this.f61394a, "webview", ".ui.tools.WebViewUI", intent, null); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class FeedbackUriSpanHandler extends BaseUriSpanHandler { public FeedbackUriSpanHandler(URISpanHandlerSet uRISpanHandlerSet) { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{34}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://feedback/next/")) { return new t0(str, 34, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 34) { return false; } String replace = t0Var.b().trim().replace("weixin://feedback/next/", ""); t0Var.b(); p3.e().f(new s(r.j(), replace, 8)); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class FlightNumberSpanHandler extends BaseUriSpanHandler { public FlightNumberSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{50}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (pVar != null) { pVar.b(t0Var); } if (t0Var.f203634d == 50) { Log.i("MicroMsg.URISpanHandlerSet", "FlightNumberSpanHandler click %s", t0Var.b()); long j15 = 0; Object obj = t0Var.f203635e; if (obj != null && (obj instanceof Bundle)) { j15 = ((Bundle) obj).getLong("msgSvrId"); } ((k21.d) yz3.j.c(k21.d.class)).wg0(URISpanHandlerSet.this.f61394a, 3, t0Var.b(), j15); } if (pVar != null) { pVar.a(t0Var); } return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class FlowStatUriSpanHandler extends BaseUriSpanHandler { public FlowStatUriSpanHandler(URISpanHandlerSet uRISpanHandlerSet) { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{16}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://flowstat")) { return new t0(str, 16, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 16) { return false; } if (pVar != null) { pVar.b(t0Var); } LauncherUI instance = LauncherUI.getInstance(); if (instance != null) { instance.d8().l("tab_settings"); } if (pVar == null) { return true; } pVar.a(t0Var); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { if (!str.equals("weixin://flowstat")) { return false; } LauncherUI instance = LauncherUI.getInstance(); if (instance == null) { return true; } instance.d8().l("tab_settings"); return true; } } @a public class FriendMobileUriSpanHandler extends BaseUriSpanHandler { public FriendMobileUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{20}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://findfriend/mobile")) { return new t0(str, 20, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 20) { return false; } if (pVar != null) { pVar.b(t0Var); } Intent intent = new Intent(URISpanHandlerSet.this.f61394a, MobileFriendUI.class); Context context = URISpanHandlerSet.this.f61394a; k30.a aVar = new k30.a(); aVar.c(intent); j30.a.d(context, aVar.b(), "com/tencent/mm/app/plugin/URISpanHandlerSet$FriendMobileUriSpanHandler", "handleSpanClick", "(Landroid/view/View;Lcom/tencent/mm/pluginsdk/ui/applet/HrefInfo;Lcom/tencent/mm/pluginsdk/ui/span/MMSpanClickCallback;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); context.startActivity((Intent) aVar.a(0)); j30.a.e(context, "com/tencent/mm/app/plugin/URISpanHandlerSet$FriendMobileUriSpanHandler", "handleSpanClick", "(Landroid/view/View;Lcom/tencent/mm/pluginsdk/ui/applet/HrefInfo;Lcom/tencent/mm/pluginsdk/ui/span/MMSpanClickCallback;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); if (pVar == null) { return true; } pVar.a(t0Var); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { if (!str.equals("weixin://findfriend/mobile")) { return false; } Intent intent = new Intent(URISpanHandlerSet.this.f61394a, MobileFriendUI.class); if (URISpanHandlerSet.this.f61394a instanceof Service) { intent.addFlags(268435456); } Context context = URISpanHandlerSet.this.f61394a; k30.a aVar = new k30.a(); aVar.c(intent); j30.a.d(context, aVar.b(), "com/tencent/mm/app/plugin/URISpanHandlerSet$FriendMobileUriSpanHandler", "handleUriJump", "(Ljava/lang/String;ZLcom/tencent/mm/pluginsdk/UriJumpCallback;Landroid/os/Bundle;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); context.startActivity((Intent) aVar.a(0)); j30.a.e(context, "com/tencent/mm/app/plugin/URISpanHandlerSet$FriendMobileUriSpanHandler", "handleUriJump", "(Ljava/lang/String;ZLcom/tencent/mm/pluginsdk/UriJumpCallback;Landroid/os/Bundle;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); return true; } } @a public class FriendSearchUriSpanHandler extends BaseUriSpanHandler { public FriendSearchUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{17}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://findfriend/search")) { return new t0(str, 17, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 17) { return false; } if (pVar != null) { pVar.b(t0Var); } sv3.b.h(URISpanHandlerSet.this.f61394a, "subapp", ".ui.pluginapp.ContactSearchUI"); if (pVar == null) { return true; } pVar.a(t0Var); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { if (!str.equals("weixin://findfriend/search")) { return false; } Intent intent = new Intent(); if (URISpanHandlerSet.this.f61394a instanceof Service) { intent.addFlags(268435456); } sv3.b.j(URISpanHandlerSet.this.f61394a, "subapp", ".ui.pluginapp.ContactSearchUI", intent, null); return true; } } @a public class FriendShareUriSpanHandler extends BaseUriSpanHandler { public FriendShareUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{18}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://findfriend/share")) { return new t0(str, 18, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 18) { return false; } if (pVar != null) { pVar.b(t0Var); } sv3.b.h(URISpanHandlerSet.this.f61394a, "setting", ".ui.qrcode.ShareMicroMsgChoiceUI"); if (pVar == null) { return true; } pVar.a(t0Var); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { if (!str.equals("weixin://findfriend/share")) { return false; } Intent intent = new Intent(); if (URISpanHandlerSet.this.f61394a instanceof Service) { intent.addFlags(268435456); } sv3.b.j(URISpanHandlerSet.this.f61394a, "setting", ".ui.qrcode.ShareMicroMsgChoiceUI", intent, null); return true; } } @a public class HoneyPayLinkSpanHandler extends BaseUriSpanHandler { public class a implements u { public a(HoneyPayLinkSpanHandler honeyPayLinkSpanHandler) { } @Override // p64.u public void a(boolean z15, String str) { } } public class b implements u { public b(HoneyPayLinkSpanHandler honeyPayLinkSpanHandler) { } @Override // p64.u public void a(boolean z15, String str) { } } public class c implements UseCaseCallback { public c(HoneyPayLinkSpanHandler honeyPayLinkSpanHandler) { } @Override // com.tencent.kinda.gen.UseCaseCallback public void call(ITransmitKvData iTransmitKvData) { } } public HoneyPayLinkSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{46, 47}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("native://wcpay/honeypay")) { return new t0(str, 46, null); } if (str.trim().startsWith("weixin://wcpay/bankCardList")) { return new t0(str, 47, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { int i15 = t0Var.f203634d; if (i15 == 46) { Log.i("MicroMsg.URISpanHandlerSet", "go to honey pay proxy"); Object obj = t0Var.f203635e; if (obj != null && (obj instanceof Bundle)) { Uri parse = Uri.parse(t0Var.b()); String queryParameter = parse.getQueryParameter("cardNo"); boolean equals = parse.getQueryParameter("isPayer").equals("1"); String queryParameter2 = parse.getQueryParameter("paymsgid"); if (Util.isNullOrNil(queryParameter2)) { Intent intent = new Intent(); intent.putExtra("key_card_no", queryParameter); intent.putExtra("key_is_payer", equals); sv3.b.j(URISpanHandlerSet.this.f61394a, "honey_pay", ".ui.HoneyPayProxyUI", intent, null); } else { long zy4 = ((w00.i) yz3.j.c(w00.i.class)).zy(queryParameter2); Log.i("MicroMsg.URISpanHandlerSet", "handleSpanClick: %s,find msg: %s", t0Var.b(), Long.valueOf(zy4)); if (zy4 > 0) { f4 tz4 = ((g4) ((k0) z.q(k0.class)).WU()).tz(zy4); if (tz4.getMsgId() <= 0) { Log.i("MicroMsg.URISpanHandlerSet", "cannot find msg in msg storage!"); p64.q qVar = new p64.q(MMApplicationContext.getContext()); qVar.g(MMApplicationContext.getContext().getString(R.string.i0_)); qVar.k(MMApplicationContext.getContext().getResources().getColor(R.color.f358734vo)); qVar.m(R.string.f368689fz1); qVar.l(new a(this)); qVar.o(); } else { ScrollChattingUIConversationListEvent scrollChattingUIConversationListEvent = new ScrollChattingUIConversationListEvent(); ScrollChattingUIConversationListEvent.a aVar = scrollChattingUIConversationListEvent.f64418d; aVar.f64420b = zy4; aVar.f64419a = tz4.i(); scrollChattingUIConversationListEvent.publish(); } } else { Log.i("MicroMsg.URISpanHandlerSet", "handle MSpanConstants.Type.TYPE_HONEY_PAY_CARD_MANAGER, cannot find local msg"); p64.q qVar2 = new p64.q(MMApplicationContext.getContext()); qVar2.g(MMApplicationContext.getContext().getString(R.string.i0_)); qVar2.k(MMApplicationContext.getContext().getResources().getColor(R.color.f358734vo)); qVar2.m(R.string.f368689fz1); qVar2.l(new b(this)); qVar2.o(); } } } } else if (i15 == 47) { Log.i("MicroMsg.URISpanHandlerSet", "go to bank card list"); Log.i("MicroMsg.URISpanHandlerSet", "isKindaBankCardManagerEnable"); ((qv3.c) yz3.j.c(qv3.c.class)).startUseCase("bankCard", ITransmitKvData.create(), new c(this)); q.INSTANCE.g(15191, 0, 0, 0, 0, 0, 1); } return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class HttpUriSpanHandler extends BaseUriSpanHandler { /* renamed from: a reason: collision with root package name */ public final String f61426a = (HttpWrapperBase.PROTOCAL_HTTPS + WeChatHosts.domainString(R.string.fy9) + "/mp/newsubscribemsg?action=subscribepage"); public HttpUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{1}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().toLowerCase().startsWith(ProxyConfig.MATCH_HTTP)) { return new t0(str, 1, null); } return null; } /* JADX WARNING: Removed duplicated region for block: B:22:0x0080 A[RETURN] */ /* JADX WARNING: Removed duplicated region for block: B:23:0x0081 */ @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { boolean z15; i2 i2Var; long j15; String str; String str2; int i15; int i16; String str3; z0.c b15; Object obj; int i17; int i18; int i19; f4 f4Var; p pVar2 = pVar; if (t0Var.f203634d != 1) { return false; } if (t0Var.b().trim().startsWith(this.f61426a)) { Log.i("MicroMsg.URISpanHandlerSet", "alvinluo processHttpLink subscribeMsgLink onClick url: %s", t0Var.b()); if (pVar2 != null) { if (Util.isNullOrNil(t0Var.f203637g)) { String str4 = t0Var.f203636f; if (l.o(str4)) { String b16 = t0Var.b(); Object obj2 = t0Var.f203638h; String str5 = obj2 instanceof String ? (String) obj2 : null; if (!(str4 == null || b16 == null)) { Log.i("MicroMsg.URISpanHandlerSet", "alvinluo clickSubscribeMsgSpan bizUsername: %s, url: %s, content: %s", str4, b16, str5); ci0.c a15 = ci0.e.f49588a.a("name_biz"); Bundle bundle = new Bundle(); bundle.putString("key_extra_content", str5); if (a15 != null) { a15.m(URISpanHandlerSet.this.f61394a, str4, b16, bundle); } } } } } z15 = true; if (!z15) { return true; } Context context = URISpanHandlerSet.this.f61394a; boolean z16 = context != null && (context instanceof WebViewUI); i2 i2Var2 = (i2) t0Var.a(i2.class); if (URISpanHandlerSet.this.f61394a == null || (z16 && !MMApplicationContext.isMMProcess())) { i2Var = null; } else { i2Var = j2.b("@" + t0Var.b(), URISpanHandlerSet.this.f61394a.getString(R.string.fsc)); } String str6 = pVar2 != null ? (String) pVar2.b(t0Var) : null; if (t0Var.f203644n == 1 && (f4Var = t0Var.f203645o) != null) { long j16 = bg0.q.f12473j; d dVar = d.f12387a; if (f4Var.y2() != 1) { ((xc4.j) xc4.j.f338034d).a(new e(f4Var, j16)); } } if (i2Var == null || !i2Var.f270682d) { String b17 = t0Var.b(); if (!b17.toLowerCase().startsWith(ProxyConfig.MATCH_HTTP)) { b17 = HttpWrapperBase.PROTOCAL_HTTP + b17; } Intent intent = new Intent(); Object obj3 = t0Var.f203635e; String str7 = ""; if (obj3 == null || !(obj3 instanceof Bundle)) { j15 = 0; str2 = str7; str = str2; } else { Bundle bundle2 = (Bundle) obj3; long j17 = bundle2.getLong("msgSvrId", 0); j15 = bundle2.getLong("msgId", 0); if (j17 != 0) { str2 = String.valueOf(j17); } else { str2 = bundle2.getString("serverMsgID"); } if (Util.isNullOrNil(t0Var.f203637g)) { str = t0Var.f203636f; } else { str = t0Var.f203637g; } if (Util.isNullOrNil(str)) { str = bundle2.getString("msgUsername"); } } if (Util.isNullOrNil(str2)) { str2 = t0Var.f203647q; } intent.putExtra("serverMsgID", str2); intent.putExtra("msgUsername", str); intent.putExtra("rawUrl", b17); Object obj4 = t0Var.f203635e; if (obj4 == null || !(obj4 instanceof Bundle)) { i15 = 0; } else { Bundle bundle3 = (Bundle) obj4; int i25 = bundle3.getInt("geta8key_scene"); str7 = bundle3.getString("geta8key_username"); intent.putExtra("geta8key_scene", i25); if (Util.isNullOrNil(str)) { i19 = i25; intent.putExtra("msgUsername", bundle3.getString("msgUsername")); } else { i19 = i25; } if (Util.isNullOrNil(str2)) { intent.putExtra("serverMsgID", bundle3.getString("serverMsgID")); } i15 = i19; } if (i15 == 0) { int i26 = t0Var.f203644n; if (i26 == 2) { i16 = t0Var.f203646p; } else if (i26 == 5) { i16 = t0Var.f203646p; } else { if (i26 == 3) { i18 = 14; } else if (i26 == 4) { i18 = 71; } else if (i26 == 6) { i18 = 72; } else if (i26 == 7) { q.INSTANCE.g(20849, 7, 2, m60.d.p(j15), ((f5) yz3.j.c(f5.class)).o(str)); i18 = 91; } else { if (i26 != 1) { if (i26 == 8) { i17 = 73; } else if (i26 == 9) { i17 = 74; } i16 = 0; intent.putExtra("geta8key_scene", i17); i15 = i17; } else if (w0.D(str6)) { i17 = 15; i16 = 0; intent.putExtra("geta8key_scene", i17); i15 = i17; } i17 = i15; i16 = 0; intent.putExtra("geta8key_scene", i17); i15 = i17; } i17 = i18; i16 = 0; intent.putExtra("geta8key_scene", i17); i15 = i17; } i17 = 2; intent.putExtra("geta8key_scene", i17); i15 = i17; } else { i16 = 0; } if (i16 == 0) { f4 f4Var2 = t0Var.f203645o; i16 = f4Var2 != null ? f4Var2.getType() : 0; if (i16 == 0 && (obj = t0Var.f203635e) != null && (obj instanceof Bundle)) { i16 = ((Bundle) obj).getInt("KMsgType"); } if (i16 == 16777265) { i16 = 49; intent.putExtra("KAppMsgType", 1); } if (i16 == 822083633) { i16 = 1; } } intent.putExtra("KMsgType", i16); String str8 = t0Var.f203643m; if (Util.isNullOrNil(str8) || (b15 = z0.d().b(str8)) == null) { str3 = str6; } else { String f15 = b15.f("prePublishId", null); str3 = str6; String f16 = b15.f("preUsername", null); String f17 = b15.f("preChatName", null); intent.putExtra("reportSessionId", str8); intent.putExtra("KPublisherId", f15); intent.putExtra("geta8key_username", f17); intent.putExtra("pre_username", f16); intent.putExtra("prePublishId", f15); intent.putExtra("preUsername", f16); intent.putExtra("preChatName", f17); intent.putExtra("preChatTYPE", x0.b(f16, f17)); } if (Util.isNullOrNil(intent.getStringExtra("geta8key_username"))) { intent.putExtra("geta8key_username", !Util.isNullOrNil(str7) ? str7 : str3); } int i27 = t0Var.f203644n; if (i27 == 1 || i27 == 2 || i27 == 3 || i27 == 4 || i27 == 6 || i27 == 5 || i15 == 31) { intent.putExtra("key_enable_teen_mode_check", true); intent.putExtra("key_enable_fts_quick", true); } if (z16) { intent.addFlags(268435456); } else { intent.addFlags(536870912); } Log.i("MicroMsg.URISpanHandlerSet", "handleSpanClick url: %s, getA8KeyScene %d", b17, Integer.valueOf(i15)); sv3.b.j(URISpanHandlerSet.this.f61394a, "webview", ".ui.tools.WebViewUI", intent, null); pVar2 = pVar; } if (pVar2 == null) { return true; } pVar2.a(t0Var); return true; } z15 = false; if (!z15) { } } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class JumpActivityUriSpanHandler extends BaseUriSpanHandler { public JumpActivityUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[0]; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { if (!str.toLowerCase().startsWith("weixin://jump/")) { return false; } String[] split = str.split("/"); String str2 = split[split.length - 1]; if ("mainframe".equalsIgnoreCase(str2)) { Intent intent = new Intent(URISpanHandlerSet.this.f61394a, LauncherUI.class); if (URISpanHandlerSet.this.f61394a instanceof Service) { intent.addFlags(268435456); } intent.addFlags(67108864); Context context = URISpanHandlerSet.this.f61394a; k30.a aVar = new k30.a(); aVar.c(intent); j30.a.d(context, aVar.b(), "com/tencent/mm/app/plugin/URISpanHandlerSet$JumpActivityUriSpanHandler", "handleUriJump", "(Ljava/lang/String;ZLcom/tencent/mm/pluginsdk/UriJumpCallback;Landroid/os/Bundle;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); context.startActivity((Intent) aVar.a(0)); j30.a.e(context, "com/tencent/mm/app/plugin/URISpanHandlerSet$JumpActivityUriSpanHandler", "handleUriJump", "(Ljava/lang/String;ZLcom/tencent/mm/pluginsdk/UriJumpCallback;Landroid/os/Bundle;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); } else if ("shake".equalsIgnoreCase(str2)) { q.INSTANCE.kvStat(10221, "1"); Intent intent2 = new Intent(); intent2.addFlags(67108864); if (URISpanHandlerSet.this.f61394a instanceof Service) { intent2.addFlags(268435456); } sv3.b.j(URISpanHandlerSet.this.f61394a, "shake", ".ui.ShakeReportUI", intent2, null); Context context2 = URISpanHandlerSet.this.f61394a; if (context2 != null && (context2 instanceof Activity)) { ((Activity) context2).finish(); } } else if ("scanqrcode".equalsIgnoreCase(str2)) { Intent intent3 = new Intent(); intent3.putExtra("BaseScanUI_select_scan_mode", 1); intent3.putExtra("GetFriendQRCodeUI.INTENT_FROM_ACTIVITY", 2); intent3.setFlags(65536); intent3.addFlags(67108864); if (URISpanHandlerSet.this.f61394a instanceof Service) { intent3.addFlags(268435456); } sv3.b.j(URISpanHandlerSet.this.f61394a, "scanner", ".ui.BaseScanUI", intent3, null); } return true; } } @a public class JumpPatSettingDialogUriSpanHandler extends BaseUriSpanHandler { public JumpPatSettingDialogUriSpanHandler(URISpanHandlerSet uRISpanHandlerSet) { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{61}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().toLowerCase().startsWith("weixin://jump/setpat_bottom_sheet/")) { return new t0(str, 61, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 61) { return false; } ((wx3) ((ky.b) yz3.j.c(ky.b.class)).In(view.getContext(), 4, wx3.class)).f41609d = 1; g gVar = new g(view.getContext()); gVar.show(); gVar.getWindow().setLayout(-1, -1); return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class JumpPatSettingUriSpanHandler extends BaseUriSpanHandler { public class a implements Runnable { public a(JumpPatSettingUriSpanHandler jumpPatSettingUriSpanHandler) { } public void run() { LauncherUI instance = LauncherUI.getInstance(); if (instance != null) { instance.closeChatting(false); instance.d8().l("tab_settings"); } } } public JumpPatSettingUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{57}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().toLowerCase().startsWith("weixin://jump/setpat/")) { return new t0(str, 57, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d == 57) { Log.i("MicroMsg.URISpanHandlerSet", "handleClickJumpToPatSetting"); Intent intent = new Intent(); intent.setClass(URISpanHandlerSet.this.f61394a, SettingsPersonalInfoUI.class); intent.putExtra("jumptoPat", true); VASActivity.Companion.getClass(); intent.putExtra(VASActivity.KEY_VAS_START_MODE, 0); Context context = URISpanHandlerSet.this.f61394a; k30.a aVar = new k30.a(); aVar.c(intent); j30.a.d(context, aVar.b(), "com/tencent/mm/app/plugin/URISpanHandlerSet$JumpPatSettingUriSpanHandler", "handleSpanClick", "(Landroid/view/View;Lcom/tencent/mm/pluginsdk/ui/applet/HrefInfo;Lcom/tencent/mm/pluginsdk/ui/span/MMSpanClickCallback;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); context.startActivity((Intent) aVar.a(0)); j30.a.e(context, "com/tencent/mm/app/plugin/URISpanHandlerSet$JumpPatSettingUriSpanHandler", "handleSpanClick", "(Landroid/view/View;Lcom/tencent/mm/pluginsdk/ui/applet/HrefInfo;Lcom/tencent/mm/pluginsdk/ui/span/MMSpanClickCallback;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); } new MMHandler().postDelayed(new a(this), 2000); return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class LqtDetailSpanHandler extends BaseUriSpanHandler { public LqtDetailSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{69}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://wcpay/lqt/lqtTransferInKnowDetail")) { return new t0(str, 69, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d == 69) { String queryParameter = Uri.parse(t0Var.b()).getQueryParameter("url"); if (queryParameter.length() > 0) { Intent intent = new Intent(); intent.putExtra("rawUrl", queryParameter); intent.putExtra("showShare", true); intent.putExtra("allow_mix_content_mode", false); sv3.b.j(URISpanHandlerSet.this.f61394a, "webview", ".ui.tools.WebViewUI", intent, null); return true; } } return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a(priority = PRIORITY.HIGH) public class LuckyMoneyUriSpanHandler extends BaseUriSpanHandler { public LuckyMoneyUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{33, 59}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().toLowerCase().startsWith("weixin://weixinhongbao/") || str.trim().toLowerCase().startsWith("frhb://c2cbizmessagehandler/hongbao/receivehongbao")) { return new t0(str, 33, null); } if (str.trim().toLowerCase().startsWith("weixin://weixinunionhongbao/")) { return new t0(str, 59, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { int i15 = t0Var.f203634d; if (i15 == 33) { Log.i("MicroMsg.URISpanHandlerSet", "hrefInfo.getType() == MMSpanConstants.Type.TYPE_LUCKY_MONEY_NORMAL"); if (pVar == null) { Log.i("MicroMsg.URISpanHandlerSet", "LuckyMoneyUriSpanHandler handleSpanClick() clickCallback == null"); return false; } Intent intent = new Intent(); intent.putExtra("key_native_url", t0Var.b()); intent.putExtra("key_username", (String) pVar.b(t0Var)); intent.putExtra("key_lucky_money_can_received", true); intent.putExtra("key_jump_from", 4); intent.putExtra("scene_id", 1002); if (t0Var.b().startsWith("frhb://c2cbizmessagehandler/hongbao/receivehongbao")) { intent.putExtra("key_hk_scene", 1); sv3.b.j(URISpanHandlerSet.this.f61394a, "luckymoney", ".hk.ui.LuckyMoneyHKBeforeDetailUI", intent, null); } else { sv3.b.j(URISpanHandlerSet.this.f61394a, "luckymoney", ".ui.LuckyMoneyBeforeDetailUI", intent, null); } q qVar = q.INSTANCE; qVar.g(12097, 11, 0, Long.valueOf(System.currentTimeMillis())); qVar.g(11850, 4, 1); return true; } else if (i15 != 59) { return false; } else { Log.i("MicroMsg.URISpanHandlerSet", "hrefInfo.getType() == MMSpanConstants.Type.TYPE_LUCKY_MONEY_UNION"); if (pVar == null) { Log.i("MicroMsg.URISpanHandlerSet", "LuckyMoneyUriSpanHandler handleSpanClick() clickCallback == null"); return false; } Intent intent2 = new Intent(); intent2.putExtra("key_native_url", t0Var.b()); intent2.putExtra("key_username", (String) pVar.b(t0Var)); intent2.putExtra("key_lucky_money_can_received", true); intent2.putExtra("key_jump_from", 4); intent2.putExtra("scene_id", 1005); sv3.b.j(URISpanHandlerSet.this.f61394a, "luckymoney", ".ui.LuckyMoneyBeforeDetailUI", intent2, null); q qVar2 = q.INSTANCE; qVar2.g(12097, 11, 0, Long.valueOf(System.currentTimeMillis())); qVar2.g(11850, 4, 1); return true; } } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class OfflineFQFSpanHandler extends BaseUriSpanHandler { public OfflineFQFSpanHandler(URISpanHandlerSet uRISpanHandlerSet) { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{51}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://wcpay/fqf/opentinyapp")) { return new t0(str, 51, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d == 51) { Log.i("MicroMsg.URISpanHandlerSet", "go to offline fqf"); Object obj = t0Var.f203635e; if (obj != null && (obj instanceof Bundle)) { Bundle bundle = (Bundle) obj; String string = bundle.getString("repayment_tiny_app_username"); String string2 = bundle.getString("repayment_tiny_app_path"); StartAppBrandUIFromOuterEvent startAppBrandUIFromOuterEvent = new StartAppBrandUIFromOuterEvent(); StartAppBrandUIFromOuterEvent.a aVar = startAppBrandUIFromOuterEvent.f64736d; aVar.f64738a = string; aVar.f64739b = Util.nullAs(string2, ""); startAppBrandUIFromOuterEvent.f64736d.f64740c = 0; startAppBrandUIFromOuterEvent.publish(); } if (pVar != null) { pVar.a(t0Var); } } return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class OpenFinderLiveLotteryDetailSpanHandler extends BaseUriSpanHandler { public OpenFinderLiveLotteryDetailSpanHandler(URISpanHandlerSet uRISpanHandlerSet) { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{68}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://finderlive/lotteryDetail")) { return new t0(str, 68, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { Object obj; if (t0Var.f203634d == 68 && (obj = t0Var.f203635e) != null && (obj instanceof Bundle)) { Bundle bundle = (Bundle) obj; bi3 bi32 = new bi3(); try { bi32.parseFrom(bundle.getByteArray("KEY_FINDER_LIVE_JUMP_DATA")); String str = bi32.f17314d; String str2 = bi32.f17316f; String str3 = bi32.f17315e; Intent intent = new Intent(); intent.putExtra("FROM_SCENE", 1); intent.putExtra("KEY_LOTTERY_HISTORY_LIVE_ID", m60.d.Q(str2)); intent.putExtra("KEY_LOTTERY_HISTORY_OBJECT_ID", m60.d.Q(str3)); intent.putExtra("KEY_LOTTERY_HISTORY_SOURCE", 1); intent.putExtra("KEY_LOTTERY_ID", str); String o15 = ((f5) yz3.j.c(f5.class)).o(t0Var.f203645o.u2()); if (!Util.isNullOrNil(o15)) { intent.putExtra("KEY_LIVE_ANCHOR_USERNAME", o15); } if (bi32.f17317g) { try { q qVar = q.INSTANCE; a50.g gVar = new a50.g(); gVar.n("user_type", 2); qVar.g(20849, 6, 2, str, "", gVar.toString().replace(",", ";")); } catch (Exception e15) { Log.i("MicroMsg.URISpanHandlerSet", "[setContent] e.msg:" + e15.getMessage()); } intent.putExtra("FINDER_NICKNAME", bi32.f17318h); intent.putExtra("KEY_SCENE", 2); ((e2) yz3.j.c(e2.class)).P3((Activity) view.getContext(), intent); } else { try { q qVar2 = q.INSTANCE; a50.g gVar2 = new a50.g(); gVar2.n("user_type", 1); qVar2.g(20849, 6, 2, str, "", gVar2.toString().replace(",", ";")); } catch (Exception e16) { Log.i("MicroMsg.URISpanHandlerSet", "[setContent] e.msg:" + e16.getMessage()); } intent.putExtra("KEY_SCENE", 1); ((e2) yz3.j.c(e2.class)).J1((Activity) view.getContext(), intent); } } catch (Exception e17) { Log.i("MicroMsg.URISpanHandlerSet", "[OpenFinderLiveLotteryDetailSpanHandler],e:" + e17.getMessage()); } } return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class OpenIMKefuMsgMenuUriSpanHandler extends BaseUriSpanHandler { public OpenIMKefuMsgMenuUriSpanHandler(URISpanHandlerSet uRISpanHandlerSet) { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{62}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://kefumenu")) { return new t0(str, 62, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (62 != t0Var.f203634d) { return false; } if (Util.isNullOrNil(t0Var.f203636f)) { Log.w("MicroMsg.URISpanHandlerSet", "BizMsgMenuUriSpanHandler Username is null."); return true; } else if (!z1.y5(t0Var.f203636f)) { Log.w("MicroMsg.URISpanHandlerSet", "OpenIMKefuMsgMenuUriSpanHandler Username not openim kefu: %s", t0Var.f203636f); return true; } else { t0Var.b(); Uri parse = Uri.parse(t0Var.b().trim()); String trim = Util.nullAs(parse.getQueryParameter("kefumenuid"), "").trim(); String queryParameter = parse.getQueryParameter("kefumenucontent"); if (Util.isNullOrNil(trim) || Util.isNullOrNil(queryParameter)) { Log.w("MicroMsg.URISpanHandlerSet", "OpenIMKefuMsgMenuUriSpanHandler id or msgContent is null."); return true; } HashMap hashMap = new HashMap(); hashMap.put("kefumenuid", trim); if (g0.a(t0Var.f203636f)) { f0.f a15 = f0.a(t0Var.f203636f); a15.k(t0Var.f203636f); a15.g(queryParameter); a15.l(w0.z(t0Var.f203636f)); a15.f352546e = 1; a15.f352548g = hashMap; a15.c(); } else { f0.f a16 = f0.a(t0Var.f203636f); a16.k(t0Var.f203636f); a16.g(queryParameter); a16.l(w0.z(t0Var.f203636f)); a16.f352546e = 1; a16.f352548g = hashMap; a16.f352549h = 5; a16.a().a(); } return true; } } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class OpenIMKefuRequestLocationAcceptSpanHandler extends BaseUriSpanHandler { public OpenIMKefuRequestLocationAcceptSpanHandler(URISpanHandlerSet uRISpanHandlerSet) { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{66}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().toLowerCase().startsWith("weixin://wwkf/systemmsg/location_request/")) { return new t0(str, 66, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { Object obj; if (t0Var.f203634d != 66 || (obj = t0Var.f203635e) == null || !(obj instanceof Bundle)) { return false; } ej0.m.f207734a.b(view.getContext(), ((Bundle) obj).getString("chatroom_name")); return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } public enum PRIORITY { LOW, NORMAL, HIGH } @a public class PayTransferUriSpanHandler extends BaseUriSpanHandler { public PayTransferUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[0]; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { dl3.a aVar; String str2; String str3; if (str.startsWith("wxpay://")) { dl3.a aVar2 = null; if (l0Var != null) { c cVar = (c) l0Var; String obj = cVar.f179021a.f178869d.o().getUsername().toString(); dl3.a aVar3 = cVar.f179021a.f178938e; if (aVar3 instanceof dl3.a) { aVar2 = aVar3; } aVar = aVar2; str2 = obj; } else { str2 = null; aVar = null; } if (Util.isNullOrNil(str2)) { Log.e("MicroMsg.URISpanHandlerSet", "SERVICE_JUMP_TO_PAY fail, null username"); return false; } String substring = str.substring(8); if (substring.indexOf("&") > 0) { substring = substring.split("&")[0]; } int indexOf = substring.indexOf("="); if (indexOf >= 0) { str3 = substring.substring(indexOf + 1); } else { str3 = ""; } if (Util.getInt(str3, 0) == 1) { if (u0.z() || u0.A()) { if (z1.Y5(str2)) { ((u00.f) yz3.j.c(u00.f.class)).I40(URISpanHandlerSet.this.f61394a, 5, str2, 14, aVar); } else { ((u00.f) yz3.j.c(u00.f.class)).I40(URISpanHandlerSet.this.f61394a, 5, str2, 11, aVar); } } else if (z1.Y5(str2)) { ((u00.f) yz3.j.c(u00.f.class)).I40(URISpanHandlerSet.this.f61394a, 2, str2, 14, aVar); } else { ((u00.f) yz3.j.c(u00.f.class)).I40(URISpanHandlerSet.this.f61394a, 2, str2, 11, aVar); } return true; } Context context = URISpanHandlerSet.this.f61394a; ak.a.makeText(context, context.getString(R.string.iis), 0).show(); } return false; } } @a public class PayUriSpanHandler extends BaseUriSpanHandler { public PayUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{28}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 28) { return false; } if (pVar != null) { pVar.b(t0Var); } GetA8KeyRedirectEvent getA8KeyRedirectEvent = new GetA8KeyRedirectEvent(); GetA8KeyRedirectEvent.a aVar = getA8KeyRedirectEvent.f63103d; aVar.f63105a = 11; aVar.f63106b = t0Var.b(); getA8KeyRedirectEvent.f63103d.f63107c = new WeakReference<>(URISpanHandlerSet.this.f61394a); getA8KeyRedirectEvent.f63103d.f63108d = new Bundle(); getA8KeyRedirectEvent.f63103d.f63108d.putInt("pay_channel", 6); getA8KeyRedirectEvent.asyncPublish(Looper.myLooper()); if (pVar == null) { return true; } pVar.a(t0Var); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class PhoneEmailUriSpanHandler extends BaseUriSpanHandler { public PhoneEmailUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{25, 24}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { String str; if (pVar != null) { pVar.b(t0Var); } int i15 = t0Var.f203634d; if (i15 == 25) { String str2 = t0Var.f203636f; Bundle bundle = new Bundle(); if (str2 != null && !str2.equals(u0.r())) { bundle.putString("Contact_User", str2); sk0.a a15 = ok0.e.VN0().a(str2); if (a15 == null || Util.isNullOrNil(a15.e())) { str = null; } else { str = Util.nullAsNil(a15.f()).replace(" ", ""); } bundle.putString("Contact_Mobile_MD5", str); } bundle.putInt("fromScene", 1); a0.d(URISpanHandlerSet.this.f61394a, t0Var.b(), null, bundle); return true; } if (i15 == 24) { a0.c(URISpanHandlerSet.this.f61394a, t0Var.b(), null); } if (pVar == null) { return false; } pVar.a(t0Var); return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class PluginUriSpanHandler extends BaseUriSpanHandler { public PluginUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{26}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://plugin")) { return new t0(str, 26, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { if (!str.equals("weixin://plugin")) { return false; } Intent intent = new Intent(); if (URISpanHandlerSet.this.f61394a instanceof Service) { intent.addFlags(268435456); } sv3.b.j(URISpanHandlerSet.this.f61394a, "setting", ".ui.setting.SettingsPluginsUI", intent, null); return true; } } @a public class ProfileUriSpanHandler extends BaseUriSpanHandler { public ProfileUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{3}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://contacts/profile/")) { return new t0(str, 3, str.trim().replace("weixin://contacts/profile/", "").replace("/", "")); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { f4 f4Var; if (t0Var.f203634d != 3) { return false; } if (((h) yz3.j.c(h.class)).Xj0(h.b.f231603l5, 0) != 1 || ((f4Var = t0Var.f203645o) != null && f4Var.A3())) { if (pVar != null) { pVar.b(t0Var); } String str = (String) t0Var.a(String.class); if (TextUtils.isEmpty(str)) { String b15 = t0Var.b(); try { if (b15.trim().startsWith("weixin://contacts/profile/")) { str = b15.trim().replace("weixin://contacts/profile/", "").replace("/", ""); } } catch (Throwable unused) { } str = null; } Intent intent = new Intent(); intent.addFlags(268435456); intent.putExtra("Contact_User", str); z1 z1Var = p3.b().v().get(str); if (z1Var != null && ((int) z1Var.V1) > 0 && z1Var.z3()) { com.tencent.mm.ui.contact.y.e(intent, str); } if (Util.nullAsNil(str).length() > 0) { sv3.b.j(URISpanHandlerSet.this.f61394a, Scopes.PROFILE, ".ui.ContactInfoUI", intent, null); } if (pVar != null) { pVar.a(t0Var); } return true; } Log.w("MicroMsg.URISpanHandlerSet", "unknown scene. %s", Util.getStack()); return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { if (!str.startsWith("weixin://contacts/profile/")) { return false; } String replace = str.trim().replace("weixin://contacts/profile/", "").replace("/", ""); if (Util.isNullOrNil(replace)) { Log.e("MicroMsg.URISpanHandlerSet", "jumpToActivity fail, user is null"); return true; } Intent intent = new Intent(); intent.addFlags(268435456); intent.putExtra("Contact_User", replace); z1 z1Var = p3.b().v().get(replace); if (z1Var != null && ((int) z1Var.V1) > 0 && z1Var.z3()) { com.tencent.mm.ui.contact.y.e(intent, replace); } sv3.b.j(URISpanHandlerSet.this.f61394a, Scopes.PROFILE, ".ui.ContactInfoUI", intent, null); return true; } } @a public class ScanQrCodeUriSpanHandler extends BaseUriSpanHandler { public ScanQrCodeUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[0]; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { boolean z16 = false; if (!str.equals("weixin://scanqrcode/")) { return false; } if (!z15) { Log.e("MicroMsg.URISpanHandlerSet", "jumpToActivity, scan qrcode permission fail"); return true; } Intent intent = new Intent(); intent.putExtra("BaseScanUI_select_scan_mode", 1); if (bundle != null && bundle.getInt("fromScene") == 100) { z16 = true; } if (!z16) { intent.addFlags(67108864); } if (URISpanHandlerSet.this.f61394a instanceof Service) { intent.addFlags(268435456); } sv3.b.j(URISpanHandlerSet.this.f61394a, "scanner", ".ui.BaseScanUI", intent, null); return true; } } @a public class SetSafeDeviceUriSpanHandler extends BaseUriSpanHandler { public SetSafeDeviceUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[0]; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { if (!str.equals("weixin://setting/account/safedevice")) { return false; } String str2 = (String) p3.b().u().e(4097, ""); if (!Util.isNullOrNil((String) p3.b().u().e(6, ""))) { Intent intent = new Intent(); if (URISpanHandlerSet.this.f61394a instanceof Service) { intent.addFlags(268435456); } sv3.b.h(URISpanHandlerSet.this.f61394a, "account", ".security.ui.MySafeDeviceListUI"); } else if (!Util.isNullOrNil(str2)) { Intent intent2 = new Intent(URISpanHandlerSet.this.f61394a, BindMContactIntroUI.class); intent2.putExtra("bind_scene", 1); if (URISpanHandlerSet.this.f61394a instanceof Service) { intent2.addFlags(268435456); } MMWizardActivity.X7(URISpanHandlerSet.this.f61394a, intent2); } else { Intent intent3 = new Intent(); if (URISpanHandlerSet.this.f61394a instanceof Service) { intent3.addFlags(268435456); } sv3.b.A(URISpanHandlerSet.this.f61394a, "account", ".security.ui.BindSafeDeviceUI", intent3); } return true; } } @a public class SettingBindEmailUriSpanHandler extends BaseUriSpanHandler { public SettingBindEmailUriSpanHandler(URISpanHandlerSet uRISpanHandlerSet) { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{7}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://setting/bindemail")) { return new t0(str, 7, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 7) { return false; } if (pVar != null) { pVar.b(t0Var); } LauncherUI instance = LauncherUI.getInstance(); if (instance != null) { instance.d8().l("tab_settings"); } if (pVar == null) { return true; } pVar.a(t0Var); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class SettingBlacklistUriSpanHandler extends BaseUriSpanHandler { public SettingBlacklistUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{14}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://setting/blacklist")) { return new t0(str, 14, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 14) { return false; } if (pVar != null) { pVar.b(t0Var); } i2 a15 = j2.a(URISpanHandlerSet.this.f61394a.getString(R.string.fsb)); Intent intent = new Intent(); intent.setClass(URISpanHandlerSet.this.f61394a, SelectContactUI.class); intent.putExtra("Contact_GroupFilter_Type", a15.a()); String str = a15.f270680b; if (str == null) { str = ""; } intent.putExtra("Contact_GroupFilter_DisplayName", str); intent.addFlags(67108864); LauncherUI instance = LauncherUI.getInstance(); if (instance != null) { instance.d8().l("tab_settings"); } Context context = URISpanHandlerSet.this.f61394a; k30.a aVar = new k30.a(); aVar.c(intent); j30.a.d(context, aVar.b(), "com/tencent/mm/app/plugin/URISpanHandlerSet$SettingBlacklistUriSpanHandler", "handleSpanClick", "(Landroid/view/View;Lcom/tencent/mm/pluginsdk/ui/applet/HrefInfo;Lcom/tencent/mm/pluginsdk/ui/span/MMSpanClickCallback;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); context.startActivity((Intent) aVar.a(0)); j30.a.e(context, "com/tencent/mm/app/plugin/URISpanHandlerSet$SettingBlacklistUriSpanHandler", "handleSpanClick", "(Landroid/view/View;Lcom/tencent/mm/pluginsdk/ui/applet/HrefInfo;Lcom/tencent/mm/pluginsdk/ui/span/MMSpanClickCallback;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); if (pVar == null) { return true; } pVar.a(t0Var); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { if (!str.equals("weixin://setting/blacklist")) { return false; } i2 a15 = j2.a(URISpanHandlerSet.this.f61394a.getString(R.string.fsb)); Intent intent = new Intent(); intent.setClass(URISpanHandlerSet.this.f61394a, AddressUI.class); intent.putExtra("Contact_GroupFilter_Type", a15.a()); String str2 = a15.f270680b; if (str2 == null) { str2 = ""; } intent.putExtra("Contact_GroupFilter_DisplayName", str2); intent.addFlags(67108864); if (URISpanHandlerSet.this.f61394a instanceof Service) { intent.addFlags(268435456); } LauncherUI instance = LauncherUI.getInstance(); if (instance != null) { instance.d8().l("tab_settings"); } Context context = URISpanHandlerSet.this.f61394a; k30.a aVar = new k30.a(); aVar.c(intent); j30.a.d(context, aVar.b(), "com/tencent/mm/app/plugin/URISpanHandlerSet$SettingBlacklistUriSpanHandler", "handleUriJump", "(Ljava/lang/String;ZLcom/tencent/mm/pluginsdk/UriJumpCallback;Landroid/os/Bundle;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); context.startActivity((Intent) aVar.a(0)); j30.a.e(context, "com/tencent/mm/app/plugin/URISpanHandlerSet$SettingBlacklistUriSpanHandler", "handleUriJump", "(Ljava/lang/String;ZLcom/tencent/mm/pluginsdk/UriJumpCallback;Landroid/os/Bundle;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); return true; } } @a public class SettingHeadImgUriSpanHandler extends BaseUriSpanHandler { public SettingHeadImgUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{6}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://setting/setheadimage")) { return new t0(str, 6, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 6) { return false; } if (pVar != null) { pVar.b(t0Var); } LauncherUI instance = LauncherUI.getInstance(); if (instance != null) { instance.d8().l("tab_settings"); } if (pVar == null) { return true; } pVar.a(t0Var); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { if (!str.equals("weixin://setting/setheadimage")) { return false; } Intent intent = new Intent(); intent.putExtra("Contact_User", u0.r()); intent.putExtra("Contact_Nick", u0.l()); intent.putExtra("User_Avatar", true); if (URISpanHandlerSet.this.f61394a instanceof Service) { intent.addFlags(268435456); } sv3.b.j(URISpanHandlerSet.this.f61394a, Scopes.PROFILE, ".ui.ContactInfoUI", intent, null); return true; } } @a public class SettingNotifyUriSpanHandler extends BaseUriSpanHandler { public SettingNotifyUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{9}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://setting/notify")) { return new t0(str, 9, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 9) { return false; } if (pVar != null) { pVar.b(t0Var); } LauncherUI instance = LauncherUI.getInstance(); if (instance != null) { instance.d8().l("tab_settings"); } sv3.b.h(URISpanHandlerSet.this.f61394a, "setting", ".ui.setting.SettingsNotificationUI"); if (pVar == null) { return true; } pVar.a(t0Var); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { if (!str.equals("weixin://setting/notify")) { return false; } LauncherUI instance = LauncherUI.getInstance(); if (instance != null) { instance.d8().l("tab_settings"); } Intent intent = new Intent(); intent.addFlags(67108864); if (URISpanHandlerSet.this.f61394a instanceof Service) { intent.addFlags(268435456); } sv3.b.j(URISpanHandlerSet.this.f61394a, "setting", ".ui.setting.SettingsNotificationUI", intent, null); return true; } } @a public class SettingPluginLomoUriSpanHandler extends BaseUriSpanHandler { public SettingPluginLomoUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{12}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://setting/plugin/lomo")) { return new t0(str, 12, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 12) { return false; } if (pVar != null) { pVar.b(t0Var); } Intent intent = new Intent(); intent.putExtra("Contact_User", "weibo"); sv3.b.j(URISpanHandlerSet.this.f61394a, Scopes.PROFILE, ".ui.ContactInfoUI", intent, null); if (pVar == null) { return true; } pVar.a(t0Var); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { if (!str.equals("weixin://setting/plugin/lomo")) { return false; } Intent intent = new Intent(); intent.putExtra("Contact_User", "weibo"); if (URISpanHandlerSet.this.f61394a instanceof Service) { intent.addFlags(268435456); } sv3.b.j(URISpanHandlerSet.this.f61394a, Scopes.PROFILE, ".ui.ContactInfoUI", intent, null); return true; } } @a public class SettingPluginQQMailUriSpanHandler extends BaseUriSpanHandler { public SettingPluginQQMailUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{10}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://setting/plugin/qqmail")) { return new t0(str, 10, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 10) { return false; } if (pVar != null) { pVar.b(t0Var); } Intent intent = new Intent(); intent.putExtra("Contact_User", "qqmail"); sv3.b.j(URISpanHandlerSet.this.f61394a, Scopes.PROFILE, ".ui.ContactInfoUI", intent, null); if (pVar == null) { return true; } pVar.a(t0Var); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { if (!str.equals("weixin://setting/plugin/qqmail")) { return false; } Intent intent = new Intent(); intent.putExtra("Contact_User", "qqmail"); if (URISpanHandlerSet.this.f61394a instanceof Service) { intent.addFlags(268435456); } sv3.b.j(URISpanHandlerSet.this.f61394a, Scopes.PROFILE, ".ui.ContactInfoUI", intent, null); return true; } } @a public class SettingPluginQQMsgUriSpanHandler extends BaseUriSpanHandler { public SettingPluginQQMsgUriSpanHandler(URISpanHandlerSet uRISpanHandlerSet) { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{13}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://setting/plugin/qqmsg")) { return new t0(str, 13, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class SettingPluginSxMsgUriSpanHandler extends BaseUriSpanHandler { public SettingPluginSxMsgUriSpanHandler(URISpanHandlerSet uRISpanHandlerSet) { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{11}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://setting/plugin/sxmsg")) { return new t0(str, 11, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class SettingPrivacyUriSpanHandler extends BaseUriSpanHandler { public SettingPrivacyUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{15}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://setting/privacy")) { return new t0(str, 15, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 15) { return false; } if (pVar != null) { pVar.b(t0Var); } LauncherUI instance = LauncherUI.getInstance(); if (instance != null) { instance.d8().l("tab_settings"); } sv3.b.h(URISpanHandlerSet.this.f61394a, "setting", ".ui.setting.SettingsPrivacyUI"); if (pVar == null) { return true; } pVar.a(t0Var); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { if (!str.equals("weixin://setting/privacy")) { return false; } LauncherUI instance = LauncherUI.getInstance(); if (instance != null) { instance.d8().l("tab_settings"); } Intent intent = new Intent(); if (URISpanHandlerSet.this.f61394a instanceof Service) { intent.addFlags(268435456); } sv3.b.j(URISpanHandlerSet.this.f61394a, "setting", ".ui.setting.SettingsPrivacyUI", intent, null); return true; } } @a public class StoryEntranceHandler extends BaseUriSpanHandler { public StoryEntranceHandler(URISpanHandlerSet uRISpanHandlerSet) { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{48}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 48 || TextUtils.isEmpty(t0Var.f203636f)) { return false; } if (pVar == null) { return true; } pVar.a(t0Var); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class TeenModeAgreeAuthorizationSpanHandler extends BaseUriSpanHandler { public TeenModeAgreeAuthorizationSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{64}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://teenagerModeAgreenAuthorization/")) { return new t0(str, 64, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 64) { return false; } Log.i("MicroMsg.URISpanHandlerSet", "TeenModeAgreeAuthorizationSpanHandler"); Uri.parse(t0Var.b()); String b15 = t0Var.b(); long j15 = Util.getLong(b15.substring(b15.trim().lastIndexOf("/") + 1), 0); if (j15 > 0) { f4 ZB = ((g4) ((k0) z.q(k0.class)).WU()).ZB(t0Var.f203636f, j15); if (ZB.E2() > 0) { if (ZB.y2() == 1) { ((kd3.i) yz3.j.c(kd3.i.class)).hR(URISpanHandlerSet.this.f61394a, t0Var.f203636f, u0.r(), ZB.getCreateTime(), ZB.E2(), ZB.getContent(), ZB.x2(), Boolean.TRUE); } else { ((kd3.i) yz3.j.c(kd3.i.class)).hR(URISpanHandlerSet.this.f61394a, u0.r(), t0Var.f203636f, ZB.getCreateTime(), ZB.E2(), ZB.getContent(), ZB.x2(), Boolean.TRUE); } } } return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class TodoSystemMsgUrlSpanHandler extends BaseUriSpanHandler { public TodoSystemMsgUrlSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{54}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().toLowerCase().startsWith("weixin://roomtoolstodo?")) { return new t0(str, 54, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { boolean z15; if (t0Var.f203634d != 54) { return false; } Log.i("MicroMsg.URISpanHandlerSet", "handleClickTodoSystemMsgUrl"); try { Uri parse = Uri.parse(t0Var.b()); String str = t0Var.f203639i; String queryParameter = parse.getQueryParameter("todoid"); parse.getQueryParameter("related_msgid"); String queryParameter2 = parse.getQueryParameter("username"); String queryParameter3 = parse.getQueryParameter(ConstantsKinda.INTENT_LITEAPP_PATH); hj.c Sa = ((ej.d) yz3.j.c(ej.d.class)).XN0().Sa(str, queryParameter); if (Util.isEqual("roomannouncement@app.origin", queryParameter2)) { b0.d(MMApplicationContext.getContext(), str, true); } else { o oVar = new o(); oVar.f277591a = queryParameter2; oVar.f277596f = queryParameter3; oVar.f277601k = q2.CTRL_INDEX; oVar.f277610t = str; ((ej.d) yz3.j.c(ej.d.class)).VN0(oVar, Sa); ((d1) yz3.j.c(d1.class)).r80(URISpanHandlerSet.this.f61394a, oVar); } boolean e15 = b0.e(Sa); if (e15) { z15 = b0.j(Sa); if (z15) { NotifyGroupTodoEvent notifyGroupTodoEvent = new NotifyGroupTodoEvent(); NotifyGroupTodoEvent.a aVar = notifyGroupTodoEvent.f63672d; aVar.f63673a = 3; aVar.f63674b = Sa.field_roomname; aVar.f63675c = queryParameter; notifyGroupTodoEvent.asyncPublish(Looper.getMainLooper()); } } else { z15 = false; } c0.a(str, Util.isEqual("roomannouncement@app.origin", queryParameter2) ? 1 : 0, 2, queryParameter, queryParameter2); Log.i("MicroMsg.URISpanHandlerSet", "handleClickTodoSystemMsgUrl stoTodo(%s %s %s) update finish(%s)", Boolean.valueOf(Util.isNullOrNil(queryParameter)), Boolean.valueOf(Util.isNullOrNil(queryParameter2)), Boolean.valueOf(e15), Boolean.valueOf(z15)); } catch (Exception e16) { Log.e("MicroMsg.URISpanHandlerSet", "handle click link error: %s, url: %s", e16.getMessage(), t0Var.b()); } return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class TopicSpanHandler extends BaseUriSpanHandler { public TopicSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{58}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { int i15; int i16; long j15; int i17; String str; boolean z15; if (t0Var.f203634d != 58) { return true; } j45 j45 = (j45) ((ky.b) yz3.j.c(ky.b.class)).k7(1, view); Log.i("MicroMsg.URISpanHandlerSet", "TopicSpanHandler click %s %s", t0Var.b(), j45); long j16 = 0; long e15 = (long) e6.e(); if (j45 != null) { j16 = j45.f25697d; i17 = j45.f25698e; String str2 = j45.f25699f; j15 = j45.f25700g; i16 = j45.f25701h; i15 = j45.f25702i; str = e(i17, str2, j45.f25703j); } else { i16 = 0; i15 = 0; j15 = e15; str = ""; i17 = 0; } Object obj = t0Var.f203635e; if (obj != null && (obj instanceof Bundle)) { j16 = ((Bundle) obj).getLong("msgSvrId"); } String b15 = t0Var.b(); int i18 = 73; if (!(i17 == 1 || i17 == 2)) { if (i17 == 3) { i18 = 79; } else if (i17 == 4 || i17 == 5) { i18 = 80; } } String bE0 = ((ms.e) yz3.j.c(ms.e.class)).bE0(i18); jo3.t0 t0Var2 = new jo3.t0(); Context context = URISpanHandlerSet.this.f61394a; t0Var2.f242489a = context; t0Var2.f242490b = i18; t0Var2.f242492d = b15; t0Var2.f242501m = b15; t0Var2.f242493e = bE0; t0Var2.f242494f = true; t0Var2.f242496h = true; t0Var2.f242497i = true; t0Var2.f242498j = 1; t0Var2.f242499k = gy3.a.d(context, R.color.aaw); t0Var2.f242500l = true; ((HashMap) t0Var2.f242495g).put("msgSvrId", String.valueOf(j16)); ((HashMap) t0Var2.f242495g).put("parentSearchID", ""); ((HashMap) t0Var2.f242495g).put("fromTagSearch", "1"); ((HashMap) t0Var2.f242506r).put("ShareSceneId", str); ((HashMap) t0Var2.f242506r).put("SnsContentType", String.valueOf(i15)); ((jo3.r) yz3.j.c(jo3.r.class)).H20(t0Var2); WCTopicSearchContentActionStruct wCTopicSearchContentActionStruct = new WCTopicSearchContentActionStruct(); wCTopicSearchContentActionStruct.f71456d = 1; wCTopicSearchContentActionStruct.f71457e = (long) e6.e(); wCTopicSearchContentActionStruct.f71458f = 1; if (TextUtils.isEmpty(b15) || !b15.startsWith("#")) { z15 = true; } else { z15 = true; b15 = b15.substring(1); } wCTopicSearchContentActionStruct.f71459g = wCTopicSearchContentActionStruct.b("ResultQuery", b15, z15); wCTopicSearchContentActionStruct.f71460h = (long) i17; wCTopicSearchContentActionStruct.f71461i = wCTopicSearchContentActionStruct.b("ShareSceneId", str, z15); wCTopicSearchContentActionStruct.f71462j = j15; wCTopicSearchContentActionStruct.f71463k = (long) i16; wCTopicSearchContentActionStruct.f71464l = wCTopicSearchContentActionStruct.b("SearchSessionId", bE0, z15); int i19 = z15 ? 1 : 0; int i25 = z15 ? 1 : 0; int i26 = z15 ? 1 : 0; wCTopicSearchContentActionStruct.f71465m = i19; wCTopicSearchContentActionStruct.f71466n = 0; wCTopicSearchContentActionStruct.n(); l1.l(wCTopicSearchContentActionStruct); return z15; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } public final String e(int i15, String str, int i16) { String[] split; if (i15 == 3 && !TextUtils.isEmpty(str) && (split = str.split("#")) != null && split.length >= 2) { String str2 = split[1]; if ((TextUtils.isEmpty(str2) || TextUtils.equals("0", str2)) && i16 != 0) { Log.i("MicroMsg.WebSearch.WebSearchReportLogic", "need correct feeId"); SnsInfo Mn = f1.zO0().Mn(i16); if (Mn != null) { long j15 = Mn.field_snsId; if (j15 != 0) { split[1] = p63.b0.o0(j15); StringBuilder sb5 = new StringBuilder(); for (int i17 = 0; i17 < split.length; i17++) { sb5.append(split[i17]); if (i17 != split.length - 1) { sb5.append("#"); } } return sb5.toString(); } } } } return str; } public void f(View view, t0 t0Var, String str, int i15, int i16) { String str2; int i17; j45 j45 = (j45) ((ky.b) yz3.j.c(ky.b.class)).k7(1, view); int i18 = 0; Log.i("MicroMsg.URISpanHandlerSet", "TopicSpanHandler click %s %s", t0Var.b(), j45); long e15 = (long) e6.e(); if (j45 != null) { i18 = j45.f25698e; String str3 = j45.f25699f; e15 = j45.f25700g; i17 = j45.f25701h; str2 = e(i18, str3, j45.f25703j); } else { str2 = ""; i17 = 0; } String b15 = t0Var.b(); WCTopicSearchContentActionStruct wCTopicSearchContentActionStruct = new WCTopicSearchContentActionStruct(); wCTopicSearchContentActionStruct.f71456d = 1; wCTopicSearchContentActionStruct.f71457e = (long) e6.e(); wCTopicSearchContentActionStruct.f71458f = 1; if (!TextUtils.isEmpty(b15) && b15.startsWith("#")) { b15 = b15.substring(1); } wCTopicSearchContentActionStruct.f71459g = wCTopicSearchContentActionStruct.b("ResultQuery", b15, true); wCTopicSearchContentActionStruct.f71460h = (long) i18; wCTopicSearchContentActionStruct.f71461i = wCTopicSearchContentActionStruct.b("ShareSceneId", str2, true); wCTopicSearchContentActionStruct.f71462j = e15; wCTopicSearchContentActionStruct.f71463k = (long) i17; wCTopicSearchContentActionStruct.f71464l = wCTopicSearchContentActionStruct.b("SearchSessionId", str, true); wCTopicSearchContentActionStruct.f71465m = i15; wCTopicSearchContentActionStruct.f71466n = i16; wCTopicSearchContentActionStruct.n(); l1.l(wCTopicSearchContentActionStruct); } } @a public class TransferUriSpanHandler extends BaseUriSpanHandler { public class a implements u { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ Bundle f61449a; public a(TransferUriSpanHandler transferUriSpanHandler, Bundle bundle) { this.f61449a = bundle; } @Override // p64.u public void a(boolean z15, String str) { if (z15) { String string = this.f61449a.getString(FirebaseAnalytics.b.TRANSACTION_ID); String string2 = this.f61449a.getString("transfer_id"); String string3 = this.f61449a.getString("receiver_name"); Intent intent = new Intent(); intent.putExtra(FirebaseAnalytics.b.TRANSACTION_ID, string); intent.putExtra("transfer_id", string2); intent.putExtra("receiver_name", string3); intent.putExtra("resend_msg_from_flag", 3); intent.putExtra("is_open_im", this.f61449a.getInt("is_open_im")); sv3.b.j(MMApplicationContext.getContext(), "remittance", ".ui.RemittanceResendMsgUI", intent, null); } } } public class b implements u { public b(TransferUriSpanHandler transferUriSpanHandler) { } @Override // p64.u public void a(boolean z15, String str) { } } public class c implements u { public c(TransferUriSpanHandler transferUriSpanHandler) { } @Override // p64.u public void a(boolean z15, String str) { } } public TransferUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{39, 40, 41, 70, 42, 49, 56, 63}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().toLowerCase().startsWith("weixin://wcpay/transfer/retrysendmsg")) { return new t0(str, 39, null); } if (str.trim().toLowerCase().startsWith("weixin://wcpay/transfer/rebacksendmsg")) { return new t0(str, 40, null); } if (str.trim().toLowerCase().startsWith("weixin://wcpay/transfer/watchbalance")) { return new t0(str, 41, null); } if (str.trim().toLowerCase().startsWith("weixin://wcpay/transfer/watchotheraccount")) { return new t0(str, 70, null); } if (str.trim().toLowerCase().startsWith("weixin://wcpay/transfer/watchlqt")) { return new t0(str, 42, null); } if (str.trim().toLowerCase().startsWith("wechat://wcpay/transfer/transferquery")) { return new t0(str, 49, null); } if (str.trim().toLowerCase().startsWith("weixin://wxpay/transfer/remindrcvmsg")) { return new t0(str, 56, null); } if (str.trim().toLowerCase().startsWith("weixin://wxpay/transfer/transfer_overtime")) { return new t0(str, 63, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { String str; if (t0Var != null) { int i15 = t0Var.f203634d; if (i15 == 42) { if (!((qv3.c) yz3.j.c(qv3.c.class)).startLqtDetailUseCaseInMMProcess(URISpanHandlerSet.this.f61394a)) { sv3.b.j(URISpanHandlerSet.this.f61394a, "wallet", ".balance.ui.lqt.WalletLqtDetailUI", new Intent(), null); } return true; } else if (i15 == 41) { if (!((qv3.c) yz3.j.c(qv3.c.class)).startWalletBalanceEntryUseCase(URISpanHandlerSet.this.f61394a)) { sv3.b.h(URISpanHandlerSet.this.f61394a, "wallet", ".balance.ui.WalletBalanceManagerUI"); } return true; } else if (i15 == 70) { Uri parse = Uri.parse(t0Var.b()); RemittanceAccountDetailEvent remittanceAccountDetailEvent = new RemittanceAccountDetailEvent(); remittanceAccountDetailEvent.f64185d.f64186a = Util.getInt(parse.getQueryParameter("jumpinfo_type"), 0); remittanceAccountDetailEvent.f64185d.f64187b = parse.getQueryParameter("jumpinfo_url"); remittanceAccountDetailEvent.f64185d.f64188c = parse.getQueryParameter("jumpinfo_username"); remittanceAccountDetailEvent.f64185d.f64189d = parse.getQueryParameter("jumpinfo_pagepath"); remittanceAccountDetailEvent.publish(); return true; } else if (i15 == 39) { Object obj = t0Var.f203635e; if (obj != null && (obj instanceof Bundle)) { Bundle bundle = (Bundle) obj; ((ss3.c) yz3.j.c(ss3.c.class)).c30(URISpanHandlerSet.this.f61394a, (ResendMsgInfo) bundle.getParcelable("resend_msg_info"), new a(this, bundle)); } return true; } else if (i15 == 40) { Object obj2 = t0Var.f203635e; if (obj2 != null && (obj2 instanceof Bundle)) { Bundle bundle2 = (Bundle) obj2; RemittanceRefuseEvent remittanceRefuseEvent = new RemittanceRefuseEvent(); remittanceRefuseEvent.f64197d.f64198a = bundle2.getString(FirebaseAnalytics.b.TRANSACTION_ID); remittanceRefuseEvent.f64197d.f64199b = bundle2.getString("transfer_id"); remittanceRefuseEvent.f64197d.f64200c = bundle2.getInt("total_fee"); remittanceRefuseEvent.f64197d.f64201d = bundle2.getString("sender_name"); remittanceRefuseEvent.publish(); } return true; } else { String str2 = ""; if (i15 == 49) { Uri parse2 = Uri.parse(t0Var.b()); String queryParameter = parse2.getQueryParameter("transfer_id"); String queryParameter2 = parse2.getQueryParameter("trans_id"); Object obj3 = t0Var.f203635e; if (obj3 == null || !(obj3 instanceof Bundle)) { Log.i("MicroMsg.URISpanHandlerSet", "hrefInfo.getType() == TYPE_TRANSFER_QUERY_MSG senderName == null"); str = str2; } else { Bundle bundle3 = (Bundle) obj3; str2 = bundle3.getString("sender_name"); str = bundle3.getString("receiver_name"); } Intent intent = new Intent(); intent.putExtra("transfer_id", queryParameter); intent.putExtra(FirebaseAnalytics.b.TRANSACTION_ID, queryParameter2); intent.putExtra("sender_name", str2); intent.putExtra("receiver_name", str); sv3.b.j(MMApplicationContext.getContext(), "remittance", ".ui.RemittanceDetailUI", intent, null); return true; } else if (i15 == 56 || i15 == 63) { Uri parse3 = Uri.parse(t0Var.b()); String queryParameter3 = parse3.getQueryParameter("transferid"); String queryParameter4 = parse3.getQueryParameter("fromusername"); String queryParameter5 = parse3.getQueryParameter("transfer_msg_type"); if (t0Var.f203634d == 56) { Log.i("MicroMsg.URISpanHandlerSet", "click MSpanConstants.Type.TYPE_TRANSFER_REMINDE_RECEIVE_MSG, transferId: %s,msgType:%s", queryParameter3, queryParameter5); q.INSTANCE.g(20467, "transfer_to_change", "click message", str2, str2, str2, str2, 3, queryParameter3, queryParameter5); } if (!Util.isNullOrNil(queryParameter3)) { Log.i("MicroMsg.URISpanHandlerSet", "handle MSpanConstants.Type.TYPE_TRANSFER_REMINDE_RECEIVE_MSG"); long Ve = ((w00.i) yz3.j.c(w00.i.class)).Ve(queryParameter3); if (Ve > 0) { Log.i("MicroMsg.URISpanHandlerSet", "handle MSpanConstants.Type.TYPE_TRANSFER_REMINDE_RECEIVE_MSG, localMsgId: %s", Long.valueOf(Ve)); if (((g4) ((k0) z.q(k0.class)).WU()).tz(Ve).getMsgId() <= 0) { Log.i("MicroMsg.URISpanHandlerSet", "cannot find msg in msg storage!"); p64.q qVar = new p64.q(MMApplicationContext.getContext()); qVar.g(MMApplicationContext.getContext().getString(R.string.i0_)); qVar.k(MMApplicationContext.getContext().getResources().getColor(R.color.f358734vo)); qVar.m(R.string.f368689fz1); qVar.l(new b(this)); qVar.o(); } else { ScrollChattingUIConversationListEvent scrollChattingUIConversationListEvent = new ScrollChattingUIConversationListEvent(); ScrollChattingUIConversationListEvent.a aVar = scrollChattingUIConversationListEvent.f64418d; aVar.f64420b = Ve; aVar.f64419a = queryParameter4; scrollChattingUIConversationListEvent.publish(); } } else { Log.i("MicroMsg.URISpanHandlerSet", "handle MSpanConstants.Type.TYPE_TRANSFER_REMINDE_RECEIVE_MSG, cannot find local msg"); p64.q qVar2 = new p64.q(MMApplicationContext.getContext()); qVar2.g(MMApplicationContext.getContext().getString(R.string.i0_)); qVar2.k(MMApplicationContext.getContext().getResources().getColor(R.color.f358734vo)); qVar2.m(R.string.f368689fz1); qVar2.l(new c(this)); qVar2.o(); } } return true; } } } return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class UnKnowToUrlSpanHandler extends BaseUriSpanHandler { public UnKnowToUrlSpanHandler(URISpanHandlerSet uRISpanHandlerSet) { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{2147483646}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 2147483646) { return false; } Object obj = t0Var.f203635e; if (obj instanceof Bundle) { String string = ((Bundle) obj).getString("rawUrl"); if (Util.isNullOrNil(string)) { Log.i("MicroMsg.URISpanHandlerSet", "TYPE_UNKNOW_TO_URL url == null"); } else { bl0.a.c(MMApplicationContext.getContext(), string, 0, true); } } else { Log.i("MicroMsg.URISpanHandlerSet", "TYPE_UNKNOW_TO_URL hrefInfo.getData() no instanceof Bundle"); } return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class UpgradeAssociateChatRoomUrlSpanHandler extends BaseUriSpanHandler { public UpgradeAssociateChatRoomUrlSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{53}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().toLowerCase().startsWith("weixin://weixingroupupdate?")) { return new t0(str, 53, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 53) { return false; } Log.i("MicroMsg.URISpanHandlerSet", "handleClickUpgradeAssociateChatRoomUrl"); try { String queryParameter = Uri.parse(t0Var.b()).getQueryParameter("roomname"); if (Util.isNullOrNil(queryParameter)) { Log.w("MicroMsg.URISpanHandlerSet", "Username is null."); return true; } if (z1.Y5(queryParameter)) { k1 Sa = ((com.tencent.mm.storage.l1) ((o61.c) z.q(o61.c.class)).VI()).Sa(queryParameter); if (Sa == null) { Log.e("MicroMsg.URISpanHandlerSet", "handleClickUpgradeAssociateChatRoomUrl %s member is null", queryParameter); return true; } int i15 = 3; Log.i("MicroMsg.URISpanHandlerSet", "handleClickUpgradeAssociateChatRoomUrl room:%s chatroomStatus:%s owener:%s", queryParameter, Integer.valueOf(Sa.field_chatroomStatus), Util.nullAs(Sa.field_roomowner, "")); boolean z15 = Sa.field_memberCount >= q0.p(); if (w0.C(queryParameter)) { if (!Sa.C2(u0.r())) { Log.i("MicroMsg.URISpanHandlerSet", "handleClickUpgradeAssociateChatRoomUrl:no owner"); Context context = URISpanHandlerSet.this.f61394a; if (context != null) { j.E(context, context.getString(R.string.b0e), "", URISpanHandlerSet.this.f61394a.getString(R.string.f367504vi), false, null); } else { Log.e("MicroMsg.URISpanHandlerSet", "handleClickUpgradeAssociateChatRoomUrl:mContext is null"); } if (!z15) { i15 = 1; } ManagerRoomByWeworkUI.T7(queryParameter, 2, 2, i15); return true; } } else if (w0.B(queryParameter) && !Sa.C2(u0.r())) { Log.i("MicroMsg.URISpanHandlerSet", "handleClickUpgradeAssociateChatRoomUrl:isAssociateChatRoom "); Context context2 = URISpanHandlerSet.this.f61394a; if (context2 != null) { j.E(context2, context2.getString(R.string.b0b), "", URISpanHandlerSet.this.f61394a.getString(R.string.f367504vi), false, null); } else { Log.e("MicroMsg.URISpanHandlerSet", "handleClickUpgradeAssociateChatRoomUrl:mContext is null"); } return true; } if (z15) { Log.i("MicroMsg.URISpanHandlerSet", "handleClickUpgradeAssociateChatRoomUrl:exceed maxnum"); Context context3 = URISpanHandlerSet.this.f61394a; if (context3 != null) { j.E(context3, context3.getString(R.string.b0c), "", URISpanHandlerSet.this.f61394a.getString(R.string.f367504vi), false, null); } else { Log.e("MicroMsg.URISpanHandlerSet", "handleClickUpgradeAssociateChatRoomUrl:mContext is null"); } ManagerRoomByWeworkUI.T7(queryParameter, 2, 2, 2); return true; } ((com.tencent.mm.plugin.newtips.model.l) ((kw.g) yz3.j.c(kw.g.class)).Yf0()).a(25); ((com.tencent.mm.plugin.newtips.model.l) ((kw.g) yz3.j.c(kw.g.class)).Yf0()).a(26); ((com.tencent.mm.plugin.newtips.model.l) ((kw.g) yz3.j.c(kw.g.class)).Yf0()).a(27); Intent intent = new Intent(); intent.setClass(MMApplicationContext.getContext(), ManagerRoomByWeworkUI.class); intent.addFlags(268435456); intent.putExtra("RoomInfo_Id", queryParameter); intent.putExtra("upgrade_openim_room_from_scene", 2); Context context4 = MMApplicationContext.getContext(); k30.a aVar = new k30.a(); aVar.c(intent); j30.a.d(context4, aVar.b(), "com/tencent/mm/app/plugin/URISpanHandlerSet$UpgradeAssociateChatRoomUrlSpanHandler", "handleSpanClick", "(Landroid/view/View;Lcom/tencent/mm/pluginsdk/ui/applet/HrefInfo;Lcom/tencent/mm/pluginsdk/ui/span/MMSpanClickCallback;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); context4.startActivity((Intent) aVar.a(0)); j30.a.e(context4, "com/tencent/mm/app/plugin/URISpanHandlerSet$UpgradeAssociateChatRoomUrlSpanHandler", "handleSpanClick", "(Landroid/view/View;Lcom/tencent/mm/pluginsdk/ui/applet/HrefInfo;Lcom/tencent/mm/pluginsdk/ui/span/MMSpanClickCallback;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); } return true; } catch (Exception e15) { Log.e("MicroMsg.URISpanHandlerSet", "handle click link error: %s, url: %s", e15.getMessage(), t0Var.b()); return true; } } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class VerifyContactUriSpanHandler extends BaseUriSpanHandler { public VerifyContactUriSpanHandler(URISpanHandlerSet uRISpanHandlerSet) { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{4}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://findfriend/verifycontact")) { return new t0(str, 4, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 4) { return false; } if (pVar == null) { return true; } pVar.b(t0Var); pVar.a(t0Var); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class VoipCallAgainUrilSpanHandler extends BaseUriSpanHandler { public VoipCallAgainUrilSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{38}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://voip/callagain/")) { return new t0(str, 38, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 38) { return false; } Uri parse = Uri.parse(t0Var.b()); String queryParameter = parse.getQueryParameter("username"); String queryParameter2 = parse.getQueryParameter("isvideocall"); VoipEvent voipEvent = new VoipEvent(); VoipEvent.a aVar = voipEvent.f65043d; aVar.f65046b = 5; aVar.f65049e = queryParameter; aVar.f65048d = URISpanHandlerSet.this.f61394a; VoipExceptionReportStruct voipExceptionReportStruct = new VoipExceptionReportStruct(); voipExceptionReportStruct.f71125e = 1; voipExceptionReportStruct.n(); if (queryParameter == null || queryParameter.equals("")) { return false; } if (queryParameter2 == null || !queryParameter2.equals("true")) { voipEvent.f65043d.f65050f = 4; } else { voipEvent.f65043d.f65050f = 2; } voipEvent.publish(); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class VoipDetailUriSpanHandler extends BaseUriSpanHandler { public VoipDetailUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{72}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://jump/voipdetail")) { return new t0(str, 72, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 72) { return false; } String queryParameter = Uri.parse(t0Var.b()).getQueryParameter("data"); Intent intent = new Intent(); intent.putExtra("userInfos", queryParameter); if (URISpanHandlerSet.this.f61394a instanceof Service) { intent.addFlags(268435456); } sv3.b.j(URISpanHandlerSet.this.f61394a, "account", "com.tencent.mm.plugin_flutter_ilinkvoip.support.VoipDetailActivity", intent, null); return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class WeTypeSpanHandler extends BaseUriSpanHandler { public WeTypeSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{71}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().startsWith("weixin://wetype/")) { return new t0(str, 71, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { if (t0Var.f203634d != 71) { return false; } Log.i("MicroMsg.URISpanHandlerSet", "WeTypeSpanHandler"); try { a50.g gVar = new a50.g("{\"wetype\":{\"scene\":2}}"); Log.i("MicroMsg.URISpanHandlerSet", "query:%s", gVar.toString()); ((ty.j) yz3.j.c(ty.j.class)).Ab(URISpanHandlerSet.this.f61394a, gVar.toString()); } catch (a50.f e15) { Log.printErrStackTrace("MicroMsg.URISpanHandlerSet", e15, "", new Object[0]); } VoiceToTextChatInterfaceStruct voiceToTextChatInterfaceStruct = new VoiceToTextChatInterfaceStruct(); voiceToTextChatInterfaceStruct.f71068d = 3; voiceToTextChatInterfaceStruct.n(); return true; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class WeWorkUrlSpanHandler extends BaseUriSpanHandler { /* renamed from: a reason: collision with root package name */ public final String f61454a = (HttpWrapperBase.PROTOCAL_HTTPS + WeChatHosts.domainString(R.string.fyv) + "/wework_admin/commdownload"); public WeWorkUrlSpanHandler(URISpanHandlerSet uRISpanHandlerSet) { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{52}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().toLowerCase().startsWith("wxwork://jump?")) { return new t0(str, 52, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { String str; if (t0Var.f203634d == 52) { Intent intent = new Intent(); intent.setAction("android.intent.action.VIEW"); intent.setData(Uri.parse(t0Var.b())); intent.setPackage("com.tencent.wework"); intent.setFlags(268435456); try { ln.l lVar = (ln.l) yz3.j.c(ln.l.class); Context context = MMApplicationContext.getContext(); PackageManager packageManager = MMApplicationContext.getContext().getPackageManager(); try { str = packageManager.getApplicationInfo("com.tencent.wework", 0).loadLabel(packageManager).toString(); } catch (PackageManager.NameNotFoundException unused) { str = null; } boolean XD = lVar.XD(context, intent, str); if (!XD) { bl0.a.c(MMApplicationContext.getContext(), this.f61454a, 0, true); } Log.i("MicroMsg.URISpanHandlerSet", "WeWorkUrlSpanHandler result:%s", Boolean.valueOf(XD)); return true; } catch (Exception unused2) { } } return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @a public class WxaShortLinkUriSpanHandler extends BaseUriSpanHandler { public WxaShortLinkUriSpanHandler() { } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public int[] a() { return new int[]{60}; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public t0 b(String str) { if (str.trim().toLowerCase().startsWith("mp://")) { return new t0(str, 60, null); } return null; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean c(View view, t0 t0Var, p pVar) { Log.i("MicroMsg.URISpanHandlerSet", "[WxaShortLinkUriSpanHandler] handleSpanClick "); Object obj = t0Var.f203635e; if (obj instanceof Bundle) { Bundle bundle = (Bundle) obj; String str = ""; String string = bundle.getString("key_wxa_short_link_launch_scene", str); int i15 = bundle.getInt("key_wxa_short_link_launch_chat_type", -1); if (string.isEmpty()) { Log.i("MicroMsg.URISpanHandlerSet", "[WxaShortLinkUriSpanHandler] scene is null "); if (BuildInfo.IS_FLAVOR_RED) { throw new Error("[WxaShortLinkUriSpanHandler] scene must not is null"); } } else { h0.b valueOf = h0.b.valueOf(string); Log.i("MicroMsg.URISpanHandlerSet", "[WxaShortLinkUriSpanHandler] sceneName=%s scene=%d preScene=%d", string, Integer.valueOf(valueOf.f249451d), Integer.valueOf(valueOf.f249452e)); Context context = URISpanHandlerSet.this.f61394a; String b15 = t0Var.b(); String str2 = t0Var.f203637g; if (str2 != null) { str = str2; } else { String str3 = t0Var.f203636f; if (str3 != null) { str = str3; } } int i16 = AppBrandCheckWxaShortLinkUI.f95174h; lh4.m.g(context, "context"); lh4.m.g(b15, "url"); if (!ek4.y.n(b15)) { Intent intent = new Intent(context, AppBrandCheckWxaShortLinkUI.class); intent.putExtra("url", b15); intent.putExtra("senderUsername", str); intent.putExtra(TPReportKeys.PlayerStep.PLAYER_BUFFERING_SCENE, valueOf.name()); intent.putExtra("need_check", true); intent.putExtra("chatType", i15); k30.a aVar = new k30.a(); aVar.c(intent); j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/appbrand/ui/AppBrandCheckWxaShortLinkUI$Companion", "startCheckLink", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/tencent/mm/pluginsdk/ui/span/WxaShortLinkScene$SCENE;I)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); context.startActivity((Intent) aVar.a(0)); j30.a.e(context, "com/tencent/mm/plugin/appbrand/ui/AppBrandCheckWxaShortLinkUI$Companion", "startCheckLink", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/tencent/mm/pluginsdk/ui/span/WxaShortLinkScene$SCENE;I)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); } } } else { Log.i("MicroMsg.URISpanHandlerSet", "[WxaShortLinkUriSpanHandler] HrefInfo has not data"); if (BuildInfo.IS_FLAVOR_RED) { throw new Error("[WxaShortLinkUriSpanHandler] HrefInfo has not data"); } } return false; } @Override // com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler public boolean d(String str, boolean z15, l0 l0Var, Bundle bundle) { return false; } } @Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface a { PRIORITY priority() default PRIORITY.NORMAL; } public URISpanHandlerSet(Context context) { Context context2 = null; this.f61394a = context == null ? MMApplicationContext.getContext() : context2; } }