package com.ss.android.ugc.aweme.bullet.business;

import X.Knz;
import X.M12;
import android.webkit.WebView;
import com.bytedance.covode.number.Covode;

public final class ShareBusiness extends AbsShareBusiness {
    public WebView LJIIJJI;

    static {
        Covode.recordClassIndex(55184);
    }

    /* JADX WARNING: Code restructure failed: missing block: B:25:0x00aa, code lost:
        if (r8.LJ != false) goto L_0x00ac;
     */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void LIZ() {
        /*
            r8 = this;
            X.Knz r0 = r8.LJIIJ
            android.app.Activity r7 = r0.LIZ()
            if (r7 != 0) goto L_0x0009
            return
        L_0x0009:
            com.ss.android.ugc.aweme.share.improve.pkg.WebSharePackage r0 = r8.LIZIZ
            if (r0 != 0) goto L_0x000e
            return
        L_0x000e:
            X.Knz r0 = r8.LJIIJ
            X.Kk4 r5 = r0.LIZ
            boolean r0 = r5 instanceof X.Kns
            r4 = 0
            if (r0 != 0) goto L_0x0018
            r5 = r4
        L_0x0018:
            X.Kns r5 = (X.Kns) r5
            java.util.HashMap r3 = new java.util.HashMap
            r3.<init>()
            java.lang.String r1 = "enter_from"
            java.lang.String r0 = "h5_page"
            r3.put(r1, r0)
            java.lang.String r2 = ""
            if (r5 == 0) goto L_0x0030
            java.lang.String r1 = r5.LJI()
            if (r1 != 0) goto L_0x0031
        L_0x0030:
            r1 = r2
        L_0x0031:
            java.lang.String r0 = "previous_page"
            r3.put(r0, r1)
            java.lang.String r1 = "scene_id"
            java.lang.String r0 = "1004"
            r3.put(r1, r0)
            java.lang.String r0 = "h5_click_more_button"
            X.2nK.LIZ(r0, r3)
            X.4rS r3 = new X.4rS
            r3.<init>()
            com.ss.android.ugc.aweme.share.improve.pkg.WebSharePackage r1 = r8.LIZIZ
            r6 = 1
            if (r1 == 0) goto L_0x0065
            X.4k3 r0 = com.ss.android.ugc.aweme.share.ShareDependService.LIZ
            com.ss.android.ugc.aweme.share.ShareDependService r0 = r0.LIZ()
            X.JOF r0 = r0.LIZ(r1, r2)
            if (r0 == 0) goto L_0x0065
            r3.LIZ(r0)
            com.ss.android.ugc.aweme.share.ShareService r0 = X.4B5.LIZ
            r0.LIZ((X.4rS) r3, (android.app.Activity) r7, (boolean) r6)
            r3.LIZ(r1)
            r3.LJIILL = r6
        L_0x0065:
            java.lang.String r0 = r8.LIZLLL
            android.net.Uri r0 = android.net.Uri.parse(r0)
            kotlin.h.b.n.LIZIZ(r0, r2)
            java.lang.String r7 = r0.getHost()
            java.util.ArrayList r1 = new java.util.ArrayList
            java.util.ArrayList r0 = new java.util.ArrayList
            r0.<init>()
            r1.<init>(r0)
            X.4vE r0 = X.3hr.LIZ
            kotlin.h.b.n.LIZIZ(r0, r2)
            X.2sK r0 = r0.LJI()
            kotlin.h.b.n.LIZIZ(r0, r2)
            java.lang.Object r0 = r0.LIZLLL()
            java.util.Set r0 = (java.util.Set) r0
            r1.addAll(r0)
            java.util.Iterator r2 = r1.iterator()
        L_0x0095:
            boolean r1 = r2.hasNext()
            r0 = 0
            if (r1 == 0) goto L_0x0126
            java.lang.Object r0 = r2.next()
            java.lang.String r0 = (java.lang.String) r0
            boolean r0 = X.7r2.LIZ(r7, r0)
            if (r0 == 0) goto L_0x0095
            boolean r0 = r8.LJ
            if (r0 == 0) goto L_0x0126
        L_0x00ac:
            java.util.List<java.lang.String> r1 = r8.LIZJ
            java.lang.String r0 = "copylink"
            boolean r0 = r1.contains(r0)
            if (r0 == 0) goto L_0x00c0
            X.4gN r1 = new X.4gN
            java.lang.String r0 = "fromWeb"
            r1.<init>(r0, r6)
            r3.LIZ(r1)
        L_0x00c0:
            java.util.List<java.lang.String> r1 = r8.LIZJ
            java.lang.String r0 = "refresh"
            boolean r0 = r1.contains(r0)
            if (r0 == 0) goto L_0x00d5
            X.JR9 r2 = new X.JR9
            android.webkit.WebView r1 = r8.LJIIJJI
            r0 = 3
            r2.<init>(r4, r4, r1, r0)
            r3.LIZ(r2)
        L_0x00d5:
            java.util.List<java.lang.String> r1 = r8.LIZJ
            java.lang.String r0 = "browser"
            boolean r0 = r1.contains(r0)
            if (r0 == 0) goto L_0x00e7
            X.4kT r0 = new X.4kT
            r0.<init>()
            r3.LIZ(r0)
        L_0x00e7:
            r3.LJFF = r6
            com.ss.android.ugc.aweme.share.improve.pkg.WebSharePackage r0 = r8.LIZIZ
            if (r0 == 0) goto L_0x00fc
            android.os.Bundle r1 = r0.LJIILJJIL
            if (r1 == 0) goto L_0x00fc
            if (r5 == 0) goto L_0x00f7
            java.lang.String r4 = r5.LJFF()
        L_0x00f7:
            java.lang.String r0 = "aweme_id"
            r1.putString(r0, r4)
        L_0x00fc:
            X.JXk r0 = new X.JXk
            r0.<init>(r8)
            r3.LIZ(r0)
            X.4k3 r0 = com.ss.android.ugc.aweme.share.ShareDependService.LIZ
            com.ss.android.ugc.aweme.share.ShareDependService r2 = r0.LIZ()
            X.SfZ r0 = X.SfZ.LJIJ
            android.app.Activity r1 = r0.LJIIIZ()
            if (r1 != 0) goto L_0x0115
            kotlin.h.b.n.LIZIZ()
        L_0x0115:
            X.4rR r0 = r3.LIZ()
            X.4qA r1 = X.4kK.LIZ(r2, r1, r0)
            r1.show()
            X.2fU r0 = X.2fU.LIZ
            r0.LIZ(r1)
            return
        L_0x0126:
            r3.LJ = r6
            goto L_0x00ac
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.bullet.business.ShareBusiness.LIZ():void");
    }

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public ShareBusiness(Knz knz) {
        super(knz);
        M12.LIZ(knz);
    }
}
