package o; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.text.TextUtils; import java.util.ArrayList; import java.util.List; import o.C15715hv; import o.InterfaceC9407djE; import o.ZI; /* renamed from: o.bUa, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public final class C4243bUa extends ZI implements InterfaceC9407djE.Sts { final C17504xN a; final YpL b; private final Resources e; @Override // o.InterfaceC9407djE.Sts public final /* bridge */ /* synthetic */ void e(InterfaceC9407djE.RVV rvv) { super.e((C4243bUa) rvv); } @InterfaceC13391fZD public C4243bUa(C16903sI c16903sI, Resources resources, YpL ypL, C17504xN c17504xN) { super(c16903sI); this.e = resources; this.b = ypL; this.a = c17504xN; } @Override // o.InterfaceC9407djE.Sts public final C0968So a() { if (!c()) { return null; } return this.a.e(this.b.e.d().l.get(0)); } private boolean c() { List arrayList = new ArrayList(); rzT d = this.b.e.d(); if (d != null) { arrayList = d.l; } return (arrayList == null || arrayList.isEmpty()) ? false : true; } @Override // o.InterfaceC9407djE.Sts public final void d(String str, final String str2, final String str3) { final Bitmap VZ_ = C6583cXR.VZ_(str, 600, 600, BitmapFactory.decodeResource(this.e, C15715hv.IeS.thai_qr_logo), 5.0d); ZI.IeS ieS = new ZI.IeS(VZ_, str2, str3) { // from class: o.bUg private String a; private String b; private Bitmap c; @Override // o.ZI.IeS public final void e(Object obj) { Bitmap bitmap = this.c; String str4 = this.a; String str5 = this.b; InterfaceC9407djE.RVV rvv = (InterfaceC9407djE.RVV) obj; rvv.ain_(bitmap); rvv.c(str4); rvv.a(str5); rvv.a(false); } { this.c = VZ_; this.a = str2; this.b = str3; } }; if (this.f != 0) { ieS.e(this.f); } } @Override // o.InterfaceC9407djE.Sts public final String d() { C0646LgD c0646LgD = this.b.c; if (c0646LgD != null) { return c0646LgD.a; } return null; } @Override // o.InterfaceC9407djE.Sts public final void c(String str) { C0646LgD c0646LgD = this.b.c; if (c0646LgD != null) { C14957gcv.e(str, ""); c0646LgD.a = str; } } @Override // o.InterfaceC9407djE.Sts public final void b() { final C0646LgD c0646LgD = this.b.c; if (c0646LgD == null) { ZI.IeS ieS = new ZI.IeS() { // from class: o.bTZ @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9407djE.RVV) obj).a(); } }; if (this.f != 0) { ieS.e(this.f); return; } return; } final Bitmap VZ_ = C6583cXR.VZ_(c0646LgD.a, 600, 600, BitmapFactory.decodeResource(this.e, C15715hv.IeS.thai_qr_logo), 5.0d); if (c()) { final tDs tds = this.b.e.d().l.get(0); ZI.IeS ieS2 = new ZI.IeS(this, tds) { // from class: o.bTX private tDs b; private C4243bUa e; @Override // o.ZI.IeS public final void e(Object obj) { C4243bUa c4243bUa = this.e; tDs tds2 = this.b; InterfaceC9407djE.RVV rvv = (InterfaceC9407djE.RVV) obj; rvv.d(c4243bUa.a.e(tds2)); if (!TextUtils.isEmpty(tds2.e.m)) { rvv.d(tds2.e.m); } else { rvv.e(); } } { this.e = this; this.b = tds; } }; if (this.f != 0) { ieS2.e(this.f); } } else { ZI.IeS ieS3 = new ZI.IeS() { // from class: o.bUb @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9407djE.RVV) obj).e(); } }; if (this.f != 0) { ieS3.e(this.f); } } ZI.IeS ieS4 = new ZI.IeS(this, VZ_, c0646LgD) { // from class: o.bTY private C4243bUa c; private C0646LgD d; private Bitmap e; @Override // o.ZI.IeS public final void e(Object obj) { C4243bUa c4243bUa = this.c; Bitmap bitmap = this.e; C0646LgD c0646LgD2 = this.d; InterfaceC9407djE.RVV rvv = (InterfaceC9407djE.RVV) obj; rvv.ain_(bitmap); rvv.c(null); rvv.a((String) null); rvv.a(true); if (!c4243bUa.b.g() || c0646LgD2.e == null) { return; } rvv.e(c0646LgD2.e); } { this.c = this; this.e = VZ_; this.d = c0646LgD; } }; if (this.f != 0) { ieS4.e(this.f); } } }