what-the-bank/sources/o/KNB.java

484 lines
15 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.scb.phone.data.entity.transfer.SingleDataEntity;
import java.util.List;
import java.util.Objects;
import o.PRA;
import o.cEO;
import retrofit2.Response;
/* loaded from: classes3.dex */
public final class KNB implements irj {
private final FNz a;
final C12962fMj b;
final trQ c;
private final YWN d;
final QYT e;
private final String f;
private final WuF g;
private final JmG h;
private final GKU j;
@InterfaceC13391fZD
public KNB(FNz fNz, GKU gku, C12962fMj c12962fMj, JmG jmG, QYT qyt, WuF wuF, trQ trq, String str, YWN ywn) {
this.a = fNz;
this.j = gku;
this.b = c12962fMj;
this.h = jmG;
this.e = qyt;
this.g = wuF;
this.c = trq;
this.f = str;
this.d = ywn;
}
@Override // o.irj
public final AbstractC13163fSk<Boolean> b(fDD fdd) {
return this.a.c.verifyPin(fdd).map(new fSS() { // from class: o.QnP
@Override // o.fSS
public final Object a(Object obj) {
return Boolean.TRUE;
}
});
}
@Override // o.irj
public final AbstractC13175fSw<JxF> c(LrN lrN, hZR hzr) {
DiG.e("3004");
GKU gku = this.j;
C14957gcv.e(hzr, "");
String json = gku.d.toJson(hzr);
C14957gcv.c((Object) json, "");
lrN.e = this.d.b(json);
FNz fNz = this.a;
return new C13325fXX(new C13372fYk(fNz.b.verifyUser(this.f, lrN), new fSS() { // from class: o.jSl
@Override // o.fSS
public final Object a(Object obj) {
SingleDataEntity singleDataEntity = (SingleDataEntity) obj;
if (singleDataEntity.getData() != null) {
return ((HnF) singleDataEntity.getData()).d(singleDataEntity.getStatus());
}
return new JxF(true, "", Boolean.TRUE, false, "3004");
}
}), new Cbf());
}
@Override // o.irj
public final AbstractC13175fSw<kdN> j() {
return new C13372fYk(this.a.b.verifyMethod(), new fSS() { // from class: o.Uku
@Override // o.fSS
public final Object a(Object obj) {
return ((C15852jDk) ((SingleDataEntity) obj).getData()).a();
}
});
}
@Override // o.irj
public final AbstractC13175fSw<Boolean> c(C12218eu c12218eu) {
return new C13372fYk(this.a.c.postReferralCode(c12218eu), new fSS() { // from class: o.hqF
@Override // o.fSS
public final Object a(Object obj) {
return Boolean.TRUE;
}
});
}
@Override // o.irj
public final AbstractC13175fSw<Boolean> b(C12059er c12059er) {
return new C13372fYk(this.a.b.verifyByCreditCard(c12059er), new fSS() { // from class: o.AjI
@Override // o.fSS
public final Object a(Object obj) {
return Boolean.TRUE;
}
});
}
@Override // o.irj
public final AbstractC13175fSw<Boolean> a(C12006eq c12006eq) {
return new C13372fYk(this.a.b.verifyByAtmCard(c12006eq), new fSS() { // from class: o.ina
@Override // o.fSS
public final Object a(Object obj) {
return Boolean.TRUE;
}
});
}
@Override // o.irj
public final AbstractC13175fSw<CtB> c(C12059er c12059er) {
return new C13372fYk(this.a.b.resetPinVerifyByCreditCard(c12059er), new fSS() { // from class: o.GnE
@Override // o.fSS
public final Object a(Object obj) {
return ((xWl) ((SingleDataEntity) obj).getData()).a();
}
});
}
@Override // o.irj
public final AbstractC13175fSw<CtB> b(C12006eq c12006eq) {
return new C13372fYk(this.a.b.resetPinVerifyByAtmCard(c12006eq), new fSS() { // from class: o.KNh
@Override // o.fSS
public final Object a(Object obj) {
return ((xWl) ((SingleDataEntity) obj).getData()).a();
}
});
}
@Override // o.irj
public final AbstractC13163fSk<Pag> c() {
FNz fNz = this.a;
AbstractC13163fSk<C16562pOe> faceStatus = fNz.b.faceStatus(this.f);
final QYT qyt = this.e;
Objects.requireNonNull(qyt);
return faceStatus.map(new fSS(qyt) { // from class: o.jHK
private QYT d;
@Override // o.fSS
public final Object a(Object obj) {
return this.d.d((C16562pOe) obj);
}
{
this.d = qyt;
}
});
}
@Override // o.irj
public final AbstractC13163fSk<Boolean> d(C11794em c11794em) {
return this.a.b.preregisterValidation(c11794em).map(new fSS(this) { // from class: o.HyO
private KNB e;
@Override // o.fSS
public final Object a(Object obj) {
KNB knb = this.e;
Response response = (Response) obj;
if (response.isSuccessful() && response.body() != null && "1000".equals(((C16562pOe) response.body()).getStatus().e)) {
knb.c.e(response.headers().get("Api-Auth"));
return Boolean.TRUE;
}
return Boolean.FALSE;
}
{
this.e = this;
}
}).flatMap(new fSS() { // from class: o.zWZ
@Override // o.fSS
public final Object a(Object obj) {
return AbstractC13163fSk.just((Boolean) obj);
}
});
}
@Override // o.irj
public final AbstractC13175fSw<Boolean> e(C12165et c12165et) {
return new C13372fYk(this.a.b.verifyByFace(c12165et.c, c12165et.a, c12165et.d, c12165et.e, c12165et.b, c12165et.h), new fSS() { // from class: o.SWE
@Override // o.fSS
public final Object a(Object obj) {
return Boolean.TRUE;
}
});
}
@Override // o.irj
public final AbstractC13175fSw<Boolean> e(C11688ek c11688ek, String str, Long l) {
return new C13372fYk(this.a.b.faceTecVerifyByFace(c11688ek, str, l), new fSS() { // from class: o.vjD
@Override // o.fSS
public final Object a(Object obj) {
return Boolean.TRUE;
}
});
}
@Override // o.irj
public final AbstractC13175fSw<CtB> d(C12165et c12165et) {
return new C13372fYk(this.a.b.resetPinVerifyByFace(c12165et.c, c12165et.a, c12165et.d, c12165et.e, c12165et.b, c12165et.h), new fSS() { // from class: o.miK
@Override // o.fSS
public final Object a(Object obj) {
return ((xWl) ((SingleDataEntity) obj).getData()).a();
}
});
}
@Override // o.irj
public final AbstractC13175fSw<CtB> e(C11953ep c11953ep, String str, Long l) {
return new C13372fYk(this.a.b.faceTecResetPinVerifyByFace(c11953ep, str, l), new fSS() { // from class: o.vrH
@Override // o.fSS
public final Object a(Object obj) {
return ((xWl) ((SingleDataEntity) obj).getData()).a();
}
});
}
@Override // o.irj
public final AbstractC13175fSw<Boolean> c(String str, String str2) {
return new C13366fYe(this.a.b.validateOTP(str, str2), new fSS() { // from class: o.uXF
@Override // o.fSS
public final Object a(Object obj) {
return AbstractC13175fSw.d(Boolean.TRUE);
}
});
}
@Override // o.irj
public final AbstractC13175fSw<Boolean> c(String str, String str2, C1273Zjc c1273Zjc) {
return new C13366fYe(this.a.b.validateOtpV2(str, str2, c1273Zjc), new fSS() { // from class: o.URM
@Override // o.fSS
public final Object a(Object obj) {
return AbstractC13175fSw.d(Boolean.TRUE);
}
});
}
@Override // o.irj
public final fRY d(zpB zpb) {
return fRY.b(this.a.b.deleteMultiDevice(zpb));
}
@Override // o.irj
public final AbstractC13175fSw<wXR> a(String str) {
return new C13372fYk(this.a.b.getDeviceModel(str), new fSS(this) { // from class: o.Xkg
private KNB a;
@Override // o.fSS
public final Object a(Object obj) {
C12962fMj c12962fMj = this.a.b;
iHG ihg = (iHG) ((SingleDataEntity) obj).getData();
C14957gcv.e(ihg, "");
return new wXR(ihg.a, ihg.e, ihg.c);
}
{
this.a = this;
}
});
}
@Override // o.irj
public final void b() {
WuF wuF = this.g;
wuF.c = null;
wuF.d = null;
}
@Override // o.irj
public final AbstractC13175fSw<List<PiE>> d() {
if (this.h.c != null) {
return AbstractC13175fSw.d(this.h.c);
}
C13372fYk c13372fYk = new C13372fYk(this.a.c.getCountryList(), new fSS() { // from class: o.gpg
@Override // o.fSS
public final Object a(Object obj) {
YKU yku = new YKU(((C15840iym) ((SingleDataEntity) obj).getData()).b);
return (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw() { // from class: o.wKj
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
C0321EVu c0321EVu = (C0321EVu) obj2;
return new PiE(c0321EVu.e, c0321EVu.a, c0321EVu.b, c0321EVu.c, c0321EVu.d);
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
}
});
final JmG jmG = this.h;
Objects.requireNonNull(jmG);
return new C13369fYh(c13372fYk, new fSQ(jmG) { // from class: o.flO
private JmG e;
@Override // o.fSQ
public final void c(Object obj) {
this.e.c = (List) obj;
}
{
this.e = jmG;
}
});
}
@Override // o.irj
public final String a() {
return this.g.d;
}
@Override // o.irj
public final String e() {
return this.g.c;
}
@Override // o.irj
public final Boolean g() {
return this.g.a;
}
@Override // o.irj
public final String i() {
return this.h.e;
}
@Override // o.irj
public final Boolean h() {
return this.h.d;
}
@Override // o.irj
public final boolean f() {
return this.h.a;
}
@Override // o.irj
public final AbstractC13163fSk<iKd> a(C12377ex c12377ex) {
C15571guL d = this.d.d(c12377ex.e.e);
C12271ev c12271ev = c12377ex.e;
String str = d.c;
C14957gcv.e(str, "");
c12271ev.e = str;
FNz fNz = this.a;
return fNz.b.preActivation(c12377ex, d.d).map(new fSS(this) { // from class: o.IcG
private KNB e;
@Override // o.fSS
public final Object a(Object obj) {
return this.e.e.e((WYA) ((SingleDataEntity) obj).getData());
}
{
this.e = this;
}
});
}
@Override // o.irj
public final AbstractC13163fSk<Gef> c(C12430ey c12430ey) {
FNz fNz = this.a;
DiG.e("1036");
DiG.e("1041");
return fNz.b.preValidation(c12430ey).map(new fSS() { // from class: o.tEl
@Override // o.fSS
public final Object a(Object obj) {
SingleDataEntity singleDataEntity = (SingleDataEntity) obj;
return new Gef(singleDataEntity.getData() != null && ((C16076kvY) singleDataEntity.getData()).d(), "1036".equalsIgnoreCase(singleDataEntity.getStatus().e) || "1041".equalsIgnoreCase(singleDataEntity.getStatus().e));
}
});
}
@Override // o.irj
public final AbstractC13163fSk<dVU> c(final vDM vdm) {
C15571guL d = this.d.d(vdm.d);
String str = d.c;
C14957gcv.e(str, "");
vdm.d = str;
final FNz fNz = this.a;
final String str2 = d.d;
return AbstractC13163fSk.using(new InterfaceC13189fTc() { // from class: o.pck
@Override // o.InterfaceC13189fTc
public final Object d() {
DiG.e("1036");
return null;
}
}, new fSS(fNz, vdm, str2) { // from class: o.eiy
private String a;
private FNz b;
private vDM d;
@Override // o.fSS
public final Object a(Object obj) {
FNz fNz2 = this.b;
return fNz2.b.postRegisterNewPin(this.d, this.a);
}
{
this.b = fNz;
this.d = vdm;
this.a = str2;
}
}, new fSQ() { // from class: o.dfu
@Override // o.fSQ
public final void c(Object obj) {
DiG.b();
}
}).map(new fSS(this) { // from class: o.XEB
private KNB c;
@Override // o.fSS
public final Object a(Object obj) {
SingleDataEntity singleDataEntity = (SingleDataEntity) obj;
return new dVU(this.c.e.e((WYA) singleDataEntity.getData()), singleDataEntity.getStatus().e.equals("1036"), ((WYA) singleDataEntity.getData()).C.equalsIgnoreCase("CC_ACTIVATION"), singleDataEntity.getStatus().c);
}
{
this.c = this;
}
});
}
@Override // o.irj
public final AbstractC13175fSw<List<PiE>> c(final cEO.Sts sts) {
if (sts.a.isEmpty()) {
return d();
}
return new C13372fYk(d(), new fSS(sts) { // from class: o.Bto
private cEO.Sts a;
@Override // o.fSS
public final Object a(Object obj) {
final cEO.Sts sts2 = this.a;
YKU yku = new YKU((List) obj);
return (List) new YKU(yku.a, new GEP(yku.b, new Jel(sts2) { // from class: o.GNc
private cEO.Sts c;
@Override // o.Jel
public final boolean e(Object obj2) {
String lowerCase;
cEO.Sts sts3 = this.c;
PiE piE = (PiE) obj2;
if (!sts3.b) {
lowerCase = piE.b.toLowerCase();
} else {
lowerCase = piE.c;
}
return lowerCase.contains(sts3.a.toLowerCase());
}
{
this.c = sts2;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
}
{
this.a = sts;
}
});
}
@Override // o.irj
public final void d(String str) {
this.g.d = str;
}
@Override // o.irj
public final void b(boolean z) {
this.h.a = z;
}
@Override // o.irj
public final void e(String str) {
this.g.c = str;
}
@Override // o.irj
public final void a(Boolean bool) {
this.g.a = bool;
}
@Override // o.irj
public final void c(String str) {
this.h.e = str;
}
@Override // o.irj
public final void d(Boolean bool) {
this.h.d = bool;
}
}