Warkop v5.73.0版本的 MD5 值为:a4330ec2d6f5e146f59fc7622f3cdb45
以下内容为反编译后的 b0.java 源代码,内容仅作参考
package rb4;
import android.location.Location;
import android.net.Uri;
import android.os.Bundle;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.inappstory.sdk.stories.api.models.Image;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.u0;
import n91.y0;
import org.jetbrains.annotations.NotNull;
import ov.w;
import qe2.b;
import rd1.FeatureToggleVariation;
import sinet.startup.inDriver.core.data.data.appSectors.AppSectorData;
import sinet.startup.inDriver.core.data.data.appSectors.WebViewSectorData;
import sinet.startup.inDriver.data.OrdersData;
import wh2.PdfParamsModel;
import zq2.FlowScreen;
@Metadata(d1 = {"\u0000\u0094\u0001\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\u0018\u00002\u00020\u0001BQ\b\u0007\u0012\u0006\u0010&\u001a\u00020$\u0012\u0006\u0010)\u001a\u00020'\u0012\u0006\u0010,\u001a\u00020*\u0012\u0006\u0010.\u001a\u00020\u0016\u0012\u0006\u00101\u001a\u00020/\u0012\u0006\u00104\u001a\u000202\u0012\u0006\u00107\u001a\u000205\u0012\u0006\u0010:\u001a\u000208\u0012\u0006\u0010=\u001a\u00020;¢\u0006\u0004\b>\u0010?J \u0010\u0006\u001a\u0004\u0018\u00010\u00052\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u0001H\u0002J\u001c\u0010\n\u001a\u0004\u0018\u00010\u00052\u0006\u0010\u0007\u001a\u00020\u00022\b\u0010\t\u001a\u0004\u0018\u00010\bH\u0002J\u001a\u0010\u000f\u001a\u00020\u000e2\u0006\u0010\u000b\u001a\u00020\u00022\b\u0010\r\u001a\u0004\u0018\u00010\fH\u0002J$\u0010\u0014\u001a\u00020\u00052\u0006\u0010\u0011\u001a\u00020\u00102\b\u0010\u0013\u001a\u0004\u0018\u00010\u00122\b\u0010\t\u001a\u0004\u0018\u00010\bH\u0002J\u0012\u0010\u0015\u001a\u00020\u00052\b\u0010\t\u001a\u0004\u0018\u00010\bH\u0002J\f\u0010\u0018\u001a\u00020\u0017*\u00020\u0016H\u0002J\b\u0010\u001a\u001a\u00020\u0019H\u0002J\b\u0010\u001b\u001a\u00020\u0012H\u0002J\u0012\u0010\u001c\u001a\u00020\u00052\b\u0010\t\u001a\u0004\u0018\u00010\bH\u0002J\u0012\u0010\u001e\u001a\u0004\u0018\u00010\f2\u0006\u0010\u001d\u001a\u00020\u0002H\u0002J\u0010\u0010 \u001a\u00020\u00172\u0006\u0010\u001f\u001a\u00020\u0002H\u0002J\u0014\u0010\"\u001a\u0004\u0018\u00010!2\b\u0010\t\u001a\u0004\u0018\u00010\bH\u0002J\u001a\u0010#\u001a\u0004\u0018\u00010\u00052\u0006\u0010\u001f\u001a\u00020\u00022\b\u0010\t\u001a\u0004\u0018\u00010\bR\u0014\u0010&\u001a\u00020$8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0015\u0010%R\u0014\u0010)\u001a\u00020'8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u001c\u0010(R\u0014\u0010,\u001a\u00020*8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0006\u0010+R\u0014\u0010.\u001a\u00020\u00168\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u001a\u0010-R\u0014\u00101\u001a\u00020/8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\"\u00100R\u0014\u00104\u001a\u0002028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b#\u00103R\u0014\u00107\u001a\u0002058\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u001e\u00106R\u0014\u0010:\u001a\u0002088\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\n\u00109R\u0014\u0010=\u001a\u00020;8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0014\u0010<¨\u0006@"}, d2 = {"Lrb4/b0;", "", "", "screenKey", "data", "Lma/q;", "c", "sectorName", "Landroid/os/Bundle;", "bundle", Image.TYPE_HIGH, "sectorId", "Lsinet/startup/inDriver/core/data/data/appSectors/AppSectorData;", "appSectorData", "Lco/g0;", Image.TYPE_MEDIUM, "Lsinet/startup/inDriver/core/data/data/appSectors/WebViewSectorData;", "sector", "Landroid/net/Uri;", "deeplink", "i", "a", "Lsd1/b;", "", "j", "Lov/w$n0;", "d", "l", "b", AppMeasurementSdk.ConditionalUserProperty.NAME, "g", "screen", "k", "Lna/d;", "e", "f", "Lxc1/b;", "Lxc1/b;", "appStructure", "Lxc1/l;", "Lxc1/l;", "user", "Lyd1/a;", "Lyd1/a;", "locationManager", "Lsd1/b;", "featureTogglesRepository", "Lep2/a;", "Lep2/a;", "taxDocumentsProvider", "Lqa2/h;", "Lqa2/h;", "incentivesProvider", "Ltv/f;", "Ltv/f;", "analytics", "Lw71/c;", "Lw71/c;", "telemetryLoggerFactory", "Lr60/e;", "Lr60/e;", "cityScreenApi", "<init>", "(Lxc1/b;Lxc1/l;Lyd1/a;Lsd1/b;Lep2/a;Lqa2/h;Ltv/f;Lw71/c;Lr60/e;)V", "app_gmsRelease"}, k = 1, mv = {1, 8, 0})
public final class b0 {
@NotNull
private final xc1.b appStructure;
@NotNull
private final xc1.l user;
@NotNull
private final yd1.a locationManager;
@NotNull
private final sd1.b featureTogglesRepository;
@NotNull
private final ep2.a taxDocumentsProvider;
@NotNull
private final qa2.h incentivesProvider;
@NotNull
private final tv.f analytics;
@NotNull
private final w71.c telemetryLoggerFactory;
@NotNull
private final r60.e cityScreenApi;
public b0(@NotNull xc1.b bVar, @NotNull xc1.l lVar, @NotNull yd1.a aVar, @NotNull sd1.b bVar2, @NotNull ep2.a aVar2, @NotNull qa2.h hVar, @NotNull tv.f fVar, @NotNull w71.c cVar, @NotNull r60.e eVar) {
this.appStructure = bVar;
this.user = lVar;
this.locationManager = aVar;
this.featureTogglesRepository = bVar2;
this.taxDocumentsProvider = aVar2;
this.incentivesProvider = hVar;
this.analytics = fVar;
this.telemetryLoggerFactory = cVar;
this.cityScreenApi = eVar;
}
private final ma.q a(Bundle bundle) {
boolean g15 = Intrinsics.g(this.user.B0(), "normal");
if (j(this.featureTogglesRepository) && g15) {
return d();
}
return new w.DriverAppCityScreen(bundle);
}
private final ma.q b(Bundle bundle) {
Uri uri;
if (bundle != null) {
uri = rd4.g.b(bundle);
} else {
uri = null;
}
return new w.DriverCityScreen(this.cityScreenApi, uri);
}
private final ma.q c(String screenKey, Object data) {
ma.q contractorCourierScreen;
Bundle bundle;
Bundle bundle2;
Bundle bundle3;
Bundle bundle4 = null;
Bundle bundle5 = null;
Bundle bundle6 = null;
Uri uri = null;
Uri uri2 = null;
Bundle bundle7 = null;
Uri uri3 = null;
if (Intrinsics.g(screenKey, ib4.c.APP_CITY.getCom.google.android.gms.measurement.api.AppMeasurementSdk.ConditionalUserProperty.VALUE java.lang.String())) {
if (data instanceof Bundle) {
bundle5 = (Bundle) data;
}
return a(bundle5);
}
if (Intrinsics.g(screenKey, ib4.c.CITY.getCom.google.android.gms.measurement.api.AppMeasurementSdk.ConditionalUserProperty.VALUE java.lang.String())) {
if (data instanceof Bundle) {
bundle6 = (Bundle) data;
}
return b(bundle6);
}
if (Intrinsics.g(screenKey, ib4.c.INTERCITY_V3.getCom.google.android.gms.measurement.api.AppMeasurementSdk.ConditionalUserProperty.VALUE java.lang.String())) {
if (data instanceof Bundle) {
bundle3 = (Bundle) data;
} else {
bundle3 = null;
}
if (bundle3 != null) {
uri = rd4.g.b(bundle3);
}
contractorCourierScreen = new w.DriverIntercityScreen(uri);
} else {
if (Intrinsics.g(screenKey, ib4.c.INTERCITY_CARPOOL.getCom.google.android.gms.measurement.api.AppMeasurementSdk.ConditionalUserProperty.VALUE java.lang.String())) {
return new w.DriverIntercityScreen(Uri.parse("indriver://open/driver/intercity3?route=rides"));
}
if (Intrinsics.g(screenKey, ib4.c.INTERCITY_CLASSIFIED.getCom.google.android.gms.measurement.api.AppMeasurementSdk.ConditionalUserProperty.VALUE java.lang.String())) {
if (data instanceof Bundle) {
bundle2 = (Bundle) data;
} else {
bundle2 = null;
}
if (bundle2 != null) {
uri2 = rd4.g.b(bundle2);
}
contractorCourierScreen = new w.DriverInterClassScreen(uri2);
} else {
if (Intrinsics.g(screenKey, ib4.c.CARGO.getCom.google.android.gms.measurement.api.AppMeasurementSdk.ConditionalUserProperty.VALUE java.lang.String())) {
if (data instanceof Bundle) {
bundle7 = (Bundle) data;
}
return new w.DriverCargoScreen(rd4.g.a(bundle7));
}
if (Intrinsics.g(screenKey, ib4.c.SUPER_SERVICE.getCom.google.android.gms.measurement.api.AppMeasurementSdk.ConditionalUserProperty.VALUE java.lang.String())) {
if (data instanceof Bundle) {
bundle = (Bundle) data;
} else {
bundle = null;
}
if (bundle != null) {
uri3 = rd4.g.b(bundle);
}
contractorCourierScreen = new w.SuperServiceScreen(uri3);
} else {
if (Intrinsics.g(screenKey, ib4.c.ACTIVITY_TIMER.getCom.google.android.gms.measurement.api.AppMeasurementSdk.ConditionalUserProperty.VALUE java.lang.String())) {
s52.c cVar = s52.c.f127268a;
String h15 = this.appStructure.h("driver", screenKey);
if (h15 == null) {
h15 = y0.e(u0.f85785a);
}
return cVar.d(h15);
}
if (!Intrinsics.g(screenKey, ib4.c.COURIER.getCom.google.android.gms.measurement.api.AppMeasurementSdk.ConditionalUserProperty.VALUE java.lang.String())) {
return null;
}
if (data instanceof Bundle) {
bundle4 = (Bundle) data;
}
contractorCourierScreen = new w.ContractorCourierScreen(bundle4);
}
}
}
return contractorCourierScreen;
}
private final w.MainWebViewUrlScreen d() {
return new w.MainWebViewUrlScreen(l().toString(), "Online registration", hu2.i.MENU, null, null, null, null, 120, null);
}
private final na.d e(Bundle bundle) {
String str;
String str2;
String str3;
HashMap l15;
HashMap<String, String> a15;
if (bundle != null && (a15 = rd4.g.a(bundle)) != null) {
str = a15.get("key");
} else {
str = null;
}
String str4 = rd4.g.a(bundle).get(AppMeasurementSdk.ConditionalUserProperty.NAME);
String str5 = "";
if (str4 == null) {
str2 = "";
} else {
str2 = str4;
}
String str6 = rd4.g.a(bundle).get("fileName");
if (str6 == null) {
str3 = "";
} else {
str3 = str6;
}
if (str == null || str.length() <= 0 || !Intrinsics.g(str, "taxReport")) {
return null;
}
String str7 = rd4.g.a(bundle).get("startPeriod");
if (str7 == null) {
str7 = "";
}
String str8 = rd4.g.a(bundle).get("endPeriod");
if (str8 != null) {
str5 = str8;
}
l15 = p029do.u0.l(co.w.a("startPeriod", str7), co.w.a("endPeriod", str5));
return new w.PdfScreen(new PdfParamsModel("gettaxreport", str2, l15, str3, "deeplink", null, 0, null, 192, null));
}
private final AppSectorData g(String name) {
return this.appStructure.f("driver", name);
}
private final ma.q h(String sectorName, Bundle bundle) {
Uri uri;
String str;
String str2;
boolean z15;
w.ChatScreen chatScreen;
String name;
AppSectorData g15 = g(sectorName);
if (g15 != null && (name = g15.getName()) != null) {
sectorName = name;
}
m(sectorName, g15);
String str3 = null;
if (bundle != null) {
uri = (Uri) bundle.getParcelable("ARG_DEEPLINK");
} else {
uri = null;
}
if (ib4.c.INSTANCE.a(sectorName)) {
return c(sectorName, bundle);
}
if (g15 instanceof WebViewSectorData) {
return i((WebViewSectorData) g15, uri, bundle);
}
if (Intrinsics.g(sectorName, "appsettings")) {
return w.j0.f109676c;
}
if (Intrinsics.g(sectorName, "support")) {
if (uri != null) {
chatScreen = new w.ChatScreen(uri);
} else {
if (bundle != null) {
str = bundle.getString("SUPPORT_FLOW_ARG");
} else {
str = null;
}
if (bundle != null) {
str2 = bundle.getString("SUPPORT_ORDER_ARG");
} else {
str2 = null;
}
if (bundle != null) {
str3 = bundle.getString("SUPPORT_VERTICAL_ARG");
}
String str4 = str3;
if (bundle != null) {
z15 = bundle.getBoolean("isOpenedFromPush");
} else {
z15 = false;
}
chatScreen = new w.ChatScreen(null, str, str2, str4, z15, 1, null);
}
return chatScreen;
}
if (Intrinsics.g(sectorName, ib4.b.PDF_SCREEN.getCom.google.android.gms.measurement.api.AppMeasurementSdk.ConditionalUserProperty.VALUE java.lang.String())) {
return e(bundle);
}
if (Intrinsics.g(sectorName, ib4.b.TAX_DOCUMENT.getCom.google.android.gms.measurement.api.AppMeasurementSdk.ConditionalUserProperty.VALUE java.lang.String())) {
return this.taxDocumentsProvider.b(rd4.g.a(bundle));
}
if (Intrinsics.g(sectorName, ib4.b.INCENTIVES.getCom.google.android.gms.measurement.api.AppMeasurementSdk.ConditionalUserProperty.VALUE java.lang.String())) {
return this.incentivesProvider.h(rd4.g.a(bundle));
}
if (!Intrinsics.g(sectorName, ib4.b.BRAIN_TREE_ADD_CART.getCom.google.android.gms.measurement.api.AppMeasurementSdk.ConditionalUserProperty.VALUE java.lang.String()) || !bg2.e.f19833a.a(this.user.y().getP2pProvider())) {
return null;
}
return new w.PaymentMethodsScreen(b.EnumC3263b.ADD_CARD, re2.c.DRIVER_DEEPLINK.getCom.google.android.gms.measurement.api.AppMeasurementSdk.ConditionalUserProperty.VALUE java.lang.String(), false, true, 4, null);
}
private final ma.q i(WebViewSectorData sector, Uri deeplink, Bundle bundle) {
String formUrl;
if (Intrinsics.g(sector.getName(), "wallet")) {
if (deeplink == null) {
this.analytics.a0();
}
return new FlowScreen(false, 1, null);
}
Location myLocation = this.locationManager.getMyLocation();
String title = sector.getTitle();
if (deeplink == null || (formUrl = deeplink.getQueryParameter("redirect_url")) == null) {
formUrl = sector.formUrl(bundle, this.user, myLocation);
}
return new w.MainWebViewUrlScreen(formUrl, title, null, Boolean.valueOf(sector.isTrackEnabled()), sector.getName(), null, null, 100, null);
}
private final boolean j(sd1.b bVar) {
Object obj;
Object obj2;
Object obj3;
List<FeatureToggleVariation> g15 = bVar.g(qd1.d.f117801a.v());
if (g15 == null) {
return false;
}
Iterator<T> it = g15.iterator();
while (true) {
obj = null;
if (it.hasNext()) {
obj2 = it.next();
if (Intrinsics.g(((FeatureToggleVariation) obj2).getName(), "registration_version")) {
break;
}
} else {
obj2 = null;
break;
}
}
FeatureToggleVariation featureToggleVariation = (FeatureToggleVariation) obj2;
if (featureToggleVariation != null) {
obj3 = featureToggleVariation.getValue();
} else {
obj3 = null;
}
if (obj3 instanceof Integer) {
obj = obj3;
}
Integer num = (Integer) obj;
if (num == null || num.intValue() != 1) {
return false;
}
return true;
}
private final boolean k(String screen) {
if (g(screen) == null && !ib4.b.INSTANCE.a(screen)) {
return false;
}
return true;
}
private final Uri l() {
return Uri.parse("https://watchdocs.indriverapp.com/webview/v1").buildUpon().appendQueryParameter("locale", n91.z.f(Locale.getDefault())).appendQueryParameter(OrdersData.SCHEME_PHONE, this.user.l0()).appendQueryParameter("service", ib4.c.APP_CITY.getCom.google.android.gms.measurement.api.AppMeasurementSdk.ConditionalUserProperty.VALUE java.lang.String()).appendQueryParameter("token", this.user.D0()).appendQueryParameter("custom_navbar", "1").build();
}
private final void m(String str, AppSectorData appSectorData) {
String str2;
z71.t tVar = (z71.t) this.telemetryLoggerFactory.a(w71.d.UserPath);
if (appSectorData != null) {
str2 = appSectorData.getTitle();
} else {
str2 = null;
}
if (str2 == null) {
str2 = "";
}
tVar.H(str2, str);
}
public final ma.q f(@NotNull String screen, Bundle bundle) {
if (k(screen)) {
return h(screen, bundle);
}
return null;
}
}