package com.scb.phone.presentation.presenter.investment.accountdetail; import android.text.TextUtils; import com.scb.phone.presentation.presenter.investment.accountdetail.ScbsAccountDetailPresenter; import java.util.ArrayList; import java.util.List; import o.C0297Dm; import o.C1193Xr; import o.C16903sI; import o.C17671ymh; import o.C3599bAu; import o.C6583cXR; import o.InterfaceC13391fZD; import o.OT; import o.REU; import o.ZI; import o.cZG; /* loaded from: classes4.dex */ public class ScbsAccountDetailPresenter extends ZI { private C0297Dm a; @InterfaceC13391fZD public REU billPaymentCase; public OT e; @InterfaceC13391fZD public ScbsAccountDetailPresenter(C16903sI c16903sI, REU reu, C0297Dm c0297Dm) { super(c16903sI); this.billPaymentCase = reu; this.a = c0297Dm; } public static /* synthetic */ void a(ScbsAccountDetailPresenter scbsAccountDetailPresenter, final OT ot, cZG.Sts sts) { sts.a(ot.b); sts.c(!C6583cXR.e(ot.i)); sts.d(ot.f); sts.e(ot.r); if (ot.q == null) { sts.b(new ArrayList()); } else { sts.b(ot.q); } sts.d(ot.k); sts.e(ot.l); ZI.IeS ieS = new ZI.IeS(ot) { // from class: o.bAz private OT d; @Override // o.ZI.IeS public final void e(Object obj) { ScbsAccountDetailPresenter.b(this.d, (cZG.Sts) obj); } { this.d = ot; } }; if (scbsAccountDetailPresenter.f != 0) { ieS.e(scbsAccountDetailPresenter.f); } ZI.IeS ieS2 = new ZI.IeS(ot) { // from class: o.bAy private OT a; @Override // o.ZI.IeS public final void e(Object obj) { ScbsAccountDetailPresenter.c(this.a, (cZG.Sts) obj); } { this.a = ot; } }; if (scbsAccountDetailPresenter.f != 0) { ieS2.e(scbsAccountDetailPresenter.f); } } public static /* synthetic */ void a(ScbsAccountDetailPresenter scbsAccountDetailPresenter, C17671ymh c17671ymh) { C3599bAu c3599bAu = new C3599bAu(); if (scbsAccountDetailPresenter.f != 0) { c3599bAu.e(scbsAccountDetailPresenter.f); } List c = scbsAccountDetailPresenter.a.c(c17671ymh.c, scbsAccountDetailPresenter.billPaymentCase.d.M()); if (c == null || c.isEmpty()) { return; } final C1193Xr c1193Xr = c.get(0); c1193Xr.K = scbsAccountDetailPresenter.e.b; c1193Xr.J = scbsAccountDetailPresenter.e.c; c1193Xr.b = true; ZI.IeS ieS = new ZI.IeS(c1193Xr) { // from class: o.bAF private C1193Xr b; @Override // o.ZI.IeS public final void e(Object obj) { ((cZG.Sts) obj).b(this.b); } { this.b = c1193Xr; } }; if (scbsAccountDetailPresenter.f != 0) { ieS.e(scbsAccountDetailPresenter.f); } } public static /* synthetic */ void d(final ScbsAccountDetailPresenter scbsAccountDetailPresenter, final Throwable th) { C3599bAu c3599bAu = new C3599bAu(); if (scbsAccountDetailPresenter.f != 0) { c3599bAu.e(scbsAccountDetailPresenter.f); } ZI.IeS ieS = new ZI.IeS(scbsAccountDetailPresenter, th) { // from class: o.bAx private Throwable a; private ScbsAccountDetailPresenter d; @Override // o.ZI.IeS public final void e(Object obj) { cZG.Sts sts = (cZG.Sts) obj; sts.e(this.d.j.e(this.a)); } { this.d = scbsAccountDetailPresenter; this.a = th; } }; if (scbsAccountDetailPresenter.f != 0) { ieS.e(scbsAccountDetailPresenter.f); } } public static /* synthetic */ void b(OT ot, cZG.Sts sts) { String str = ot.a; boolean z = ot.m; String str2 = ot.f8305o; boolean z2 = ot.n; sts.a(z || z2); if (z) { sts.c(str, ot.h); } else if (z2) { sts.e(str2, ot.h); } } public static /* synthetic */ void c(OT ot, cZG.Sts sts) { String str = ot.g; boolean isEmpty = TextUtils.isEmpty(str); sts.b(!isEmpty); if (isEmpty) { return; } sts.c(str); } }