what-the-bank/sources/com/scb/phone/presentation/presenter/cardmanagement/AmortizationPresenter.java

250 lines
8.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.presentation.presenter.cardmanagement;
import com.scb.phone.domain.errors.RetrofitException;
import com.scb.phone.presentation.presenter.cardmanagement.AmortizationPresenter;
import o.C0367Fb;
import o.C0433Gl;
import o.C0693Mj;
import o.C14957gcv;
import o.C15791ie;
import o.C16290nC;
import o.C16402ny;
import o.C16903sI;
import o.C17005tCW;
import o.CGj;
import o.GI;
import o.GR;
import o.InterfaceC13391fZD;
import o.InterfaceC16186lzC;
import o.InterfaceC9000dbU;
import o.VCl;
import o.WW;
import o.ZI;
import o.fSQ;
import o.ggV;
/* loaded from: classes3.dex */
public final class AmortizationPresenter extends ZI<InterfaceC9000dbU> implements InterfaceC16186lzC {
private final C16402ny b;
private final String c;
private final C15791ie d;
private final C16290nC e;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public AmortizationPresenter(C16903sI c16903sI, C15791ie c15791ie, C16290nC c16290nC, C16402ny c16402ny, String str) {
super(c16903sI);
C14957gcv.e(c16903sI, "");
C14957gcv.e(c15791ie, "");
C14957gcv.e(c16290nC, "");
C14957gcv.e(c16402ny, "");
C14957gcv.e(str, "");
this.d = c15791ie;
this.e = c16290nC;
this.b = c16402ny;
this.c = str;
}
@Override // o.ZI
public final void w_() {
this.d.a();
super.w_();
}
public static /* synthetic */ void b(Throwable th, AmortizationPresenter amortizationPresenter, InterfaceC9000dbU interfaceC9000dbU) {
VCl vCl;
ggV ggv;
C14957gcv.e(th, "");
C14957gcv.e(amortizationPresenter, "");
String str = null;
RetrofitException retrofitException = th instanceof RetrofitException ? (RetrofitException) th : null;
if (retrofitException != null && (vCl = retrofitException.e) != null && (ggv = vCl.c) != null) {
str = ggv.e;
}
boolean b = C14957gcv.b((Object) (str != null ? str : ""), (Object) "9003");
C0693Mj e = amortizationPresenter.j.e(th);
if (b) {
interfaceC9000dbU.b(e);
}
if (b || amortizationPresenter.i(th)) {
return;
}
interfaceC9000dbU.e(e);
}
public static /* synthetic */ void c(final AmortizationPresenter amortizationPresenter, final Throwable th) {
C14957gcv.e(amortizationPresenter, "");
ZI.IeS ieS = new ZI.IeS(amortizationPresenter, th) { // from class: o.amq
private Throwable a;
private AmortizationPresenter c;
@Override // o.ZI.IeS
public final void e(Object obj) {
AmortizationPresenter.d(this.c, this.a, (InterfaceC9000dbU) obj);
}
{
this.c = amortizationPresenter;
this.a = th;
}
};
if (amortizationPresenter.f != 0) {
ieS.e(amortizationPresenter.f);
}
}
public static /* synthetic */ void d(final AmortizationPresenter amortizationPresenter, final GI gi, final C0433Gl c0433Gl, final WW ww, final C0367Fb c0367Fb, final String str, final CGj cGj) {
C14957gcv.e(amortizationPresenter, "");
C14957gcv.e(c0367Fb, "");
ZI.IeS ieS = new ZI.IeS(amortizationPresenter, cGj, gi, c0433Gl, ww, c0367Fb, str) { // from class: o.amp
private C0433Gl a;
private CGj b;
private GI c;
private WW d;
private AmortizationPresenter e;
private String h;
private C0367Fb j;
@Override // o.ZI.IeS
public final void e(Object obj) {
AmortizationPresenter.b(this.e, this.b, this.c, this.a, this.d, this.j, this.h, (InterfaceC9000dbU) obj);
}
{
this.e = amortizationPresenter;
this.b = cGj;
this.c = gi;
this.a = c0433Gl;
this.d = ww;
this.j = c0367Fb;
this.h = str;
}
};
if (amortizationPresenter.f != 0) {
ieS.e(amortizationPresenter.f);
}
}
public static /* synthetic */ void d(final AmortizationPresenter amortizationPresenter, final Throwable th, InterfaceC9000dbU interfaceC9000dbU) {
C14957gcv.e(amortizationPresenter, "");
interfaceC9000dbU.ar_();
C14957gcv.c((Object) th, "");
C14957gcv.e(th, "");
ZI.IeS ieS = new ZI.IeS(th, amortizationPresenter) { // from class: o.amu
private Throwable b;
private AmortizationPresenter c;
@Override // o.ZI.IeS
public final void e(Object obj) {
AmortizationPresenter.b(this.b, this.c, (InterfaceC9000dbU) obj);
}
{
this.b = th;
this.c = amortizationPresenter;
}
};
if (amortizationPresenter.f != 0) {
ieS.e(amortizationPresenter.f);
}
}
public static /* synthetic */ void b(AmortizationPresenter amortizationPresenter, CGj cGj, GI gi, C0433Gl c0433Gl, WW ww, C0367Fb c0367Fb, String str, InterfaceC9000dbU interfaceC9000dbU) {
String str2;
C14957gcv.e(amortizationPresenter, "");
C14957gcv.e(c0367Fb, "");
C16402ny c16402ny = amortizationPresenter.b;
C14957gcv.c(cGj, "");
String str3 = gi.d;
String str4 = gi.e;
String str5 = gi.i;
String str6 = gi.c;
C14957gcv.e(cGj, "");
if (ww == null) {
str2 = cGj.e;
} else {
String str7 = ww.k;
if (str7 != null && str7.length() != 0) {
str2 = ww.k;
} else {
String str8 = cGj.e;
if (str8 != null && str8.length() != 0) {
str2 = cGj.e;
} else {
str2 = ww.r;
}
}
}
GR b = c16402ny.b(cGj, str3, str4, c0433Gl, str5, str6, str2 == null ? "" : str2, c0367Fb.V, str, c0367Fb.A, c0367Fb.J, c0367Fb.T);
interfaceC9000dbU.ar_();
interfaceC9000dbU.c(b);
}
public final void d(final GI gi, final C0433Gl c0433Gl, final WW ww, final C0367Fb c0367Fb, boolean z, final String str) {
C14957gcv.e(c0367Fb, "");
if (gi == null || c0433Gl == null) {
return;
}
gi.a = z;
String str2 = gi.b;
if (str2 != null) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.amr
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9000dbU) obj).y();
}
};
if (this.f != 0) {
ieS.e(this.f);
}
C15791ie c15791ie = this.d;
C16290nC c16290nC = this.e;
String str3 = this.c;
String str4 = c0367Fb.T;
C14957gcv.e(c0433Gl, "");
C14957gcv.e(gi, "");
C14957gcv.e(str2, "");
C14957gcv.e(str3, "");
C17005tCW c17005tCW = new C17005tCW(c16290nC.b(c0433Gl, gi.c, gi.i, true, str4), gi.a, str2, str3);
fSQ fsq = new fSQ(this, gi, c0433Gl, ww, c0367Fb, str) { // from class: o.ams
private WW a;
private GI b;
private AmortizationPresenter c;
private C0433Gl d;
private C0367Fb e;
private String j;
@Override // o.fSQ
public final void c(Object obj) {
AmortizationPresenter.d(this.c, this.b, this.d, this.a, this.e, this.j, (CGj) obj);
}
{
this.c = this;
this.b = gi;
this.d = c0433Gl;
this.a = ww;
this.e = c0367Fb;
this.j = str;
}
};
fSQ<Throwable> fsq2 = new fSQ(this) { // from class: o.amt
private AmortizationPresenter b;
@Override // o.fSQ
public final void c(Object obj) {
AmortizationPresenter.c(this.b, (Throwable) obj);
}
{
this.b = this;
}
};
C14957gcv.e(c17005tCW, "");
C14957gcv.e(fsq, "");
C14957gcv.e(fsq2, "");
c15791ie.b.d(c15791ie.b.a(c17005tCW), fsq, fsq2);
}
}
}