package com.ss.android.ugc.aweme.sticker.view.internal.search;

import X.0CH;
import X.0CM;
import X.C0823IVq;
import X.N6n;
import X.N9d;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.effectmanager.effect.model.CategoryEffectModel;
import com.ss.android.ugc.effectmanager.effect.model.PanelInfoModel;
import com.ss.android.ugc.effectmanager.effect.model.template.PanelInfoModelTemplate;

public final class SearchStickerViewModel$3 implements 0CM<N6n<PanelInfoModel>> {
    public final /* synthetic */ SearchStickerViewModel LIZ;
    public final /* synthetic */ N9d LIZIZ;
    public final /* synthetic */ 0CH LIZJ;

    static {
        Covode.recordClassIndex(116707);
    }

    public final /* synthetic */ void onChanged(Object obj) {
        PanelInfoModelTemplate panelInfoModelTemplate;
        CategoryEffectModel categoryEffectModel;
        String categoryKey;
        N6n n6n = (N6n) obj;
        if (n6n != null && (panelInfoModelTemplate = (PanelInfoModelTemplate) n6n.LIZ) != null && (categoryEffectModel = panelInfoModelTemplate.getCategoryEffectModel()) != null && (categoryKey = categoryEffectModel.getCategoryKey()) != null && categoryKey.length() != 0 && categoryEffectModel != null) {
            this.LIZIZ.LIZJ().LJIIIZ().LIZ(true).removeObserver(this);
            this.LIZIZ.LIZJ().LJIIIZ().LIZ(categoryEffectModel.getCategoryKey(), true).observe(this.LIZJ, new C0823IVq(categoryEffectModel, this));
        }
    }

    public SearchStickerViewModel$3(SearchStickerViewModel searchStickerViewModel, N9d n9d, 0CH r3) {
        this.LIZ = searchStickerViewModel;
        this.LIZIZ = n9d;
        this.LIZJ = r3;
    }
}
