package com.tencent.mm.plugin.appbrand.jsapi.lbs; import android.content.Intent; import android.view.MenuItem; import com.tencent.mm.plugin.appbrand.t2; import com.tencent.mm.sdk.platformtools.Log; import i14.p0; import java.util.Iterator; import java.util.Map; import p64.n; import sv3.b; import wd2.c; public class x implements p0 { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ t2 f88896d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ n f88897e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ z f88898f; public x(z zVar, t2 t2Var, n nVar) { this.f88898f = zVar; this.f88896d = t2Var; this.f88897e = nVar; } @Override // i14.p0 public void onMMMenuItemSelected(MenuItem menuItem, int i15) { if (menuItem.getItemId() != 2) { Map<String, String> map = this.f88898f.f88900h; if (map != null) { Iterator<Map.Entry<String, String>> it = map.entrySet().iterator(); while (true) { if (!it.hasNext()) { break; } Map.Entry<String, String> next = it.next(); if (next.getValue().equals(menuItem.getTitle())) { z zVar = this.f88898f; ((c) zVar.f88906q).e(zVar.f88904o, zVar.f88905p, next.getKey(), false); break; } } } } else { Log.i("MicroMsg.JsApiOpenMapApp", "click tencent map: %s", Boolean.valueOf(this.f88898f.f88900h.containsKey("com.tencent.map"))); boolean containsKey = this.f88898f.f88900h.containsKey("com.tencent.map"); Log.i("MicroMsg.JsApiOpenMapApp", "install tencent map: %s.", Boolean.valueOf(containsKey)); if (containsKey) { z zVar2 = this.f88898f; ((c) zVar2.f88906q).e(zVar2.f88904o, zVar2.f88905p, "com.tencent.map", false); } else { Intent intent = new Intent(); intent.putExtra("rawUrl", "http://mapdownload.map.qq.com/?key=wx&referer=wx1&channel=00008"); b.j(this.f88896d.t0(), "webview", ".ui.tools.WebViewUI", intent, null); } } this.f88897e.p(); } }