导航菜单

页面标题

页面副标题

Perplexity v2.48.1 - C.java 源代码

正在查看: Perplexity v2.48.1 应用的 C.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package ek;

import android.view.LayoutInflater;
import android.view.View;
import android.widget.FrameLayout;
import androidx.fragment.app.P;
import com.stripe.android.stripe3ds2.views.ThreeDS2WebView;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.Regex;
import xb.V;

public final class C extends FrameLayout {
    public final ThreeDS2WebView w;
    public String x;
    public View.OnClickListener y;
    public static final Pattern z = Pattern.compile("method=\"post\"", 10);
    public static final Pattern r0 = Pattern.compile("action=\"(.+?)\"", 10);

    public C(P p) {
        super(p, null, 0);
        this.x = "";
        LayoutInflater.from(p).inflate(2131625305, this);
        ThreeDS2WebView threeDS2WebView = (ThreeDS2WebView) V.C(this, 2131428270);
        if (threeDS2WebView == null) {
            throw new NullPointerException("Missing required view with ID: ".concat(getResources().getResourceName(2131428270)));
        }
        this.w = threeDS2WebView;
        threeDS2WebView.setOnHtmlSubmitListener$3ds2sdk_release(new com.mapbox.common.movement.a(this, 29));
    }

    public final void a(String str) {
        String group;
        if (str == null) {
            return;
        }
        String replaceAll = z.matcher(str).replaceAll("method=\"get\"");
        Intrinsics.g(replaceAll, "replaceAll(...)");
        Matcher matcher = r0.matcher(replaceAll);
        if (matcher.find() && (group = matcher.group(1)) != null && !"https://emv3ds/challenge".equals(group)) {
            replaceAll = new Regex(group).e(replaceAll, "https://emv3ds/challenge");
        }
        this.w.loadDataWithBaseURL(null, replaceAll, "text/html", "UTF-8", null);
    }

    public final View.OnClickListener getOnClickListener$3ds2sdk_release() {
        return this.y;
    }

    public String getUserEntry() {
        return this.x;
    }

    public final ThreeDS2WebView getWebView() {
        return this.w;
    }

    @Override
    public void setOnClickListener(View.OnClickListener onClickListener) {
        this.y = onClickListener;
    }

    public final void setOnClickListener$3ds2sdk_release(View.OnClickListener onClickListener) {
        this.y = onClickListener;
    }
}