package com.ss.android.ugc.aweme.tag;

import X.0HH;
import X.AC9;
import X.ACA;
import X.ACB;
import X.ACC;
import X.ACD;
import X.ACF;
import X.ACG;
import X.ACH;
import X.ACI;
import X.ACJ;
import X.ACK;
import X.ACL;
import X.C0982ANu;
import X.C0983ANv;
import X.C0984ANw;
import X.C1640AfU;
import X.Csa;
import X.Csw;
import X.Csy;
import X.Ct1;
import X.D1G;
import X.DaP;
import X.KEM;
import X.M12;
import X.OCa;
import X.Qeg;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.bytedance.covode.number.Covode;
import com.bytedance.ies.powerlist.PowerCell;
import com.ss.android.ugc.aweme.tag.viewmodel.VideoTagFriendsListViewModel;
import kotlin.h.b.n;

public final class SelectedListCell extends PowerCell<C1640AfU> {
    public final Csa LIZ;

    static {
        Covode.recordClassIndex(118563);
    }

    public final VideoTagFriendsListViewModel LIZ() {
        return (VideoTagFriendsListViewModel) this.LIZ.getValue();
    }

    public final void bD_() {
        this.itemView.setOnClickListener(new ACH(this));
    }

    public SelectedListCell() {
        Csa csa;
        Csy csy = Csy.LIZ;
        D1G LIZ2 = KEM.LIZ.LIZ(VideoTagFriendsListViewModel.class);
        ACI aci = new ACI(LIZ2);
        ACJ acj = ACJ.INSTANCE;
        if (n.LIZ(csy, Csw.LIZ)) {
            csa = new Csa(LIZ2, aci, C0983ANv.INSTANCE, new ACA(this), new AC9(this), ACL.INSTANCE, acj);
        } else if (n.LIZ(csy, Csy.LIZ)) {
            csa = new Csa(LIZ2, aci, C0984ANw.INSTANCE, new ACC(this), new ACB(this), ACK.INSTANCE, acj);
        } else if (csy != null && !n.LIZ(csy, Ct1.LIZ)) {
            throw new IllegalArgumentException("Don't support this VMScope: " + csy + " there");
        } else {
            csa = new Csa(LIZ2, aci, C0982ANu.INSTANCE, new ACG(this), new ACD(this), new ACF(this), acj);
        }
        this.LIZ = csa;
    }

    public final View LIZ(ViewGroup viewGroup) {
        M12.LIZ(viewGroup);
        View LIZ2 = 0HH.LIZ(LayoutInflater.from(viewGroup.getContext()), 2131560598, viewGroup, false);
        n.LIZIZ(LIZ2, "");
        return LIZ2;
    }

    public final /* synthetic */ void LIZ(DaP daP) {
        C1640AfU afU = (C1640AfU) daP;
        M12.LIZ(afU);
        View view = this.itemView;
        OCa.LIZ(view.findViewById(2131362521), afU.LIZ.getDisplayAvatar());
        Qeg findViewById = view.findViewById(2131371037);
        n.LIZIZ(findViewById, "");
        findViewById.setText(LIZ().LIZ(afU.LIZ));
    }
}
