Warkop v5.73.0版本的 MD5 值为:a4330ec2d6f5e146f59fc7622f3cdb45
以下内容为反编译后的 v.java 源代码,内容仅作参考
package hr3;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import co.g0;
import com.google.gson.JsonParseException;
import com.inappstory.sdk.stories.api.models.Image;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.json.JSONArray;
import org.json.JSONObject;
import sinet.startup.inDriver.MainApplication;
import sinet.startup.inDriver.data.OrdersData;
import sinet.startup.inDriver.ui.common.AbstractionAppCompatActivity;
import tf1.d;
import yo3.CallData;
@Metadata(d1 = {"\u0000@\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\u0018\u0000 \u001a2\u00020\u0001:\u0001\u000eB\u001f\u0012\u0006\u0010\u0010\u001a\u00020\r\u0012\u0006\u0010\u0013\u001a\u00020\u0011\u0012\u0006\u0010\u0017\u001a\u00020\u0014¢\u0006\u0004\b\u0018\u0010\u0019J\u0016\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\u00050\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0002J\u0010\u0010\t\u001a\u00020\b2\u0006\u0010\u0007\u001a\u00020\u0005H\u0016J\b\u0010\u000b\u001a\u00020\nH\u0016J\u0018\u0010\f\u001a\u00020\b2\u0006\u0010\u0007\u001a\u00020\u00052\u0006\u0010\u0003\u001a\u00020\u0002H\u0016R\u0014\u0010\u0010\u001a\u00020\r8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000e\u0010\u000fR\u0014\u0010\u0013\u001a\u00020\u00118\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\f\u0010\u0012R\u0014\u0010\u0017\u001a\u00020\u00148\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0015\u0010\u0016¨\u0006\u001b"}, d2 = {"Lhr3/v;", "Lxo3/a;", "Lyo3/a;", "callData", "Lvm/q;", "", Image.TYPE_HIGH, OrdersData.SCHEME_PHONE, "Lco/g0;", "l", "", "P", "b", "Lsinet/startup/inDriver/MainApplication;", "a", "Lsinet/startup/inDriver/MainApplication;", com.sumsub.sentry.a.f36279h, "Lhr3/c;", "Lhr3/c;", "callManager", "Lhd1/a;", "c", "Lhd1/a;", "appDeviceInfo", "<init>", "(Lsinet/startup/inDriver/MainApplication;Lhr3/c;Lhd1/a;)V", "Companion", "app_gmsRelease"}, k = 1, mv = {1, 8, 0})
public final class v implements xo3.a {
@NotNull
private final MainApplication app;
@NotNull
private final hr3.c callManager;
@NotNull
private final hd1.a appDeviceInfo;
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0006\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"", "kotlin.jvm.PlatformType", "it", "Lco/g0;", "invoke", "(Ljava/lang/String;)V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
static final class b extends kotlin.jvm.internal.u implements qo.l<String, g0> {
b() {
super(1);
}
@Override
public g0 invoke(String str) {
invoke2(str);
return g0.f25238a;
}
public final void invoke2(String str) {
v.this.l(str);
}
}
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Lym/b;", "kotlin.jvm.PlatformType", "it", "Lco/g0;", "a", "(Lym/b;)V"}, k = 3, mv = {1, 8, 0})
public static final class c extends kotlin.jvm.internal.u implements qo.l<ym.b, g0> {
c() {
super(1);
}
public final void a(ym.b bVar) {
AbstractionAppCompatActivity abstractionAppCompatActivity;
Activity H = v.this.app.H();
if (H instanceof AbstractionAppCompatActivity) {
abstractionAppCompatActivity = (AbstractionAppCompatActivity) H;
} else {
abstractionAppCompatActivity = null;
}
if (abstractionAppCompatActivity != null) {
abstractionAppCompatActivity.m();
}
}
@Override
public g0 invoke(ym.b bVar) {
a(bVar);
return g0.f25238a;
}
}
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\u0010\u0004\u001a\n \u0003*\u0004\u0018\u00010\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Ltf1/d;", "state", "", "kotlin.jvm.PlatformType", "a", "(Ltf1/d;)Ljava/lang/String;"}, k = 3, mv = {1, 8, 0})
public static final class d extends kotlin.jvm.internal.u implements qo.l<tf1.d, String> {
public static final d f67447l = new d();
d() {
super(1);
}
@Override
public final String invoke(@NotNull tf1.d dVar) {
JSONObject jSONObject;
if (dVar instanceof d.Result) {
try {
Object a15 = ((d.Result) dVar).a();
JSONObject jSONObject2 = null;
if (a15 instanceof JSONObject) {
jSONObject = (JSONObject) a15;
} else {
jSONObject = null;
}
if (jSONObject != null && jSONObject.has("items")) {
JSONArray jSONArray = jSONObject.getJSONArray("items");
if (jSONArray != null) {
jSONObject2 = jSONArray.getJSONObject(0);
}
if (jSONObject2 != null && jSONObject2.has(OrdersData.SCHEME_PHONE)) {
return jSONObject2.optString(OrdersData.SCHEME_PHONE);
}
}
} catch (JsonParseException e15) {
ud4.a.INSTANCE.d(e15);
}
}
return "";
}
}
public v(@NotNull MainApplication mainApplication, @NotNull hr3.c cVar, @NotNull hd1.a aVar) {
this.app = mainApplication;
this.callManager = cVar;
this.appDeviceInfo = aVar;
}
public static final void g(qo.l lVar, Object obj) {
lVar.invoke(obj);
}
private final vm.q<String> h(CallData callData) {
if (callData.getUserId() != null) {
vm.q<tf1.d> i15 = new bz3.p().G(callData, true, true).i1(xm.a.c());
final c cVar = new c();
vm.q<tf1.d> d05 = i15.l0(new an.f() {
@Override
public final void accept(Object obj) {
v.i(qo.l.this, obj);
}
}).d0(new an.a() {
@Override
public final void run() {
v.j(v.this);
}
});
final d dVar = d.f67447l;
return d05.Y0(new an.j() {
@Override
public final Object apply(Object obj) {
String k15;
k15 = v.k(qo.l.this, obj);
return k15;
}
});
}
ud4.a.INSTANCE.d(new NullPointerException("user_id is null"));
return vm.q.T0("");
}
public static final void i(qo.l lVar, Object obj) {
lVar.invoke(obj);
}
public static final void j(v vVar) {
AbstractionAppCompatActivity abstractionAppCompatActivity;
Activity H = vVar.app.H();
if (H instanceof AbstractionAppCompatActivity) {
abstractionAppCompatActivity = (AbstractionAppCompatActivity) H;
} else {
abstractionAppCompatActivity = null;
}
if (abstractionAppCompatActivity != null) {
abstractionAppCompatActivity.j();
}
}
public static final String k(qo.l lVar, Object obj) {
return (String) lVar.invoke(obj);
}
@Override
public boolean P() {
if (this.appDeviceInfo.A("com.whatsapp", 1) != null) {
return true;
}
return false;
}
@Override
public void b(@NotNull String str, @NotNull CallData callData) {
String a15 = this.callManager.a();
if (Intrinsics.g(a15, yo3.c.LOG.getCom.google.android.gms.measurement.api.AppMeasurementSdk.ConditionalUserProperty.VALUE java.lang.String()) || Intrinsics.g(a15, yo3.c.PROXY.getCom.google.android.gms.measurement.api.AppMeasurementSdk.ConditionalUserProperty.VALUE java.lang.String())) {
vm.q<String> h15 = h(callData);
final b bVar = new b();
h15.P1(new an.f() {
@Override
public final void accept(Object obj) {
v.g(qo.l.this, obj);
}
});
} else if (Intrinsics.g(a15, yo3.c.NATIVE.getCom.google.android.gms.measurement.api.AppMeasurementSdk.ConditionalUserProperty.VALUE java.lang.String())) {
l(str);
}
}
public void l(@NotNull String str) {
String P;
P = kotlin.text.v.P(str, "+", "", false, 4, null);
Intent intent = new Intent("android.intent.action.VIEW", Uri.parse("https://wa.me/" + P));
intent.setFlags(268435456);
List<ResolveInfo> L = this.appDeviceInfo.L(intent, 0);
if (L != null && !L.isEmpty()) {
this.app.startActivity(intent);
}
}
}