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


package ym2;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.text.SpannableString;
import android.text.TextUtils;
import android.view.MenuItem;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import androidx.lifecycle.j0;
import bw3.ck3;
import bw3.gk3;
import bw3.jl1;
import bw3.ll1;
import bw3.ml1;
import bw3.nl1;
import bw3.ol1;
import bw3.xj3;
import bz.c1;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.tencent.mm.R;
import com.tencent.mm.message.l;
import com.tencent.mm.opensdk.modelmsg.SendMessageToWX;
import com.tencent.mm.opensdk.modelmsg.WXMediaMessage;
import com.tencent.mm.opensdk.modelmsg.WXMusicObject;
import com.tencent.mm.plugin.finder.utils.h4;
import com.tencent.mm.plugin.mmsight.segment.FFmpegMetadataRetriever;
import com.tencent.mm.plugin.mv.ui.uic.MusicMvMainUIC;
import com.tencent.mm.pluginsdk.model.app.q1;
import com.tencent.mm.protocal.protobuf.FinderContact;
import com.tencent.mm.protocal.protobuf.FinderMedia;
import com.tencent.mm.protocal.protobuf.FinderObject;
import com.tencent.mm.protocal.protobuf.FinderObjectDesc;
import com.tencent.mm.sdk.platformtools.BitmapUtil;
import com.tencent.mm.sdk.platformtools.BuildInfo;
import com.tencent.mm.sdk.platformtools.Log;
import com.tencent.mm.sdk.platformtools.Util;
import com.tencent.mm.sdk.platformtools.WeChatEnvironment;
import com.tencent.mm.ui.MMActivity;
import com.tencent.mm.ui.component.UIComponent;
import com.tencent.mm.ui.x4;
import com.tencent.mm.vfs.u1;
import com.tencent.thumbplayer.tplayer.plugins.report.TPReportKeys;
import com.tencent.tinker.loader.hotplug.EnvConsts;
import cu3.e0;
import cu3.w;
import d60.z;
import ek4.y;
import i14.d0;
import i14.l0;
import i14.o0;
import i14.p0;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
import kh4.l;
import lh4.a0;
import lh4.f0;
import lh4.m;
import lh4.o;
import mi.l3;
import nf0.z0;
import org.json.JSONArray;
import org.json.JSONObject;
import p64.n;
import p64.q;
import p64.u;
import qd3.z;
import qh1.f1;
import rg0.c;
import rl2.t;
import t32.e2;
import wg4.b0;
import wk1.x2;
import xg4.c0;
import xg4.r0;
import xg4.y0;
import y24.r;

public final class t0 extends UIComponent {

    /* renamed from: d  reason: collision with root package name */
    public j1 f347382d;

    /* renamed from: e  reason: collision with root package name */
    public boolean f347383e;

    /* renamed from: f  reason: collision with root package name */
    public long f347384f;

    /* renamed from: g  reason: collision with root package name */
    public String f347385g;

    /* renamed from: h  reason: collision with root package name */
    public final k1 f347386h = new k1();

    public static final class a implements n.p {

        /* renamed from: a  reason: collision with root package name */
        public static final a f347387a = new a();

        @Override // p64.n.p
        public final void onDismiss() {
        }
    }

    public static final class b implements sg0.d {

        /* renamed from: a  reason: collision with root package name */
        public final /* synthetic */ f0<Bitmap> f347388a;

        /* renamed from: b  reason: collision with root package name */
        public final /* synthetic */ String f347389b;

        public b(f0<Bitmap> f0Var, String str) {
            this.f347388a = f0Var;
            this.f347389b = str;
        }

        @Override // sg0.d
        public final void a(boolean z15, Object[] objArr) {
            this.f347388a.f253292d = (T) BitmapUtil.getBitmapNative(this.f347389b);
            Log.i("MicroMsg.Mv.MusicMvShareUIC", "downloadImage");
        }
    }

    public static final class c implements l0 {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ e0 f347390d;

        /* renamed from: e  reason: collision with root package name */
        public final /* synthetic */ t0 f347391e;

        /* renamed from: f  reason: collision with root package name */
        public final /* synthetic */ f0<n> f347392f;

        public c(e0 e0Var, t0 t0Var, f0<n> f0Var) {
            this.f347390d = e0Var;
            this.f347391e = t0Var;
            this.f347392f = f0Var;
        }

        @Override // i14.l0
        public final void onCreateMMMenu(d0 d0Var) {
            e0 e0Var = this.f347390d;
            Activity context = this.f347391e.getContext();
            m.f(d0Var, "menu");
            e0Var.WJ0(context, d0Var, this.f347392f.f253292d);
        }
    }

    public static final class d implements o0 {

        /* renamed from: a  reason: collision with root package name */
        public final /* synthetic */ e0 f347393a;

        /* renamed from: b  reason: collision with root package name */
        public final /* synthetic */ f0<n> f347394b;

        public d(e0 e0Var, f0<n> f0Var) {
            this.f347393a = e0Var;
            this.f347394b = f0Var;
        }

        @Override // i14.o0
        public final void a(MenuItem menuItem, int i15) {
            m.e(menuItem, "null cannot be cast to non-null type com.tencent.mm.ui.base.MMMenuItem");
            this.f347393a.eA0(this.f347394b.f253292d, (i14.e0) menuItem);
        }
    }

    public static final class e implements p0 {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ e0 f347395d;

        /* renamed from: e  reason: collision with root package name */
        public final /* synthetic */ t0 f347396e;

        /* renamed from: f  reason: collision with root package name */
        public final /* synthetic */ mm2.f f347397f;

        public static final class a extends o implements l<String, b0> {

            /* renamed from: d  reason: collision with root package name */
            public final /* synthetic */ t0 f347398d;

            /* renamed from: e  reason: collision with root package name */
            public final /* synthetic */ mm2.f f347399e;

            /* JADX INFO: super call moved to the top of the method (can break code semantics) */
            public a(t0 t0Var, mm2.f fVar) {
                super(1);
                this.f347398d = t0Var;
                this.f347399e = fVar;
            }

            /* Return type fixed from 'java.lang.Object' to match base method */
            /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
            @Override // kh4.l
            public b0 invoke(String str) {
                String str2;
                String str3;
                String str4;
                FinderObject d15;
                String str5;
                LinkedList<FinderMedia> linkedList;
                FinderMedia finderMedia;
                String str6 = str;
                m.g(str6, "username");
                t0 t0Var = this.f347398d;
                t0Var.f347383e = true;
                mm2.f fVar = this.f347399e;
                j0 a15 = r.f342954a.c(t0Var.getActivity()).a(e.class);
                m.f(a15, "UICProvider.of(activity)…sicMvDataUIC::class.java)");
                e eVar = (e) a15;
                bh0.n j15 = ql2.n.g().j();
                ml1 ml12 = eVar.f347106i;
                l.b bVar = new l.b();
                bVar.f76866i = 76;
                bVar.f76854f = ml12.f29872d;
                bVar.f76858g = ml12.f29873e;
                bVar.X = ml12.f29884s;
                String str7 = ml12.f29876h;
                String str8 = "";
                if (str7 == null) {
                    str7 = str8;
                }
                bVar.f76870j = str7;
                bVar.f76874k = str8;
                String str9 = ml12.f29874f;
                if (str9 == null) {
                    str9 = str8;
                }
                bVar.T = str9;
                bVar.U = str8;
                bVar.f76846d = ml12.f29875g;
                com.tencent.mm.pluginsdk.ui.tools.m mVar = new com.tencent.mm.pluginsdk.ui.tools.m();
                mVar.f173290b = ml12.f29880o;
                mVar.f173291c = ml12.f29878j;
                if (!TextUtils.isEmpty(ml12.f29890y) || j15 == null) {
                    str2 = ml12.f29890y;
                } else {
                    str2 = j15.P;
                }
                mVar.f173304p = str2;
                if (eVar.f347119y) {
                    str3 = "wx485a97c844086dc9";
                } else {
                    str3 = str8;
                }
                mVar.f173305q = str3;
                Log.i("MicroMsg.Mv.MusicMvShareUIC", "doRecentForward isMvWithBeat:%b", Boolean.valueOf(fVar.f266269z));
                if (!fVar.f266269z && (d15 = mm2.f.A.d(fVar)) != null) {
                    mVar.f173292d = m60.d.p(d15.f173515id);
                    mVar.f173293e = d15.objectNonceId;
                    FinderObjectDesc finderObjectDesc = d15.objectDesc;
                    if (!(finderObjectDesc == null || (linkedList = finderObjectDesc.media) == null || (finderMedia = (FinderMedia) c0.Q(linkedList)) == null)) {
                        mVar.f173294f = finderMedia.thumbUrl + finderMedia.thumb_url_token;
                    }
                    FinderContact finderContact = d15.contact;
                    if (finderContact != null) {
                        str5 = finderContact.nickname;
                    } else {
                        str5 = null;
                    }
                    mVar.f173295g = str5;
                }
                mVar.f173290b = ml12.f29880o;
                mVar.f173291c = ml12.f29878j;
                mVar.f173296h = ml12.f29873e;
                mVar.f173297i = ml12.f29879n;
                mVar.f173298j = ml12.f29881p;
                mVar.f173299k = String.valueOf(ml12.f29883r);
                mVar.f173300l = ml12.f29885t;
                mVar.f173302n = ml12.f29886u;
                mVar.f173301m = ml12.f29884s;
                nl1 nl12 = ml12.f29889x;
                if (!(nl12 == null || (str4 = nl12.f31020d) == null)) {
                    str8 = str4;
                }
                mVar.f173303o = str8;
                bVar.f(mVar);
                f0 f0Var = new f0();
                T t15 = (T) t0Var.k5(fVar);
                f0Var.f253292d = t15;
                if (t15 == null) {
                    f0Var.f253292d = (T) ((zv.r) yz3.j.c(zv.r.class)).Eq0(bh0.d.b());
                }
                String t16 = l.b.t(bVar, null, null);
                ((w) yz3.j.c(w.class)).Hr0(t0Var.getContext(), str6, t16, f0Var.f253292d, new u0(t0Var, str6, t16, f0Var, fVar, ml12)).show();
                f1 f1Var = (f1) yz3.j.c(f1.class);
                Activity context = this.f347398d.getContext();
                t0 t0Var2 = this.f347398d;
                String str10 = t0Var2.f347385g;
                if (str10 != null) {
                    long j16 = t0Var2.f347384f;
                    int i15 = f1.N0;
                    f1Var.if0(context, str10, j16, 3);
                    return b0.f332794a;
                }
                m.p("mFavSearchId");
                throw null;
            }
        }

        public e(e0 e0Var, t0 t0Var, mm2.f fVar) {
            this.f347395d = e0Var;
            this.f347396e = t0Var;
            this.f347397f = fVar;
        }

        @Override // i14.p0
        public final void onMMMenuItemSelected(MenuItem menuItem, int i15) {
            e0 e0Var = this.f347395d;
            m.e(menuItem, "null cannot be cast to non-null type com.tencent.mm.ui.base.MMMenuItem");
            e0Var.dK((i14.e0) menuItem, new a(this.f347396e, this.f347397f));
        }
    }

    public static final class f implements View.OnAttachStateChangeListener {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ t0 f347400d;

        public f(t0 t0Var) {
            this.f347400d = t0Var;
        }

        public void onViewAttachedToWindow(View view) {
            m.g(view, "view");
        }

        public void onViewDetachedFromWindow(View view) {
            j1 j1Var;
            m.g(view, "v");
            t0 t0Var = this.f347400d;
            if (!t0Var.f347383e && (j1Var = t0Var.f347382d) != null) {
                j1Var.a(System.currentTimeMillis(), 1, "2", 10, null);
            }
        }
    }

    public static final class g implements l0 {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ t0 f347401d;

        /* renamed from: e  reason: collision with root package name */
        public final /* synthetic */ boolean f347402e;

        /* renamed from: f  reason: collision with root package name */
        public final /* synthetic */ a0 f347403f;

        /* renamed from: g  reason: collision with root package name */
        public final /* synthetic */ BitmapDrawable f347404g;

        /* renamed from: h  reason: collision with root package name */
        public final /* synthetic */ String f347405h;

        public g(t0 t0Var, boolean z15, a0 a0Var, BitmapDrawable bitmapDrawable, String str) {
            this.f347401d = t0Var;
            this.f347402e = z15;
            this.f347403f = a0Var;
            this.f347404g = bitmapDrawable;
            this.f347405h = str;
        }

        @Override // i14.l0
        public final void onCreateMMMenu(d0 d0Var) {
            BitmapDrawable bitmapDrawable;
            d0Var.j(101, this.f347401d.getContext().getString(R.string.f367611yh), R.raw.finder_full_share, this.f347401d.getContext().getResources().getColor(R.color.f357939m), !this.f347402e);
            d0Var.j(102, this.f347401d.getContext().getString(R.string.h4v), R.raw.bottomsheet_icon_moment, 0, !this.f347402e);
            d0Var.j(103, this.f347401d.getContext().getString(R.string.h3u), R.raw.bottomsheet_icon_fav, 0, !this.f347402e);
            d0Var.j(104, this.f347401d.getContext().getString(R.string.h4w), R.raw.state_icon_main, this.f347401d.getContext().getResources().getColor(R.color.f357933g), !this.f347402e);
            if (this.f347403f.f253280d && (bitmapDrawable = this.f347404g) != null) {
                d0Var.m(105, this.f347405h, bitmapDrawable, 0);
            }
        }
    }

    public static final class h implements l0 {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ t0 f347406d;

        /* renamed from: e  reason: collision with root package name */
        public final /* synthetic */ boolean f347407e;

        /* renamed from: f  reason: collision with root package name */
        public final /* synthetic */ boolean f347408f;

        /* renamed from: g  reason: collision with root package name */
        public final /* synthetic */ mm2.f f347409g;

        /* renamed from: h  reason: collision with root package name */
        public final /* synthetic */ boolean f347410h;

        public h(t0 t0Var, boolean z15, boolean z16, mm2.f fVar, boolean z17) {
            this.f347406d = t0Var;
            this.f347407e = z15;
            this.f347408f = z16;
            this.f347409g = fVar;
            this.f347410h = z17;
        }

        @Override // i14.l0
        public final void onCreateMMMenu(d0 d0Var) {
            boolean z15;
            boolean z16 = true;
            d0Var.j(201, this.f347406d.getContext().getString(R.string.h4c), R.raw.icons_outlined_mv_making_share, this.f347406d.getContext().getResources().getColor(R.color.f358137f5), !this.f347407e);
            if (!this.f347408f) {
                d0Var.j(202, this.f347406d.getContext().getString(R.string.h5d), R.raw.icons_outlined_delete, this.f347406d.getContext().getResources().getColor(R.color.f358137f5), !this.f347410h);
            } else if (mm2.f.A.e(this.f347409g)) {
                d0Var.j(203, this.f347406d.getContext().getString(R.string.f368897h40), R.raw.icons_outlined_report_problem, this.f347406d.getContext().getResources().getColor(R.color.f358137f5), false);
            }
            d0Var.j(204, this.f347406d.getContext().getString(R.string.h3i), R.raw.finder_icons_screen_clear, this.f347406d.getContext().getResources().getColor(R.color.f358137f5), false);
            if (!BuildInfo.DEBUG) {
                if (BuildInfo.IS_FLAVOR_PURPLE || BuildInfo.IS_FLAVOR_RED || BuildInfo.CLIENT_VERSION_INT == 788529167) {
                    z15 = true;
                } else {
                    z15 = false;
                }
                if (!z15 && !WeChatEnvironment.hasDebugger()) {
                    z16 = false;
                }
            }
            if (z16) {
                d0Var.j(205, "调试", R.raw.icons_outlined_report_problem, this.f347406d.getContext().getResources().getColor(R.color.f358137f5), false);
            }
        }
    }

    public static final class i implements p0 {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ t0 f347411d;

        /* renamed from: e  reason: collision with root package name */
        public final /* synthetic */ mm2.f f347412e;

        /* renamed from: f  reason: collision with root package name */
        public final /* synthetic */ int f347413f;

        public static final class a implements q1 {

            /* renamed from: a  reason: collision with root package name */
            public final /* synthetic */ t0 f347414a;

            /* renamed from: b  reason: collision with root package name */
            public final /* synthetic */ ml1 f347415b;

            /* renamed from: c  reason: collision with root package name */
            public final /* synthetic */ mm2.f f347416c;

            /* renamed from: d  reason: collision with root package name */
            public final /* synthetic */ int f347417d;

            /* renamed from: e  reason: collision with root package name */
            public final /* synthetic */ e f347418e;

            public a(t0 t0Var, ml1 ml12, mm2.f fVar, int i15, e eVar) {
                this.f347414a = t0Var;
                this.f347415b = ml12;
                this.f347416c = fVar;
                this.f347417d = i15;
                this.f347418e = eVar;
            }

            @Override // com.tencent.mm.pluginsdk.model.app.q1
            public final void a(boolean z15, boolean z16) {
                int i15;
                int i16;
                if (z15) {
                    mm2.r rVar = mm2.r.f266335a;
                    AppCompatActivity activity = this.f347414a.getActivity();
                    ml1 ml12 = this.f347415b;
                    mm2.f fVar = this.f347416c;
                    if (this.f347417d == 3) {
                        i16 = 5;
                    } else {
                        i16 = 3;
                    }
                    mm2.r.g(rVar, activity, ml12, fVar, 2, 1, i16, 0, this.f347418e.l5(), this.f347418e.j5(), this.f347418e.k5(), this.f347418e.H, 64, null);
                }
                if (z16) {
                    mm2.r rVar2 = mm2.r.f266335a;
                    AppCompatActivity activity2 = this.f347414a.getActivity();
                    ml1 ml13 = this.f347415b;
                    mm2.f fVar2 = this.f347416c;
                    if (this.f347417d == 3) {
                        i15 = 5;
                    } else {
                        i15 = 3;
                    }
                    mm2.r.g(rVar2, activity2, ml13, fVar2, 2, 3, i15, 0, this.f347418e.l5(), this.f347418e.j5(), this.f347418e.k5(), this.f347418e.H, 64, null);
                }
            }
        }

        public i(t0 t0Var, mm2.f fVar, int i15) {
            this.f347411d = t0Var;
            this.f347412e = fVar;
            this.f347413f = i15;
        }

        @Override // i14.p0
        public final void onMMMenuItemSelected(MenuItem menuItem, int i15) {
            int i16;
            String str;
            String str2;
            String str3;
            String str4;
            String str5;
            FinderObject d15;
            String str6;
            LinkedList<FinderMedia> linkedList;
            FinderMedia finderMedia;
            int i17;
            String str7;
            Class cls;
            ck3 ck32;
            String str8;
            String str9;
            String str10;
            Bitmap bitmap;
            FinderObject d16;
            String str11;
            LinkedList<FinderMedia> linkedList2;
            FinderMedia finderMedia2;
            ck3 ck33;
            String str12;
            String str13;
            FinderObject d17;
            String str14;
            LinkedList<FinderMedia> linkedList3;
            FinderMedia finderMedia3;
            int i18;
            j1 j1Var;
            if (!(menuItem.getItemId() == 101 || (j1Var = this.f347411d.f347382d) == null)) {
                j1Var.a(System.currentTimeMillis(), 4, "2", 10, null);
            }
            this.f347411d.f347383e = true;
            String str15 = "";
            switch (menuItem.getItemId()) {
                case 101:
                    FinderContact finderContact = this.f347412e.f266253j;
                    if (finderContact != null) {
                        i16 = finderContact.extFlag;
                    } else {
                        i16 = 0;
                    }
                    if ((i16 & 1024) != 0) {
                        h4 h4Var = h4.f119006a;
                        AppCompatActivity activity = this.f347411d.getActivity();
                        String string = this.f347411d.getActivity().getString(R.string.exu);
                        m.f(string, "activity.getString(com.t…finder_private_ban_share)");
                        h4Var.V1(activity, string);
                        return;
                    }
                    j1 j1Var2 = this.f347411d.f347382d;
                    if (j1Var2 != null) {
                        j1Var2.a(System.currentTimeMillis(), 2, "2", 10, null);
                    }
                    t0 t0Var = this.f347411d;
                    mm2.f fVar = this.f347412e;
                    int i19 = this.f347413f;
                    t0Var.getClass();
                    j0 a15 = r.f342954a.c(t0Var.getActivity()).a(e.class);
                    m.f(a15, "UICProvider.of(activity)…sicMvDataUIC::class.java)");
                    e eVar = (e) a15;
                    bh0.n j15 = ql2.n.g().j();
                    ml1 ml12 = eVar.f347106i;
                    l.b bVar = new l.b();
                    bVar.f76866i = 76;
                    bVar.f76854f = ml12.f29872d;
                    bVar.f76858g = ml12.f29873e;
                    bVar.X = ml12.f29884s;
                    String str16 = ml12.f29876h;
                    if (str16 == null) {
                        str16 = str15;
                    }
                    bVar.f76870j = str16;
                    bVar.f76874k = str15;
                    String str17 = ml12.f29874f;
                    if (str17 == null) {
                        str17 = str15;
                    }
                    bVar.T = str17;
                    bVar.U = str15;
                    bVar.f76846d = ml12.f29875g;
                    com.tencent.mm.pluginsdk.ui.tools.m mVar = new com.tencent.mm.pluginsdk.ui.tools.m();
                    mVar.f173290b = ml12.f29880o;
                    mVar.f173291c = ml12.f29878j;
                    if (!TextUtils.isEmpty(ml12.f29890y) || j15 == null) {
                        str = ml12.f29890y;
                    } else {
                        str = j15.P;
                    }
                    mVar.f173304p = str;
                    if (eVar.f347119y) {
                        str2 = "wx485a97c844086dc9";
                    } else {
                        str2 = str15;
                    }
                    mVar.f173305q = str2;
                    Log.i("MicroMsg.Mv.MusicMvShareUIC", "doShareToChat isMvWithBeat:%b", Boolean.valueOf(fVar.f266269z));
                    if (fVar.f266269z || (d15 = mm2.f.A.d(fVar)) == null) {
                        str3 = "mFavSearchId";
                    } else {
                        str3 = "mFavSearchId";
                        mVar.f173292d = m60.d.p(d15.f173515id);
                        mVar.f173293e = d15.objectNonceId;
                        FinderObjectDesc finderObjectDesc = d15.objectDesc;
                        if (!(finderObjectDesc == null || (linkedList = finderObjectDesc.media) == null || (finderMedia = (FinderMedia) c0.Q(linkedList)) == null)) {
                            mVar.f173294f = finderMedia.thumbUrl + finderMedia.thumb_url_token;
                        }
                        FinderContact finderContact2 = d15.contact;
                        if (finderContact2 != null) {
                            str6 = finderContact2.nickname;
                        } else {
                            str6 = null;
                        }
                        mVar.f173295g = str6;
                    }
                    mVar.f173290b = ml12.f29880o;
                    mVar.f173291c = ml12.f29878j;
                    mVar.f173296h = ml12.f29873e;
                    mVar.f173297i = ml12.f29879n;
                    mVar.f173298j = ml12.f29881p;
                    mVar.f173299k = String.valueOf(ml12.f29883r);
                    mVar.f173300l = ml12.f29885t;
                    mVar.f173302n = ml12.f29886u;
                    mVar.f173301m = ml12.f29884s;
                    nl1 nl12 = ml12.f29889x;
                    if (nl12 == null || (str5 = nl12.f31020d) == null) {
                        str4 = str15;
                    } else {
                        str4 = str5;
                    }
                    mVar.f173303o = str4;
                    bVar.f(mVar);
                    String k55 = t0Var.k5(fVar);
                    String t15 = l.b.t(bVar, null, null);
                    Intent intent = new Intent();
                    intent.putExtra("Retr_Msg_Type", 2);
                    intent.putExtra("content_type_forward_to_wework", 11);
                    intent.putExtra("Retr_Msg_content", t15);
                    intent.putExtra("Multi_Retr", true);
                    intent.putExtra("Retr_go_to_chattingUI", false);
                    intent.putExtra("Retr_show_success_tips", true);
                    if (k55 == null) {
                        k55 = ((zv.r) yz3.j.c(zv.r.class)).Eq0(bh0.d.b());
                    }
                    intent.putExtra("Retr_Msg_thumb_path", k55);
                    Activity context = t0Var.getContext();
                    m.e(context, "null cannot be cast to non-null type com.tencent.mm.ui.MMActivity");
                    sv3.b.v((MMActivity) context, ".ui.transmit.MsgRetransmitUI", intent, 1, new w0(fVar, t0Var, ml12, i19));
                    Log.i("MicroMsg.Mv.MusicMvShareUIC", "share mv to chat songName:" + ml12.f29872d + " mvObjectId:" + mVar.f173292d + " mvNonceId:" + mVar.f173293e + " mvCoverUrl:" + mVar.f173294f + " mvMakerFinderNickname:" + mVar.f173295g + ", localCoverPath: " + k55);
                    f1 f1Var = (f1) yz3.j.c(f1.class);
                    Activity context2 = t0Var.getContext();
                    String str18 = t0Var.f347385g;
                    if (str18 != null) {
                        f1Var.if0(context2, str18, t0Var.f347384f, 3);
                        return;
                    } else {
                        m.p(str3);
                        throw null;
                    }
                case 102:
                    mm2.f fVar2 = this.f347412e;
                    FinderContact finderContact3 = fVar2.f266253j;
                    if (finderContact3 != null) {
                        i17 = finderContact3.extFlag;
                    } else {
                        i17 = 0;
                    }
                    if ((i17 & 1024) != 0) {
                        h4 h4Var2 = h4.f119006a;
                        AppCompatActivity activity2 = this.f347411d.getActivity();
                        String string2 = this.f347411d.getActivity().getString(R.string.exu);
                        m.f(string2, "activity.getString(com.t…finder_private_ban_share)");
                        h4Var2.V1(activity2, string2);
                        break;
                    } else {
                        t0 t0Var2 = this.f347411d;
                        int i25 = this.f347413f;
                        t0Var2.getClass();
                        Log.i("MicroMsg.Mv.MusicMvShareUIC", "doShareToSns isMvWithBeat:%b", Boolean.valueOf(fVar2.f266269z));
                        if (fVar2.f266269z || (d16 = mm2.f.A.d(fVar2)) == null) {
                            cls = f1.class;
                            str7 = "wx485a97c844086dc9";
                            ck32 = null;
                        } else {
                            ck32 = new ck3();
                            cls = f1.class;
                            ck32.f18393d = m60.d.p(d16.f173515id);
                            ck32.f18394e = d16.objectNonceId;
                            FinderObjectDesc finderObjectDesc2 = d16.objectDesc;
                            if (finderObjectDesc2 == null || (linkedList2 = finderObjectDesc2.media) == null || (finderMedia2 = (FinderMedia) c0.Q(linkedList2)) == null) {
                                str7 = "wx485a97c844086dc9";
                            } else {
                                StringBuilder sb5 = new StringBuilder();
                                str7 = "wx485a97c844086dc9";
                                sb5.append(finderMedia2.thumbUrl);
                                sb5.append(finderMedia2.thumb_url_token);
                                ck32.f18395f = sb5.toString();
                            }
                            FinderContact finderContact4 = d16.contact;
                            if (finderContact4 != null) {
                                str11 = finderContact4.nickname;
                            } else {
                                str11 = null;
                            }
                            ck32.f18396g = str11;
                        }
                        bh0.n j16 = ql2.n.g().j();
                        String k56 = t0Var2.k5(fVar2);
                        if (ck32 == null) {
                            ck32 = new ck3();
                        }
                        r rVar = r.f342954a;
                        j0 a16 = rVar.c(t0Var2.getActivity()).a(e.class);
                        m.f(a16, "UICProvider.of(activity)…sicMvDataUIC::class.java)");
                        e eVar2 = (e) a16;
                        ml1 ml13 = eVar2.f347106i;
                        ck32.f18397h = ml13.f29873e;
                        ck32.f18398i = ml13.f29879n;
                        ck32.f18400n = ml13.f29881p;
                        ck32.f18401o = ml13.f29883r;
                        ck32.f18402p = ml13.f29885t;
                        ck32.f18403q = ml13.f29886u;
                        ck32.f18399j = ml13.f29884s;
                        nl1 nl13 = ml13.f29889x;
                        if (nl13 == null || (str8 = nl13.f31020d) == null) {
                            str8 = str15;
                        }
                        ck32.f18405s = str8;
                        if (!TextUtils.isEmpty(ml13.f29890y) || j16 == null) {
                            str9 = ml13.f29890y;
                        } else {
                            str9 = j16.P;
                        }
                        ck32.f18404r = str9;
                        if (eVar2.f347119y) {
                            str10 = str7;
                        } else {
                            str10 = str15;
                        }
                        ck32.f18410x = str10;
                        m.f(j16, "wrapper");
                        AppCompatActivity activity3 = t0Var2.getActivity();
                        WXMusicObject wXMusicObject = new WXMusicObject();
                        j0 a17 = rVar.b(t0Var2.getContext()).a(e.class);
                        m.f(a17, "UICProvider.of(context).…sicMvDataUIC::class.java)");
                        e eVar3 = (e) a17;
                        wXMusicObject.musicUrl = j16.f12713p;
                        wXMusicObject.musicDataUrl = j16.f12711n;
                        String str19 = j16.f12712o;
                        wXMusicObject.musicLowBandUrl = str19;
                        wXMusicObject.musicLowBandDataUrl = str19;
                        wXMusicObject.songAlbumUrl = ml13.f29880o;
                        wXMusicObject.songLyric = ml13.f29878j;
                        WXMediaMessage wXMediaMessage = new WXMediaMessage();
                        wXMediaMessage.mediaObject = wXMusicObject;
                        wXMediaMessage.title = ml13.f29872d;
                        wXMediaMessage.description = j16.f12708h;
                        String str20 = ml13.f29884s;
                        if (str20 == null) {
                            str20 = str15;
                        }
                        wXMediaMessage.messageExt = str20;
                        if (Util.isNullOrNil(k56)) {
                            k56 = ((zv.r) yz3.j.c(zv.r.class)).Eq0(j16);
                        }
                        if (k56 == null || !u1.k(k56)) {
                            bitmap = null;
                        } else {
                            int dimension = (int) activity3.getResources().getDimension(R.dimen.f359248hg);
                            bitmap = BitmapUtil.getBitmapNative(k56, dimension, dimension);
                        }
                        if (bitmap != null) {
                            wXMediaMessage.thumbData = Util.bmpToByteArray(bitmap, true);
                        } else {
                            int i26 = R.drawable.ar7;
                            if (x4.B()) {
                                i26 = R.drawable.ar6;
                            }
                            wXMediaMessage.thumbData = Util.bmpToByteArray(BitmapUtil.getBitmapNative(i26), true);
                        }
                        Intent intent2 = new Intent();
                        Bundle bundle = new Bundle();
                        SendMessageToWX.Req req = new SendMessageToWX.Req();
                        req.message = wXMediaMessage;
                        req.toBundle(bundle);
                        intent2.putExtra("Ksnsupload_timeline", bundle);
                        intent2.putExtra("Ksnsupload_musicid", j16.f12705e);
                        if (((ln.l) yz3.j.c(ln.l.class)).se(((zv.r) yz3.j.c(zv.r.class)).AP(j16))) {
                            intent2.putExtra("Ksnsupload_appid", ml13.f29875g);
                        }
                        intent2.putExtra("Ksnsupload_appname", ((zv.r) yz3.j.c(zv.r.class)).aD0(j16));
                        String a18 = z0.a("music_player");
                        z0.d().c(a18, true).i("prePublishId", "music_player");
                        intent2.putExtra("reportSessionId", a18);
                        intent2.putExtra("Ksnsupload_music_share_object_xml", ((c1) yz3.j.c(c1.class)).dq0(ck32).b());
                        intent2.putExtra("Ksnsupload_type", 25);
                        intent2.putExtra("need_result", true);
                        intent2.putExtra("Ksnsupload_source", 1);
                        m.e(activity3, "null cannot be cast to non-null type com.tencent.mm.ui.MMActivity");
                        sv3.b.v((MMActivity) activity3, ".plugin.sns.ui.SnsUploadUI", intent2, 2, new v0(t0Var2, fVar2, ml13, i25));
                        f1 f1Var2 = (f1) yz3.j.c(cls);
                        Activity context3 = t0Var2.getContext();
                        String str21 = t0Var2.f347385g;
                        if (str21 != null) {
                            f1Var2.if0(context3, str21, t0Var2.f347384f, 4);
                            return;
                        } else {
                            m.p("mFavSearchId");
                            throw null;
                        }
                    }
                    break;
                case 103:
                    t0 t0Var3 = this.f347411d;
                    mm2.f fVar3 = this.f347412e;
                    int i27 = this.f347413f;
                    t0Var3.getClass();
                    Log.i("MicroMsg.Mv.MusicMvShareUIC", "doFav isMvWithBeat:%b", Boolean.valueOf(fVar3.f266269z));
                    if (fVar3.f266269z || (d17 = mm2.f.A.d(fVar3)) == null) {
                        ck33 = null;
                    } else {
                        ck3 ck34 = new ck3();
                        ck34.f18393d = m60.d.p(d17.f173515id);
                        ck34.f18394e = d17.objectNonceId;
                        FinderObjectDesc finderObjectDesc3 = d17.objectDesc;
                        if (!(finderObjectDesc3 == null || (linkedList3 = finderObjectDesc3.media) == null || (finderMedia3 = (FinderMedia) c0.Q(linkedList3)) == null)) {
                            ck34.f18395f = finderMedia3.thumbUrl + finderMedia3.thumb_url_token;
                        }
                        FinderContact finderContact5 = d17.contact;
                        if (finderContact5 != null) {
                            str14 = finderContact5.nickname;
                        } else {
                            str14 = null;
                        }
                        ck34.f18396g = str14;
                        ck33 = ck34;
                    }
                    if (ck33 == null) {
                        ck33 = new ck3();
                    }
                    j0 a19 = r.f342954a.c(t0Var3.getActivity()).a(e.class);
                    m.f(a19, "UICProvider.of(activity)…sicMvDataUIC::class.java)");
                    ml1 ml14 = ((e) a19).f347106i;
                    bh0.n j17 = ql2.n.g().j();
                    ck33.f18397h = ml14.f29873e;
                    ck33.f18398i = ml14.f29879n;
                    ck33.f18400n = ml14.f29881p;
                    ck33.f18401o = ml14.f29883r;
                    ck33.f18402p = ml14.f29885t;
                    ck33.f18399j = ml14.f29884s;
                    ck33.f18403q = ml14.f29886u;
                    nl1 nl14 = ml14.f29889x;
                    if (!(nl14 == null || (str13 = nl14.f31020d) == null)) {
                        str15 = str13;
                    }
                    ck33.f18405s = str15;
                    if (!TextUtils.isEmpty(ml14.f29890y) || j17 == null) {
                        str12 = ml14.f29890y;
                    } else {
                        str12 = j17.P;
                    }
                    ck33.f18404r = str12;
                    ((zv.r) yz3.j.c(zv.r.class)).YG(j17, ml14, t0Var3.getActivity(), ck33);
                    mm2.r.f266335a.m(t0Var3.getContext(), ml14, fVar3, 2, 9, "", i27);
                    break;
                case 104:
                    this.f347411d.m5(this.f347412e, false, this.f347413f);
                    break;
                case 105:
                    r rVar2 = r.f342954a;
                    j0 a25 = rVar2.b(this.f347411d.getContext()).a(e.class);
                    m.f(a25, "UICProvider.of(context).…sicMvDataUIC::class.java)");
                    e eVar4 = (e) a25;
                    ml1 ml15 = eVar4.f347106i;
                    int o55 = ((MusicMvMainUIC) rVar2.b(this.f347411d.getContext()).a(MusicMvMainUIC.class)).o5(ml15, new a(this.f347411d, ml15, this.f347412e, this.f347413f, eVar4));
                    if (o55 != 7) {
                        mm2.r rVar3 = mm2.r.f266335a;
                        AppCompatActivity activity4 = this.f347411d.getActivity();
                        mm2.f fVar4 = this.f347412e;
                        if (this.f347413f == 3) {
                            i18 = 5;
                        } else {
                            i18 = 3;
                        }
                        mm2.r.g(rVar3, activity4, ml15, fVar4, 2, o55, i18, 0, eVar4.l5(), eVar4.j5(), eVar4.k5(), eVar4.H, 64, null);
                        break;
                    }
                    break;
            }
        }
    }

    public static final class j implements p0 {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ t0 f347419d;

        /* renamed from: e  reason: collision with root package name */
        public final /* synthetic */ mm2.f f347420e;

        /* renamed from: f  reason: collision with root package name */
        public final /* synthetic */ int f347421f;

        /* renamed from: g  reason: collision with root package name */
        public final /* synthetic */ e f347422g;

        /* renamed from: h  reason: collision with root package name */
        public final /* synthetic */ i84.o f347423h;

        public static final class a implements u {

            /* renamed from: a  reason: collision with root package name */
            public final /* synthetic */ t0 f347424a;

            /* renamed from: b  reason: collision with root package name */
            public final /* synthetic */ mm2.f f347425b;

            public a(t0 t0Var, mm2.f fVar) {
                this.f347424a = t0Var;
                this.f347425b = fVar;
            }

            @Override // p64.u
            public final void a(boolean z15, String str) {
                Long l15;
                if (z15) {
                    MusicMvMainUIC musicMvMainUIC = (MusicMvMainUIC) r.f342954a.c(this.f347424a.getActivity()).a(MusicMvMainUIC.class);
                    mm2.f fVar = this.f347425b;
                    musicMvMainUIC.getClass();
                    m.g(fVar, "musicMv");
                    Log.i(musicMvMainUIC.f135427d, "deleteMv " + fVar.f266246c + ' ' + fVar.f266247d + ' ' + fVar.f266259p);
                    int i15 = fVar.f266259p;
                    if (i15 == 1) {
                        Long l16 = fVar.f266246c;
                        String str2 = fVar.f266247d;
                        if (l16 != null && str2 != null) {
                            z.d().f(new x2(r32.b.c(musicMvMainUIC.getContext()), l16.longValue(), str2, false));
                        }
                    } else if (i15 == 4) {
                        FinderObject finderObject = fVar.f266263t;
                        String str3 = null;
                        if (finderObject != null) {
                            l15 = Long.valueOf(finderObject.f173515id);
                        } else {
                            l15 = null;
                        }
                        FinderObject finderObject2 = fVar.f266263t;
                        if (finderObject2 != null) {
                            str3 = finderObject2.objectNonceId;
                        }
                        if (l15 != null && str3 != null) {
                            z.d().f(new x2(r32.b.c(musicMvMainUIC.getContext()), l15.longValue(), str3, false));
                        }
                    }
                }
            }
        }

        public j(t0 t0Var, mm2.f fVar, int i15, e eVar, i84.o oVar) {
            this.f347419d = t0Var;
            this.f347420e = fVar;
            this.f347421f = i15;
            this.f347422g = eVar;
            this.f347423h = oVar;
        }

        /* JADX WARNING: Removed duplicated region for block: B:190:? A[RETURN, SYNTHETIC] */
        /* JADX WARNING: Removed duplicated region for block: B:21:0x0068  */
        @Override // i14.p0
        public final void onMMMenuItemSelected(MenuItem menuItem, int i15) {
            int i16;
            FinderObject finderObject;
            FinderObjectDesc finderObjectDesc;
            jl1 jl12;
            LinkedList<ol1> linkedList;
            boolean z15;
            String str;
            StringBuilder sb5;
            LinkedList<FinderMedia> linkedList2;
            FinderMedia finderMedia;
            t0 t0Var = this.f347419d;
            t0Var.f347383e = true;
            j1 j1Var = t0Var.f347382d;
            if (j1Var != null) {
                j1Var.a(System.currentTimeMillis(), 4, "2", 10, null);
            }
            long j15 = 0;
            switch (menuItem.getItemId()) {
                case 201:
                    t0 t0Var2 = this.f347419d;
                    mm2.f fVar = this.f347420e;
                    int i17 = this.f347421f;
                    t0Var2.getClass();
                    m.g(fVar, "musicMv");
                    Intent intent = new Intent();
                    j0 a15 = r.f342954a.b(t0Var2.getContext()).a(e.class);
                    m.f(a15, "UICProvider.of(context).…sicMvDataUIC::class.java)");
                    e eVar = (e) a15;
                    xj3 xj32 = new xj3();
                    FinderObject finderObject2 = new FinderObject();
                    Long l15 = fVar.f266246c;
                    finderObject2.f173515id = l15 != null ? l15.longValue() : 0;
                    finderObject2.objectNonceId = fVar.f266247d;
                    FinderObjectDesc finderObjectDesc2 = new FinderObjectDesc();
                    jl1 jl13 = new jl1();
                    jl13.f26285e = eVar.f347106i;
                    ll1 ll12 = new ll1();
                    ll12.f28650d = 0.0f;
                    ll12.f28651e = 0.0f;
                    jl13.f26286f = ll12;
                    int i18 = fVar.f266259p;
                    if (i18 == 1) {
                        jl13.f26284d = fVar.f266250g;
                    } else if (!(i18 != 4 || (finderObject = fVar.f266263t) == null || (finderObjectDesc = finderObject.objectDesc) == null || (jl12 = finderObjectDesc.mvInfo) == null || (linkedList = jl12.f26284d) == null)) {
                        jl13.f26284d = linkedList;
                    }
                    jl13.f26290j = 1;
                    finderObjectDesc2.mvInfo = jl13;
                    finderObject2.objectDesc = finderObjectDesc2;
                    xj32.f42241d = finderObject2;
                    if (i18 == 1) {
                        xj32.f42242e = fVar.f266258o;
                        i16 = 4;
                    } else {
                        i16 = 4;
                        if (i18 == 4) {
                            xj32.f42242e = fVar.f266264u;
                        }
                    }
                    xj32.f42247j = eVar.f347115u;
                    xj32.f42246i = jl13;
                    xj32.f42243f = t0Var2.k5(fVar);
                    intent.putExtra("key_track_data", xj32.toByteArray());
                    intent.putExtra("key_mv_music_duration", eVar.f347106i.f29886u);
                    intent.putExtra("key_mv_enter_maker_ui_from_scene", i17 == 3 ? i16 : 3);
                    ((com.tencent.mm.plugin.finder.utils.b) yz3.j.c(com.tencent.mm.plugin.finder.utils.b.class)).ZO0(t0Var2.getActivity(), intent);
                    gk3 gk32 = (gk3) ((ky.b) yz3.j.c(ky.b.class)).Vw0(t0Var2.getContext(), 7, gk3.class);
                    if (gk32 != null) {
                        gk32.f22775h = 1;
                        return;
                    }
                    return;
                case 202:
                    q qVar = new q(this.f347419d.getContext());
                    qVar.g(this.f347419d.getContext().getString(R.string.h3x));
                    qVar.m(R.string.f367414t0);
                    qVar.k(this.f347419d.getContext().getResources().getColor(R.color.f358911a31));
                    qVar.j(this.f347419d.getContext().getString(R.string.f367394sg));
                    qVar.f281306a.f281189b.V = this.f347419d.getContext().getResources().getColor(R.color.a0c);
                    qVar.b(new a(this.f347419d, this.f347420e));
                    qVar.o();
                    return;
                case 203:
                    Long l16 = this.f347420e.f266246c;
                    if (l16 != null) {
                        ((zv.r) yz3.j.c(zv.r.class)).iu(this.f347419d.getContext(), 69, m60.d.p(l16.longValue()));
                        return;
                    }
                    return;
                case 204:
                    this.f347422g.f347114t = true;
                    t0 t0Var3 = this.f347419d;
                    i84.o oVar = this.f347423h;
                    t0Var3.getClass();
                    Integer valueOf = Integer.valueOf((int) R.id.gbk);
                    Set<Integer> d15 = y0.d(Integer.valueOf((int) R.id.ndq), Integer.valueOf((int) R.id.bzk), valueOf, Integer.valueOf((int) R.id.gcd));
                    r rVar = r.f342954a;
                    if (((e) rVar.c(t0Var3.getActivity()).a(e.class)).f347114t) {
                        k1 k1Var = t0Var3.f347386h;
                        k1Var.a(oVar.f7101d);
                        k1Var.b(d15);
                        t0Var3.f347386h.f347239b.clear();
                    } else {
                        if (!mm2.j.f266295a) {
                            xg4.z0.f(d15, valueOf);
                        }
                        k1 k1Var2 = t0Var3.f347386h;
                        k1Var2.a(oVar.f7101d);
                        k1Var2.c(d15);
                        t0Var3.f347386h.f347239b.clear();
                    }
                    t0 t0Var4 = this.f347419d;
                    i84.o oVar2 = this.f347423h;
                    mm2.f fVar2 = this.f347420e;
                    t0Var4.getClass();
                    if (!((e) rVar.c(t0Var4.getActivity()).a(e.class)).f347114t) {
                        int i19 = fVar2.f266259p;
                        if (i19 == 1) {
                            View findViewById = oVar2.f7101d.findViewById(R.id.im7);
                            if (findViewById != null) {
                                k30.a aVar = new k30.a();
                                ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
                                aVar.c(8);
                                j30.a.d(findViewById, aVar.b(), "com/tencent/mm/plugin/mv/ui/uic/MusicMvShareUIC", "initLocalPostStats", "(Lcom/tencent/mm/view/recyclerview/SimpleViewHolder;Lcom/tencent/mm/plugin/mv/model/MusicMv;)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                                findViewById.setVisibility(((Integer) aVar.a(0)).intValue());
                                j30.a.e(findViewById, "com/tencent/mm/plugin/mv/ui/uic/MusicMvShareUIC", "initLocalPostStats", "(Lcom/tencent/mm/view/recyclerview/SimpleViewHolder;Lcom/tencent/mm/plugin/mv/model/MusicMv;)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                            }
                            View findViewById2 = oVar2.f7101d.findViewById(R.id.f363857im3);
                            if (findViewById2 != null) {
                                k30.a aVar2 = new k30.a();
                                ThreadLocal<k30.a> threadLocal2 = k30.c.f244265a;
                                aVar2.c(8);
                                j30.a.d(findViewById2, aVar2.b(), "com/tencent/mm/plugin/mv/ui/uic/MusicMvShareUIC", "initLocalPostStats", "(Lcom/tencent/mm/view/recyclerview/SimpleViewHolder;Lcom/tencent/mm/plugin/mv/model/MusicMv;)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                                findViewById2.setVisibility(((Integer) aVar2.a(0)).intValue());
                                j30.a.e(findViewById2, "com/tencent/mm/plugin/mv/ui/uic/MusicMvShareUIC", "initLocalPostStats", "(Lcom/tencent/mm/view/recyclerview/SimpleViewHolder;Lcom/tencent/mm/plugin/mv/model/MusicMv;)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                                return;
                            }
                            return;
                        } else if (i19 == 2) {
                            View findViewById3 = oVar2.f7101d.findViewById(R.id.im7);
                            if (findViewById3 != null) {
                                k30.a aVar3 = new k30.a();
                                ThreadLocal<k30.a> threadLocal3 = k30.c.f244265a;
                                aVar3.c(0);
                                j30.a.d(findViewById3, aVar3.b(), "com/tencent/mm/plugin/mv/ui/uic/MusicMvShareUIC", "initLocalPostStats", "(Lcom/tencent/mm/view/recyclerview/SimpleViewHolder;Lcom/tencent/mm/plugin/mv/model/MusicMv;)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                                findViewById3.setVisibility(((Integer) aVar3.a(0)).intValue());
                                j30.a.e(findViewById3, "com/tencent/mm/plugin/mv/ui/uic/MusicMvShareUIC", "initLocalPostStats", "(Lcom/tencent/mm/view/recyclerview/SimpleViewHolder;Lcom/tencent/mm/plugin/mv/model/MusicMv;)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                            }
                            View findViewById4 = oVar2.f7101d.findViewById(R.id.f363857im3);
                            if (findViewById4 != null) {
                                k30.a aVar4 = new k30.a();
                                ThreadLocal<k30.a> threadLocal4 = k30.c.f244265a;
                                aVar4.c(8);
                                j30.a.d(findViewById4, aVar4.b(), "com/tencent/mm/plugin/mv/ui/uic/MusicMvShareUIC", "initLocalPostStats", "(Lcom/tencent/mm/view/recyclerview/SimpleViewHolder;Lcom/tencent/mm/plugin/mv/model/MusicMv;)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                                findViewById4.setVisibility(((Integer) aVar4.a(0)).intValue());
                                j30.a.e(findViewById4, "com/tencent/mm/plugin/mv/ui/uic/MusicMvShareUIC", "initLocalPostStats", "(Lcom/tencent/mm/view/recyclerview/SimpleViewHolder;Lcom/tencent/mm/plugin/mv/model/MusicMv;)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                                return;
                            }
                            return;
                        } else if (i19 == 3) {
                            View findViewById5 = oVar2.f7101d.findViewById(R.id.im7);
                            if (findViewById5 != null) {
                                k30.a aVar5 = new k30.a();
                                ThreadLocal<k30.a> threadLocal5 = k30.c.f244265a;
                                aVar5.c(0);
                                j30.a.d(findViewById5, aVar5.b(), "com/tencent/mm/plugin/mv/ui/uic/MusicMvShareUIC", "initLocalPostStats", "(Lcom/tencent/mm/view/recyclerview/SimpleViewHolder;Lcom/tencent/mm/plugin/mv/model/MusicMv;)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                                findViewById5.setVisibility(((Integer) aVar5.a(0)).intValue());
                                j30.a.e(findViewById5, "com/tencent/mm/plugin/mv/ui/uic/MusicMvShareUIC", "initLocalPostStats", "(Lcom/tencent/mm/view/recyclerview/SimpleViewHolder;Lcom/tencent/mm/plugin/mv/model/MusicMv;)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                            }
                            View findViewById6 = oVar2.f7101d.findViewById(R.id.f363857im3);
                            if (findViewById6 != null) {
                                k30.a aVar6 = new k30.a();
                                ThreadLocal<k30.a> threadLocal6 = k30.c.f244265a;
                                aVar6.c(0);
                                j30.a.d(findViewById6, aVar6.b(), "com/tencent/mm/plugin/mv/ui/uic/MusicMvShareUIC", "initLocalPostStats", "(Lcom/tencent/mm/view/recyclerview/SimpleViewHolder;Lcom/tencent/mm/plugin/mv/model/MusicMv;)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                                findViewById6.setVisibility(((Integer) aVar6.a(0)).intValue());
                                j30.a.e(findViewById6, "com/tencent/mm/plugin/mv/ui/uic/MusicMvShareUIC", "initLocalPostStats", "(Lcom/tencent/mm/view/recyclerview/SimpleViewHolder;Lcom/tencent/mm/plugin/mv/model/MusicMv;)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                            }
                            View findViewById7 = oVar2.f7101d.findViewById(R.id.f363857im3);
                            if (findViewById7 != null) {
                                findViewById7.setOnClickListener(new x0(fVar2));
                                return;
                            }
                            return;
                        } else if (i19 == 4) {
                            View findViewById8 = oVar2.f7101d.findViewById(R.id.im7);
                            if (findViewById8 != null) {
                                k30.a aVar7 = new k30.a();
                                ThreadLocal<k30.a> threadLocal7 = k30.c.f244265a;
                                aVar7.c(8);
                                j30.a.d(findViewById8, aVar7.b(), "com/tencent/mm/plugin/mv/ui/uic/MusicMvShareUIC", "initLocalPostStats", "(Lcom/tencent/mm/view/recyclerview/SimpleViewHolder;Lcom/tencent/mm/plugin/mv/model/MusicMv;)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                                findViewById8.setVisibility(((Integer) aVar7.a(0)).intValue());
                                j30.a.e(findViewById8, "com/tencent/mm/plugin/mv/ui/uic/MusicMvShareUIC", "initLocalPostStats", "(Lcom/tencent/mm/view/recyclerview/SimpleViewHolder;Lcom/tencent/mm/plugin/mv/model/MusicMv;)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                            }
                            View findViewById9 = oVar2.f7101d.findViewById(R.id.f363857im3);
                            if (findViewById9 != null) {
                                k30.a aVar8 = new k30.a();
                                ThreadLocal<k30.a> threadLocal8 = k30.c.f244265a;
                                aVar8.c(8);
                                j30.a.d(findViewById9, aVar8.b(), "com/tencent/mm/plugin/mv/ui/uic/MusicMvShareUIC", "initLocalPostStats", "(Lcom/tencent/mm/view/recyclerview/SimpleViewHolder;Lcom/tencent/mm/plugin/mv/model/MusicMv;)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                                findViewById9.setVisibility(((Integer) aVar8.a(0)).intValue());
                                j30.a.e(findViewById9, "com/tencent/mm/plugin/mv/ui/uic/MusicMvShareUIC", "initLocalPostStats", "(Lcom/tencent/mm/view/recyclerview/SimpleViewHolder;Lcom/tencent/mm/plugin/mv/model/MusicMv;)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                                return;
                            }
                            return;
                        } else {
                            return;
                        }
                    } else {
                        View findViewById10 = oVar2.f7101d.findViewById(R.id.im7);
                        if (findViewById10 != null) {
                            k30.a aVar9 = new k30.a();
                            ThreadLocal<k30.a> threadLocal9 = k30.c.f244265a;
                            aVar9.c(8);
                            j30.a.d(findViewById10, aVar9.b(), "com/tencent/mm/plugin/mv/ui/uic/MusicMvShareUIC", "initLocalPostStats", "(Lcom/tencent/mm/view/recyclerview/SimpleViewHolder;Lcom/tencent/mm/plugin/mv/model/MusicMv;)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                            findViewById10.setVisibility(((Integer) aVar9.a(0)).intValue());
                            j30.a.e(findViewById10, "com/tencent/mm/plugin/mv/ui/uic/MusicMvShareUIC", "initLocalPostStats", "(Lcom/tencent/mm/view/recyclerview/SimpleViewHolder;Lcom/tencent/mm/plugin/mv/model/MusicMv;)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                        }
                        View findViewById11 = oVar2.f7101d.findViewById(R.id.f363857im3);
                        if (findViewById11 != null) {
                            k30.a aVar10 = new k30.a();
                            ThreadLocal<k30.a> threadLocal10 = k30.c.f244265a;
                            aVar10.c(8);
                            j30.a.d(findViewById11, aVar10.b(), "com/tencent/mm/plugin/mv/ui/uic/MusicMvShareUIC", "initLocalPostStats", "(Lcom/tencent/mm/view/recyclerview/SimpleViewHolder;Lcom/tencent/mm/plugin/mv/model/MusicMv;)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                            findViewById11.setVisibility(((Integer) aVar10.a(0)).intValue());
                            j30.a.e(findViewById11, "com/tencent/mm/plugin/mv/ui/uic/MusicMvShareUIC", "initLocalPostStats", "(Lcom/tencent/mm/view/recyclerview/SimpleViewHolder;Lcom/tencent/mm/plugin/mv/model/MusicMv;)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                            return;
                        }
                        return;
                    }
                case 205:
                    r rVar2 = r.f342954a;
                    k kVar = (k) rVar2.b(this.f347419d.getContext()).a(k.class);
                    mm2.f fVar3 = this.f347420e;
                    kVar.getClass();
                    m.g(fVar3, "musicMv");
                    if (!BuildInfo.DEBUG) {
                        if (!(BuildInfo.IS_FLAVOR_PURPLE || BuildInfo.IS_FLAVOR_RED || BuildInfo.CLIENT_VERSION_INT == 788529167) && !WeChatEnvironment.hasDebugger()) {
                            z15 = false;
                            if (!z15) {
                                ml1 ml12 = ((e) rVar2.c(kVar.getActivity()).a(e.class)).f347106i;
                                JSONObject jSONObject = new JSONObject();
                                jSONObject.put("songId", ml12.f29877i);
                                jSONObject.put("songName", ml12.f29872d);
                                jSONObject.put("singer", ml12.f29873e);
                                jSONObject.put("albumName", ml12.f29879n);
                                jSONObject.put("albumUrl", ml12.f29880o);
                                jSONObject.put("musicWebUrl", ml12.f29876h);
                                jSONObject.put("musicDataUrl", ml12.f29874f);
                                jSONObject.put(FFmpegMetadataRetriever.METADATA_KEY_GENRE, ml12.f29881p);
                                jSONObject.put("publicTime", ml12.f29882q);
                                jSONObject.put("musicAppId", ml12.f29875g);
                                jSONObject.put("publicTimeS", ml12.f29883r);
                                jSONObject.put(TPReportKeys.LiveExKeys.LIVE_EX_EXTRA_INFO, ml12.f29884s);
                                jSONObject.put("identification", ml12.f29885t);
                                nl1 nl12 = ml12.f29889x;
                                if (nl12 == null || (str = nl12.f31020d) == null) {
                                    str = "";
                                }
                                jSONObject.put("operationUrl", str);
                                com.tencent.mm.plugin.music.player.base.g a16 = ql2.n.g().a();
                                jSONObject.put("duration", a16 != null ? Integer.valueOf(a16.getDuration()) : null);
                                jSONObject.put("musicDuration", ml12.f29886u);
                                com.tencent.mm.plugin.music.player.base.g a17 = ql2.n.g().a();
                                jSONObject.put("currentPosition", a17 != null ? Integer.valueOf(a17.getPlayPosition()) : null);
                                JSONObject jSONObject2 = new JSONObject();
                                jSONObject2.put(l3.COL_LOCALID, fVar3.f266244a);
                                jSONObject2.put("localCoverPath", fVar3.f266245b);
                                jSONObject2.put("mvObjectId", fVar3.f266246c);
                                Long l17 = fVar3.f266246c;
                                jSONObject2.put("unsignedMvObjectId", m60.d.p(l17 != null ? l17.longValue() : 0));
                                jSONObject2.put("mvObjectNonceId", fVar3.f266247d);
                                jSONObject2.put("mvMakerNickName", fVar3.f266249f);
                                FinderContact finderContact = fVar3.f266253j;
                                jSONObject2.put("mvMakerUsername", finderContact != null ? finderContact.username : null);
                                jSONObject2.put("coverUrl", fVar3.f266248e);
                                jSONObject2.put("likeCount", fVar3.f266254k);
                                jSONObject2.put("forwardCount", fVar3.f266255l);
                                jSONObject2.put("commentCount", fVar3.f266256m);
                                jSONObject2.put("mvPostStatus", fVar3.f266259p);
                                jSONObject2.put("isDelete", fVar3.f266261r);
                                ll1 ll13 = fVar3.f266252i;
                                jSONObject2.put("originality", ll13 != null ? Float.valueOf(ll13.f28650d) : null);
                                ll1 ll14 = fVar3.f266252i;
                                jSONObject2.put("completion", ll14 != null ? Float.valueOf(ll14.f28651e) : null);
                                JSONArray jSONArray = new JSONArray();
                                int i25 = 0;
                                for (T t15 : fVar3.f266250g) {
                                    int i26 = i25 + 1;
                                    if (i25 >= 0) {
                                        T t16 = t15;
                                        JSONObject jSONObject3 = new JSONObject();
                                        jSONObject3.put(FirebaseAnalytics.b.INDEX, i25);
                                        jSONObject3.put("refObjectId", t16.f32088f);
                                        jSONObject3.put("unsignedRefObjectId", m60.d.p(t16.f32088f));
                                        jSONObject3.put("refNonceId", t16.f32089g);
                                        jSONObject3.put("timeOffsetInMvMs", t16.f32086d);
                                        jSONObject3.put("timeLengthInMvMs", t16.f32087e);
                                        jSONObject3.put("timeOffsetInClipMs", t16.f32090h);
                                        jSONObject3.put("isFirstUpload", t16.f32092j);
                                        jSONArray.put(jSONObject3);
                                        i25 = i26;
                                        kVar = kVar;
                                    } else {
                                        xg4.u.l();
                                        throw null;
                                    }
                                }
                                JSONArray jSONArray2 = new JSONArray();
                                Iterator<T> it = fVar3.f266258o.iterator();
                                int i27 = 0;
                                while (it.hasNext()) {
                                    T next = it.next();
                                    int i28 = i27 + 1;
                                    if (i27 >= 0) {
                                        T t17 = next;
                                        JSONObject jSONObject4 = new JSONObject();
                                        jSONObject4.put(FirebaseAnalytics.b.INDEX, i27);
                                        jSONObject4.put("id", t17.f173515id);
                                        jSONObject4.put("unsignedId", m60.d.p(t17.f173515id));
                                        jSONObject4.put("objectNonceId", t17.objectNonceId);
                                        FinderContact finderContact2 = t17.contact;
                                        jSONObject4.put("username", finderContact2 != null ? finderContact2.username : null);
                                        FinderContact finderContact3 = t17.contact;
                                        jSONObject4.put("nickname", finderContact3 != null ? finderContact3.nickname : null);
                                        if (t17.f173515id != j15) {
                                            sb5 = new StringBuilder();
                                            sb5.append("video_");
                                            sb5.append(t17.f173515id);
                                        } else {
                                            sb5 = new StringBuilder();
                                            sb5.append("video_");
                                            sb5.append(t17.objectNonceId);
                                        }
                                        String sb6 = sb5.toString();
                                        jSONObject4.put("mediaId", sb6);
                                        m.g(sb6, "mediaId");
                                        String o15 = new com.tencent.mm.vfs.q1(t.f295269a.c(sb6)).o();
                                        m.f(o15, "VFSFile(MusicFileNameUti…th(mediaId)).absolutePath");
                                        jSONObject4.put("videoPath", o15);
                                        FinderObjectDesc finderObjectDesc3 = t17.objectDesc;
                                        if (!(finderObjectDesc3 == null || (linkedList2 = finderObjectDesc3.media) == null || (finderMedia = (FinderMedia) c0.Q(linkedList2)) == null)) {
                                            jSONObject4.put("video_url", finderMedia.url + finderMedia.url_token);
                                            jSONObject4.put("decodeKey", finderMedia.decodeKey);
                                            jSONObject4.put("fileSize", finderMedia.fileSize);
                                            jSONObject4.put("width", Float.valueOf(finderMedia.width));
                                            jSONObject4.put("height", Float.valueOf(finderMedia.height));
                                            jSONObject4.put("videoDuration", finderMedia.videoDuration);
                                            jSONObject4.put("mediaType", finderMedia.mediaType);
                                            jSONObject4.put(FFmpegMetadataRetriever.METADATA_KEY_VARIANT_BITRATE, finderMedia.bitrate);
                                            jSONObject4.put("coverUrl", finderMedia.coverUrl);
                                        }
                                        jSONArray2.put(jSONObject4);
                                        i27 = i28;
                                        it = it;
                                        j15 = 0;
                                    } else {
                                        xg4.u.l();
                                        throw null;
                                    }
                                }
                                Map f15 = r0.f(new wg4.l(5286, "NetSceneMusicMvCheckPermission"), new wg4.l(3710, "NetSceneMusicMvFinderLike"), new wg4.l(5904, "NetSceneMusicMvGetBeatTrack"), new wg4.l(6860, "NetSceneMusicMvGetRecommendList"), new wg4.l(3966, "NetSceneMusicMvGetFinderFavFeed"), new wg4.l(3763, "NetSceneMusicMvGetFinderFeedDetail"), new wg4.l(3965, "NetSceneMusicMvGetFinderLikeFeed"), new wg4.l(5292, "NetSceneMusicMvGetSongStatus"), new wg4.l(6820, "NetSceneMusicMvHeartbeat"), new wg4.l(6893, "NetSceneMusicMvJoin"), new wg4.l(6672, "NetSceneMusicMvPostLiveMsg"));
                                JSONObject jSONObject5 = new JSONObject();
                                for (Map.Entry<Integer, om2.b> entry : om2.a.f277631h.entrySet()) {
                                    String str2 = (String) f15.get(entry.getKey());
                                    if (str2 == null) {
                                        str2 = String.valueOf(entry.getKey().intValue());
                                    }
                                    jSONObject5.put(str2, entry.getValue().toString());
                                }
                                n nVar = new n((Context) kVar.getActivity(), 0, false);
                                nVar.f281245i = new f(kVar);
                                nVar.f281247j = new g(kVar);
                                nVar.f281259q = new h(jSONObject, kVar, jSONObject2, jSONArray, jSONArray2, jSONObject5);
                                nVar.f281263s = new i(kVar, jSONObject, jSONObject2, jSONArray, jSONArray2, jSONObject5);
                                nVar.f281235d = j.f347180a;
                                nVar.q();
                                Log.e(kVar.f347228d, "MV START####################################################START");
                                Log.e(kVar.f347228d, "songInfoText: " + jSONObject);
                                Log.e(kVar.f347228d, "mvHeadInfoText: " + jSONObject2);
                                Log.e(kVar.f347228d, "mvTrackInfoText: " + jSONArray);
                                Log.e(kVar.f347228d, "mvRefObjInfoText: " + jSONArray2);
                                Log.e(kVar.f347228d, "cgiInfo: " + jSONArray2);
                                Log.e(kVar.f347228d, "MV END  ####################################################  END");
                                return;
                            }
                            return;
                        }
                    }
                    z15 = true;
                    if (!z15) {
                    }
                    break;
                default:
                    return;
            }
        }
    }

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

    /* JADX WARNING: Removed duplicated region for block: B:103:0x0283  */
    /* JADX WARNING: Removed duplicated region for block: B:104:0x0285  */
    /* JADX WARNING: Removed duplicated region for block: B:107:0x0291  */
    /* JADX WARNING: Removed duplicated region for block: B:113:0x02ac  */
    /* JADX WARNING: Removed duplicated region for block: B:119:0x02d7 A[ADDED_TO_REGION] */
    /* JADX WARNING: Removed duplicated region for block: B:124:0x02ea  */
    /* JADX WARNING: Removed duplicated region for block: B:33:0x00d3  */
    /* JADX WARNING: Removed duplicated region for block: B:34:0x00df  */
    /* JADX WARNING: Removed duplicated region for block: B:37:0x0116  */
    /* JADX WARNING: Removed duplicated region for block: B:38:0x0119  */
    /* JADX WARNING: Removed duplicated region for block: B:41:0x0122  */
    /* JADX WARNING: Removed duplicated region for block: B:42:0x0125  */
    /* JADX WARNING: Removed duplicated region for block: B:45:0x0134  */
    /* JADX WARNING: Removed duplicated region for block: B:54:0x0146  */
    /* JADX WARNING: Removed duplicated region for block: B:56:0x014a  */
    /* JADX WARNING: Removed duplicated region for block: B:65:0x015c  */
    /* JADX WARNING: Removed duplicated region for block: B:66:0x016d  */
    /* JADX WARNING: Removed duplicated region for block: B:69:0x0177  */
    /* JADX WARNING: Removed duplicated region for block: B:70:0x017a  */
    /* JADX WARNING: Removed duplicated region for block: B:72:0x017d  */
    /* JADX WARNING: Removed duplicated region for block: B:78:0x018c  */
    /* JADX WARNING: Removed duplicated region for block: B:88:0x01ce  */
    /* JADX WARNING: Removed duplicated region for block: B:89:0x01d1  */
    /* JADX WARNING: Removed duplicated region for block: B:92:0x01ec  */
    public final void j5(i84.o oVar, mm2.f fVar, int i15) {
        String str;
        boolean z15;
        boolean z16;
        ml1 ml12;
        String str2;
        String M5;
        ml1 ml13;
        String str3;
        boolean l15;
        a0 a0Var;
        boolean z17;
        boolean z18;
        String str4;
        String str5;
        ml1 ml14;
        String str6;
        boolean z19;
        f0 f0Var;
        ml1 ml15;
        String str7;
        e eVar;
        boolean z25;
        T t15;
        boolean z26;
        T t16;
        BitmapDrawable bitmapDrawable;
        boolean z27;
        String str8;
        boolean z28;
        boolean z29;
        boolean z35;
        int i16;
        m.g(oVar, "holder");
        m.g(fVar, "musicMv");
        j0 a15 = r.f342954a.b(getContext()).a(e.class);
        m.f(a15, "UICProvider.of(context).…sicMvDataUIC::class.java)");
        e eVar2 = (e) a15;
        FinderContact finderContact = fVar.f266253j;
        if (finderContact != null) {
            str = finderContact.username;
        } else {
            str = null;
        }
        boolean z36 = !m.b(str, r32.b.c(getContext()));
        int i17 = fVar.f266259p;
        if (i17 == 1 || i17 == 4) {
            z15 = true;
        } else {
            z15 = false;
        }
        if ((eVar2.f347109o & 1) > 0) {
            boolean TL = ((e2) yz3.j.c(e2.class)).TL();
            if (!((kd3.i) yz3.j.c(kd3.i.class)).isTeenMode() || ((kd3.i) yz3.j.c(kd3.i.class)).hr() != 2) {
                z35 = false;
            } else {
                z35 = true;
            }
            Log.i(eVar2.f347101d, "[canCreateMv] show:%s, isTeenModeAndNothing:%s", Boolean.valueOf(TL), Boolean.valueOf(z35));
            if (TL && !z35 && ((i16 = fVar.f266259p) == 1 ? fVar.f266250g.size() > 0 : !(i16 != 4 || fVar.f266263t == null || fVar.f266264u.size() <= 0))) {
                z16 = true;
                this.f347382d = new j1(getContext(), System.currentTimeMillis());
                this.f347383e = false;
                f0 f0Var2 = new f0();
                if (!z15) {
                    f0Var2.f253292d = (T) new n((Context) getActivity(), 0, false);
                } else {
                    T t17 = (T) new n((Context) getActivity(), 0, true);
                    f0Var2.f253292d = t17;
                    t17.m(getActivity().getResources().getString(R.string.h4f), 17, gy3.a.b(getActivity(), 12));
                }
                ln.l lVar = (ln.l) yz3.j.c(ln.l.class);
                Activity context = getContext();
                ml12 = eVar2.f347106i;
                if (ml12 == null) {
                    str2 = ml12.f29875g;
                } else {
                    str2 = null;
                }
                M5 = lVar.M5(context, str2);
                ml13 = eVar2.f347106i;
                if (ml13 == null) {
                    str3 = ml13.f29875g;
                } else {
                    str3 = null;
                }
                l15 = y.l("wx122a2d4c4b5f211e", str3, true);
                a0Var = new a0();
                if (M5 != null) {
                    if (M5.length() > 0) {
                        z29 = true;
                    } else {
                        z29 = false;
                    }
                    if (z29) {
                        z17 = true;
                        a0Var.f253280d = z17;
                        if (l15) {
                            a0Var.f253280d = false;
                        }
                        if (M5 != null) {
                            if (M5.length() > 0) {
                                z28 = true;
                            } else {
                                z28 = false;
                            }
                            if (z28) {
                                z18 = true;
                                str4 = "";
                                if (!z18) {
                                    str5 = getContext().getString(R.string.f368661fs2, M5);
                                } else {
                                    str5 = str4;
                                }
                                m.f(str5, "if (appName?.isNotEmpty(…pp_tips, appName) else \"\"");
                                ml14 = eVar2.f347106i;
                                if (ml14 == null) {
                                    str6 = ml14.f29875g;
                                } else {
                                    str6 = null;
                                }
                                if (str6 != null || str6.length() == 0) {
                                    z19 = true;
                                } else {
                                    z19 = false;
                                }
                                if (!z19) {
                                    com.tencent.mm.pluginsdk.model.app.j appInfo = ((ln.l) yz3.j.c(ln.l.class)).getAppInfo(str6);
                                    String J2 = ((xp2.f) yz3.j.c(xp2.f.class)).J2(str6, 1);
                                    if (u1.k(J2)) {
                                        str4 = "file://" + J2;
                                    } else {
                                        if (appInfo != null) {
                                            str8 = appInfo.field_appIconUrl;
                                        } else {
                                            str8 = null;
                                        }
                                        if (str8 != null) {
                                            str4 = str8;
                                        }
                                    }
                                }
                                f0Var = new f0();
                                Object[] objArr = new Object[3];
                                ml15 = eVar2.f347106i;
                                if (ml15 == null) {
                                    str7 = ml15.f29875g;
                                } else {
                                    str7 = null;
                                }
                                objArr[0] = str7;
                                objArr[1] = Boolean.valueOf(a0Var.f253280d);
                                objArr[2] = str4;
                                Log.i("MicroMsg.Mv.MusicMvShareUIC", "musicAppId:%s, isShowAppName:%b, iconPath:%s", objArr);
                                if (!Util.isNullOrNil(str4)) {
                                    if (y.w(str4, "file://", false, 2, null)) {
                                        f0Var.f253292d = (T) BitmapUtil.getBitmapNative(str4);
                                    } else {
                                        t tVar = t.f295269a;
                                        StringBuilder sb5 = new StringBuilder();
                                        sb5.append("thumb_");
                                        byte[] bytes = str4.getBytes(ek4.c.f208058a);
                                        eVar = eVar2;
                                        m.f(bytes, "this as java.lang.String).getBytes(charset)");
                                        sb5.append(gh.g.f(bytes));
                                        String o15 = new com.tencent.mm.vfs.q1(tVar.b(sb5.toString())).o();
                                        m.f(o15, "VFSFile(MusicFileNameUti…Array())}\")).absolutePath");
                                        Log.i("MicroMsg.Mv.MusicMvShareUIC", "initCover save Path:" + o15);
                                        T t18 = (T) BitmapUtil.getBitmapNative(o15);
                                        f0Var.f253292d = t18;
                                        if (t18 == null || t18.isRecycled()) {
                                            c.b bVar = new c.b();
                                            bVar.f294616b = true;
                                            bVar.f294615a = true;
                                            bVar.f294620f = o15;
                                            bVar.f294639y = new Object[]{str4};
                                            qg0.a.b().d(str4, bVar.a(), new b(f0Var, o15));
                                        }
                                        Object[] objArr2 = new Object[2];
                                        if (f0Var.f253292d != null) {
                                            z25 = true;
                                        } else {
                                            z25 = false;
                                        }
                                        objArr2[0] = Boolean.valueOf(z25);
                                        t15 = f0Var.f253292d;
                                        if (t15 != null || t15.isRecycled()) {
                                            z26 = false;
                                        } else {
                                            z26 = true;
                                        }
                                        objArr2[1] = Boolean.valueOf(z26);
                                        Log.i("MicroMsg.Mv.MusicMvShareUIC", "bitmap:%b, isRecycled:%b", objArr2);
                                        t16 = f0Var.f253292d;
                                        if (t16 != null || t16.isRecycled()) {
                                            bitmapDrawable = null;
                                        } else {
                                            bitmapDrawable = new BitmapDrawable(getResources(), BitmapUtil.getRoundedCornerBitmap(f0Var.f253292d, false, (float) gy3.a.b(getContext(), 4)));
                                        }
                                        if (a0Var.f253280d || bitmapDrawable == null) {
                                            z27 = false;
                                        } else {
                                            z27 = true;
                                        }
                                        a0Var.f253280d = z27;
                                        Object[] objArr3 = new Object[2];
                                        Boolean valueOf = Boolean.valueOf(z27);
                                        boolean z37 = false;
                                        objArr3[0] = valueOf;
                                        if (bitmapDrawable != null) {
                                            z37 = true;
                                        }
                                        objArr3[1] = Boolean.valueOf(z37);
                                        Log.i("MicroMsg.Mv.MusicMvShareUIC", "isShowAppName:%b, drawable:%b", objArr3);
                                        e0 YI0 = ((e0) yz3.j.c(e0.class)).YI0();
                                        T t19 = f0Var2.f253292d;
                                        t19.f281252n = new c(YI0, this, f0Var2);
                                        t19.f281267u = new d(YI0, f0Var2);
                                        t19.f281265t = new e(YI0, this, fVar);
                                        t19.c().getDecorView().addOnAttachStateChangeListener(new f(this));
                                        T t25 = f0Var2.f253292d;
                                        t25.f281245i = new g(this, z15, a0Var, bitmapDrawable, str5);
                                        t25.f281247j = new h(this, z16, z36, fVar, z15);
                                        t25.f281259q = new i(this, fVar, i15);
                                        t25.f281263s = new j(this, fVar, i15, eVar, oVar);
                                        t25.f281235d = a.f347387a;
                                        t25.q();
                                    }
                                }
                                eVar = eVar2;
                                Object[] objArr22 = new Object[2];
                                if (f0Var.f253292d != null) {
                                }
                                objArr22[0] = Boolean.valueOf(z25);
                                t15 = f0Var.f253292d;
                                if (t15 != null) {
                                }
                                z26 = false;
                                objArr22[1] = Boolean.valueOf(z26);
                                Log.i("MicroMsg.Mv.MusicMvShareUIC", "bitmap:%b, isRecycled:%b", objArr22);
                                t16 = f0Var.f253292d;
                                if (t16 != null) {
                                }
                                bitmapDrawable = null;
                                if (a0Var.f253280d) {
                                }
                                z27 = false;
                                a0Var.f253280d = z27;
                                Object[] objArr32 = new Object[2];
                                Boolean valueOf2 = Boolean.valueOf(z27);
                                boolean z372 = false;
                                objArr32[0] = valueOf2;
                                if (bitmapDrawable != null) {
                                }
                                objArr32[1] = Boolean.valueOf(z372);
                                Log.i("MicroMsg.Mv.MusicMvShareUIC", "isShowAppName:%b, drawable:%b", objArr32);
                                e0 YI02 = ((e0) yz3.j.c(e0.class)).YI0();
                                T t192 = f0Var2.f253292d;
                                t192.f281252n = new c(YI02, this, f0Var2);
                                t192.f281267u = new d(YI02, f0Var2);
                                t192.f281265t = new e(YI02, this, fVar);
                                t192.c().getDecorView().addOnAttachStateChangeListener(new f(this));
                                T t252 = f0Var2.f253292d;
                                t252.f281245i = new g(this, z15, a0Var, bitmapDrawable, str5);
                                t252.f281247j = new h(this, z16, z36, fVar, z15);
                                t252.f281259q = new i(this, fVar, i15);
                                t252.f281263s = new j(this, fVar, i15, eVar, oVar);
                                t252.f281235d = a.f347387a;
                                t252.q();
                            }
                        }
                        z18 = false;
                        str4 = "";
                        if (!z18) {
                        }
                        m.f(str5, "if (appName?.isNotEmpty(…pp_tips, appName) else \"\"");
                        ml14 = eVar2.f347106i;
                        if (ml14 == null) {
                        }
                        if (str6 != null) {
                        }
                        z19 = true;
                        if (!z19) {
                        }
                        f0Var = new f0();
                        Object[] objArr4 = new Object[3];
                        ml15 = eVar2.f347106i;
                        if (ml15 == null) {
                        }
                        objArr4[0] = str7;
                        objArr4[1] = Boolean.valueOf(a0Var.f253280d);
                        objArr4[2] = str4;
                        Log.i("MicroMsg.Mv.MusicMvShareUIC", "musicAppId:%s, isShowAppName:%b, iconPath:%s", objArr4);
                        if (!Util.isNullOrNil(str4)) {
                        }
                        eVar = eVar2;
                        Object[] objArr222 = new Object[2];
                        if (f0Var.f253292d != null) {
                        }
                        objArr222[0] = Boolean.valueOf(z25);
                        t15 = f0Var.f253292d;
                        if (t15 != null) {
                        }
                        z26 = false;
                        objArr222[1] = Boolean.valueOf(z26);
                        Log.i("MicroMsg.Mv.MusicMvShareUIC", "bitmap:%b, isRecycled:%b", objArr222);
                        t16 = f0Var.f253292d;
                        if (t16 != null) {
                        }
                        bitmapDrawable = null;
                        if (a0Var.f253280d) {
                        }
                        z27 = false;
                        a0Var.f253280d = z27;
                        Object[] objArr322 = new Object[2];
                        Boolean valueOf22 = Boolean.valueOf(z27);
                        boolean z3722 = false;
                        objArr322[0] = valueOf22;
                        if (bitmapDrawable != null) {
                        }
                        objArr322[1] = Boolean.valueOf(z3722);
                        Log.i("MicroMsg.Mv.MusicMvShareUIC", "isShowAppName:%b, drawable:%b", objArr322);
                        e0 YI022 = ((e0) yz3.j.c(e0.class)).YI0();
                        T t1922 = f0Var2.f253292d;
                        t1922.f281252n = new c(YI022, this, f0Var2);
                        t1922.f281267u = new d(YI022, f0Var2);
                        t1922.f281265t = new e(YI022, this, fVar);
                        t1922.c().getDecorView().addOnAttachStateChangeListener(new f(this));
                        T t2522 = f0Var2.f253292d;
                        t2522.f281245i = new g(this, z15, a0Var, bitmapDrawable, str5);
                        t2522.f281247j = new h(this, z16, z36, fVar, z15);
                        t2522.f281259q = new i(this, fVar, i15);
                        t2522.f281263s = new j(this, fVar, i15, eVar, oVar);
                        t2522.f281235d = a.f347387a;
                        t2522.q();
                    }
                }
                z17 = false;
                a0Var.f253280d = z17;
                if (l15) {
                }
                if (M5 != null) {
                }
                z18 = false;
                str4 = "";
                if (!z18) {
                }
                m.f(str5, "if (appName?.isNotEmpty(…pp_tips, appName) else \"\"");
                ml14 = eVar2.f347106i;
                if (ml14 == null) {
                }
                if (str6 != null) {
                }
                z19 = true;
                if (!z19) {
                }
                f0Var = new f0();
                Object[] objArr42 = new Object[3];
                ml15 = eVar2.f347106i;
                if (ml15 == null) {
                }
                objArr42[0] = str7;
                objArr42[1] = Boolean.valueOf(a0Var.f253280d);
                objArr42[2] = str4;
                Log.i("MicroMsg.Mv.MusicMvShareUIC", "musicAppId:%s, isShowAppName:%b, iconPath:%s", objArr42);
                if (!Util.isNullOrNil(str4)) {
                }
                eVar = eVar2;
                Object[] objArr2222 = new Object[2];
                if (f0Var.f253292d != null) {
                }
                objArr2222[0] = Boolean.valueOf(z25);
                t15 = f0Var.f253292d;
                if (t15 != null) {
                }
                z26 = false;
                objArr2222[1] = Boolean.valueOf(z26);
                Log.i("MicroMsg.Mv.MusicMvShareUIC", "bitmap:%b, isRecycled:%b", objArr2222);
                t16 = f0Var.f253292d;
                if (t16 != null) {
                }
                bitmapDrawable = null;
                if (a0Var.f253280d) {
                }
                z27 = false;
                a0Var.f253280d = z27;
                Object[] objArr3222 = new Object[2];
                Boolean valueOf222 = Boolean.valueOf(z27);
                boolean z37222 = false;
                objArr3222[0] = valueOf222;
                if (bitmapDrawable != null) {
                }
                objArr3222[1] = Boolean.valueOf(z37222);
                Log.i("MicroMsg.Mv.MusicMvShareUIC", "isShowAppName:%b, drawable:%b", objArr3222);
                e0 YI0222 = ((e0) yz3.j.c(e0.class)).YI0();
                T t19222 = f0Var2.f253292d;
                t19222.f281252n = new c(YI0222, this, f0Var2);
                t19222.f281267u = new d(YI0222, f0Var2);
                t19222.f281265t = new e(YI0222, this, fVar);
                t19222.c().getDecorView().addOnAttachStateChangeListener(new f(this));
                T t25222 = f0Var2.f253292d;
                t25222.f281245i = new g(this, z15, a0Var, bitmapDrawable, str5);
                t25222.f281247j = new h(this, z16, z36, fVar, z15);
                t25222.f281259q = new i(this, fVar, i15);
                t25222.f281263s = new j(this, fVar, i15, eVar, oVar);
                t25222.f281235d = a.f347387a;
                t25222.q();
            }
        }
        z16 = false;
        this.f347382d = new j1(getContext(), System.currentTimeMillis());
        this.f347383e = false;
        f0 f0Var22 = new f0();
        if (!z15) {
        }
        ln.l lVar2 = (ln.l) yz3.j.c(ln.l.class);
        Activity context2 = getContext();
        ml12 = eVar2.f347106i;
        if (ml12 == null) {
        }
        M5 = lVar2.M5(context2, str2);
        ml13 = eVar2.f347106i;
        if (ml13 == null) {
        }
        l15 = y.l("wx122a2d4c4b5f211e", str3, true);
        a0Var = new a0();
        if (M5 != null) {
        }
        z17 = false;
        a0Var.f253280d = z17;
        if (l15) {
        }
        if (M5 != null) {
        }
        z18 = false;
        str4 = "";
        if (!z18) {
        }
        m.f(str5, "if (appName?.isNotEmpty(…pp_tips, appName) else \"\"");
        ml14 = eVar2.f347106i;
        if (ml14 == null) {
        }
        if (str6 != null) {
        }
        z19 = true;
        if (!z19) {
        }
        f0Var = new f0();
        Object[] objArr422 = new Object[3];
        ml15 = eVar2.f347106i;
        if (ml15 == null) {
        }
        objArr422[0] = str7;
        objArr422[1] = Boolean.valueOf(a0Var.f253280d);
        objArr422[2] = str4;
        Log.i("MicroMsg.Mv.MusicMvShareUIC", "musicAppId:%s, isShowAppName:%b, iconPath:%s", objArr422);
        if (!Util.isNullOrNil(str4)) {
        }
        eVar = eVar2;
        Object[] objArr22222 = new Object[2];
        if (f0Var.f253292d != null) {
        }
        objArr22222[0] = Boolean.valueOf(z25);
        t15 = f0Var.f253292d;
        if (t15 != null) {
        }
        z26 = false;
        objArr22222[1] = Boolean.valueOf(z26);
        Log.i("MicroMsg.Mv.MusicMvShareUIC", "bitmap:%b, isRecycled:%b", objArr22222);
        t16 = f0Var.f253292d;
        if (t16 != null) {
        }
        bitmapDrawable = null;
        if (a0Var.f253280d) {
        }
        z27 = false;
        a0Var.f253280d = z27;
        Object[] objArr32222 = new Object[2];
        Boolean valueOf2222 = Boolean.valueOf(z27);
        boolean z372222 = false;
        objArr32222[0] = valueOf2222;
        if (bitmapDrawable != null) {
        }
        objArr32222[1] = Boolean.valueOf(z372222);
        Log.i("MicroMsg.Mv.MusicMvShareUIC", "isShowAppName:%b, drawable:%b", objArr32222);
        e0 YI02222 = ((e0) yz3.j.c(e0.class)).YI0();
        T t192222 = f0Var22.f253292d;
        t192222.f281252n = new c(YI02222, this, f0Var22);
        t192222.f281267u = new d(YI02222, f0Var22);
        t192222.f281265t = new e(YI02222, this, fVar);
        t192222.c().getDecorView().addOnAttachStateChangeListener(new f(this));
        T t252222 = f0Var22.f253292d;
        t252222.f281245i = new g(this, z15, a0Var, bitmapDrawable, str5);
        t252222.f281247j = new h(this, z16, z36, fVar, z15);
        t252222.f281259q = new i(this, fVar, i15);
        t252222.f281263s = new j(this, fVar, i15, eVar, oVar);
        t252222.f281235d = a.f347387a;
        t252222.q();
    }

    public final String k5(mm2.f fVar) {
        boolean z15;
        boolean z16;
        boolean z17;
        boolean z18;
        boolean z19 = true;
        if (!mm2.f.A.e(fVar)) {
            j0 a15 = r.f342954a.c(getActivity()).a(e.class);
            m.f(a15, "UICProvider.of(activity)…sicMvDataUIC::class.java)");
            String str = ((e) a15).f347106i.f29880o;
            if (str != null) {
                if (str.length() > 0) {
                    z18 = true;
                } else {
                    z18 = false;
                }
                if (!z18) {
                    str = null;
                }
                if (str != null) {
                    t tVar = t.f295269a;
                    StringBuilder sb5 = new StringBuilder();
                    sb5.append("thumb_");
                    byte[] bytes = str.getBytes(ek4.c.f208058a);
                    m.f(bytes, "this as java.lang.String).getBytes(charset)");
                    sb5.append(gh.g.f(bytes));
                    String o15 = new com.tencent.mm.vfs.q1(tVar.b(sb5.toString())).o();
                    m.f(o15, "VFSFile(MusicFileNameUti…Array())}\")).absolutePath");
                    if (u1.k(o15)) {
                        return o15;
                    }
                }
            }
        }
        String str2 = fVar.f266245b;
        if (str2 != null) {
            if (str2.length() > 0) {
                z17 = true;
            } else {
                z17 = false;
            }
            if (!z17) {
                str2 = null;
            }
            if (str2 != null && u1.k(str2)) {
                return str2;
            }
        }
        String str3 = fVar.f266248e;
        if (str3 != null) {
            if (str3.length() > 0) {
                z16 = true;
            } else {
                z16 = false;
            }
            if (!z16) {
                str3 = null;
            }
            if (str3 != null) {
                t tVar2 = t.f295269a;
                StringBuilder sb6 = new StringBuilder();
                sb6.append("thumb_");
                byte[] bytes2 = str3.getBytes(ek4.c.f208058a);
                m.f(bytes2, "this as java.lang.String).getBytes(charset)");
                sb6.append(gh.g.f(bytes2));
                String o16 = new com.tencent.mm.vfs.q1(tVar2.b(sb6.toString())).o();
                m.f(o16, "VFSFile(MusicFileNameUti…Array())}\")).absolutePath");
                if (u1.k(o16)) {
                    return o16;
                }
            }
        }
        j0 a16 = r.f342954a.c(getActivity()).a(e.class);
        m.f(a16, "UICProvider.of(activity)…sicMvDataUIC::class.java)");
        e eVar = (e) a16;
        String str4 = eVar.f347111q.f17348d;
        if (str4 != null) {
            if (str4.length() > 0) {
                z15 = true;
            } else {
                z15 = false;
            }
            if (!z15) {
                str4 = null;
            }
            if (str4 != null && u1.k(str4)) {
                return str4;
            }
        }
        String str5 = eVar.f347106i.f29880o;
        if (str5 != null) {
            if (str5.length() <= 0) {
                z19 = false;
            }
            if (!z19) {
                str5 = null;
            }
            if (str5 != null) {
                t tVar3 = t.f295269a;
                StringBuilder sb7 = new StringBuilder();
                sb7.append("thumb_");
                byte[] bytes3 = str5.getBytes(ek4.c.f208058a);
                m.f(bytes3, "this as java.lang.String).getBytes(charset)");
                sb7.append(gh.g.f(bytes3));
                String o17 = new com.tencent.mm.vfs.q1(tVar3.b(sb7.toString())).o();
                m.f(o17, "VFSFile(MusicFileNameUti…Array())}\")).absolutePath");
                if (u1.k(o17)) {
                    return o17;
                }
            }
        }
        return null;
    }

    public final SpannableString l5(Context context) {
        m.g(context, "context");
        SpannableString spannableString = new SpannableString(context.getString(R.string.f368859gv2));
        int H = ek4.d0.H(spannableString, "{music}", 0, false, 6, null);
        int intrinsicWidth = context.getResources().getDrawable(R.raw.state_icon_main).getIntrinsicWidth();
        int h15 = gy3.a.h(context, R.dimen.f359080cs);
        Drawable e15 = c04.a.e(context.getResources(), R.raw.state_icon_main, (((float) h15) * 1.0f) / ((float) intrinsicWidth));
        e15.setColorFilter(new PorterDuffColorFilter(-1, PorterDuff.Mode.SRC_ATOP));
        e15.setBounds(0, 0, h15, h15);
        spannableString.setSpan(new an2.b(e15), H, H + 7, 17);
        return spannableString;
    }

    public final void m5(mm2.f fVar, boolean z15, int i15) {
        boolean z16;
        j0 a15 = r.f342954a.b(getContext()).a(e.class);
        m.f(a15, "UICProvider.of(context).…sicMvDataUIC::class.java)");
        e eVar = (e) a15;
        ml1 ml12 = eVar.f347106i;
        String str = eVar.f347110p;
        if (ml12 != null && fVar != null && str != null) {
            String str2 = ml12.f29880o;
            if (str2 == null || str2.length() == 0) {
                z16 = true;
            } else {
                z16 = false;
            }
            if (z16) {
                try {
                    t tVar = t.f295269a;
                    StringBuilder sb5 = new StringBuilder();
                    sb5.append("thumb_");
                    byte[] bytes = "DEFAULT_TEXT_STATUS_MUSIC_THUMB_PATH".getBytes(ek4.c.f208058a);
                    m.f(bytes, "this as java.lang.String).getBytes(charset)");
                    sb5.append(gh.g.f(bytes));
                    String o15 = new com.tencent.mm.vfs.q1(tVar.b(sb5.toString())).o();
                    m.f(o15, "VFSFile(MusicFileNameUti…Array())}\")).absolutePath");
                    if (!u1.k(o15)) {
                        BitmapUtil.saveBitmapToImage(BitmapFactory.decodeResource(getContext().getResources(), R.drawable.cjn), 100, Bitmap.CompressFormat.PNG, o15, true);
                        str2 = o15;
                    }
                } catch (Exception e15) {
                    Log.e("MicroMsg.Mv.MusicMvShareUIC", "save default text status thumb fail! " + e15.getLocalizedMessage());
                }
            }
            Activity context = getContext();
            m.e(context, "null cannot be cast to non-null type android.app.Activity");
            z.a aVar = new z.a();
            aVar.a("1016");
            aVar.f289149a.f325204e = str2;
            aVar.e("music_player@inner");
            aVar.f(ml12.f29872d);
            aVar.d("http://wxapp.tc.qq.com/258/20304/stodownload?m=2009416463c227ad5a09b4fcf23bf985&filekey=30340201010420301e020201020402534804102009416463c227ad5a09b4fcf23bf9850202042e040d00000004627466730000000131&hy=SH&storeid=32303231303331383139353931363030306366646534303030303030303037636638353130393030303030313032&bizid=1023");
            aVar.c(ml12.f29877i);
            aVar.g(str);
            ve3.a0 a0Var = new ve3.a0();
            a0Var.f325223d = "1";
            a0Var.f325225f = sm2.b0.a(ml12, fVar);
            b0 b0Var = b0.f332794a;
            aVar.b(xg4.t.b(a0Var));
            qd3.z zVar = aVar.f289149a;
            zVar.f325206g = false;
            ((sz.h) yz3.j.c(sz.h.class)).zs(context, 1, zVar);
            j0 a16 = r.f342954a.b(getContext()).a(e.class);
            m.f(a16, "UICProvider.of(context).…sicMvDataUIC::class.java)");
            e eVar2 = (e) a16;
            mm2.r rVar = mm2.r.f266335a;
            Activity context2 = getContext();
            int i16 = 3;
            if (i15 == 3) {
                i16 = 5;
            } else if (z15) {
                i16 = 4;
            }
            mm2.r.g(rVar, context2, ml12, fVar, 3, 0, i16, 0, eVar2.l5(), eVar2.j5(), null, eVar2.H, 576, null);
        }
    }

    @Override // com.tencent.mm.ui.component.UIComponent
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        this.f347384f = System.currentTimeMillis();
        this.f347385g = ((f1) yz3.j.c(f1.class)).getSearchId();
    }
}