package com.ss.android.ugc.aweme.notification.utils;

import X.0Gp;
import X.9EH;
import X.C4394EgI;
import X.JMA;
import X.PUw;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.services.RetrofitService;

public final class ShareFromWebHelper {
    public static final VideoInfoApi LIZ;
    public static final ShareFromWebHelper LIZIZ = new ShareFromWebHelper();
    public static final String LIZJ;

    public interface VideoInfoApi {
        static {
            Covode.recordClassIndex(95753);
        }

        @JMA(LIZ = "/tiktok/v1/tt4d/share/video/info/")
        0Gp<C4394EgI> getVideoInfo(@PUw(LIZ = "video_id") String str);
    }

    static {
        Covode.recordClassIndex(95752);
        String str = "https://" + 9EH.LJIIJJI.LIZ;
        LIZJ = str;
        LIZ = (VideoInfoApi) RetrofitService.createIRetrofitServicebyMonsterPlugin(false).createNewRetrofit(str).create(VideoInfoApi.class);
    }

    /* JADX WARNING: Code restructure failed: missing block: B:6:0x000e, code lost:
        if (r1 == null) goto L_0x0010;
     */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void LIZ(android.content.Context r4) {
        /*
            r3 = this;
            X.M12.LIZ(r4)
            r2 = r4
        L_0x0004:
            r1 = 0
            if (r2 == 0) goto L_0x0010
            boolean r0 = r2 instanceof android.app.Activity
            if (r0 == 0) goto L_0x002a
            r1 = r2
            android.app.Activity r1 = (android.app.Activity) r1
            if (r1 != 0) goto L_0x0013
        L_0x0010:
            kotlin.h.b.n.LIZIZ()
        L_0x0013:
            X.3af r2 = new X.3af
            r2.<init>(r1)
            android.content.res.Resources r1 = r4.getResources()
            r0 = 2131832435(0x7f112e73, float:1.9297924E38)
            java.lang.String r0 = r1.getString(r0)
            r2.LIZ(r0)
            X.3af.LIZ(r2)
            return
        L_0x002a:
            boolean r0 = r2 instanceof android.content.ContextWrapper
            if (r0 == 0) goto L_0x0010
            android.content.ContextWrapper r2 = (android.content.ContextWrapper) r2
            android.content.Context r2 = r2.getBaseContext()
            goto L_0x0004
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.notification.utils.ShareFromWebHelper.LIZ(android.content.Context):void");
    }
}
