Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9

以下内容为反编译后的 e.java 源代码,内容仅作参考


package com.fyber.inneractive.sdk.web;

import android.text.TextUtils;
import com.amazon.device.ads.DtbConstants;
import com.fyber.inneractive.sdk.config.IAConfigManager;
import com.fyber.inneractive.sdk.external.InneractiveErrorCode;
import com.fyber.inneractive.sdk.external.InneractiveInfrastructureError;
import com.fyber.inneractive.sdk.util.IAlog;
import com.fyber.inneractive.sdk.web.d;
import com.iab.omid.library.fyber.ScriptInjector;
public class e extends com.fyber.inneractive.sdk.util.b<Void, Void, String> {
    public final String g;
    public final boolean h;
    public final String i;
    public final String j;
    public final String k;
    public final d l;

    public e(d dVar, String str, boolean z, String str2, String str3, String str4) {
        this.l = dVar;
        this.g = str;
        this.h = z;
        this.i = str2;
        this.j = str3;
        this.k = str4;
    }

    @Override
    public String a(Void[] voidArr) {
        long currentTimeMillis = System.currentTimeMillis();
        String str = this.g;
        if (this.h) {
            d dVar = this.l;
            String str2 = this.i;
            String str3 = this.j;
            c0 c0Var = (c0) dVar;
            c0Var.getClass();
            StringBuilder sb = new StringBuilder("<html><title>DigitalTurbine Ad</title><head><link rel=\"icon\" href=\"data:,\">");
            if (TextUtils.isEmpty(str)) {
                IAlog.a("loadHtml called with an empty HTML!", new Object[0]);
            } else {
                if (c0Var.F) {
                    String c = com.fyber.inneractive.sdk.util.p.c("ia_js_load_monitor.txt");
                    if (!TextUtils.isEmpty(c)) {
                        sb.append(c);
                    }
                }
                sb.append("<script> window.iaPreCachedAd = true; </script>");
                IAConfigManager iAConfigManager = IAConfigManager.M;
                boolean a = iAConfigManager.u.b.a("use_js_inline", false);
                if (!a || iAConfigManager.G.b == null) {
                    sb.append("<script src=\"https://cdn2.inner-active.mobi/client/ia-js-tags/dt-mraid-video-controller.js\"></script>");
                } else {
                    sb.append("<script type=\"text/javascript\">");
                    sb.append(iAConfigManager.G.b);
                    sb.append("</script>");
                }
                if (!TextUtils.isEmpty(str2)) {
                    sb.append(str2);
                }
                sb.append("<script>var prevWindowOnError = window.onerror; window.onerror = function(err) {if (typeof prevWindowOnError === 'function') {prevWindowOnError.apply();} console.log('WINDOW.ONERROR Javascript Error: ' + err);};</script></head><style>body{text-align:center !important;margin:0;padding:0;}");
                if (!TextUtils.isEmpty(str3)) {
                    sb.append(str3);
                }
                sb.append("</style><body id=\"iaBody\">");
                if (c0Var.B && c0Var.p()) {
                    if (!a || iAConfigManager.G.c == null) {
                        sb.append("<link rel=\"stylesheet\" href=\"https://cdn2.inner-active.mobi/IA-JSTag/Production/centering_v1.css\">");
                    } else {
                        sb.append("<style type=\"text/css\">");
                        sb.append(iAConfigManager.G.c);
                        sb.append("</style>");
                    }
                    if (!a || iAConfigManager.G.d == null) {
                        sb.append("<script src=\"https://cdn2.inner-active.mobi/IA-JSTag/Production/centering_v1.js\"></script>");
                    } else {
                        sb.append("<script type=\"text/javascript\">");
                        sb.append(iAConfigManager.G.d);
                        sb.append("</script>");
                    }
                }
                String c2 = com.fyber.inneractive.sdk.util.p.c("ia_mraid_bridge.txt");
                if (!TextUtils.isEmpty(c2)) {
                    com.appsflyer.internal.c.C(sb, "<div id='iaScriptBr' style='display:none;'>", c2, "</div>");
                    if (IAlog.a >= 2) {
                        sb.append("<script type=\"text/javascript\">window.mraidbridge.loggingEnabled = true;</script>");
                    }
                }
                sb.append(str);
                sb.append("</body></html>");
                if (c0Var.I != null) {
                    com.fyber.inneractive.sdk.flow.q qVar = c0Var.s;
                    if (qVar != null) {
                        com.fyber.inneractive.sdk.response.e d = qVar.d();
                        boolean z = d != null && d.H;
                        com.fyber.inneractive.sdk.measurement.a aVar = c0Var.I;
                        String sb2 = sb.toString();
                        com.fyber.inneractive.sdk.measurement.b bVar = (com.fyber.inneractive.sdk.measurement.b) aVar;
                        if (z) {
                            StringBuilder sb3 = new StringBuilder();
                            if (!TextUtils.isEmpty(bVar.c)) {
                                sb3.append(bVar.c);
                            }
                            if (!TextUtils.isEmpty(bVar.d)) {
                                sb3.append(bVar.d);
                            }
                            str = ScriptInjector.injectScriptContentIntoHtml(sb3.toString(), sb2);
                        } else {
                            str = sb2;
                        }
                        if (!TextUtils.isEmpty(bVar.b)) {
                            str = ScriptInjector.injectScriptContentIntoHtml(bVar.b, str);
                        }
                    }
                } else {
                    str = sb.toString();
                }
            }
            str = null;
        }
        d dVar2 = this.l;
        dVar2.getClass();
        IAlog.a("%sbuild html string took %d msec", IAlog.a(dVar2), Long.valueOf(System.currentTimeMillis() - currentTimeMillis));
        return str;
    }

    @Override
    public void a(String str) {
        String str2 = str;
        String str3 = com.fyber.inneractive.sdk.util.t.a() ? "http://" : DtbConstants.HTTPS;
        if (!TextUtils.isEmpty(str2) && !b()) {
            if (TextUtils.isEmpty(this.k)) {
                this.l.p = str3.concat("wv.inner-active.mobi/");
            } else {
                d dVar = this.l;
                StringBuilder r = com.appsflyer.internal.c.r(str3);
                r.append(this.k);
                dVar.p = r.toString();
            }
            if (this.f) {
                return;
            }
            d dVar2 = this.l;
            g gVar = dVar2.b;
            if (gVar != null) {
                gVar.loadDataWithBaseURL(dVar2.p, str2, "text/html", "utf-8", null);
                this.l.q = str2;
            } else {
                InneractiveInfrastructureError inneractiveInfrastructureError = new InneractiveInfrastructureError(InneractiveErrorCode.SDK_INTERNAL_ERROR, com.fyber.inneractive.sdk.flow.g.COULD_NOT_LOAD_TO_WEBVIEW);
                d.InterfaceC0304d interfaceC0304d = dVar2.f;
                if (interfaceC0304d != null) {
                    interfaceC0304d.a(dVar2, inneractiveInfrastructureError);
                }
                dVar2.b(true);
            }
        } else if (!b()) {
            d dVar3 = this.l;
            InneractiveInfrastructureError inneractiveInfrastructureError2 = new InneractiveInfrastructureError(InneractiveErrorCode.SDK_INTERNAL_ERROR, com.fyber.inneractive.sdk.flow.g.EMPTY_FINAL_HTML);
            d.InterfaceC0304d interfaceC0304d2 = dVar3.f;
            if (interfaceC0304d2 != null) {
                interfaceC0304d2.a(dVar3, inneractiveInfrastructureError2);
            }
            dVar3.b(true);
        }
        c();
        this.l.o = null;
    }
}