package com.bytedance.android.livesdk.container.config.base;

import X.0cm;
import X.2HN;
import X.C5165Hf4;
import X.C5166Hf5;
import X.C5349Hi2;
import X.M12;
import android.net.Uri;
import com.bytedance.android.live.browser.IContainerService;
import com.bytedance.android.livesdk.container.config.live.LiveCardConfig;
import com.bytedance.covode.number.Covode;
import kotlin.h.b.n;

public final class CardConfig extends HybridConfig {
    public LiveCardConfig extraConfig;

    static {
        Covode.recordClassIndex(15507);
    }

    public CardConfig() {
        this((Uri) null, 1, (2HN) null);
    }

    public final LiveCardConfig getExtraConfig() {
        return this.extraConfig;
    }

    public final void setExtraConfig(LiveCardConfig liveCardConfig) {
        this.extraConfig = liveCardConfig;
    }

    public final void checkSchema(Uri uri) {
        C5349Hi2 lynxCustomReport;
        C5349Hi2 webViewCustomReport;
        M12.LIZ(uri);
        super.checkSchema(uri);
        if (C5165Hf4.LJ.contains(uri.getHost())) {
            return;
        }
        if (getEngineType() == C5166Hf5.WEB_VIEW) {
            IContainerService LIZ = 0cm.LIZ(IContainerService.class);
            if (LIZ != null && (webViewCustomReport = LIZ.getWebViewCustomReport()) != null) {
                String uri2 = uri.toString();
                n.LIZIZ(uri2, "");
                webViewCustomReport.LIZJ(uri2);
                return;
            }
            return;
        }
        IContainerService LIZ2 = 0cm.LIZ(IContainerService.class);
        if (LIZ2 != null && (lynxCustomReport = LIZ2.getLynxCustomReport()) != null) {
            String uri3 = uri.toString();
            n.LIZIZ(uri3, "");
            lynxCustomReport.LIZJ(uri3);
        }
    }

    /* JADX WARNING: Code restructure failed: missing block: B:10:0x0026, code lost:
        r3 = r0.LIZ();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:20:0x0070, code lost:
        r3 = r0.LIZ();
     */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public CardConfig(android.net.Uri r13) {
        /*
            r12 = this;
            r12.<init>(r13)
            r10 = 1
            if (r13 == 0) goto L_0x00a0
            java.lang.Class<com.bytedance.android.livesdk.container.config.base.CardConfig> r8 = com.bytedance.android.livesdk.container.config.base.CardConfig.class
        L_0x0008:
            r7 = 0
            java.lang.String r9 = ""
            if (r8 == 0) goto L_0x0050
            java.lang.reflect.Field[] r6 = r8.getDeclaredFields()
            kotlin.h.b.n.LIZIZ(r6, r9)
            int r5 = r6.length
        L_0x0015:
            if (r7 >= r5) goto L_0x004b
            r4 = r6[r7]
            java.lang.Class<X.HfK> r0 = X.C5181HfK.class
            java.lang.annotation.Annotation r0 = r4.getAnnotation(r0)
            X.HfK r0 = (X.C5181HfK) r0
            if (r0 != 0) goto L_0x0026
        L_0x0023:
            int r7 = r7 + 1
            goto L_0x0015
        L_0x0026:
            java.lang.String r3 = r0.LIZ()
            java.lang.String r2 = r13.getQueryParameter(r3)
            if (r2 != 0) goto L_0x0031
            goto L_0x0023
        L_0x0031:
            kotlin.h.b.n.LIZIZ(r2, r9)
            kotlin.h.b.n.LIZIZ(r4, r9)
            r4.setAccessible(r10)
            X.GAi r1 = X.C1635GAi.LIZ
            java.lang.Class r0 = r4.getType()
            kotlin.h.b.n.LIZIZ(r0, r9)
            java.lang.Object r0 = r1.LIZ(r13, r3, r2, r0)
            r4.set(r12, r0)
            goto L_0x0023
        L_0x004b:
            java.lang.Class r8 = r8.getSuperclass()
            goto L_0x0008
        L_0x0050:
            java.lang.Class<com.bytedance.android.livesdk.container.config.live.LiveCardConfig> r11 = com.bytedance.android.livesdk.container.config.live.LiveCardConfig.class
            java.lang.Object r8 = r11.newInstance()
        L_0x0056:
            java.lang.reflect.Field[] r7 = r11.getDeclaredFields()
            kotlin.h.b.n.LIZIZ(r7, r9)
            int r6 = r7.length
            r5 = 0
        L_0x005f:
            if (r5 >= r6) goto L_0x0095
            r4 = r7[r5]
            java.lang.Class<X.HfK> r0 = X.C5181HfK.class
            java.lang.annotation.Annotation r0 = r4.getAnnotation(r0)
            X.HfK r0 = (X.C5181HfK) r0
            if (r0 != 0) goto L_0x0070
        L_0x006d:
            int r5 = r5 + 1
            goto L_0x005f
        L_0x0070:
            java.lang.String r3 = r0.LIZ()
            java.lang.String r2 = r13.getQueryParameter(r3)
            if (r2 != 0) goto L_0x007b
            goto L_0x006d
        L_0x007b:
            kotlin.h.b.n.LIZIZ(r2, r9)
            kotlin.h.b.n.LIZIZ(r4, r9)
            r4.setAccessible(r10)
            X.GAi r1 = X.C1635GAi.LIZ
            java.lang.Class r0 = r4.getType()
            kotlin.h.b.n.LIZIZ(r0, r9)
            java.lang.Object r0 = r1.LIZ(r13, r3, r2, r0)
            r4.set(r8, r0)
            goto L_0x006d
        L_0x0095:
            java.lang.Class r11 = r11.getSuperclass()
            if (r11 == 0) goto L_0x009c
            goto L_0x0056
        L_0x009c:
            com.bytedance.android.livesdk.container.config.live.LiveCardConfig r8 = (com.bytedance.android.livesdk.container.config.live.LiveCardConfig) r8
            r12.extraConfig = r8
        L_0x00a0:
            r12.setHideLoading(r10)
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.bytedance.android.livesdk.container.config.base.CardConfig.<init>(android.net.Uri):void");
    }

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