package gu1; import android.app.Activity; import android.app.Dialog; import android.content.Context; import android.content.Intent; import android.graphics.drawable.GradientDrawable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.animation.Animation; import android.view.animation.AnimationUtils; import android.widget.Button; import android.widget.CheckBox; import android.widget.TextView; import androidx.appcompat.app.AppCompatActivity; import androidx.fragment.app.Fragment; import androidx.lifecycle.j; import bw3.ci0; import com.tencent.mm.R; import com.tencent.mm.plugin.finder.service.v0; import com.tencent.mm.plugin.finder.ui.MMFinderUI; import com.tencent.mm.plugin.finder.utils.a5; import com.tencent.mm.plugin.finder.utils.e4; import com.tencent.mm.sdk.platformtools.LocaleUtil; import com.tencent.mm.sdk.platformtools.Log; import com.tencent.mm.sdk.platformtools.MMApplicationContext; import com.tencent.mm.storage.w1; import com.tencent.mm.ui.MMActivity; import com.tencent.mm.ui.component.UIComponent; import com.tencent.mm.ui.w; import com.tencent.tinker.loader.hotplug.EnvConsts; import com.tencent.xweb.util.WXWebReporter; import d60.z; import eu1.c; import eu1.i; import eu1.k; import gk4.n0; import gk4.o0; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import kh4.l; import kh4.p; import kotlin.ResultKt; import lh4.o; import p64.w; import t32.b5; import t32.j4; import wg4.b0; import xc4.j; import y24.r; import yf0.b; public final class m extends UIComponent { /* renamed from: d reason: collision with root package name */ public boolean f222367d = true; /* renamed from: e reason: collision with root package name */ public boolean f222368e; /* renamed from: f reason: collision with root package name */ public String f222369f; /* renamed from: g reason: collision with root package name */ public boolean f222370g; /* renamed from: h reason: collision with root package name */ public long f222371h; /* renamed from: i reason: collision with root package name */ public int f222372i = 2000; /* renamed from: j reason: collision with root package name */ public w f222373j; 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 */ m f222374d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ Context f222375e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ String f222376f; /* renamed from: g reason: collision with root package name */ public final /* synthetic */ boolean f222377g; /* renamed from: h reason: collision with root package name */ public final /* synthetic */ boolean f222378h; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(m mVar, Context context, String str, boolean z15, boolean z16) { super(1); this.f222374d = mVar; this.f222375e = context; this.f222376f = str; this.f222377g = z15; this.f222378h = z16; } /* 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(b.c<ci0> cVar) { boolean z15; w wVar; boolean z16; w wVar2; ci0 ci02; ci0 ci03; b.c<ci0> cVar2 = cVar; if (cVar2 != null) { eu1.b.f210087a.e(this.f222376f, cVar2); } boolean z17 = true; int i15 = 0; 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; } else { z16 = true; } if (!z16) { if (!this.f222377g) { w wVar3 = this.f222374d.f222373j; if (wVar3 == null || !wVar3.f()) { z17 = false; } if (z17 && (wVar2 = this.f222374d.f222373j) != null) { wVar2.n(); } this.f222374d.f222373j = eu1.c.f210096a.f(this.f222375e, this.f222376f, 0); } else if (this.f222378h) { Log.i("Finder.FinderMemberPayUIC", "doRetry"); long currentTimeMillis = System.currentTimeMillis(); m mVar = this.f222374d; if (currentTimeMillis - mVar.f222371h > ((long) mVar.f222372i)) { mVar.f222371h = currentTimeMillis; ((j) j.f338034d).i(new l(mVar, this.f222375e, this.f222376f, this.f222377g), 2000); } } return b0.f332794a; } } m mVar2 = this.f222374d; mVar2.f222368e = false; w wVar4 = mVar2.f222373j; if (wVar4 == null || !wVar4.f()) { z17 = false; } if (z17 && (wVar = this.f222374d.f222373j) != null) { wVar.n(); } m mVar3 = this.f222374d; eu1.c cVar3 = eu1.c.f210096a; Context context = this.f222375e; String str = this.f222376f; ci0 ci04 = (ci0) cVar2.f345502d; if (ci04 != null) { i15 = ci04.f18333e; } mVar3.f222373j = cVar3.f(context, str, i15); return b0.f332794a; } } @dh4.f(c = "com.tencent.mm.plugin.finder.member.area.uic.FinderMemberPayUIC$pay$1", f = "FinderMemberPayUIC.kt", l = {78}, m = "invokeSuspend") public static final class b extends dh4.j implements p<n0, bh4.d<? super b0>, Object> { /* renamed from: d reason: collision with root package name */ public int f222379d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ m f222380e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ String f222381f; /* renamed from: g reason: collision with root package name */ public final /* synthetic */ Integer f222382g; /* renamed from: h reason: collision with root package name */ public final /* synthetic */ Integer f222383h; /* renamed from: i reason: collision with root package name */ public final /* synthetic */ int f222384i; /* renamed from: j reason: collision with root package name */ public final /* synthetic */ View f222385j; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public b(m mVar, String str, Integer num, Integer num2, int i15, View view, bh4.d<? super b> dVar) { super(2, dVar); this.f222380e = mVar; this.f222381f = str; this.f222382g = num; this.f222383h = num2; this.f222384i = i15; this.f222385j = view; } @Override // dh4.a public final bh4.d<b0> create(Object obj, bh4.d<?> dVar) { return new b(this.f222380e, this.f222381f, this.f222382g, this.f222383h, this.f222384i, this.f222385j, dVar); } /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ @Override // kh4.p public Object invoke(n0 n0Var, bh4.d<? super b0> dVar) { return ((b) create(n0Var, dVar)).invokeSuspend(b0.f332794a); } @Override // dh4.a public final Object invokeSuspend(Object obj) { ch4.a aVar = ch4.a.COROUTINE_SUSPENDED; int i15 = this.f222379d; if (i15 == 0) { ResultKt.throwOnFailure(obj); Log.i("Finder.FinderMemberPayUIC", "doPay disableSubscribe"); m mVar = this.f222380e; mVar.f222368e = false; mVar.f222369f = this.f222381f; eu1.c cVar = eu1.c.f210096a; Activity context = mVar.getContext(); String str = this.f222381f; int intValue = this.f222382g.intValue(); Integer num = this.f222383h; int i16 = this.f222384i; this.f222379d = 1; obj = cVar.e(context, str, intValue, num, false, i16, this); if (obj == aVar) { return aVar; } } else if (i15 == 1) { ResultKt.throwOnFailure(obj); } else { throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } c.a aVar2 = (c.a) obj; View view = this.f222385j; if (view != null) { view.setClickable(true); } m mVar2 = this.f222380e; m.j5(mVar2, mVar2.getContext()); if (aVar2.f210097a) { m mVar3 = this.f222380e; mVar3.k5(mVar3.getContext(), this.f222381f, false, false); } return b0.f332794a; } } public static final class c implements View.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ m f222386d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ TextView f222387e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ Button f222388f; /* renamed from: g reason: collision with root package name */ public final /* synthetic */ View f222389g; /* renamed from: h reason: collision with root package name */ public final /* synthetic */ TextView f222390h; /* renamed from: i reason: collision with root package name */ public final /* synthetic */ TextView f222391i; /* renamed from: j reason: collision with root package name */ public final /* synthetic */ View f222392j; /* renamed from: n reason: collision with root package name */ public final /* synthetic */ TextView f222393n; /* renamed from: o reason: collision with root package name */ public final /* synthetic */ TextView f222394o; /* renamed from: p reason: collision with root package name */ public final /* synthetic */ TextView f222395p; /* renamed from: q reason: collision with root package name */ public final /* synthetic */ CheckBox f222396q; public c(m mVar, TextView textView, Button button, View view, TextView textView2, TextView textView3, View view2, TextView textView4, TextView textView5, TextView textView6, CheckBox checkBox) { this.f222386d = mVar; this.f222387e = textView; this.f222388f = button; this.f222389g = view; this.f222390h = textView2; this.f222391i = textView3; this.f222392j = view2; this.f222393n = textView4; this.f222394o = textView5; this.f222395p = textView6; this.f222396q = checkBox; } 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/area/uic/FinderMemberPayUIC$pay$2", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array); this.f222386d.f222367d = true; this.f222387e.setVisibility(0); this.f222388f.setText(this.f222386d.getContext().getString(R.string.f368464em2)); m mVar = this.f222386d; View view2 = this.f222389g; lh4.m.f(view2, "payMonthlyLayout"); TextView textView = this.f222390h; lh4.m.f(textView, "payMonthlyType"); TextView textView2 = this.f222391i; lh4.m.f(textView2, "payMonthlyPrice"); mVar.n5(true, view2, textView, textView2); m mVar2 = this.f222386d; View view3 = this.f222392j; lh4.m.f(view3, "payOneLayout"); TextView textView3 = this.f222393n; lh4.m.f(textView3, "payOneType"); TextView textView4 = this.f222394o; lh4.m.f(textView4, "payOnePrice"); mVar2.n5(false, view3, textView3, textView4); m mVar3 = this.f222386d; TextView textView5 = this.f222395p; lh4.m.f(textView5, "agreement"); CheckBox checkBox = this.f222396q; lh4.m.f(checkBox, "checkbox"); mVar3.m5(textView5, checkBox, true); j30.a.g(this, "com/tencent/mm/plugin/finder/member/area/uic/FinderMemberPayUIC$pay$2", "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 */ m f222397d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ TextView f222398e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ Button f222399f; /* renamed from: g reason: collision with root package name */ public final /* synthetic */ View f222400g; /* renamed from: h reason: collision with root package name */ public final /* synthetic */ TextView f222401h; /* renamed from: i reason: collision with root package name */ public final /* synthetic */ TextView f222402i; /* renamed from: j reason: collision with root package name */ public final /* synthetic */ View f222403j; /* renamed from: n reason: collision with root package name */ public final /* synthetic */ TextView f222404n; /* renamed from: o reason: collision with root package name */ public final /* synthetic */ TextView f222405o; /* renamed from: p reason: collision with root package name */ public final /* synthetic */ TextView f222406p; /* renamed from: q reason: collision with root package name */ public final /* synthetic */ CheckBox f222407q; public d(m mVar, TextView textView, Button button, View view, TextView textView2, TextView textView3, View view2, TextView textView4, TextView textView5, TextView textView6, CheckBox checkBox) { this.f222397d = mVar; this.f222398e = textView; this.f222399f = button; this.f222400g = view; this.f222401h = textView2; this.f222402i = textView3; this.f222403j = view2; this.f222404n = textView4; this.f222405o = textView5; this.f222406p = textView6; this.f222407q = checkBox; } 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/area/uic/FinderMemberPayUIC$pay$3", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array); this.f222397d.f222367d = false; this.f222398e.setVisibility(4); this.f222399f.setText(this.f222397d.getContext().getString(R.string.em_)); m mVar = this.f222397d; View view2 = this.f222400g; lh4.m.f(view2, "payMonthlyLayout"); TextView textView = this.f222401h; lh4.m.f(textView, "payMonthlyType"); TextView textView2 = this.f222402i; lh4.m.f(textView2, "payMonthlyPrice"); mVar.n5(false, view2, textView, textView2); m mVar2 = this.f222397d; View view3 = this.f222403j; lh4.m.f(view3, "payOneLayout"); TextView textView3 = this.f222404n; lh4.m.f(textView3, "payOneType"); TextView textView4 = this.f222405o; lh4.m.f(textView4, "payOnePrice"); mVar2.n5(true, view3, textView3, textView4); m mVar3 = this.f222397d; TextView textView5 = this.f222406p; lh4.m.f(textView5, "agreement"); CheckBox checkBox = this.f222407q; lh4.m.f(checkBox, "checkbox"); mVar3.m5(textView5, checkBox, false); j30.a.g(this, "com/tencent/mm/plugin/finder/member/area/uic/FinderMemberPayUIC$pay$3", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V"); } } public static final class e implements View.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ CheckBox f222408d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ m f222409e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ View f222410f; /* renamed from: g reason: collision with root package name */ public final /* synthetic */ Button f222411g; /* renamed from: h reason: collision with root package name */ public final /* synthetic */ View f222412h; /* renamed from: i reason: collision with root package name */ public final /* synthetic */ View f222413i; /* renamed from: j reason: collision with root package name */ public final /* synthetic */ w f222414j; /* renamed from: n reason: collision with root package name */ public final /* synthetic */ String f222415n; /* renamed from: o reason: collision with root package name */ public final /* synthetic */ Integer f222416o; /* renamed from: p reason: collision with root package name */ public final /* synthetic */ Integer f222417p; /* renamed from: q reason: collision with root package name */ public final /* synthetic */ int f222418q; @dh4.f(c = "com.tencent.mm.plugin.finder.member.area.uic.FinderMemberPayUIC$pay$4$1", f = "FinderMemberPayUIC.kt", l = {WXWebReporter.WXWEB_GET_MMKV_CALLBACK_IS_NULL}, m = "invokeSuspend") public static final class a extends dh4.j implements p<n0, bh4.d<? super b0>, Object> { /* renamed from: d reason: collision with root package name */ public int f222419d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ boolean f222420e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ m f222421f; /* renamed from: g reason: collision with root package name */ public final /* synthetic */ String f222422g; /* renamed from: h reason: collision with root package name */ public final /* synthetic */ Integer f222423h; /* renamed from: i reason: collision with root package name */ public final /* synthetic */ Integer f222424i; /* renamed from: j reason: collision with root package name */ public final /* synthetic */ int f222425j; /* renamed from: n reason: collision with root package name */ public final /* synthetic */ Button f222426n; /* renamed from: o reason: collision with root package name */ public final /* synthetic */ View f222427o; /* renamed from: p reason: collision with root package name */ public final /* synthetic */ View f222428p; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(boolean z15, m mVar, String str, Integer num, Integer num2, int i15, Button button, View view, View view2, bh4.d<? super a> dVar) { super(2, dVar); this.f222420e = z15; this.f222421f = mVar; this.f222422g = str; this.f222423h = num; this.f222424i = num2; this.f222425j = i15; this.f222426n = button; this.f222427o = view; this.f222428p = view2; } @Override // dh4.a public final bh4.d<b0> create(Object obj, bh4.d<?> dVar) { return new a(this.f222420e, this.f222421f, this.f222422g, this.f222423h, this.f222424i, this.f222425j, this.f222426n, this.f222427o, this.f222428p, dVar); } /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ @Override // kh4.p public Object invoke(n0 n0Var, bh4.d<? super b0> dVar) { return ((a) create(n0Var, dVar)).invokeSuspend(b0.f332794a); } @Override // dh4.a public final Object invokeSuspend(Object obj) { ch4.a aVar = ch4.a.COROUTINE_SUSPENDED; int i15 = this.f222419d; if (i15 == 0) { ResultKt.throwOnFailure(obj); Log.i("Finder.FinderMemberPayUIC", "doPay subscribe: " + this.f222420e); m mVar = this.f222421f; mVar.f222368e = false; mVar.f222369f = this.f222422g; eu1.c cVar = eu1.c.f210096a; Activity context = mVar.getContext(); String str = this.f222422g; int intValue = this.f222423h.intValue(); Integer num = this.f222424i; boolean z15 = this.f222420e; int i16 = this.f222425j; this.f222419d = 1; obj = cVar.e(context, str, intValue, num, z15, i16, this); if (obj == aVar) { return aVar; } } else if (i15 == 1) { ResultKt.throwOnFailure(obj); } else { throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } c.a aVar2 = (c.a) obj; this.f222421f.f222370g = false; this.f222426n.setClickable(true); this.f222427o.setClickable(true); this.f222428p.setClickable(true); if (this.f222420e) { this.f222421f.f222368e = aVar2.f210097a; } else { m mVar2 = this.f222421f; m.j5(mVar2, mVar2.getContext()); if (aVar2.f210097a) { m mVar3 = this.f222421f; mVar3.k5(mVar3.getContext(), this.f222422g, false, false); } } return b0.f332794a; } } public e(CheckBox checkBox, m mVar, View view, Button button, View view2, View view3, w wVar, String str, Integer num, Integer num2, int i15) { this.f222408d = checkBox; this.f222409e = mVar; this.f222410f = view; this.f222411g = button; this.f222412h = view2; this.f222413i = view3; this.f222414j = wVar; this.f222415n = str; this.f222416o = num; this.f222417p = num2; this.f222418q = i15; } 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/area/uic/FinderMemberPayUIC$pay$4", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array); if (!this.f222408d.isChecked()) { Animation loadAnimation = AnimationUtils.loadAnimation(this.f222409e.getActivity().getApplicationContext(), R.anim.f357273bg); lh4.m.f(loadAnimation, "loadAnimation(\n …ke_anim\n )"); this.f222410f.startAnimation(loadAnimation); j30.a.g(this, "com/tencent/mm/plugin/finder/member/area/uic/FinderMemberPayUIC$pay$4", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V"); return; } this.f222411g.setClickable(false); this.f222412h.setClickable(false); this.f222413i.setClickable(false); boolean z15 = this.f222409e.f222367d; this.f222414j.n(); this.f222409e.f222370g = true; gk4.h.d(o0.b(), null, null, new a(z15, this.f222409e, this.f222415n, this.f222416o, this.f222417p, this.f222418q, this.f222411g, this.f222412h, this.f222413i, null), 3, null); j30.a.g(this, "com/tencent/mm/plugin/finder/member/area/uic/FinderMemberPayUIC$pay$4", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V"); } } public static final class f implements View.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ w f222429d; public f(w wVar) { this.f222429d = 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/area/uic/FinderMemberPayUIC$pay$5", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array); this.f222429d.n(); j30.a.g(this, "com/tencent/mm/plugin/finder/member/area/uic/FinderMemberPayUIC$pay$5", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V"); } } public static final class g implements View.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ m f222430d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ w f222431e; public static final class a extends o implements kh4.a<b0> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ w f222432d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(w wVar) { super(0); this.f222432d = wVar; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public b0 invoke() { this.f222432d.p(); return b0.f332794a; } } public g(m mVar, w wVar) { this.f222430d = mVar; this.f222431e = 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/area/uic/FinderMemberPayUIC$pay$6", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array); eu1.c cVar = eu1.c.f210096a; Activity context = this.f222430d.getContext(); a aVar = new a(this.f222431e); cVar.getClass(); lh4.m.g(context, "context"); w wVar = new w(context); View inflate = LayoutInflater.from(context).inflate(R.layout.b2u, (ViewGroup) null); lh4.m.f(inflate, "from(context).inflate(R.…er_pay_info_dialog, null)"); View findViewById = inflate.findViewById(R.id.hcj); ((TextView) inflate.findViewById(R.id.hcu)).setText(context.getString(R.string.emd)); View findViewById2 = inflate.findViewById(R.id.f364217kr3); k30.a aVar2 = new k30.a(); ThreadLocal<k30.a> threadLocal = k30.c.f244265a; aVar2.c(0); j30.a.d(findViewById2, aVar2.b(), "com/tencent/mm/plugin/finder/member/FinderMemberUtil", "showMemberPayInfoDialog", "(Landroid/content/Context;Lkotlin/jvm/functions/Function0;)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById2.setVisibility(((Integer) aVar2.a(0)).intValue()); j30.a.e(findViewById2, "com/tencent/mm/plugin/finder/member/FinderMemberUtil", "showMemberPayInfoDialog", "(Landroid/content/Context;Lkotlin/jvm/functions/Function0;)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); TextView textView = (TextView) inflate.findViewById(R.id.jfg); String string = context.getString(R.string.emk, context.getString(R.string.eml)); lh4.m.f(string, "context.getString(R.stri…der_member_pay_one_more))"); ArrayList arrayList2 = new ArrayList(); arrayList2.add("https://kf.qq.com/touch/product/WXDB_app.html"); ArrayList arrayList3 = new ArrayList(); arrayList3.add(context.getString(R.string.eml)); Intent intent = new Intent(); intent.putExtra("showShare", false); intent.putExtra(w.j.f187152r, true); e4 e4Var = e4.f118902a; lh4.m.f(textView, "payInfo"); e4.j(e4Var, context, textView, "FinderMemberUtil", string, arrayList2, arrayList3, null, 64, null); findViewById.setOnClickListener(new i(wVar)); wVar.f281332s = new eu1.j(aVar); k kVar = new k(aVar); Dialog dialog = wVar.f281320d; if (dialog != null) { dialog.setOnCancelListener(kVar); } wVar.k(inflate); wVar.p(); this.f222431e.o(true); j30.a.g(this, "com/tencent/mm/plugin/finder/member/area/uic/FinderMemberPayUIC$pay$6", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V"); } } public static final class h implements View.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ CheckBox f222433d; public h(CheckBox checkBox) { this.f222433d = checkBox; } 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/area/uic/FinderMemberPayUIC$setAgreementText$1", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array); CheckBox checkBox = this.f222433d; checkBox.setChecked(!checkBox.isChecked()); j30.a.g(this, "com/tencent/mm/plugin/finder/member/area/uic/FinderMemberPayUIC$setAgreementText$1", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V"); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public m(AppCompatActivity appCompatActivity) { super(appCompatActivity); lh4.m.g(appCompatActivity, EnvConsts.ACTIVITY_MANAGER_SRVNAME); } public static final void j5(m mVar, Context context) { MMActivity mMActivity; mVar.getClass(); zz1.e.f356376d.getClass(); if (zz1.e.f356607uc.t().intValue() != 0) { if (context instanceof MMActivity) { mMActivity = (MMActivity) context; } else { mMActivity = null; } if (mMActivity != null && mMActivity.getLifecycle().getCurrentState() != j.c.DESTROYED && mMActivity.getLifecycle().getCurrentState() != j.c.RESUMED && !mMActivity.isFinishing() && !((j4) yz3.j.c(j4.class)).SL0(mMActivity) && ((v0) yz3.j.c(v0.class)).JJ0(mMActivity)) { yz3.d c15 = yz3.j.c(com.tencent.mm.plugin.finder.utils.b.class); lh4.m.f(c15, "getService(ActivityRouter::class.java)"); ((com.tencent.mm.plugin.finder.utils.b) c15).zO0(mMActivity, null); } } } public final void k5(Context context, String str, boolean z15, boolean z16) { m60.d.K(new hu1.c(((b5) r.f342954a.b(context).c(b5.class)).l0(), str).h(), new a(this, context, str, z15, z16)).n((MMFinderUI) context); } public final void l5(Integer num, Integer num2, Integer num3, String str, View view, int i15) { String str2; lh4.m.g(str, "authorFinderUsername"); if (!a5.f118672a.N() && num != null) { synchronized (eu1.b.f210087a) { ((HashMap) eu1.b.f210088b).remove(str); } zz1.e.f356376d.getClass(); if (zz1.e.f356555qc.t().intValue() == 1 || (num3 != null && num3.intValue() == 1)) { p64.w wVar = new p64.w(getContext()); View inflate = LayoutInflater.from(getContext()).inflate(R.layout.b2p, (ViewGroup) null); lh4.m.f(inflate, "from(context).inflate(R.…_became_dialog_new, null)"); View findViewById = inflate.findViewById(R.id.bys); View findViewById2 = inflate.findViewById(R.id.hci); CheckBox checkBox = (CheckBox) inflate.findViewById(R.id.btf); Object f15 = z.s().i().f(w1.a.Pp, Boolean.FALSE); lh4.m.e(f15, "null cannot be cast to non-null type kotlin.Boolean"); checkBox.setChecked(((Boolean) f15).booleanValue()); View findViewById3 = inflate.findViewById(R.id.kqx); TextView textView = (TextView) inflate.findViewById(R.id.f364214kr0); TextView textView2 = (TextView) inflate.findViewById(R.id.kqy); View findViewById4 = inflate.findViewById(R.id.f364215kr1); TextView textView3 = (TextView) inflate.findViewById(R.id.kr4); TextView textView4 = (TextView) inflate.findViewById(R.id.f364216kr2); if (num2 == null || num2.intValue() <= 0) { str2 = num.toString(); } else { str2 = num2.toString(); } textView2.setText(str2); textView4.setText(num.toString()); textView2.setTypeface(((w00.i) yz3.j.c(w00.i.class)).Zs(getActivity(), 3)); textView4.setTypeface(((w00.i) yz3.j.c(w00.i.class)).Zs(getActivity(), 3)); View findViewById5 = inflate.findViewById(R.id.f361940o2); TextView textView5 = (TextView) inflate.findViewById(R.id.f361934nw); Button button = (Button) inflate.findViewById(R.id.jfe); TextView textView6 = (TextView) inflate.findViewById(R.id.kqz); lh4.m.f(textView5, "agreement"); m5(textView5, checkBox, true); lh4.m.f(findViewById3, "payMonthlyLayout"); lh4.m.f(textView, "payMonthlyType"); n5(true, findViewById3, textView, textView2); lh4.m.f(findViewById4, "payOneLayout"); lh4.m.f(textView3, "payOneType"); n5(false, findViewById4, textView3, textView4); findViewById3.setOnClickListener(new c(this, textView6, button, findViewById3, textView, textView2, findViewById4, textView3, textView4, textView5, checkBox)); findViewById4.setOnClickListener(new d(this, textView6, button, findViewById3, textView, textView2, findViewById4, textView3, textView4, textView5, checkBox)); if (!this.f222370g) { button.setOnClickListener(new e(checkBox, this, findViewById5, button, findViewById4, findViewById3, wVar, str, num, num2, i15)); findViewById.setOnClickListener(new f(wVar)); findViewById2.setOnClickListener(new g(this, wVar)); wVar.k(inflate); this.f222367d = true; wVar.p(); return; } return; } if (view != null) { view.setClickable(false); } gk4.h.d(o0.b(), null, null, new b(this, str, num, num2, i15, view, null), 3, null); } } public final void m5(TextView textView, CheckBox checkBox, boolean z15) { textView.setOnClickListener(new h(checkBox)); if (z15) { String string = getContext().getString(R.string.emn, getContext().getString(R.string.ema), getContext().getString(R.string.en8), getContext().getString(R.string.end)); lh4.m.f(string, "context.getString(R.stri…coin_recharge_agreement))"); ArrayList arrayList = new ArrayList(); arrayList.add("https://support.weixin.qq.com/cgi-bin/mmsupportacctnodeweb-bin/pages/XUitUE77PrSs1E17"); arrayList.add("https://support.weixin.qq.com/cgi-bin/mmsupportacctnodeweb-bin/pages/3iJr1veYBdD6XWTI"); String format = String.format("https://weixin.qq.com/cgi-bin/readtemplate?lang=%s&t=wxbean", Arrays.copyOf(new Object[]{LocaleUtil.getCurrentLanguage(getContext())}, 1)); lh4.m.f(format, "format(format, *args)"); arrayList.add(format); ArrayList arrayList2 = new ArrayList(); arrayList2.add(getContext().getString(R.string.ema)); arrayList2.add(getContext().getString(R.string.en8)); arrayList2.add(getContext().getString(R.string.end)); e4.j(e4.f118902a, getContext(), textView, "Finder.FinderMemberPayUIC", string, arrayList, arrayList2, null, 64, null); return; } String string2 = getContext().getString(R.string.emm, getContext().getString(R.string.ema), getContext().getString(R.string.end)); lh4.m.f(string2, "context.getString(R.stri…coin_recharge_agreement))"); ArrayList arrayList3 = new ArrayList(); arrayList3.add("https://support.weixin.qq.com/cgi-bin/mmsupportacctnodeweb-bin/pages/XUitUE77PrSs1E17"); String format2 = String.format("https://weixin.qq.com/cgi-bin/readtemplate?lang=%s&t=wxbean", Arrays.copyOf(new Object[]{LocaleUtil.getCurrentLanguage(getContext())}, 1)); lh4.m.f(format2, "format(format, *args)"); arrayList3.add(format2); ArrayList arrayList4 = new ArrayList(); arrayList4.add(getContext().getString(R.string.ema)); arrayList4.add(getContext().getString(R.string.end)); e4.j(e4.f118902a, getContext(), textView, "Finder.FinderMemberPayUIC", string2, arrayList3, arrayList4, null, 64, null); } public final void n5(boolean z15, View view, TextView textView, TextView textView2) { lh4.m.g(view, "layout"); lh4.m.g(textView, "tvType"); lh4.m.g(textView2, "tvPrice"); if (z15) { GradientDrawable gradientDrawable = new GradientDrawable(); gradientDrawable.setShape(0); gradientDrawable.setCornerRadius((float) getResources().getDimensionPixelSize(R.dimen.f359119dv)); gradientDrawable.setStroke(getResources().getDimensionPixelSize(R.dimen.f359034bh), MMApplicationContext.getColor(R.color.f357939m)); gradientDrawable.setColor(MMApplicationContext.getColor(R.color.f358540qa)); view.setBackground(gradientDrawable); textView.setTextColor(MMApplicationContext.getColor(R.color.FG_0)); textView2.setTextColor(MMApplicationContext.getColor(R.color.FG_0)); return; } GradientDrawable gradientDrawable2 = new GradientDrawable(); gradientDrawable2.setShape(0); gradientDrawable2.setCornerRadius((float) getResources().getDimensionPixelSize(R.dimen.f359119dv)); gradientDrawable2.setStroke(getResources().getDimensionPixelSize(R.dimen.f359034bh), MMApplicationContext.getColor(R.color.f358541qb)); view.setBackground(gradientDrawable2); textView.setTextColor(MMApplicationContext.getColor(R.color.t_)); textView2.setTextColor(MMApplicationContext.getColor(R.color.t_)); } @Override // y24.g, com.tencent.mm.ui.component.UIComponent public void onResume() { String str; super.onResume(); Log.i("Finder.FinderMemberPayUIC", "onResume:has startSubscribe " + this.f222368e); if (this.f222368e && (str = this.f222369f) != null) { k5(getContext(), str, true, true); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public m(Fragment fragment) { super(fragment); lh4.m.g(fragment, "fragment"); } }