188 lines
6.8 KiB
Java
188 lines
6.8 KiB
Java
package o;
|
|
|
|
import android.content.SharedPreferences;
|
|
import android.content.res.Resources;
|
|
import com.scb.phone.presentation.mapper.transferandpay.BaseAssetsDisplayMapper;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import o.C15715hv;
|
|
import o.EW;
|
|
import o.QK;
|
|
import o.QN;
|
|
|
|
/* renamed from: o.qk, reason: case insensitive filesystem */
|
|
/* loaded from: classes3.dex */
|
|
public final class C16727qk extends C16181lx {
|
|
private final BaseAssetsDisplayMapper d;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
@InterfaceC13391fZD
|
|
public C16727qk(Resources resources, SharedPreferences sharedPreferences, BaseAssetsDisplayMapper baseAssetsDisplayMapper) {
|
|
super(resources, sharedPreferences);
|
|
C14957gcv.e(resources, "");
|
|
C14957gcv.e(sharedPreferences, "");
|
|
C14957gcv.e(baseAssetsDisplayMapper, "");
|
|
this.d = baseAssetsDisplayMapper;
|
|
}
|
|
|
|
public final EW a(JD jd, iKd ikd, Prn prn) {
|
|
String a;
|
|
StringBuilder sb;
|
|
String str;
|
|
String str2;
|
|
String str3;
|
|
C14957gcv.e(jd, "");
|
|
C14957gcv.e(ikd, "");
|
|
C14957gcv.e(prn, "");
|
|
ArrayList arrayList = new ArrayList();
|
|
QN.HBt a2 = QN.a();
|
|
a2.f = e(C15715hv.tOB.auto_direct_debit_successfully_registered);
|
|
a2.d = C15715hv.IeS.ic_check_circle_black_48dp;
|
|
a2.a = d(prn.a);
|
|
a2.c = c(C15715hv.tOB.reference_id, prn.b);
|
|
QN qn = new QN(a2, YD.REVAMP_SUCCESS_HEADER, (byte) 0);
|
|
C14957gcv.c(qn, "");
|
|
arrayList.add(qn);
|
|
arrayList.add(new QQ(true));
|
|
this.a.clear();
|
|
QK.LWm e = QK.e();
|
|
e.g = this.e.getString(C15715hv.tOB.from);
|
|
if (b()) {
|
|
String str4 = ikd.x;
|
|
C14957gcv.c((Object) str4, "");
|
|
if (str4.length() > 0) {
|
|
a = a(ikd.K, ikd.x, ikd.p, ikd.f9170o);
|
|
e.h = a;
|
|
String c = c(jd.d, true);
|
|
C14957gcv.c((Object) c, "");
|
|
e.a = c;
|
|
e.c = C6583cXR.VR_(C15715hv.IeS.bankicon_scb).toString();
|
|
this.a.add(new QK(e, (byte) 0));
|
|
String b_ = this.d.b_(jd.b.c());
|
|
QK.LWm e2 = QK.e();
|
|
e2.g = this.e.getString(C15715hv.tOB.to);
|
|
e2.h = jd.b.e();
|
|
sb = new StringBuilder();
|
|
str = jd.b.h;
|
|
if (str != null && str.length() != 0) {
|
|
sb.append(jd.b.h);
|
|
}
|
|
str2 = jd.b.K;
|
|
if (str2 != null && str2.length() != 0) {
|
|
sb.append("\n".concat(String.valueOf(this.e.getString(C15715hv.tOB.auto_direct_debit_ref_1, jd.b.K))));
|
|
}
|
|
str3 = jd.b.J;
|
|
if (str3 != null && str3.length() != 0) {
|
|
sb.append("\n".concat(String.valueOf(this.e.getString(C15715hv.tOB.auto_direct_debit_ref_2, jd.b.J))));
|
|
}
|
|
String obj = sb.toString();
|
|
C14957gcv.c((Object) obj, "");
|
|
e2.a = obj;
|
|
e2.c = b_;
|
|
e2.k = true;
|
|
this.a.add(new QK(e2, (byte) 0));
|
|
QK.LWm e3 = QK.e();
|
|
e3.g = this.e.getString(C15715hv.tOB.auto_direct_debit_request_date);
|
|
e3.h = a(prn.a);
|
|
e3.a = g(prn.a);
|
|
QK qk = new QK(e3, (byte) 0);
|
|
this.a.add(new QQ(true));
|
|
this.a.add(qk);
|
|
List<EM> list = this.a;
|
|
C14957gcv.c(list, "");
|
|
arrayList.addAll(list);
|
|
EW.LWm b = EW.b(arrayList, "Direct_Debit_".concat(String.valueOf(prn.b)));
|
|
EV ev = new EV(EV.a(), (byte) 0);
|
|
C14957gcv.c(ev, "");
|
|
b.e = ev;
|
|
b.n = true;
|
|
b.i = this.e.getString(C15715hv.tOB.auto_direct_debit_wait_for_approval_remark);
|
|
EW c2 = b.c();
|
|
C14957gcv.c(c2, "");
|
|
return c2;
|
|
}
|
|
}
|
|
a = a(ikd.N, ikd.w, ikd.r, ikd.l);
|
|
e.h = a;
|
|
String c3 = c(jd.d, true);
|
|
C14957gcv.c((Object) c3, "");
|
|
e.a = c3;
|
|
e.c = C6583cXR.VR_(C15715hv.IeS.bankicon_scb).toString();
|
|
this.a.add(new QK(e, (byte) 0));
|
|
String b_2 = this.d.b_(jd.b.c());
|
|
QK.LWm e22 = QK.e();
|
|
e22.g = this.e.getString(C15715hv.tOB.to);
|
|
e22.h = jd.b.e();
|
|
sb = new StringBuilder();
|
|
str = jd.b.h;
|
|
if (str != null) {
|
|
sb.append(jd.b.h);
|
|
}
|
|
str2 = jd.b.K;
|
|
if (str2 != null) {
|
|
sb.append("\n".concat(String.valueOf(this.e.getString(C15715hv.tOB.auto_direct_debit_ref_1, jd.b.K))));
|
|
}
|
|
str3 = jd.b.J;
|
|
if (str3 != null) {
|
|
sb.append("\n".concat(String.valueOf(this.e.getString(C15715hv.tOB.auto_direct_debit_ref_2, jd.b.J))));
|
|
}
|
|
String obj2 = sb.toString();
|
|
C14957gcv.c((Object) obj2, "");
|
|
e22.a = obj2;
|
|
e22.c = b_2;
|
|
e22.k = true;
|
|
this.a.add(new QK(e22, (byte) 0));
|
|
QK.LWm e32 = QK.e();
|
|
e32.g = this.e.getString(C15715hv.tOB.auto_direct_debit_request_date);
|
|
e32.h = a(prn.a);
|
|
e32.a = g(prn.a);
|
|
QK qk2 = new QK(e32, (byte) 0);
|
|
this.a.add(new QQ(true));
|
|
this.a.add(qk2);
|
|
List<EM> list2 = this.a;
|
|
C14957gcv.c(list2, "");
|
|
arrayList.addAll(list2);
|
|
EW.LWm b2 = EW.b(arrayList, "Direct_Debit_".concat(String.valueOf(prn.b)));
|
|
EV ev2 = new EV(EV.a(), (byte) 0);
|
|
C14957gcv.c(ev2, "");
|
|
b2.e = ev2;
|
|
b2.n = true;
|
|
b2.i = this.e.getString(C15715hv.tOB.auto_direct_debit_wait_for_approval_remark);
|
|
EW c22 = b2.c();
|
|
C14957gcv.c(c22, "");
|
|
return c22;
|
|
}
|
|
|
|
private static String a(String str, String str2, String str3, String str4) {
|
|
StringBuilder sb = new StringBuilder();
|
|
String str5 = str;
|
|
if (str5 != null && str5.length() != 0) {
|
|
StringBuilder sb2 = new StringBuilder();
|
|
sb2.append(str);
|
|
sb2.append(" ");
|
|
sb.append(sb2.toString());
|
|
}
|
|
String str6 = str2;
|
|
if (str6 != null && str6.length() != 0) {
|
|
StringBuilder sb3 = new StringBuilder();
|
|
sb3.append(str2);
|
|
sb3.append(" ");
|
|
sb.append(sb3.toString());
|
|
}
|
|
String str7 = str3;
|
|
if (str7 != null && str7.length() != 0) {
|
|
StringBuilder sb4 = new StringBuilder();
|
|
sb4.append(str3);
|
|
sb4.append(" ");
|
|
sb.append(sb4.toString());
|
|
}
|
|
String str8 = str4;
|
|
if (str8 != null && str8.length() != 0) {
|
|
sb.append(str4);
|
|
}
|
|
String obj = sb.toString();
|
|
C14957gcv.c((Object) obj, "");
|
|
return obj;
|
|
}
|
|
}
|