2021-10-20 06:51:20 +00:00
|
|
|
package com.discord.widgets.guilds.join;
|
|
|
|
|
|
|
|
import com.discord.utilities.captcha.CaptchaHelper;
|
|
|
|
import com.discord.utilities.error.Error;
|
2021-11-02 06:38:17 +00:00
|
|
|
import d0.z.d.m;
|
|
|
|
import d0.z.d.o;
|
2021-10-20 06:51:20 +00:00
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
/* compiled from: WidgetGuildJoinCaptchaBottomSheet.kt */
|
|
|
|
public final class WidgetGuildJoinCaptchaBottomSheet$openCaptcha$2 extends o implements Function1<Error, Unit> {
|
|
|
|
public final /* synthetic */ WidgetGuildJoinCaptchaBottomSheet this$0;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public WidgetGuildJoinCaptchaBottomSheet$openCaptcha$2(WidgetGuildJoinCaptchaBottomSheet widgetGuildJoinCaptchaBottomSheet) {
|
|
|
|
super(1);
|
|
|
|
this.this$0 = widgetGuildJoinCaptchaBottomSheet;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 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, "it");
|
|
|
|
Throwable throwable = error.getThrowable();
|
|
|
|
if (!(throwable instanceof CaptchaHelper.Failure)) {
|
|
|
|
throwable = null;
|
|
|
|
}
|
|
|
|
CaptchaHelper.Failure failure = (CaptchaHelper.Failure) throwable;
|
|
|
|
if (failure != null) {
|
|
|
|
c.a.d.m.g(this.this$0.getAppActivity(), failure.getErrorStringId(), 0, null, 12);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|