package com.discord.widgets.chat.input.sticker; import android.view.View; import android.widget.FrameLayout; import android.widget.ImageView; import androidx.recyclerview.widget.RecyclerView; import com.discord.databinding.StickerCategoryItemGuildBinding; import com.discord.databinding.StickerCategoryItemPackBinding; import com.discord.databinding.StickerCategoryItemRecentBinding; import com.discord.rlottie.RLottieImageView; import com.discord.views.sticker.StickerView; import com.discord.widgets.chat.input.sticker.StickerCategoryItem; import com.facebook.drawee.view.SimpleDraweeView; import d0.z.d.m; import kotlin.Unit; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; import kotlin.jvm.internal.DefaultConstructorMarker; /* compiled from: StickerCategoryViewHolder.kt */ public abstract class StickerCategoryViewHolder extends RecyclerView.ViewHolder { /* compiled from: StickerCategoryViewHolder.kt */ public static final class Guild extends StickerCategoryViewHolder { private final StickerCategoryItemGuildBinding binding; /* JADX WARNING: Illegal instructions before constructor call */ public Guild(StickerCategoryItemGuildBinding stickerCategoryItemGuildBinding) { super(r0, null); m.checkNotNullParameter(stickerCategoryItemGuildBinding, "binding"); FrameLayout frameLayout = stickerCategoryItemGuildBinding.a; m.checkNotNullExpressionValue(frameLayout, "binding.root"); this.binding = stickerCategoryItemGuildBinding; } public final void configure(StickerCategoryItem.GuildItem guildItem, Function1 function1) { m.checkNotNullParameter(guildItem, "guildItem"); m.checkNotNullParameter(function1, "onGuildClicked"); this.binding.f1626c.updateView(guildItem.getGuild()); View view = this.binding.b.b; m.checkNotNullExpressionValue(view, "binding.overline.express…CategorySelectionOverline"); view.setVisibility(guildItem.isSelected() ? 0 : 8); this.itemView.setOnClickListener(new StickerCategoryViewHolder$Guild$configure$1(function1, guildItem)); View view2 = this.itemView; m.checkNotNullExpressionValue(view2, "itemView"); view2.setContentDescription(guildItem.getGuild().getName()); } } /* compiled from: StickerCategoryViewHolder.kt */ public static final class Pack extends StickerCategoryViewHolder { private final StickerCategoryItemPackBinding binding; /* JADX WARNING: Illegal instructions before constructor call */ public Pack(StickerCategoryItemPackBinding stickerCategoryItemPackBinding) { super(r0, null); m.checkNotNullParameter(stickerCategoryItemPackBinding, "binding"); FrameLayout frameLayout = stickerCategoryItemPackBinding.a; m.checkNotNullExpressionValue(frameLayout, "binding.root"); this.binding = stickerCategoryItemPackBinding; } public final void configure(StickerCategoryItem.PackItem packItem, Function1 function1) { m.checkNotNullParameter(packItem, "packItem"); m.checkNotNullParameter(function1, "onPackClicked"); this.binding.f1627c.c(packItem.getPack().getCoverSticker(), 2); this.binding.f1627c.setOnClickListener(new StickerCategoryViewHolder$Pack$configure$1(function1, packItem)); StickerView stickerView = this.binding.f1627c; SimpleDraweeView simpleDraweeView = stickerView.i.b; m.checkNotNullExpressionValue(simpleDraweeView, "binding.stickerViewImageview"); simpleDraweeView.setImportantForAccessibility(4); RLottieImageView rLottieImageView = stickerView.i.f104c; m.checkNotNullExpressionValue(rLottieImageView, "binding.stickerViewLottie"); rLottieImageView.setImportantForAccessibility(4); ImageView imageView = stickerView.i.d; m.checkNotNullExpressionValue(imageView, "binding.stickerViewPlaceholder"); imageView.setImportantForAccessibility(4); StickerView stickerView2 = this.binding.f1627c; m.checkNotNullExpressionValue(stickerView2, "binding.stickerCategoryItemPackAvatar"); stickerView2.setContentDescription(packItem.getPack().getName()); View view = this.binding.b.b; m.checkNotNullExpressionValue(view, "binding.overline.express…CategorySelectionOverline"); view.setVisibility(packItem.isSelected() ? 0 : 8); } } /* compiled from: StickerCategoryViewHolder.kt */ public static final class Recent extends StickerCategoryViewHolder { private final StickerCategoryItemRecentBinding binding; /* JADX WARNING: Illegal instructions before constructor call */ public Recent(StickerCategoryItemRecentBinding stickerCategoryItemRecentBinding) { super(r0, null); m.checkNotNullParameter(stickerCategoryItemRecentBinding, "binding"); FrameLayout frameLayout = stickerCategoryItemRecentBinding.a; m.checkNotNullExpressionValue(frameLayout, "binding.root"); this.binding = stickerCategoryItemRecentBinding; } public final void configure(StickerCategoryItem.RecentItem recentItem, Function0 function0) { m.checkNotNullParameter(recentItem, "categoryItem"); m.checkNotNullParameter(function0, "onRecentClicked"); View view = this.binding.b.b; m.checkNotNullExpressionValue(view, "binding.overline.express…CategorySelectionOverline"); view.setVisibility(recentItem.isSelected() ? 0 : 8); this.itemView.setOnClickListener(new StickerCategoryViewHolder$Recent$configure$1(function0)); } } private StickerCategoryViewHolder(View view) { super(view); } public /* synthetic */ StickerCategoryViewHolder(View view, DefaultConstructorMarker defaultConstructorMarker) { this(view); } }