224 lines
8.7 KiB
Java
224 lines
8.7 KiB
Java
|
package o;
|
||
|
|
||
|
import java.util.List;
|
||
|
import java.util.NoSuchElementException;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class SVc extends wRi {
|
||
|
private final CyA a;
|
||
|
private List<BOc> b;
|
||
|
public final Xky d;
|
||
|
final REU e;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public SVc(yRw yrw, yRw yrw2, CyA cyA, Xky xky, REU reu) {
|
||
|
super(yrw, yrw2);
|
||
|
this.a = cyA;
|
||
|
this.d = xky;
|
||
|
this.e = reu;
|
||
|
}
|
||
|
|
||
|
public final AbstractC13163fSk a() {
|
||
|
return e(this.a.b());
|
||
|
}
|
||
|
|
||
|
public final AbstractC13163fSk<C17643yaj> d() {
|
||
|
return e(this.a.a());
|
||
|
}
|
||
|
|
||
|
public final AbstractC13163fSk a(String str, List<BOc> list) {
|
||
|
this.b = list;
|
||
|
return e(this.a.c(str).flatMap(new fSS(this) { // from class: o.YNr
|
||
|
private SVc d;
|
||
|
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj) {
|
||
|
final SVc sVc = this.d;
|
||
|
return new C13377fYp(new C13372fYk(AbstractC13163fSk.just((C0814Pak) obj).map(new fSS() { // from class: o.LYb
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj2) {
|
||
|
return ((C0814Pak) obj2).d;
|
||
|
}
|
||
|
}).flatMapIterable(new fSS() { // from class: o.aIa
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj2) {
|
||
|
return (List) obj2;
|
||
|
}
|
||
|
}).flatMap(new fSS(sVc) { // from class: o.OsW
|
||
|
private SVc e;
|
||
|
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj2) {
|
||
|
SVc sVc2 = this.e;
|
||
|
NZv nZv = (NZv) obj2;
|
||
|
if ("PAYMENT".equalsIgnoreCase(nZv.j.b)) {
|
||
|
return sVc2.e.c(nZv.f8288o.c, null).onErrorResumeNext(new fSS() { // from class: o.DRJ
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj3) {
|
||
|
return AbstractC13163fSk.just(new C17671ymh());
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
return AbstractC13163fSk.just(new C17671ymh());
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.e = sVc;
|
||
|
}
|
||
|
}, new fSL(sVc) { // from class: o.zkP
|
||
|
private SVc c;
|
||
|
|
||
|
@Override // o.fSL
|
||
|
public final Object e(Object obj2, Object obj3) {
|
||
|
return SVc.b(this.c, (NZv) obj2, (C17671ymh) obj3);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = sVc;
|
||
|
}
|
||
|
}).concatMap(new fSS() { // from class: o.Gpd
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj2) {
|
||
|
return (AbstractC13163fSk) obj2;
|
||
|
}
|
||
|
}).toList(), new fSS() { // from class: o.qMX
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj2) {
|
||
|
return new C0814Pak((List) obj2);
|
||
|
}
|
||
|
}));
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = this;
|
||
|
}
|
||
|
}));
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ AbstractC13163fSk b(final SVc sVc, final NZv nZv, C17671ymh c17671ymh) {
|
||
|
int i;
|
||
|
String str;
|
||
|
String str2;
|
||
|
String str3;
|
||
|
String str4;
|
||
|
if ("PAYMENT".equalsIgnoreCase(nZv.j.b)) {
|
||
|
boolean equalsIgnoreCase = "th".equalsIgnoreCase(sVc.d.M());
|
||
|
if (c17671ymh == null || c17671ymh.c.isEmpty()) {
|
||
|
return AbstractC13163fSk.just(new NZv(nZv.n, nZv.g, nZv.h, nZv.k, nZv.j, nZv.l, nZv.a, nZv.c, nZv.m, nZv.d, nZv.b, nZv.f8288o, nZv.t, nZv.f8288o.c, null));
|
||
|
}
|
||
|
int i2 = nZv.n;
|
||
|
String str5 = nZv.g;
|
||
|
int i3 = nZv.h;
|
||
|
String str6 = nZv.k;
|
||
|
JZY jzy = nZv.j;
|
||
|
String str7 = nZv.l;
|
||
|
String str8 = nZv.a;
|
||
|
String str9 = nZv.c;
|
||
|
String str10 = nZv.m;
|
||
|
String str11 = nZv.d;
|
||
|
String str12 = nZv.b;
|
||
|
qTG qtg = nZv.f8288o;
|
||
|
Ucq ucq = nZv.t;
|
||
|
mKA mka = c17671ymh.c.get(0);
|
||
|
if (ucq != null) {
|
||
|
if (equalsIgnoreCase) {
|
||
|
str2 = mka.A;
|
||
|
} else {
|
||
|
str2 = mka.B;
|
||
|
}
|
||
|
ucq.R = str2;
|
||
|
if (equalsIgnoreCase) {
|
||
|
str3 = mka.C;
|
||
|
} else {
|
||
|
str3 = mka.D;
|
||
|
}
|
||
|
ucq.V = str3;
|
||
|
if (equalsIgnoreCase) {
|
||
|
str4 = mka.F;
|
||
|
} else {
|
||
|
str4 = mka.I;
|
||
|
}
|
||
|
ucq.S = str4;
|
||
|
}
|
||
|
if ("th".equalsIgnoreCase(sVc.d.M())) {
|
||
|
i = 0;
|
||
|
str = c17671ymh.c.get(0).j;
|
||
|
} else {
|
||
|
i = 0;
|
||
|
str = c17671ymh.c.get(0).g;
|
||
|
}
|
||
|
return AbstractC13163fSk.just(new NZv(i2, str5, i3, str6, jzy, str7, str8, str9, str10, str11, str12, qtg, ucq, str, c17671ymh.c.get(i).i));
|
||
|
}
|
||
|
if ("TOPUP".equalsIgnoreCase(nZv.j.b)) {
|
||
|
List<BOc> list = sVc.b;
|
||
|
if (list != null && !list.isEmpty()) {
|
||
|
return sVc.e(AbstractC13163fSk.just(sVc.b).flatMap(new fSS(sVc, nZv) { // from class: o.ZaY
|
||
|
private SVc a;
|
||
|
private NZv e;
|
||
|
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj) {
|
||
|
zEQ d;
|
||
|
final NZv nZv2 = this.e;
|
||
|
YKU yku = new YKU((List) obj);
|
||
|
YKU yku2 = new YKU(yku.a, new GEP(yku.b, new Jel(nZv2) { // from class: o.wkE
|
||
|
private NZv c;
|
||
|
|
||
|
@Override // o.Jel
|
||
|
public final boolean e(Object obj2) {
|
||
|
return ((BOc) obj2).c.equals(Integer.valueOf(this.c.f8288o.h));
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = nZv2;
|
||
|
}
|
||
|
}));
|
||
|
if (yku2.b.hasNext()) {
|
||
|
d = zEQ.a(yku2.b.next());
|
||
|
} else {
|
||
|
d = zEQ.d();
|
||
|
}
|
||
|
if (d.d == 0) {
|
||
|
return AbstractC13163fSk.just(new NZv(nZv2.n, nZv2.g, nZv2.h, nZv2.k, nZv2.j, nZv2.l, nZv2.a, nZv2.c, nZv2.m, nZv2.d, nZv2.b, nZv2.f8288o, nZv2.t, String.valueOf(nZv2.f8288o.h), ""));
|
||
|
}
|
||
|
int i4 = nZv2.n;
|
||
|
String str13 = nZv2.g;
|
||
|
int i5 = nZv2.h;
|
||
|
String str14 = nZv2.k;
|
||
|
JZY jzy2 = nZv2.j;
|
||
|
String str15 = nZv2.l;
|
||
|
String str16 = nZv2.a;
|
||
|
String str17 = nZv2.c;
|
||
|
String str18 = nZv2.m;
|
||
|
String str19 = nZv2.d;
|
||
|
String str20 = nZv2.b;
|
||
|
qTG qtg2 = nZv2.f8288o;
|
||
|
Ucq ucq2 = nZv2.t;
|
||
|
T t = d.d;
|
||
|
if (t == 0) {
|
||
|
throw new NoSuchElementException("No value present");
|
||
|
}
|
||
|
String str21 = ((BOc) t).e;
|
||
|
T t2 = d.d;
|
||
|
if (t2 != 0) {
|
||
|
return AbstractC13163fSk.just(new NZv(i4, str13, i5, str14, jzy2, str15, str16, str17, str18, str19, str20, qtg2, ucq2, str21, ((BOc) t2).a));
|
||
|
}
|
||
|
throw new NoSuchElementException("No value present");
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = sVc;
|
||
|
this.e = nZv;
|
||
|
}
|
||
|
}));
|
||
|
}
|
||
|
return AbstractC13163fSk.just(new NZv(nZv.n, nZv.g, nZv.h, nZv.k, nZv.j, nZv.l, nZv.a, nZv.c, nZv.m, nZv.d, nZv.b, nZv.f8288o, nZv.t, String.valueOf(nZv.f8288o.h), ""));
|
||
|
}
|
||
|
if ("TRANSFER".equalsIgnoreCase(nZv.j.b)) {
|
||
|
return AbstractC13163fSk.just(new NZv(nZv.n, nZv.g, nZv.h, nZv.k, nZv.j, nZv.l, nZv.a, nZv.c, nZv.m, nZv.d, nZv.b, nZv.f8288o, nZv.t, nZv.t.f, null));
|
||
|
}
|
||
|
return AbstractC13163fSk.just(new NZv(nZv.n, nZv.g, nZv.h, nZv.k, nZv.j, nZv.l, nZv.a, nZv.c, nZv.m, nZv.d, nZv.b, nZv.f8288o, nZv.t, nZv.t.C, null));
|
||
|
}
|
||
|
}
|