forked from Juby210/discord-jadx
83 lines
4.1 KiB
Java
83 lines
4.1 KiB
Java
|
package com.discord.widgets.auth;
|
||
|
|
||
|
import com.discord.stores.StoreStream;
|
||
|
import com.discord.utilities.error.Error;
|
||
|
import com.discord.utilities.rx.ObservableExtensionsKt;
|
||
|
import com.discord.widgets.auth.WidgetAuthPhoneVerify;
|
||
|
import d0.z.d.a;
|
||
|
import d0.z.d.m;
|
||
|
import d0.z.d.o;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.jvm.functions.Function0;
|
||
|
import kotlin.jvm.functions.Function1;
|
||
|
/* compiled from: WidgetAuthLogin.kt */
|
||
|
public final class WidgetAuthLogin$phoneVerifyLoginLauncher$1 extends o implements Function1<WidgetAuthPhoneVerify.Result, Unit> {
|
||
|
public final /* synthetic */ WidgetAuthLogin this$0;
|
||
|
|
||
|
/* compiled from: WidgetAuthLogin.kt */
|
||
|
/* renamed from: com.discord.widgets.auth.WidgetAuthLogin$phoneVerifyLoginLauncher$1$1 reason: invalid class name */
|
||
|
public static final /* synthetic */ class AnonymousClass1 extends a implements Function1<Error, Unit> {
|
||
|
public AnonymousClass1(WidgetAuthLogin widgetAuthLogin) {
|
||
|
super(1, widgetAuthLogin, WidgetAuthLogin.class, "handleError", "handleError(Lcom/discord/utilities/error/Error;Ljava/lang/String;)V", 0);
|
||
|
}
|
||
|
|
||
|
/* 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(Error error) {
|
||
|
invoke(error);
|
||
|
return Unit.a;
|
||
|
}
|
||
|
|
||
|
public final void invoke(Error error) {
|
||
|
m.checkNotNullParameter(error, "p1");
|
||
|
WidgetAuthLogin.handleError$default((WidgetAuthLogin) this.receiver, error, null, 2, null);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* compiled from: WidgetAuthLogin.kt */
|
||
|
/* renamed from: com.discord.widgets.auth.WidgetAuthLogin$phoneVerifyLoginLauncher$1$2 reason: invalid class name */
|
||
|
public static final class AnonymousClass2 extends o implements Function1<Void, Unit> {
|
||
|
public final /* synthetic */ WidgetAuthLogin$phoneVerifyLoginLauncher$1 this$0;
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public AnonymousClass2(WidgetAuthLogin$phoneVerifyLoginLauncher$1 widgetAuthLogin$phoneVerifyLoginLauncher$1) {
|
||
|
super(1);
|
||
|
this.this$0 = widgetAuthLogin$phoneVerifyLoginLauncher$1;
|
||
|
}
|
||
|
|
||
|
/* 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(Void r1) {
|
||
|
invoke(r1);
|
||
|
return Unit.a;
|
||
|
}
|
||
|
|
||
|
public final void invoke(Void r4) {
|
||
|
WidgetAuthLogin.login$default(this.this$0.this$0, null, false, 3, null);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public WidgetAuthLogin$phoneVerifyLoginLauncher$1(WidgetAuthLogin widgetAuthLogin) {
|
||
|
super(1);
|
||
|
this.this$0 = widgetAuthLogin;
|
||
|
}
|
||
|
|
||
|
/* 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(WidgetAuthPhoneVerify.Result result) {
|
||
|
invoke(result);
|
||
|
return Unit.a;
|
||
|
}
|
||
|
|
||
|
public final void invoke(WidgetAuthPhoneVerify.Result result) {
|
||
|
m.checkNotNullParameter(result, "result");
|
||
|
if (result instanceof WidgetAuthPhoneVerify.Result.Token) {
|
||
|
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.withDimmer$default(ObservableExtensionsKt.ui$default(StoreStream.Companion.getAuthentication().authorizeIP(((WidgetAuthPhoneVerify.Result.Token) result).getToken()), this.this$0, null, 2, null), WidgetAuthLogin.access$getBinding$p(this.this$0).h, 0, 2, null), this.this$0.getClass(), this.this$0.getContext(), (Function1) null, new AnonymousClass1(this.this$0), (Function0) null, (Function0) null, new AnonymousClass2(this), 52, (Object) null);
|
||
|
}
|
||
|
}
|
||
|
}
|