package o; import java.util.Iterator; import java.util.List; import o.C0690Mh; import o.C5451btL; import o.ZI; import o.wRi; /* renamed from: o.btL, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public final class C5451btL extends ZI { public C0403Fv a; public String b; public String c; public String d; public final Fdp e; public String g; public final wQw h; public final owj i; public CfP k; public Integer l; public final SSH m; private List n; /* renamed from: o, reason: collision with root package name */ public Integer f8586o; private final C16244md p; /* renamed from: o.btL$LWm */ /* loaded from: classes4.dex */ public enum LWm { JOB, SOURCE_OF_INCOME, COMPANY_NAME, WORK_ADDRESS, WORK_CONTACT, EXPERIENCE } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C5451btL(C16903sI c16903sI, wQw wqw, owj owjVar, Fdp fdp, C16244md c16244md, SSH ssh) { super(c16903sI); C14957gcv.e(c16903sI, ""); C14957gcv.e(wqw, ""); C14957gcv.e(owjVar, ""); C14957gcv.e(fdp, ""); C14957gcv.e(c16244md, ""); C14957gcv.e(ssh, ""); this.h = wqw; this.i = owjVar; this.e = fdp; this.p = c16244md; this.m = ssh; this.n = C14851gaI.c; this.b = ""; this.c = ""; } /* renamed from: o.btL$IeS */ /* loaded from: classes4.dex */ public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR, Iterable> { public static final IeS c = new IeS(); @Override // o.InterfaceC14894gbR public final /* bridge */ /* synthetic */ Iterable invoke(List list) { return list; } IeS() { super(1); } } /* renamed from: o.btL$HBt */ /* loaded from: classes4.dex */ public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR { private C5451btL e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C0403Fv invoke(C1259ZbO c1259ZbO) { C1259ZbO c1259ZbO2 = c1259ZbO; C16244md c16244md = this.e.p; C14957gcv.c(c1259ZbO2, ""); C14957gcv.e(c1259ZbO2, ""); return new C0403Fv(c1259ZbO2.d, (String) c16244md.e.d(c1259ZbO2.b)); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public HBt(C5451btL c5451btL) { super(1); this.e = c5451btL; } } /* renamed from: o.btL$jbe */ /* loaded from: classes4.dex */ public static final class jbe extends AbstractC14961gcz implements InterfaceC14937gcb { public static final jbe b = new jbe(); @Override // o.InterfaceC14937gcb public final /* synthetic */ Integer invoke(C0403Fv c0403Fv, C0403Fv c0403Fv2) { return Integer.valueOf(c0403Fv.a.compareTo(c0403Fv2.a)); } jbe() { super(2); } } /* renamed from: o.btL$saX */ /* loaded from: classes4.dex */ public static final class saX extends AbstractC14961gcz implements InterfaceC14894gbR, C14866gag> { private C5451btL e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(List list) { final List list2 = list; C5451btL c5451btL = this.e; C14957gcv.c(list2, ""); c5451btL.n = list2; C5451btL c5451btL2 = this.e; ZI.IeS ieS = new ZI.IeS(list2) { // from class: o.buh private List c; @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9334dhl) obj).d((List) this.c); } { this.c = list2; } }; if (c5451btL2.f != 0) { ieS.e(c5451btL2.f); } return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public saX(C5451btL c5451btL) { super(1); this.e = c5451btL; } } /* renamed from: o.btL$ojQ */ /* loaded from: classes4.dex */ public static final class ojQ extends AbstractC14961gcz implements InterfaceC14894gbR, InterfaceC13169fSq> { private C5451btL e; @Override // o.InterfaceC14894gbR public final /* synthetic */ InterfaceC13169fSq invoke(List list) { return this.e.h.d(); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public ojQ(C5451btL c5451btL) { super(1); this.e = c5451btL; } } /* renamed from: o.btL$tOB */ /* loaded from: classes4.dex */ public static final class tOB extends AbstractC14961gcz implements InterfaceC14894gbR { private C5451btL c; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Jze jze) { this.c.k = jze.j; return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public tOB(C5451btL c5451btL) { super(1); this.c = c5451btL; } } /* renamed from: o.btL$Sts */ /* loaded from: classes4.dex */ public static final class Sts extends wRi.LWm { private C5451btL a; public Sts(C5451btL c5451btL) { this.a = c5451btL; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final Jze jze = (Jze) obj; C14957gcv.e(jze, ""); super.onNext(jze); C5451btL.c(this.a); final C5451btL c5451btL = this.a; ZI.IeS ieS = new ZI.IeS(jze, c5451btL) { // from class: o.bud private C5451btL c; private Jze e; @Override // o.ZI.IeS public final void e(Object obj2) { C5451btL.Sts.b(this.e, this.c, (InterfaceC9334dhl) obj2); } { this.e = jze; this.c = c5451btL; } }; if (c5451btL.f != 0) { ieS.e(c5451btL.f); } String str = jze.a; if (str == null || str.length() == 0) { return; } C5451btL c5451btL2 = this.a; LWm lWm = LWm.COMPANY_NAME; String str2 = jze.a; String str3 = str2 != null ? str2 : ""; CfP cfP = jze.j; c5451btL2.a(lWm, C5451btL.c(str3, cfP != null ? cfP.b : null), false); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C14957gcv.e(th, ""); super.onError(th); C5451btL.e(this.a, th, C0690Mh.IeS.NAVIGATE_BACK); } public static /* synthetic */ void b(Jze jze, C5451btL c5451btL, InterfaceC9334dhl interfaceC9334dhl) { List list; String b; String str = ""; C14957gcv.e(jze, ""); C14957gcv.e(c5451btL, ""); CfP cfP = jze.j; String str2 = cfP != null ? cfP.a : null; CfP cfP2 = jze.j; interfaceC9334dhl.b(str2, cfP2 != null ? cfP2.c : null); Iterator it = c5451btL.n.iterator(); int i = 0; while (true) { if (!it.hasNext()) { i = -1; break; } String str3 = ((C0403Fv) it.next()).c; String str4 = jze.f.d; if (str4 == null) { str4 = "TH"; } if (gdZ.a(str3, str4, true)) { break; } else { i++; } } if (i != -1) { interfaceC9334dhl.a(i); } String str5 = jze.a; if (str5 == null) { str5 = ""; } interfaceC9334dhl.e(str5); String str6 = jze.e; if (str6 == null) { str6 = ""; } c5451btL.b = str6; String str7 = jze.a; if (str7 == null) { str7 = ""; } c5451btL.c = str7; GJE gje = jze.h; if (gje != null && (list = gje.e) != null && (b = C14881gav.b(list, "\n", null, null, 0, null, null, 62)) != null) { c5451btL.d = b; str = b; } interfaceC9334dhl.b(str); interfaceC9334dhl.c((String) C6583cXR.c(new Object[]{false, true, jze.c}, -1092823629, 1092823630, (int) System.currentTimeMillis())); Integer num = jze.b.b; c5451btL.f8586o = num; interfaceC9334dhl.b(num); Integer num2 = jze.b.e; c5451btL.l = num2; interfaceC9334dhl.e(num2); c5451btL.g = jze.d; } } public final void a(final LWm lWm, boolean z, boolean z2) { C14957gcv.e(lWm, ""); if (z) { ZI.IeS ieS = new ZI.IeS(lWm) { // from class: o.btH private C5451btL.LWm a; @Override // o.ZI.IeS public final void e(Object obj) { C5451btL.e(this.a, (InterfaceC9334dhl) obj); } { this.a = lWm; } }; if (this.f != 0) { ieS.e(this.f); return; } return; } if (z2) { ZI.IeS ieS2 = new ZI.IeS(lWm) { // from class: o.btQ private C5451btL.LWm c; @Override // o.ZI.IeS public final void e(Object obj) { C5451btL.a(this.c, (InterfaceC9334dhl) obj); } { this.c = lWm; } }; if (this.f != 0) { ieS2.e(this.f); return; } return; } ZI.IeS ieS3 = new ZI.IeS(lWm) { // from class: o.btN private C5451btL.LWm a; @Override // o.ZI.IeS public final void e(Object obj) { C5451btL.c(this.a, (InterfaceC9334dhl) obj); } { this.a = lWm; } }; if (this.f != 0) { ieS3.e(this.f); } } public static boolean c(String str, String str2) { String str3 = str; if (!gdZ.d((CharSequence) str3)) { str = gdZ.b((CharSequence) str3).toString(); } if (C14957gcv.b((Object) str2, (Object) "SA") && C6583cXR.b("^[0-9\\u0E01-\\u0E39\\u0E40-\\u0E4Ca-zA-Z_\"'#&*()@:,./\\-]+( [0-9\\u0E01-\\u0E39\\u0E40-\\u0E4Ca-zA-Z_\"'#&() *@:,./\\-]+)?$", str)) { return true; } return !C14957gcv.b((Object) str2, (Object) "SA") && (str3.length() == 0 || C6583cXR.b("^[0-9\\u0E01-\\u0E39\\u0E40-\\u0E4Ca-zA-Z_\"'#&*()@:,./\\-]+( [0-9\\u0E01-\\u0E39\\u0E40-\\u0E4Ca-zA-Z_\"'#&() *@:,./\\-]+)?$", str)); } /* renamed from: o.btL$RVV */ /* loaded from: classes4.dex */ public static final class RVV extends wRi.LWm { private C5451btL b; public RVV(C5451btL c5451btL) { this.b = c5451btL; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { C0636LcC c0636LcC = (C0636LcC) obj; C14957gcv.e(c0636LcC, ""); super.onNext(c0636LcC); if (!c0636LcC.b) { C5451btL c5451btL = this.b; ZI.IeS ieS = new ZI.IeS() { // from class: o.bua @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9334dhl) obj2).j(); } }; if (c5451btL.f != 0) { ieS.e(c5451btL.f); } } else if (!c0636LcC.d) { C5451btL c5451btL2 = this.b; ZI.IeS ieS2 = new ZI.IeS() { // from class: o.btW @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9334dhl) obj2).d(); } }; if (c5451btL2.f != 0) { ieS2.e(c5451btL2.f); } } else if (c0636LcC.a) { C5451btL c5451btL3 = this.b; ZI.IeS ieS3 = new ZI.IeS() { // from class: o.btY @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9334dhl) obj2).f(); } }; if (c5451btL3.f != 0) { ieS3.e(c5451btL3.f); } } else { C5451btL c5451btL4 = this.b; ZI.IeS ieS4 = new ZI.IeS() { // from class: o.bub @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9334dhl) obj2).a(); } }; if (c5451btL4.f != 0) { ieS4.e(c5451btL4.f); } } C5451btL.c(this.b); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C14957gcv.e(th, ""); super.onError(th); C5451btL.e(this.b, th, C0690Mh.IeS.JUST_DISMISS); } } public static /* synthetic */ void e(LWm lWm, InterfaceC9334dhl interfaceC9334dhl) { C14957gcv.e(lWm, ""); interfaceC9334dhl.b(lWm); } public static /* synthetic */ void c(InterfaceC14894gbR interfaceC14894gbR, Object obj) { C14957gcv.e(interfaceC14894gbR, ""); interfaceC14894gbR.invoke(obj); } public static /* synthetic */ void c(String str, InterfaceC9334dhl interfaceC9334dhl) { C14957gcv.e(str, ""); interfaceC9334dhl.b(str); } public static /* synthetic */ void a(LWm lWm, InterfaceC9334dhl interfaceC9334dhl) { C14957gcv.e(lWm, ""); interfaceC9334dhl.e(lWm); } public static /* synthetic */ int a(InterfaceC14937gcb interfaceC14937gcb, Object obj, Object obj2) { C14957gcv.e(interfaceC14937gcb, ""); return ((Number) interfaceC14937gcb.invoke(obj, obj2)).intValue(); } public static /* synthetic */ void b(InterfaceC14894gbR interfaceC14894gbR, Object obj) { C14957gcv.e(interfaceC14894gbR, ""); interfaceC14894gbR.invoke(obj); } public static /* synthetic */ C0403Fv e(InterfaceC14894gbR interfaceC14894gbR, Object obj) { C14957gcv.e(interfaceC14894gbR, ""); return (C0403Fv) interfaceC14894gbR.invoke(obj); } public static /* synthetic */ Iterable a(InterfaceC14894gbR interfaceC14894gbR, Object obj) { C14957gcv.e(interfaceC14894gbR, ""); return (Iterable) interfaceC14894gbR.invoke(obj); } public static /* synthetic */ void c(LWm lWm, InterfaceC9334dhl interfaceC9334dhl) { C14957gcv.e(lWm, ""); interfaceC9334dhl.a(lWm); } public static /* synthetic */ InterfaceC13169fSq d(InterfaceC14894gbR interfaceC14894gbR, Object obj) { C14957gcv.e(interfaceC14894gbR, ""); return (InterfaceC13169fSq) interfaceC14894gbR.invoke(obj); } public static final /* synthetic */ void c(C5451btL c5451btL) { if (c5451btL.f != 0) { c5451btL.f.ar_(); } } public static final /* synthetic */ void e(C5451btL c5451btL, Throwable th, C0690Mh.IeS ieS) { if (c5451btL.b(th)) { c5451btL.d(c5451btL.j.d(th, ieS)); } } @Override // o.ZI public final void w_() { Fdp fdp = this.e; if (!fdp.h.isDisposed()) { fdp.h.dispose(); } wQw wqw = this.h; if (!wqw.h.isDisposed()) { wqw.h.dispose(); } owj owjVar = this.i; if (!owjVar.h.isDisposed()) { owjVar.h.dispose(); } super.w_(); } }