package com.ss.android.ugc.aweme.im.sdk.chat.feature.reaction.viewmodel;

import X.0Bt;
import X.0CB;
import X.0CH;
import X.0CN;
import X.1Bn;
import X.6Is;
import X.C26153Mp;
import X.C26203Mu;
import X.C26213Mv;
import X.C28173Uj;
import X.IdN;
import X.Jl8;
import X.M12;
import com.bytedance.covode.number.Covode;

public final class IMReactionListSheetViewModel extends 0Bt implements 6Is {
    public static final C26203Mu LJ = new C26203Mu((byte) 0);
    public Jl8 LIZ;
    public String LIZIZ;
    public final String LIZJ = C26153Mp.LIZIZ().toString();
    public final 1Bn<Boolean> LIZLLL = new 1Bn<>(false);
    public boolean LJFF;

    static {
        Covode.recordClassIndex(84759);
    }

    public final void onStateChanged(0CH r2, 0CB r3) {
        if (r3 == 0CB.ON_RESUME) {
            onResume$im_base_release();
        }
    }

    @0CN(LIZ = 0CB.ON_RESUME)
    public final void onResume$im_base_release() {
        if (this.LJFF) {
            this.LIZLLL.postValue(true);
        }
    }

    public final void LIZ(String str) {
        M12.LIZ(str);
        if (str.length() > 0) {
            C28173Uj.LIZIZ(str, "chat", "click_reaction", C26213Mv.LIZ);
            IdN.LIZJ.LIZ(str);
            this.LJFF = true;
        }
    }
}
