126 lines
5.5 KiB
Java
126 lines
5.5 KiB
Java
package o;
|
|
|
|
import com.google.gson.Gson;
|
|
import com.scb.phone.domain.entity.mwpartner.EntityMappingException;
|
|
import java.util.ArrayList;
|
|
import java.util.Collection;
|
|
import java.util.List;
|
|
import o.C9699don;
|
|
|
|
/* renamed from: o.don, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public final class C9699don implements InterfaceC9679doT {
|
|
final C9698dom a;
|
|
final InterfaceC9631dnT b;
|
|
|
|
@InterfaceC13391fZD
|
|
public C9699don(InterfaceC9631dnT interfaceC9631dnT, C9698dom c9698dom) {
|
|
C14957gcv.e(interfaceC9631dnT, "");
|
|
C14957gcv.e(c9698dom, "");
|
|
this.b = interfaceC9631dnT;
|
|
this.a = c9698dom;
|
|
}
|
|
|
|
/* renamed from: o.don$HBt */
|
|
/* loaded from: classes.dex */
|
|
static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR<String, C14866gag> {
|
|
private C9699don b;
|
|
private InterfaceC13178fSz<C9703dor> d;
|
|
|
|
@Override // o.InterfaceC14894gbR
|
|
public final /* synthetic */ C14866gag invoke(String str) {
|
|
C9697dol c9697dol;
|
|
C9696dok c9696dok;
|
|
String str2 = str;
|
|
C14957gcv.e(str2, "");
|
|
try {
|
|
C9698dom c9698dom = this.b.a;
|
|
C14957gcv.e(str2, "");
|
|
Object fromJson = new Gson().fromJson(c9698dom.b.c(str2), (Class<Object>) C9697dol.class);
|
|
C14957gcv.c(fromJson, "");
|
|
c9697dol = (C9697dol) fromJson;
|
|
c9696dok = c9697dol.a;
|
|
} catch (Exception e) {
|
|
this.d.e(e);
|
|
}
|
|
if (c9696dok == null) {
|
|
throw new EntityMappingException("Mandatory field is missing.");
|
|
}
|
|
Boolean bool = c9696dok.d;
|
|
if (bool != null) {
|
|
boolean booleanValue = bool.booleanValue();
|
|
Boolean bool2 = c9696dok.a;
|
|
if (bool2 != null) {
|
|
boolean booleanValue2 = bool2.booleanValue();
|
|
List<C9691dof> list = c9696dok.b;
|
|
if (list != null) {
|
|
List<C9706dou> a = C9696dok.a(list);
|
|
List<C9695doj> list2 = c9696dok.e;
|
|
if (list2 != null) {
|
|
C9708dow c9708dow = new C9708dow(booleanValue, booleanValue2, a, C9696dok.d(list2));
|
|
C9636dnY c9636dnY = c9697dol.c;
|
|
if (c9636dnY != null) {
|
|
Boolean bool3 = c9636dnY.b;
|
|
if (bool3 != null) {
|
|
boolean booleanValue3 = bool3.booleanValue();
|
|
List<C9632dnU> list3 = c9636dnY.a;
|
|
if (list3 != null) {
|
|
List<C9632dnU> list4 = list3;
|
|
C14957gcv.e(list4, "");
|
|
ArrayList arrayList = new ArrayList(list4 instanceof Collection ? list4.size() : 10);
|
|
for (C9632dnU c9632dnU : list4) {
|
|
arrayList.add(new C9704dos(c9632dnU.d, c9632dnU.c, c9632dnU.e, c9632dnU.a));
|
|
}
|
|
C9705dot c9705dot = new C9705dot(arrayList, booleanValue3);
|
|
C14851gaI c14851gaI = c9697dol.d;
|
|
if (c14851gaI == null) {
|
|
c14851gaI = C14851gaI.c;
|
|
}
|
|
this.d.c(new C9703dor(c9708dow, c9705dot, c14851gaI));
|
|
return C14866gag.c;
|
|
}
|
|
throw new EntityMappingException("Mandatory field is missing.");
|
|
}
|
|
throw new EntityMappingException("Mandatory field is missing.");
|
|
}
|
|
throw new EntityMappingException("Mandatory field is missing.");
|
|
}
|
|
throw new EntityMappingException("Mandatory field is missing.");
|
|
}
|
|
throw new EntityMappingException("Mandatory field is missing.");
|
|
}
|
|
throw new EntityMappingException("Mandatory field is missing.");
|
|
}
|
|
throw new EntityMappingException("Mandatory field is missing.");
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public HBt(C9699don c9699don, InterfaceC13178fSz<C9703dor> interfaceC13178fSz) {
|
|
super(1);
|
|
this.b = c9699don;
|
|
this.d = interfaceC13178fSz;
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC9679doT
|
|
public final AbstractC13175fSw<C9703dor> e() {
|
|
AbstractC13175fSw<C9703dor> d = AbstractC13175fSw.d(new fSB(this) { // from class: o.dov
|
|
private C9699don c;
|
|
|
|
@Override // o.fSB
|
|
public final void d(InterfaceC13178fSz interfaceC13178fSz) {
|
|
C9699don c9699don = this.c;
|
|
C14957gcv.e(c9699don, "");
|
|
c9699don.b.b(new C9699don.HBt(c9699don, interfaceC13178fSz));
|
|
}
|
|
|
|
{
|
|
this.c = this;
|
|
}
|
|
});
|
|
C14957gcv.c(d, "");
|
|
return d;
|
|
}
|
|
}
|