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

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

public final class EffectQRCode extends EffectQRCodeTemplate implements Serializable {
    public final transient com.ss.ugc.effectplatform.model.EffectQRCode kQrcode;

    static {
        Covode.recordClassIndex(125392);
    }

    public EffectQRCode() {
        this((com.ss.ugc.effectplatform.model.EffectQRCode) null, 1, (2HN) null);
    }

    public final com.ss.ugc.effectplatform.model.EffectQRCode getKQrcode() {
        return this.kQrcode;
    }

    public final String getQrCodeText() {
        String qrCodeText;
        com.ss.ugc.effectplatform.model.EffectQRCode kQrcode2 = getKQrcode();
        if (kQrcode2 == null || (qrCodeText = kQrcode2.getQrCodeText()) == null) {
            return super.getQrCodeText();
        }
        return qrCodeText;
    }

    public final void setQrCodeText(String str) {
        M12.LIZ(str);
        com.ss.ugc.effectplatform.model.EffectQRCode kQrcode2 = getKQrcode();
        if (kQrcode2 != null) {
            kQrcode2.setQrCodeText(str);
        }
        super.setQrCodeText(str);
    }

    public EffectQRCode(com.ss.ugc.effectplatform.model.EffectQRCode effectQRCode) {
        super(effectQRCode);
        String qrCodeText;
        this.kQrcode = effectQRCode;
        com.ss.ugc.effectplatform.model.EffectQRCode kQrcode2 = getKQrcode();
        if (kQrcode2 != null && (qrCodeText = kQrcode2.getQrCodeText()) != null) {
            super.setQrCodeText(qrCodeText);
        }
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ EffectQRCode(com.ss.ugc.effectplatform.model.EffectQRCode effectQRCode, int i, 2HN r4) {
        this((i & 1) != 0 ? null : effectQRCode);
    }
}
