package o; import android.content.SharedPreferences; import com.scb.phone.data.entity.transfer.SingleDataEntity; import com.scb.phone.data.network.api.pointx.PointXApi; import com.scb.phone.data.network.service.pointx.PointXTermAndConditionService; import com.scb.phone.domain.entity.mwpartner.EntityMappingException; import org.threeten.bp.OffsetDateTime; /* loaded from: classes3.dex */ public final class opJ implements vMS { private final PointXApi a; private final SharedPreferences b; private final PointXTermAndConditionService c; final AHA d; final zNI e; private final String h; @InterfaceC13391fZD public opJ(SharedPreferences sharedPreferences, PointXApi pointXApi, PointXTermAndConditionService pointXTermAndConditionService, AHA aha, zNI zni, String str) { C14957gcv.e(sharedPreferences, ""); C14957gcv.e(pointXApi, ""); C14957gcv.e(pointXTermAndConditionService, ""); C14957gcv.e(aha, ""); C14957gcv.e(zni, ""); C14957gcv.e(str, ""); this.b = sharedPreferences; this.a = pointXApi; this.c = pointXTermAndConditionService; this.d = aha; this.e = zni; this.h = str; } /* loaded from: classes3.dex */ static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR, Kco> { private opJ a; @Override // o.InterfaceC14894gbR public final /* synthetic */ Kco invoke(SingleDataEntity singleDataEntity) { AHA aha = this.a.d; C3097arA data = singleDataEntity.getData(); C14957gcv.c(data, ""); return AHA.a(data); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ HBt(opJ opj) { super(1); this.a = opj; } } @Override // o.vMS public final AbstractC13175fSw a(C6312cP c6312cP) { C14957gcv.e(c6312cP, ""); PointXApi pointXApi = this.a; String string = this.b.getString("USER_MODE", gHK.INDIVIDUAL.mode); if (string == null) { string = gHK.INDIVIDUAL.mode; } AbstractC13175fSw> pointInquiry = pointXApi.pointInquiry(string, c6312cP.b, this.h); final HBt hBt = new HBt(this); C13372fYk c13372fYk = new C13372fYk(pointInquiry, new fSS(hBt) { // from class: o.VqS private InterfaceC14894gbR d; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.d; C14957gcv.e(interfaceC14894gbR, ""); return (Kco) interfaceC14894gbR.invoke(obj); } { this.d = hBt; } }); C14957gcv.c(c13372fYk, ""); return c13372fYk; } /* loaded from: classes3.dex */ static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR, tnu> { private opJ a; @Override // o.InterfaceC14894gbR public final /* synthetic */ tnu invoke(SingleDataEntity singleDataEntity) { AHA aha = this.a.d; nKI data = singleDataEntity.getData(); C14957gcv.c(data, ""); return AHA.a(data); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ LWm(opJ opj) { super(1); this.a = opj; } } @Override // o.vMS public final AbstractC13175fSw e(C6243cN c6243cN) { C14957gcv.e(c6243cN, ""); AbstractC13175fSw> pointRateInquiry = this.a.pointRateInquiry(c6243cN); final LWm lWm = new LWm(this); C13372fYk c13372fYk = new C13372fYk(pointRateInquiry, new fSS(lWm) { // from class: o.vMM private InterfaceC14894gbR c; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.c; C14957gcv.e(interfaceC14894gbR, ""); return (tnu) interfaceC14894gbR.invoke(obj); } { this.c = lWm; } }); C14957gcv.c(c13372fYk, ""); return c13372fYk; } @Override // o.vMS public final AbstractC13175fSw a(String str) { C14957gcv.e(str, ""); return this.c.getPointConsent(str); } /* loaded from: classes3.dex */ static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR, nET> { private opJ c; @Override // o.InterfaceC14894gbR public final /* synthetic */ nET invoke(SingleDataEntity singleDataEntity) { zNI zni = this.c.e; C17243vDx data = singleDataEntity.getData(); C14957gcv.c(data, ""); C17243vDx c17243vDx = data; C14957gcv.e(c17243vDx, ""); return new nET(zNI.f(c17243vDx.a), zNI.f(c17243vDx.b), zNI.f(c17243vDx.c), zNI.f(c17243vDx.e), zNI.f(c17243vDx.d)); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ IeS(opJ opj) { super(1); this.c = opj; } } @Override // o.vMS public final AbstractC13175fSw e(C6380cR c6380cR) { C14957gcv.e(c6380cR, ""); AbstractC13175fSw> pointPurchaseVerification = this.a.pointPurchaseVerification(c6380cR); final IeS ieS = new IeS(this); C13372fYk c13372fYk = new C13372fYk(pointPurchaseVerification, new fSS(ieS) { // from class: o.aTt private InterfaceC14894gbR a; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.a; C14957gcv.e(interfaceC14894gbR, ""); return (nET) interfaceC14894gbR.invoke(obj); } { this.a = ieS; } }); C14957gcv.c(c13372fYk, ""); return c13372fYk; } /* loaded from: classes3.dex */ static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR, DGg> { private opJ b; @Override // o.InterfaceC14894gbR public final /* synthetic */ DGg invoke(SingleDataEntity singleDataEntity) { zNI zni = this.b.e; YXS data = singleDataEntity.getData(); C14957gcv.c(data, ""); YXS yxs = data; C14957gcv.e(yxs, ""); String str = yxs.b; String str2 = str; if (str2 != null && str2.length() != 0) { OffsetDateTime offsetDateTime = (OffsetDateTime) ZTC.e(new Object[]{str, null}, 267499366, -267499366, (int) System.currentTimeMillis()); String str3 = yxs.d; String str4 = str3; if (str4 == null || str4.length() == 0) { throw new EntityMappingException("data must not be null or empty"); } String str5 = yxs.a; String str6 = str5; if (str6 == null || str6.length() == 0) { throw new EntityMappingException("data must not be null or empty"); } String str7 = yxs.e; String str8 = str7; if (str8 == null || str8.length() == 0) { throw new EntityMappingException("data must not be null or empty"); } String str9 = yxs.c; String str10 = str9; if (str10 != null && str10.length() != 0) { return new DGg(offsetDateTime, str3, str5, str7, str9); } throw new EntityMappingException("data must not be null or empty"); } throw new EntityMappingException("data must not be null or empty"); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ RVV(opJ opj) { super(1); this.b = opj; } } @Override // o.vMS public final AbstractC13175fSw c(C6347cQ c6347cQ) { C14957gcv.e(c6347cQ, ""); AbstractC13175fSw> pointPurchaseConfirmation = this.a.pointPurchaseConfirmation(c6347cQ); final RVV rvv = new RVV(this); C13372fYk c13372fYk = new C13372fYk(pointPurchaseConfirmation, new fSS(rvv) { // from class: o.DTn private InterfaceC14894gbR b; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.b; C14957gcv.e(interfaceC14894gbR, ""); return (DGg) interfaceC14894gbR.invoke(obj); } { this.b = rvv; } }); C14957gcv.c(c13372fYk, ""); return c13372fYk; } }