package m8;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.View;
import java.util.List;
import kotlin.jvm.internal.t;
import o8.b0;

/* loaded from: classes.dex */
public final class d implements v7.d {

    /* renamed from: p, reason: collision with root package name */
    private final b0 f28736p;

    /* renamed from: q, reason: collision with root package name */
    private final dn.l f28737q;

    /* renamed from: r, reason: collision with root package name */
    private final int f28738r;

    /* renamed from: s, reason: collision with root package name */
    private final View.OnTouchListener f28739s;

    public d(b0 navigationItem, dn.l onSelected, dn.l onItemTouch) {
        View.OnTouchListener c10;
        t.g(navigationItem, "navigationItem");
        t.g(onSelected, "onSelected");
        t.g(onItemTouch, "onItemTouch");
        this.f28736p = navigationItem;
        this.f28737q = onSelected;
        this.f28738r = h7.j.G;
        c10 = f.c(onItemTouch);
        this.f28739s = c10;
    }

    public final Drawable c(Context context) {
        t.g(context, "context");
        return androidx.core.content.res.h.f(context.getResources(), this.f28736p.f(), null);
    }

    public final b0 d() {
        return this.f28736p;
    }

    public final int e() {
        return this.f28736p.k();
    }

    public final View.OnTouchListener f() {
        return this.f28739s;
    }

    public final int g() {
        List i10 = this.f28736p.i();
        return i10 == null || i10.isEmpty() ? 4 : 0;
    }

    public final void h() {
        this.f28737q.invoke(this);
    }

    @Override // v7.d
    public int q() {
        return this.f28738r;
    }
}
