243 lines
8.5 KiB
Java
243 lines
8.5 KiB
Java
package o;
|
|
|
|
import android.content.SharedPreferences;
|
|
import android.content.res.Resources;
|
|
import java.util.ArrayList;
|
|
import java.util.Collection;
|
|
import java.util.Collections;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import o.C15715hv;
|
|
import o.EW;
|
|
import o.QG;
|
|
import o.QK;
|
|
import o.QN;
|
|
import o.QR;
|
|
import o.YO;
|
|
import o.YP;
|
|
import org.threeten.bp.OffsetDateTime;
|
|
|
|
/* renamed from: o.ob, reason: case insensitive filesystem */
|
|
/* loaded from: classes3.dex */
|
|
public final class C16461ob extends C16157lj {
|
|
private final String a;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
@InterfaceC13391fZD
|
|
public C16461ob(Resources resources, SharedPreferences sharedPreferences, String str) {
|
|
super(resources, sharedPreferences);
|
|
C14957gcv.e(resources, "");
|
|
C14957gcv.e(sharedPreferences, "");
|
|
C14957gcv.e(str, "");
|
|
this.a = str;
|
|
}
|
|
|
|
/* renamed from: o.ob$LWm */
|
|
/* loaded from: classes3.dex */
|
|
public static final class LWm {
|
|
private LWm() {
|
|
}
|
|
|
|
public /* synthetic */ LWm(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
public final EW d(gkG gkg) {
|
|
EnumC1276Zl enumC1276Zl;
|
|
EnumC1276Zl enumC1276Zl2;
|
|
YD yd;
|
|
QR qr;
|
|
List<String> list;
|
|
C14957gcv.e(gkg, "");
|
|
ArrayList arrayList = new ArrayList();
|
|
EnumC1276Zl enumC1276Zl3 = EnumC1276Zl.DEFAULT;
|
|
new C0527It();
|
|
luP lup = gkg.b;
|
|
if (lup != null) {
|
|
C0521Ip c0521Ip = new C0521Ip(lup.e, lup.c, lup.d, lup.a, lup.b);
|
|
QN.HBt a = QN.a();
|
|
a.f = c0521Ip.d;
|
|
a.a = n(c0521Ip.b);
|
|
a.c = c(C15715hv.tOB.ref_id, c0521Ip.c);
|
|
a.d = C15715hv.IeS.ic_check_circle_black_48dp;
|
|
if (c0521Ip.e.length() > 0) {
|
|
a.h = n(c0521Ip.b);
|
|
a.a = c(C15715hv.tOB.ref_id, c0521Ip.c);
|
|
a.c = c0521Ip.e;
|
|
}
|
|
QN qn = new QN(a, YD.REVAMP_SUCCESS_HEADER, (byte) 0);
|
|
C14957gcv.c(qn, "");
|
|
arrayList.add(qn);
|
|
}
|
|
List<lWG> list2 = gkg.e;
|
|
if (list2 != null) {
|
|
List<lWG> list3 = list2;
|
|
C14957gcv.e(list3, "");
|
|
ArrayList<C0516Ik> arrayList2 = new ArrayList(list3 instanceof Collection ? list3.size() : 10);
|
|
Iterator it = list3.iterator();
|
|
while (it.hasNext()) {
|
|
lWG lwg = (lWG) it.next();
|
|
boolean z = lwg.a;
|
|
YP.IeS ieS = YP.c;
|
|
EnumC1268Zh b = YP.IeS.b(lwg.j);
|
|
YP.IeS ieS2 = YP.c;
|
|
EnumC1268Zh b2 = YP.IeS.b(lwg.g);
|
|
YO.RVV rvv = YO.c;
|
|
EnumC1265Zg c = YO.RVV.c(lwg.f);
|
|
String str = lwg.b;
|
|
String str2 = lwg.h;
|
|
List<String> list4 = lwg.e;
|
|
StringBuilder sb = new StringBuilder("");
|
|
Iterator it2 = it;
|
|
int size = list4.size();
|
|
EnumC1276Zl enumC1276Zl4 = enumC1276Zl3;
|
|
int i = 0;
|
|
while (i < size) {
|
|
if (list4.get(i).length() > 0) {
|
|
list = list4;
|
|
sb.append(list4.get(i));
|
|
if (i < size - 1) {
|
|
sb.append("\n");
|
|
}
|
|
} else {
|
|
list = list4;
|
|
}
|
|
i++;
|
|
list4 = list;
|
|
}
|
|
String obj = sb.toString();
|
|
C14957gcv.c((Object) obj, "");
|
|
arrayList2.add(new C0516Ik(z, b, b2, c, str, str2, obj, k(lwg.c), lwg.i, lwg.d));
|
|
it = it2;
|
|
enumC1276Zl3 = enumC1276Zl4;
|
|
}
|
|
enumC1276Zl = enumC1276Zl3;
|
|
ArrayList arrayList3 = new ArrayList();
|
|
for (C0516Ik c0516Ik : arrayList2) {
|
|
if (c0516Ik.e && c0516Ik.j != EnumC1265Zg.UNKNOWN) {
|
|
arrayList3.add(new QQ(true));
|
|
}
|
|
if (c0516Ik.j != EnumC1265Zg.TEXT_TWO_COLUMNS) {
|
|
if (c0516Ik.j != EnumC1265Zg.TEXT) {
|
|
if (c0516Ik.j == EnumC1265Zg.MINI_QR) {
|
|
QG.RVV a2 = QG.a();
|
|
List<XL> singletonList = Collections.singletonList(new XL(c0516Ik.j.toString(), c0516Ik.a, null, null, null, c0516Ik.i));
|
|
C14957gcv.c(singletonList, "");
|
|
a2.e = singletonList;
|
|
QG qg = new QG((QG.RVV<?>) a2);
|
|
C14957gcv.c(qg, "");
|
|
arrayList3.add(qg);
|
|
}
|
|
} else {
|
|
if (c0516Ik.f.length() > 0) {
|
|
QR.LWm b3 = QR.b();
|
|
b3.g = c0516Ik.a;
|
|
b3.a = c0516Ik.f;
|
|
b3.c = C15715hv.LWm.gray;
|
|
if (c0516Ik.d) {
|
|
b3.i = true;
|
|
}
|
|
qr = new QR(b3, (byte) 0);
|
|
} else {
|
|
qr = null;
|
|
}
|
|
if (qr != null) {
|
|
arrayList3.add(qr);
|
|
}
|
|
}
|
|
} else {
|
|
QK.LWm e = QK.e();
|
|
e.g = c0516Ik.a;
|
|
e.h = c0516Ik.f;
|
|
if (c0516Ik.b.length() > 0) {
|
|
e.c = c0516Ik.b;
|
|
}
|
|
if (c0516Ik.c.length() > 0) {
|
|
e.a = c0516Ik.c;
|
|
}
|
|
if (c0516Ik.g == EnumC1268Zh.SMALL) {
|
|
e.k = true;
|
|
}
|
|
if (c0516Ik.h == EnumC1268Zh.SMALL) {
|
|
e.l = true;
|
|
}
|
|
if (c0516Ik.d) {
|
|
e.m = true;
|
|
}
|
|
QK qk = new QK(e, (byte) 0);
|
|
C14957gcv.c(qk, "");
|
|
arrayList3.add(qk);
|
|
}
|
|
}
|
|
arrayList.addAll(arrayList3);
|
|
} else {
|
|
enumC1276Zl = enumC1276Zl3;
|
|
}
|
|
try {
|
|
enumC1276Zl2 = EnumC1276Zl.valueOf(gkg.h);
|
|
} catch (IllegalArgumentException e2) {
|
|
guQ.a(e2.getLocalizedMessage(), new Object[0]);
|
|
enumC1276Zl2 = enumC1276Zl;
|
|
}
|
|
EW.LWm b4 = EW.b(arrayList, "slip");
|
|
List<zQA> list5 = gkg.a;
|
|
if (list5 != null) {
|
|
ArrayList arrayList4 = new ArrayList();
|
|
for (zQA zqa : list5) {
|
|
String d = C2974aoj.d(zqa.e);
|
|
int hashCode = d.hashCode();
|
|
if (hashCode == -911436124) {
|
|
if (d.equals("footer_remark")) {
|
|
yd = YD.FOOTER_REMARK;
|
|
}
|
|
yd = YD.FOOTER_CONTENT;
|
|
} else if (hashCode == -314580553) {
|
|
if (d.equals("footer_image")) {
|
|
yd = YD.FOOTER_IMAGE;
|
|
}
|
|
yd = YD.FOOTER_CONTENT;
|
|
} else {
|
|
if (hashCode == 1670366677 && d.equals("footer_content")) {
|
|
yd = YD.FOOTER_CONTENT;
|
|
}
|
|
yd = YD.FOOTER_CONTENT;
|
|
}
|
|
QL ql = (((yd == YD.FOOTER_CONTENT || yd == YD.FOOTER_REMARK) && zqa.a.length() == 0) || (yd == YD.FOOTER_IMAGE && zqa.b.length() == 0)) ? null : new QL(zqa.a, yd, k(zqa.b));
|
|
if (ql != null) {
|
|
arrayList4.add(ql);
|
|
}
|
|
}
|
|
b4.b = arrayList4;
|
|
}
|
|
b4.l = enumC1276Zl2;
|
|
EW c2 = b4.c();
|
|
C14957gcv.c(c2, "");
|
|
return c2;
|
|
}
|
|
|
|
private final String n(String str) {
|
|
if (str.length() == 0) {
|
|
return str;
|
|
}
|
|
String d = d(OffsetDateTime.parse(cXG.a(str)));
|
|
C14957gcv.c((Object) d, "");
|
|
return d;
|
|
}
|
|
|
|
private final String k(String str) {
|
|
if (str.length() == 0 || gdZ.e(str, "http", false)) {
|
|
return str;
|
|
}
|
|
String string = this.c.getString("BASE_ASSETS_URL", this.a);
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(string);
|
|
sb.append(str);
|
|
return sb.toString();
|
|
}
|
|
|
|
static {
|
|
new LWm((byte) 0);
|
|
}
|
|
}
|