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

631 lines
22 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.scb.phone.data.entity.transfer.SingleDataEntity;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.HashSet;
import java.util.List;
import java.util.Objects;
import java.util.Set;
import o.IGv;
import o.PRA;
import org.threeten.bp.OffsetDateTime;
/* renamed from: o.uBk, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C17124uBk implements InterfaceC1295ZvJ {
final gPK a;
final vZz b;
private final JJq c;
private final C0944SKt d;
final tkP e;
private final xVo f;
private final FUU g;
private final C9920dsw h;
private final String i;
private final iJR j;
private final OPE k;
private final QMd l;
private final IGv m;
private final C0848Pwu n;
@InterfaceC13391fZD
public C17124uBk(String str, C0944SKt c0944SKt, FUU fuu, iJR ijr, tkP tkp, xVo xvo, QMd qMd, OPE ope, C9920dsw c9920dsw, gPK gpk, vZz vzz, IGv iGv, C0848Pwu c0848Pwu, JJq jJq) {
this.i = str;
this.j = ijr;
this.e = tkp;
this.f = xvo;
this.l = qMd;
this.k = ope;
this.h = c9920dsw;
this.a = gpk;
this.b = vzz;
this.d = c0944SKt;
this.g = fuu;
this.m = iGv;
this.n = c0848Pwu;
this.c = jJq;
}
@Override // o.InterfaceC1295ZvJ
public final AbstractC13163fSk<List<LEE>> d(final String str) {
return this.j.c.getBanks().map(new fSS(this) { // from class: o.TMI
private C17124uBk c;
@Override // o.fSS
public final Object a(Object obj) {
C17124uBk c17124uBk = this.c;
YKU yku = new YKU(((C0829PiG) obj).a);
vZz vzz = c17124uBk.b;
Objects.requireNonNull(vzz);
return (List) new YKU(yku.a, new wxK(yku.b, new vEs(vzz))).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
}
{
this.c = this;
}
}).doOnNext(new fSQ(this, str) { // from class: o.Sjl
private C17124uBk b;
private String c;
@Override // o.fSQ
public final void c(Object obj) {
this.b.e.e.put(this.c, (List) obj);
}
{
this.b = this;
this.c = str;
}
});
}
@Override // o.InterfaceC1295ZvJ
public final List<LEE> a(String str) {
tkP tkp = this.e;
if (str != null) {
return tkp.e.get(str);
}
return null;
}
@Override // o.InterfaceC1295ZvJ
public final void c() {
this.e.e.clear();
}
@Override // o.InterfaceC1295ZvJ
public final void d() {
this.e.c.clear();
}
@Override // o.InterfaceC1295ZvJ
public final Set<String> g() {
return this.e.a.getStringSet("CLOSED_TRANSFER_CONTEXTUAL_ADS", new HashSet());
}
@Override // o.InterfaceC1295ZvJ
public final void a(Set<String> set) {
this.e.a.edit().putStringSet("CLOSED_TRANSFER_CONTEXTUAL_ADS", set).apply();
}
@Override // o.InterfaceC1295ZvJ
public final AbstractC13163fSk<List<USY>> c(final String str) {
FUU fuu = this.g;
final C7968cyO c7968cyO = (C7968cyO) FUU.d(new Object[]{fuu}, 1479505950, -1479505941, System.identityHashCode(fuu));
if (c7968cyO == null) {
return AbstractC13163fSk.just(new ArrayList());
}
return this.d.a(true).map(new fSS(this, str, c7968cyO) { // from class: o.Hpt
private C7968cyO b;
private C17124uBk c;
private String d;
@Override // o.fSS
public final Object a(Object obj) {
zEQ d;
final C17124uBk c17124uBk = this.c;
final String str2 = this.d;
final C7968cyO c7968cyO2 = this.b;
nOO noo = (nOO) obj;
YKU yku = new YKU(noo.d);
YKU yku2 = new YKU(yku.a, new GEP(yku.b, new Jel(str2) { // from class: o.Ujs
private String c;
@Override // o.Jel
public final boolean e(Object obj2) {
C5762bzF c5762bzF = (C5762bzF) obj2;
return this.c.equals(c5762bzF.d) && ZGL.TYPE_FIXED.equals(c5762bzF.p);
}
{
this.c = str2;
}
}));
if (yku2.b.hasNext()) {
d = zEQ.a(yku2.b.next());
} else {
d = zEQ.d();
}
final boolean z = d.d != 0;
YKU yku3 = new YKU(noo.d);
YKU yku4 = new YKU(yku3.a, new GEP(yku3.b, new Jel(c17124uBk, str2, z) { // from class: o.yUm
private C17124uBk a;
private boolean b;
private String d;
@Override // o.Jel
public final boolean e(Object obj2) {
zEQ d2;
String str3 = this.d;
boolean z2 = this.b;
C5762bzF c5762bzF = (C5762bzF) obj2;
if (!str3.equals(c5762bzF.d)) {
List<String> list = c5762bzF.i;
ArrayList arrayList = new ArrayList();
arrayList.add("TRANSFER_TARGET");
YKU yku5 = new YKU(arrayList);
YKU yku6 = new YKU(yku5.a, new GEP(yku5.b, new Jel(list) { // from class: o.TpP
private List c;
@Override // o.Jel
public final boolean e(Object obj3) {
return this.c.indexOf((String) obj3) >= 0;
}
{
this.c = list;
}
}));
if (yku6.b.hasNext()) {
d2 = zEQ.a(yku6.b.next());
} else {
d2 = zEQ.d();
}
if (d2.d != 0) {
if (z2) {
return ZGL.TYPE_CURRENT.equals(c5762bzF.p) || ZGL.TYPE_SAVING.equals(c5762bzF.p);
}
return true;
}
}
return false;
}
{
this.a = c17124uBk;
this.d = str2;
this.b = z;
}
}));
return (List) new YKU(yku4.a, new wxK(yku4.b, new InterfaceC1244Ytw(c17124uBk, c7968cyO2) { // from class: o.JHR
private C7968cyO b;
private C17124uBk e;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
C17124uBk c17124uBk2 = this.e;
C7968cyO c7968cyO3 = this.b;
gPK gpk = c17124uBk2.a;
return gPK.d((C5762bzF) obj2, c7968cyO3);
}
{
this.e = c17124uBk;
this.b = c7968cyO2;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
}
{
this.c = this;
this.d = str;
this.b = c7968cyO;
}
});
}
@Override // o.InterfaceC1295ZvJ
public final AbstractC13163fSk<List<USY>> b(final String str, final EnumC15671hdu enumC15671hdu) {
FUU fuu = this.g;
final C7968cyO c7968cyO = (C7968cyO) FUU.d(new Object[]{fuu}, 1479505950, -1479505941, System.identityHashCode(fuu));
if (c7968cyO == null) {
return AbstractC13163fSk.just(new ArrayList());
}
return this.d.a(true).map(new fSS(this, enumC15671hdu, str, c7968cyO) { // from class: o.uRg
private C7968cyO b;
private EnumC15671hdu c;
private C17124uBk d;
private String e;
@Override // o.fSS
public final Object a(Object obj) {
C17124uBk c17124uBk = this.d;
EnumC15671hdu enumC15671hdu2 = this.c;
String str2 = this.e;
C7968cyO c7968cyO2 = this.b;
YKU yku = new YKU(((nOO) obj).d);
YKU yku2 = new YKU(yku.a, new GEP(yku.b, new Jel(enumC15671hdu2) { // from class: o.lbb
private EnumC15671hdu e;
@Override // o.Jel
public final boolean e(Object obj2) {
return ((C5762bzF) obj2).i.contains(EIy.a(this.e).allow);
}
{
this.e = enumC15671hdu2;
}
}));
YKU yku3 = new YKU(yku2.a, new GEP(yku2.b, new Jel(str2) { // from class: o.PwV
private String b;
@Override // o.Jel
public final boolean e(Object obj2) {
return !this.b.equals(((C5762bzF) obj2).d);
}
{
this.b = str2;
}
}));
return (List) new YKU(yku3.a, new wxK(yku3.b, new InterfaceC1244Ytw(c17124uBk, c7968cyO2) { // from class: o.Hkw
private C7968cyO b;
private C17124uBk c;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
C17124uBk c17124uBk2 = this.c;
C7968cyO c7968cyO3 = this.b;
gPK gpk = c17124uBk2.a;
return gPK.d((C5762bzF) obj2, c7968cyO3);
}
{
this.c = c17124uBk;
this.b = c7968cyO2;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
}
{
this.d = this;
this.c = enumC15671hdu;
this.e = str;
this.b = c7968cyO;
}
});
}
@Override // o.InterfaceC1295ZvJ
public final AbstractC13163fSk<WNX> e(C13046fP c13046fP) {
iJR ijr = this.j;
DiG.e("9003");
AbstractC13163fSk<SingleDataEntity<MmQ>> verify = ijr.c.verify(c13046fP);
final C9920dsw c9920dsw = this.h;
Objects.requireNonNull(c9920dsw);
AbstractC13163fSk<R> map = verify.map(new fSS(c9920dsw) { // from class: o.ftW
private C9920dsw a;
@Override // o.fSS
public final Object a(Object obj) {
C17307vgH c17307vgH;
C17307vgH c17307vgH2;
C9920dsw c9920dsw2 = this.a;
MmQ mmQ = (MmQ) ((SingleDataEntity) obj).getData();
if (mmQ != null) {
double doubleValue = C9920dsw.c(mmQ.d).doubleValue();
double doubleValue2 = C9920dsw.c(mmQ.i).doubleValue();
double doubleValue3 = C9920dsw.c(mmQ.h).doubleValue();
double doubleValue4 = C9920dsw.c(mmQ.f).doubleValue();
double doubleValue5 = C9920dsw.c(mmQ.g).doubleValue();
C16333nYy c16333nYy = mmQ.a;
C17307vgH c17307vgH3 = c16333nYy != null ? new C17307vgH(c16333nYy.c, c16333nYy.b, c16333nYy.e) : null;
C16333nYy c16333nYy2 = mmQ.c;
if (c16333nYy2 != null) {
c17307vgH = c17307vgH3;
c17307vgH2 = new C17307vgH(c16333nYy2.c, c16333nYy2.b, c16333nYy2.e);
} else {
c17307vgH = c17307vgH3;
c17307vgH2 = null;
}
return new WNX(doubleValue, doubleValue2, doubleValue3, doubleValue4, doubleValue5, c17307vgH, c17307vgH2, c9920dsw2.d(mmQ.b), mmQ.e, mmQ.j);
}
return new WNX();
}
{
this.a = c9920dsw;
}
});
final tkP tkp = this.e;
Objects.requireNonNull(tkp);
return map.doOnNext(new fSQ(tkp) { // from class: o.ocM
private tkP e;
@Override // o.fSQ
public final void c(Object obj) {
this.e.d = (WNX) obj;
}
{
this.e = tkp;
}
});
}
@Override // o.InterfaceC1295ZvJ
public final AbstractC13163fSk<kkD> b(C12852fJ c12852fJ, String str, String str2) {
AbstractC13163fSk<R> map = this.j.c.confirmFixedAccount(c12852fJ, str, str2).map(new fSS() { // from class: o.NzX
@Override // o.fSS
public final Object a(Object obj) {
return (Bde) ((SingleDataEntity) obj).getData();
}
});
final QMd qMd = this.l;
Objects.requireNonNull(qMd);
return map.map(new fSS(qMd) { // from class: o.WcD
private QMd e;
@Override // o.fSS
public final Object a(Object obj) {
QMd qMd2 = this.e;
Bde bde = (Bde) obj;
C14957gcv.e(bde, "");
kkD kkd = new kkD();
String str3 = bde.f8107o;
kkd.s = str3 != null ? str3 : "";
kkd.q = (OffsetDateTime) ZTC.e(new Object[]{bde.i, OffsetDateTime.now()}, 267499366, -267499366, (int) System.currentTimeMillis());
kkd.i = bde.a;
kkd.h = bde.c;
double d = bde.f;
kkd.f9192o = bde.g;
kkd.r = bde.h;
kkd.n = bde.j;
C9920dsw c9920dsw = qMd2.e;
C9920dsw.e(bde.b);
C9920dsw c9920dsw2 = qMd2.e;
C9920dsw.e(bde.d);
kkd.k = qMd2.e.d(bde.e);
return kkd;
}
{
this.e = qMd;
}
});
}
@Override // o.Heh
public final C1019Twi n() {
xVo xvo = this.f;
C1019Twi c1019Twi = xvo.e;
if (c1019Twi != null && "TRANSFER".equals(c1019Twi.t)) {
return xvo.e;
}
return null;
}
@Override // o.InterfaceC1295ZvJ
public final AbstractC13163fSk<List<LEE>> b(String str) {
if ((str != null ? this.e.e.get(str) : null) != null) {
return AbstractC13163fSk.just(str != null ? this.e.e.get(str) : null);
}
return d(str);
}
@Override // o.InterfaceC1295ZvJ
public final AbstractC13163fSk<List<LEE>> j(final String str) {
if ((str != null ? this.e.c.get(str) : null) != null) {
if (!(str != null ? this.e.c.get(str) : null).isEmpty()) {
return AbstractC13163fSk.just(str != null ? this.e.c.get(str) : null);
}
}
return this.j.c.getEligibleBanks().map(new fSS(this) { // from class: o.kWa
private C17124uBk e;
@Override // o.fSS
public final Object a(Object obj) {
C17124uBk c17124uBk = this.e;
YKU yku = new YKU(((C0829PiG) obj).a);
vZz vzz = c17124uBk.b;
Objects.requireNonNull(vzz);
return (List) new YKU(yku.a, new wxK(yku.b, new vEs(vzz))).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
}
{
this.e = this;
}
}).doOnNext(new fSQ(this, str) { // from class: o.PBD
private C17124uBk b;
private String d;
@Override // o.fSQ
public final void c(Object obj) {
this.b.e.c.put(this.d, (List) obj);
}
{
this.b = this;
this.d = str;
}
});
}
@Override // o.InterfaceC1295ZvJ
public final AbstractC13163fSk<C17434wjF> e(Integer num) {
AbstractC13163fSk<SingleDataEntity<GAQ>> transferHistory = this.j.c.getTransferHistory(num);
final IGv iGv = this.m;
Objects.requireNonNull(iGv);
return transferHistory.map(new fSS(iGv) { // from class: o.ruJ
private IGv c;
@Override // o.fSS
public final Object a(Object obj) {
SingleDataEntity singleDataEntity = (SingleDataEntity) obj;
C14957gcv.e(singleDataEntity, "");
int i = ((GAQ) singleDataEntity.getData()).e;
String str = ((GAQ) singleDataEntity.getData()).b;
Integer num2 = ((GAQ) singleDataEntity.getData()).c;
boolean b = C14957gcv.b((Object) ((GAQ) singleDataEntity.getData()).d, (Object) "Y");
List<C5340brG> list = ((GAQ) singleDataEntity.getData()).a;
C14957gcv.e(list, "");
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
for (C5340brG c5340brG : list) {
arrayList.add(new Csf(c5340brG.f, c5340brG.f8583o, c5340brG.j, null, null, c5340brG.c, c5340brG.e, c5340brG.a, c5340brG.g, C14957gcv.b((Object) c5340brG.h, (Object) "Y"), C14957gcv.b((Object) c5340brG.i, (Object) "Y"), null, c5340brG.b, c5340brG.d, c5340brG.l, 2072));
}
return new C17434wjF(i, b, str, num2, C14881gav.a((Iterable) arrayList, (Comparator) new IGv.HBt()));
}
{
this.c = iGv;
}
});
}
@Override // o.InterfaceC1295ZvJ
public final AbstractC13163fSk<Zit> a(C13014fO c13014fO) {
AbstractC13163fSk<R> map = this.j.c.repeatTransfer(c13014fO).map(new fSS() { // from class: o.XTa
@Override // o.fSS
public final Object a(Object obj) {
return (mVY) ((SingleDataEntity) obj).getData();
}
});
final C0848Pwu c0848Pwu = this.n;
Objects.requireNonNull(c0848Pwu);
return map.map(new fSS(c0848Pwu) { // from class: o.OWC
private C0848Pwu b;
@Override // o.fSS
public final Object a(Object obj) {
return C0848Pwu.e((mVY) obj);
}
{
this.b = c0848Pwu;
}
});
}
@Override // o.InterfaceC1295ZvJ
public final fRY e(String str) {
iJR ijr = this.j;
return fRY.e(ijr.c.customerFaceStatus(this.i, str));
}
@Override // o.InterfaceC1295ZvJ
public final AbstractC13175fSw<EoK> h(String str) {
iJR ijr = this.j;
AbstractC13175fSw<SingleDataEntity<C6078cHv>> customerFaceRecog = ijr.c.getCustomerFaceRecog(str, this.i);
final JJq jJq = this.c;
Objects.requireNonNull(jJq);
return new C13372fYk(customerFaceRecog, new fSS(jJq) { // from class: o.fRP
private JJq b;
@Override // o.fSS
public final Object a(Object obj) {
return JJq.a((SingleDataEntity<C6078cHv>) obj);
}
{
this.b = jJq;
}
});
}
@Override // o.InterfaceC1295ZvJ
public final C14536fv a() {
return this.e.b;
}
@Override // o.InterfaceC1295ZvJ
public final C14589fw b() {
return this.e.g;
}
@Override // o.InterfaceC1295ZvJ
public final C17024tMc e() {
return this.e.i;
}
@Override // o.InterfaceC1295ZvJ
public final AbstractC13163fSk<kkD> a(C14377fs c14377fs, String str, String str2) {
AbstractC13163fSk<SingleDataEntity<C16902sHd>> doFinally;
iJR ijr = this.j;
DiG.e("8101");
DiG.e("8102");
if (str == null || str2 == null) {
doFinally = ijr.c.confirm(c14377fs).doFinally(new Cbf());
} else {
doFinally = ijr.c.confirm(c14377fs, str, str2).doFinally(new Cbf());
}
final QMd qMd = this.l;
Objects.requireNonNull(qMd);
return doFinally.map(new fSS(qMd) { // from class: o.QPn
private QMd c;
@Override // o.fSS
public final Object a(Object obj) {
SingleDataEntity singleDataEntity = (SingleDataEntity) obj;
C14957gcv.e(singleDataEntity, "");
C16902sHd c16902sHd = (C16902sHd) singleDataEntity.getData();
kkD kkd = new kkD();
kkd.m = (iJI) ZTC.e(new Object[]{singleDataEntity}, 321450472, -321450471, (int) System.currentTimeMillis());
String str3 = c16902sHd.n;
kkd.s = str3 != null ? str3 : "";
kkd.q = (OffsetDateTime) ZTC.e(new Object[]{c16902sHd.l, OffsetDateTime.now()}, 267499366, -267499366, (int) System.currentTimeMillis());
kkd.i = c16902sHd.j;
kkd.c = QMd.d(c16902sHd.a);
kkd.l = c16902sHd.h;
kkd.a = c16902sHd.b;
kkd.d = c16902sHd.c;
kkd.e = c16902sHd.d;
kkd.t = c16902sHd.f9266o;
kkd.j = c16902sHd.g;
kkd.f = c16902sHd.f;
return kkd;
}
{
this.c = qMd;
}
});
}
@Override // o.InterfaceC1295ZvJ
public final WNX f() {
return this.e.d;
}
@Override // o.InterfaceC1295ZvJ
public final AbstractC13163fSk<C17024tMc> c(C14536fv c14536fv) {
c14536fv.i = this.i;
this.e.b = c14536fv;
iJR ijr = this.j;
DiG.e("9003");
AbstractC13163fSk<SingleDataEntity<hAH>> verify = ijr.c.verify(c14536fv);
OPE ope = this.k;
Objects.requireNonNull(ope);
AbstractC13163fSk<R> map = verify.map(new Xzq(ope));
tkP tkp = this.e;
Objects.requireNonNull(tkp);
return map.doOnNext(new Itd(tkp));
}
@Override // o.InterfaceC1295ZvJ
public final AbstractC13163fSk<C17024tMc> c(C14589fw c14589fw) {
c14589fw.g = this.i;
this.e.g = c14589fw;
iJR ijr = this.j;
DiG.e("9003");
AbstractC13163fSk<SingleDataEntity<hAH>> verify = ijr.c.verify(c14589fw);
OPE ope = this.k;
Objects.requireNonNull(ope);
AbstractC13163fSk<R> map = verify.map(new Xzq(ope));
tkP tkp = this.e;
Objects.requireNonNull(tkp);
return map.doOnNext(new Itd(tkp));
}
}