package com.ss.android.ugc.aweme.ecommerce.combinepayment.ordersubmit.viewholder;

import X.0CB;
import X.0CH;
import X.6Is;
import X.7he;
import X.BTH;
import X.C3358BHe;
import X.C5057BtV;
import X.C5081Btt;
import X.C5129Buf;
import X.C5133Buj;
import X.C5156Bv6;
import X.C5168BvI;
import X.CE9;
import X.Crj;
import X.D1G;
import X.DV0;
import X.KEM;
import X.M12;
import android.view.View;
import com.bytedance.covode.number.Covode;
import com.bytedance.jedi.ext.adapter.JediSimpleViewHolder;
import com.ss.android.ugc.aweme.ecommerce.combinepayment.ordersubmit.OrderSubmitViewModel;
import java.util.HashMap;

public final class AddonOrderVH extends JediSimpleViewHolder<C5081Btt> implements 6Is {
    public static final C5168BvI LJIIIZ = new C5168BvI((byte) 0);
    public CE9 LJFF;
    public final View LJI;
    public boolean LJIIJ;
    public final Crj LJIIJJI;

    static {
        Covode.recordClassIndex(69096);
    }

    private final OrderSubmitViewModel LJIIL() {
        return (OrderSubmitViewModel) this.LJIIJJI.getValue();
    }

    public final void onStateChanged(0CH r1, 0CB r2) {
        super.onStateChanged(r1, r2);
    }

    public final void LJ() {
        AddonOrderVH.super.LJ();
        DV0.LIZ(this, LJIIL(), C5133Buj.LIZ, new C5156Bv6(this));
        BTH.LIZLLL.LIZ(this.LJI, true);
    }

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public AddonOrderVH(View view) {
        super(view);
        M12.LIZ(view);
        this.LJI = view;
        D1G LIZ = KEM.LIZ.LIZ(OrderSubmitViewModel.class);
        this.LJIIJJI = 7he.LIZ(new C3358BHe(this, LIZ, LIZ));
    }

    /* JADX WARNING: Code restructure failed: missing block: B:109:?, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:55:0x01bf, code lost:
        if (r6 != null) goto L_0x01c1;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:57:0x01c3, code lost:
        if (r0 == null) goto L_0x01c5;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:58:0x01c5, code lost:
        r0 = r5;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:59:0x01c6, code lost:
        r4.LJJJJLL = r2.LIZ(r1, r5, r0);
        r4 = LJIIL();
        r2 = X.LoQ.LIZ;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:60:0x01d2, code lost:
        if (r6 == null) goto L_0x01d8;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:61:0x01d4, code lost:
        r1 = r6.LJIIIIZZ;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:62:0x01d6, code lost:
        if (r1 != null) goto L_0x01db;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:63:0x01d8, code lost:
        r1 = r5;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:64:0x01d9, code lost:
        if (r6 == null) goto L_0x01df;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:65:0x01db, code lost:
        r0 = r6.LJFF;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:66:0x01dd, code lost:
        if (r0 != null) goto L_0x01e0;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:67:0x01df, code lost:
        r0 = r5;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:68:0x01e0, code lost:
        r4.LJJJJZ = r2.LIZ(r1, r5, r0);
        r4 = X.C5057BtV.LJIIL;
        r2 = LJIIL().LJFF(false);
        r2.put("source_page_type", "add_on_order_submit_rec");
        r2.put("entrance_form", "append_goods_card");
        r2.put("item_order", 2);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:69:0x0208, code lost:
        if (r6 == null) goto L_0x020e;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:70:0x020a, code lost:
        r1 = r6.LIZIZ;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:71:0x020c, code lost:
        if (r1 != null) goto L_0x020f;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:72:0x020e, code lost:
        r1 = r5;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:73:0x020f, code lost:
        r2.put("original_price", r1);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:74:0x0214, code lost:
        if (r6 == null) goto L_0x021a;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:75:0x0216, code lost:
        r1 = r6.LJI;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:76:0x0218, code lost:
        if (r1 != null) goto L_0x021b;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:77:0x021a, code lost:
        r1 = r5;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:78:0x021b, code lost:
        r2.put("sale_price", r1);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:79:0x0220, code lost:
        if (r6 == null) goto L_0x0226;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:80:0x0222, code lost:
        r1 = r6.LJII;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:81:0x0224, code lost:
        if (r1 != null) goto L_0x0227;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:82:0x0226, code lost:
        r1 = r5;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:83:0x0227, code lost:
        r2.put("currency", r1);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:84:0x022c, code lost:
        if (r6 == null) goto L_0x0232;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:85:0x022e, code lost:
        r1 = r6.LJFF;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:86:0x0230, code lost:
        if (r1 != null) goto L_0x0233;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:87:0x0232, code lost:
        r1 = r5;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:88:0x0233, code lost:
        r2.put("parent_product_id", r1);
        r1 = LJIIL().LJJJJZ;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:89:0x023e, code lost:
        if (r1 != null) goto L_0x0241;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:90:0x0240, code lost:
        r1 = r5;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:91:0x0241, code lost:
        r2.put("parent_track_id", r1);
        r1 = LJIIL().LJJJJLL;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:92:0x024c, code lost:
        if (r1 != null) goto L_0x024f;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:93:0x024e, code lost:
        r1 = r5;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:94:0x024f, code lost:
        r2.put("track_id", r1);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:95:0x0254, code lost:
        if (r6 == null) goto L_0x025a;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:96:0x0256, code lost:
        r0 = r6.LJ;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:97:0x0258, code lost:
        if (r0 != null) goto L_0x0268;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:98:0x025a, code lost:
        r2.put("product_id", r5);
        r4.LIZ("tiktokec_product_show", (java.util.HashMap<java.lang.String, java.lang.Object>) r2);
        r3.LJIIJ = true;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:99:0x0268, code lost:
        r5 = r0;
     */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final /* synthetic */ void LIZ(java.lang.Object r17) {
        /*
            r16 = this;
            r8 = r17
            r3 = r16
            X.Btt r8 = (X.C5081Btt) r8
            X.M12.LIZ(r8)
            android.view.View r1 = r3.LJI
            r0 = 2131363673(0x7f0a0759, float:1.8347161E38)
            android.view.View r12 = r1.findViewById(r0)
            androidx.constraintlayout.widget.ConstraintLayout r12 = (androidx.constraintlayout.widget.ConstraintLayout) r12
            android.view.View r1 = r3.LJI
            r0 = 2131368878(0x7f0a1bae, float:1.8357718E38)
            android.view.View r7 = r1.findViewById(r0)
            X.Byw r7 = (X.C5394Byw) r7
            android.view.View r1 = r3.LJI
            r0 = 2131368862(0x7f0a1b9e, float:1.8357686E38)
            android.view.View r11 = r1.findViewById(r0)
            com.bytedance.lighten.loader.SmartImageView r11 = (com.bytedance.lighten.loader.SmartImageView) r11
            android.view.View r1 = r3.LJI
            r0 = 2131368876(0x7f0a1bac, float:1.8357714E38)
            android.view.View r4 = r1.findViewById(r0)
            android.widget.TextView r4 = (android.widget.TextView) r4
            android.view.View r1 = r3.LJI
            r0 = 2131369302(0x7f0a1d56, float:1.8358578E38)
            android.view.View r2 = r1.findViewById(r0)
            android.widget.TextView r2 = (android.widget.TextView) r2
            android.view.View r1 = r3.LJI
            r0 = 2131368284(0x7f0a195c, float:1.8356514E38)
            android.view.View r15 = r1.findViewById(r0)
            android.widget.TextView r15 = (android.widget.TextView) r15
            android.view.View r1 = r3.LJI
            r0 = 2131366210(0x7f0a1142, float:1.8352307E38)
            android.view.View r1 = r1.findViewById(r0)
            android.widget.TextView r1 = (android.widget.TextView) r1
            android.view.View r5 = r3.LJI
            r0 = 2131362170(0x7f0a017a, float:1.8344113E38)
            android.view.View r10 = r5.findViewById(r0)
            android.widget.TextView r10 = (android.widget.TextView) r10
            android.view.View r5 = r3.LJI
            r0 = 2131362166(0x7f0a0176, float:1.8344105E38)
            android.view.View r0 = r5.findViewById(r0)
            X.CE9 r0 = (X.CE9) r0
            r3.LJFF = r0
            java.util.List<X.Buf> r0 = r8.LIZ
            java.lang.Object r6 = X.Lea.LJIIIIZZ(r0)
            X.Buf r6 = (X.C5129Buf) r6
            java.util.Map<java.lang.String, java.lang.Boolean> r0 = r8.LIZIZ
            if (r0 == 0) goto L_0x0289
            java.util.Set r0 = r0.entrySet()
            if (r0 == 0) goto L_0x0289
            java.lang.Object r0 = X.Lea.LJ(r0)
            java.util.Map$Entry r0 = (java.util.Map.Entry) r0
            if (r0 == 0) goto L_0x0289
            java.lang.Object r0 = r0.getValue()
            java.lang.Boolean r0 = (java.lang.Boolean) r0
            if (r0 == 0) goto L_0x0289
            boolean r13 = r0.booleanValue()
        L_0x0094:
            java.lang.String r14 = r8.LIZJ
            r9 = 1
            if (r14 == 0) goto L_0x009f
            int r0 = r14.length()
            if (r0 != 0) goto L_0x0286
        L_0x009f:
            r0 = 1
        L_0x00a0:
            java.lang.String r5 = ""
            if (r0 != 0) goto L_0x027d
            kotlin.h.b.n.LIZIZ(r10, r5)
            X.C5502C1q.LIZ((android.view.View) r10, (boolean) r9)
            r10.setText(r14)
            r0 = 0
        L_0x00ae:
            kotlin.h.b.n.LIZIZ(r1, r5)
            r1.setVisibility(r0)
            java.lang.StringBuilder r9 = new java.lang.StringBuilder
            java.lang.String r0 = "x "
            r9.<init>(r0)
            if (r6 == 0) goto L_0x027a
            int r0 = r6.LJIIJ
            java.lang.Integer r0 = java.lang.Integer.valueOf(r0)
        L_0x00c3:
            r9.append(r0)
            java.lang.String r0 = r9.toString()
            r1.setText(r0)
            X.05m r14 = new X.05m
            r14.<init>()
            r14.LIZ(r12)
            r1 = 2131368815(0x7f0a1b6f, float:1.835759E38)
            r14.LIZ(r1)
            r0 = 0
            r14.LIZJ(r1, r0)
            r0 = -2
            r14.LIZIZ(r1, r0)
            r9 = 4
            r0 = 2131368862(0x7f0a1b9e, float:1.8357686E38)
            r14.LIZ(r1, r9, r0, r9)
            r10 = 6
            r0 = 2131368878(0x7f0a1bae, float:1.8357718E38)
            r14.LIZ(r1, r10, r0, r10)
            r9 = 7
            r1 = 2131368876(0x7f0a1bac, float:1.8357714E38)
            r0 = 2131366210(0x7f0a1142, float:1.8352307E38)
            r14.LIZ(r1, r9, r0, r10)
            r14.LIZIZ(r12)
            if (r6 == 0) goto L_0x0276
            com.ss.android.ugc.aweme.ecommerce.service.vo.Image r0 = r6.LJIIJJI
            if (r0 == 0) goto L_0x011c
            X.B3G r0 = r0.toImageUrlModel()
            if (r0 == 0) goto L_0x011c
            X.QJt r1 = X.QHW.LIZ(r0)
            X.4ma r0 = X.4ma.HIGH
            r1.LJJII = r0
            java.lang.String r0 = "product_image_tag"
            r1.LIZ(r0)
            r1.LJJIIZ = r11
            r1.LIZJ()
        L_0x011c:
            java.lang.String r1 = r6.LJIIL
            java.util.List<com.ss.android.ugc.aweme.ecommerce.pdp.repository.dto.PromotionLogo> r0 = r6.LJIJ
        L_0x0120:
            r7.LIZ(r1, r0)
            kotlin.h.b.n.LIZIZ(r2, r5)
            if (r6 == 0) goto L_0x0273
            java.lang.String r0 = r6.LJIILJJIL
        L_0x012a:
            r2.setText(r0)
            if (r6 == 0) goto L_0x0270
            java.lang.String r0 = r6.LIZ
            if (r0 == 0) goto L_0x0270
            int r14 = r0.length()
        L_0x0137:
            android.text.SpannableString r10 = new android.text.SpannableString
            if (r6 == 0) goto L_0x026d
            java.lang.String r0 = r6.LIZ
        L_0x013d:
            r10.<init>(r0)
            android.text.style.StrikethroughSpan r9 = new android.text.style.StrikethroughSpan
            r9.<init>()
            r1 = 17
            r0 = 0
            r10.setSpan(r9, r0, r14, r1)
            android.text.style.ForegroundColorSpan r9 = new android.text.style.ForegroundColorSpan
            android.view.View r0 = r3.LJI
            android.content.Context r1 = r0.getContext()
            r0 = 2131099758(0x7f06006e, float:1.7811878E38)
            int r0 = X.070.LIZJ(r1, r0)
            r9.<init>(r0)
            r1 = 17
            r0 = 0
            r10.setSpan(r9, r0, r14, r1)
            kotlin.h.b.n.LIZIZ(r15, r5)
            r15.setText(r10)
            X.Bv7 r0 = new X.Bv7
            r0.<init>(r4, r12)
            r4.addOnLayoutChangeListener(r0)
            X.CE9 r0 = r3.LJFF
            if (r0 == 0) goto L_0x0178
            r0.setChecked(r13)
        L_0x0178:
            X.Bv8 r0 = new X.Bv8
            r0.<init>(r3, r8, r6)
            r12.setOnTouchListener(r0)
            X.BvB r0 = new X.BvB
            r0.<init>(r3, r8, r6)
            r11.setOnTouchListener(r0)
            X.CE9 r1 = r3.LJFF
            if (r1 == 0) goto L_0x0194
            X.Bv9 r0 = new X.Bv9
            r0.<init>(r3, r8, r6)
            r1.setOnTouchListener(r0)
        L_0x0194:
            X.BvA r0 = new X.BvA
            r0.<init>(r3, r8, r6)
            r7.setOnTouchListener(r0)
            kotlin.h.b.n.LIZIZ(r4, r5)
            if (r6 == 0) goto L_0x026a
            java.lang.String r0 = r6.LJIILIIL
        L_0x01a3:
            r4.setText(r0)
            r0 = 0
            r4.setVisibility(r0)
            r0 = 1
            X.C5502C1q.LIZ((android.view.View) r2, (boolean) r0)
            boolean r0 = r3.LJIIJ
            if (r0 != 0) goto L_0x0267
            com.ss.android.ugc.aweme.ecommerce.combinepayment.ordersubmit.OrderSubmitViewModel r4 = r16.LJIIL()
            X.LoQ r2 = X.LoQ.LIZ
            if (r6 == 0) goto L_0x01be
            java.lang.String r1 = r6.LJIIIIZZ
            if (r1 != 0) goto L_0x01c1
        L_0x01be:
            r1 = r5
            if (r6 == 0) goto L_0x01c5
        L_0x01c1:
            java.lang.String r0 = r6.LJ
            if (r0 != 0) goto L_0x01c6
        L_0x01c5:
            r0 = r5
        L_0x01c6:
            java.lang.String r0 = r2.LIZ(r1, r5, r0)
            r4.LJJJJLL = r0
            com.ss.android.ugc.aweme.ecommerce.combinepayment.ordersubmit.OrderSubmitViewModel r4 = r16.LJIIL()
            X.LoQ r2 = X.LoQ.LIZ
            if (r6 == 0) goto L_0x01d8
            java.lang.String r1 = r6.LJIIIIZZ
            if (r1 != 0) goto L_0x01db
        L_0x01d8:
            r1 = r5
            if (r6 == 0) goto L_0x01df
        L_0x01db:
            java.lang.String r0 = r6.LJFF
            if (r0 != 0) goto L_0x01e0
        L_0x01df:
            r0 = r5
        L_0x01e0:
            java.lang.String r0 = r2.LIZ(r1, r5, r0)
            r4.LJJJJZ = r0
            X.BtV r4 = X.C5057BtV.LJIIL
            com.ss.android.ugc.aweme.ecommerce.combinepayment.ordersubmit.OrderSubmitViewModel r0 = r16.LJIIL()
            java.util.HashMap r2 = r0.LJFF(false)
            java.lang.String r1 = "source_page_type"
            java.lang.String r0 = "add_on_order_submit_rec"
            r2.put(r1, r0)
            java.lang.String r1 = "entrance_form"
            java.lang.String r0 = "append_goods_card"
            r2.put(r1, r0)
            r0 = 2
            java.lang.Integer r1 = java.lang.Integer.valueOf(r0)
            java.lang.String r0 = "item_order"
            r2.put(r0, r1)
            if (r6 == 0) goto L_0x020e
            java.lang.String r1 = r6.LIZIZ
            if (r1 != 0) goto L_0x020f
        L_0x020e:
            r1 = r5
        L_0x020f:
            java.lang.String r0 = "original_price"
            r2.put(r0, r1)
            if (r6 == 0) goto L_0x021a
            java.lang.String r1 = r6.LJI
            if (r1 != 0) goto L_0x021b
        L_0x021a:
            r1 = r5
        L_0x021b:
            java.lang.String r0 = "sale_price"
            r2.put(r0, r1)
            if (r6 == 0) goto L_0x0226
            java.lang.String r1 = r6.LJII
            if (r1 != 0) goto L_0x0227
        L_0x0226:
            r1 = r5
        L_0x0227:
            java.lang.String r0 = "currency"
            r2.put(r0, r1)
            if (r6 == 0) goto L_0x0232
            java.lang.String r1 = r6.LJFF
            if (r1 != 0) goto L_0x0233
        L_0x0232:
            r1 = r5
        L_0x0233:
            java.lang.String r0 = "parent_product_id"
            r2.put(r0, r1)
            com.ss.android.ugc.aweme.ecommerce.combinepayment.ordersubmit.OrderSubmitViewModel r0 = r16.LJIIL()
            java.lang.String r1 = r0.LJJJJZ
            if (r1 != 0) goto L_0x0241
            r1 = r5
        L_0x0241:
            java.lang.String r0 = "parent_track_id"
            r2.put(r0, r1)
            com.ss.android.ugc.aweme.ecommerce.combinepayment.ordersubmit.OrderSubmitViewModel r0 = r16.LJIIL()
            java.lang.String r1 = r0.LJJJJLL
            if (r1 != 0) goto L_0x024f
            r1 = r5
        L_0x024f:
            java.lang.String r0 = "track_id"
            r2.put(r0, r1)
            if (r6 == 0) goto L_0x025a
            java.lang.String r0 = r6.LJ
            if (r0 != 0) goto L_0x0268
        L_0x025a:
            java.lang.String r0 = "product_id"
            r2.put(r0, r5)
            java.lang.String r0 = "tiktokec_product_show"
            r4.LIZ((java.lang.String) r0, (java.util.HashMap<java.lang.String, java.lang.Object>) r2)
            r0 = 1
            r3.LJIIJ = r0
        L_0x0267:
            return
        L_0x0268:
            r5 = r0
            goto L_0x025a
        L_0x026a:
            r0 = 0
            goto L_0x01a3
        L_0x026d:
            r0 = 0
            goto L_0x013d
        L_0x0270:
            r14 = 0
            goto L_0x0137
        L_0x0273:
            r0 = 0
            goto L_0x012a
        L_0x0276:
            r1 = 0
            r0 = 0
            goto L_0x0120
        L_0x027a:
            r0 = 0
            goto L_0x00c3
        L_0x027d:
            kotlin.h.b.n.LIZIZ(r10, r5)
            r0 = 0
            X.C5502C1q.LIZ((android.view.View) r10, (boolean) r0)
            goto L_0x00ae
        L_0x0286:
            r0 = 0
            goto L_0x00a0
        L_0x0289:
            r13 = 0
            goto L_0x0094
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.ecommerce.combinepayment.ordersubmit.viewholder.AddonOrderVH.LIZ(java.lang.Object):void");
    }

    public final boolean LIZ(C5081Btt btt, C5129Buf buf, String str) {
        boolean z;
        String str2;
        String str3;
        String str4;
        String str5;
        String str6;
        String str7;
        String str8;
        String str9;
        String str10;
        String str11;
        String str12;
        CE9 ce9 = this.LJFF;
        if (ce9 == null || !ce9.isChecked()) {
            z = true;
        } else {
            z = false;
        }
        OrderSubmitViewModel LJIIL = LJIIL();
        C5081Btt btt2 = btt;
        OrderSubmitViewModel.LIZ(LJIIL, false, false, false, false, LJIIL.LIZ(LJIIL.LIZJ, btt2, z), false, false, LJIIL.LIZ(btt2, z), 237);
        C5129Buf buf2 = buf;
        if (z) {
            C5057BtV btV = C5057BtV.LJIIL;
            HashMap<String, Object> LJFF2 = LJIIL().LJFF(false);
            LJFF2.put("source_page_type", "add_on_order_submit_rec");
            LJFF2.put("entrance_form", "append_goods_card");
            LJFF2.put("item_order", 2);
            if (buf2 == null || (str8 = buf2.LIZIZ) == null) {
                str8 = "";
            }
            LJFF2.put("original_price", str8);
            if (buf2 == null || (str9 = buf2.LJI) == null) {
                str9 = "";
            }
            LJFF2.put("sale_price", str9);
            if (buf2 == null || (str10 = buf2.LJII) == null) {
                str10 = "";
            }
            LJFF2.put("currency", str10);
            if (buf2 == null || (str11 = buf2.LJFF) == null) {
                str11 = "";
            }
            LJFF2.put("parent_product_id", str11);
            LJFF2.put("click_area", str);
            String str13 = LJIIL().LJJJJZ;
            if (str13 == null) {
                str13 = "";
            }
            LJFF2.put("parent_track_id", str13);
            String str14 = LJIIL().LJJJJLL;
            if (str14 == null) {
                str14 = "";
            }
            LJFF2.put("track_id", str14);
            if (buf2 == null || (str12 = buf2.LJ) == null) {
                str12 = "";
            }
            LJFF2.put("product_id", str12);
            btV.LIZ("tiktokec_product_click", LJFF2);
        } else {
            z = false;
        }
        C5057BtV btV2 = C5057BtV.LJIIL;
        HashMap<String, Object> LJFF3 = LJIIL().LJFF(false);
        LJFF3.put("source_page_type", "add_on_order_submit_rec");
        LJFF3.put("entrance_form", "append_goods_card");
        LJFF3.put("item_order", 2);
        if (buf2 == null || (str2 = buf2.LIZIZ) == null) {
            str2 = "";
        }
        LJFF3.put("original_price", str2);
        if (buf2 == null || (str3 = buf2.LJI) == null) {
            str3 = "";
        }
        LJFF3.put("sale_price", str3);
        if (buf2 == null || (str4 = buf2.LJII) == null) {
            str4 = "";
        }
        LJFF3.put("currency", str4);
        if (buf2 == null || (str5 = buf2.LJFF) == null) {
            str5 = "";
        }
        LJFF3.put("parent_product_id", str5);
        LJFF3.put("click_area", "other");
        String str15 = LJIIL().LJJJJZ;
        if (str15 == null) {
            str15 = "";
        }
        LJFF3.put("parent_track_id", str15);
        if (z) {
            str6 = "select";
        } else {
            str6 = "cancel";
        }
        LJFF3.put("action_type", str6);
        String str16 = LJIIL().LJJJJLL;
        if (str16 == null) {
            str16 = "";
        }
        LJFF3.put("track_id", str16);
        if (buf2 == null || (str7 = buf2.LJ) == null) {
            str7 = "";
        }
        LJFF3.put("product_id", str7);
        btV2.LIZ("tiktokec_product_select_option", LJFF3);
        return true;
    }
}
