package o; import android.content.res.Resources; import java.util.Arrays; import o.C15715hv; import o.InterfaceC9170def; import o.ZI; /* loaded from: classes4.dex */ public final class aGD extends ZI { public C0544Jb a; public IU b; public final InterfaceC3521azC c; public final fSC d; public final zHQ e; public boolean g; public final EPT h; private C0565Jo i; private final Resources l; private final C16526pA m; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public aGD(C16903sI c16903sI, zHQ zhq, C16526pA c16526pA, EPT ept, Resources resources, InterfaceC3521azC interfaceC3521azC) { super(c16903sI); C14957gcv.e(zhq, ""); C14957gcv.e(c16526pA, ""); C14957gcv.e(ept, ""); C14957gcv.e(resources, ""); C14957gcv.e(interfaceC3521azC, ""); this.e = zhq; this.m = c16526pA; this.h = ept; this.l = resources; this.c = interfaceC3521azC; this.d = new fSC(); } /* loaded from: classes4.dex */ public static final class HBt { private HBt() { } public /* synthetic */ HBt(byte b) { this(); } } /* loaded from: classes4.dex */ public static final class IeS implements InterfaceC13176fSx { private aGD b; public IeS(aGD agd) { this.b = agd; } @Override // o.InterfaceC13176fSx public final /* synthetic */ void e(ooS oos) { ooS oos2 = oos; C14957gcv.e(oos2, ""); aGD.d(this.b); aGD agd = this.b; C16526pA unused = agd.m; agd.i = C16526pA.b(oos2); aGD agd2 = this.b; IU iu = agd2.b; if (iu == null) { C14957gcv.a(""); iu = null; } aGD.a(agd2, iu); aGD.c(this.b); final aGD agd3 = this.b; ZI.IeS ieS = new ZI.IeS(agd3) { // from class: o.aGO private aGD e; @Override // o.ZI.IeS public final void e(Object obj) { C0565Jo c0565Jo; aGD agd4 = this.e; InterfaceC9170def.LWm lWm = (InterfaceC9170def.LWm) obj; C14957gcv.e(agd4, ""); c0565Jo = agd4.i; if (c0565Jo == null) { C14957gcv.a(""); c0565Jo = null; } lWm.d(c0565Jo); } { this.e = agd3; } }; if (agd3.f != 0) { ieS.e(agd3.f); } } @Override // o.InterfaceC13176fSx public final void onError(Throwable th) { C14957gcv.e(th, ""); aGD.d(this.b); aGD agd = this.b; ZI.IeS ieS = new ZI.IeS() { // from class: o.aGP @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9170def.LWm) obj).i(); } }; if (agd.f != 0) { ieS.e(agd.f); } } @Override // o.InterfaceC13176fSx public final void onSubscribe(fSJ fsj) { C14957gcv.e(fsj, ""); } } public final String a(String str) { C14957gcv.e(str, ""); C0565Jo c0565Jo = this.i; if (c0565Jo == null) { C14957gcv.a(""); c0565Jo = null; } String str2 = c0565Jo.c; if (!(str2 == null || gdZ.d((CharSequence) str2))) { if (C14957gcv.b((Object) str, (Object) "HEADER")) { String string = this.l.getString(C15715hv.tOB.debit_card_cvv_title_short); C14957gcv.c((Object) string, ""); return string; } if (C14957gcv.b((Object) str, (Object) "DESCRIPTION")) { String string2 = this.l.getString(C15715hv.tOB.debit_card_cvv_desc); C14957gcv.c((Object) string2, ""); return string2; } String string3 = this.l.getString(C15715hv.tOB.debit_card_important_cvv_desc); C14957gcv.c((Object) string3, ""); return string3; } if (C14957gcv.b((Object) str, (Object) "HEADER")) { String string4 = this.l.getString(C15715hv.tOB.debit_card_cvc_title_short); C14957gcv.c((Object) string4, ""); return string4; } if (C14957gcv.b((Object) str, (Object) "DESCRIPTION")) { String string5 = this.l.getString(C15715hv.tOB.debit_card_cvc_desc); C14957gcv.c((Object) string5, ""); return string5; } String string6 = this.l.getString(C15715hv.tOB.debit_card_important_cvc_desc); C14957gcv.c((Object) string6, ""); return string6; } public static /* synthetic */ void c(aGD agd, InterfaceC9170def.LWm lWm) { C14957gcv.e(agd, ""); IU iu = agd.b; if (iu == null) { C14957gcv.a(""); iu = null; } if (1 == iu.v()) { if (agd.g) { lWm.j(); return; } if (agd.a != null) { IU iu2 = agd.b; if (iu2 == null) { C14957gcv.a(""); iu2 = null; } String str = (String) IU.e(new Object[]{iu2}, -103287250, 103287254, System.identityHashCode(iu2)); if (!(str == null || gdZ.d((CharSequence) str))) { C0544Jb c0544Jb = agd.a; String str2 = c0544Jb != null ? c0544Jb.b : null; if (!(str2 == null || gdZ.d((CharSequence) str2))) { IU iu3 = agd.b; if (iu3 == null) { C14957gcv.a(""); iu3 = null; } String str3 = (String) IU.e(new Object[]{iu3}, -103287250, 103287254, System.identityHashCode(iu3)); if (str3 == null) { str3 = ""; } C0544Jb c0544Jb2 = agd.a; String str4 = c0544Jb2 != null ? c0544Jb2.b : null; lWm.c(str3, str4 != null ? str4 : ""); return; } } } lWm.e(); return; } lWm.e(); } public static /* synthetic */ void b(final aGD agd, InterfaceC9170def.LWm lWm) { C14957gcv.e(agd, ""); C0565Jo c0565Jo = agd.i; C0565Jo c0565Jo2 = null; if (c0565Jo == null) { C14957gcv.a(""); c0565Jo = null; } String str = c0565Jo.c; if (!(str == null || gdZ.d((CharSequence) str))) { C0565Jo c0565Jo3 = agd.i; if (c0565Jo3 == null) { C14957gcv.a(""); } else { c0565Jo2 = c0565Jo3; } String str2 = c0565Jo2.c; lWm.c(str2 != null ? str2 : ""); } else { lWm.c(); } ZI.IeS ieS = new ZI.IeS(agd) { // from class: o.aGK private aGD a; @Override // o.ZI.IeS public final void e(Object obj) { aGD.c(this.a, (InterfaceC9170def.LWm) obj); } { this.a = agd; } }; if (agd.f != 0) { ieS.e(agd.f); } } public static /* synthetic */ void e(String str, String str2, aGD agd, String str3, InterfaceC9170def.LWm lWm) { C14957gcv.e(agd, ""); C14957gcv.e(str3, ""); gcH gch = gcH.d; String format = String.format("%s (%s)", Arrays.copyOf(new Object[]{str, str2}, 2)); C14957gcv.c((Object) format, ""); lWm.e(format); IU iu = agd.b; if (iu == null) { C14957gcv.a(""); iu = null; } String x = iu.x(); lWm.b(x != null ? x : ""); lWm.a(); if (str3.length() > 0) { lWm.a(str3); } } public static /* synthetic */ void e(IU iu, InterfaceC9170def.LWm lWm) { C14957gcv.e(iu, ""); if (C14957gcv.b((Object) "Y", IU.e(new Object[]{iu}, 1130200500, -1130200500, System.identityHashCode(iu)))) { lWm.f(); } else { lWm.d(); } } public static final /* synthetic */ void c(final aGD agd) { ZI.IeS ieS = new ZI.IeS(agd) { // from class: o.aGI private aGD d; @Override // o.ZI.IeS public final void e(Object obj) { aGD.b(this.d, (InterfaceC9170def.LWm) obj); } { this.d = agd; } }; if (agd.f != 0) { ieS.e(agd.f); } } public static final /* synthetic */ void d(aGD agd) { if (agd.f != 0) { agd.f.ar_(); } } public static final /* synthetic */ void a(aGD agd, final IU iu) { ZI.IeS ieS = new ZI.IeS(iu) { // from class: o.aGH private IU e; @Override // o.ZI.IeS public final void e(Object obj) { aGD.e(this.e, (InterfaceC9170def.LWm) obj); } { this.e = iu; } }; if (agd.f != 0) { ieS.e(agd.f); } } static { new HBt((byte) 0); } }