正在查看: Empower MX v1.29.4.340 应用的 e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Empower MX v1.29.4.340 应用的 e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.stripe3ds2.views;
import N9.i;
import Sb.Ge.ihSDFU;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.FrameLayout;
import com.stripe.android.stripe3ds2.views.f;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.Regex;
public final class e extends FrameLayout {
private final ThreeDS2WebView d;
private String e;
private View.OnClickListener i;
private static final a v = new a(null);
private static final Pattern w = Pattern.compile("method=\"post\"", 10);
private static final Pattern F = Pattern.compile("action=\"(.+?)\"", 10);
private static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private a() {
}
}
public e(Context context, AttributeSet attributeSet, int i, int i2, DefaultConstructorMarker defaultConstructorMarker) {
this(context, (i2 & 2) != 0 ? null : attributeSet, (i2 & 4) != 0 ? 0 : i);
}
private final String d(String str) {
String group;
Matcher matcher = F.matcher(str);
return (!matcher.find() || (group = matcher.group(1)) == null || Intrinsics.d("https://emv3ds/challenge", group)) ? str : new Regex(group).replace(str, "https://emv3ds/challenge");
}
private final String e(String str) {
String replaceAll = w.matcher(str).replaceAll("method=\"get\"");
Intrinsics.checkNotNullExpressionValue(replaceAll, "replaceAll(...)");
return replaceAll;
}
public final void c(String str) {
if (str == null) {
return;
}
this.d.loadDataWithBaseURL(null, f(str), "text/html", "UTF-8", null);
}
public final String f(String str) {
Intrinsics.checkNotNullParameter(str, "html");
return d(e(str));
}
public final View.OnClickListener getOnClickListener$3ds2sdk_release() {
return this.i;
}
public String getUserEntry() {
return this.e;
}
public final ThreeDS2WebView getWebView() {
return this.d;
}
@Override
public void setOnClickListener(View.OnClickListener onClickListener) {
this.i = onClickListener;
}
public final void setOnClickListener$3ds2sdk_release(View.OnClickListener onClickListener) {
this.i = onClickListener;
}
public e(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
Intrinsics.checkNotNullParameter(context, "context");
this.e = "";
i b = i.b(LayoutInflater.from(context), this);
Intrinsics.checkNotNullExpressionValue(b, "inflate(...)");
ThreeDS2WebView threeDS2WebView = b.b;
Intrinsics.checkNotNullExpressionValue(threeDS2WebView, "webView");
this.d = threeDS2WebView;
threeDS2WebView.setOnHtmlSubmitListener$3ds2sdk_release(new f.b() {
@Override
public final void a(String str) {
com.stripe.android.stripe3ds2.views.e.b(com.stripe.android.stripe3ds2.views.e.this, str);
}
});
}
public static final void b(e eVar, String str) {
Intrinsics.checkNotNullParameter(eVar, "this$0");
if (str == null) {
str = ihSDFU.scaWl;
}
eVar.e = str;
View.OnClickListener onClickListener = eVar.i;
if (onClickListener != null) {
onClickListener.onClick(eVar);
}
}
}