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

import X.0cm;
import X.2HN;
import X.C5165Hf4;
import X.C5166Hf5;
import X.C5181HfK;
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.LivePageConfig;
import com.bytedance.android.livesdk.container.type.HColor;
import com.bytedance.covode.number.Covode;
import kotlin.h.b.n;

public final class PageConfig extends HybridConfig {
    public LivePageConfig extraConfig;
    @C5181HfK(LIZ = "hide_nav_bar")
    public boolean hideNavBar;
    @C5181HfK(LIZ = "hide_status_bar")
    public boolean hideStatusBar;
    @C5181HfK(LIZ = "nav_bar_color")
    public HColor navBarColor;
    @C5181HfK(LIZ = "nav_btn_type")
    public String navBtnType;
    @C5181HfK(LIZ = "show_closeall")
    public boolean showCloseAll;
    @C5181HfK(LIZ = "status_bar_bg_color")
    public HColor statusBgColor;
    @C5181HfK(LIZ = "status_font_mode")
    public String statusFontMode;
    @C5181HfK(LIZ = "title")
    public String title;
    @C5181HfK(LIZ = "title_color")
    public HColor titleColor;
    @C5181HfK(LIZ = "trans_status_bar")
    public boolean transStatusBar;

    static {
        Covode.recordClassIndex(15509);
    }

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

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

    public final boolean getHideNavBar() {
        return this.hideNavBar;
    }

    public final boolean getHideStatusBar() {
        return this.hideStatusBar;
    }

    public final HColor getNavBarColor() {
        return this.navBarColor;
    }

    public final String getNavBtnType() {
        return this.navBtnType;
    }

    public final boolean getShowCloseAll() {
        return this.showCloseAll;
    }

    public final HColor getStatusBgColor() {
        return this.statusBgColor;
    }

    public final String getStatusFontMode() {
        return this.statusFontMode;
    }

    public final String getTitle() {
        return this.title;
    }

    public final HColor getTitleColor() {
        return this.titleColor;
    }

    public final boolean getTransStatusBar() {
        return this.transStatusBar;
    }

    public final void setExtraConfig(LivePageConfig livePageConfig) {
        this.extraConfig = livePageConfig;
    }

    public final void setHideNavBar(boolean z) {
        this.hideNavBar = z;
    }

    public final void setHideStatusBar(boolean z) {
        this.hideStatusBar = z;
    }

    public final void setNavBarColor(HColor hColor) {
        this.navBarColor = hColor;
    }

    public final void setNavBtnType(String str) {
        this.navBtnType = str;
    }

    public final void setShowCloseAll(boolean z) {
        this.showCloseAll = z;
    }

    public final void setStatusBgColor(HColor hColor) {
        this.statusBgColor = hColor;
    }

    public final void setStatusFontMode(String str) {
        this.statusFontMode = str;
    }

    public final void setTitleColor(HColor hColor) {
        this.titleColor = hColor;
    }

    public final void setTransStatusBar(boolean z) {
        this.transStatusBar = z;
    }

    public final void setTitle(String str) {
        M12.LIZ(str);
        this.title = str;
    }

    public final void checkSchema(Uri uri) {
        C5349Hi2 lynxCustomReport;
        C5349Hi2 webViewCustomReport;
        M12.LIZ(uri);
        super.checkSchema(uri);
        if (C5165Hf4.LIZJ.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:0x002f, code lost:
        r3 = r0.LIZ();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:20:0x0079, code lost:
        r3 = r0.LIZ();
     */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public PageConfig(android.net.Uri r13) {
        /*
            r12 = this;
            r12.<init>(r13)
            java.lang.String r10 = ""
            r12.title = r10
            if (r13 == 0) goto L_0x00a9
            java.lang.String r0 = r13.toString()
            r12.setOriginUri(r0)
            java.lang.Class<com.bytedance.android.livesdk.container.config.base.PageConfig> r8 = com.bytedance.android.livesdk.container.config.base.PageConfig.class
        L_0x0012:
            r7 = 0
            r9 = 1
            if (r8 == 0) goto L_0x0059
            java.lang.reflect.Field[] r6 = r8.getDeclaredFields()
            kotlin.h.b.n.LIZIZ(r6, r10)
            int r5 = r6.length
        L_0x001e:
            if (r7 >= r5) goto L_0x0054
            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_0x002f
        L_0x002c:
            int r7 = r7 + 1
            goto L_0x001e
        L_0x002f:
            java.lang.String r3 = r0.LIZ()
            java.lang.String r2 = r13.getQueryParameter(r3)
            if (r2 != 0) goto L_0x003a
            goto L_0x002c
        L_0x003a:
            kotlin.h.b.n.LIZIZ(r2, r10)
            kotlin.h.b.n.LIZIZ(r4, r10)
            r4.setAccessible(r9)
            X.GAi r1 = X.C1635GAi.LIZ
            java.lang.Class r0 = r4.getType()
            kotlin.h.b.n.LIZIZ(r0, r10)
            java.lang.Object r0 = r1.LIZ(r13, r3, r2, r0)
            r4.set(r12, r0)
            goto L_0x002c
        L_0x0054:
            java.lang.Class r8 = r8.getSuperclass()
            goto L_0x0012
        L_0x0059:
            java.lang.Class<com.bytedance.android.livesdk.container.config.live.LivePageConfig> r11 = com.bytedance.android.livesdk.container.config.live.LivePageConfig.class
            java.lang.Object r8 = r11.newInstance()
        L_0x005f:
            java.lang.reflect.Field[] r7 = r11.getDeclaredFields()
            kotlin.h.b.n.LIZIZ(r7, r10)
            int r6 = r7.length
            r5 = 0
        L_0x0068:
            if (r5 >= r6) goto L_0x009e
            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_0x0079
        L_0x0076:
            int r5 = r5 + 1
            goto L_0x0068
        L_0x0079:
            java.lang.String r3 = r0.LIZ()
            java.lang.String r2 = r13.getQueryParameter(r3)
            if (r2 != 0) goto L_0x0084
            goto L_0x0076
        L_0x0084:
            kotlin.h.b.n.LIZIZ(r2, r10)
            kotlin.h.b.n.LIZIZ(r4, r10)
            r4.setAccessible(r9)
            X.GAi r1 = X.C1635GAi.LIZ
            java.lang.Class r0 = r4.getType()
            kotlin.h.b.n.LIZIZ(r0, r10)
            java.lang.Object r0 = r1.LIZ(r13, r3, r2, r0)
            r4.set(r8, r0)
            goto L_0x0076
        L_0x009e:
            java.lang.Class r11 = r11.getSuperclass()
            if (r11 == 0) goto L_0x00a5
            goto L_0x005f
        L_0x00a5:
            com.bytedance.android.livesdk.container.config.live.LivePageConfig r8 = (com.bytedance.android.livesdk.container.config.live.LivePageConfig) r8
            r12.extraConfig = r8
        L_0x00a9:
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.bytedance.android.livesdk.container.config.base.PageConfig.<init>(android.net.Uri):void");
    }

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