package com.discord.widgets.channels.permissions; import android.view.View; import android.widget.Toast; import androidx.constraintlayout.widget.ConstraintLayout; import com.discord.widgets.channels.permissions.PermissionOwnerListView; import d0.z.d.m; import kotlin.jvm.functions.Function0; /* compiled from: PermissionOwnerListView.kt */ public final class PermissionOwnerListView$PermissionOwnerViewHolder$configure$1 implements View.OnClickListener { public final /* synthetic */ PermissionOwnerListView.Item $item; public final /* synthetic */ Function0 $onRemoveClicked; public final /* synthetic */ PermissionOwnerListView.PermissionOwnerViewHolder this$0; public PermissionOwnerListView$PermissionOwnerViewHolder$configure$1(PermissionOwnerListView.PermissionOwnerViewHolder permissionOwnerViewHolder, PermissionOwnerListView.Item item, Function0 function0) { this.this$0 = permissionOwnerViewHolder; this.$item = item; this.$onRemoveClicked = function0; } @Override // android.view.View.OnClickListener public final void onClick(View view) { PermissionOwnerListView.RemoveStatus removeStatus = this.$item.getRemoveStatus(); if (m.areEqual(removeStatus, PermissionOwnerListView.RemoveStatus.CanRemove.INSTANCE)) { this.$onRemoveClicked.mo1invoke(); } else if (!m.areEqual(removeStatus, PermissionOwnerListView.RemoveStatus.IsRemoving.INSTANCE) && (removeStatus instanceof PermissionOwnerListView.RemoveStatus.CannotRemove)) { int ordinal = ((PermissionOwnerListView.RemoveStatus.CannotRemove) this.$item.getRemoveStatus()).getReason().ordinal(); if (ordinal == 2) { ConstraintLayout constraintLayout = PermissionOwnerListView.PermissionOwnerViewHolder.access$getBinding$p(this.this$0).a; m.checkNotNullExpressionValue(constraintLayout, "binding.root"); Toast.makeText(constraintLayout.getContext(), 2131887324, 0).show(); } else if (ordinal == 3) { ConstraintLayout constraintLayout2 = PermissionOwnerListView.PermissionOwnerViewHolder.access$getBinding$p(this.this$0).a; m.checkNotNullExpressionValue(constraintLayout2, "binding.root"); Toast.makeText(constraintLayout2.getContext(), 2131887303, 0).show(); } } } }