package o; import android.content.SharedPreferences; import android.content.res.Resources; import com.scb.phone.presentation.mapper.transferandpay.BaseAssetsDisplayMapper; import java.util.List; import java.util.NoSuchElementException; import o.C15715hv; import o.PRA; /* loaded from: classes3.dex */ public final class CE extends BaseAssetsDisplayMapper { @InterfaceC13391fZD public CE(Resources resources, SharedPreferences sharedPreferences, String str) { super(resources, sharedPreferences, str); } public static /* synthetic */ WI d(CE ce, uUm uum) { WI a = WI.a(); a.s = WQ.RECEIVED; a.k = uum.r; a.q = uum.f9287o; a.j = uum.j; a.h = uum.k; String str = uum.f; if (!str.startsWith("http")) { str = ce.b_(str); } a.f = str; a.p = uum.q == null ? "" : ce.a(uum.q); a.l = uum.t; a.m = uum.s; a.f8430o = uum.l; a.n = uum.h; a.d = ce.c(C15715hv.tOB.gifting_baht, c(Double.valueOf(uum.b))); a.i = ce.b_(uum.a); a.a = ce.b_(uum.e); a.g = d(uum.i); if (!"MOB".equalsIgnoreCase(uum.g)) { if ("CID".equalsIgnoreCase(uum.g)) { a.b = j(uum.m); } else { a.b = i(uum.m); } } else { a.b = h(uum.m); } if (uum.n) { a.t = new WU(ce.e.getString(C15715hv.tOB.gift_received_status_opened), "OPENED"); a.c = ce.b_(uum.d); } else { a.t = new WU(ce.e.getString(C15715hv.tOB.gift_received_status_open_now), "OPEN NOW"); a.c = ce.b_(uum.d); } return a; } public static /* synthetic */ WI e(CE ce, uUm uum) { WI a = WI.a(); a.k = uum.r; a.s = WQ.SENT; a.q = uum.f9287o; a.j = uum.j; a.h = uum.k; String str = uum.f; if (!str.startsWith("http")) { str = ce.b_(str); } a.f = str; a.p = uum.q == null ? "" : ce.a(uum.q); a.l = uum.p; a.m = uum.s; a.i = ce.b_(uum.a); a.c = ce.b_(uum.c); a.d = c(Double.valueOf(uum.b)); a.g = d(uum.i); a.f8430o = uum.l; if ("MOB".equalsIgnoreCase(uum.g)) { a.b = h(uum.m); } else if ("CID".equalsIgnoreCase(uum.g)) { a.b = j(uum.m); } else { a.b = i(uum.m); } return a; } /* JADX WARN: Multi-variable type inference failed */ public final WL e(jxC jxc) { zEQ d; WL wl = new WL(); wl.a = a(jxc.e, jxc.d); YKU yku = new YKU(jxc.a); wl.e = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(this) { // from class: o.CG private CE d; @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { WP e; e = this.d.e((XDQ) obj); return e; } { this.d = this; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); YKU yku2 = new YKU(jxc.a); YKU yku3 = new YKU(yku2.a, new GEP(yku2.b, new Jel() { // from class: o.CK @Override // o.Jel public final boolean e(Object obj) { boolean booleanValue; booleanValue = ((Boolean) XDQ.c(new Object[]{r1}, 1635820003, -1635820003, System.identityHashCode((XDQ) obj))).booleanValue(); return booleanValue; } })); if (yku3.b.hasNext()) { d = zEQ.a(yku3.b.next()); } else { d = zEQ.d(); } T t = d.d; if (t != 0) { wl.d = e((XDQ) t); return wl; } throw new NoSuchElementException("No value present"); } /* JADX INFO: Access modifiers changed from: private */ public WP e(XDQ xdq) { WP wp = new WP(); wp.e = b_(xdq.d()); wp.c = ((Boolean) XDQ.c(new Object[]{xdq}, 1635820003, -1635820003, System.identityHashCode(xdq))).booleanValue(); wp.d = b_(xdq.a()); wp.b = o(xdq.e()); wp.a = xdq.a(); return wp; } }