小红书.apk(点击下载) / d.java


package ya1;

import a23.o3;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
import com.xingin.android.redutils.base.XhsActivity;
import com.xingin.entities.social.pf.TopFriendFeedListBean;
import com.xingin.matrix.detail.feed.R$layout;
import com.xingin.matrix.detail.page.topbarv2.TopBarV2View;
import dw2.r;
import java.util.Objects;
import kf2.d;
import kotlin.Metadata;
import kotlin.Triple;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import ra1.j;
import tu0.p;
import tu0.q;
import y7.f;

@Metadata(bv = {}, d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\u0018\u00002\u0014\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\u00040\u0001:\u0003\t\f\u0010B\u000f\u0012\u0006\u0010\r\u001a\u00020\u0004¢\u0006\u0004\b\u000e\u0010\u000fJ\u0016\u0010\t\u001a\u00020\u00032\u0006\u0010\u0006\u001a\u00020\u00052\u0006\u0010\b\u001a\u00020\u0007J\u0018\u0010\f\u001a\u00020\u00022\u0006\u0010\u000b\u001a\u00020\n2\u0006\u0010\u0006\u001a\u00020\u0005H\u0016¨\u0006\u0011"}, d2 = {"Lya1/d;", "Ltu0/p;", "Lcom/xingin/matrix/detail/page/topbarv2/TopBarV2View;", "Lya1/n;", "Lya1/d$c;", "Landroid/view/ViewGroup;", "parentViewGroup", "Lk61/b;", "detailFeedIntentImpl", "a", "Landroid/view/LayoutInflater;", "inflater", "b", "dependency", "<init>", "(Lya1/d$c;)V", "c", "matrix_detail_feed_library_release"}, k = 1, mv = {1, 6, 0})
/* compiled from: TopBarV2Builder.kt */
public final class d extends p<TopBarV2View, n, c> {

    @Metadata(bv = {}, d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\bg\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u00012\u00020\u0003¨\u0006\u0004"}, d2 = {"Lya1/d$a;", "Ltu0/d;", "Lya1/l;", "Lkf2/d$c;", "matrix_detail_feed_library_release"}, k = 1, mv = {1, 6, 0})
    /* compiled from: TopBarV2Builder.kt */
    public interface a extends tu0.d<l>, d.c {
    }

    @Metadata(bv = {}, d1 = {"\u0000L\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0007\u0018\u00002\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00030\u0001B\u001f\u0012\u0006\u0010\u0015\u001a\u00020\u0002\u0012\u0006\u0010\u0016\u001a\u00020\u0003\u0012\u0006\u0010\u0018\u001a\u00020\u0017¢\u0006\u0004\b\u0019\u0010\u001aJ\b\u0010\u0005\u001a\u00020\u0004H\u0007J\b\u0010\u0007\u001a\u00020\u0006H\u0007J(\u0010\u000e\u001a\"\u0012\u001e\u0012\u001c\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u000b0\n\u0012\u0004\u0012\u00020\f\u0012\u0006\u0012\u0004\u0018\u00010\r0\t0\bH\u0007J\u000e\u0010\u0010\u001a\b\u0012\u0004\u0012\u00020\r0\u000fH\u0007J\u000e\u0010\u0012\u001a\b\u0012\u0004\u0012\u00020\u00110\u000fH\u0007J\b\u0010\u0013\u001a\u00020\u0011H\u0007J\b\u0010\u0014\u001a\u00020\u0011H\u0007¨\u0006\u001b"}, d2 = {"Lya1/d$b;", "Ltu0/q;", "Lcom/xingin/matrix/detail/page/topbarv2/TopBarV2View;", "Lya1/l;", "Lya1/o;", f.f156778k, "Landroidx/fragment/app/Fragment;", "a", "Ldw2/r;", "Lkotlin/Triple;", "Lkotlin/Function0;", "", "Lcom/xingin/entities/social/pf/TopFriendFeedListBean;", "", "g", "Ldx2/d;", "b", "La23/o3;", "d", "c", "e", qo2.a.COPY_LINK_TYPE_VIEW, "controller", "Lk61/b;", "detailFeedIntentImpl", "<init>", "(Lcom/xingin/matrix/detail/page/topbarv2/TopBarV2View;Lya1/l;Lk61/b;)V", "matrix_detail_feed_library_release"}, k = 1, mv = {1, 6, 0})
    /* compiled from: TopBarV2Builder.kt */
    public static final class b extends q<TopBarV2View, l> {

        /* renamed from: a  reason: collision with root package name */
        public final k61.b f157045a;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public b(TopBarV2View topBarV2View, l lVar, k61.b bVar) {
            super(topBarV2View, lVar);
            Intrinsics.checkNotNullParameter(topBarV2View, qo2.a.COPY_LINK_TYPE_VIEW);
            Intrinsics.checkNotNullParameter(lVar, "controller");
            Intrinsics.checkNotNullParameter(bVar, "detailFeedIntentImpl");
            this.f157045a = bVar;
        }

        public final Fragment a() {
            return new Fragment();
        }

        public final dx2.d<Object> b() {
            dx2.d<Object> b24 = dx2.d.b2();
            Intrinsics.checkNotNullExpressionValue(b24, "create()");
            return b24;
        }

        public final o3 c() {
            o3 a14;
            k61.b bVar = this.f157045a;
            k61.c cVar = bVar instanceof k61.c ? (k61.c) bVar : null;
            return (cVar == null || (a14 = cVar.a()) == null) ? o3.video_feed : a14;
        }

        public final dx2.d<o3> d() {
            dx2.d<o3> b24 = dx2.d.b2();
            Intrinsics.checkNotNullExpressionValue(b24, "create()");
            return b24;
        }

        public final o3 e() {
            o3 d14;
            k61.b bVar = this.f157045a;
            k61.c cVar = bVar instanceof k61.c ? (k61.c) bVar : null;
            return (cVar == null || (d14 = cVar.d()) == null) ? o3.explore_feed : d14;
        }

        public final o f() {
            return new o((TopBarV2View) getView());
        }

        public final r<Triple<Function0<Integer>, TopFriendFeedListBean, Object>> g() {
            dx2.b b24 = dx2.b.b2();
            Intrinsics.checkNotNullExpressionValue(b24, "create<Triple<() -> Int,…endFeedListBean, Any?>>()");
            return b24;
        }
    }

    @Metadata(bv = {}, d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\bf\u0018\u00002\u00020\u0001J\b\u0010\u0003\u001a\u00020\u0002H&J\u000e\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\u00050\u0004H&¨\u0006\u0007"}, d2 = {"Lya1/d$c;", "", "Lcom/xingin/android/redutils/base/XhsActivity;", "activity", "Ldx2/d;", "Lra1/j;", "s", "matrix_detail_feed_library_release"}, k = 1, mv = {1, 6, 0})
    /* compiled from: TopBarV2Builder.kt */
    public interface c {
        XhsActivity activity();

        dx2.d<j> s();
    }

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public d(c cVar) {
        super(cVar);
        Intrinsics.checkNotNullParameter(cVar, "dependency");
    }

    public final n a(ViewGroup viewGroup, k61.b bVar) {
        Intrinsics.checkNotNullParameter(viewGroup, "parentViewGroup");
        Intrinsics.checkNotNullParameter(bVar, "detailFeedIntentImpl");
        TopBarV2View topBarV2View = (TopBarV2View) createView(viewGroup);
        l lVar = new l();
        a a14 = b.a().c((c) getDependency()).b(new b(topBarV2View, lVar, bVar)).a();
        Intrinsics.checkNotNullExpressionValue(a14, "component");
        return new n(topBarV2View, lVar, a14);
    }

    /* renamed from: b */
    public TopBarV2View inflateView(LayoutInflater layoutInflater, ViewGroup viewGroup) {
        Intrinsics.checkNotNullParameter(layoutInflater, "inflater");
        Intrinsics.checkNotNullParameter(viewGroup, "parentViewGroup");
        View inflate = layoutInflater.inflate(R$layout.at3, viewGroup, false);
        Objects.requireNonNull(inflate, "null cannot be cast to non-null type com.xingin.matrix.detail.page.topbarv2.TopBarV2View");
        return (TopBarV2View) inflate;
    }
}