145 lines
5.2 KiB
Java
145 lines
5.2 KiB
Java
package o;
|
|
|
|
import android.content.SharedPreferences;
|
|
import android.content.res.Resources;
|
|
import com.huawei.hms.framework.common.ContainerUtils;
|
|
import com.huawei.hms.support.api.entity.common.CommonConstant;
|
|
import com.huawei.hms.support.feature.result.CommonConstant;
|
|
import com.scb.phone.presentation.mapper.transferandpay.BaseAssetsDisplayMapper;
|
|
import java.util.Map;
|
|
import kotlin.NoWhenBranchMatchedException;
|
|
|
|
/* renamed from: o.yE, reason: case insensitive filesystem */
|
|
/* loaded from: classes3.dex */
|
|
public final class C17600yE extends BaseAssetsDisplayMapper {
|
|
private final String a;
|
|
private final C15900jV b;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
@InterfaceC13391fZD
|
|
public C17600yE(Resources resources, SharedPreferences sharedPreferences, C15900jV c15900jV, String str, String str2) {
|
|
super(resources, sharedPreferences, str);
|
|
C14957gcv.e(resources, "");
|
|
C14957gcv.e(sharedPreferences, "");
|
|
C14957gcv.e(c15900jV, "");
|
|
C14957gcv.e(str, "");
|
|
C14957gcv.e(str2, "");
|
|
this.b = c15900jV;
|
|
this.a = str2;
|
|
}
|
|
|
|
private static boolean e(String str, String str2) {
|
|
C14957gcv.e(str, "");
|
|
C14957gcv.e(str2, "");
|
|
return gdZ.e((CharSequence) str, str2, 0, false) > 0;
|
|
}
|
|
|
|
/* renamed from: o.yE$HBt */
|
|
/* loaded from: classes3.dex */
|
|
public static final class HBt {
|
|
private HBt() {
|
|
}
|
|
|
|
public /* synthetic */ HBt(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
public final C1013Ts b(Sxo sxo) {
|
|
String str;
|
|
C14957gcv.e(sxo, "");
|
|
String m = m(sxo.a);
|
|
Boolean k = this.b.d.k();
|
|
if (k != null && k.booleanValue()) {
|
|
C14957gcv.e(m, "");
|
|
C14957gcv.e("enableCM=true", "");
|
|
boolean e = gdZ.e(m, "http", false);
|
|
if (e) {
|
|
if (gdZ.e((CharSequence) m, "?", 0, false) > 0) {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(m);
|
|
sb.append(ContainerUtils.FIELD_DELIMITER);
|
|
sb.append("enableCM=true");
|
|
m = sb.toString();
|
|
} else {
|
|
StringBuilder sb2 = new StringBuilder();
|
|
sb2.append(m);
|
|
sb2.append("?");
|
|
sb2.append("enableCM=true");
|
|
m = sb2.toString();
|
|
}
|
|
} else if (e) {
|
|
throw new NoWhenBranchMatchedException();
|
|
}
|
|
}
|
|
String str2 = m;
|
|
C8447dLf c8447dLf = sxo.d;
|
|
String str3 = c8447dLf != null ? c8447dLf.d : null;
|
|
if (str3 == null) {
|
|
str3 = "";
|
|
}
|
|
C8447dLf c8447dLf2 = sxo.d;
|
|
String b_ = b_(c8447dLf2 != null ? c8447dLf2.a : null);
|
|
C14957gcv.c((Object) b_, "");
|
|
C1010Tp c1010Tp = new C1010Tp(str3, b_);
|
|
String str4 = sxo.c;
|
|
String str5 = str4 == null ? "" : str4;
|
|
Object obj = ((Map) C6583cXR.c(new Object[]{str2}, -763936832, 763936847, (int) System.currentTimeMillis())).get(CommonConstant.KEY_DISPLAY_NAME);
|
|
String str6 = obj instanceof String ? (String) obj : null;
|
|
if (str6 == null) {
|
|
C8447dLf c8447dLf3 = sxo.d;
|
|
String str7 = c8447dLf3 != null ? c8447dLf3.e : null;
|
|
if (str7 == null) {
|
|
str7 = "";
|
|
}
|
|
C8447dLf c8447dLf4 = sxo.d;
|
|
String str8 = c8447dLf4 != null ? c8447dLf4.b : null;
|
|
if (str8 == null) {
|
|
str8 = "";
|
|
}
|
|
C14957gcv.e(str7, "");
|
|
C14957gcv.e(str8, "");
|
|
str = a(str8, str7);
|
|
C14957gcv.c((Object) str, "");
|
|
} else {
|
|
str = str6;
|
|
}
|
|
Object obj2 = ((Map) C6583cXR.c(new Object[]{str2}, -763936832, 763936847, (int) System.currentTimeMillis())).get("acceptBtn");
|
|
String str9 = obj2 instanceof String ? (String) obj2 : null;
|
|
Object obj3 = ((Map) C6583cXR.c(new Object[]{str2}, -763936832, 763936847, (int) System.currentTimeMillis())).get("declineBtn");
|
|
return new C1013Ts(c1010Tp, str2, str5, str, str9, obj3 instanceof String ? (String) obj3 : null);
|
|
}
|
|
|
|
public final String m(String str) {
|
|
C14957gcv.e(str, "");
|
|
boolean e = gdZ.e(str, "http", false) | gdZ.e(str, "scbeasy://webview", false) | gdZ.e(str, "scbeasy://external", false) | gdZ.e(str, "scbeasy://internal", false);
|
|
if (!e) {
|
|
if (e) {
|
|
throw new NoWhenBranchMatchedException();
|
|
}
|
|
return str;
|
|
}
|
|
if (e(str, CommonConstant.ReqAccessTokenParam.LANGUAGE_LABEL)) {
|
|
return str;
|
|
}
|
|
if (gdZ.e((CharSequence) str, "?", 0, false) > 0) {
|
|
String str2 = this.a;
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(str);
|
|
sb.append("&lang=");
|
|
sb.append(str2);
|
|
return sb.toString();
|
|
}
|
|
String str3 = this.a;
|
|
StringBuilder sb2 = new StringBuilder();
|
|
sb2.append(str);
|
|
sb2.append("?lang=");
|
|
sb2.append(str3);
|
|
return sb2.toString();
|
|
}
|
|
|
|
static {
|
|
new HBt((byte) 0);
|
|
}
|
|
}
|