package com.discord.widgets.auth; import android.content.Intent; import androidx.activity.result.ActivityResult; import androidx.activity.result.ActivityResultCallback; import d0.z.d.m; import kotlin.jvm.functions.Function1; /* compiled from: WidgetAuthCaptcha.kt */ public final class WidgetAuthCaptcha$Companion$registerForResult$1 implements ActivityResultCallback { public final /* synthetic */ Function1 $callback; public WidgetAuthCaptcha$Companion$registerForResult$1(Function1 function1) { this.$callback = function1; } public final void onActivityResult(ActivityResult activityResult) { m.checkNotNullExpressionValue(activityResult, "activityResult"); if (activityResult.getResultCode() == -1) { Intent data = activityResult.getData(); String stringExtra = data != null ? data.getStringExtra("RESULT_EXTRA_UNDELETE") : null; if (stringExtra != null) { this.$callback.invoke(stringExtra); } } } }