277 lines
8.3 KiB
Java
277 lines
8.3 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.SharedPreferences;
|
||
|
import android.content.res.Resources;
|
||
|
import android.text.TextUtils;
|
||
|
import java.util.ArrayList;
|
||
|
import o.C1168Xb;
|
||
|
import o.C1232Yo;
|
||
|
import o.C15715hv;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class CN extends C0352Et {
|
||
|
@InterfaceC13391fZD
|
||
|
public CN(Resources resources, SharedPreferences sharedPreferences, String str) {
|
||
|
super(resources, sharedPreferences, str);
|
||
|
}
|
||
|
|
||
|
public static WG c(C1182Xi c1182Xi) {
|
||
|
PWw pWw;
|
||
|
qhK qhk = qhK.SCB.name().equalsIgnoreCase(c1182Xi.D) ? qhK.SCB : qhK.PROMPTPAY;
|
||
|
int i = C15715hv.IeS.bankicon_scb;
|
||
|
WG c = WG.c();
|
||
|
if (qhk != qhK.SCB) {
|
||
|
if (c1182Xi.g.length() > 10) {
|
||
|
i = C15715hv.IeS.icon_prompt_pay_cid;
|
||
|
pWw = PWw.CID;
|
||
|
c.d = b(c1182Xi.g, false);
|
||
|
} else {
|
||
|
i = C15715hv.IeS.icon_prompt_pay_mobile;
|
||
|
pWw = PWw.MOB;
|
||
|
c.d = d(c1182Xi.g, false);
|
||
|
}
|
||
|
c.i = (String) C6583cXR.c(new Object[]{pWw}, 817056545, -817056542, (int) System.currentTimeMillis());
|
||
|
} else {
|
||
|
c.d = c(c1182Xi.g, false);
|
||
|
}
|
||
|
c.a = c1182Xi.g;
|
||
|
c.c = c1182Xi.u;
|
||
|
c.f = c1182Xi.e();
|
||
|
c.g = C6583cXR.d(qhk);
|
||
|
c.b = i;
|
||
|
c.h = c1182Xi.e();
|
||
|
return c;
|
||
|
}
|
||
|
|
||
|
public static WG e(String str, String str2) {
|
||
|
WG c = WG.c();
|
||
|
c.a = str;
|
||
|
c.c = str2;
|
||
|
c.f = qhK.SCB.name();
|
||
|
c.b = C15715hv.IeS.bankicon_scb;
|
||
|
c.d = c(str, false);
|
||
|
c.g = C6583cXR.d(qhK.SCB);
|
||
|
return c;
|
||
|
}
|
||
|
|
||
|
public static WG c(C0531Iw c0531Iw) {
|
||
|
if (c0531Iw instanceof C1238Ys) {
|
||
|
return b(c0531Iw, PWw.CID);
|
||
|
}
|
||
|
if (c0531Iw instanceof C1245Yu) {
|
||
|
return b(c0531Iw, PWw.MOB);
|
||
|
}
|
||
|
throw new IllegalArgumentException("Illegal contact argument");
|
||
|
}
|
||
|
|
||
|
private static WG b(C0531Iw c0531Iw, PWw pWw) {
|
||
|
String str;
|
||
|
String str2;
|
||
|
String str3;
|
||
|
String replaceAll;
|
||
|
int i = C15715hv.IeS.icon_prompt_pay_cid;
|
||
|
str = "";
|
||
|
if (c0531Iw instanceof C1238Ys) {
|
||
|
replaceAll = C6583cXR.v(((C1238Ys) c0531Iw).b);
|
||
|
str3 = b(replaceAll, false);
|
||
|
} else {
|
||
|
if (c0531Iw instanceof C1245Yu) {
|
||
|
C1245Yu c1245Yu = (C1245Yu) c0531Iw;
|
||
|
String str4 = c1245Yu.d;
|
||
|
String str5 = c1245Yu.b;
|
||
|
if (str5 != null) {
|
||
|
if (C15602gz.b(C6583cXR.v(str5))) {
|
||
|
replaceAll = C6583cXR.v(str5);
|
||
|
pWw = PWw.CID;
|
||
|
str3 = b(replaceAll, false);
|
||
|
} else {
|
||
|
i = C15715hv.IeS.icon_prompt_pay_mobile;
|
||
|
replaceAll = str5.replaceAll("[()+\\-\\s]", "");
|
||
|
str = TextUtils.isEmpty(str4) ? "" : str4;
|
||
|
str3 = d(replaceAll, false);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
str2 = "";
|
||
|
str3 = str2;
|
||
|
WG c = WG.c();
|
||
|
c.a = str;
|
||
|
c.i = (String) C6583cXR.c(new Object[]{pWw}, 817056545, -817056542, (int) System.currentTimeMillis());
|
||
|
c.f = str2;
|
||
|
c.b = i;
|
||
|
c.d = str3;
|
||
|
c.g = C6583cXR.d(qhK.PROMPTPAY);
|
||
|
return c;
|
||
|
}
|
||
|
String str6 = str;
|
||
|
str = replaceAll;
|
||
|
str2 = str6;
|
||
|
WG c2 = WG.c();
|
||
|
c2.a = str;
|
||
|
c2.i = (String) C6583cXR.c(new Object[]{pWw}, 817056545, -817056542, (int) System.currentTimeMillis());
|
||
|
c2.f = str2;
|
||
|
c2.b = i;
|
||
|
c2.d = str3;
|
||
|
c2.g = C6583cXR.d(qhK.PROMPTPAY);
|
||
|
return c2;
|
||
|
}
|
||
|
|
||
|
public final C1189Xo c(wPZ wpz, C1193Xr c1193Xr, EKc eKc, String str, Wnw wnw, String str2, boolean z) {
|
||
|
String str3;
|
||
|
String obj;
|
||
|
C1198Xv g = C1198Xv.g();
|
||
|
g.aQ = c(Double.valueOf(wpz.m));
|
||
|
g.aT = wpz.f9299o;
|
||
|
g.aV = wpz.k;
|
||
|
g.aU = wpz.l;
|
||
|
g.aS = wpz.t;
|
||
|
g.aR = wpz.r;
|
||
|
g.d = wpz.d;
|
||
|
g.b = wpz.a;
|
||
|
g.c = wpz.c;
|
||
|
g.e = wpz.b;
|
||
|
g.a = wpz.e;
|
||
|
g.i = wpz.g;
|
||
|
g.g = wpz.i;
|
||
|
g.aK = wpz.f;
|
||
|
g.aJ = wpz.j;
|
||
|
g.aP = wpz.h;
|
||
|
g.aM = wpz.n;
|
||
|
g.aX = wpz.s;
|
||
|
g.aZ = wpz.p;
|
||
|
ArrayList arrayList = new ArrayList();
|
||
|
C1232Yo.IeS ieS = new C1232Yo.IeS();
|
||
|
ieS.d = g.b;
|
||
|
ieS.b = g.g;
|
||
|
arrayList.add(new C1232Yo(ieS, (byte) 0));
|
||
|
C1232Yo.IeS ieS2 = new C1232Yo.IeS();
|
||
|
ieS2.d = g.c;
|
||
|
ieS2.b = g.aK;
|
||
|
arrayList.add(new C1232Yo(ieS2, (byte) 0));
|
||
|
C1232Yo.IeS ieS3 = new C1232Yo.IeS();
|
||
|
ieS3.d = g.e;
|
||
|
ieS3.b = g.aJ;
|
||
|
arrayList.add(new C1232Yo(ieS3, (byte) 0));
|
||
|
C1232Yo.IeS ieS4 = new C1232Yo.IeS();
|
||
|
ieS4.d = g.a;
|
||
|
ieS4.b = g.aP;
|
||
|
arrayList.add(new C1232Yo(ieS4, (byte) 0));
|
||
|
C1189Xo b = C1189Xo.h().b(b(eKc));
|
||
|
b.X = str;
|
||
|
b.S = str;
|
||
|
C1189Xo e = b.a(C6583cXR.b(str, z)).e("BILLPAYMENT");
|
||
|
e.Q = C6583cXR.VR_(C15715hv.IeS.bankicon_scb);
|
||
|
e.v = c1193Xr.g;
|
||
|
e.y = c1193Xr.e();
|
||
|
e.r = c1193Xr.m;
|
||
|
e.x = c1193Xr.c();
|
||
|
C1168Xb.LWm lWm = new C1168Xb.LWm();
|
||
|
lWm.b = c1193Xr.j;
|
||
|
lWm.a = arrayList;
|
||
|
e.j = new C1168Xb(lWm, (byte) 0);
|
||
|
e.aj = g.aT;
|
||
|
e.ai = g.aV;
|
||
|
e.am = g.aU;
|
||
|
e.aq = g.aS;
|
||
|
e.ar = g.aR;
|
||
|
C1189Xo h = e.h(c(Double.valueOf(wpz.m)));
|
||
|
h.V = String.valueOf(c1193Xr.g);
|
||
|
h.z = c1193Xr.r;
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
sb.append(c1193Xr.F);
|
||
|
sb.append(": ");
|
||
|
sb.append(g.aT);
|
||
|
h.t = sb.toString();
|
||
|
C1189Xo d = h.d(wpz.p);
|
||
|
d.H = c1193Xr.a;
|
||
|
WO c = WO.c();
|
||
|
c.m = e(C15715hv.tOB.gift_details);
|
||
|
c.c = wnw.b;
|
||
|
if (str2.equals("th")) {
|
||
|
str3 = c1193Xr.E.d;
|
||
|
} else {
|
||
|
str3 = c1193Xr.E.a;
|
||
|
}
|
||
|
c.j = str3;
|
||
|
if (TextUtils.isEmpty(wnw.g)) {
|
||
|
obj = "";
|
||
|
} else {
|
||
|
StringBuilder sb2 = new StringBuilder();
|
||
|
sb2.append(e(C15715hv.tOB.gift_recipient));
|
||
|
sb2.append(" ");
|
||
|
sb2.append(wnw.g);
|
||
|
obj = sb2.toString();
|
||
|
}
|
||
|
c.h = obj;
|
||
|
StringBuilder sb3 = new StringBuilder();
|
||
|
sb3.append(e(C15715hv.tOB.gift_to));
|
||
|
sb3.append(" ");
|
||
|
sb3.append(wnw.c);
|
||
|
c.f = sb3.toString();
|
||
|
StringBuilder sb4 = new StringBuilder();
|
||
|
sb4.append(e(C15715hv.tOB.gift_to));
|
||
|
sb4.append(" ");
|
||
|
sb4.append(h(wnw.a));
|
||
|
c.g = sb4.toString();
|
||
|
c.d = c1193Xr.E.b;
|
||
|
c.i = e(C15715hv.tOB.gift_review_title_message);
|
||
|
c.b = wnw.e;
|
||
|
c.e = wnw.d;
|
||
|
d.C = c;
|
||
|
d.P = c1193Xr.B;
|
||
|
d.aE = "PRESENT_TRANSFER_TYPE";
|
||
|
return d;
|
||
|
}
|
||
|
|
||
|
public final WI a(WM wm, String str, String str2, String str3) {
|
||
|
WI a = WI.a();
|
||
|
a.j = wm.i;
|
||
|
a.s = WQ.SENT;
|
||
|
a.f8430o = str;
|
||
|
a.l = str2;
|
||
|
a.k = str2;
|
||
|
a.c = b_(wm.b);
|
||
|
a.i = b_(wm.d);
|
||
|
a.m = str3;
|
||
|
return a;
|
||
|
}
|
||
|
|
||
|
public final C1189Xo e(C0324EaB c0324EaB, WM wm, String str, WG wg, String str2, String str3, boolean z) {
|
||
|
String str4;
|
||
|
YC c = c(c0324EaB.s, c0324EaB.q);
|
||
|
C1189Xo b = C1189Xo.h().d(c0324EaB.k).b(c0324EaB.d);
|
||
|
b.Q = C6583cXR.VR_(C15715hv.IeS.bankicon_scb);
|
||
|
b.S = str;
|
||
|
b.X = str;
|
||
|
C1189Xo a = b.a(C6583cXR.b(str, z));
|
||
|
a.s = wg.d;
|
||
|
a.q = C6583cXR.VR_(wg.b);
|
||
|
a.y = c0324EaB.e;
|
||
|
a.t = wg.a;
|
||
|
if (wg.h == null) {
|
||
|
str4 = "";
|
||
|
} else {
|
||
|
str4 = wg.h;
|
||
|
}
|
||
|
a.z = str4;
|
||
|
C1168Xb.LWm lWm = new C1168Xb.LWm();
|
||
|
lWm.b = str2;
|
||
|
a.j = new C1168Xb(lWm, (byte) 0);
|
||
|
C1189Xo h = a.h(c(Double.valueOf(c0324EaB.n)));
|
||
|
WO c2 = WO.c();
|
||
|
c2.d = wm.h;
|
||
|
c2.a = wm.g;
|
||
|
c2.m = e(C15715hv.tOB.gift_details);
|
||
|
c2.c = wm.i;
|
||
|
c2.i = e(C15715hv.tOB.gift_review_title_message);
|
||
|
c2.b = str3;
|
||
|
c2.e = d(wm.f);
|
||
|
h.C = c2;
|
||
|
h.aE = c0324EaB.t;
|
||
|
C1189Xo e = h.e(c0324EaB.t);
|
||
|
e.aI = c0324EaB.r;
|
||
|
e.aL = c;
|
||
|
return e;
|
||
|
}
|
||
|
}
|