package o; import com.scb.phone.data.entity.transfer.SingleDataEntity; import java.util.List; import java.util.Objects; import o.PRA; import org.threeten.bp.OffsetDateTime; /* loaded from: classes3.dex */ public final class Zvk implements TcE { private final StG a; private final NnA b; final npS d; private final String e; @InterfaceC13391fZD public Zvk(String str, StG stG, NnA nnA, npS nps) { this.a = stG; this.d = nps; this.b = nnA; this.e = str; } @Override // o.TcE public final AbstractC13163fSk c(String str) { return this.a.b.getReceivedGifting(str).flatMap(new fSS(this) { // from class: o.OhJ private Zvk d; @Override // o.fSS public final Object a(Object obj) { final npS nps = this.d.d; yOo yoo = (yOo) ((SingleDataEntity) obj).getData(); C0662Lpo c0662Lpo = new C0662Lpo(); c0662Lpo.a = yoo.c(); c0662Lpo.e = yoo.b(); YKU yku = new YKU(yoo.d); c0662Lpo.c = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(nps) { // from class: o.sOC private npS e; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { return npS.d((TAx) obj2); } { this.e = nps; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); return AbstractC13163fSk.just(c0662Lpo); } { this.d = this; } }); } @Override // o.TcE public final AbstractC13163fSk e(String str, final String str2) { return this.a.b.getSentGifting(str).flatMap(new fSS(this, str2) { // from class: o.qqO private Zvk b; private String d; @Override // o.fSS public final Object a(Object obj) { Zvk zvk = this.b; String str3 = this.d; npS nps = zvk.d; C3556azl c3556azl = (C3556azl) ((SingleDataEntity) obj).getData(); C0662Lpo c0662Lpo = new C0662Lpo(); c0662Lpo.a = c3556azl.c(); c0662Lpo.e = c3556azl.b(); YKU yku = new YKU(c3556azl.a); c0662Lpo.c = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(nps, str3) { // from class: o.HPC private npS a; private String b; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { return npS.c(this.b, (zje) obj2); } { this.a = nps; this.b = str3; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); return AbstractC13163fSk.just(c0662Lpo); } { this.b = this; this.d = str2; } }); } @Override // o.TcE public final AbstractC13163fSk a() { return this.a.b.getGifts().flatMap(new fSS(this) { // from class: o.oLf private Zvk b; @Override // o.fSS public final Object a(Object obj) { npS nps = this.b.d; JVF jvf = (JVF) ((SingleDataEntity) obj).getData(); C8609dQh c8609dQh = new C8609dQh(); YKU yku = new YKU(jvf.e); c8609dQh.b = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(nps) { // from class: o.BoI private npS c; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { NXs b; b = npS.b((WXu) obj2); return b; } { this.c = nps; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); YKU yku2 = new YKU(jvf.a); c8609dQh.a = (List) new YKU(yku2.a, new wxK(yku2.b, new InterfaceC1244Ytw(nps) { // from class: o.LZO private npS e; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { NXs b; b = npS.b((pTL) obj2); return b; } { this.e = nps; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); return AbstractC13163fSk.just(c8609dQh); } { this.b = this; } }); } @Override // o.TcE public final AbstractC13163fSk d() { return this.a.b.getSharingMomentConfig().flatMap(new fSS(this) { // from class: o.NFL private Zvk e; @Override // o.fSS public final Object a(Object obj) { final npS nps = this.e.d; AeY aeY = ((RGh) ((SingleDataEntity) obj).getData()).a; jxC jxc = new jxC(); jxc.e = aeY.a; jxc.d = aeY.c; YKU yku = new YKU(aeY.b); jxc.a = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(nps) { // from class: o.bva private npS b; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { XDQ e; e = XDQ.c().a(r1.c).d(r1.e).b(r1.b).e(((Leg) obj2).a); return e; } { this.b = nps; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); return AbstractC13163fSk.just(jxc); } { this.e = this; } }); } @Override // o.TcE public final AbstractC13163fSk c(C15607h c15607h) { return this.a.b.putOpenGift(c15607h).flatMap(new fSS() { // from class: o.RmU @Override // o.fSS public final Object a(Object obj) { return AbstractC13163fSk.just(Boolean.TRUE); } }); } @Override // o.TcE public final AbstractC13163fSk e(C12536f c12536f) { AbstractC13163fSk> validatePresent = this.a.b.validatePresent(c12536f); final npS nps = this.d; Objects.requireNonNull(nps); return validatePresent.map(new fSS(nps) { // from class: o.eRj private npS a; @Override // o.fSS public final Object a(Object obj) { return npS.d((SingleDataEntity) obj); } { this.a = nps; } }); } @Override // o.TcE public final AbstractC13163fSk b(C15844j c15844j) { return this.a.b.reviewPresent(c15844j).map(new fSS(this) { // from class: o.KtI private Zvk c; @Override // o.fSS public final Object a(Object obj) { npS nps = this.c.d; return npS.c((QTS) ((SingleDataEntity) obj).getData()); } { this.c = this; } }); } @Override // o.TcE public final AbstractC13163fSk b(C1302a c1302a) { AbstractC13163fSk map = this.a.b.confirmGiftPresent(c1302a).map(new fSS() { // from class: o.bpI @Override // o.fSS public final Object a(Object obj) { return (tCM) ((SingleDataEntity) obj).getData(); } }); final npS nps = this.d; Objects.requireNonNull(nps); return map.map(new fSS(nps) { // from class: o.WCa private npS c; @Override // o.fSS public final Object a(Object obj) { tCM tcm = (tCM) obj; C0761OAw c0761OAw = new C0761OAw(); c0761OAw.h = tcm.f; c0761OAw.j = (OffsetDateTime) ZTC.e(new Object[]{tcm.h, null}, 267499366, -267499366, (int) System.currentTimeMillis()); c0761OAw.g = tcm.j; return c0761OAw; } { this.c = nps; } }); } @Override // o.TcE public final AbstractC13163fSk e(C1302a c1302a) { StG stG = this.a; DiG.e("8101"); DiG.e("8102"); AbstractC13163fSk> doFinally = stG.b.confirmGift(c1302a).doFinally(new Cbf()); final npS nps = this.d; Objects.requireNonNull(nps); return doFinally.map(new fSS(nps) { // from class: o.NrL private npS b; @Override // o.fSS public final Object a(Object obj) { SingleDataEntity singleDataEntity = (SingleDataEntity) obj; tCM tcm = (tCM) singleDataEntity.getData(); C0761OAw c0761OAw = new C0761OAw(); c0761OAw.f = (iJI) ZTC.e(new Object[]{singleDataEntity}, 321450472, -321450471, (int) System.currentTimeMillis()); c0761OAw.h = tcm.f; c0761OAw.j = (OffsetDateTime) ZTC.e(new Object[]{tcm.h, null}, 267499366, -267499366, (int) System.currentTimeMillis()); c0761OAw.g = tcm.j; c0761OAw.d = tcm.c; c0761OAw.e = tcm.b; c0761OAw.a = tcm.d; c0761OAw.i = tcm.i; c0761OAw.b = tcm.e; c0761OAw.c = tcm.a; return c0761OAw; } { this.b = nps; } }); } @Override // o.TcE public final Wnw b() { return this.b.b; } @Override // o.QpH public final void f() { this.b.b = null; } @Override // o.TcE public final void b(Wnw wnw) { this.b.b = wnw; } @Override // o.TcE public final AbstractC13163fSk e(C14801g c14801g) { c14801g.j = this.e; AbstractC13163fSk> verifyMoneyGift = this.a.b.verifyMoneyGift(c14801g); final npS nps = this.d; Objects.requireNonNull(nps); return verifyMoneyGift.map(new fSS(nps) { // from class: o.fdU private npS a; @Override // o.fSS public final Object a(Object obj) { return npS.a((SingleDataEntity) obj); } { this.a = nps; } }); } }