package com.ss.android.ugc.effectmanager.effect.model;

import X.2HN;
import X.C2904Q8n;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.effectmanager.effect.model.template.DownloadEffectExtraTemplate;
import java.io.Serializable;

public final class DownloadEffectExtra extends DownloadEffectExtraTemplate implements Serializable {
    public final transient C2904Q8n kDownloadEffect;

    static {
        Covode.recordClassIndex(125381);
    }

    public DownloadEffectExtra() {
        this((C2904Q8n) null, 1, (2HN) null);
    }

    public final C2904Q8n getKDownloadEffect() {
        return this.kDownloadEffect;
    }

    public final String getPanel() {
        String panel;
        C2904Q8n kDownloadEffect2 = getKDownloadEffect();
        if (kDownloadEffect2 == null || (panel = kDownloadEffect2.getPanel()) == null) {
            return super.getPanel();
        }
        return panel;
    }

    public final void setPanel(String str) {
        C2904Q8n kDownloadEffect2 = getKDownloadEffect();
        if (kDownloadEffect2 != null) {
            kDownloadEffect2.setPanel(str);
        }
        super.setPanel(str);
    }

    public DownloadEffectExtra(C2904Q8n q8n) {
        super(q8n);
        String panel;
        this.kDownloadEffect = q8n;
        C2904Q8n kDownloadEffect2 = getKDownloadEffect();
        if (kDownloadEffect2 != null && (panel = kDownloadEffect2.getPanel()) != null) {
            super.setPanel(panel);
        }
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ DownloadEffectExtra(C2904Q8n q8n, int i, 2HN r4) {
        this((i & 1) != 0 ? null : q8n);
    }
}
