package c.a.a; import android.view.View; import android.widget.LinearLayout; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import c.a.i.s; import com.discord.app.AppDialog; import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; import com.google.android.material.button.MaterialButton; import d0.z.d.k; import d0.z.d.m; import kotlin.jvm.functions.Function1; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.reflect.KProperty; /* compiled from: GuildVideoAtCapacityDialog.kt */ public final class l extends AppDialog { public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.W(l.class, "binding", "getBinding()Lcom/discord/databinding/GuildVideoAtCapacityBinding;", 0)}; public static final a j = new a(null); public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null); /* compiled from: GuildVideoAtCapacityDialog.kt */ public static final class a { public a(DefaultConstructorMarker defaultConstructorMarker) { } public final void a(FragmentManager fragmentManager) { m.checkNotNullParameter(fragmentManager, "fragmentManager"); new l().show(fragmentManager, l.class.getSimpleName()); } } /* compiled from: GuildVideoAtCapacityDialog.kt */ public static final /* synthetic */ class b extends k implements Function1 { public static final b i = new b(); public b() { super(1, s.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/GuildVideoAtCapacityBinding;", 0); } /* 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 s invoke(View view) { View view2 = view; m.checkNotNullParameter(view2, "p1"); int i2 = 2131363461; MaterialButton materialButton = (MaterialButton) view2.findViewById(2131363461); if (materialButton != null) { i2 = 2131364030; LinearLayout linearLayout = (LinearLayout) view2.findViewById(2131364030); if (linearLayout != null) { return new s((LinearLayout) view2, materialButton, linearLayout); } } throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2))); } } /* compiled from: GuildVideoAtCapacityDialog.kt */ public static final class c implements View.OnClickListener { public final /* synthetic */ l i; public c(l lVar) { this.i = lVar; } @Override // android.view.View.OnClickListener public final void onClick(View view) { this.i.dismiss(); } } public l() { super(2131558519); } @Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment public void onResume() { super.onResume(); requireDialog().setCanceledOnTouchOutside(true); ((s) this.k.getValue((Fragment) this, i[0])).b.setOnClickListener(new c(this)); } }