package o; import android.content.SharedPreferences; import android.content.res.Resources; import java.util.ArrayList; import java.util.List; import o.C15715hv; import o.PRA; /* loaded from: classes3.dex */ public final class EC extends C16157lj { @InterfaceC13391fZD public EC(Resources resources, SharedPreferences sharedPreferences) { super(resources, sharedPreferences); } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ XL b(jSX jsx) { return new XL(jsx.f, jsx.i, jsx.d, jsx.c, jsx.e, jsx.b, jsx.a); } public final C1191Xp d(kkD kkd, C1189Xo c1189Xo) { List list; TO to; String str = kkd.s; if (!"OWN".equalsIgnoreCase(c1189Xo.aE) && !"SCB".equalsIgnoreCase(c1189Xo.aE)) { if (!"OTHER".equalsIgnoreCase(c1189Xo.aE)) { if (!"MOB".equalsIgnoreCase(c1189Xo.aE)) { if ("CID".equalsIgnoreCase(h(c1189Xo.aE))) { c1189Xo.s = j(c1189Xo.t); c1189Xo.a(c(c1189Xo.S, true)); } } else { c1189Xo.s = h(c1189Xo.t); c1189Xo.a(c(c1189Xo.S, true)); } } else { c1189Xo.s = f(c1189Xo.t); c1189Xo.a(i(c1189Xo.S)); } } else { c1189Xo.s = i(c1189Xo.t); c1189Xo.a(i(c1189Xo.S)); } String string = c1189Xo.at == null ? this.e.getString(C15715hv.tOB.transfer_success_title) : e(C15715hv.tOB.transfer_successful_001); if ("PURCHASE_TRANSFER_FUNCTION".equalsIgnoreCase(c1189Xo.j())) { string = this.e.getString(C15715hv.tOB.successful_purchase_payment); } C1191Xp c1191Xp = new C1191Xp(); c1191Xp.r = String.format(e(C15715hv.tOB.reference_id), str); c1191Xp.l = str; c1191Xp.s = string; c1191Xp.p = c1189Xo; c1191Xp.t = c(Double.valueOf(kkd.i)); c1191Xp.n = kkd.g; Jky jky = kkd.c; if (jky == null) { to = new TO(new ArrayList()); } else { List list2 = jky.e; if (list2 == null) { list = new ArrayList(); } else { YKU yku = new YKU(list2); list = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw() { // from class: o.ED @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { return EC.b((jSX) obj); } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); } to = new TO(list); } c1191Xp.j = to; c1191Xp.f = d(kkd.q); return c1191Xp; } }