package com.ss.android.ugc.aweme.ecommerce.pdp.vh;

import X.0CB;
import X.0CH;
import X.2k0;
import X.3SB;
import X.4r1;
import X.6Is;
import X.7he;
import X.BHF;
import X.BJ3;
import X.BTH;
import X.C5352ByG;
import X.C5353ByH;
import X.C5354ByI;
import X.C5553C3p;
import X.CG9;
import X.Crj;
import X.D1G;
import X.KEM;
import X.M12;
import android.view.View;
import androidx.fragment.app.Fragment;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.ecommerce.pdp.PdpViewModel;
import com.ss.android.ugc.aweme.ecommerce.pdp.repository.dto.ProductPackStruct;
import java.util.LinkedHashMap;
import kotlin.h.b.n;

public final class PdpPolicyHolder extends PdpHolder<C5354ByI> implements 6Is {
    public final Fragment LJFF;

    static {
        Covode.recordClassIndex(71631);
    }

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

    /* JADX WARNING: type inference failed for: r0v10, types: [android.view.View$OnClickListener, X.C3p] */
    public final /* synthetic */ void LIZ(Object obj) {
        C5354ByI byI = (C5354ByI) obj;
        M12.LIZ(byI);
        Integer num = null;
        3SB.LIZ(this.LJFF, new C5352ByG(this, byI, (4r1) null));
        D1G LIZ = KEM.LIZ.LIZ(PdpViewModel.class);
        Crj LIZ2 = 7he.LIZ(new BHF(this, LIZ, LIZ));
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        ProductPackStruct productPackStruct = ((PdpViewModel) LIZ2.getValue()).LIZLLL;
        if (productPackStruct != null) {
            num = productPackStruct.LJIILL;
        }
        if (num != null && num.intValue() == 1) {
            linkedHashMap.put("module_text", "refund_not_supported");
        }
        CG9 cg9 = ((PdpViewModel) LIZ2.getValue()).LJJ;
        if (cg9 != null) {
            M12.LIZ(linkedHashMap);
            if (!cg9.LJJIIZ) {
                cg9.LJJIIZ = true;
                2k0.LIZ.LIZ("tiktokec_module_show", new C5353ByH(cg9, linkedHashMap));
            }
        }
        View view = this.itemView;
        n.LIZIZ(view, "");
        view.setOnClickListener(new C5553C3p(this, LIZ2, linkedHashMap, byI));
        BJ3 bj3 = BTH.LIZLLL;
        View view2 = this.itemView;
        n.LIZIZ(view2, "");
        bj3.LIZ(view2, false);
    }

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public PdpPolicyHolder(View view, Fragment fragment) {
        super(view, 2131559135);
        M12.LIZ(view, fragment);
        this.LJFF = fragment;
    }
}
