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

import X.1hK;
import X.2HN;
import X.C6237CTx;
import X.CTK;
import X.M12;
import com.bytedance.covode.number.Covode;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;

public interface IPdpStarter {
    public static final CTK LIZ = CTK.LIZ;

    static {
        Covode.recordClassIndex(71014);
    }

    C6237CTx LIZ(PdpEnterParam pdpEnterParam, boolean z);

    void LIZ(1hK r1, PdpEnterParam pdpEnterParam);

    public static final class PdpEnterParam implements Serializable {
        public String awemeId;
        public String chainKey;
        public String clickFrom;
        public final Float collapsedHeight;
        public final boolean collapsible;
        public final float expandHeight;
        public final boolean fullScreen;
        public final boolean isPromotionPage;
        public final HashMap<String, Object> orderRequestParams;
        public String pdpCacheKey;
        public HashMap<String, String> pdpPreParam;
        public final boolean playerControl;
        public String preTrackNodeId;
        public final HashMap<String, Object> productEnterContext;
        public final HashMap<String, Object> requestParams;
        public String sourceInfo;
        public final HashMap<String, Object> trackParams;
        public final HashMap<String, Object> visitReportParams;

        static {
            Covode.recordClassIndex(71015);
        }

        public PdpEnterParam() {
            this((HashMap) null, (HashMap) null, (HashMap) null, (HashMap) null, false, 0.0f, (Float) null, false, false, false, (HashMap) null, (String) null, (HashMap) null, (String) null, (String) null, (String) null, 65535, (2HN) null);
        }

        public static /* synthetic */ PdpEnterParam copy$default(PdpEnterParam pdpEnterParam, HashMap hashMap, HashMap hashMap2, HashMap hashMap3, HashMap hashMap4, boolean z, float f, Float f2, boolean z2, boolean z3, boolean z4, HashMap hashMap5, String str, HashMap hashMap6, String str2, String str3, String str4, int i, Object obj) {
            HashMap<String, Object> hashMap7 = hashMap;
            HashMap<String, Object> hashMap8 = hashMap2;
            boolean z5 = z;
            HashMap<String, Object> hashMap9 = hashMap3;
            HashMap hashMap10 = hashMap4;
            boolean z6 = z2;
            float f3 = f;
            Float f4 = f2;
            HashMap hashMap11 = hashMap5;
            boolean z7 = z3;
            boolean z8 = z4;
            String str5 = str2;
            String str6 = str;
            HashMap hashMap12 = hashMap6;
            String str7 = str4;
            String str8 = str3;
            int i2 = i;
            PdpEnterParam pdpEnterParam2 = pdpEnterParam;
            if ((i2 & 1) != 0) {
                hashMap7 = pdpEnterParam2.requestParams;
            }
            if ((i2 & 2) != 0) {
                hashMap8 = pdpEnterParam2.orderRequestParams;
            }
            if ((i2 & 4) != 0) {
                hashMap9 = pdpEnterParam2.trackParams;
            }
            if ((i2 & 8) != 0) {
                hashMap10 = pdpEnterParam2.visitReportParams;
            }
            if ((i2 & 16) != 0) {
                z5 = pdpEnterParam2.fullScreen;
            }
            if ((i2 & 32) != 0) {
                f3 = pdpEnterParam2.expandHeight;
            }
            if ((i2 & 64) != 0) {
                f4 = pdpEnterParam2.collapsedHeight;
            }
            if ((i2 & 128) != 0) {
                z6 = pdpEnterParam2.collapsible;
            }
            if ((i2 & 256) != 0) {
                z7 = pdpEnterParam2.playerControl;
            }
            if ((i2 & 512) != 0) {
                z8 = pdpEnterParam2.isPromotionPage;
            }
            if ((i2 & 1024) != 0) {
                hashMap11 = pdpEnterParam2.productEnterContext;
            }
            if ((i2 & 2048) != 0) {
                str6 = pdpEnterParam2.pdpCacheKey;
            }
            if ((i2 & 4096) != 0) {
                hashMap12 = pdpEnterParam2.pdpPreParam;
            }
            if ((i2 & 8192) != 0) {
                str5 = pdpEnterParam2.preTrackNodeId;
            }
            if ((i2 & 16384) != 0) {
                str8 = pdpEnterParam2.awemeId;
            }
            if ((i2 & 32768) != 0) {
                str7 = pdpEnterParam2.clickFrom;
            }
            HashMap hashMap13 = hashMap10;
            return pdpEnterParam2.copy(hashMap7, hashMap8, hashMap9, hashMap13, z5, f3, f4, z6, z7, z8, hashMap11, str6, hashMap12, str5, str8, str7);
        }

        private Object[] getObjects() {
            return new Object[]{this.requestParams, this.orderRequestParams, this.trackParams, this.visitReportParams, Boolean.valueOf(this.fullScreen), Float.valueOf(this.expandHeight), this.collapsedHeight, Boolean.valueOf(this.collapsible), Boolean.valueOf(this.playerControl), Boolean.valueOf(this.isPromotionPage), this.productEnterContext, this.pdpCacheKey, this.pdpPreParam, this.preTrackNodeId, this.awemeId, this.clickFrom};
        }

        public final PdpEnterParam copy(HashMap<String, Object> hashMap, HashMap<String, Object> hashMap2, HashMap<String, Object> hashMap3, HashMap<String, Object> hashMap4, boolean z, float f, Float f2, boolean z2, boolean z3, boolean z4, HashMap<String, Object> hashMap5, String str, HashMap<String, String> hashMap6, String str2, String str3, String str4) {
            HashMap<String, Object> hashMap7 = hashMap;
            HashMap<String, String> hashMap8 = hashMap6;
            M12.LIZ(hashMap7, hashMap8);
            return new PdpEnterParam(hashMap7, hashMap2, hashMap3, hashMap4, z, f, f2, z2, z3, z4, hashMap5, str, hashMap8, str2, str3, str4);
        }

        public final boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof PdpEnterParam)) {
                return false;
            }
            return M12.LIZ(((PdpEnterParam) obj).getObjects(), getObjects());
        }

        public final int hashCode() {
            return Objects.hash(getObjects());
        }

        public final String toString() {
            return M12.LIZ("IPdpStarter$PdpEnterParam:%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s", getObjects());
        }

        public final String getAwemeId() {
            return this.awemeId;
        }

        public final String getChainKey() {
            return this.chainKey;
        }

        public final String getClickFrom() {
            return this.clickFrom;
        }

        public final Float getCollapsedHeight() {
            return this.collapsedHeight;
        }

        public final boolean getCollapsible() {
            return this.collapsible;
        }

        public final float getExpandHeight() {
            return this.expandHeight;
        }

        public final boolean getFullScreen() {
            return this.fullScreen;
        }

        public final HashMap<String, Object> getOrderRequestParams() {
            return this.orderRequestParams;
        }

        public final String getPdpCacheKey() {
            return this.pdpCacheKey;
        }

        public final HashMap<String, String> getPdpPreParam() {
            return this.pdpPreParam;
        }

        public final boolean getPlayerControl() {
            return this.playerControl;
        }

        public final String getPreTrackNodeId() {
            return this.preTrackNodeId;
        }

        public final HashMap<String, Object> getProductEnterContext() {
            return this.productEnterContext;
        }

        public final HashMap<String, Object> getRequestParams() {
            return this.requestParams;
        }

        public final String getSourceInfo() {
            return this.sourceInfo;
        }

        public final HashMap<String, Object> getTrackParams() {
            return this.trackParams;
        }

        public final HashMap<String, Object> getVisitReportParams() {
            return this.visitReportParams;
        }

        public final boolean isPromotionPage() {
            return this.isPromotionPage;
        }

        public final String getProductId() {
            try {
                Object obj = this.requestParams.get("product_id");
                if (obj != null) {
                    return (String) ((List) obj).get(0);
                }
                throw new NullPointerException("null cannot be cast to non-null type kotlin.collections.List<kotlin.String>");
            } catch (Exception unused) {
                return "";
            }
        }

        public final void setAwemeId(String str) {
            this.awemeId = str;
        }

        public final void setChainKey(String str) {
            this.chainKey = str;
        }

        public final void setClickFrom(String str) {
            this.clickFrom = str;
        }

        public final void setPdpCacheKey(String str) {
            this.pdpCacheKey = str;
        }

        public final void setPreTrackNodeId(String str) {
            this.preTrackNodeId = str;
        }

        public final void setSourceInfo(String str) {
            this.sourceInfo = str;
        }

        public static int INVOKESTATIC_com_ss_android_ugc_aweme_ecommerce_pdp_IPdpStarter$PdpEnterParam_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(float f) {
            return Float.floatToIntBits(f);
        }

        public final void setPdpPreParam(HashMap<String, String> hashMap) {
            M12.LIZ(hashMap);
            this.pdpPreParam = hashMap;
        }

        public PdpEnterParam(HashMap<String, Object> hashMap, HashMap<String, Object> hashMap2, HashMap<String, Object> hashMap3, HashMap<String, Object> hashMap4, boolean z, float f, Float f2, boolean z2, boolean z3, boolean z4, HashMap<String, Object> hashMap5, String str, HashMap<String, String> hashMap6, String str2, String str3, String str4) {
            Object obj;
            Object obj2;
            Object obj3;
            HashMap<String, String> hashMap7 = hashMap6;
            M12.LIZ(hashMap, hashMap7);
            this.requestParams = hashMap;
            this.orderRequestParams = hashMap2;
            this.trackParams = hashMap3;
            this.visitReportParams = hashMap4;
            this.fullScreen = z;
            this.expandHeight = f;
            this.collapsedHeight = f2;
            this.collapsible = z2;
            this.playerControl = z3;
            this.isPromotionPage = z4;
            this.productEnterContext = hashMap5;
            this.pdpCacheKey = str;
            this.pdpPreParam = hashMap7;
            this.preTrackNodeId = str2;
            this.awemeId = str3;
            this.clickFrom = str4;
            String str5 = null;
            if (hashMap4 != null) {
                obj = hashMap4.get("chain_key");
            } else {
                obj = null;
            }
            this.chainKey = (String) (!(obj instanceof String) ? null : obj);
            if (hashMap5 != null) {
                try {
                    obj2 = hashMap5.get(getProductId());
                } catch (Exception unused) {
                }
            } else {
                obj2 = null;
            }
            Map map = (Map) (!(obj2 instanceof Map) ? null : obj2);
            if (map != null) {
                obj3 = map.get("source_info");
            } else {
                obj3 = null;
            }
            str5 = (String) (!(obj3 instanceof String) ? null : obj3);
            this.sourceInfo = str5;
        }

        /* JADX WARNING: Illegal instructions before constructor call */
        /* Code decompiled incorrectly, please refer to instructions dump. */
        public /* synthetic */ PdpEnterParam(java.util.HashMap r19, java.util.HashMap r20, java.util.HashMap r21, java.util.HashMap r22, boolean r23, float r24, java.lang.Float r25, boolean r26, boolean r27, boolean r28, java.util.HashMap r29, java.lang.String r30, java.util.HashMap r31, java.lang.String r32, java.lang.String r33, java.lang.String r34, int r35, X.2HN r36) {
            /*
                r18 = this;
                r17 = r34
                r0 = r35
                r15 = r32
                r14 = r31
                r8 = r25
                r3 = r20
                r6 = r23
                r9 = r26
                r2 = r19
                r12 = r29
                r4 = r21
                r13 = r30
                r5 = r22
                r16 = r33
                r7 = r24
                r1 = r0 & 1
                if (r1 == 0) goto L_0x0027
                java.util.HashMap r2 = new java.util.HashMap
                r2.<init>()
            L_0x0027:
                r1 = r0 & 2
                if (r1 == 0) goto L_0x002c
                r3 = 0
            L_0x002c:
                r1 = r0 & 4
                if (r1 == 0) goto L_0x0031
                r4 = 0
            L_0x0031:
                r1 = r0 & 8
                if (r1 == 0) goto L_0x0036
                r5 = 0
            L_0x0036:
                r1 = r0 & 16
                r11 = 0
                if (r1 == 0) goto L_0x003c
                r6 = 0
            L_0x003c:
                r1 = r0 & 32
                if (r1 == 0) goto L_0x0043
                int r1 = X.3SM.LIZIZ
                float r7 = (float) r1
            L_0x0043:
                r1 = r0 & 64
                if (r1 == 0) goto L_0x0048
                r8 = 0
            L_0x0048:
                r1 = r0 & 128(0x80, float:1.794E-43)
                r10 = 1
                if (r1 == 0) goto L_0x004e
                r9 = 1
            L_0x004e:
                r1 = r0 & 256(0x100, float:3.59E-43)
                if (r1 == 0) goto L_0x0085
            L_0x0052:
                r1 = r0 & 512(0x200, float:7.175E-43)
                if (r1 == 0) goto L_0x0082
            L_0x0056:
                r1 = r0 & 1024(0x400, float:1.435E-42)
                if (r1 == 0) goto L_0x005b
                r12 = 0
            L_0x005b:
                r1 = r0 & 2048(0x800, float:2.87E-42)
                if (r1 == 0) goto L_0x0060
                r13 = 0
            L_0x0060:
                r1 = r0 & 4096(0x1000, float:5.74E-42)
                if (r1 == 0) goto L_0x0069
                java.util.HashMap r14 = new java.util.HashMap
                r14.<init>()
            L_0x0069:
                r1 = r0 & 8192(0x2000, float:1.14794E-41)
                if (r1 == 0) goto L_0x006e
                r15 = 0
            L_0x006e:
                r1 = r0 & 16384(0x4000, float:2.2959E-41)
                if (r1 == 0) goto L_0x0074
                r16 = 0
            L_0x0074:
                r1 = 32768(0x8000, float:4.5918E-41)
                r0 = r0 & r1
                if (r0 == 0) goto L_0x007c
                r17 = 0
            L_0x007c:
                r1 = r18
                r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17)
                return
            L_0x0082:
                r11 = r28
                goto L_0x0056
            L_0x0085:
                r10 = r27
                goto L_0x0052
            */
            throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.ecommerce.pdp.IPdpStarter.PdpEnterParam.<init>(java.util.HashMap, java.util.HashMap, java.util.HashMap, java.util.HashMap, boolean, float, java.lang.Float, boolean, boolean, boolean, java.util.HashMap, java.lang.String, java.util.HashMap, java.lang.String, java.lang.String, java.lang.String, int, X.2HN):void");
        }
    }
}
