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

543 lines
20 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.List;
import java.util.concurrent.Callable;
@fZH
/* renamed from: o.Nlq, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0739Nlq implements hKx {
EnumC17751zVK a;
boolean b = true;
kQC c;
oUl d;
EnumC17751zVK e;
BNz f;
PcD g;
Ben h;
EnumC17751zVK i;
EnumC17751zVK j;
private C13967fkM k;
String m;
@InterfaceC13391fZD
public C0739Nlq(BNz bNz, PcD pcD, C13967fkM c13967fkM, kQC kqc, oUl oul, String str) {
this.f = bNz;
this.g = pcD;
this.k = c13967fkM;
this.c = kqc;
this.d = oul;
this.m = str;
}
@Override // o.hKx
public final AbstractC13163fSk<C13245fUx> d(final String str) {
return this.f.c.getAllDemoTiles(new C15393gpJ(this.m)).map(new bXJ()).flatMap(new fSS(this, str) { // from class: o.GDX
private String b;
private C0739Nlq e;
@Override // o.fSS
public final Object a(Object obj) {
return this.e.a(this.b, (Ben) obj);
}
{
this.e = this;
this.b = str;
}
}).flatMap(new fSS(this, str) { // from class: o.Xnb
private String a;
private C0739Nlq d;
@Override // o.fSS
public final Object a(Object obj) {
final C0739Nlq c0739Nlq = this.d;
final String str2 = this.a;
C13245fUx c13245fUx = (C13245fUx) obj;
if ((c0739Nlq.a != EnumC17751zVK.SUCCESS || c0739Nlq.i != EnumC17751zVK.SUCCESS || c0739Nlq.j != EnumC17751zVK.SUCCESS || c0739Nlq.e != EnumC17751zVK.SUCCESS) && c0739Nlq.b) {
c0739Nlq.b = false;
AbstractC13163fSk empty = AbstractC13163fSk.empty();
if (c0739Nlq.a == EnumC17751zVK.ERROR) {
empty = empty.mergeWith(c0739Nlq.c(str2));
}
if (c0739Nlq.i == EnumC17751zVK.ERROR) {
BNz bNz = c0739Nlq.f;
empty = empty.mergeWith(bNz.c.getPredictiveTiles(new C15393gpJ(c0739Nlq.m)).map(new bXJ()).doOnNext(new fSQ(c0739Nlq) { // from class: o.LHe
private C0739Nlq a;
@Override // o.fSQ
public final void c(Object obj2) {
C0739Nlq c0739Nlq2 = this.a;
Ben ben = (Ben) obj2;
synchronized (c0739Nlq2) {
c0739Nlq2.i = EnumC17751zVK.SUCCESS;
c0739Nlq2.h.i = ben.i;
c0739Nlq2.h.h = ben.h;
}
}
{
this.a = c0739Nlq;
}
}).map(new fSS(c0739Nlq, str2) { // from class: o.Lea
private C0739Nlq a;
private String e;
@Override // o.fSS
public final Object a(Object obj2) {
C0739Nlq c0739Nlq2 = this.a;
return c0739Nlq2.g.c(c0739Nlq2.h, this.e, c0739Nlq2.a, c0739Nlq2.i, c0739Nlq2.j, c0739Nlq2.e);
}
{
this.a = c0739Nlq;
this.e = str2;
}
}).onErrorReturn(new fSS(c0739Nlq, str2) { // from class: o.qpM
private String d;
private C0739Nlq e;
@Override // o.fSS
public final Object a(Object obj2) {
C0739Nlq c0739Nlq2 = this.e;
String str3 = this.d;
EnumC17751zVK enumC17751zVK = EnumC17751zVK.ERROR;
c0739Nlq2.i = enumC17751zVK;
return c0739Nlq2.g.c(c0739Nlq2.h, str3, c0739Nlq2.a, enumC17751zVK, c0739Nlq2.j, c0739Nlq2.e);
}
{
this.e = c0739Nlq;
this.d = str2;
}
}).startWith(AbstractC13163fSk.fromCallable(new Callable(c0739Nlq, str2) { // from class: o.TWi
private String b;
private C0739Nlq d;
@Override // java.util.concurrent.Callable
public final Object call() {
C0739Nlq c0739Nlq2 = this.d;
String str3 = this.b;
c0739Nlq2.i = EnumC17751zVK.ERROR;
c0739Nlq2.h.i = null;
return c0739Nlq2.g.c(c0739Nlq2.h, str3, c0739Nlq2.a, c0739Nlq2.i, c0739Nlq2.j, c0739Nlq2.e);
}
{
this.d = c0739Nlq;
this.b = str2;
}
})));
}
if (c0739Nlq.j == EnumC17751zVK.ERROR) {
empty = empty.mergeWith(c0739Nlq.e(str2));
}
if (c0739Nlq.e != EnumC17751zVK.ERROR) {
return empty;
}
BNz bNz2 = c0739Nlq.f;
return empty.mergeWith(bNz2.c.getBannerTiles(c0739Nlq.m).map(new bXJ()).doOnNext(new fSQ(c0739Nlq) { // from class: o.ruV
private C0739Nlq d;
@Override // o.fSQ
public final void c(Object obj2) {
C0739Nlq c0739Nlq2 = this.d;
Ben ben = (Ben) obj2;
synchronized (c0739Nlq2) {
c0739Nlq2.e = EnumC17751zVK.SUCCESS;
c0739Nlq2.h.e = ben.e;
}
}
{
this.d = c0739Nlq;
}
}).map(new fSS(c0739Nlq, str2) { // from class: o.Vez
private String b;
private C0739Nlq d;
@Override // o.fSS
public final Object a(Object obj2) {
C0739Nlq c0739Nlq2 = this.d;
return c0739Nlq2.g.c(c0739Nlq2.h, this.b, c0739Nlq2.a, c0739Nlq2.i, c0739Nlq2.j, c0739Nlq2.e);
}
{
this.d = c0739Nlq;
this.b = str2;
}
}).onErrorReturn(new fSS(c0739Nlq, str2) { // from class: o.LZa
private String a;
private C0739Nlq d;
@Override // o.fSS
public final Object a(Object obj2) {
C0739Nlq c0739Nlq2 = this.d;
String str3 = this.a;
EnumC17751zVK enumC17751zVK = EnumC17751zVK.ERROR;
c0739Nlq2.e = enumC17751zVK;
return c0739Nlq2.g.c(c0739Nlq2.h, str3, c0739Nlq2.a, c0739Nlq2.i, c0739Nlq2.j, enumC17751zVK);
}
{
this.d = c0739Nlq;
this.a = str2;
}
}).startWith(AbstractC13163fSk.fromCallable(new Callable(c0739Nlq, str2) { // from class: o.OdR
private String c;
private C0739Nlq d;
@Override // java.util.concurrent.Callable
public final Object call() {
C0739Nlq c0739Nlq2 = this.d;
String str3 = this.c;
c0739Nlq2.e = EnumC17751zVK.ERROR;
c0739Nlq2.h.e = null;
return c0739Nlq2.g.c(c0739Nlq2.h, str3, c0739Nlq2.a, c0739Nlq2.i, c0739Nlq2.j, c0739Nlq2.e);
}
{
this.d = c0739Nlq;
this.c = str2;
}
})));
}
return AbstractC13163fSk.just(c13245fUx);
}
{
this.d = this;
this.a = str;
}
}).onErrorReturn(new fSS(this, str) { // from class: o.nAV
private String a;
private C0739Nlq e;
@Override // o.fSS
public final Object a(Object obj) {
C0739Nlq c0739Nlq = this.e;
String str2 = this.a;
c0739Nlq.a = EnumC17751zVK.ERROR;
c0739Nlq.i = EnumC17751zVK.ERROR;
c0739Nlq.j = EnumC17751zVK.ERROR;
EnumC17751zVK enumC17751zVK = EnumC17751zVK.ERROR;
c0739Nlq.e = enumC17751zVK;
return c0739Nlq.g.c(c0739Nlq.h, str2, c0739Nlq.a, c0739Nlq.i, c0739Nlq.j, enumC17751zVK);
}
{
this.e = this;
this.a = str;
}
}).startWith(AbstractC13163fSk.fromCallable(new Callable(this, str) { // from class: o.bbp
private String c;
private C0739Nlq e;
@Override // java.util.concurrent.Callable
public final Object call() {
C0739Nlq c0739Nlq = this.e;
String str2 = this.c;
c0739Nlq.a = EnumC17751zVK.LOADING;
c0739Nlq.i = EnumC17751zVK.ERROR;
c0739Nlq.j = EnumC17751zVK.LOADING;
c0739Nlq.e = EnumC17751zVK.ERROR;
Ben ben = new Ben();
c0739Nlq.h = ben;
return c0739Nlq.g.c(ben, str2, c0739Nlq.a, c0739Nlq.i, c0739Nlq.j, c0739Nlq.e);
}
{
this.e = this;
this.c = str;
}
}));
}
/* JADX INFO: Access modifiers changed from: package-private */
public final /* synthetic */ InterfaceC13169fSq a(String str, Ben ben) throws Throwable {
AbstractC13163fSk just;
synchronized (this) {
this.b = true;
this.h = ben;
this.a = ben.b != null ? EnumC17751zVK.SUCCESS : EnumC17751zVK.ERROR;
this.i = ben.i != null ? EnumC17751zVK.SUCCESS : EnumC17751zVK.ERROR;
this.j = ben.f != null ? EnumC17751zVK.SUCCESS : EnumC17751zVK.ERROR;
EnumC17751zVK enumC17751zVK = ben.e != null ? EnumC17751zVK.SUCCESS : EnumC17751zVK.ERROR;
this.e = enumC17751zVK;
just = AbstractC13163fSk.just(this.g.c(this.h, str, this.a, this.i, this.j, enumC17751zVK));
}
return just;
}
@Override // o.hKx
public final AbstractC13163fSk<C13245fUx> c(final String str) {
BNz bNz = this.f;
return bNz.c.getDynamicTiles(new C15393gpJ(this.m)).map(new bXJ()).doOnNext(new fSQ(this) { // from class: o.zPq
private C0739Nlq c;
@Override // o.fSQ
public final void c(Object obj) {
C0739Nlq c0739Nlq = this.c;
Ben ben = (Ben) obj;
synchronized (c0739Nlq) {
c0739Nlq.a = EnumC17751zVK.SUCCESS;
c0739Nlq.h.b = ben.b;
c0739Nlq.h.g = ben.g;
c0739Nlq.h.c = ben.c;
c0739Nlq.h.d = ben.d;
}
}
{
this.c = this;
}
}).map(new fSS(this, str) { // from class: o.QDI
private C0739Nlq b;
private String d;
@Override // o.fSS
public final Object a(Object obj) {
C0739Nlq c0739Nlq = this.b;
return c0739Nlq.g.c(c0739Nlq.h, this.d, c0739Nlq.a, c0739Nlq.i, c0739Nlq.j, c0739Nlq.e);
}
{
this.b = this;
this.d = str;
}
}).onErrorReturn(new fSS(this, str) { // from class: o.PvF
private String a;
private C0739Nlq e;
@Override // o.fSS
public final Object a(Object obj) {
C0739Nlq c0739Nlq = this.e;
String str2 = this.a;
EnumC17751zVK enumC17751zVK = EnumC17751zVK.ERROR;
c0739Nlq.a = enumC17751zVK;
return c0739Nlq.g.c(c0739Nlq.h, str2, enumC17751zVK, c0739Nlq.i, c0739Nlq.j, c0739Nlq.e);
}
{
this.e = this;
this.a = str;
}
}).startWith(AbstractC13163fSk.fromCallable(new Callable(this, str) { // from class: o.PQj
private C0739Nlq d;
private String e;
@Override // java.util.concurrent.Callable
public final Object call() {
C0739Nlq c0739Nlq = this.d;
String str2 = this.e;
c0739Nlq.a = EnumC17751zVK.LOADING;
c0739Nlq.h.b = null;
return c0739Nlq.g.c(c0739Nlq.h, str2, c0739Nlq.a, c0739Nlq.i, c0739Nlq.j, c0739Nlq.e);
}
{
this.d = this;
this.e = str;
}
}));
}
@Override // o.hKx
public final AbstractC13163fSk<C13245fUx> e(final String str) {
BNz bNz = this.f;
return bNz.c.getStaticTiles(new C15393gpJ(this.m)).map(new bXJ()).doOnNext(new fSQ(this) { // from class: o.wuH
private C0739Nlq d;
@Override // o.fSQ
public final void c(Object obj) {
C0739Nlq c0739Nlq = this.d;
Ben ben = (Ben) obj;
synchronized (c0739Nlq) {
c0739Nlq.j = EnumC17751zVK.SUCCESS;
c0739Nlq.h.f = ben.f;
}
}
{
this.d = this;
}
}).map(new fSS(this, str) { // from class: o.afa
private C0739Nlq b;
private String c;
@Override // o.fSS
public final Object a(Object obj) {
C0739Nlq c0739Nlq = this.b;
return c0739Nlq.g.c(c0739Nlq.h, this.c, c0739Nlq.a, c0739Nlq.i, c0739Nlq.j, c0739Nlq.e);
}
{
this.b = this;
this.c = str;
}
}).onErrorReturn(new fSS(this, str) { // from class: o.MdK
private String a;
private C0739Nlq b;
@Override // o.fSS
public final Object a(Object obj) {
C0739Nlq c0739Nlq = this.b;
String str2 = this.a;
EnumC17751zVK enumC17751zVK = EnumC17751zVK.ERROR;
c0739Nlq.j = enumC17751zVK;
return c0739Nlq.g.c(c0739Nlq.h, str2, c0739Nlq.a, c0739Nlq.i, enumC17751zVK, c0739Nlq.e);
}
{
this.b = this;
this.a = str;
}
}).startWith(AbstractC13163fSk.fromCallable(new Callable(this, str) { // from class: o.PgY
private String a;
private C0739Nlq b;
@Override // java.util.concurrent.Callable
public final Object call() {
C0739Nlq c0739Nlq = this.b;
String str2 = this.a;
c0739Nlq.j = EnumC17751zVK.LOADING;
if (c0739Nlq.h == null) {
c0739Nlq.h = new Ben();
}
c0739Nlq.h.f = null;
return c0739Nlq.g.c(c0739Nlq.h, str2, c0739Nlq.a, c0739Nlq.i, c0739Nlq.j, c0739Nlq.e);
}
{
this.b = this;
this.a = str;
}
}));
}
@Override // o.hKx
public final AbstractC13163fSk<List<uxC>> b(final String str) {
BNz bNz = this.f;
return bNz.c.getBankingServiceTiles(new C15393gpJ(this.m)).map(new fSS() { // from class: o.FoG
@Override // o.fSS
public final Object a(Object obj) {
SingleDataEntity singleDataEntity = (SingleDataEntity) obj;
if (singleDataEntity != null) {
return (Ben) singleDataEntity.getData();
}
return null;
}
}).flatMap(new fSS(this, str) { // from class: o.Smr
private String b;
private C0739Nlq d;
@Override // o.fSS
public final Object a(Object obj) {
C0739Nlq c0739Nlq = this.d;
return AbstractC13163fSk.just(c0739Nlq.g.c(((Ben) obj).a, this.b));
}
{
this.d = this;
this.b = str;
}
});
}
@Override // o.hKx
public final AbstractC13175fSw<FHk> b(C17576xuz c17576xuz) {
return new C13372fYk(new C13369fYh(new C13372fYk(this.f.c.getStaticTileList(c17576xuz), new fSS() { // from class: o.acO
@Override // o.fSS
public final Object a(Object obj) {
return (NeL) ((SingleDataEntity) obj).getData();
}
}), new fSQ(this) { // from class: o.iZu
private C0739Nlq a;
@Override // o.fSQ
public final void c(Object obj) {
C0739Nlq c0739Nlq = this.a;
NeL neL = (NeL) obj;
if (c0739Nlq.h == null) {
c0739Nlq.h = new Ben();
}
c0739Nlq.h.f = neL.a;
}
{
this.a = this;
}
}), new fSS(this) { // from class: o.QbL
private C0739Nlq a;
@Override // o.fSS
public final Object a(Object obj) {
NeL neL = (NeL) obj;
kQC kqc = this.a.c;
C14957gcv.e(neL, "");
List<QJg> b = kqc.d.b(neL.a);
C14957gcv.c(b, "");
return new FHk(b);
}
{
this.a = this;
}
});
}
@Override // o.hKx
public final AbstractC13175fSw<sre> a() {
return new C13372fYk(new C13369fYh(new C13372fYk(this.f.c.getETBCheckActiveCASA(new C17576xuz(this.m)), new fSS() { // from class: o.Nre
@Override // o.fSS
public final Object a(Object obj) {
return (C17143uJP) ((SingleDataEntity) obj).getData();
}
}), new fSQ(this) { // from class: o.JIV
private C0739Nlq c;
@Override // o.fSQ
public final void c(Object obj) {
C0739Nlq c0739Nlq = this.c;
C17143uJP c17143uJP = (C17143uJP) obj;
if (c0739Nlq.h == null) {
c0739Nlq.h = new Ben();
}
c0739Nlq.h.f = c17143uJP.e;
}
{
this.c = this;
}
}), new fSS(this) { // from class: o.DPT
private C0739Nlq a;
@Override // o.fSS
public final Object a(Object obj) {
C17143uJP c17143uJP = (C17143uJP) obj;
oUl oul = this.a.d;
C14957gcv.e(c17143uJP, "");
boolean z = c17143uJP.a;
List<QJg> b = oul.b.b(c17143uJP.e);
C14957gcv.c(b, "");
return new sre(z, b);
}
{
this.a = this;
}
});
}
@Override // o.hKx
public final List<QJg> d() {
Ben ben = this.h;
if (ben != null && ben.f != null) {
return this.k.b(this.h.f);
}
return new ArrayList();
}
}