WeChat.apk(点击下载) / e.java


package ak1;

import android.content.Intent;
import androidx.appcompat.app.AppCompatActivity;
import bw3.e02;
import bw3.mo1;
import bw3.qo1;
import bw3.xi0;
import com.tencent.mm.R;
import com.tencent.mm.plugin.finder.utils.b3;
import com.tencent.mm.plugin.finder.utils.s0;
import com.tencent.mm.sdk.platformtools.MMApplicationContext;
import com.tencent.mm.ui.MMActivity;
import com.tencent.tinker.loader.hotplug.EnvConsts;
import java.util.Arrays;
import java.util.regex.Pattern;
import lh4.m;
import m60.d;
import sj1.a;
import sv3.b;

public final class e extends a {

    /* renamed from: f  reason: collision with root package name */
    public final e02 f3091f;

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public e(e02 e022, AppCompatActivity appCompatActivity) {
        super(appCompatActivity);
        m.g(appCompatActivity, EnvConsts.ACTIVITY_MANAGER_SRVNAME);
        this.f3091f = e022;
    }

    @Override // sj1.a
    public void d() {
        String str;
        long j15;
        qo1 qo12;
        qo1 qo13;
        mo1 mo12;
        e02 e022 = this.f3091f;
        if (e022 == null || (qo13 = e022.f19951z) == null || (mo12 = qo13.f34457g) == null || (str = mo12.f29957s) == null) {
            str = "";
        }
        if (e022 == null || (qo12 = e022.f19951z) == null) {
            j15 = 0;
        } else {
            j15 = qo12.f34454d;
        }
        AppCompatActivity appCompatActivity = this.f301986d;
        m.g(appCompatActivity, "context");
        String format = String.format("https://weixin110.qq.com/security/readtemplate?t=weixin_report/w_type&scene=%d&song_id=%s=&topic_id=%s", Arrays.copyOf(new Object[]{83, str, d.p(j15)}, 3));
        m.f(format, "format(format, *args)");
        Intent intent = new Intent();
        intent.putExtra("rawUrl", format);
        b.j(appCompatActivity, "webview", ".ui.tools.WebViewUI", intent, null);
    }

    @Override // sj1.a
    public boolean f() {
        qo1 qo12;
        e02 e022 = this.f3091f;
        String str = (e022 == null || (qo12 = e022.f19951z) == null) ? null : qo12.f34455e;
        return str == null || str.length() == 0;
    }

    @Override // sj1.a
    public void i() {
        String str;
        long j15;
        String str2;
        qo1 qo12;
        mo1 mo12;
        qo1 qo13;
        qo1 qo14;
        b3.a aVar = b3.f118772a;
        AppCompatActivity appCompatActivity = this.f301986d;
        m.e(appCompatActivity, "null cannot be cast to non-null type com.tencent.mm.ui.MMActivity");
        MMActivity mMActivity = (MMActivity) appCompatActivity;
        e02 e022 = this.f3091f;
        String str3 = null;
        if (e022 == null || (qo14 = e022.f19951z) == null) {
            str = null;
        } else {
            str = qo14.f34455e;
        }
        if (e022 == null || (qo13 = e022.f19951z) == null) {
            j15 = 0;
        } else {
            j15 = (long) qo13.f34458h;
        }
        if (!(e022 == null || (qo12 = e022.f19951z) == null || (mo12 = qo12.f34457g) == null)) {
            str3 = mo12.f29953o;
        }
        if (str3 == null) {
            str2 = "";
        } else {
            str2 = str3;
        }
        aVar.C(mMActivity, str, 15, j15, str2, m(), null, 9, "", n());
    }

    @Override // sj1.a
    public void j() {
        String str;
        long j15;
        String str2;
        qo1 qo12;
        mo1 mo12;
        qo1 qo13;
        qo1 qo14;
        b3.a aVar = b3.f118772a;
        AppCompatActivity appCompatActivity = this.f301986d;
        m.e(appCompatActivity, "null cannot be cast to non-null type com.tencent.mm.ui.MMActivity");
        MMActivity mMActivity = (MMActivity) appCompatActivity;
        e02 e022 = this.f3091f;
        String str3 = null;
        if (e022 == null || (qo14 = e022.f19951z) == null) {
            str = null;
        } else {
            str = qo14.f34455e;
        }
        if (e022 == null || (qo13 = e022.f19951z) == null) {
            j15 = 0;
        } else {
            j15 = (long) qo13.f34458h;
        }
        if (!(e022 == null || (qo12 = e022.f19951z) == null || (mo12 = qo12.f34457g) == null)) {
            str3 = mo12.f29953o;
        }
        if (str3 == null) {
            str2 = "";
        } else {
            str2 = str3;
        }
        aVar.E(mMActivity, str, 15, j15, str2, m(), null, 9, "", n());
    }

    public final String m() {
        qo1 qo12;
        String str;
        e02 e022 = this.f3091f;
        if (e022 == null || (qo12 = e022.f19951z) == null) {
            return "";
        }
        String c15 = s0.c(2, qo12.f34458h);
        int i15 = qo12.f34459i;
        Pattern pattern = d.f258150a;
        String e15 = s0.e((long) i15);
        if (((long) qo12.f34458h) > 0) {
            str = "" + this.f301986d.getResources().getString(R.string.eqm, c15);
        } else {
            str = "";
        }
        if (((long) qo12.f34458h) > 0 && ((long) qo12.f34459i) > 0) {
            str = str + " · ";
        }
        if (((long) qo12.f34459i) > 0) {
            str = str + this.f301986d.getResources().getString(R.string.eq5, e15);
        }
        if (str == null) {
            return "";
        }
        return str;
    }

    public final xi0 n() {
        long j15;
        String str;
        String str2;
        qo1 qo12;
        qo1 qo13;
        qo1 qo14;
        xi0 xi02 = new xi0();
        e02 e022 = this.f3091f;
        if (e022 == null || (qo14 = e022.f19951z) == null) {
            j15 = 0;
        } else {
            j15 = qo14.f34454d;
        }
        xi02.f42205d = d.p(j15);
        e02 e023 = this.f3091f;
        if (e023 == null || (qo13 = e023.f19951z) == null || (str = qo13.f34455e) == null) {
            str = "";
        }
        xi02.f42206e = str;
        if (e023 == null || (qo12 = e023.f19951z) == null || (str2 = qo12.f34455e) == null) {
            str2 = MMApplicationContext.getContext().getText(R.string.eqg).toString();
        }
        xi02.f42210i = str2;
        return xi02;
    }
}