package t22; import android.content.Context; import bw3.h10; import bw3.q44; import bw3.wd1; import bw3.zy3; import com.tencent.mm.R; import com.tencent.mm.plugin.finder.utils.a5; import com.tencent.mm.plugin.finder.utils.e6; import com.tencent.mm.sdk.platformtools.Log; import com.tencent.mm.storage.w1; import d60.z; import dh4.f; import i14.y0; import java.util.ArrayList; import java.util.LinkedList; import kh4.p; import kotlin.ResultKt; import lh4.m; import q22.a; import t32.e2; import wg4.b0; import wg4.o; import xg4.c0; import yz3.j; public final class a { /* renamed from: a reason: collision with root package name */ public static final a f309165a = new a(); @f(c = "com.tencent.mm.plugin.finder.view.notice.LiveNoticeClickLogic", f = "LiveNoticeClickLogic.kt", l = {72, 88, 99, 106}, m = "executeConcertPay") /* renamed from: t22.a$a reason: collision with other inner class name */ public static final class C5279a extends dh4.d { /* renamed from: d reason: collision with root package name */ public Object f309166d; /* renamed from: e reason: collision with root package name */ public Object f309167e; /* renamed from: f reason: collision with root package name */ public /* synthetic */ Object f309168f; /* renamed from: g reason: collision with root package name */ public final /* synthetic */ a f309169g; /* renamed from: h reason: collision with root package name */ public int f309170h; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public C5279a(a aVar, bh4.d<? super C5279a> dVar) { super(dVar); this.f309169g = aVar; } @Override // dh4.a public final Object invokeSuspend(Object obj) { this.f309168f = obj; this.f309170h |= Integer.MIN_VALUE; return this.f309169g.a(null, null, this); } } @f(c = "com.tencent.mm.plugin.finder.view.notice.LiveNoticeClickLogic", f = "LiveNoticeClickLogic.kt", l = {120, 122, 133, 140}, m = "executeNormalPay") public static final class b extends dh4.d { /* renamed from: d reason: collision with root package name */ public Object f309171d; /* renamed from: e reason: collision with root package name */ public Object f309172e; /* renamed from: f reason: collision with root package name */ public /* synthetic */ Object f309173f; /* renamed from: g reason: collision with root package name */ public final /* synthetic */ a f309174g; /* renamed from: h reason: collision with root package name */ public int f309175h; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public b(a aVar, bh4.d<? super b> dVar) { super(dVar); this.f309174g = aVar; } @Override // dh4.a public final Object invokeSuspend(Object obj) { this.f309173f = obj; this.f309175h |= Integer.MIN_VALUE; return this.f309174g.b(null, null, this); } } @f(c = "com.tencent.mm.plugin.finder.view.notice.LiveNoticeClickLogic", f = "LiveNoticeClickLogic.kt", l = {154}, m = "getProduct") public static final class c extends dh4.d { /* renamed from: d reason: collision with root package name */ public Object f309176d; /* renamed from: e reason: collision with root package name */ public Object f309177e; /* renamed from: f reason: collision with root package name */ public /* synthetic */ Object f309178f; /* renamed from: g reason: collision with root package name */ public final /* synthetic */ a f309179g; /* renamed from: h reason: collision with root package name */ public int f309180h; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public c(a aVar, bh4.d<? super c> dVar) { super(dVar); this.f309179g = aVar; } @Override // dh4.a public final Object invokeSuspend(Object obj) { this.f309178f = obj; this.f309180h |= Integer.MIN_VALUE; return this.f309179g.c(null, null, this); } } @f(c = "com.tencent.mm.plugin.finder.view.notice.LiveNoticeClickLogic", f = "LiveNoticeClickLogic.kt", l = {51, 51}, m = "noticeClick") public static final class d extends dh4.d { /* renamed from: d reason: collision with root package name */ public int f309181d; /* renamed from: e reason: collision with root package name */ public Object f309182e; /* renamed from: f reason: collision with root package name */ public Object f309183f; /* renamed from: g reason: collision with root package name */ public /* synthetic */ Object f309184g; /* renamed from: h reason: collision with root package name */ public final /* synthetic */ a f309185h; /* renamed from: i reason: collision with root package name */ public int f309186i; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public d(a aVar, bh4.d<? super d> dVar) { super(dVar); this.f309185h = aVar; } @Override // dh4.a public final Object invokeSuspend(Object obj) { this.f309184g = obj; this.f309186i |= Integer.MIN_VALUE; return this.f309185h.d(null, 0, null, null, this); } } @f(c = "com.tencent.mm.plugin.finder.view.notice.LiveNoticeClickLogic", f = "LiveNoticeClickLogic.kt", l = {207}, m = "showLicense") public static final class e extends dh4.d { /* renamed from: d reason: collision with root package name */ public /* synthetic */ Object f309187d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ a f309188e; /* renamed from: f reason: collision with root package name */ public int f309189f; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public e(a aVar, bh4.d<? super e> dVar) { super(dVar); this.f309188e = aVar; } @Override // dh4.a public final Object invokeSuspend(Object obj) { this.f309187d = obj; this.f309189f |= Integer.MIN_VALUE; return this.f309188e.e(null, this); } } /* JADX WARNING: Removed duplicated region for block: B:19:0x0068 */ /* JADX WARNING: Removed duplicated region for block: B:24:0x0081 */ /* JADX WARNING: Removed duplicated region for block: B:50:0x012b */ /* JADX WARNING: Removed duplicated region for block: B:52:0x0133 */ /* JADX WARNING: Removed duplicated region for block: B:57:0x014b */ /* JADX WARNING: Removed duplicated region for block: B:59:0x0153 */ /* JADX WARNING: Removed duplicated region for block: B:8:0x002d */ public final Object a(Context context, wd1 wd12, bh4.d<? super Boolean> dVar) { C5279a aVar; Object obj; int i15; String str; Object obj2; Context context2; q44 q442; q44 q443; String str2; String str3; String str4; Context context3 = context; if (dVar instanceof C5279a) { aVar = (C5279a) dVar; int i16 = aVar.f309170h; if ((i16 & Integer.MIN_VALUE) != 0) { aVar.f309170h = i16 - Integer.MIN_VALUE; obj = aVar.f309168f; Object obj3 = ch4.a.COROUTINE_SUSPENDED; i15 = aVar.f309170h; if (i15 != 0) { ResultKt.throwOnFailure(obj); Log.i("LiveNoticeClickLogic", "#executeConcertPay"); aVar.f309166d = context3; aVar.f309170h = 1; obj = c(context3, wd12, aVar); if (obj == obj3) { return obj3; } q443 = (q44) obj; if (q443 != null) { } return Boolean.FALSE; } else if (i15 == 1) { context3 = (Context) aVar.f309166d; ResultKt.throwOnFailure(obj); q443 = (q44) obj; if (q443 != null) { StringBuilder sb5 = new StringBuilder(); sb5.append("#executeConcertPay id="); sb5.append(q443.f33775d); sb5.append(" price="); sb5.append(q443.f33776e); sb5.append(" ticket="); h10 a15 = e6.a(q443); if (a15 != null) { str2 = a15.f23231d; } else { str2 = null; } sb5.append(str2); sb5.append(" title="); h10 a16 = e6.a(q443); if (a16 != null) { str3 = a16.f23232e; } else { str3 = null; } sb5.append(str3); Log.i("LiveNoticeClickLogic", sb5.toString()); h10 a17 = e6.a(q443); if (a17 != null) { String str5 = ""; if (a17.f23235h > 0) { String string = context3.getResources().getString(R.string.bas, a5.f118672a.s(a17.f23235h * 1000)); m.f(string, "context.resources.getStr…0L)\n )"); str4 = string; } else { str4 = str5; } q qVar = new q(context3); String str6 = a17.f23233f; if (str6 == null) { str6 = str5; } String str7 = a17.f23232e; if (str7 != null) { str5 = str7; } int i17 = a17.f23245u; aVar.f309166d = context3; aVar.f309167e = q443; aVar.f309170h = 2; Object a18 = qVar.a(str6, str5, str4, i17, aVar); if (a18 == obj3) { return obj3; } context2 = context3; q442 = q443; obj = a18; if (((Boolean) obj).booleanValue()) { } } } return Boolean.FALSE; } else if (i15 == 2) { q442 = (q44) aVar.f309167e; context2 = (Context) aVar.f309166d; ResultKt.throwOnFailure(obj); if (((Boolean) obj).booleanValue()) { Log.i("LiveNoticeClickLogic", "#executeConcertPay paySecondCheckResult uncheck"); return Boolean.FALSE; } a aVar2 = f309165a; aVar.f309166d = context2; aVar.f309167e = q442; aVar.f309170h = 3; obj = aVar2.e(context2, aVar); if (obj == obj3) { return obj3; } } else if (i15 == 3) { q442 = (q44) aVar.f309167e; context2 = (Context) aVar.f309166d; ResultKt.throwOnFailure(obj); } else if (i15 == 4) { ResultKt.throwOnFailure(obj); obj2 = obj; str = "LiveNoticeClickLogic"; o oVar = (o) obj2; Log.i(str, "#executeConcertPay finally result = " + oVar); return oVar.f332815d; } else { throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } if (((Boolean) obj).booleanValue()) { Log.i("LiveNoticeClickLogic", "#executeConcertPay licenseResult uncheck"); return Boolean.FALSE; } yz3.d c15 = j.c(e2.class); m.f(c15, "getService(IFinderCommon…atureService::class.java)"); aVar.f309166d = null; aVar.f309167e = null; aVar.f309170h = 4; str = "LiveNoticeClickLogic"; obj2 = e2.a.d((e2) c15, context2, q442, 0, 0, null, null, aVar, 60, null); if (obj2 == obj3) { return obj3; } o oVar2 = (o) obj2; Log.i(str, "#executeConcertPay finally result = " + oVar2); return oVar2.f332815d; } } aVar = new C5279a(this, dVar); obj = aVar.f309168f; Object obj32 = ch4.a.COROUTINE_SUSPENDED; i15 = aVar.f309170h; if (i15 != 0) { } if (((Boolean) obj).booleanValue()) { } } /* JADX WARNING: Removed duplicated region for block: B:19:0x0072 */ /* JADX WARNING: Removed duplicated region for block: B:24:0x0086 */ /* JADX WARNING: Removed duplicated region for block: B:36:0x00e6 */ /* JADX WARNING: Removed duplicated region for block: B:38:0x00ee */ /* JADX WARNING: Removed duplicated region for block: B:43:0x0105 */ /* JADX WARNING: Removed duplicated region for block: B:45:0x010d */ /* JADX WARNING: Removed duplicated region for block: B:50:0x014f */ /* JADX WARNING: Removed duplicated region for block: B:8:0x002f */ public final Object b(Context context, wd1 wd12, bh4.d<? super Boolean> dVar) { b bVar; Object obj; int i15; String str; Context context2; q44 q442; q44 q443; Context context3 = context; wd1 wd13 = wd12; if (dVar instanceof b) { bVar = (b) dVar; int i16 = bVar.f309175h; if ((i16 & Integer.MIN_VALUE) != 0) { bVar.f309175h = i16 - Integer.MIN_VALUE; obj = bVar.f309173f; Object obj2 = ch4.a.COROUTINE_SUSPENDED; i15 = bVar.f309175h; if (i15 != 0) { ResultKt.throwOnFailure(obj); bVar.f309171d = context3; bVar.f309172e = wd13; bVar.f309175h = 1; obj = c(context3, wd13, bVar); if (obj == obj2) { return obj2; } q443 = (q44) obj; if (q443 != null) { } } else if (i15 == 1) { Context context4 = (Context) bVar.f309171d; ResultKt.throwOnFailure(obj); wd13 = (wd1) bVar.f309172e; context3 = context4; q443 = (q44) obj; if (q443 != null) { return Boolean.FALSE; } Log.i("LiveNoticeClickLogic", "#executeNormalPay id=" + q443.f33775d + " price=" + q443.f33776e); v vVar = new v(context3); String str2 = wd13.f40925g; if (str2 == null) { str2 = ""; } int i17 = q443.f33776e; LinkedList<String> linkedList = q443.f33778g; m.f(linkedList, "product.rights_wording"); String str3 = (String) c0.Q(linkedList); if (str3 == null) { str3 = ""; } String str4 = q443.f33783o; bVar.f309171d = context3; bVar.f309172e = q443; bVar.f309175h = 2; Object a15 = vVar.a(str2, i17, str3, str4, bVar); if (a15 == obj2) { return obj2; } context2 = context3; q442 = q443; obj = a15; if (((Boolean) obj).booleanValue()) { } } else if (i15 == 2) { q442 = (q44) bVar.f309172e; context2 = (Context) bVar.f309171d; ResultKt.throwOnFailure(obj); if (((Boolean) obj).booleanValue()) { Log.i("LiveNoticeClickLogic", "#executeNormalPay paySecondCheckResult uncheck"); return Boolean.FALSE; } a aVar = f309165a; bVar.f309171d = context2; bVar.f309172e = q442; bVar.f309175h = 3; obj = aVar.e(context2, bVar); if (obj == obj2) { return obj2; } } else if (i15 == 3) { q442 = (q44) bVar.f309172e; context2 = (Context) bVar.f309171d; ResultKt.throwOnFailure(obj); } else if (i15 == 4) { ResultKt.throwOnFailure(obj); str = "LiveNoticeClickLogic"; o oVar = (o) obj; Log.i(str, "#executeNormalPay finally result = " + oVar); return oVar.f332815d; } else { throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } if (((Boolean) obj).booleanValue()) { Log.i("LiveNoticeClickLogic", "#executeNormalPay licenseResult uncheck"); return Boolean.FALSE; } yz3.d c15 = j.c(e2.class); m.f(c15, "getService(IFinderCommon…atureService::class.java)"); e2 e2Var = (e2) c15; bVar.f309171d = null; bVar.f309172e = null; bVar.f309175h = 4; str = "LiveNoticeClickLogic"; obj = e2.a.d(e2Var, context2, q442, 0, 0, null, null, bVar, 60, null); if (obj == obj2) { return obj2; } o oVar2 = (o) obj; Log.i(str, "#executeNormalPay finally result = " + oVar2); return oVar2.f332815d; } } bVar = new b(this, dVar); obj = bVar.f309173f; Object obj22 = ch4.a.COROUTINE_SUSPENDED; i15 = bVar.f309175h; if (i15 != 0) { } if (((Boolean) obj).booleanValue()) { } } /* JADX WARNING: Removed duplicated region for block: B:12:0x0038 */ /* JADX WARNING: Removed duplicated region for block: B:21:0x005c */ /* JADX WARNING: Removed duplicated region for block: B:8:0x0021 */ public final Object c(Context context, wd1 wd12, bh4.d<? super q44> dVar) { c cVar; int i15; q44 q442; xv3.b bVar; if (dVar instanceof c) { cVar = (c) dVar; int i16 = cVar.f309180h; if ((i16 & Integer.MIN_VALUE) != 0) { cVar.f309180h = i16 - Integer.MIN_VALUE; Object obj = cVar.f309178f; ch4.a aVar = ch4.a.COROUTINE_SUSPENDED; i15 = cVar.f309180h; if (i15 != 0) { ResultKt.throwOnFailure(obj); e2 e2Var = (e2) j.c(e2.class); zy3 zy32 = wd12.f40932q; if (zy32 != null) { bVar = zy32.f45069h; } else { bVar = null; } cVar.f309176d = context; cVar.f309177e = wd12; cVar.f309180h = 1; obj = e2Var.Ba0(context, bVar, true, cVar); if (obj == aVar) { return aVar; } } else if (i15 == 1) { wd12 = (wd1) cVar.f309177e; context = (Context) cVar.f309176d; ResultKt.throwOnFailure(obj); } else { throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } q442 = (q44) obj; if (q442 == null) { Log.i("LiveNoticeClickLogic", "#getProduct product is null noticeId=" + wd12.f40926h + " introduction=" + wd12.f40925g); y0.makeText(context, context.getResources().getString(R.string.d8p), 0).show(); } return q442; } } cVar = new c(this, dVar); Object obj2 = cVar.f309178f; ch4.a aVar2 = ch4.a.COROUTINE_SUSPENDED; i15 = cVar.f309180h; if (i15 != 0) { } q442 = (q44) obj2; if (q442 == null) { } return q442; } /* JADX WARNING: Removed duplicated region for block: B:13:0x0040 */ /* JADX WARNING: Removed duplicated region for block: B:52:0x00c9 */ /* JADX WARNING: Removed duplicated region for block: B:8:0x0022 */ public final Object d(Context context, int i15, wd1 wd12, p<? super Integer, ? super Integer, b0> pVar, bh4.d<? super b0> dVar) { d dVar2; Object obj; int i16; boolean z15; int i17; boolean z16; if (dVar instanceof d) { dVar2 = (d) dVar; int i18 = dVar2.f309186i; if ((i18 & Integer.MIN_VALUE) != 0) { dVar2.f309186i = i18 - Integer.MIN_VALUE; obj = dVar2.f309184g; ch4.a aVar = ch4.a.COROUTINE_SUSPENDED; i16 = dVar2.f309186i; int i19 = 1; if (i16 != 0) { ResultKt.throwOnFailure(obj); zy3 zy32 = wd12.f40932q; boolean z17 = false; if (zy32 == null || !zy32.f45065d) { z15 = false; } else { z15 = true; } if (z15) { if (zy32 == null || zy32.f45066e != 0) { z16 = false; } else { z16 = true; } if (!z16) { if (zy32 != null) { if (zy32.f45067f) { String str = wd12.f40930o; if (!(str == null || str.length() == 0)) { i19 = 0; } if (i19 != 0) { y0.k(context, context.getResources().getString(R.string.e0l)); } else if (pVar != null) { pVar.invoke(new Integer(0), new Integer(i15)); } } else { String str2 = wd12.f40930o; if (str2 == null || str2.length() == 0) { z17 = true; } if (z17) { a aVar2 = f309165a; dVar2.f309182e = wd12; dVar2.f309183f = pVar; dVar2.f309181d = i15; dVar2.f309186i = 1; obj = aVar2.b(context, wd12, dVar2); if (obj == aVar) { return aVar; } } else { a aVar3 = f309165a; dVar2.f309182e = wd12; dVar2.f309183f = pVar; dVar2.f309181d = i15; dVar2.f309186i = 2; obj = aVar3.a(context, wd12, dVar2); if (obj == aVar) { return aVar; } } } } return b0.f332794a; } } if (wd12.f40923e == 0) { i17 = 1; } else { i17 = 0; } String str3 = wd12.f40930o; if (str3 == null || str3.length() == 0) { z17 = true; } if (z17) { if (pVar != null) { if (i17 != 0) { i19 = -1; } pVar.invoke(new Integer(i19), new Integer(i15)); } } else if (pVar != null) { pVar.invoke(new Integer(i17 ^ 1), new Integer(i15)); } return b0.f332794a; } else if (i16 == 1 || i16 == 2) { i15 = dVar2.f309181d; pVar = (p) dVar2.f309183f; wd12 = (wd1) dVar2.f309182e; ResultKt.throwOnFailure(obj); } else { throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } if (((Boolean) obj).booleanValue()) { zy3 zy33 = wd12.f40932q; if (zy33 != null) { zy33.f45067f = true; } if (pVar != null) { pVar.invoke(new Integer(1), new Integer(i15)); } } return b0.f332794a; } } dVar2 = new d(this, dVar); obj = dVar2.f309184g; ch4.a aVar4 = ch4.a.COROUTINE_SUSPENDED; i16 = dVar2.f309186i; int i192 = 1; if (i16 != 0) { } if (((Boolean) obj).booleanValue()) { } return b0.f332794a; } /* JADX WARNING: Removed duplicated region for block: B:12:0x0038 */ /* JADX WARNING: Removed duplicated region for block: B:8:0x0029 */ public final Object e(Context context, bh4.d<? super Boolean> dVar) { e eVar; int i15; w1.a aVar = w1.a.Ih; if (dVar instanceof e) { eVar = (e) dVar; int i16 = eVar.f309189f; if ((i16 & Integer.MIN_VALUE) != 0) { eVar.f309189f = i16 - Integer.MIN_VALUE; Object obj = eVar.f309187d; ch4.a aVar2 = ch4.a.COROUTINE_SUSPENDED; i15 = eVar.f309189f; if (i15 != 0) { ResultKt.throwOnFailure(obj); Object f15 = z.s().i().f(aVar, Boolean.FALSE); m.e(f15, "null cannot be cast to non-null type kotlin.Boolean"); if (((Boolean) f15).booleanValue()) { return Boolean.TRUE; } q22.a aVar3 = new q22.a(context); String string = context.getResources().getString(R.string.f368445ei3); m.f(string, "context.resources.getStr…re_sale_license_content1)"); String string2 = context.getResources().getString(R.string.f368446ei4); m.f(string2, "context.resources.getStr…_sale_license_content1_1)"); a.C4665a aVar4 = new a.C4665a(string, string2, "https://support.weixin.qq.com/cgi-bin/mmsupportacctnodeweb-bin/pages/JsWXJcUX5dlJhfUW"); ArrayList arrayList = new ArrayList(); String string3 = context.getResources().getString(R.string.ei5); m.f(string3, "context.resources.getStr…sale_license_desc1_tips1)"); arrayList.add(new a.C4665a(string3, null, null, 6, null)); String string4 = context.getResources().getString(R.string.ei6); m.f(string4, "context.resources.getStr…sale_license_desc1_tips2)"); arrayList.add(new a.C4665a(string4, null, null, 6, null)); String string5 = context.getResources().getString(R.string.ei7); m.f(string5, "context.resources.getStr…sale_license_desc1_tips3)"); arrayList.add(new a.C4665a(string5, null, null, 6, null)); eVar.f309189f = 1; obj = aVar3.b(aVar4, arrayList, eVar); if (obj == aVar2) { return aVar2; } } else if (i15 == 1) { ResultKt.throwOnFailure(obj); } else { throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } boolean booleanValue = ((Boolean) obj).booleanValue(); z.s().i().L(aVar, Boolean.valueOf(booleanValue)); return Boolean.valueOf(booleanValue); } } eVar = new e(this, dVar); Object obj2 = eVar.f309187d; ch4.a aVar22 = ch4.a.COROUTINE_SUSPENDED; i15 = eVar.f309189f; if (i15 != 0) { } boolean booleanValue2 = ((Boolean) obj2).booleanValue(); z.s().i().L(aVar, Boolean.valueOf(booleanValue2)); return Boolean.valueOf(booleanValue2); } }