484 lines
17 KiB
Java
484 lines
17 KiB
Java
package o;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.Collection;
|
|
import java.util.LinkedHashMap;
|
|
import java.util.LinkedList;
|
|
import java.util.List;
|
|
import o.AbstractC5071bmC;
|
|
import o.C0690Mh;
|
|
import o.Cae;
|
|
import o.GJE;
|
|
import o.InterfaceC9263dgT;
|
|
import o.NF;
|
|
import o.ZI;
|
|
import o.wRi;
|
|
|
|
/* renamed from: o.bqK, reason: case insensitive filesystem */
|
|
/* loaded from: classes4.dex */
|
|
public class C5291bqK<T extends InterfaceC9263dgT> extends AbstractC5071bmC<T> {
|
|
private boolean t;
|
|
|
|
protected SVt d() {
|
|
return null;
|
|
}
|
|
|
|
@InterfaceC13391fZD
|
|
public C5291bqK(C16903sI c16903sI, mZh mzh, ZUb zUb, zhU zhu, C17020tL c17020tL, zxA zxa, JaU jaU, lUI lui, jVg jvg, yVa yva, C15689hlW c15689hlW) {
|
|
super(c16903sI, mzh, zUb, zhu, c17020tL, zxa, jaU, lui, jvg, yva, c15689hlW);
|
|
this.t = false;
|
|
this.m = new LinkedList(Arrays.asList(AbstractC5071bmC.HBt.FIRST_NAME, AbstractC5071bmC.HBt.LAST_NAME, AbstractC5071bmC.HBt.MOBILE_NUMBER, AbstractC5071bmC.HBt.MAILING_ADDRESS, AbstractC5071bmC.HBt.EMAIL, AbstractC5071bmC.HBt.INCOMING, AbstractC5071bmC.HBt.MARITAL_STATUS, AbstractC5071bmC.HBt.EDUCATION_LEVEL, AbstractC5071bmC.HBt.RESIDENCE_TYPE, AbstractC5071bmC.HBt.EXPIRY_DATE, AbstractC5071bmC.HBt.LASER_ID));
|
|
}
|
|
|
|
public static /* synthetic */ InterfaceC13169fSq e(C5291bqK c5291bqK, String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, String str10, String str11, GJE gje) {
|
|
zxA zxa = c5291bqK.n;
|
|
boolean z = c5291bqK.t;
|
|
String str12 = !z ? null : str2;
|
|
String str13 = !z ? null : str3;
|
|
String v = C6583cXR.v(str4);
|
|
String e = C15602gz.e(C6583cXR.c(str6).doubleValue());
|
|
C0306Dtd b = b(gje);
|
|
C0722NYw c0722NYw = new C0722NYw(c(c5291bqK.l, str7), null);
|
|
C0722NYw c0722NYw2 = new C0722NYw(c(c5291bqK.f8577o, str8), null);
|
|
C0722NYw c0722NYw3 = new C0722NYw(c(c5291bqK.d, str9), null);
|
|
C17020tL c17020tL = c5291bqK.g;
|
|
return zxa.d(new Tmr(str, new C0585KHe(str12, str13, v, str5, e, b, c0722NYw, c0722NYw2, c0722NYw3, new YAw(C17020tL.k(str10), str11), c5291bqK.d())));
|
|
}
|
|
|
|
public static /* synthetic */ NG b(C5291bqK c5291bqK, List list, List list2, List list3, Cae cae) {
|
|
String str;
|
|
boolean z;
|
|
String str2;
|
|
NF.IeS ieS;
|
|
Boolean bool;
|
|
List<String> list4;
|
|
String b;
|
|
C17020tL c17020tL = c5291bqK.g;
|
|
C14957gcv.e(list, "");
|
|
C14957gcv.e(list2, "");
|
|
C14957gcv.e(list3, "");
|
|
C14957gcv.e(cae, "");
|
|
C14957gcv.e(cae, "");
|
|
String str3 = cae.m;
|
|
String str4 = cae.q;
|
|
String str5 = cae.t;
|
|
String str6 = (String) C16157lj.c(new Object[]{cae.j, false}, -1490730794, 1490730800, (int) System.currentTimeMillis());
|
|
C14957gcv.c((Object) str6, "");
|
|
String str7 = cae.i;
|
|
String str8 = cae.i;
|
|
boolean z2 = str8 == null || str8.length() == 0;
|
|
GJE gje = cae.e;
|
|
String str9 = (gje == null || (list4 = gje.e) == null || (b = C14881gav.b(list4, "\n", null, null, 0, null, null, 62)) == null) ? "" : b;
|
|
Double d = cae.g;
|
|
String b2 = d != null ? C6583cXR.b(d.doubleValue()) : null;
|
|
String str10 = b2 == null ? "" : b2;
|
|
String VL_ = cXG.VL_(c17020tL.e, "dd/MM/yyyy", cae.d);
|
|
String str11 = cae.a;
|
|
boolean z3 = cae.f8123o;
|
|
Cae.RVV rvv = cae.n;
|
|
if (rvv != null) {
|
|
z = z3;
|
|
String str12 = rvv.b;
|
|
str2 = str11;
|
|
String str13 = rvv.d;
|
|
String str14 = rvv.a;
|
|
String str15 = rvv.c;
|
|
String str16 = rvv.b;
|
|
if (str16 != null) {
|
|
str = "";
|
|
bool = Boolean.valueOf(gdZ.a(str16, "THAI", true));
|
|
} else {
|
|
str = "";
|
|
bool = null;
|
|
}
|
|
ieS = new NF.IeS(str12, bool, str14, str13, str15);
|
|
} else {
|
|
str = "";
|
|
z = z3;
|
|
str2 = str11;
|
|
ieS = null;
|
|
}
|
|
NF nf = new NF(str3, str4, str5, str6, str7, z2, str9, str10, VL_, str2, z, ieS);
|
|
List<C0722NYw> list5 = list;
|
|
String str17 = str;
|
|
C14957gcv.e(list5, str17);
|
|
int a = C14856gaP.a(list5 instanceof Collection ? list5.size() : 10);
|
|
if (a < 16) {
|
|
a = 16;
|
|
}
|
|
LinkedHashMap linkedHashMap = new LinkedHashMap(a);
|
|
for (C0722NYw c0722NYw : list5) {
|
|
String str18 = c0722NYw.c;
|
|
C14957gcv.e(str18);
|
|
String str19 = c0722NYw.a;
|
|
C14957gcv.e(str19);
|
|
linkedHashMap.put(str18, str19);
|
|
}
|
|
C0722NYw c0722NYw2 = cae.h;
|
|
NE ne = new NE(linkedHashMap, c0722NYw2 != null ? c0722NYw2.c : null);
|
|
List<C0722NYw> list6 = list2;
|
|
C14957gcv.e(list6, str17);
|
|
int a2 = C14856gaP.a(list6 instanceof Collection ? list6.size() : 10);
|
|
if (a2 < 16) {
|
|
a2 = 16;
|
|
}
|
|
LinkedHashMap linkedHashMap2 = new LinkedHashMap(a2);
|
|
for (C0722NYw c0722NYw3 : list6) {
|
|
String str20 = c0722NYw3.c;
|
|
C14957gcv.e(str20);
|
|
String str21 = c0722NYw3.a;
|
|
C14957gcv.e(str21);
|
|
linkedHashMap2.put(str20, str21);
|
|
}
|
|
C0722NYw c0722NYw4 = cae.l;
|
|
NE ne2 = new NE(linkedHashMap2, c0722NYw4 != null ? c0722NYw4.c : null);
|
|
List<C0722NYw> list7 = list3;
|
|
C14957gcv.e(list7, str17);
|
|
int a3 = C14856gaP.a(list7 instanceof Collection ? list7.size() : 10);
|
|
LinkedHashMap linkedHashMap3 = new LinkedHashMap(a3 >= 16 ? a3 : 16);
|
|
for (C0722NYw c0722NYw5 : list7) {
|
|
String str22 = c0722NYw5.c;
|
|
C14957gcv.e(str22);
|
|
String str23 = c0722NYw5.a;
|
|
C14957gcv.e(str23);
|
|
linkedHashMap3.put(str22, str23);
|
|
}
|
|
C0722NYw c0722NYw6 = cae.c;
|
|
return new NG(nf, ne, ne2, new NE(linkedHashMap3, c0722NYw6 != null ? c0722NYw6.c : null));
|
|
}
|
|
|
|
static /* synthetic */ void b(C5291bqK c5291bqK) {
|
|
if (c5291bqK.f != 0) {
|
|
c5291bqK.f.ar_();
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public void c(final NG ng) {
|
|
this.l = ng.b.d;
|
|
this.f8577o = ng.e.d;
|
|
this.d = ng.a.d;
|
|
final NF nf = ng.c;
|
|
ZI.IeS ieS = new ZI.IeS(nf) { // from class: o.bqZ
|
|
private NF b;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((InterfaceC9263dgT) obj).b(this.b.j);
|
|
}
|
|
|
|
{
|
|
this.b = nf;
|
|
}
|
|
};
|
|
if (this.f != 0) {
|
|
ieS.e(this.f);
|
|
}
|
|
boolean z = nf.k;
|
|
this.t = z;
|
|
if (z) {
|
|
ZI.IeS ieS2 = new ZI.IeS(nf) { // from class: o.bra
|
|
private NF e;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((InterfaceC9263dgT) obj).d(r0.d, this.e.i);
|
|
}
|
|
|
|
{
|
|
this.e = nf;
|
|
}
|
|
};
|
|
if (this.f != 0) {
|
|
ieS2.e(this.f);
|
|
}
|
|
} else {
|
|
this.m.remove(AbstractC5071bmC.HBt.FIRST_NAME);
|
|
this.m.remove(AbstractC5071bmC.HBt.LAST_NAME);
|
|
}
|
|
ZI.IeS ieS3 = new ZI.IeS(nf) { // from class: o.bqN
|
|
private NF a;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((InterfaceC9263dgT) obj).c(this.a);
|
|
}
|
|
|
|
{
|
|
this.a = nf;
|
|
}
|
|
};
|
|
if (this.f != 0) {
|
|
ieS3.e(this.f);
|
|
}
|
|
if (!gjJ.b((CharSequence) nf.c)) {
|
|
b(AbstractC5071bmC.HBt.INCOMING, nf.c, 0);
|
|
}
|
|
ZI.IeS ieS4 = new ZI.IeS(this, ng) { // from class: o.bqO
|
|
private C5291bqK b;
|
|
private NG c;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((InterfaceC9263dgT) obj).a(this.b.l.get(r1.b.c), new ArrayList(this.c.b.d.values()), AbstractC5071bmC.HBt.MARITAL_STATUS);
|
|
}
|
|
|
|
{
|
|
this.b = this;
|
|
this.c = ng;
|
|
}
|
|
};
|
|
if (this.f != 0) {
|
|
ieS4.e(this.f);
|
|
}
|
|
ZI.IeS ieS5 = new ZI.IeS(this, ng) { // from class: o.bqP
|
|
private C5291bqK d;
|
|
private NG e;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((InterfaceC9263dgT) obj).a(this.d.f8577o.get(r1.e.c), new ArrayList(this.e.e.d.values()), AbstractC5071bmC.HBt.RESIDENCE_TYPE);
|
|
}
|
|
|
|
{
|
|
this.d = this;
|
|
this.e = ng;
|
|
}
|
|
};
|
|
if (this.f != 0) {
|
|
ieS5.e(this.f);
|
|
}
|
|
ZI.IeS ieS6 = new ZI.IeS(this, ng) { // from class: o.bqM
|
|
private C5291bqK b;
|
|
private NG e;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((InterfaceC9263dgT) obj).a(this.b.d.get(r1.a.c), new ArrayList(this.e.a.d.values()), AbstractC5071bmC.HBt.EDUCATION_LEVEL);
|
|
}
|
|
|
|
{
|
|
this.b = this;
|
|
this.e = ng;
|
|
}
|
|
};
|
|
if (this.f != 0) {
|
|
ieS6.e(this.f);
|
|
}
|
|
if (this.f != 0) {
|
|
this.f.ar_();
|
|
}
|
|
}
|
|
|
|
public final void c(final String str, final String str2, final String str3, final String str4, final String str5, final String str6, final String str7, final String str8, final String str9, final String str10) {
|
|
if (this.f != 0) {
|
|
this.f.y();
|
|
}
|
|
this.n.d(this.c.a().flatMap(new fSS(this, str, str2, str3, str4, str5, str6, str7, str8, str9, str10) { // from class: o.bqU
|
|
private String a;
|
|
private C5291bqK b;
|
|
private String c;
|
|
private String d;
|
|
private String e;
|
|
private String f;
|
|
private String g;
|
|
private String h;
|
|
private String i;
|
|
private String j;
|
|
private String k;
|
|
|
|
@Override // o.fSS
|
|
public final Object a(Object obj) {
|
|
InterfaceC13169fSq flatMap;
|
|
flatMap = r0.a(GJE.Sts.MAILING).flatMap(new fSS(this.b, (String) obj, this.e, this.d, this.c, this.h, this.j, this.g, this.i, this.f, this.k, this.a) { // from class: o.bqR
|
|
private C5291bqK a;
|
|
private String b;
|
|
private String c;
|
|
private String d;
|
|
private String e;
|
|
private String f;
|
|
private String g;
|
|
private String h;
|
|
private String i;
|
|
private String j;
|
|
private String k;
|
|
private String n;
|
|
|
|
@Override // o.fSS
|
|
public final Object a(Object obj2) {
|
|
return C5291bqK.e(this.a, this.d, this.e, this.f, this.i, this.j, this.h, this.g, this.k, this.n, this.c, this.b, (GJE) obj2);
|
|
}
|
|
|
|
{
|
|
this.a = r1;
|
|
this.d = r2;
|
|
this.e = r3;
|
|
this.f = r4;
|
|
this.i = r5;
|
|
this.j = r6;
|
|
this.h = r7;
|
|
this.g = r8;
|
|
this.k = r9;
|
|
this.n = r10;
|
|
this.c = r11;
|
|
this.b = r12;
|
|
}
|
|
});
|
|
return flatMap;
|
|
}
|
|
|
|
{
|
|
this.b = this;
|
|
this.e = str;
|
|
this.d = str2;
|
|
this.c = str3;
|
|
this.h = str4;
|
|
this.j = str5;
|
|
this.g = str6;
|
|
this.i = str7;
|
|
this.f = str8;
|
|
this.k = str9;
|
|
this.a = str10;
|
|
}
|
|
}), new wRi.LWm<Void>(this) { // from class: o.bqK.1
|
|
private C5291bqK e;
|
|
|
|
{
|
|
this.e = this;
|
|
}
|
|
|
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
|
public final void onComplete() {
|
|
C5291bqK.b(this.e);
|
|
C5291bqK c5291bqK = this.e;
|
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.bqY
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((InterfaceC9263dgT) obj).a();
|
|
}
|
|
};
|
|
if (c5291bqK.f != 0) {
|
|
ieS.e(c5291bqK.f);
|
|
}
|
|
}
|
|
|
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
|
public final void onError(Throwable th) {
|
|
C5291bqK.b(this.e, th, C0690Mh.IeS.JUST_DISMISS);
|
|
}
|
|
});
|
|
}
|
|
|
|
public void b() {
|
|
if (this.f != 0) {
|
|
this.f.y();
|
|
}
|
|
this.b.d(this.b.c().switchMap(new fSS(this) { // from class: o.bqS
|
|
private C5291bqK e;
|
|
|
|
@Override // o.fSS
|
|
public final Object a(Object obj) {
|
|
InterfaceC13169fSq switchMap;
|
|
switchMap = r0.h.b().switchMap(new fSS(this.e, (List) obj) { // from class: o.bqG
|
|
private C5291bqK b;
|
|
private List d;
|
|
|
|
@Override // o.fSS
|
|
public final Object a(Object obj2) {
|
|
InterfaceC13169fSq switchMap2;
|
|
switchMap2 = r0.a.e().switchMap(new fSS(this.b, this.d, (List) obj2) { // from class: o.bqQ
|
|
private List a;
|
|
private C5291bqK b;
|
|
private List d;
|
|
|
|
@Override // o.fSS
|
|
public final Object a(Object obj3) {
|
|
InterfaceC13169fSq map;
|
|
map = r0.e.d().doOnNext(new fSQ(r0) { // from class: o.bqW
|
|
private C5291bqK d;
|
|
|
|
@Override // o.fSQ
|
|
public final void c(Object obj4) {
|
|
this.d.k = ((Cae) obj4).f.intValue();
|
|
}
|
|
|
|
{
|
|
this.d = r1;
|
|
}
|
|
}).map(new fSS(this.b, this.d, this.a, (List) obj3) { // from class: o.bqV
|
|
private C5291bqK a;
|
|
private List c;
|
|
private List d;
|
|
private List e;
|
|
|
|
@Override // o.fSS
|
|
public final Object a(Object obj4) {
|
|
return C5291bqK.b(this.a, this.d, this.c, this.e, (Cae) obj4);
|
|
}
|
|
|
|
{
|
|
this.a = r1;
|
|
this.d = r2;
|
|
this.c = r3;
|
|
this.e = r4;
|
|
}
|
|
});
|
|
return map;
|
|
}
|
|
|
|
{
|
|
this.b = r1;
|
|
this.d = r2;
|
|
this.a = r3;
|
|
}
|
|
});
|
|
return switchMap2;
|
|
}
|
|
|
|
{
|
|
this.b = r1;
|
|
this.d = r2;
|
|
}
|
|
});
|
|
return switchMap;
|
|
}
|
|
|
|
{
|
|
this.e = this;
|
|
}
|
|
}), new wRi.LWm<NG>(this) { // from class: o.bqK.5
|
|
private C5291bqK e;
|
|
|
|
{
|
|
this.e = this;
|
|
}
|
|
|
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
|
public final /* synthetic */ void onNext(Object obj) {
|
|
NG ng = (NG) obj;
|
|
super.onNext(ng);
|
|
this.e.c(ng);
|
|
}
|
|
|
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
|
public final void onError(Throwable th) {
|
|
super.onError(th);
|
|
C5291bqK.c(this.e, th, C0690Mh.IeS.NAVIGATE_BACK);
|
|
}
|
|
});
|
|
}
|
|
|
|
static /* synthetic */ void c(C5291bqK c5291bqK, Throwable th, C0690Mh.IeS ieS) {
|
|
if (c5291bqK.b(th)) {
|
|
c5291bqK.d(c5291bqK.j.d(th, ieS));
|
|
}
|
|
}
|
|
|
|
static /* synthetic */ void b(C5291bqK c5291bqK, Throwable th, C0690Mh.IeS ieS) {
|
|
if (c5291bqK.b(th)) {
|
|
c5291bqK.d(c5291bqK.j.d(th, ieS));
|
|
}
|
|
}
|
|
}
|