package com.ss.android.ugc.aweme.relation.ffp.vm;

import X.3PM;
import X.4HR;
import X.4r1;
import X.C1948AkS;
import X.C1955AkZ;
import X.C1957Akb;
import X.C1959Akd;
import X.C1963Akh;
import X.C1965Akj;
import X.C1966Akk;
import X.C1967Akl;
import X.C1968Akm;
import X.C1971Akp;
import X.C1973Akr;
import X.C1974Aks;
import X.C1975Akt;
import X.C2103Amx;
import X.C2104Amy;
import X.Cvh;
import X.DAe;
import X.DB2;
import X.DCr;
import X.Dc0;
import X.Ls2;
import X.M12;
import com.bytedance.assem.arch.viewModel.AssemViewModel;
import com.bytedance.covode.number.Covode;
import java.util.Set;

public final class RecFriendsVM extends AssemViewModel<C1959Akd> {
    public static final C1973Akr LJ = new C1973Akr((byte) 0);
    public C2104Amy LIZ;
    public final FindFriendsPageVM LIZIZ;
    public final FFPMainFragmentVM LIZJ;
    public final C1948AkS LIZLLL;
    public final DB2 LJFF;

    static {
        Covode.recordClassIndex(103091);
    }

    public final /* synthetic */ 4HR defaultState() {
        return new C1959Akd();
    }

    public final void LIZ() {
        DAe.LIZ(getAssemVMScope(), this.LJFF, new C1974Aks(this, (4r1) null), 2);
    }

    public final void LIZIZ() {
        Set<Dc0> LIZIZ2 = this.LIZIZ.LIZIZ();
        3PM.LIZIZ("[ffp]_RecFriends", "refresh with: ".concat(String.valueOf(LIZIZ2)));
        setState(new C1966Akk(LIZIZ2));
    }

    public final void onPrepared() {
        RecFriendsVM.super.onPrepared();
        LIZ();
        setState(new C1957Akb(this));
        AssemViewModel.asyncSubscribe$default(this.LIZIZ, C1975Akt.LIZ, (Cvh) null, new C1965Akj(this), (Ls2) null, new C1968Akm(this), 10, (Object) null);
        AssemViewModel.asyncSubscribe$default(this.LIZIZ, C1971Akp.LIZ, (Cvh) null, new C1967Akl(this), (Ls2) null, new C1963Akh(this), 10, (Object) null);
    }

    public /* synthetic */ RecFriendsVM(FindFriendsPageVM findFriendsPageVM) {
        this(findFriendsPageVM, findFriendsPageVM.LIZ(), DCr.LIZLLL, findFriendsPageVM.getState().LIZLLL);
    }

    public final void LIZ(Dc0 dc0, int i) {
        M12.LIZ(dc0);
        withState(new C1955AkZ(this, dc0, i));
    }

    public RecFriendsVM(FindFriendsPageVM findFriendsPageVM, FFPMainFragmentVM fFPMainFragmentVM, DB2 db2, C1948AkS akS) {
        M12.LIZ(findFriendsPageVM, fFPMainFragmentVM, db2, akS);
        this.LIZIZ = findFriendsPageVM;
        this.LIZJ = fFPMainFragmentVM;
        this.LJFF = db2;
        this.LIZLLL = akS;
        this.LIZ = C2103Amx.LIZ;
    }
}
