what-the-bank/sources/o/C17632yX.java

161 lines
5.2 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.SharedPreferences;
import android.content.res.Resources;
import java.util.Arrays;
import java.util.List;
import o.C15715hv;
import o.EW;
import o.QK;
import o.QN;
import o.QO;
import o.QR;
import org.threeten.bp.OffsetDateTime;
/* renamed from: o.yX, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C17632yX extends C16181lx {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C17632yX(Resources resources, SharedPreferences sharedPreferences) {
super(resources, sharedPreferences);
C14957gcv.e(resources, "");
C14957gcv.e(sharedPreferences, "");
}
/* renamed from: o.yX$HBt */
/* loaded from: classes3.dex */
public static final class HBt {
private HBt() {
}
public /* synthetic */ HBt(byte b) {
this();
}
}
public final EW b(TN tn, C16819rWs c16819rWs, boolean z) {
C14957gcv.e(tn, "");
C14957gcv.e(c16819rWs, "");
C14957gcv.e(tn, "");
C14957gcv.e(c16819rWs, "");
this.a.clear();
if (z) {
QN.HBt a = QN.a();
a.d = C15715hv.IeS.timer;
a.b = C15715hv.LWm.remittance_request_yellow;
a.f = e(C15715hv.tOB.paynow_success_header_title);
a.i = C15715hv.LWm.remittance_request_yellow;
String str = c16819rWs.i;
if (!gjJ.b((CharSequence) str)) {
str = d(OffsetDateTime.parse(cXG.a(str)));
}
a.a = str;
a.c = c(C15715hv.tOB.ref_id, c16819rWs.f);
this.a.add(new QN(a, (byte) 0));
this.a.add(new QQ(true));
} else {
QN.HBt a2 = QN.a();
a2.d = C15715hv.IeS.ic_check_circle_black_48dp;
a2.f = e(C15715hv.tOB.remittance_transaction_success_header_title);
String str2 = c16819rWs.i;
if (!gjJ.b((CharSequence) str2)) {
str2 = d(OffsetDateTime.parse(cXG.a(str2)));
}
a2.a = str2;
a2.c = c(C15715hv.tOB.ref_id, c16819rWs.f);
this.a.add(new QN(a2, YD.REVAMP_SUCCESS_HEADER, (byte) 0));
this.a.add(new QQ(true));
}
QK.LWm e = QK.e();
e.g = e(C15715hv.tOB.from);
e.h = tn.d.c;
e.a = c(tn.d.d, true);
e.c = tn.d.a;
e.d = C15715hv.IeS.bankicon_remittance;
this.a.add(new QK(e, (byte) 0));
QK.LWm e2 = QK.e();
e2.g = this.e.getString(C15715hv.tOB.to);
e2.h = tn.c.e;
String str3 = tn.c.d;
String substring = str3.substring(0, str3.length() - 4);
C14957gcv.c((Object) substring, "");
String substring2 = str3.substring(str3.length() - 4, str3.length());
C14957gcv.c((Object) substring2, "");
String a3 = new gdW("[0-9+]").a(substring, "*");
StringBuilder sb = new StringBuilder();
sb.append(a3);
sb.append(substring2);
e2.a = sb.toString();
e2.c = tn.c.b;
e2.d = C15715hv.IeS.bankicon_remittance;
e2.k = true;
this.a.add(new QK(e2, (byte) 0));
this.a.add(new QQ());
QO.IeS a4 = QO.a();
String e3 = e(C15715hv.tOB.remittance_review_conversion_rate_title);
C14957gcv.c((Object) e3, "");
a4.g = C2974aoj.b(e3);
a4.h = tn.b;
a4.l = true;
this.a.add(a4.d());
QO.IeS a5 = QO.a();
String e4 = e(C15715hv.tOB.remittance_review_amount_to_send);
C14957gcv.c((Object) e4, "");
a5.g = C2974aoj.b(e4);
a5.h = tn.e;
a5.k = true;
a5.l = true;
this.a.add(a5.d());
QO.IeS a6 = QO.a();
String e5 = e(C15715hv.tOB.remittance_review_amount_recipient_gets);
C14957gcv.c((Object) e5, "");
a6.g = C2974aoj.b(e5);
a6.h = tn.a;
a6.k = true;
a6.l = true;
this.a.add(a6.d());
QO.IeS a7 = QO.a();
String e6 = e(C15715hv.tOB.review_fees);
C14957gcv.c((Object) e6, "");
a7.g = C2974aoj.b(e6);
a7.h = tn.i;
a7.k = true;
this.a.add(a7.d());
this.a.add(new QQ());
QR.LWm b = QR.b();
b.g = e(C15715hv.tOB.remittance_recipient_purpose_input_title);
b.e = tn.g;
b.n = true;
QR qr = new QR(b, (byte) 0);
if (tn.f.length() > 0) {
this.a.add(qr);
QR.LWm b2 = QR.b();
b2.g = e(C15715hv.tOB.remittance_review_note);
b2.e = tn.f;
b2.h = true;
b2.n = true;
this.a.add(new QR(b2, (byte) 0));
} else {
this.a.add(qr);
}
List<EM> list = this.a;
C14957gcv.c(list, "");
gcH gch = gcH.d;
String e7 = e(C15715hv.tOB.paynow_success_slip_file_name);
C14957gcv.c((Object) e7, "");
String format = String.format(e7, Arrays.copyOf(new Object[]{c16819rWs.i}, 1));
C14957gcv.c((Object) format, "");
EW.LWm b3 = EW.b(list, format);
b3.g = Boolean.valueOf(!z).booleanValue();
b3.n = true;
EW c = b3.c();
C14957gcv.c(c, "");
return c;
}
static {
new HBt((byte) 0);
}
}