Warkop v5.73.0版本的 MD5 值为:a4330ec2d6f5e146f59fc7622f3cdb45
以下内容为反编译后的 b.java 源代码,内容仅作参考
package sinet.startup.inDriver.feature.liveness_detection.ui.onboarding;
import co.g0;
import java.util.Locale;
import java.util.concurrent.Callable;
import kotlin.Metadata;
import kotlin.jvm.internal.q;
import kotlin.jvm.internal.u;
import lb2.a;
import n91.z;
import org.jetbrains.annotations.NotNull;
import qb2.VerificationScreen;
import rb2.LivenessFlowState;
import rb2.OpenWebViewActivity;
import rb2.ShowToast;
import rb2.i;
import rb2.k;
import rb2.m;
import s71.h;
import sb2.o;
import sinet.startup.inDriver.feature.liveness_detection.data.VerificationCheckCountResponse;
import vm.x;
import xc1.l;
@Metadata(d1 = {"\u0000\u0098\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0001\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\b\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u0015\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u000b\b\u0000\u0018\u0000 R2\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0002STBk\b\u0007\u0012\u0006\u0010!\u001a\u00020\u001e\u0012\u0006\u0010%\u001a\u00020\"\u0012\u0006\u0010)\u001a\u00020&\u0012\u0006\u0010-\u001a\u00020*\u0012\u0006\u00101\u001a\u00020.\u0012\u0006\u00105\u001a\u000202\u0012\u0006\u00109\u001a\u000206\u0012\u0006\u0010=\u001a\u00020:\u0012\u0006\u0010A\u001a\u00020>\u0012\u0006\u0010E\u001a\u00020B\u0012\u0006\u0010I\u001a\u00020F\u0012\b\b\u0001\u0010O\u001a\u00020J¢\u0006\u0004\bP\u0010QJ\b\u0010\u0004\u001a\u00020\u0003H\u0002J\u0010\u0010\b\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u0005H\u0002J\b\u0010\t\u001a\u00020\u0007H\u0002J\b\u0010\n\u001a\u00020\u0007H\u0002J\b\u0010\u000b\u001a\u00020\u0007H\u0002J\b\u0010\r\u001a\u00020\fH\u0002J\b\u0010\u000e\u001a\u00020\fH\u0002J\b\u0010\u000f\u001a\u00020\fH\u0002J\u0010\u0010\u0010\u001a\u00020\u00032\u0006\u0010\u0006\u001a\u00020\u0005H\u0002J\u0010\u0010\u0011\u001a\u00020\u00032\u0006\u0010\u0006\u001a\u00020\u0005H\u0002J\u0006\u0010\u0012\u001a\u00020\u0007J\u0006\u0010\u0013\u001a\u00020\u0007J\u0006\u0010\u0014\u001a\u00020\u0007J\u000e\u0010\u0017\u001a\u00020\u00072\u0006\u0010\u0016\u001a\u00020\u0015J\u0016\u0010\u001b\u001a\u00020\u00072\u0006\u0010\u0018\u001a\u00020\u00152\u0006\u0010\u001a\u001a\u00020\u0019J\u0006\u0010\u001c\u001a\u00020\u0007J\u0006\u0010\u001d\u001a\u00020\u0007R\u0014\u0010!\u001a\u00020\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u001f\u0010 R\u0014\u0010%\u001a\u00020\"8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b#\u0010$R\u0014\u0010)\u001a\u00020&8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b'\u0010(R\u0014\u0010-\u001a\u00020*8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b+\u0010,R\u0014\u00101\u001a\u00020.8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b/\u00100R\u0014\u00105\u001a\u0002028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b3\u00104R\u0014\u00109\u001a\u0002068\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b7\u00108R\u0014\u0010=\u001a\u00020:8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b;\u0010<R\u0014\u0010A\u001a\u00020>8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b?\u0010@R\u0014\u0010E\u001a\u00020B8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bC\u0010DR\u0014\u0010I\u001a\u00020F8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bG\u0010HR\u0017\u0010O\u001a\u00020J8\u0006¢\u0006\f\n\u0004\bK\u0010L\u001a\u0004\bM\u0010N¨\u0006U"}, d2 = {"Lsinet/startup/inDriver/feature/liveness_detection/ui/onboarding/b;", "Lt91/a;", "", "", "h0", "Lrb2/c;", "flowState", "Lco/g0;", "o0", "d0", "l0", "x0", "", "j0", "k0", "i0", "p0", "c0", "w0", "s0", "u0", "", "cameraPermission", "v0", "requestCode", "", "grantResults", "t0", "q0", "r0", "Lqb2/b;", "N", "Lqb2/b;", "flowRouter", "Lrb2/b;", "O", "Lrb2/b;", "controller", "Lxc1/l;", "P", "Lxc1/l;", "user", "Ls71/e;", "Q", "Ls71/e;", "analyticsManager", "Lvb2/e;", "R", "Lvb2/e;", "livenessResProvider", "Lw81/a;", "S", "Lw81/a;", "navigationResultDispatcher", "Lvb2/a;", "T", "Lvb2/a;", "accelerometerSensor", "Lmb2/c;", "U", "Lmb2/c;", "repository", "Lf91/c;", "V", "Lf91/c;", "webViewDeeplink", "Lsb2/o;", "W", "Lsb2/o;", "onboardingManager", "Lsd1/b;", "X", "Lsd1/b;", "featureTogglesRepository", "Lmb2/d;", "Y", "Lmb2/d;", "getOrderType", "()Lmb2/d;", "orderType", "<init>", "(Lqb2/b;Lrb2/b;Lxc1/l;Ls71/e;Lvb2/e;Lw81/a;Lvb2/a;Lmb2/c;Lf91/c;Lsb2/o;Lsd1/b;Lmb2/d;)V", "Companion", "b", "c", "liveness-detection_release"}, k = 1, mv = {1, 8, 0})
public final class b extends t91.a {
@NotNull
private final qb2.b flowRouter;
@NotNull
private final rb2.b controller;
@NotNull
private final l user;
@NotNull
private final s71.e analyticsManager;
@NotNull
private final vb2.e livenessResProvider;
@NotNull
private final w81.a navigationResultDispatcher;
@NotNull
private final vb2.a accelerometerSensor;
@NotNull
private final mb2.c repository;
@NotNull
private final f91.c webViewDeeplink;
@NotNull
private final o onboardingManager;
@NotNull
private final sd1.b featureTogglesRepository;
@NotNull
private final mb2.d orderType;
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
class a extends q implements qo.l<LivenessFlowState, g0> {
a(Object obj) {
super(1, obj, b.class, "handleFlowState", "handleFlowState(Lsinet/startup/inDriver/feature/liveness_detection/ui/LivenessFlowState;)V", 0);
}
public final void b(@NotNull LivenessFlowState livenessFlowState) {
((b) this.receiver).o0(livenessFlowState);
}
@Override
public g0 invoke(LivenessFlowState livenessFlowState) {
b(livenessFlowState);
return g0.f25238a;
}
}
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\bg\u0018\u00002\u00020\u0001J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H&¨\u0006\u0006"}, d2 = {"Lsinet/startup/inDriver/feature/liveness_detection/ui/onboarding/b$c;", "", "Lmb2/d;", "orderType", "Lsinet/startup/inDriver/feature/liveness_detection/ui/onboarding/b;", "a", "liveness-detection_release"}, k = 1, mv = {1, 8, 0})
public interface c {
@NotNull
b a(@NotNull mb2.d orderType);
}
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0010\u000b\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 = {"", "kotlin.jvm.PlatformType", "isLicenseValid", "Lco/g0;", "a", "(Ljava/lang/Boolean;)V"}, k = 3, mv = {1, 8, 0})
public static final class d extends u implements qo.l<Boolean, g0> {
d() {
super(1);
}
public final void a(Boolean bool) {
if (!bool.booleanValue()) {
b.this.x0();
} else {
b.this.controller.c();
}
}
@Override
public g0 invoke(Boolean bool) {
a(bool);
return g0.f25238a;
}
}
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0010\u0003\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/Throwable;)V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
public static final class e extends u implements qo.l<Throwable, g0> {
e() {
super(1);
}
@Override
public g0 invoke(Throwable th4) {
invoke2(th4);
return g0.f25238a;
}
public final void invoke2(Throwable th4) {
ud4.a.INSTANCE.d(th4);
b.this.x0();
}
}
@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 = {"Lsinet/startup/inDriver/feature/liveness_detection/data/VerificationCheckCountResponse;", "kotlin.jvm.PlatformType", "response", "Lco/g0;", "a", "(Lsinet/startup/inDriver/feature/liveness_detection/data/VerificationCheckCountResponse;)V"}, k = 3, mv = {1, 8, 0})
public static final class f extends u implements qo.l<VerificationCheckCountResponse, g0> {
f() {
super(1);
}
public final void a(VerificationCheckCountResponse verificationCheckCountResponse) {
int i15;
rb2.b bVar = b.this.controller;
Integer verificationCheckCount = verificationCheckCountResponse.getVerificationCheckCount();
if (verificationCheckCount != null) {
i15 = verificationCheckCount.intValue();
} else {
i15 = 0;
}
bVar.g(i15);
}
@Override
public g0 invoke(VerificationCheckCountResponse verificationCheckCountResponse) {
a(verificationCheckCountResponse);
return g0.f25238a;
}
}
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0010\u0003\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/Throwable;)V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
public static final class g extends u implements qo.l<Throwable, g0> {
g() {
super(1);
}
@Override
public g0 invoke(Throwable th4) {
invoke2(th4);
return g0.f25238a;
}
public final void invoke2(Throwable th4) {
ud4.a.INSTANCE.d(th4);
b.this.controller.g(0);
}
}
public b(@NotNull qb2.b bVar, @NotNull rb2.b bVar2, @NotNull l lVar, @NotNull s71.e eVar, @NotNull vb2.e eVar2, @NotNull w81.a aVar, @NotNull vb2.a aVar2, @NotNull mb2.c cVar, @NotNull f91.c cVar2, @NotNull o oVar, @NotNull sd1.b bVar3, @NotNull mb2.d dVar) {
super(null, 1, null);
this.flowRouter = bVar;
this.controller = bVar2;
this.user = lVar;
this.analyticsManager = eVar;
this.livenessResProvider = eVar2;
this.navigationResultDispatcher = aVar;
this.accelerometerSensor = aVar2;
this.repository = cVar;
this.webViewDeeplink = cVar2;
this.onboardingManager = oVar;
this.featureTogglesRepository = bVar3;
this.orderType = dVar;
d0();
l0();
eVar.k(v71.b.S_PASSENGER_ONBOARDING_FACECHECK);
eVar.j(h.S_PASSENGER_ONBOARDING_FACECHECK);
vm.q<LivenessFlowState> i15 = bVar2.a().Y().i1(xm.a.c());
final a aVar3 = new a(this);
R(i15.P1(new an.f() {
@Override
public final void accept(Object obj) {
sinet.startup.inDriver.feature.liveness_detection.ui.onboarding.b.Y(qo.l.this, obj);
}
}));
}
public static final void Y(qo.l lVar, Object obj) {
lVar.invoke(obj);
}
private final boolean c0(LivenessFlowState flowState) {
if (flowState.getIsLicenseChecked() && flowState.getIsCameraPermissionGranted() && flowState.getIsStartButtonClicked() && flowState.getVerificationCheckCount() != -1) {
return true;
}
return false;
}
private final void d0() {
x O = x.H(new Callable() {
@Override
public final Object call() {
Boolean e05;
e05 = sinet.startup.inDriver.feature.liveness_detection.ui.onboarding.b.e0(sinet.startup.inDriver.feature.liveness_detection.ui.onboarding.b.this);
return e05;
}
}).c0(vn.a.c()).O(xm.a.c());
final d dVar = new d();
an.f fVar = new an.f() {
@Override
public final void accept(Object obj) {
sinet.startup.inDriver.feature.liveness_detection.ui.onboarding.b.f0(qo.l.this, obj);
}
};
final e eVar = new e();
R(O.a0(fVar, new an.f() {
@Override
public final void accept(Object obj) {
sinet.startup.inDriver.feature.liveness_detection.ui.onboarding.b.g0(qo.l.this, obj);
}
}));
}
public static final Boolean e0(b bVar) {
return Boolean.valueOf(bVar.onboardingManager.a());
}
public static final void f0(qo.l lVar, Object obj) {
lVar.invoke(obj);
}
public static final void g0(qo.l lVar, Object obj) {
lVar.invoke(obj);
}
private final boolean h0() {
return this.accelerometerSensor.a();
}
private final String i0() {
if (this.user.C().length() == 2) {
return this.user.C().toLowerCase(Locale.ENGLISH);
}
return "US";
}
private final String j0() {
String a15 = this.webViewDeeplink.a("http://indriver.com/mobile/page/offer/" + z.b(Locale.getDefault().getLanguage()) + "/" + i0());
if (a15 != null) {
return a15;
}
throw new IllegalArgumentException("Required value was null.".toString());
}
private final String k0() {
String a15 = this.webViewDeeplink.a("http://indriver.com/mobile/page/livenessnotice/" + z.b(Locale.getDefault().getLanguage()));
if (a15 != null) {
return a15;
}
throw new IllegalArgumentException("Required value was null.".toString());
}
private final void l0() {
x<VerificationCheckCountResponse> O = this.repository.a().c0(vn.a.c()).O(xm.a.c());
final f fVar = new f();
an.f<? super VerificationCheckCountResponse> fVar2 = new an.f() {
@Override
public final void accept(Object obj) {
sinet.startup.inDriver.feature.liveness_detection.ui.onboarding.b.m0(qo.l.this, obj);
}
};
final g gVar = new g();
R(O.a0(fVar2, new an.f() {
@Override
public final void accept(Object obj) {
sinet.startup.inDriver.feature.liveness_detection.ui.onboarding.b.n0(qo.l.this, obj);
}
}));
}
public static final void m0(qo.l lVar, Object obj) {
lVar.invoke(obj);
}
public static final void n0(qo.l lVar, Object obj) {
lVar.invoke(obj);
}
public final void o0(LivenessFlowState livenessFlowState) {
if (p0(livenessFlowState)) {
this.controller.d(true);
} else if (c0(livenessFlowState)) {
this.controller.d(false);
this.controller.f(false);
this.flowRouter.h(new VerificationScreen(livenessFlowState.getVerificationCheckCount(), this.orderType));
}
}
private final boolean p0(LivenessFlowState flowState) {
if (!flowState.getIsLicenseChecked() && flowState.getIsCameraPermissionGranted() && flowState.getVerificationCheckCount() == -1) {
return true;
}
return false;
}
public final void x0() {
O().b(rb2.l.f122749a);
}
public final void q0() {
this.analyticsManager.k(v71.b.C_PASSENGER_VERIFICATION_CANCEL);
this.analyticsManager.j(h.C_PASSENGER_VERIFICATION_CANCEL);
if (this.orderType == mb2.d.CITY_NO) {
if (td1.c.E1(this.featureTogglesRepository)) {
this.navigationResultDispatcher.b(w81.b.LIVENESS_RESULT, a.C2513a.f89963a);
return;
} else {
this.navigationResultDispatcher.b(w81.b.ID_DOC_CHECK_RESULT, a.C2513a.f89963a);
return;
}
}
this.navigationResultDispatcher.b(w81.b.LIVENESS_RESULT, a.C2513a.f89963a);
}
public final void r0() {
O().b(rb2.g.f122744a);
O().b(new ShowToast(this.livenessResProvider.c(w81.l.f167563ga)));
}
public final void s0() {
O().b(new OpenWebViewActivity(k0()));
}
public final void t0(int i15, @NotNull int[] iArr) {
boolean z15;
if (i15 == 100) {
if (iArr.length == 0) {
z15 = true;
} else {
z15 = false;
}
if ((!z15) && iArr[0] == 0) {
this.controller.e();
this.controller.f(true);
} else {
O().b(m.f122750a);
}
}
}
public final void u0() {
d0();
l0();
}
public final void v0(int i15) {
if (h0()) {
this.analyticsManager.k(v71.b.C_PASSENGER_PERMISSION_REQUEST);
this.analyticsManager.j(h.C_PASSENGER_PERMISSION_REQUEST);
if (i15 == -1) {
O().b(i.f122746a);
return;
} else {
this.controller.e();
this.controller.f(true);
return;
}
}
O().b(k.f122748a);
}
public final void w0() {
O().b(new OpenWebViewActivity(j0()));
}
}