package y31; import a23.h4; import a23.o3; import a23.u2; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.view.View; import com.alibaba.wireless.security.open.nocaptcha.INoCaptchaComponent; import com.meizu.cloud.pushsdk.notification.model.AdvanceSetting; import com.uber.autodispose.y; import com.xingin.android.xhscomm.router.RouterBuilder; import com.xingin.android.xhscomm.router.Routers; import com.xingin.login.R$string; import com.xingin.pages.Pages; import com.xingin.register.halfonboarding.FloatingOnboardingActivity; import d31.d0; import d31.e0; import d31.f0; import d31.g0; import d31.h0; import d31.i0; import d31.k0; import d31.s; import d31.t; import d31.x; import dw2.r; import hu2.f; import ja.b1; import ja.o1; import java.lang.ref.WeakReference; import java.util.concurrent.TimeUnit; import kotlin.Metadata; import kotlin.Unit; import kotlin.collections.ArraysKt___ArraysKt; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; import kotlin.jvm.functions.Function2; import kotlin.jvm.internal.FunctionReferenceImpl; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.Lambda; import u31.n; import u31.n0; @Metadata(bv = {}, d1 = {"\u0000P\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\b\u0018\u00002\u00020\u0001:\u0004/012B\u000f\u0012\u0006\u0010,\u001a\u00020+¢\u0006\u0004\b-\u0010.J\b\u0010\u0003\u001a\u00020\u0002H\u0002J\u001a\u0010\b\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u00042\b\b\u0002\u0010\u0007\u001a\u00020\u0006H\u0002J\b\u0010\t\u001a\u00020\u0002H\u0002J\b\u0010\n\u001a\u00020\u0002H\u0002J\b\u0010\u000b\u001a\u00020\u0002H\u0002J\b\u0010\f\u001a\u00020\u0002H\u0002J\b\u0010\r\u001a\u00020\u0002H\u0002J\b\u0010\u000e\u001a\u00020\u0002H\u0002J\u0018\u0010\u0011\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0010\u001a\u00020\u000fH\u0002J \u0010\u0013\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0010\u001a\u00020\u000f2\u0006\u0010\u0012\u001a\u00020\u0006H\u0002J\u0018\u0010\u0015\u001a\u00020\u00022\u0006\u0010\u0014\u001a\u00020\u00042\u0006\u0010\u0010\u001a\u00020\u000fH\u0002J\b\u0010\u0016\u001a\u00020\u0002H\u0002J\b\u0010\u0017\u001a\u00020\u0002H\u0002J\b\u0010\u0018\u001a\u00020\u0002H\u0002J\u0010\u0010\u001b\u001a\u00020\u00022\u0006\u0010\u001a\u001a\u00020\u0019H\u0002J\b\u0010\u001c\u001a\u00020\u0002H\u0002J\b\u0010\u001d\u001a\u00020\u0002H\u0002J\b\u0010\u001e\u001a\u00020\u0002H\u0002J\u001c\u0010\"\u001a\u00020\u00022\u0006\u0010 \u001a\u00020\u001f2\n\b\u0002\u0010!\u001a\u0004\u0018\u00010\u0019H\u0002J\u001c\u0010&\u001a\u00020\u0002\"\u0004\b\u0000\u0010#2\f\u0010%\u001a\b\u0012\u0004\u0012\u00028\u00000$H\u0016J\u0006\u0010(\u001a\u00020'J\b\u0010*\u001a\u0004\u0018\u00010)¨\u00063"}, d2 = {"Ly31/h;", "Lhu2/e;", "", com.alipay.sdk.widget.c.f18364b, "Lc50/a;", "socialType", "", "needCheck", "l1", "p1", "j1", INoCaptchaComponent.f17802y1, INoCaptchaComponent.f17800x1, "s1", "g1", "Lb50/a;", "account", "b1", "loginIgnoreCheck", "n1", "type", "o1", "c1", "k1", "w1", "", "msg", "u1", "f1", "t1", "z1", "Landroid/content/Context;", "context", "loginType", "h1", "T", "Lhu2/a;", "action", "N0", "Landroid/app/Activity;", "d1", "Landroid/view/View;", "e1", "Lz31/e;", "welcomeView", "<init>", "(Lz31/e;)V", "a", "b", "c", "d", "login_library_release"}, k = 1, mv = {1, 6, 0}) /* compiled from: WelcomePresenter.kt */ public final class h extends hu2.e { /* renamed from: b reason: collision with root package name */ public final z31.e f156612b; /* renamed from: c reason: collision with root package name */ public final i f156613c; /* renamed from: d reason: collision with root package name */ public boolean f156614d; /* renamed from: e reason: collision with root package name */ public boolean f156615e; /* renamed from: f reason: collision with root package name */ public boolean f156616f; /* renamed from: g reason: collision with root package name */ public boolean f156617g; @Metadata(bv = {}, d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0003\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0002\u0018\u00002\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00030\u0001B\u000f\u0012\u0006\u0010\u0007\u001a\u00020\u0006¢\u0006\u0004\b\b\u0010\tJ\u0011\u0010\u0005\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0002H\u0002¨\u0006\n"}, d2 = {"Ly31/h$a;", "Lkotlin/Function1;", "", "", "e", "a", "Ly31/h;", "welcomePresenter", "<init>", "(Ly31/h;)V", "login_library_release"}, k = 1, mv = {1, 6, 0}) /* compiled from: WelcomePresenter.kt */ public static final class a implements Function1<Throwable, Unit> { /* renamed from: a reason: collision with root package name */ public final WeakReference<h> f156618a; public a(h hVar) { Intrinsics.checkNotNullParameter(hVar, "welcomePresenter"); this.f156618a = new WeakReference<>(hVar); } public void a(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "e"); h hVar = this.f156618a.get(); if (hVar != null) { hVar.j1(); f41.e.f75795a.f(th3); } } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { a(th3); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0002\u0018\u00002\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00030\u0001B\u000f\u0012\u0006\u0010\u0007\u001a\u00020\u0006¢\u0006\u0004\b\b\u0010\tJ\u0011\u0010\u0005\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0002H\u0002¨\u0006\n"}, d2 = {"Ly31/h$b;", "Lkotlin/Function1;", "", "", "status", "a", "Ly31/h;", "welcomePresenter", "<init>", "(Ly31/h;)V", "login_library_release"}, k = 1, mv = {1, 6, 0}) /* compiled from: WelcomePresenter.kt */ public static final class b implements Function1<Integer, Unit> { /* renamed from: a reason: collision with root package name */ public final WeakReference<h> f156619a; public b(h hVar) { Intrinsics.checkNotNullParameter(hVar, "welcomePresenter"); this.f156619a = new WeakReference<>(hVar); } public void a(int i10) { h hVar; if (i10 == 4 && (hVar = this.f156619a.get()) != null) { hVar.j1(); } } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Integer num) { a(num.intValue()); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0003\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0002\u0018\u00002\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00030\u0001B\u000f\u0012\u0006\u0010\u0007\u001a\u00020\u0006¢\u0006\u0004\b\b\u0010\tJ\u0011\u0010\u0005\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0002H\u0002¨\u0006\n"}, d2 = {"Ly31/h$c;", "Lkotlin/Function1;", "", "", "e", "a", "Ly31/h;", "welcomePresenter", "<init>", "(Ly31/h;)V", "login_library_release"}, k = 1, mv = {1, 6, 0}) /* compiled from: WelcomePresenter.kt */ public static final class c implements Function1<Throwable, Unit> { /* renamed from: a reason: collision with root package name */ public final WeakReference<h> f156620a; public c(h hVar) { Intrinsics.checkNotNullParameter(hVar, "welcomePresenter"); this.f156620a = new WeakReference<>(hVar); } public void a(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "e"); h hVar = this.f156620a.get(); if (hVar != null) { hVar.z1(); f41.e.f75795a.f(th3); } } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { a(th3); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0002\u0018\u00002\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00030\u0001B\u000f\u0012\u0006\u0010\u0007\u001a\u00020\u0006¢\u0006\u0004\b\b\u0010\tJ\u0011\u0010\u0005\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0002H\u0002¨\u0006\n"}, d2 = {"Ly31/h$d;", "Lkotlin/Function1;", "", "", "status", "a", "Ly31/h;", "welcomePresenter", "<init>", "(Ly31/h;)V", "login_library_release"}, k = 1, mv = {1, 6, 0}) /* compiled from: WelcomePresenter.kt */ public static final class d implements Function1<Integer, Unit> { /* renamed from: a reason: collision with root package name */ public final WeakReference<h> f156621a; public d(h hVar) { Intrinsics.checkNotNullParameter(hVar, "welcomePresenter"); this.f156621a = new WeakReference<>(hVar); } public void a(int i10) { h hVar; if (i10 == 4 && (hVar = this.f156621a.get()) != null) { hVar.z1(); } } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Integer num) { a(num.intValue()); return Unit.INSTANCE; } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: WelcomePresenter.kt */ public /* synthetic */ class e { /* renamed from: a reason: collision with root package name */ public static final /* synthetic */ int[] f156622a; static { int[] iArr = new int[c50.a.values().length]; iArr[c50.a.WEIXIN.ordinal()] = 1; iArr[c50.a.WEIBO.ordinal()] = 2; iArr[c50.a.QQ.ordinal()] = 3; iArr[c50.a.HUAWEI.ordinal()] = 4; f156622a = iArr; } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: WelcomePresenter.kt */ public /* synthetic */ class f extends FunctionReferenceImpl implements Function1<String, Unit> { public f(Object obj) { super(1, obj, h.class, "showProgress", "showProgress(Ljava/lang/String;)V", 0); } public final void a(String str) { Intrinsics.checkNotNullParameter(str, "p0"); ((h) this.receiver).u1(str); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(String str) { a(str); return Unit.INSTANCE; } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: WelcomePresenter.kt */ public /* synthetic */ class g extends FunctionReferenceImpl implements Function0<Unit> { public g(Object obj) { super(0, obj, h.class, "hideProgress", "hideProgress()V", 0); } @Override // kotlin.jvm.functions.Function0 public final void invoke() { ((h) this.receiver).f1(); } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lq31/k;", "lastCheckInfo", "", "a", "(Lq31/k;)V"}, k = 3, mv = {1, 6, 0}) /* renamed from: y31.h$h reason: collision with other inner class name */ /* compiled from: WelcomePresenter.kt */ public static final class C2550h extends Lambda implements Function1<q31.k, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ h f156623a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ c50.a f156624b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ b50.a f156625c; @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* renamed from: y31.h$h$a */ /* compiled from: WelcomePresenter.kt */ public static final class a extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ h f156626a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(h hVar) { super(0); this.f156626a = hVar; } @Override // kotlin.jvm.functions.Function0 public final void invoke() { d41.a.f67117a.V(this.f156626a.f156612b.getPageCode()); } } @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* renamed from: y31.h$h$b */ /* compiled from: WelcomePresenter.kt */ public static final class b extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ h f156627a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ c50.a f156628b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ b50.a f156629c; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public b(h hVar, c50.a aVar, b50.a aVar2) { super(0); this.f156627a = hVar; this.f156628b = aVar; this.f156629c = aVar2; } @Override // kotlin.jvm.functions.Function0 public final void invoke() { this.f156627a.n1(this.f156628b, this.f156629c, true); d41.a.f67117a.U(this.f156627a.f156612b.getPageCode(), true); } } @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* renamed from: y31.h$h$c */ /* compiled from: WelcomePresenter.kt */ public static final class c extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ h f156630a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public c(h hVar) { super(0); this.f156630a = hVar; } @Override // kotlin.jvm.functions.Function0 public final void invoke() { this.f156630a.v1(); d41.a.f67117a.U(this.f156630a.f156612b.getPageCode(), false); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public C2550h(h hVar, c50.a aVar, b50.a aVar2) { super(1); this.f156623a = hVar; this.f156624b = aVar; this.f156625c = aVar2; } public final void a(q31.k kVar) { Intrinsics.checkNotNullParameter(kVar, "lastCheckInfo"); if (kVar.getSame()) { this.f156623a.n1(this.f156624b, this.f156625c, true); } else { new x10.c(this.f156623a.f156612b.getActivity(), f41.c.r(R$string.cnt, false, 2, null), kVar.getText(), f41.c.r(R$string.cj_, false, 2, null), f41.c.r(R$string.cj9, false, 2, null), new a(this.f156623a), new b(this.f156623a, this.f156624b, this.f156625c), new c(this.f156623a)).show(); } } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(q31.k kVar) { a(kVar); return Unit.INSTANCE; } } @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: WelcomePresenter.kt */ public static final class i extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ h f156631a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public i(h hVar) { super(0); this.f156631a = hVar; } @Override // kotlin.jvm.functions.Function0 public final void invoke() { this.f156631a.v1(); } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: WelcomePresenter.kt */ public /* synthetic */ class j extends FunctionReferenceImpl implements Function1<String, Unit> { public j(Object obj) { super(1, obj, h.class, "showProgress", "showProgress(Ljava/lang/String;)V", 0); } public final void a(String str) { Intrinsics.checkNotNullParameter(str, "p0"); ((h) this.receiver).u1(str); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(String str) { a(str); return Unit.INSTANCE; } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: WelcomePresenter.kt */ public /* synthetic */ class k extends FunctionReferenceImpl implements Function0<Unit> { public k(Object obj) { super(0, obj, h.class, "hideProgress", "hideProgress()V", 0); } @Override // kotlin.jvm.functions.Function0 public final void invoke() { ((h) this.receiver).f1(); } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: WelcomePresenter.kt */ public /* synthetic */ class l extends FunctionReferenceImpl implements Function2<c50.a, b50.a, Unit> { public l(Object obj) { super(2, obj, h.class, "onLoginWithSuccess", "onLoginWithSuccess(Lcom/xingin/auth/constant/SocialType;Lcom/xingin/auth/common/models/BindingAccount;)V", 0); } public final void a(c50.a aVar, b50.a aVar2) { Intrinsics.checkNotNullParameter(aVar, "p0"); Intrinsics.checkNotNullParameter(aVar2, "p1"); ((h) this.receiver).o1(aVar, aVar2); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ @Override // kotlin.jvm.functions.Function2 public /* bridge */ /* synthetic */ Unit invoke(c50.a aVar, b50.a aVar2) { a(aVar, aVar2); return Unit.INSTANCE; } } @Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0003\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: WelcomePresenter.kt */ public static final class m extends Lambda implements Function1<Throwable, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ h f156632a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public m(h hVar) { super(1); this.f156632a = hVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, AdvanceSetting.NETWORK_TYPE); if (this.f156632a.f156614d) { this.f156632a.v1(); } d41.a.f67117a.J(false); } } public h(z31.e eVar) { Intrinsics.checkNotNullParameter(eVar, "welcomeView"); this.f156612b = eVar; this.f156613c = new i(eVar.getActivity(), this); } public static /* synthetic */ void i1(h hVar, Context context, String str, int i10, Object obj) { if ((i10 & 2) != 0) { str = null; } hVar.h1(context, str); } public static /* synthetic */ void m1(h hVar, c50.a aVar, boolean z14, int i10, Object obj) { if ((i10 & 2) != 0) { z14 = false; } hVar.l1(aVar, z14); } public static final void q1(b bVar, Integer num) { Intrinsics.checkNotNullParameter(bVar, "$tmp0"); bVar.invoke(num); } public static final void r1(a aVar, Throwable th3) { Intrinsics.checkNotNullParameter(aVar, "$tmp0"); aVar.invoke(th3); } @Override // hu2.e public <T> void N0(hu2.a<T> aVar) { Intrinsics.checkNotNullParameter(aVar, "action"); if (aVar instanceof d31.d) { d31.d dVar = (d31.d) aVar; b1(dVar.b(), dVar.a()); } else if (aVar instanceof e0) { this.f156612b.h(((e0) aVar).getMsg()); } else if (aVar instanceof d31.m) { this.f156612b.b(); } else if (aVar instanceof t) { p1(); } else if (aVar instanceof s) { c1(); } else if (aVar instanceof d31.g) { k1(); } else if (aVar instanceof x) { this.f156612b.V4(((x) aVar).a()); } else if (aVar instanceof h0) { m1(this, ((h0) aVar).a(), false, 2, null); } else if (aVar instanceof f0) { l1(((f0) aVar).a(), true); } else if (aVar instanceof k0) { v1(); } else if (aVar instanceof i0) { h1(this.f156612b.getActivity(), "logon_phone"); } else if (aVar instanceof g0) { n0.f135851a.d(this.f156612b.getActivity(), this); } else if (aVar instanceof d0) { this.f156612b.s7(); new tj2.g(this.f156612b.getActivity(), this, this.f156612b.getPageCode()).show(); } else if (aVar instanceof d31.h) { h1(this.f156612b.getActivity(), "reset_password"); } } public final void b1(c50.a aVar, b50.a aVar2) { if (this.f156614d) { e41.j.j(aVar, aVar2, new f(this), new g(this), new C2550h(this, aVar, aVar2), new i(this)); } else { n1(aVar, aVar2, false); } } public final void c1() { if (o1.f94261a.b()) { Activity activity = this.f156612b.getActivity(); activity.setResult(-1); activity.finish(); } else { u31.m.m(u31.m.f135847a, false, true, 1, null); this.f156612b.getActivity().finish(); } w1(); } public final Activity d1() { return this.f156612b.getActivity(); } public final View e1() { View a14 = this.f156613c.a(); if (a14 != null) { return a14; } t1(); return null; } public final void f1() { this.f156612b.b(); } public final void g1() { this.f156612b.L3(c50.a.HUAWEI); } public final void h1(Context context, String str) { RouterBuilder withInt = Routers.build(Pages.PAGE_LOGIN).withInt("type", -1); if (str != null) { withInt.withString("loginType", str); } withInt.open(context); } public final void j1() { if (!this.f156616f) { this.f156616f = true; this.f156612b.b(); i1(this, d1(), null, 2, null); } } public final void k1() { Activity activity = this.f156612b.getActivity(); activity.startActivity(new Intent(activity, FloatingOnboardingActivity.class)); activity.finish(); w1(); } public final void l1(c50.a aVar, boolean z14) { this.f156614d = z14; int i10 = e.f156622a[aVar.ordinal()]; if (i10 == 1) { y1(); } else if (i10 == 2) { x1(); } else if (i10 == 3) { s1(); } else if (i10 == 4) { g1(); } else { throw new IllegalStateException("三方授权异常"); } } public final void n1(c50.a aVar, b50.a aVar2, boolean z14) { this.f156617g = z14; e41.j.m(aVar, aVar2, z14, new j(this), new k(this), new l(this), new m(this)); } public final void o1(c50.a aVar, b50.a aVar2) { b1 b1Var = b1.f94179a; String str = "-CheckLast"; if (!b1Var.S0().getUserExist() || b1Var.S0().getNeed_show_tag_guide()) { bh2.a aVar3 = bh2.a.f7211d; StringBuilder sb3 = new StringBuilder(); sb3.append("Register-"); sb3.append(aVar.getTypeStr()); if (!this.f156617g) { str = ""; } sb3.append(str); aVar3.g("UserAction", sb3.toString()); if (b1Var.S0().getOnBoardingFlowType() == 1) { b1Var.T1(); c1(); } else if (b1Var.S0().getOnBoardingFlowType() > 1) { b1Var.T1(); k1(); } else { this.f156612b.V4(aVar2.e().getTypeStr()); } } else { bh2.a aVar4 = bh2.a.f7211d; StringBuilder sb4 = new StringBuilder(); sb4.append("Login-"); sb4.append(aVar.getTypeStr()); if (!this.f156617g) { str = ""; } sb4.append(str); aVar4.g("UserAction", sb4.toString()); c1(); } if (aVar != c50.a.WEIXIN) { d41.a.f67117a.Q(this.f156612b.getPageCode(), aVar.getTypeStr(), (b1Var.S0().getOnBoardingPageArray().length == 0) ^ true ? ArraysKt___ArraysKt.joinToString$default(b1Var.S0().getOnBoardingPageArray(), "/", (CharSequence) null, (CharSequence) null, 0, (CharSequence) null, (Function1) null, 62, (Object) null) : "0"); } } public final void p1() { q72.e eVar = q72.e.f120661a; if (eVar.G(this.f156612b.getActivity())) { this.f156616f = false; f.a.a(this.f156612b, null, 1, null); r<Integer> W0 = eVar.w().J1(2, TimeUnit.SECONDS).W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W0, "QuickLoginHelper\n …dSchedulers.mainThread())"); Object n14 = W0.n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n14, "this.`as`(AutoDispose.autoDisposable(provider))"); ((y) n14).a(new g(new b(this)), new f(new a(this))); return; } i1(this, this.f156612b.getActivity(), null, 2, null); } public final void s1() { this.f156612b.L3(c50.a.QQ); } public final void t1() { long d14 = (long) u31.i.f135827a.d(); f.a.a(this.f156612b, null, 1, null); dx2.d<Integer> w14 = q72.e.f120661a.w(); if (d14 == 0) { d14 = 3; } r<Integer> W0 = w14.J1(d14, TimeUnit.SECONDS).W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W0, "QuickLoginHelper\n …dSchedulers.mainThread())"); bj2.h.f(W0, this, new d(this), new c(this)); } public final void u1(String str) { this.f156612b.h(str); } public final void v1() { this.f156612b.switchPage(this.f156613c.d()); } public final void w1() { d41.a aVar = d41.a.f67117a; d41.a.x(aVar, null, null, null, o3.login_status_page, u2.login_attempt_success, null, null, n.f135849a.i(), null, Integer.valueOf(aVar.c()), h4.user, null, null, null, null, null, null, null, null, null, 1046887, null); } public final void x1() { this.f156612b.L3(c50.a.WEIBO); } public final void y1() { this.f156612b.L3(c50.a.WEIXIN); } public final void z1() { if (!this.f156615e) { this.f156615e = true; this.f156612b.b(); this.f156612b.switchPage(this.f156613c.b()); } } }