212 lines
7.3 KiB
Java
212 lines
7.3 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.SharedPreferences;
|
||
|
import com.scb.phone.data.entity.transfer.SingleDataEntity;
|
||
|
import io.beid.beidk.definitions.LivenessStatus;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.List;
|
||
|
import java.util.Objects;
|
||
|
import o.PRA;
|
||
|
import org.threeten.bp.OffsetDateTime;
|
||
|
|
||
|
/* renamed from: o.aRt, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class C1913aRt implements InterfaceC16476ogf {
|
||
|
final FUU a;
|
||
|
final GXP b;
|
||
|
final C15915jZS c;
|
||
|
final Dhr d;
|
||
|
final TLT e;
|
||
|
private final Jrb f;
|
||
|
private final SharedPreferences g;
|
||
|
private final C16492onk h;
|
||
|
private final String j;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C1913aRt(C16492onk c16492onk, C15915jZS c15915jZS, FUU fuu, TLT tlt, Dhr dhr, GXP gxp, Jrb jrb, SharedPreferences sharedPreferences, String str) {
|
||
|
this.h = c16492onk;
|
||
|
this.c = c15915jZS;
|
||
|
this.a = fuu;
|
||
|
this.e = tlt;
|
||
|
this.d = dhr;
|
||
|
this.b = gxp;
|
||
|
this.f = jrb;
|
||
|
this.g = sharedPreferences;
|
||
|
this.j = str;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC16476ogf
|
||
|
public final AbstractC13163fSk<LSn> c() {
|
||
|
return c(false);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC16476ogf
|
||
|
public final AbstractC13163fSk<LSn> c(boolean z) {
|
||
|
List<? extends QBA> arrayList;
|
||
|
PTP d = d();
|
||
|
if (d.c != null && d.c.isEmpty()) {
|
||
|
return AbstractC13163fSk.just(new LSn(new ArrayList(), Double.valueOf(0.0d), false));
|
||
|
}
|
||
|
if (z && this.c.b != null) {
|
||
|
TLT tlt = this.e;
|
||
|
TxE txE = this.c.b;
|
||
|
FUU fuu = this.a;
|
||
|
C7968cyO c7968cyO = (C7968cyO) FUU.d(new Object[]{fuu}, 1479505950, -1479505941, System.identityHashCode(fuu));
|
||
|
if (c7968cyO == null) {
|
||
|
arrayList = new ArrayList<>();
|
||
|
} else {
|
||
|
arrayList = c7968cyO.f;
|
||
|
}
|
||
|
return AbstractC13163fSk.just(tlt.b(txE, arrayList));
|
||
|
}
|
||
|
C16492onk c16492onk = this.h;
|
||
|
PTP d2 = d();
|
||
|
C14957gcv.e(d2, "");
|
||
|
return c16492onk.d.getSummary(d2).flatMap(new fSS(this) { // from class: o.qDp
|
||
|
private C1913aRt a;
|
||
|
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj) {
|
||
|
List<? extends QBA> arrayList2;
|
||
|
C1913aRt c1913aRt = this.a;
|
||
|
TxE txE2 = (TxE) obj;
|
||
|
c1913aRt.c.b = txE2;
|
||
|
TLT tlt2 = c1913aRt.e;
|
||
|
FUU fuu2 = c1913aRt.a;
|
||
|
C7968cyO c7968cyO2 = (C7968cyO) FUU.d(new Object[]{fuu2}, 1479505950, -1479505941, System.identityHashCode(fuu2));
|
||
|
if (c7968cyO2 == null) {
|
||
|
arrayList2 = new ArrayList<>();
|
||
|
} else {
|
||
|
arrayList2 = c7968cyO2.f;
|
||
|
}
|
||
|
return AbstractC13163fSk.just(tlt2.b(txE2, arrayList2));
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = this;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
private PTP d() {
|
||
|
Iterable arrayList;
|
||
|
PTP a = PTP.a();
|
||
|
FUU fuu = this.a;
|
||
|
C7968cyO c7968cyO = (C7968cyO) FUU.d(new Object[]{fuu}, 1479505950, -1479505941, System.identityHashCode(fuu));
|
||
|
if (c7968cyO == null) {
|
||
|
arrayList = new ArrayList();
|
||
|
} else {
|
||
|
arrayList = c7968cyO.f;
|
||
|
}
|
||
|
YKU yku = new YKU(arrayList);
|
||
|
a.c = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw() { // from class: o.ifK
|
||
|
@Override // o.InterfaceC1244Ytw
|
||
|
public final Object d(Object obj) {
|
||
|
QBA qba = (QBA) obj;
|
||
|
izl b = izl.b();
|
||
|
b.c = qba.a;
|
||
|
b.b = qba.b.b;
|
||
|
return b;
|
||
|
}
|
||
|
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
|
||
|
a.d = this.j;
|
||
|
return a;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC16476ogf
|
||
|
public final AbstractC13163fSk<DpR> b(C12744fG c12744fG) {
|
||
|
C16492onk c16492onk = this.h;
|
||
|
C14957gcv.e(c12744fG, "");
|
||
|
return c16492onk.d.getPerformLoanPayment(c12744fG).flatMap(new fSS(this) { // from class: o.pnc
|
||
|
private C1913aRt c;
|
||
|
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj) {
|
||
|
GXP gxp = this.c.b;
|
||
|
C17367wFv c17367wFv = (C17367wFv) ((SingleDataEntity) obj).getData();
|
||
|
DpR dpR = new DpR((char) 0);
|
||
|
dpR.n = c17367wFv.e;
|
||
|
dpR.x = (OffsetDateTime) ZTC.e(new Object[]{c17367wFv.c, null}, 267499366, -267499366, (int) System.currentTimeMillis());
|
||
|
dpR.u = c17367wFv.d;
|
||
|
return AbstractC13163fSk.just(dpR);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = this;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC16476ogf
|
||
|
public final AbstractC13163fSk<wsN> a(C16619pkZ c16619pkZ) {
|
||
|
C16492onk c16492onk = this.h;
|
||
|
C14957gcv.e(c16619pkZ, "");
|
||
|
return c16492onk.d.verifyLoanPayment(c16619pkZ).map(new fSS() { // from class: o.dyc
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj) {
|
||
|
return (JrC) ((SingleDataEntity) obj).getData();
|
||
|
}
|
||
|
}).flatMap(new fSS(this) { // from class: o.giL
|
||
|
private C1913aRt e;
|
||
|
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj) {
|
||
|
return AbstractC13163fSk.just(this.e.d.d((JrC) obj));
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.e = this;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC16476ogf
|
||
|
public final AbstractC13175fSw<WGF> a(C1951aT c1951aT) {
|
||
|
DiG.a();
|
||
|
DiG.e(LivenessStatus.ERROR_MATCHING_FAIL);
|
||
|
DiG.e("3015");
|
||
|
C16492onk c16492onk = this.h;
|
||
|
C14957gcv.e(c1951aT, "");
|
||
|
AbstractC13175fSw<SingleDataEntity<BbW>> loanProductOfferRequest = c16492onk.d.getLoanProductOfferRequest(c1951aT);
|
||
|
final Jrb jrb = this.f;
|
||
|
Objects.requireNonNull(jrb);
|
||
|
return new C13325fXX(new C13372fYk(loanProductOfferRequest, new fSS(jrb) { // from class: o.eOn
|
||
|
private Jrb b;
|
||
|
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj) {
|
||
|
SingleDataEntity singleDataEntity = (SingleDataEntity) obj;
|
||
|
C14957gcv.e(singleDataEntity, "");
|
||
|
boolean b = C14957gcv.b((Object) singleDataEntity.getStatus().e, (Object) LivenessStatus.ERROR_MATCHING_FAIL);
|
||
|
OffsetDateTime offsetDateTime = (OffsetDateTime) ZTC.e(new Object[]{((BbW) singleDataEntity.getData()).a, null}, 267499366, -267499366, (int) System.currentTimeMillis());
|
||
|
String str = singleDataEntity.getStatus().c;
|
||
|
return new WGF(offsetDateTime, b, str != null ? str : "");
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = jrb;
|
||
|
}
|
||
|
}), new Cbf());
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC16476ogf
|
||
|
public final void a(String str) {
|
||
|
this.g.edit().putString("CACHE_FIELD_JURISTIC_ID_KEY", str).apply();
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC16476ogf
|
||
|
public final String a() {
|
||
|
return this.g.getString("CACHE_FIELD_JURISTIC_ID_KEY", "");
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC16476ogf
|
||
|
public final void e() {
|
||
|
this.g.edit().remove("CACHE_FIELD_JURISTIC_ID_KEY").apply();
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC16476ogf
|
||
|
public final void b() {
|
||
|
this.c.b = null;
|
||
|
}
|
||
|
}
|