package com.discord.widgets.guilds.join; import android.os.Bundle; import com.discord.app.AppFragment; import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function2; /* compiled from: WidgetGuildJoinCaptchaBottomSheet.kt */ public final class WidgetGuildJoinCaptchaBottomSheet$Companion$registerForResult$1 extends o implements Function2 { public final /* synthetic */ AppFragment $fragment; public final /* synthetic */ Function2 $onCaptchaTokenReceived; public final /* synthetic */ String $requestKey; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public WidgetGuildJoinCaptchaBottomSheet$Companion$registerForResult$1(String str, Function2 function2, AppFragment appFragment) { super(2); this.$requestKey = str; this.$onCaptchaTokenReceived = function2; this.$fragment = appFragment; } /* 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(String str, Bundle bundle) { invoke(str, bundle); return Unit.a; } public final void invoke(String str, Bundle bundle) { String string; m.checkNotNullParameter(str, "resultRequestKey"); m.checkNotNullParameter(bundle, "bundle"); if (m.areEqual(this.$requestKey, str) && (string = bundle.getString("INTENT_EXTRA_CAPTCHA_TOKEN", "")) != null && (!m.areEqual(string, ""))) { this.$onCaptchaTokenReceived.invoke(this.$fragment, string); } } }