package com.ss.android.ugc.effectmanager.knadapt;

import X.B6m;
import X.LsC;
import X.M12;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.effectmanager.effect.model.CategoryEffectModel;
import com.ss.ugc.effectplatform.model.PanelInfoModel;
import java.util.List;

public final class ListenerAdaptExtKt$preProcess$3 extends B6m implements LsC<PanelInfoModel, com.ss.android.ugc.effectmanager.effect.model.PanelInfoModel> {
    public static final ListenerAdaptExtKt$preProcess$3 INSTANCE = new ListenerAdaptExtKt$preProcess$3();

    static {
        Covode.recordClassIndex(125545);
    }

    public ListenerAdaptExtKt$preProcess$3() {
        super(1);
    }

    public final com.ss.android.ugc.effectmanager.effect.model.PanelInfoModel invoke(PanelInfoModel panelInfoModel) {
        List bindEffects;
        List collectEffects;
        M12.LIZ(panelInfoModel);
        com.ss.android.ugc.effectmanager.effect.model.PanelInfoModel panelInfoModel2 = new com.ss.android.ugc.effectmanager.effect.model.PanelInfoModel(panelInfoModel);
        CategoryEffectModel categoryEffectModel = panelInfoModel2.getCategoryEffectModel();
        if (!(categoryEffectModel == null || (collectEffects = categoryEffectModel.getCollectEffects()) == null)) {
            ListenerAdaptExtKt.preProcess(collectEffects);
        }
        CategoryEffectModel categoryEffectModel2 = panelInfoModel2.getCategoryEffectModel();
        if (!(categoryEffectModel2 == null || (bindEffects = categoryEffectModel2.getBindEffects()) == null)) {
            ListenerAdaptExtKt.preProcess(bindEffects);
        }
        panelInfoModel2.getCategoryList();
        return panelInfoModel2;
    }
}
