package com.ss.android.ugc.aweme.mix.mixdetail.viewmodel;

import X.4HR;
import X.7he;
import X.C1148AUe;
import X.C1151AUh;
import X.C1158AUo;
import X.C1159AUp;
import X.C1161AUr;
import X.C1822AiQ;
import X.Crj;
import X.D65;
import X.DaU;
import X.M12;
import com.bytedance.assem.arch.viewModel.AssemViewModel;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.feed.model.Aweme;
import java.util.Collections;
import java.util.List;
import kotlin.h.b.n;

public final class MixVideosManageViewModel extends AssemViewModel<C1148AUe> implements C1822AiQ {
    public String LIZ = "";
    public String LIZIZ;
    public String LIZJ;
    public boolean LIZLLL;
    public final Crj LJ = D65.LIZ(this, C1161AUr.LIZ);
    public final Crj LJFF = 7he.LIZ(new C1159AUp(this));

    static {
        Covode.recordClassIndex(92606);
    }

    public final String LIZIZ() {
        return "manage_video";
    }

    public final DaU<Long> LIZLLL() {
        return (DaU) this.LJFF.getValue();
    }

    public final String LIZ() {
        return this.LIZ;
    }

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

    public final String LIZJ() {
        String str = this.LIZIZ;
        if (str == null) {
            n.LIZ("");
        }
        return str;
    }

    public final void LIZ(boolean z) {
        setState(new C1151AUh(z));
    }

    public final void LIZ(int i, int i2) {
        if (i != i2) {
            List<Aweme> list = getVmDispatcher().LIZ().LIZ;
            if (list != null) {
                Collections.swap(list, i, i2);
            }
            setState(C1158AUo.LIZ);
        }
    }

    public final void LIZ(String str, String str2, String str3) {
        M12.LIZ(str, str2, str3);
        this.LIZIZ = str;
        this.LIZJ = str2;
        this.LIZ = str3;
    }
}
