40 lines
2 KiB
Java
40 lines
2 KiB
Java
package com.discord.widgets.auth;
|
|
|
|
import c.a.d.l;
|
|
import com.discord.utilities.auth.RegistrationFlowRepo;
|
|
import com.discord.views.phone.PhoneOrEmailInputView;
|
|
import com.discord.widgets.auth.WidgetAuthPhoneVerify;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetAuthRegisterIdentity.kt */
|
|
public final class WidgetAuthRegisterIdentity$phoneVerifyLauncher$1 extends o implements Function1<WidgetAuthPhoneVerify.Result, Unit> {
|
|
public final /* synthetic */ WidgetAuthRegisterIdentity this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetAuthRegisterIdentity$phoneVerifyLauncher$1(WidgetAuthRegisterIdentity widgetAuthRegisterIdentity) {
|
|
super(1);
|
|
this.this$0 = widgetAuthRegisterIdentity;
|
|
}
|
|
|
|
/* 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) {
|
|
RegistrationFlowRepo.Companion companion = RegistrationFlowRepo.Companion;
|
|
RegistrationFlowRepo.trackTransition$default(companion.getINSTANCE(), "Phone Verification", "success", null, 4, null);
|
|
companion.getINSTANCE().setPhoneToken(((WidgetAuthPhoneVerify.Result.Token) result).getToken());
|
|
l.e(this.this$0.requireContext(), WidgetAuthRegisterAccountInformation.class, null, 4);
|
|
} else if (result instanceof WidgetAuthPhoneVerify.Result.Cancelled) {
|
|
WidgetAuthRegisterIdentity.access$setInputMode(this.this$0, PhoneOrEmailInputView.Mode.EMAIL);
|
|
}
|
|
}
|
|
}
|