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


package eu1;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Rect;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.fragment.app.FragmentActivity;
import ar.g;
import bh4.h;
import bw3.b43;
import bw3.bv1;
import bw3.ci0;
import bw3.dc0;
import bw3.gi0;
import bw3.k53;
import bw3.r91;
import com.tencent.mm.R;
import com.tencent.mm.plugin.finder.feed.model.s;
import com.tencent.mm.plugin.finder.model.BaseFinderFeed;
import com.tencent.mm.plugin.finder.presenter.contract.CommentDrawerContract;
import com.tencent.mm.plugin.finder.storage.FinderItem;
import com.tencent.mm.plugin.finder.ui.MMFinderUI;
import com.tencent.mm.plugin.finder.utils.a5;
import com.tencent.mm.plugin.finder.utils.y3;
import com.tencent.mm.plugin.finder.view.y0;
import com.tencent.mm.protocal.protobuf.FinderContact;
import com.tencent.mm.sdk.platformtools.Log;
import com.tencent.mm.storage.w1;
import com.tencent.mm.ui.x4;
import cs1.f0;
import d32.q1;
import d32.r1;
import d32.ta;
import d60.z;
import dh4.f;
import fl3.i;
import fl3.k;
import java.util.ArrayList;
import java.util.UUID;
import kh4.l;
import kotlin.ResultKt;
import lh4.m;
import lh4.o;
import nf0.u0;
import p64.w;
import sk1.q;
import t32.b5;
import t32.e2;
import t32.e6;
import wg4.b0;
import y24.r;
import yf0.b;
import yz3.j;
import zz1.e;

public final class c {

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

    public static final class a {

        /* renamed from: a  reason: collision with root package name */
        public final boolean f210097a;

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

        /* renamed from: c  reason: collision with root package name */
        public final String f210099c;

        public a(boolean z15, String str, String str2) {
            m.g(str, "failReason");
            m.g(str2, "errMsg");
            this.f210097a = z15;
            this.f210098b = str;
            this.f210099c = str2;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof a)) {
                return false;
            }
            a aVar = (a) obj;
            return this.f210097a == aVar.f210097a && m.b(this.f210098b, aVar.f210098b) && m.b(this.f210099c, aVar.f210099c);
        }

        public int hashCode() {
            boolean z15 = this.f210097a;
            if (z15) {
                z15 = true;
            }
            int i15 = z15 ? 1 : 0;
            int i16 = z15 ? 1 : 0;
            int i17 = z15 ? 1 : 0;
            return (((i15 * 31) + this.f210098b.hashCode()) * 31) + this.f210099c.hashCode();
        }

        public String toString() {
            return "PayResult(success=" + this.f210097a + ", failReason=" + this.f210098b + ", errMsg=" + this.f210099c + ')';
        }
    }

    @f(c = "com.tencent.mm.plugin.finder.member.FinderMemberUtil", f = "FinderMemberUtil.kt", l = {121, 133, 135}, m = "orderAndPay")
    public static final class b extends dh4.d {

        /* renamed from: d  reason: collision with root package name */
        public Object f210100d;

        /* renamed from: e  reason: collision with root package name */
        public Object f210101e;

        /* renamed from: f  reason: collision with root package name */
        public Object f210102f;

        /* renamed from: g  reason: collision with root package name */
        public Object f210103g;

        /* renamed from: h  reason: collision with root package name */
        public Object f210104h;

        /* renamed from: i  reason: collision with root package name */
        public boolean f210105i;

        /* renamed from: j  reason: collision with root package name */
        public int f210106j;

        /* renamed from: n  reason: collision with root package name */
        public /* synthetic */ Object f210107n;

        /* renamed from: o  reason: collision with root package name */
        public final /* synthetic */ c f210108o;

        /* renamed from: p  reason: collision with root package name */
        public int f210109p;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public b(c cVar, bh4.d<? super b> dVar) {
            super(dVar);
            this.f210108o = cVar;
        }

        @Override // dh4.a
        public final Object invokeSuspend(Object obj) {
            this.f210107n = obj;
            this.f210109p |= Integer.MIN_VALUE;
            return this.f210108o.e(null, null, 0, null, false, 0, this);
        }
    }

    /* renamed from: eu1.c$c  reason: collision with other inner class name */
    public static final class View$OnClickListenerC2442c implements View.OnClickListener {

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

        public View$OnClickListenerC2442c(w wVar) {
            this.f210110d = wVar;
        }

        public final void onClick(View view) {
            ArrayList arrayList = new ArrayList();
            arrayList.add(view);
            Object[] array = arrayList.toArray();
            arrayList.clear();
            j30.a.b("com/tencent/mm/plugin/finder/member/FinderMemberUtil$showMemberBecomeDialog$1", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array);
            this.f210110d.n();
            j30.a.g(this, "com/tencent/mm/plugin/finder/member/FinderMemberUtil$showMemberBecomeDialog$1", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V");
        }
    }

    public static final class d implements View.OnClickListener {

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

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

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

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

        public static final class a extends o implements l<b.c<ci0>, b0> {

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

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

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

            /* JADX INFO: super call moved to the top of the method (can break code semantics) */
            public a(Context context, Intent intent, String str) {
                super(1);
                this.f210115d = context;
                this.f210116e = intent;
                this.f210117f = str;
            }

            /* 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] */
            /* JADX WARNING: Code restructure failed: missing block: B:18:0x002d, code lost:
                if (r0 != false) goto L_0x002f;
             */
            @Override // kh4.l
            public b0 invoke(b.c<ci0> cVar) {
                boolean z15;
                ci0 ci02;
                ci0 ci03;
                b.c<ci0> cVar2 = cVar;
                if (cVar2 != null) {
                    b.f210087a.e(this.f210117f, cVar2);
                }
                boolean z16 = true;
                if (cVar2 == null || (ci03 = (ci0) cVar2.f345502d) == null || ci03.f18333e != 1) {
                    z15 = false;
                } else {
                    z15 = true;
                }
                if (!z15) {
                    if (cVar2 == null || (ci02 = (ci0) cVar2.f345502d) == null || ci02.f18333e != 2) {
                        z16 = false;
                    }
                }
                ((com.tencent.mm.plugin.finder.utils.b) j.c(com.tencent.mm.plugin.finder.utils.b.class)).RO0(this.f210115d, this.f210116e, this.f210117f);
                Context context = this.f210115d;
                m.e(context, "null cannot be cast to non-null type com.tencent.mm.plugin.finder.ui.MMFinderUI");
                ((MMFinderUI) context).finish();
                return b0.f332794a;
            }
        }

        public d(Context context, int i15, String str, w wVar) {
            this.f210111d = context;
            this.f210112e = i15;
            this.f210113f = str;
            this.f210114g = wVar;
        }

        public final void onClick(View view) {
            ArrayList arrayList = new ArrayList();
            arrayList.add(view);
            Object[] array = arrayList.toArray();
            arrayList.clear();
            j30.a.b("com/tencent/mm/plugin/finder/member/FinderMemberUtil$showMemberBecomeDialog$2", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array);
            Intent intent = new Intent();
            bv1 l05 = ((b5) r.f342954a.b(this.f210111d).c(b5.class)).l0();
            int i15 = this.f210112e;
            if (i15 == 1 || i15 == 2) {
                ((com.tencent.mm.plugin.finder.utils.b) j.c(com.tencent.mm.plugin.finder.utils.b.class)).RO0(this.f210111d, intent, this.f210113f);
            } else {
                k74.c K = m60.d.K(new hu1.c(l05, this.f210113f).h(), new a(this.f210111d, intent, this.f210113f));
                Context context = this.f210111d;
                m.e(context, "null cannot be cast to non-null type com.tencent.mm.plugin.finder.ui.MMFinderUI");
                K.n((MMFinderUI) context);
            }
            this.f210114g.n();
            j30.a.g(this, "com/tencent/mm/plugin/finder/member/FinderMemberUtil$showMemberBecomeDialog$2", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V");
        }
    }

    public final void a(Context context, FinderItem finderItem, int i15, String str) {
        long j15;
        Activity activity;
        String str2;
        String str3;
        m.g(context, "context");
        m.g(finderItem, "finderItem");
        m.g(str, "commentScene");
        Intent intent = new Intent();
        ((g) j.c(g.class)).qD(str);
        f0 config = ((e6) j.c(e6.class)).getConfig();
        config.getClass();
        config.f192773a = str;
        int i16 = hb4.w.f225586a;
        intent.putExtra("KEY_ENTER_LIVE_PARAM_LIVE_EVENT_SOURCE", 2);
        b43 b432 = new b43();
        b432.f16919d = finderItem.getId();
        r91 liveInfo = finderItem.getLiveInfo();
        if (liveInfo != null) {
            j15 = liveInfo.f35027d;
        } else {
            j15 = 0;
        }
        b432.f16920e = j15;
        b432.f16921f = finderItem.getObjectNonceId();
        String str4 = "";
        b432.f16922g = str4;
        b432.f16923h = str4;
        b432.f16924i = str4;
        Activity activity2 = null;
        b432.f16925j = null;
        dc0 dc02 = new dc0();
        boolean z15 = context instanceof Activity;
        if (z15) {
            activity = (Activity) context;
        } else {
            activity = null;
        }
        if (activity == null || (str2 = ((ta) r.f342954a.b(activity).a(ta.class)).f197189n) == null) {
            str2 = str4;
        }
        dc02.f19159d = str2;
        if (z15) {
            activity2 = (Activity) context;
        }
        if (!(activity2 == null || (str3 = ((ta) r.f342954a.b(activity2).a(ta.class)).f197191p) == null)) {
            str4 = str3;
        }
        dc02.f19160e = str4;
        dc02.f19162g = -1;
        dc02.f19164i = 1;
        k53 k532 = new k53();
        k532.f26970u = i15;
        dc02.f19166n = k532;
        ((jb4.g) j.c(jb4.g.class)).Bn(context, intent, b432, ((e2) j.c(e2.class)).S7().v(), dc02, null);
    }

    public final Rect b(Context context, boolean z15, boolean z16, int i15) {
        m.g(context, "context");
        Rect rect = new Rect();
        if (z16) {
            int dimension = (i15 - ((int) context.getResources().getDimension(R.dimen.f359105dg))) / 2;
            int i16 = (dimension * 4) / 3;
            if (z15) {
                rect.right = dimension;
                rect.bottom = i16;
            } else {
                rect.bottom = i16;
                rect.right = dimension;
            }
        } else {
            int a15 = (i15 - y74.f.a(context, 48.0f)) / 3;
            if (z15) {
                int i17 = (a15 * 2) + 4;
                rect.right = i17;
                rect.bottom = nh4.c.b((((float) i17) / ((float) 3)) * ((float) 4));
            } else {
                int i18 = (a15 * 2) + 4;
                rect.bottom = i18;
                rect.right = nh4.c.b((((float) i18) / ((float) 3)) * ((float) 4));
            }
        }
        return rect;
    }

    public final boolean c(Context context, BaseFinderFeed baseFinderFeed) {
        boolean z15;
        boolean z16;
        String str;
        m.g(context, "context");
        m.g(baseFinderFeed, "item");
        String c15 = r32.b.c(context);
        String r15 = u0.r();
        if (c15.length() > 0) {
            z15 = true;
        } else {
            z15 = false;
        }
        String str2 = null;
        if (z15) {
            FinderContact finderContact = baseFinderFeed.t().getFeedObject().contact;
            if (finderContact != null) {
                str = finderContact.username;
            } else {
                str = null;
            }
            if (m.b(str, c15)) {
                return true;
            }
        }
        m.f(r15, "wxUsername");
        if (r15.length() > 0) {
            z16 = true;
        } else {
            z16 = false;
        }
        if (z16) {
            FinderContact finderContact2 = baseFinderFeed.t().getFeedObject().contact;
            if (finderContact2 != null) {
                str2 = finderContact2.username;
            }
            if (m.b(str2, r15)) {
                return true;
            }
        }
        return false;
    }

    public final void d(Context context, BaseFinderFeed baseFinderFeed, boolean z15, long j15, CommentDrawerContract.CloseDrawerCallback closeDrawerCallback) {
        boolean z16;
        r1 r1Var;
        s sVar;
        m.g(context, "context");
        m.g(baseFinderFeed, "item");
        r rVar = r.f342954a;
        y0 y0Var = ((q1) rVar.b(context).a(q1.class)).f196948d;
        if (y0Var == null) {
            y0Var = new y0();
        }
        if (z15) {
            e.f356376d.k0(1);
        } else if (c(context, baseFinderFeed) || !a5.f118672a.S(baseFinderFeed.q())) {
            z16 = false;
            y0.e(y0Var, baseFinderFeed.t(), false, j15, false, true, null, z16, 4, closeDrawerCallback, false, 0, (int) (((float) y3.f119479a.b(context)) * o22.a.f274358a.a(context)), 2, fq0.g.CTRL_INDEX, null);
            r1Var = (r1) rVar.b(context).e(r1.class);
            if (r1Var != null && (sVar = r1Var.f197007d) != null) {
                sVar.l2(baseFinderFeed.getItemId());
                return;
            }
        } else {
            e.f356376d.k0(2);
        }
        z16 = true;
        y0.e(y0Var, baseFinderFeed.t(), false, j15, false, true, null, z16, 4, closeDrawerCallback, false, 0, (int) (((float) y3.f119479a.b(context)) * o22.a.f274358a.a(context)), 2, fq0.g.CTRL_INDEX, null);
        r1Var = (r1) rVar.b(context).e(r1.class);
        if (r1Var != null) {
        }
    }

    /* JADX DEBUG: Multi-variable search result rejected for r10v0, resolved type: int */
    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r10v2 */
    /* JADX WARN: Type inference failed for: r10v4 */
    /* JADX WARNING: Removed duplicated region for block: B:21:0x0070  */
    /* JADX WARNING: Removed duplicated region for block: B:56:0x0143  */
    /* JADX WARNING: Removed duplicated region for block: B:59:0x0153  */
    /* JADX WARNING: Removed duplicated region for block: B:61:0x015e  */
    /* JADX WARNING: Removed duplicated region for block: B:8:0x0031  */
    public final Object e(Context context, String str, int i15, Integer num, boolean z15, int i16, bh4.d<? super a> dVar) {
        b bVar;
        int i17;
        c cVar;
        int i18;
        String str2;
        gi0 gi02;
        String str3;
        int i19;
        String str4;
        Context context2;
        byte[] bArr;
        byte[] bArr2;
        String str5;
        o60.d dVar2;
        int i25;
        String str6;
        Context context3;
        int i26;
        int i27;
        String str7;
        int i28;
        o60.d e15;
        Context context4 = context;
        boolean z16 = z15;
        if (dVar instanceof b) {
            bVar = (b) dVar;
            int i29 = bVar.f210109p;
            if ((i29 & Integer.MIN_VALUE) != 0) {
                bVar.f210109p = i29 - Integer.MIN_VALUE;
                Object obj = bVar.f210107n;
                ch4.a aVar = ch4.a.COROUTINE_SUSPENDED;
                i17 = bVar.f210109p;
                if (i17 != 0) {
                    ResultKt.throwOnFailure(obj);
                    Log.i("FinderMemberUtil", "#orderAndPay ");
                    String uuid = UUID.randomUUID().toString();
                    m.f(uuid, "randomUUID().toString()");
                    bv1 l05 = ((b5) r.f342954a.b(context4).c(b5.class)).l0();
                    if (!z16 || num == null || num.intValue() <= 0) {
                        i26 = i15;
                    } else {
                        i26 = num.intValue();
                    }
                    if (z16) {
                        i27 = 2;
                    } else {
                        i27 = 1;
                    }
                    try {
                        hu1.e eVar = new hu1.e(l05, str, 1, i27, i16);
                        bVar.f210100d = this;
                        bVar.f210101e = context4;
                        str5 = str;
                        try {
                            bVar.f210102f = str5;
                            bVar.f210103g = uuid;
                            bVar.f210104h = "";
                            bVar.f210105i = z16;
                            bVar.f210106j = i26;
                            bVar.f210109p = 1;
                            i28 = i26;
                            str7 = uuid;
                            str4 = "FinderMemberUtil";
                        } catch (o60.d e16) {
                            e15 = e16;
                            i28 = i26;
                            str7 = uuid;
                            str4 = "FinderMemberUtil";
                            cVar = this;
                            dVar2 = e15;
                            i25 = i28;
                            str2 = str7;
                            String str8 = "#orderAndPay fail. " + dVar2 + " authorFinderUsername: " + str5 + " price: " + i25 + " subscribe: " + z16 + ' ';
                            Object[] objArr = new Object[1];
                            str6 = dVar2.f274956g;
                            if (str6 == null) {
                            }
                            i18 = 0;
                            objArr[0] = str6;
                            Log.i(str4, str8, objArr);
                            str3 = str8;
                            gi02 = null;
                            i19 = i25;
                            context2 = context4;
                            if (gi02 == null) {
                            }
                        }
                        try {
                            obj = o60.b.a(eVar, 0, null, bVar, 3, null);
                            if (obj == aVar) {
                                return aVar;
                            }
                            cVar = this;
                            context3 = context4;
                            str3 = "";
                            i19 = i28;
                            str2 = str7;
                        } catch (o60.d e17) {
                            e15 = e17;
                            cVar = this;
                            dVar2 = e15;
                            i25 = i28;
                            str2 = str7;
                            String str82 = "#orderAndPay fail. " + dVar2 + " authorFinderUsername: " + str5 + " price: " + i25 + " subscribe: " + z16 + ' ';
                            Object[] objArr2 = new Object[1];
                            str6 = dVar2.f274956g;
                            if (str6 == null) {
                            }
                            i18 = 0;
                            objArr2[0] = str6;
                            Log.i(str4, str82, objArr2);
                            str3 = str82;
                            gi02 = null;
                            i19 = i25;
                            context2 = context4;
                            if (gi02 == null) {
                            }
                        }
                    } catch (o60.d e18) {
                        e15 = e18;
                        str5 = str;
                        i28 = i26;
                        str7 = uuid;
                        str4 = "FinderMemberUtil";
                        cVar = this;
                        dVar2 = e15;
                        i25 = i28;
                        str2 = str7;
                        String str822 = "#orderAndPay fail. " + dVar2 + " authorFinderUsername: " + str5 + " price: " + i25 + " subscribe: " + z16 + ' ';
                        Object[] objArr22 = new Object[1];
                        str6 = dVar2.f274956g;
                        if (str6 == null) {
                        }
                        i18 = 0;
                        objArr22[0] = str6;
                        Log.i(str4, str822, objArr22);
                        str3 = str822;
                        gi02 = null;
                        i19 = i25;
                        context2 = context4;
                        if (gi02 == null) {
                        }
                    }
                } else if (i17 == 1) {
                    i19 = bVar.f210106j;
                    z16 = bVar.f210105i;
                    str3 = (String) bVar.f210104h;
                    str2 = (String) bVar.f210103g;
                    String str9 = (String) bVar.f210102f;
                    context3 = (Context) bVar.f210101e;
                    cVar = (c) bVar.f210100d;
                    try {
                        ResultKt.throwOnFailure(obj);
                        str5 = str9;
                        str4 = "FinderMemberUtil";
                    } catch (o60.d e19) {
                        dVar2 = e19;
                        i25 = i19;
                        str5 = str9;
                        context4 = context3;
                        str4 = "FinderMemberUtil";
                        String str8222 = "#orderAndPay fail. " + dVar2 + " authorFinderUsername: " + str5 + " price: " + i25 + " subscribe: " + z16 + ' ';
                        Object[] objArr222 = new Object[1];
                        str6 = dVar2.f274956g;
                        if (str6 == null) {
                            str6 = "";
                        }
                        i18 = 0;
                        objArr222[0] = str6;
                        Log.i(str4, str8222, objArr222);
                        str3 = str8222;
                        gi02 = null;
                        i19 = i25;
                        context2 = context4;
                        if (gi02 == null) {
                        }
                    }
                } else if (i17 == 2) {
                    ResultKt.throwOnFailure(obj);
                    return obj;
                } else if (i17 == 3) {
                    ResultKt.throwOnFailure(obj);
                    return obj;
                } else {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                gi02 = (gi0) obj;
                context2 = context3;
                i18 = 0;
                if (gi02 == null) {
                    Log.i(str4, "#orderAndPay paymentResp is null");
                    return new a(i18, str3, "");
                } else if (z16) {
                    xv3.b bVar2 = gi02.f22688e;
                    if (bVar2 != null) {
                        bArr2 = bVar2.f();
                    } else {
                        bArr2 = null;
                    }
                    if (bArr2 == null) {
                        bArr2 = new byte[i18];
                    }
                    bVar.f210100d = null;
                    bVar.f210101e = null;
                    bVar.f210102f = null;
                    bVar.f210103g = null;
                    bVar.f210104h = null;
                    bVar.f210109p = 2;
                    cVar.getClass();
                    T t15 = (T) new h(ch4.b.b(bVar));
                    lh4.f0 f0Var = new lh4.f0();
                    f0Var.f253292d = t15;
                    m.e(context2, "null cannot be cast to non-null type androidx.fragment.app.FragmentActivity");
                    ((zl3.e) z.q(zl3.e.class)).Ru0(new k((FragmentActivity) context2, bArr2, new h(f0Var)));
                    obj = t15.b();
                    if (obj == aVar) {
                        return aVar;
                    }
                    return obj;
                } else {
                    xv3.b bVar3 = gi02.f22688e;
                    if (bVar3 != null) {
                        bArr = bVar3.f();
                    } else {
                        bArr = null;
                    }
                    if (bArr == null) {
                        bArr = new byte[i18];
                    }
                    bVar.f210100d = null;
                    bVar.f210101e = null;
                    bVar.f210102f = null;
                    bVar.f210103g = null;
                    bVar.f210104h = null;
                    bVar.f210109p = 3;
                    cVar.getClass();
                    T t16 = (T) new h(ch4.b.b(bVar));
                    lh4.f0 f0Var2 = new lh4.f0();
                    f0Var2.f253292d = t16;
                    m.e(context2, "null cannot be cast to non-null type androidx.fragment.app.FragmentActivity");
                    fl3.j jVar = new fl3.j(13, (FragmentActivity) context2, new e(f0Var2), new f(f0Var2), new g(f0Var2));
                    jVar.f215477f = i.ShowPanel;
                    m.g(str2, "<set-?>");
                    jVar.f215478g = bArr;
                    String string = context2.getString(R.string.els);
                    m.f(string, "context.getString(R.stri…finder_member_become_pay)");
                    jVar.f215479h = string;
                    String string2 = context2.getString(R.string.elt);
                    m.f(string2, "context.getString(R.stri…r_member_become_recharge)");
                    jVar.f215480i = string2;
                    jVar.f215481j = i19;
                    String string3 = context2.getString(R.string.em_);
                    m.f(string3, "context.getString(R.string.finder_member_pay)");
                    jVar.f215484m = string3;
                    String string4 = context2.getString(R.string.emx);
                    m.f(string4, "context.getString(R.stri…nder_member_recharge_pay)");
                    jVar.f215485n = string4;
                    Object f15 = z.s().i().f(w1.a.Pp, Boolean.FALSE);
                    m.e(f15, "null cannot be cast to non-null type kotlin.Boolean");
                    jVar.f215486o = ((Boolean) f15).booleanValue();
                    String str10 = context2.getString(R.string.emb) + "<_wc_custom_link_ href=\"https://support.weixin.qq.com/cgi-bin/mmsupportacctnodeweb-bin/pages/XUitUE77PrSs1E17\">" + context2.getString(R.string.ema) + "</_wc_custom_link_>";
                    m.f(str10, "sb.toString()");
                    jVar.f215487p = str10;
                    ((zl3.e) z.q(zl3.e.class)).Y90(jVar);
                    obj = t16.b();
                    if (obj == aVar) {
                        return aVar;
                    }
                    return obj;
                }
            }
        }
        bVar = new b(this, dVar);
        Object obj2 = bVar.f210107n;
        ch4.a aVar2 = ch4.a.COROUTINE_SUSPENDED;
        i17 = bVar.f210109p;
        if (i17 != 0) {
        }
        try {
            gi02 = (gi0) obj2;
            context2 = context3;
            i18 = 0;
        } catch (o60.d e25) {
            dVar2 = e25;
            i25 = i19;
            context4 = context3;
            String str82222 = "#orderAndPay fail. " + dVar2 + " authorFinderUsername: " + str5 + " price: " + i25 + " subscribe: " + z16 + ' ';
            Object[] objArr2222 = new Object[1];
            str6 = dVar2.f274956g;
            if (str6 == null) {
            }
            i18 = 0;
            objArr2222[0] = str6;
            Log.i(str4, str82222, objArr2222);
            str3 = str82222;
            gi02 = null;
            i19 = i25;
            context2 = context4;
            if (gi02 == null) {
            }
        }
        if (gi02 == null) {
        }
    }

    public final w f(Context context, String str, int i15) {
        m.g(context, "context");
        m.g(str, "authorFinderUsername");
        w wVar = new w(context);
        String str2 = null;
        View inflate = LayoutInflater.from(context).inflate(R.layout.b2q, (ViewGroup) null);
        m.f(inflate, "from(context).inflate(R.…mber_become_dialog, null)");
        Button button = (Button) inflate.findViewById(R.id.c9x);
        x4.m0(button.getPaint(), 0.8f);
        View findViewById = inflate.findViewById(R.id.bys);
        ImageView imageView = (ImageView) inflate.findViewById(R.id.a9m);
        TextView textView = (TextView) inflate.findViewById(R.id.o_w);
        View findViewById2 = inflate.findViewById(R.id.obc);
        m.e(findViewById2, "null cannot be cast to non-null type android.widget.TextView");
        TextView textView2 = (TextView) findViewById2;
        x4.m0(textView2.getPaint(), 0.8f);
        q b15 = sk1.d.f302423a.b(str);
        Object[] objArr = new Object[1];
        hz.h hVar = (hz.h) j.c(hz.h.class);
        if (b15 != null) {
            str2 = b15.getNickname();
        }
        objArr[0] = hVar.uE0(context, str2, textView2.getTextSize());
        textView2.setText(context.getString(R.string.emc, objArr));
        if (!(i15 == 1 || i15 == 2)) {
            textView.setVisibility(0);
            button.setText(R.string.f367504vi);
        }
        ViewGroup.LayoutParams layoutParams = inflate.getLayoutParams();
        int b16 = y3.f119479a.b(context);
        if (layoutParams == null) {
            layoutParams = new FrameLayout.LayoutParams(-1, -2);
        }
        layoutParams.height = (int) (((double) b16) * 0.7d);
        inflate.setLayoutParams(layoutParams);
        q34.a.a(imageView, u0.r());
        findViewById.setOnClickListener(new View$OnClickListenerC2442c(wVar));
        button.setOnClickListener(new d(context, i15, str, wVar));
        wVar.k(inflate);
        wVar.p();
        return wVar;
    }

    public final boolean g(long j15) {
        Log.i("FinderMemberUtil", "qa extMask %d", Long.valueOf(j15));
        e eVar = e.f356376d;
        eVar.getClass();
        if (e.f356647xc.t().intValue() == 1 && (j15 & 1) > 0) {
            return true;
        }
        eVar.getClass();
        if (e.f356661yc.t().intValue() == 1) {
            return true;
        }
        return false;
    }
}