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

import X.KoL;
import com.bytedance.covode.number.Covode;

public class ShareBusiness extends AbsShareBusiness {
    static {
        Covode.recordClassIndex(62956);
    }

    /* JADX WARNING: Code restructure failed: missing block: B:15:0x0098, code lost:
        if (LIZ() != false) goto L_0x009a;
     */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void LIZIZ() {
        /*
            r6 = this;
            android.content.Context r0 = r6.LJIIJJI
            boolean r0 = r0 instanceof android.app.Activity
            if (r0 != 0) goto L_0x0007
            return
        L_0x0007:
            com.ss.android.ugc.aweme.share.improve.pkg.WebSharePackage r0 = r6.LIZ
            if (r0 != 0) goto L_0x000c
            return
        L_0x000c:
            java.util.HashMap r2 = new java.util.HashMap
            r2.<init>()
            java.lang.String r1 = "enter_from"
            java.lang.String r0 = "h5_page"
            r2.put(r1, r0)
            X.KmO r0 = r6.LJIIJ
            X.KqG r0 = r0.LIZ
            java.lang.String r1 = r0.LJFF
            java.lang.String r0 = "previous_page"
            r2.put(r0, r1)
            java.lang.String r1 = "scene_id"
            java.lang.String r0 = "1004"
            r2.put(r1, r0)
            java.lang.String r0 = "h5_click_more_button"
            X.2nK.LIZ(r0, r2)
            X.4rS r4 = new X.4rS
            r4.<init>()
            X.4k3 r0 = com.ss.android.ugc.aweme.share.ShareDependService.LIZ
            com.ss.android.ugc.aweme.share.ShareDependService r2 = r0.LIZ()
            com.ss.android.ugc.aweme.share.improve.pkg.WebSharePackage r1 = r6.LIZ
            java.lang.String r0 = ""
            X.JOF r0 = r2.LIZ(r1, r0)
            if (r0 == 0) goto L_0x0047
            r4.LIZ(r0)
        L_0x0047:
            com.ss.android.ugc.aweme.share.ShareService r1 = X.4B5.LIZ
            android.content.Context r0 = r6.LJIIJJI
            android.app.Activity r0 = X.3jJ.LIZ(r0)
            r2 = 1
            r1.LIZ((X.4rS) r4, (android.app.Activity) r0, (boolean) r2)
            com.ss.android.ugc.aweme.share.improve.pkg.WebSharePackage r0 = r6.LIZ
            r4.LIZ(r0)
            r4.LJIILL = r2
            java.lang.String r0 = r6.LIZLLL
            android.net.Uri r0 = android.net.Uri.parse(r0)
            java.lang.String r5 = 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
            X.2sK r0 = r0.LJI()
            java.lang.Object r0 = r0.LIZLLL()
            java.util.Collection r0 = (java.util.Collection) r0
            r1.addAll(r0)
            java.util.Iterator r3 = r1.iterator()
        L_0x0081:
            boolean r1 = r3.hasNext()
            r0 = 0
            if (r1 == 0) goto L_0x0115
            java.lang.Object r0 = r3.next()
            java.lang.String r0 = (java.lang.String) r0
            boolean r0 = X.7r2.LIZ(r5, r0)
            if (r0 == 0) goto L_0x0081
            boolean r0 = r6.LIZ()
            if (r0 == 0) goto L_0x0115
        L_0x009a:
            java.util.List<java.lang.String> r1 = r6.LIZIZ
            java.lang.String r0 = "copylink"
            boolean r0 = r1.contains(r0)
            if (r0 == 0) goto L_0x00ae
            X.4gN r1 = new X.4gN
            java.lang.String r0 = "fromWeb"
            r1.<init>(r0, r2)
            r4.LIZ(r1)
        L_0x00ae:
            java.util.List<java.lang.String> r1 = r6.LIZIZ
            java.lang.String r0 = "refresh"
            boolean r0 = r1.contains(r0)
            if (r0 == 0) goto L_0x00c2
            X.JR9 r1 = new X.JR9
            X.Knd r0 = r6.LJIIIIZZ
            r1.<init>(r0)
            r4.LIZ(r1)
        L_0x00c2:
            java.util.List<java.lang.String> r1 = r6.LIZIZ
            java.lang.String r0 = "browser"
            boolean r0 = r1.contains(r0)
            if (r0 == 0) goto L_0x00d4
            X.4kT r0 = new X.4kT
            r0.<init>()
            r4.LIZ(r0)
        L_0x00d4:
            r4.LJFF = r2
            com.ss.android.ugc.aweme.share.improve.pkg.WebSharePackage r0 = r6.LIZ
            android.os.Bundle r2 = r0.LJIILJJIL
            X.KmO r0 = r6.LJIIJ
            X.KqG r0 = r0.LIZ
            java.lang.String r1 = r0.LJIIIZ
            java.lang.String r0 = "aweme_id"
            r2.putString(r0, r1)
            com.ss.android.ugc.aweme.crossplatform.business.ShareBusiness$1 r0 = new com.ss.android.ugc.aweme.crossplatform.business.ShareBusiness$1
            r0.<init>()
            r4.LIZ(r0)
            X.SfZ r0 = X.SfZ.LJIJ
            android.app.Activity r3 = r0.LJIIIZ()
            if (r3 == 0) goto L_0x0114
            boolean r0 = r3.isFinishing()
            if (r0 != 0) goto L_0x0114
            X.4k3 r0 = com.ss.android.ugc.aweme.share.ShareDependService.LIZ
            com.ss.android.ugc.aweme.share.ShareDependService r2 = r0.LIZ()
            X.4rR r1 = r4.LIZ()
            r0 = 2131887001(0x7f120399, float:1.9408597E38)
            X.4qA r1 = r2.LIZ(r3, r1, r0)
            r1.show()
            X.2fU r0 = X.2fU.LIZ
            r0.LIZ(r1)
        L_0x0114:
            return
        L_0x0115:
            r4.LJ = r2
            goto L_0x009a
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.crossplatform.business.ShareBusiness.LIZIZ():void");
    }

    public ShareBusiness(KoL koL) {
        super(koL);
    }
}
