package com.vinfast.companion.core.utils.gallery;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes15.dex */
@kotlin.Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u000b\u0018\u00002\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00030\u0001B#\u0012\u001a\u0010\u0007\u001a\u0016\u0012\u0004\u0012\u00020\u0005\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0004\u0012\u00020\u00060\u0004¢\u0006\u0004\b\b\u0010\tJ\u001f\u0010\r\u001a\u00020\u00032\u0006\u0010\u000b\u001a\u00020\n2\u0006\u0010\f\u001a\u00020\u0005H\u0016¢\u0006\u0004\b\r\u0010\u000eJ\u001f\u0010\u0011\u001a\u00020\u00062\u0006\u0010\u000f\u001a\u00020\u00032\u0006\u0010\u0010\u001a\u00020\u0005H\u0016¢\u0006\u0004\b\u0011\u0010\u0012R(\u0010\u0007\u001a\u0016\u0012\u0004\u0012\u00020\u0005\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0004\u0012\u00020\u00060\u00048\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0013\u0010\u0014¨\u0006\u0015"}, d2 = {"Lcom/vinfast/companion/core/utils/gallery/GallerySwipeAdapter;", "Landroidx/recyclerview/widget/ListAdapter;", "Lcom/vinfast/companion/core/utils/gallery/GalleryItem;", "Lcom/vinfast/companion/core/utils/gallery/GallerySwipeViewHolder;", "Lkotlin/Function2;", "", "", "onItemPictureOnClick", "<init>", "(Lkotlin/jvm/functions/Function2;)V", "Landroid/view/ViewGroup;", "parent", "viewType", "m", "(Landroid/view/ViewGroup;I)Lcom/vinfast/companion/core/utils/gallery/GallerySwipeViewHolder;", "holder", "position", "l", "(Lcom/vinfast/companion/core/utils/gallery/GallerySwipeViewHolder;I)V", "c", "Lkotlin/jvm/functions/Function2;", "core_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
public final class GallerySwipeAdapter extends androidx.recyclerview.widget.ListAdapter<com.vinfast.companion.core.utils.gallery.GalleryItem, com.vinfast.companion.core.utils.gallery.GallerySwipeViewHolder> {

    /* JADX INFO: renamed from: c, reason: from kotlin metadata */
    private final kotlin.jvm.functions.Function2 onItemPictureOnClick;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public GallerySwipeAdapter(kotlin.jvm.functions.Function2 function2) {
        super(com.vinfast.companion.core.utils.gallery.GalleryItem.INSTANCE.a());
        kotlin.jvm.internal.Intrinsics.l(function2, "onItemPictureOnClick");
        this.onItemPictureOnClick = function2;
    }

    /* JADX INFO: renamed from: l, reason: merged with bridge method [inline-methods] */
    public void onBindViewHolder(com.vinfast.companion.core.utils.gallery.GallerySwipeViewHolder holder, int position) {
        kotlin.jvm.internal.Intrinsics.l(holder, "holder");
        java.lang.Object objH = h(position);
        kotlin.jvm.internal.Intrinsics.k(objH, "getItem(...)");
        holder.b((com.vinfast.companion.core.utils.gallery.GalleryItem) objH);
    }

    /* JADX INFO: renamed from: m, reason: merged with bridge method [inline-methods] */
    public com.vinfast.companion.core.utils.gallery.GallerySwipeViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType) {
        kotlin.jvm.internal.Intrinsics.l(parent, "parent");
        androidx.viewbinding.ViewBinding viewBindingD = com.vinfast.companion.core.extensions.LayoutInflateExtensionsKt.d(parent, com.vinfast.companion.core.utils.gallery.GallerySwipeAdapter$onCreateViewHolder$binding$1.a);
        kotlin.jvm.internal.Intrinsics.k(viewBindingD, "inflate(...)");
        return new com.vinfast.companion.core.utils.gallery.GallerySwipeViewHolder((com.vinfast.companion.core.databinding.ItemGallerySwipeBinding) viewBindingD, this.onItemPictureOnClick);
    }
}
