package o; import java.util.ArrayList; import java.util.Calendar; import java.util.List; import o.C0690Mh; import o.C7798cvC; import o.ZI; import o.wRi; import org.threeten.bp.OffsetDateTime; /* renamed from: o.cvC, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public final class C7798cvC extends ZI { public UP a; public boolean b; public final mSw c; public boolean d; public boolean e; public boolean g; public boolean h; public final TeQ i; public C1081Vd k; private final C0195Bb l; private final oAN m; private final AZ n; /* renamed from: o, reason: collision with root package name */ private final AI f8666o; private final C0197Bc r; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C7798cvC(oAN oan, TeQ teQ, mSw msw, AZ az, C0195Bb c0195Bb, C0197Bc c0197Bc, AI ai, C16903sI c16903sI) { super(c16903sI); C14957gcv.e(oan, ""); C14957gcv.e(teQ, ""); C14957gcv.e(msw, ""); C14957gcv.e(az, ""); C14957gcv.e(c0195Bb, ""); C14957gcv.e(c0197Bc, ""); C14957gcv.e(ai, ""); this.m = oan; this.i = teQ; this.c = msw; this.n = az; this.l = c0195Bb; this.r = c0197Bc; this.f8666o = ai; this.g = true; this.h = true; } /* renamed from: o.cvC$Sts */ /* loaded from: classes4.dex */ public static final class Sts extends wRi.LWm { private C7798cvC d; public Sts(C7798cvC c7798cvC) { this.d = c7798cvC; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { UP up; if (this.d.e && (up = this.d.a) != null) { C1081Vd c1081Vd = this.d.k; String str = c1081Vd != null ? c1081Vd.d : null; C1081Vd c1081Vd2 = this.d.k; String str2 = c1081Vd2 != null ? c1081Vd2.e : null; C1081Vd c1081Vd3 = this.d.k; String str3 = c1081Vd3 != null ? c1081Vd3.c : null; C1081Vd c1081Vd4 = this.d.k; up.b = new US(str, str2, str3, c1081Vd4 != null ? c1081Vd4.a : null); } final C7798cvC c7798cvC = this.d; ZI.IeS ieS = new ZI.IeS(c7798cvC) { // from class: o.cvI private C7798cvC b; @Override // o.ZI.IeS public final void e(Object obj2) { C7798cvC.Sts.e(this.b, (cZK) obj2); } { this.b = c7798cvC; } }; if (c7798cvC.f != 0) { ieS.e(c7798cvC.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { C7798cvC.h(this.d); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(final Throwable th) { C14957gcv.e(th, ""); C7798cvC.h(this.d); final C7798cvC c7798cvC = this.d; ZI.IeS ieS = new ZI.IeS(c7798cvC, th) { // from class: o.cvK private C7798cvC a; private Throwable c; @Override // o.ZI.IeS public final void e(Object obj) { C7798cvC.Sts.c(this.a, this.c); } { this.a = c7798cvC; this.c = th; } }; if (c7798cvC.f != 0) { ieS.e(c7798cvC.f); } } public static /* synthetic */ void e(C7798cvC c7798cvC, cZK czk) { C14957gcv.e(c7798cvC, ""); UQ b = c7798cvC.f8666o.b(c7798cvC.a, OffsetDateTime.ofInstant(C15517gsm.toInstant(Calendar.getInstance()), AbstractC15502gsH.of("Asia/Bangkok")), c7798cvC.e); C14957gcv.c(b, ""); czk.b(b); } public static /* synthetic */ void c(C7798cvC c7798cvC, Throwable th) { C14957gcv.e(c7798cvC, ""); C14957gcv.e(th, ""); if (c7798cvC.i(th)) { return; } c7798cvC.d(c7798cvC.j.e(th)); } } /* renamed from: o.cvC$LWm */ /* loaded from: classes4.dex */ public static final class LWm extends wRi.LWm { private C7798cvC e; public LWm(C7798cvC c7798cvC) { this.e = c7798cvC; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { UP up = this.e.a; if (up != null) { up.a = this.e.b; } final C7798cvC c7798cvC = this.e; ZI.IeS ieS = new ZI.IeS(c7798cvC) { // from class: o.cvO private C7798cvC d; @Override // o.ZI.IeS public final void e(Object obj2) { C7798cvC.LWm.e(this.d, (cZK) obj2); } { this.d = c7798cvC; } }; if (c7798cvC.f != 0) { ieS.e(c7798cvC.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { C7798cvC.h(this.e); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(final Throwable th) { C14957gcv.e(th, ""); C7798cvC.h(this.e); if (this.e.i(th)) { return; } final C7798cvC c7798cvC = this.e; ZI.IeS ieS = new ZI.IeS(c7798cvC, th) { // from class: o.cvQ private Throwable a; private C7798cvC c; @Override // o.ZI.IeS public final void e(Object obj) { C7798cvC.LWm.b(this.c, this.a, (cZK) obj); } { this.c = c7798cvC; this.a = th; } }; if (c7798cvC.f != 0) { ieS.e(c7798cvC.f); } } public static /* synthetic */ void b(C7798cvC c7798cvC, Throwable th, cZK czk) { C14957gcv.e(c7798cvC, ""); C14957gcv.e(th, ""); String str = c7798cvC.j.e(th).c; C14957gcv.c((Object) str, ""); czk.d(str); UP up = c7798cvC.a; if (up != null) { czk.d(up.a, false); } } public static /* synthetic */ void e(C7798cvC c7798cvC, cZK czk) { C14957gcv.e(c7798cvC, ""); czk.d(c7798cvC.b, true); } } /* renamed from: o.cvC$IeS */ /* loaded from: classes4.dex */ public static final class IeS extends wRi.LWm { private C7798cvC e; public IeS(C7798cvC c7798cvC) { this.e = c7798cvC; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { UP up = this.e.a; if (up != null) { up.c = this.e.d; } final C7798cvC c7798cvC = this.e; ZI.IeS ieS = new ZI.IeS(c7798cvC) { // from class: o.cvR private C7798cvC d; @Override // o.ZI.IeS public final void e(Object obj2) { C7798cvC.IeS.e(this.d, (cZK) obj2); } { this.d = c7798cvC; } }; if (c7798cvC.f != 0) { ieS.e(c7798cvC.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { C7798cvC.h(this.e); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(final Throwable th) { C14957gcv.e(th, ""); C7798cvC.h(this.e); if (this.e.i(th)) { return; } final C7798cvC c7798cvC = this.e; ZI.IeS ieS = new ZI.IeS(c7798cvC, th) { // from class: o.cvP private Throwable a; private C7798cvC b; @Override // o.ZI.IeS public final void e(Object obj) { C7798cvC.IeS.b(this.b, this.a, (cZK) obj); } { this.b = c7798cvC; this.a = th; } }; if (c7798cvC.f != 0) { ieS.e(c7798cvC.f); } } public static /* synthetic */ void e(C7798cvC c7798cvC, cZK czk) { C14957gcv.e(c7798cvC, ""); czk.e(c7798cvC.d, true); } public static /* synthetic */ void b(C7798cvC c7798cvC, Throwable th, cZK czk) { C14957gcv.e(c7798cvC, ""); C14957gcv.e(th, ""); String str = c7798cvC.j.e(th).c; C14957gcv.c((Object) str, ""); czk.d(str); UP up = c7798cvC.a; if (up != null) { czk.e(up.c, false); } } } /* renamed from: o.cvC$RVV */ /* loaded from: classes4.dex */ public static final class RVV { private RVV() { } public /* synthetic */ RVV(byte b) { this(); } } public static /* synthetic */ void c(C7798cvC c7798cvC, cZK czk) { C14957gcv.e(c7798cvC, ""); C1084Vf e = c7798cvC.r.e(c7798cvC.a); C14957gcv.c(e, ""); czk.a(e); } public static /* synthetic */ void a(final C7798cvC c7798cvC) { C14957gcv.e(c7798cvC, ""); if (c7798cvC.f != 0) { c7798cvC.f.ar_(); } ZI.IeS ieS = new ZI.IeS(c7798cvC) { // from class: o.cvE private C7798cvC c; @Override // o.ZI.IeS public final void e(Object obj) { C7798cvC.e(this.c, (cZK) obj); } { this.c = c7798cvC; } }; if (c7798cvC.f != 0) { ieS.e(c7798cvC.f); } } public static /* synthetic */ void e(C7798cvC c7798cvC, cZK czk) { zEQ d; C14957gcv.e(c7798cvC, ""); AZ az = c7798cvC.n; UP up = c7798cvC.a; oAN oan = c7798cvC.m; List list = oan.b.p().a; List a = oan.a.a(); ArrayList arrayList = new ArrayList(); for (final JNE jne : list) { YKU yku = new YKU(a); YKU yku2 = new YKU(yku.a, new GEP(yku.b, new Jel(jne) { // from class: o.jYc private JNE d; @Override // o.Jel public final boolean e(Object obj) { return ((C5762bzF) obj).d.equalsIgnoreCase(this.d.a); } { this.d = jne; } })); if (yku2.b.hasNext()) { d = zEQ.a(yku2.b.next()); } else { d = zEQ.d(); } if (d.d != 0) { arrayList.add(jne); } } C1088Vi c1088Vi = new C1088Vi(up.f, up.i, up.h, AZ.e(arrayList)); C14957gcv.c(c1088Vi, ""); czk.d(c1088Vi); } public static /* synthetic */ void e(C7798cvC c7798cvC, Throwable th) { C14957gcv.e(c7798cvC, ""); if (c7798cvC.f != 0) { c7798cvC.f.ar_(); } c7798cvC.d(c7798cvC.j.d(th, C0690Mh.IeS.NAVIGATE_BACK)); } public static /* synthetic */ void d(C7798cvC c7798cvC, C1081Vd c1081Vd, String str, cZK czk) { String str2; C14957gcv.e(c7798cvC, ""); C14957gcv.e(c1081Vd, ""); C14957gcv.e(str, ""); UP up = c7798cvC.a; Integer valueOf = up != null ? Integer.valueOf(up.h) : null; if (valueOf == null || valueOf.intValue() != 0) { str2 = (valueOf == null || valueOf.intValue() != 1) ? "FastEasyPromptPay" : "FastEasyPromptPayCID"; } else { str2 = "FastEasyPromptPayMOB"; } String str3 = gdZ.a("en", str, true) ? "_EN" : "_TH"; StringBuilder sb = new StringBuilder(); sb.append(str2); sb.append(str3); czk.e(up, c1081Vd, sb.toString(), c7798cvC.g ? 1 : 0, c7798cvC.h ? 1 : 0); } public static /* synthetic */ void c(C7798cvC c7798cvC, UP up, cZK czk) { C14957gcv.e(c7798cvC, ""); C14957gcv.e(up, ""); C0195Bb c0195Bb = c7798cvC.l; czk.b(C0195Bb.e(up)); } public static final /* synthetic */ void h(C7798cvC c7798cvC) { if (c7798cvC.f != 0) { c7798cvC.f.ar_(); } } static { new RVV((byte) 0); } }