235 lines
7.6 KiB
Java
235 lines
7.6 KiB
Java
|
package o;
|
||
|
|
||
|
import com.google.gson.Gson;
|
||
|
import java.util.Iterator;
|
||
|
import java.util.List;
|
||
|
import java.util.Map;
|
||
|
import o.ZI;
|
||
|
|
||
|
/* loaded from: classes4.dex */
|
||
|
public final class cMX extends ZI<InterfaceC6651cZC> {
|
||
|
private double c;
|
||
|
private final REU e;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
@InterfaceC13391fZD
|
||
|
public cMX(REU reu, C16903sI c16903sI) {
|
||
|
super(c16903sI);
|
||
|
C14957gcv.e(reu, "");
|
||
|
this.e = reu;
|
||
|
}
|
||
|
|
||
|
public final void d(String str, final String str2, final double d, final double d2) {
|
||
|
C14957gcv.e(str, "");
|
||
|
Double c = C6583cXR.c(str);
|
||
|
C14957gcv.c(c, "");
|
||
|
this.c = c.doubleValue();
|
||
|
ZI.IeS ieS = new ZI.IeS(this, str2, d, d2) { // from class: o.cNh
|
||
|
private double a;
|
||
|
private cMX b;
|
||
|
private double c;
|
||
|
private String e;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
cMX.e(this.b, this.e, this.c, this.a, (InterfaceC6651cZC) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = this;
|
||
|
this.e = str2;
|
||
|
this.c = d;
|
||
|
this.a = d2;
|
||
|
}
|
||
|
};
|
||
|
if (this.f != 0) {
|
||
|
ieS.e(this.f);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private final String c(String str) {
|
||
|
Map<String, String> map;
|
||
|
Pve d = d();
|
||
|
String str2 = (d == null || (map = d.a) == null) ? null : map.get(str);
|
||
|
if (str2 == null) {
|
||
|
str2 = "";
|
||
|
}
|
||
|
if (str2.length() == 0) {
|
||
|
return str2;
|
||
|
}
|
||
|
dSU dsu = (dSU) new Gson().fromJson(str2, dSU.class);
|
||
|
if (C14957gcv.b((Object) "en", (Object) this.e.d.M())) {
|
||
|
return dsu.b;
|
||
|
}
|
||
|
return dsu.a;
|
||
|
}
|
||
|
|
||
|
private final Pve d() {
|
||
|
List<Pve> list;
|
||
|
Hfu j = this.e.c.j();
|
||
|
Object obj = null;
|
||
|
if (j == null || (list = j.a) == null) {
|
||
|
return null;
|
||
|
}
|
||
|
Iterator<T> it = list.iterator();
|
||
|
while (true) {
|
||
|
if (!it.hasNext()) {
|
||
|
break;
|
||
|
}
|
||
|
Object next = it.next();
|
||
|
if (C14957gcv.b((Object) "QRCODE_REPAYMENT", (Object) ((Pve) next).c)) {
|
||
|
obj = next;
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
return (Pve) obj;
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void b(String str, InterfaceC6651cZC interfaceC6651cZC) {
|
||
|
C14957gcv.e(str, "");
|
||
|
interfaceC6651cZC.a(str);
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void e(cMX cmx, InterfaceC6651cZC interfaceC6651cZC) {
|
||
|
C14957gcv.e(cmx, "");
|
||
|
interfaceC6651cZC.a(cmx.c);
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void c(String str, InterfaceC6651cZC interfaceC6651cZC) {
|
||
|
C14957gcv.e(str, "");
|
||
|
interfaceC6651cZC.a(str);
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void a(String str, InterfaceC6651cZC interfaceC6651cZC) {
|
||
|
C14957gcv.e(str, "");
|
||
|
interfaceC6651cZC.a(str);
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void a(double d, InterfaceC6651cZC interfaceC6651cZC) {
|
||
|
String str = (String) C6583cXR.c(new Object[]{Double.valueOf(d)}, -150997759, 150997764, (int) System.currentTimeMillis());
|
||
|
C14957gcv.c((Object) str, "");
|
||
|
interfaceC6651cZC.d(str);
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void e(cMX cmx, String str, double d, double d2, InterfaceC6651cZC interfaceC6651cZC) {
|
||
|
C14957gcv.e(cmx, "");
|
||
|
if (cmx.c < 0.01d) {
|
||
|
interfaceC6651cZC.e(cmx.c("label_customRemark_minimum"));
|
||
|
return;
|
||
|
}
|
||
|
String str2 = str;
|
||
|
if (str2 == null || str2.length() == 0) {
|
||
|
double d3 = cmx.c;
|
||
|
if (d3 < d) {
|
||
|
String c = cmx.c("label_customRemark_nobill");
|
||
|
String str3 = (String) C6583cXR.c(new Object[]{Double.valueOf(d3)}, -150997759, 150997764, (int) System.currentTimeMillis());
|
||
|
C14957gcv.c((Object) str3, "");
|
||
|
final String a = gdZ.a(c, "{amountCustom}", str3);
|
||
|
ZI.IeS ieS = new ZI.IeS(a) { // from class: o.cNg
|
||
|
private String b;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
cMX.a(this.b, (InterfaceC6651cZC) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = a;
|
||
|
}
|
||
|
};
|
||
|
if (cmx.f != 0) {
|
||
|
ieS.e(cmx.f);
|
||
|
return;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
double d4 = cmx.c;
|
||
|
if (d4 > d) {
|
||
|
String c2 = cmx.c("label_customRemark_overPaidOff");
|
||
|
String str4 = (String) C6583cXR.c(new Object[]{Double.valueOf(d)}, -150997759, 150997764, (int) System.currentTimeMillis());
|
||
|
C14957gcv.c((Object) str4, "");
|
||
|
final String a2 = gdZ.a(c2, "{paidOffAmount}", str4);
|
||
|
ZI.IeS ieS2 = new ZI.IeS(a2) { // from class: o.cNd
|
||
|
private String d;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
cMX.d(this.d, (InterfaceC6651cZC) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = a2;
|
||
|
}
|
||
|
};
|
||
|
if (cmx.f != 0) {
|
||
|
ieS2.e(cmx.f);
|
||
|
return;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
if (d4 == d || d4 == d2) {
|
||
|
interfaceC6651cZC.a(cmx.c("label_customRemark_pass"));
|
||
|
return;
|
||
|
}
|
||
|
if (!(str2 == null || gdZ.d((CharSequence) str2))) {
|
||
|
double d5 = cmx.c;
|
||
|
if (d5 > d2) {
|
||
|
String c3 = cmx.c("label_customRemark_overBillAmount");
|
||
|
String str5 = (String) C6583cXR.c(new Object[]{Double.valueOf(d5 - d2)}, -150997759, 150997764, (int) System.currentTimeMillis());
|
||
|
C14957gcv.c((Object) str5, "");
|
||
|
final String a3 = gdZ.a(c3, "{overBillAmount}", str5);
|
||
|
ZI.IeS ieS3 = new ZI.IeS(a3) { // from class: o.cNf
|
||
|
private String a;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
cMX.b(this.a, (InterfaceC6651cZC) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = a3;
|
||
|
}
|
||
|
};
|
||
|
if (cmx.f != 0) {
|
||
|
ieS3.e(cmx.f);
|
||
|
return;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
if (!(str2 == null || gdZ.d((CharSequence) str2))) {
|
||
|
double d6 = cmx.c;
|
||
|
if (d6 < d2) {
|
||
|
String c4 = cmx.c("label_customRemark_lessThanBillAmount");
|
||
|
String str6 = (String) C6583cXR.c(new Object[]{Double.valueOf(d2 - d6)}, -150997759, 150997764, (int) System.currentTimeMillis());
|
||
|
C14957gcv.c((Object) str6, "");
|
||
|
final String a4 = gdZ.a(c4, "{amountRemaining}", str6);
|
||
|
ZI.IeS ieS4 = new ZI.IeS(a4) { // from class: o.cMZ
|
||
|
private String d;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
cMX.c(this.d, (InterfaceC6651cZC) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = a4;
|
||
|
}
|
||
|
};
|
||
|
if (cmx.f != 0) {
|
||
|
ieS4.e(cmx.f);
|
||
|
return;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
interfaceC6651cZC.a();
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void d(String str, InterfaceC6651cZC interfaceC6651cZC) {
|
||
|
C14957gcv.e(str, "");
|
||
|
interfaceC6651cZC.e(str);
|
||
|
}
|
||
|
}
|