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

import X.0Br;
import X.1Bn;
import X.2Pr;
import X.C0939Ia2;
import X.C0940Ia3;
import X.C0941Ia4;
import X.C4190JlN;
import X.LsC;
import X.M12;
import androidx.lifecycle.LiveData;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.base.model.UrlModel;
import com.ss.android.ugc.aweme.im.sdk.chat.feature.group.viewmodel.GroupChatViewModel;
import kotlin.h.b.n;

public final class GroupQuickChatRoomViewModel extends BaseQuickChatRoomViewModel {
    public final LiveData<String> LJIIIIZZ;
    public final LsC<C4190JlN, String> LJIIIZ;
    public final 1Bn<String> LJIIJ;
    public final LiveData<String> LJIIJJI;
    public final LiveData<String> LJIIL;
    public final LiveData<UrlModel> LJIILIIL;
    public final LiveData<UrlModel> LJIILJJIL;

    static {
        Covode.recordClassIndex(84686);
    }

    public final LiveData<String> LIZ() {
        return this.LJIIL;
    }

    public final LiveData<UrlModel> LIZIZ() {
        return this.LJIILJJIL;
    }

    public final void LIZJ() {
        this.LJIIJ.postValue("name");
    }

    public /* synthetic */ GroupQuickChatRoomViewModel(GroupChatViewModel groupChatViewModel) {
        this(groupChatViewModel, new LsC<C4190JlN, String>(C0939Ia2.LIZ) {
            static {
                Covode.recordClassIndex(84687);
            }

            public final /* synthetic */ Object invoke(Object obj) {
                return C0939Ia2.LJ((C4190JlN) obj);
            }
        });
    }

    public final void LIZ(int i) {
        if (n.LIZ(this.LIZIZ.getValue(), true)) {
            this.LJIIJ.postValue("button");
        } else {
            this.LJ.postValue(2Pr.LIZ);
        }
    }

    public GroupQuickChatRoomViewModel(GroupChatViewModel groupChatViewModel, LsC<? super C4190JlN, String> lsC) {
        M12.LIZ(groupChatViewModel, lsC);
        this.LJIIIZ = lsC;
        1Bn<String> r0 = new 1Bn<>();
        this.LJIIJ = r0;
        this.LJIIIIZZ = r0;
        LiveData<String> LIZ = 0Br.LIZ(groupChatViewModel.LIZIZ, new C0940Ia3(this));
        this.LJIIJJI = LIZ;
        n.LIZIZ(LIZ, "");
        this.LJIIL = LIZ;
        LiveData<UrlModel> LIZ2 = 0Br.LIZ(groupChatViewModel.LIZIZ, C0941Ia4.LIZ);
        this.LJIILIIL = LIZ2;
        n.LIZIZ(LIZ2, "");
        this.LJIILJJIL = LIZ2;
    }
}
