package com.ss.android.ugc.aweme.notification.module.cell;

import X.0HH;
import X.78T;
import X.C1880Dgq;
import X.C3339EAl;
import X.C3494EGk;
import X.C3500EGq;
import X.C3509EGz;
import X.E78;
import X.EHD;
import X.M12;
import X.PMk;
import X.PMp;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.notice.repo.list.bean.BaseNotice;
import kotlin.h.b.n;

public final class TemplateCell extends NotificationCell<EHD> {
    public static final /* synthetic */ PMp[] LJIIJ = {new PMk(TemplateCell.class, "control", "getControl()Lcom/ss/android/ugc/aweme/notification/module/NotificationChunk$CellControl;", 0)};
    public C3339EAl LJIIJJI;
    public final 78T LJIIL = new C3500EGq(this);

    public final C3494EGk LIZIZ() {
        return (C3494EGk) this.LJIIL.LIZ(this, LJIIJ[0]);
    }

    public final void LIZ() {
        super.LIZ();
        EHD ehd = (EHD) this.LIZLLL;
        if (ehd != null) {
            LIZIZ(ehd);
        }
    }

    public final void bE_() {
        super.bE_();
        C3339EAl eAl = this.LJIIJJI;
        if (eAl == null) {
            n.LIZ("");
        }
        eAl.dl_();
    }

    public final void bF_() {
        super.bF_();
        C3339EAl eAl = this.LJIIJJI;
        if (eAl == null) {
            n.LIZ("");
        }
        eAl.LIZLLL();
    }

    static {
        Covode.recordClassIndex(95662);
    }

    /* access modifiers changed from: private */
    public void LIZ(EHD ehd) {
        M12.LIZ(ehd);
        super.LIZ(ehd);
        C3339EAl eAl = this.LJIIJJI;
        if (eAl == null) {
            n.LIZ("");
        }
        eAl.LIZ((C1880Dgq) LIZIZ());
        C3339EAl eAl2 = this.LJIIJJI;
        if (eAl2 == null) {
            n.LIZ("");
        }
        C3494EGk LIZIZ = LIZIZ();
        if (LIZIZ == null) {
            n.LIZIZ();
        }
        eAl2.LJIIIIZZ = LIZIZ.LIZIZ;
        LIZIZ(ehd);
    }

    private final void LIZIZ(EHD ehd) {
        C3339EAl eAl = this.LJIIJJI;
        if (eAl == null) {
            n.LIZ("");
        }
        eAl.LIZ((BaseNotice) ehd.LIZIZ, ehd.LIZ - 1);
        C3339EAl eAl2 = this.LJIIJJI;
        if (eAl2 == null) {
            n.LIZ("");
        }
        eAl2.LIZ(ehd.LIZIZ, ehd.LIZ - 1, "", "", "notification_page", ehd.LIZJ, E78.LIZLLL.LIZ(ehd.LIZIZ.type));
    }

    public final View LIZ(ViewGroup viewGroup) {
        M12.LIZ(viewGroup);
        View LIZ = 0HH.LIZ(LayoutInflater.from(viewGroup.getContext()), 2131558898, viewGroup, false);
        n.LIZIZ(LIZ, "");
        this.LJIIJJI = new C3339EAl(LIZ, new C3509EGz(this));
        return LIZ;
    }
}
