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

611 lines
20 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.text.TextUtils;
import com.scb.phone.data.entity.transfer.SingleDataEntity;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Objects;
import o.PRA;
import org.threeten.bp.OffsetDateTime;
import retrofit2.Response;
/* renamed from: o.Ayt, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C0186Ayt implements InterfaceC10882eRo {
private final String a;
final C11051eWv b;
final wYt c;
final C12395exR d;
final KTN e;
private final TRu f;
private final yHF g;
private final LEy h;
private final itA i;
private final KYd j;
private final AiP k;
private final EbP l;
private final pdD m;
private final C16512ovO n;
/* renamed from: o, reason: collision with root package name */
private final RzE f8103o;
private final String r;
@InterfaceC13391fZD
public C0186Ayt(yHF yhf, KTN ktn, String str, String str2, wYt wyt, LEy lEy, TRu tRu, C12395exR c12395exR, AiP aiP, C11051eWv c11051eWv, C16512ovO c16512ovO, EbP ebP, KYd kYd, itA ita, pdD pdd, RzE rzE) {
this.g = yhf;
this.e = ktn;
this.c = wyt;
this.h = lEy;
this.f = tRu;
this.d = c12395exR;
this.k = aiP;
this.b = c11051eWv;
this.n = c16512ovO;
this.l = ebP;
this.a = str;
this.r = str2;
this.j = kYd;
this.i = ita;
this.m = pdd;
this.f8103o = rzE;
}
@Override // o.InterfaceC10882eRo
public final AbstractC13163fSk<guD> e() {
yHF yhf = this.g;
return e(((AbstractC13163fSk) yHF.e(new Object[]{yhf}, -737662580, 737662581, System.identityHashCode(yhf))).map(new fSS(this) { // from class: o.FsI
private C0186Ayt c;
@Override // o.fSS
public final Object a(Object obj) {
C0186Ayt c0186Ayt = this.c;
wYt wyt = c0186Ayt.c;
return wYt.a((Response) obj, c0186Ayt.e);
}
{
this.c = this;
}
}));
}
@Override // o.InterfaceC10882eRo
public final AbstractC13163fSk<XJm> j() {
yHF yhf = this.g;
AbstractC13163fSk map = ((AbstractC13163fSk) yHF.e(new Object[]{yhf}, -321194785, 321194785, System.identityHashCode(yhf))).map(new fSS() { // from class: o.uTt
@Override // o.fSS
public final Object a(Object obj) {
return (GSH) ((SingleDataEntity) obj).getData();
}
});
final TRu tRu = this.f;
Objects.requireNonNull(tRu);
return map.map(new fSS(tRu) { // from class: o.cpT
private TRu c;
@Override // o.fSS
public final Object a(Object obj) {
TRu tRu2 = this.c;
YKU yku = new YKU(((GSH) obj).a);
List<rWa> list = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(tRu2) { // from class: o.TnF
private TRu b;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
return TRu.a((C17756zWx) obj2);
}
{
this.b = tRu2;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
XJm xJm = new XJm();
xJm.d = list;
return xJm;
}
{
this.c = tRu;
}
});
}
@Override // o.InterfaceC10882eRo
public final AbstractC13163fSk<guD> e(C7426co c7426co) {
AbstractC13163fSk<R> map = this.g.b(c7426co).map(new Lne());
wYt wyt = this.c;
Objects.requireNonNull(wyt);
return map.map(new Oys(wyt));
}
@Override // o.InterfaceC10882eRo
public final AbstractC13163fSk<List<C16359nhm>> c() {
return this.g.b().map(new fSS() { // from class: o.xaI
@Override // o.fSS
public final Object a(Object obj) {
return (Adi) ((SingleDataEntity) obj).getData();
}
}).map(new fSS(this) { // from class: o.eKh
private C0186Ayt a;
@Override // o.fSS
public final Object a(Object obj) {
C0186Ayt c0186Ayt = this.a;
YKU yku = new YKU(((Adi) obj).a);
C12395exR c12395exR = c0186Ayt.d;
Objects.requireNonNull(c12395exR);
return (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(c12395exR) { // from class: o.UHs
private C12395exR b;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
return C12395exR.a((gNs) obj2);
}
{
this.b = c12395exR;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
}
{
this.a = this;
}
});
}
@Override // o.InterfaceC10882eRo
public final AbstractC13163fSk<C16359nhm> d(String str) {
AbstractC13163fSk<R> map = this.g.a(str).map(new fSS() { // from class: o.fWY
@Override // o.fSS
public final Object a(Object obj) {
return (gNs) ((SingleDataEntity) obj).getData();
}
});
final C12395exR c12395exR = this.d;
Objects.requireNonNull(c12395exR);
return map.map(new fSS(c12395exR) { // from class: o.ZrC
private C12395exR e;
@Override // o.fSS
public final Object a(Object obj) {
return C12395exR.a((gNs) obj);
}
{
this.e = c12395exR;
}
});
}
@Override // o.InterfaceC10882eRo
public final AbstractC13163fSk<BJi> e(String str) {
AbstractC13163fSk<R> map = this.g.e(str).map(new fSS() { // from class: o.VIU
@Override // o.fSS
public final Object a(Object obj) {
return (C17341vtT) ((SingleDataEntity) obj).getData();
}
});
final AiP aiP = this.k;
Objects.requireNonNull(aiP);
return map.map(new fSS(aiP) { // from class: o.leN
private AiP b;
@Override // o.fSS
public final Object a(Object obj) {
return AiP.b((C17341vtT) obj);
}
{
this.b = aiP;
}
});
}
@Override // o.InterfaceC10882eRo
public final AbstractC13163fSk<guD> j(C7426co c7426co) {
return e(this.g.i(c7426co));
}
private AbstractC13163fSk<guD> e(AbstractC13163fSk<SingleDataEntity<C9063dce>> abstractC13163fSk) {
AbstractC13163fSk<R> map = abstractC13163fSk.map(new Lne());
final C11051eWv c11051eWv = this.b;
Objects.requireNonNull(c11051eWv);
AbstractC13163fSk doOnNext = map.doOnNext(new fSQ(c11051eWv) { // from class: o.kKj
private C11051eWv b;
@Override // o.fSQ
public final void c(Object obj) {
this.b.e((C9063dce) obj);
}
{
this.b = c11051eWv;
}
});
wYt wyt = this.c;
Objects.requireNonNull(wyt);
return doOnNext.map(new Oys(wyt));
}
@Override // o.InterfaceC10882eRo
public final AbstractC13163fSk<List<Xfo>> a(String str) {
return this.g.b(str).map(new fSS() { // from class: o.uGz
@Override // o.fSS
public final Object a(Object obj) {
return (sCP) ((SingleDataEntity) obj).getData();
}
}).map(new fSS(this) { // from class: o.VKe
private C0186Ayt b;
@Override // o.fSS
public final Object a(Object obj) {
final C0186Ayt c0186Ayt = this.b;
c0186Ayt.c.d();
return C12677fEJ.b(((sCP) obj).b, new InterfaceC1244Ytw(c0186Ayt) { // from class: o.wBa
private C0186Ayt d;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
this.d.c.d();
return C12677fEJ.c((OUN) obj2);
}
{
this.d = c0186Ayt;
}
});
}
{
this.b = this;
}
});
}
@Override // o.InterfaceC10882eRo
public final AbstractC13163fSk<Pag> b(C7847cw c7847cw) {
AbstractC13163fSk<C16562pOe> d = this.g.d(c7847cw);
final wYt wyt = this.c;
Objects.requireNonNull(wyt);
return d.map(new fSS(wyt) { // from class: o.pqi
private wYt d;
@Override // o.fSS
public final Object a(Object obj) {
return this.d.d((C16562pOe) obj);
}
{
this.d = wyt;
}
});
}
@Override // o.InterfaceC10882eRo
public final AbstractC13163fSk<List<YFD>> e(String str, String str2, String str3) {
AbstractC13163fSk<C14168foB> b = this.g.b(str, str2, str3);
final C16512ovO c16512ovO = this.n;
Objects.requireNonNull(c16512ovO);
return b.map(new fSS(c16512ovO) { // from class: o.ILQ
private C16512ovO a;
@Override // o.fSS
public final Object a(Object obj) {
final C16512ovO c16512ovO2 = this.a;
C14168foB c14168foB = (C14168foB) obj;
if (c14168foB == null || c14168foB.c == null) {
return null;
}
YKU yku = new YKU(c14168foB.c);
YKU yku2 = new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(c16512ovO2) { // from class: o.jHD
private C16512ovO e;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
return C16512ovO.c((CXO) obj2);
}
{
this.e = c16512ovO2;
}
}));
return (List) new YKU(yku2.a, new C17745zRk(yku2.b, xNZ.a(new InterfaceC1244Ytw() { // from class: o.zSv
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
int i;
i = ((YFD) obj2).m;
return Integer.valueOf(i);
}
}))).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
}
{
this.a = c16512ovO;
}
});
}
@Override // o.InterfaceC10882eRo
public final AbstractC13163fSk<guD> f(C7426co c7426co) {
return e(this.g.j(c7426co));
}
@Override // o.InterfaceC10882eRo
public final AbstractC13163fSk<guD> b(C7426co c7426co) {
yHF yhf = this.g;
return e((AbstractC13163fSk<SingleDataEntity<C9063dce>>) yHF.e(new Object[]{yhf, c7426co}, -966582005, 966582008, System.identityHashCode(yhf)));
}
@Override // o.InterfaceC10882eRo
public final AbstractC13163fSk<guD> d(C7426co c7426co) {
return e(this.g.c(c7426co));
}
@Override // o.InterfaceC10882eRo
public final AbstractC13163fSk<Zch> c(String str, String str2) {
AbstractC13163fSk<Response<SingleDataEntity<PLz>>> e = this.g.e(str, str2, new MID(this.r));
final LEy lEy = this.h;
Objects.requireNonNull(lEy);
return e.map(new fSS(lEy) { // from class: o.qxM
private LEy c;
@Override // o.fSS
public final Object a(Object obj) {
Response response = (Response) obj;
String str3 = response.headers().get("Api-Auth");
SingleDataEntity singleDataEntity = (SingleDataEntity) response.body();
PLz pLz = (PLz) singleDataEntity.getData();
if (!((iJI) ZTC.e(new Object[]{singleDataEntity}, 321450472, -321450471, (int) System.currentTimeMillis())).e.equals(BET.SUCCESS.status)) {
DiG.a(singleDataEntity);
}
if (str3 == null) {
str3 = "";
}
String str4 = str3;
if (pLz == null) {
return new Zch();
}
return new Zch(pLz.d, pLz.a, pLz.b, (OffsetDateTime) ZTC.e(new Object[]{pLz.g, null}, 267499366, -267499366, (int) System.currentTimeMillis()), str4, pLz.i, pLz.e, pLz.c);
}
{
this.c = lEy;
}
}).doOnNext(new fSQ(this) { // from class: o.RzL
private C0186Ayt d;
@Override // o.fSQ
public final void c(Object obj) {
KTN ktn = this.d.e;
String str3 = ((Zch) obj).e;
if (TextUtils.isEmpty(str3)) {
return;
}
ktn.c = str3;
}
{
this.d = this;
}
});
}
@Override // o.InterfaceC10882eRo
public final AbstractC13163fSk<JOo> b(C c) {
if (c != C.HML) {
AbstractC13163fSk<C16562pOe> e = this.g.e();
final KYd kYd = this.j;
Objects.requireNonNull(kYd);
return e.map(new fSS(kYd) { // from class: o.nDj
private KYd e;
@Override // o.fSS
public final Object a(Object obj) {
return KYd.c((C16562pOe) obj);
}
{
this.e = kYd;
}
});
}
pdD pdd = this.m;
String str = this.f8103o.i;
iLA ila = new iLA(this.f8103o.a, null);
DiG.e("3024");
DiG.e("3025");
AbstractC13163fSk<C16562pOe> doFinally = pdd.a.completeSubmission(str, ila).doFinally(new Cbf());
final KYd kYd2 = this.j;
Objects.requireNonNull(kYd2);
return doFinally.map(new fSS(kYd2) { // from class: o.Cez
private KYd a;
@Override // o.fSS
public final Object a(Object obj) {
return KYd.b((C16562pOe) obj);
}
{
this.a = kYd2;
}
});
}
@Override // o.InterfaceC10882eRo
public final cEC h() {
StringBuilder sb = new StringBuilder();
sb.append(this.a);
sb.append("beid/");
return new cEC(sb.toString(), this.e.c, this.e.e, "sha256/980Ionqp3wkYtN9SZVgMzuWQzJta1nfxNPwTem1X0uc=", "");
}
@Override // o.InterfaceC10882eRo
public final AbstractC13163fSk<List<C7253ckm>> i() {
AbstractC13163fSk<R> map = this.g.a().map(new LmM());
final EbP ebP = this.l;
Objects.requireNonNull(ebP);
return map.map(new fSS(ebP) { // from class: o.MZC
private EbP b;
@Override // o.fSS
public final Object a(Object obj) {
final EbP ebP2 = this.b;
YKU yku = new YKU((List) obj);
return (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(ebP2) { // from class: o.PQE
private EbP b;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
return EbP.c((C0364FKu) obj2);
}
{
this.b = ebP2;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
}
{
this.b = ebP;
}
});
}
@Override // o.InterfaceC10882eRo
public final String d() {
return this.b.e.getString("com.scb.phone.pref.key.EKYC_REGISTRATION_METHOD", "");
}
@Override // o.InterfaceC10882eRo
public final void b(String str) {
this.b.e.edit().putString("com.scb.phone.pref.key.EKYC_REGISTRATION_METHOD", str).apply();
}
@Override // o.InterfaceC10882eRo
public final void c(String str) {
C11051eWv c11051eWv = this.b;
if (c11051eWv.c == null) {
c11051eWv.c = new C9063dce();
}
c11051eWv.c.w = str;
}
@Override // o.InterfaceC10882eRo
public final AbstractC13175fSw<KJM> b(C5386bs c5386bs) {
C13372fYk c13372fYk = new C13372fYk(this.g.e(c5386bs), new fSS() { // from class: o.qeF
@Override // o.fSS
public final Object a(Object obj) {
return (TRd) ((SingleDataEntity) obj).getData();
}
});
final itA ita = this.i;
Objects.requireNonNull(ita);
return new C13372fYk(c13372fYk, new fSS(ita) { // from class: o.sCL
private itA e;
@Override // o.fSS
public final Object a(Object obj) {
TRd tRd = (TRd) obj;
C14957gcv.e(tRd, "");
List<C16749qsX> list = tRd.c;
C14957gcv.e(list, "");
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
for (C16749qsX c16749qsX : list) {
C14957gcv.e(c16749qsX, "");
String str = c16749qsX.i;
String str2 = c16749qsX.e;
String str3 = c16749qsX.g;
String str4 = c16749qsX.c;
String str5 = c16749qsX.a;
String str6 = c16749qsX.d;
String str7 = c16749qsX.b;
arrayList.add(new Fip(str, str2, str3, str4, str5, str6, str7 == null ? "" : str7));
}
return new KJM(arrayList, tRd.d);
}
{
this.e = ita;
}
});
}
@Override // o.InterfaceC10882eRo
public final void b() {
this.b.c = null;
}
@Override // o.InterfaceC10882eRo
public final guD a() {
return this.c.c(this.b.c);
}
@Override // o.InterfaceC10882eRo
public final String g() {
return this.b.d;
}
@Override // o.InterfaceC10882eRo
public final AbstractC13163fSk<guD> b(C7636cs c7636cs) {
c7636cs.a = this.r;
return this.g.e(c7636cs).map(new Lne()).map(new fSS(this) { // from class: o.KgT
private C0186Ayt a;
@Override // o.fSS
public final Object a(Object obj) {
C0186Ayt c0186Ayt = this.a;
C9063dce c9063dce = (C9063dce) obj;
C9063dce c9063dce2 = c0186Ayt.b.c;
if (c9063dce2 != null) {
c9063dce2.w = c9063dce.w;
c9063dce2.f8884o = c9063dce.f8884o;
c0186Ayt.b.e(c9063dce2);
}
return c0186Ayt.c.c(c9063dce);
}
{
this.a = this;
}
});
}
@Override // o.QpH
public final void f() {
this.b.c = null;
}
@Override // o.InterfaceC10882eRo
public final void l() {
C11051eWv c11051eWv = this.b;
C9063dce c9063dce = new C9063dce();
c9063dce.v = "RP_INITIAL";
c11051eWv.c = c9063dce;
}
@Override // o.InterfaceC10882eRo
public final void j(String str) {
this.b.d = str;
}
@Override // o.InterfaceC10882eRo
public final AbstractC13175fSw<guD> a(C7426co c7426co) {
yHF yhf = this.g;
c7426co.n = this.r;
AbstractC13163fSk map = ((AbstractC13163fSk) yHF.e(new Object[]{yhf, c7426co}, 1628460254, -1628460252, System.identityHashCode(yhf))).map(new Lne());
wYt wyt = this.c;
Objects.requireNonNull(wyt);
return AbstractC13175fSw.e(map.map(new Oys(wyt)));
}
@Override // o.InterfaceC10882eRo
public final AbstractC13163fSk<guD> c(C7426co c7426co) {
yHF yhf = this.g;
c7426co.n = this.r;
return e(yhf.d(c7426co));
}
}