package com.discord.widgets.auth; import android.content.Context; import c0.z.d.m; import c0.z.d.o; import com.discord.models.domain.auth.ModelLoginResult; import com.discord.utilities.analytics.AnalyticsTracker; import com.discord.widgets.auth.WidgetAuthMfa; import kotlin.Unit; import kotlin.jvm.functions.Function1; /* compiled from: WidgetAuthLogin.kt */ public final class WidgetAuthLogin$login$1 extends o implements Function1 { public final /* synthetic */ Context $context; public final /* synthetic */ String $id; public final /* synthetic */ String $password; public final /* synthetic */ WidgetAuthLogin this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public WidgetAuthLogin$login$1(WidgetAuthLogin widgetAuthLogin, String str, String str2, Context context) { super(1); this.this$0 = widgetAuthLogin; this.$id = str; this.$password = str2; this.$context = context; } /* 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(ModelLoginResult modelLoginResult) { invoke(modelLoginResult); return Unit.a; } public final void invoke(ModelLoginResult modelLoginResult) { m.checkNotNullParameter(modelLoginResult, "it"); WidgetAuthLogin.access$onLoginSuccess(this.this$0, this.$id, this.$password); if (modelLoginResult.getMfa()) { WidgetAuthMfa.Companion companion = WidgetAuthMfa.Companion; Context context = this.$context; String ticket = modelLoginResult.getTicket(); m.checkNotNull(ticket); companion.start(context, ticket); return; } AnalyticsTracker.INSTANCE.loginAttempt(true); } }