package o; import com.google.gson.Gson; import com.scb.phone.data.entity.transfer.SingleDataEntity; import com.scb.phone.data.network.api.justforyou.JustForYouApi; import java.util.Map; /* loaded from: classes3.dex */ public final class Cyl implements InterfaceC10705eMY { private final JustForYouApi a; final C10366eCD b; final FmD d; private final String e; @InterfaceC13391fZD public Cyl(JustForYouApi justForYouApi, C10366eCD c10366eCD, FmD fmD, String str) { C14957gcv.e(justForYouApi, ""); C14957gcv.e(c10366eCD, ""); C14957gcv.e(fmD, ""); C14957gcv.e(str, ""); this.a = justForYouApi; this.b = c10366eCD; this.d = fmD; this.e = str; } /* loaded from: classes3.dex */ static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR, Uyi> { private Cyl b; @Override // o.InterfaceC14894gbR public final /* synthetic */ Uyi invoke(SingleDataEntity singleDataEntity) { C10366eCD c10366eCD = this.b.b; Bae data = singleDataEntity.getData(); C14957gcv.c(data, ""); return C10366eCD.e(data); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ HBt(Cyl cyl) { super(1); this.b = cyl; } } /* loaded from: classes3.dex */ static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR { private Cyl d; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Uyi uyi) { this.d.d.c(uyi); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ IeS(Cyl cyl) { super(1); this.d = cyl; } } @Override // o.InterfaceC10705eMY public final String e() { return this.d.a.getString("JUST_FOR_YOU_DEEPLINK_VERSION_KEY", null); } @Override // o.InterfaceC10705eMY public final void a(String str) { C14957gcv.e(str, ""); FmD fmD = this.d; C14957gcv.e(str, ""); fmD.a.edit().putString("JUST_FOR_YOU_DEEPLINK_VERSION_KEY", str).apply(); } @Override // o.InterfaceC10705eMY public final void b() { this.d.a.edit().remove("JUST_FOR_YOU_DEEPLINK_VERSION_KEY").apply(); } @Override // o.InterfaceC10705eMY public final Map a() { return this.d.e(); } @Override // o.InterfaceC10705eMY public final void e(Map map) { C14957gcv.e(map, ""); FmD fmD = this.d; C14957gcv.e(map, ""); fmD.a.edit().putString("JUST_FOR_YOU_SHOWED_INSIGHT_LIST_KEY", new Gson().toJson(map)).apply(); } @Override // o.InterfaceC10705eMY public final AbstractC13163fSk c() { if (this.d.e != null) { AbstractC13163fSk just = AbstractC13163fSk.just(this.d.e); C14957gcv.c(just, ""); return just; } AbstractC13163fSk> insightsHeader = this.a.insightsHeader(this.e); final HBt hBt = new HBt(this); AbstractC13163fSk map = insightsHeader.map(new fSS(hBt) { // from class: o.CfL private InterfaceC14894gbR d; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.d; C14957gcv.e(interfaceC14894gbR, ""); return (Uyi) interfaceC14894gbR.invoke(obj); } { this.d = hBt; } }); final IeS ieS = new IeS(this); AbstractC13163fSk doOnNext = map.doOnNext(new fSQ(ieS) { // from class: o.rzH private InterfaceC14894gbR e; @Override // o.fSQ public final void c(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.e; C14957gcv.e(interfaceC14894gbR, ""); interfaceC14894gbR.invoke(obj); } { this.e = ieS; } }); C14957gcv.c(doOnNext, ""); return doOnNext; } @Override // o.InterfaceC10705eMY public final boolean d() { return this.d.d; } @Override // o.InterfaceC10705eMY public final void i() { this.d.c(null); } @Override // o.InterfaceC10705eMY public final void c(boolean z) { this.d.d = z; } }