244 lines
7.8 KiB
Java
244 lines
7.8 KiB
Java
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.List;
|
|
import java.util.Objects;
|
|
import o.Ffz;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class CSA implements Omg {
|
|
private final xVo a;
|
|
private final VNo b;
|
|
final wXA c;
|
|
private final iTV d;
|
|
private final String e;
|
|
private final Yle f;
|
|
private final Ffz g;
|
|
private final Gkz h;
|
|
private final Muw i;
|
|
private final Ncj j;
|
|
|
|
@InterfaceC13391fZD
|
|
public CSA(Ncj ncj, xVo xvo, Yle yle, Muw muw, iTV itv, wXA wxa, VNo vNo, Ffz ffz, Gkz gkz, String str) {
|
|
this.a = xvo;
|
|
this.j = ncj;
|
|
this.f = yle;
|
|
this.i = muw;
|
|
this.d = itv;
|
|
this.c = wxa;
|
|
this.b = vNo;
|
|
this.g = ffz;
|
|
this.h = gkz;
|
|
this.e = str;
|
|
}
|
|
|
|
@Override // o.Omg
|
|
public final AbstractC13163fSk<List<BOc>> e() {
|
|
AbstractC13163fSk c13377fYp;
|
|
AbstractC13163fSk filter = this.f.b.getBillers().map(new fSS() { // from class: o.ZdU
|
|
@Override // o.fSS
|
|
public final Object a(Object obj) {
|
|
return ((eDL) obj).d;
|
|
}
|
|
}).flatMapIterable(new fSS() { // from class: o.IrZ
|
|
@Override // o.fSS
|
|
public final Object a(Object obj) {
|
|
return (List) obj;
|
|
}
|
|
}).flatMap(new fSS() { // from class: o.OjI
|
|
@Override // o.fSS
|
|
public final Object a(Object obj) {
|
|
return AbstractC13163fSk.fromArray((ApB) obj);
|
|
}
|
|
}).filter(new InterfaceC13193fTg() { // from class: o.ZCx
|
|
@Override // o.InterfaceC13193fTg
|
|
public final boolean a(Object obj) {
|
|
return ((ApB) obj).b();
|
|
}
|
|
});
|
|
final Muw muw = this.i;
|
|
Objects.requireNonNull(muw);
|
|
fSD list = filter.map(new fSS(muw) { // from class: o.lCB
|
|
private Muw c;
|
|
|
|
@Override // o.fSS
|
|
public final Object a(Object obj) {
|
|
return Muw.e((ApB) obj);
|
|
}
|
|
|
|
{
|
|
this.c = muw;
|
|
}
|
|
}).toList();
|
|
if (list instanceof InterfaceC13204fTr) {
|
|
c13377fYp = ((InterfaceC13204fTr) list).b();
|
|
} else {
|
|
c13377fYp = new C13377fYp(list);
|
|
}
|
|
final Ncj ncj = this.j;
|
|
Objects.requireNonNull(ncj);
|
|
return c13377fYp.doOnNext(new fSQ(ncj) { // from class: o.RtF
|
|
private Ncj e;
|
|
|
|
@Override // o.fSQ
|
|
public final void c(Object obj) {
|
|
this.e.e = (List) obj;
|
|
}
|
|
|
|
{
|
|
this.e = ncj;
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // o.Omg
|
|
public final AbstractC13163fSk<List<Integer>> b(String str) {
|
|
return this.f.b.getBillerDenomination(str).flatMap(new fSS() { // from class: o.TSV
|
|
@Override // o.fSS
|
|
public final Object a(Object obj) {
|
|
return AbstractC13163fSk.just(((C3501ayj) ((SingleDataEntity) obj).getData()).a);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // o.Omg
|
|
public final AbstractC13163fSk<C16876rxN> d(String str) {
|
|
return this.f.b.getBillerRange(str).flatMap(new fSS(this) { // from class: o.rKP
|
|
private CSA b;
|
|
|
|
@Override // o.fSS
|
|
public final Object a(Object obj) {
|
|
wXA wxa = this.b.c;
|
|
return AbstractC13163fSk.just(wXA.b((C7508cpe) ((SingleDataEntity) obj).getData()));
|
|
}
|
|
|
|
{
|
|
this.b = this;
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // o.Heh
|
|
public final C1019Twi n() {
|
|
xVo xvo = this.a;
|
|
C1019Twi c1019Twi = xvo.e;
|
|
if (c1019Twi != null && "TOPUP".equals(c1019Twi.t)) {
|
|
return xvo.e;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
@Override // o.Omg
|
|
public final AbstractC13163fSk<C17434wjF> a(Integer num) {
|
|
AbstractC13163fSk<SingleDataEntity<Plj>> history = this.f.b.getHistory(num);
|
|
final Ffz ffz = this.g;
|
|
Objects.requireNonNull(ffz);
|
|
return history.map(new fSS(ffz) { // from class: o.Zrc
|
|
private Ffz e;
|
|
|
|
@Override // o.fSS
|
|
public final Object a(Object obj) {
|
|
SingleDataEntity singleDataEntity = (SingleDataEntity) obj;
|
|
C14957gcv.e(singleDataEntity, "");
|
|
int i = ((Plj) singleDataEntity.getData()).b;
|
|
String str = ((Plj) singleDataEntity.getData()).a;
|
|
int i2 = ((Plj) singleDataEntity.getData()).d;
|
|
boolean b = C14957gcv.b((Object) ((Plj) singleDataEntity.getData()).e, (Object) "Y");
|
|
List<QtC> list = ((Plj) singleDataEntity.getData()).c;
|
|
C14957gcv.e(list, "");
|
|
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
|
|
for (QtC qtC : list) {
|
|
int i3 = qtC.h;
|
|
String str2 = qtC.j;
|
|
String str3 = qtC.e;
|
|
String str4 = qtC.d;
|
|
String str5 = qtC.f;
|
|
boolean b2 = C14957gcv.b((Object) qtC.a, (Object) "Y");
|
|
boolean b3 = C14957gcv.b((Object) qtC.b, (Object) "Y");
|
|
qZi qzi = qtC.c;
|
|
arrayList.add(new Csf(Integer.valueOf(i3), str4, str5, str2, null, null, null, null, str3, b3, b2, qzi == null ? null : new Eiv(qzi.d, qzi.c), null, null, qtC.i, 12528));
|
|
}
|
|
return new C17434wjF(i, b, str, Integer.valueOf(i2), C14881gav.a((Iterable) arrayList, (Comparator) new Ffz.HBt()));
|
|
}
|
|
|
|
{
|
|
this.e = ffz;
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // o.Omg
|
|
public final AbstractC13163fSk<Ein> a(C12949fM c12949fM) {
|
|
AbstractC13163fSk<SingleDataEntity<KLT>> repeat = this.f.b.getRepeat(c12949fM);
|
|
final Gkz gkz = this.h;
|
|
Objects.requireNonNull(gkz);
|
|
return repeat.map(new fSS(gkz) { // from class: o.ZKk
|
|
private Gkz a;
|
|
|
|
@Override // o.fSS
|
|
public final Object a(Object obj) {
|
|
return Gkz.d((SingleDataEntity<KLT>) obj);
|
|
}
|
|
|
|
{
|
|
this.a = gkz;
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // o.Omg
|
|
public final AbstractC13163fSk<CWS> a(C13080fQ c13080fQ) {
|
|
c13080fQ.l = this.e;
|
|
AbstractC13163fSk<SingleDataEntity<NXc>> additionalInfo = this.f.b.getAdditionalInfo(c13080fQ.b, c13080fQ);
|
|
final iTV itv = this.d;
|
|
Objects.requireNonNull(itv);
|
|
return additionalInfo.map(new fSS(itv) { // from class: o.saQ
|
|
private iTV a;
|
|
|
|
@Override // o.fSS
|
|
public final Object a(Object obj) {
|
|
return iTV.d((SingleDataEntity<NXc>) obj);
|
|
}
|
|
|
|
{
|
|
this.a = itv;
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // o.Omg
|
|
public final List<BOc> b() {
|
|
return this.j.e;
|
|
}
|
|
|
|
@Override // o.Omg
|
|
public final AbstractC13163fSk<DpR> c(C13248fV c13248fV) {
|
|
Yle yle = this.f;
|
|
DiG.e("8101");
|
|
DiG.e("8102");
|
|
AbstractC13163fSk<SingleDataEntity<sDQ>> doFinally = yle.b.getPerformTopUp(c13248fV).doFinally(new Cbf());
|
|
VNo vNo = this.b;
|
|
Objects.requireNonNull(vNo);
|
|
return doFinally.map(new uzb(vNo));
|
|
}
|
|
|
|
@Override // o.Omg
|
|
public final AbstractC13163fSk<DpR> a(C13248fV c13248fV) {
|
|
Yle yle = this.f;
|
|
DiG.e("8101");
|
|
DiG.e("8102");
|
|
AbstractC13163fSk<SingleDataEntity<sDQ>> doFinally = yle.b.getPerformTopUpWithReferer(c13248fV).doFinally(new Cbf());
|
|
VNo vNo = this.b;
|
|
Objects.requireNonNull(vNo);
|
|
return doFinally.map(new uzb(vNo));
|
|
}
|
|
|
|
@Override // o.Omg
|
|
public final void c() {
|
|
this.j.e = null;
|
|
}
|
|
}
|