313 lines
11 KiB
Java
313 lines
11 KiB
Java
|
package o;
|
||
|
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Arrays;
|
||
|
import java.util.Collection;
|
||
|
import java.util.Iterator;
|
||
|
import java.util.List;
|
||
|
import o.C6442cSy;
|
||
|
import o.InterfaceC8980dbA;
|
||
|
import o.ZI;
|
||
|
import o.wRi;
|
||
|
|
||
|
/* renamed from: o.cSy, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes4.dex */
|
||
|
public final class C6442cSy extends ZI<InterfaceC8980dbA.LWm> {
|
||
|
public final REU a;
|
||
|
private final C0299Dn c;
|
||
|
|
||
|
public static final /* synthetic */ void b(C6442cSy c6442cSy, List list) {
|
||
|
c6442cSy.a.c();
|
||
|
REU reu = c6442cSy.a;
|
||
|
reu.d(reu.i, new LWm(c6442cSy, list));
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
@InterfaceC13391fZD
|
||
|
public C6442cSy(REU reu, C0299Dn c0299Dn, C16903sI c16903sI) {
|
||
|
super(c16903sI);
|
||
|
C14957gcv.e(reu, "");
|
||
|
C14957gcv.e(c0299Dn, "");
|
||
|
C14957gcv.e(c16903sI, "");
|
||
|
this.a = reu;
|
||
|
this.c = c0299Dn;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* renamed from: o.cSy$RVV */
|
||
|
/* loaded from: classes4.dex */
|
||
|
public final class RVV extends wRi.LWm<List<? extends C16270mpP>> {
|
||
|
private C6442cSy a;
|
||
|
|
||
|
public RVV(C6442cSy c6442cSy) {
|
||
|
this.a = c6442cSy;
|
||
|
}
|
||
|
|
||
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
||
|
public final /* synthetic */ void onNext(Object obj) {
|
||
|
final List<C16270mpP> list = (List) obj;
|
||
|
C14957gcv.e(list, "");
|
||
|
super.onNext(list);
|
||
|
oyu o2 = this.a.a.c.o();
|
||
|
final List<C10195dyG> list2 = o2 != null ? o2.c : null;
|
||
|
if (C6442cSy.a(list, list2)) {
|
||
|
C0299Dn c0299Dn = this.a.c;
|
||
|
C14957gcv.c(list2, "");
|
||
|
List<C1173Xd> d = c0299Dn.d(list, list2, this.a.a.d.T());
|
||
|
ArrayList arrayList = new ArrayList();
|
||
|
for (Object obj2 : d) {
|
||
|
if (((C1173Xd) obj2).m == null) {
|
||
|
arrayList.add(obj2);
|
||
|
}
|
||
|
}
|
||
|
if (!arrayList.isEmpty()) {
|
||
|
C6442cSy.b(this.a, list);
|
||
|
return;
|
||
|
}
|
||
|
C6442cSy.d(this.a);
|
||
|
final C6442cSy c6442cSy = this.a;
|
||
|
ZI.IeS ieS = new ZI.IeS(c6442cSy, list, list2) { // from class: o.cSD
|
||
|
private List b;
|
||
|
private C6442cSy c;
|
||
|
private List d;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj3) {
|
||
|
C6442cSy.RVV.b(this.c, this.d, this.b, (InterfaceC8980dbA.LWm) obj3);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = c6442cSy;
|
||
|
this.d = list;
|
||
|
this.b = list2;
|
||
|
}
|
||
|
};
|
||
|
if (c6442cSy.f != 0) {
|
||
|
ieS.e(c6442cSy.f);
|
||
|
return;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
C6442cSy.b(this.a, list);
|
||
|
}
|
||
|
|
||
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
||
|
public final void onError(Throwable th) {
|
||
|
C14957gcv.e(th, "");
|
||
|
super.onError(th);
|
||
|
C6442cSy.e(this.a, th);
|
||
|
C6442cSy c6442cSy = this.a;
|
||
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.cSC
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC8980dbA.LWm) obj).e();
|
||
|
}
|
||
|
};
|
||
|
if (c6442cSy.f != 0) {
|
||
|
ieS.e(c6442cSy.f);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void b(C6442cSy c6442cSy, List list, List list2, InterfaceC8980dbA.LWm lWm) {
|
||
|
C14957gcv.e(c6442cSy, "");
|
||
|
C14957gcv.e(list, "");
|
||
|
C0299Dn c0299Dn = c6442cSy.c;
|
||
|
C14957gcv.c(list2, "");
|
||
|
lWm.d(c0299Dn.d((List<C16270mpP>) list, (List<C10195dyG>) list2, c6442cSy.a.d.T()));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.cSy$LWm */
|
||
|
/* loaded from: classes4.dex */
|
||
|
public final class LWm extends wRi.LWm<List<? extends C10195dyG>> {
|
||
|
private C6442cSy a;
|
||
|
private final List<C16270mpP> c;
|
||
|
|
||
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
||
|
public final /* synthetic */ void onNext(Object obj) {
|
||
|
final List list = (List) obj;
|
||
|
C14957gcv.e(list, "");
|
||
|
super.onNext(list);
|
||
|
C6442cSy.d(this.a);
|
||
|
this.a.a.c.b(new oyu(list));
|
||
|
final C6442cSy c6442cSy = this.a;
|
||
|
ZI.IeS ieS = new ZI.IeS(c6442cSy, this, list) { // from class: o.cSu
|
||
|
private List a;
|
||
|
private C6442cSy c;
|
||
|
private C6442cSy.LWm d;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj2) {
|
||
|
C6442cSy.LWm.c(this.c, this.d, this.a, (InterfaceC8980dbA.LWm) obj2);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = c6442cSy;
|
||
|
this.d = this;
|
||
|
this.a = list;
|
||
|
}
|
||
|
};
|
||
|
if (c6442cSy.f != 0) {
|
||
|
ieS.e(c6442cSy.f);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public LWm(C6442cSy c6442cSy, List<C16270mpP> list) {
|
||
|
C14957gcv.e(list, "");
|
||
|
this.a = c6442cSy;
|
||
|
this.c = list;
|
||
|
}
|
||
|
|
||
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
||
|
public final void onError(Throwable th) {
|
||
|
C14957gcv.e(th, "");
|
||
|
super.onError(th);
|
||
|
C6442cSy.e(this.a, th);
|
||
|
C6442cSy c6442cSy = this.a;
|
||
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.cSz
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC8980dbA.LWm) obj).e();
|
||
|
}
|
||
|
};
|
||
|
if (c6442cSy.f != 0) {
|
||
|
ieS.e(c6442cSy.f);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void c(C6442cSy c6442cSy, LWm lWm, List list, InterfaceC8980dbA.LWm lWm2) {
|
||
|
C14957gcv.e(c6442cSy, "");
|
||
|
C14957gcv.e(lWm, "");
|
||
|
C14957gcv.e(list, "");
|
||
|
lWm2.d(c6442cSy.c.d(lWm.c, (List<C10195dyG>) list, c6442cSy.a.d.T()));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static boolean a(List<C16270mpP> list, List<C10195dyG> list2) {
|
||
|
List list3;
|
||
|
C14957gcv.e(list, "");
|
||
|
List<C16270mpP> list4 = list;
|
||
|
C14957gcv.e(list4, "");
|
||
|
ArrayList arrayList = new ArrayList(list4 instanceof Collection ? list4.size() : 10);
|
||
|
Iterator<T> it = list4.iterator();
|
||
|
while (it.hasNext()) {
|
||
|
arrayList.add(((C16270mpP) it.next()).d);
|
||
|
}
|
||
|
List b = C14881gav.b(arrayList);
|
||
|
if (list2 != null) {
|
||
|
List<C10195dyG> list5 = list2;
|
||
|
C14957gcv.e(list5, "");
|
||
|
ArrayList arrayList2 = new ArrayList(list5 instanceof Collection ? list5.size() : 10);
|
||
|
Iterator<T> it2 = list5.iterator();
|
||
|
while (it2.hasNext()) {
|
||
|
arrayList2.add(((C10195dyG) it2.next()).a);
|
||
|
}
|
||
|
list3 = C14881gav.b(arrayList2);
|
||
|
} else {
|
||
|
list3 = null;
|
||
|
}
|
||
|
return C14957gcv.b(b, list3);
|
||
|
}
|
||
|
|
||
|
public static String a(String str, C1193Xr c1193Xr) {
|
||
|
String str2 = str == null ? "" : str;
|
||
|
String str3 = str;
|
||
|
if (str3 == null || str3.length() == 0 || c1193Xr == null) {
|
||
|
return str2;
|
||
|
}
|
||
|
String str4 = c1193Xr.g;
|
||
|
if (str4 != null && str4.length() != 0) {
|
||
|
gcH gch = gcH.d;
|
||
|
String format = String.format("&serviceNumber=%s&serviceNumberType=BILLERID", Arrays.copyOf(new Object[]{c1193Xr.g}, 1));
|
||
|
C14957gcv.c((Object) format, "");
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
sb.append((Object) str2);
|
||
|
sb.append(format);
|
||
|
str2 = sb.toString();
|
||
|
} else {
|
||
|
String str5 = c1193Xr.f8453o;
|
||
|
if (str5 != null && str5.length() != 0) {
|
||
|
gcH gch2 = gcH.d;
|
||
|
String format2 = String.format("&serviceNumber=%s&serviceNumberType=COMPCODE", Arrays.copyOf(new Object[]{c1193Xr.f8453o}, 1));
|
||
|
C14957gcv.c((Object) format2, "");
|
||
|
StringBuilder sb2 = new StringBuilder();
|
||
|
sb2.append((Object) str2);
|
||
|
sb2.append(format2);
|
||
|
str2 = sb2.toString();
|
||
|
}
|
||
|
}
|
||
|
String str6 = c1193Xr.K;
|
||
|
if (str6 != null && str6.length() != 0) {
|
||
|
gcH gch3 = gcH.d;
|
||
|
String format3 = String.format("&ref1=%s", Arrays.copyOf(new Object[]{c1193Xr.K}, 1));
|
||
|
C14957gcv.c((Object) format3, "");
|
||
|
StringBuilder sb3 = new StringBuilder();
|
||
|
sb3.append((Object) str2);
|
||
|
sb3.append(format3);
|
||
|
str2 = sb3.toString();
|
||
|
}
|
||
|
String str7 = c1193Xr.J;
|
||
|
if (str7 != null && str7.length() != 0) {
|
||
|
gcH gch4 = gcH.d;
|
||
|
String format4 = String.format("&ref2=%s", Arrays.copyOf(new Object[]{c1193Xr.J}, 1));
|
||
|
C14957gcv.c((Object) format4, "");
|
||
|
StringBuilder sb4 = new StringBuilder();
|
||
|
sb4.append((Object) str2);
|
||
|
sb4.append(format4);
|
||
|
str2 = sb4.toString();
|
||
|
}
|
||
|
String str8 = c1193Xr.N;
|
||
|
if (str8 != null && str8.length() != 0) {
|
||
|
gcH gch5 = gcH.d;
|
||
|
String format5 = String.format("&ref3=%s", Arrays.copyOf(new Object[]{c1193Xr.N}, 1));
|
||
|
C14957gcv.c((Object) format5, "");
|
||
|
StringBuilder sb5 = new StringBuilder();
|
||
|
sb5.append((Object) str2);
|
||
|
sb5.append(format5);
|
||
|
str2 = sb5.toString();
|
||
|
}
|
||
|
String str9 = c1193Xr.j;
|
||
|
if (str9 != null && str9.length() != 0) {
|
||
|
gcH gch6 = gcH.d;
|
||
|
String format6 = String.format("&amount=%s", Arrays.copyOf(new Object[]{c1193Xr.j}, 1));
|
||
|
C14957gcv.c((Object) format6, "");
|
||
|
StringBuilder sb6 = new StringBuilder();
|
||
|
sb6.append((Object) str2);
|
||
|
sb6.append(format6);
|
||
|
str2 = sb6.toString();
|
||
|
}
|
||
|
String str10 = c1193Xr.R;
|
||
|
if (str10 == null || str10.length() == 0) {
|
||
|
return str2;
|
||
|
}
|
||
|
gcH gch7 = gcH.d;
|
||
|
String format7 = String.format("&scanToken=%s", Arrays.copyOf(new Object[]{c1193Xr.R}, 1));
|
||
|
C14957gcv.c((Object) format7, "");
|
||
|
StringBuilder sb7 = new StringBuilder();
|
||
|
sb7.append((Object) str2);
|
||
|
sb7.append(format7);
|
||
|
return sb7.toString();
|
||
|
}
|
||
|
|
||
|
public static final /* synthetic */ void d(C6442cSy c6442cSy) {
|
||
|
if (c6442cSy.f != 0) {
|
||
|
c6442cSy.f.ar_();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static final /* synthetic */ void e(C6442cSy c6442cSy, Throwable th) {
|
||
|
if (c6442cSy.b(th)) {
|
||
|
c6442cSy.d(c6442cSy.j.e(th));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final void b() {
|
||
|
if (this.f != 0) {
|
||
|
this.f.y();
|
||
|
}
|
||
|
this.a.b();
|
||
|
REU reu = this.a;
|
||
|
reu.d(reu.i, new RVV(this));
|
||
|
}
|
||
|
}
|