导航菜单

页面标题

页面副标题

Mitra Bukalapak v2.55.0 - MitraBrowserScreen.java 源代码

正在查看: Mitra Bukalapak v2.55.0 应用的 MitraBrowserScreen.java JAVA 源代码文件

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


package com.bukalapak.mitra.webview;

import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.provider.ContactsContract;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.ValueCallback;
import android.webkit.WebBackForwardList;
import android.webkit.WebChromeClient;
import android.webkit.WebHistoryItem;
import android.webkit.WebView;
import com.bukalapak.android.lib.api4.tungku.data.Qriscode;
import com.bukalapak.android.lib.api4.tungku.data.Userqristransaction;
import com.bukalapak.android.lib.browser.BrowserScreen;
import com.bukalapak.android.lib.browser.BrowserView;
import com.bukalapak.android.lib.browser.StandardBrowserScreen;
import com.bukalapak.mitra.feature.customer_contact.sheet.NumberChooserSheet;
import defpackage.PaaSOTPKey;
import defpackage.bi0;
import defpackage.hc0;
import defpackage.m74;
import defpackage.ts7;
import defpackage.x75;
import java.io.File;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.CancellationException;
import kotlin.KotlinNothingValueException;
import kotlin.Metadata;

@Metadata(d1 = {"\u0000¢\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\t\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\r\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u0015\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010%\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\f\b\u0007\u0018\u0000 »\u00012\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0004Ç\u0001È\u0001B\t¢\u0006\u0006\bÆ\u0001\u0010\u0094\u0001J\b\u0010\u0004\u001a\u00020\u0003H\u0002J\b\u0010\u0005\u001a\u00020\u0003H\u0002J\u0018\u0010\n\u001a\u00020\u00032\u0006\u0010\u0007\u001a\u00020\u00062\u0006\u0010\t\u001a\u00020\bH\u0002J\b\u0010\u000b\u001a\u00020\u0003H\u0002J\u0012\u0010\u000e\u001a\u00020\u00032\b\u0010\r\u001a\u0004\u0018\u00010\fH\u0002J\u001e\u0010\u0013\u001a\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u00062\f\u0010\u0012\u001a\b\u0012\u0004\u0012\u00020\u00110\u0010H\u0002J\u001c\u0010\u0015\u001a\u00020\u00032\b\u0010\u000f\u001a\u0004\u0018\u00010\u00062\b\u0010\u0014\u001a\u0004\u0018\u00010\u0006H\u0002J\u001c\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\u00110\u00102\f\u0010\u0016\u001a\b\u0012\u0004\u0012\u00020\u00060\u0010H\u0002J\u0012\u0010\u001a\u001a\u00020\u00192\b\u0010\u0018\u001a\u0004\u0018\u00010\u0006H\u0002J\u0012\u0010\u001b\u001a\u00020\u00032\b\u0010\r\u001a\u0004\u0018\u00010\u0006H\u0002J\u0010\u0010\u001e\u001a\u00020\u00032\u0006\u0010\u001d\u001a\u00020\u001cH\u0002J\u0012\u0010 \u001a\u00020\u00032\b\b\u0002\u0010\u001f\u001a\u00020\u0019H\u0002J\b\u0010!\u001a\u00020\u0003H\u0002J\u000e\u0010$\u001a\u00020\u00032\u0006\u0010#\u001a\u00020\"J\b\u0010%\u001a\u00020\u0003H\u0014J\b\u0010&\u001a\u00020\u0003H\u0014J\u0012\u0010)\u001a\u00020\u00032\b\u0010(\u001a\u0004\u0018\u00010'H\u0014J\u0010\u0010+\u001a\u00020\u00032\u0006\u0010*\u001a\u00020\u0019H\u0014J\b\u0010,\u001a\u00020\u0003H\u0014J\b\u0010-\u001a\u00020\u0003H\u0014J\"\u00102\u001a\u00020\u00032\u0006\u0010/\u001a\u00020.2\u0006\u0010\u0018\u001a\u00020\u00062\b\u00101\u001a\u0004\u0018\u000100H\u0014J\u0018\u00103\u001a\u00020\u00032\u0006\u0010/\u001a\u00020.2\u0006\u0010\u0018\u001a\u00020\u0006H\u0014J\u0010\u00105\u001a\u00020\u00032\u0006\u00104\u001a\u00020\fH\u0014J\u0018\u00106\u001a\u00020\u00192\u0006\u0010/\u001a\u00020.2\u0006\u0010\u0018\u001a\u00020\u0006H\u0014J\f\u00108\u001a\u0006\u0012\u0002\b\u000307H\u0016J\u0010\u0010<\u001a\u00020;2\u0006\u0010:\u001a\u000209H\u0014J\u000e\u0010>\u001a\u00020\u00032\u0006\u0010=\u001a\u00020\u0006J\u000e\u0010@\u001a\u00020\u00032\u0006\u0010?\u001a\u00020\u0019J\u0006\u0010A\u001a\u00020\u0003J>\u0010K\u001a\u00020\u00032\u0006\u0010C\u001a\u00020B2\u000e\u0010F\u001a\n\u0012\u0004\u0012\u00020E\u0018\u00010D2\u0014\u0010H\u001a\u0010\u0012\n\u0012\b\u0012\u0004\u0012\u00020E0G\u0018\u00010D2\u0006\u0010J\u001a\u00020IH\u0014J-\u0010Q\u001a\u00020\u00032\u0006\u0010M\u001a\u00020L2\f\u0010N\u001a\b\u0012\u0004\u0012\u00020\u00060G2\u0006\u0010P\u001a\u00020OH\u0016¢\u0006\u0004\bQ\u0010RJ\"\u0010T\u001a\u00020\u00032\u0006\u0010M\u001a\u00020L2\u0006\u0010S\u001a\u00020L2\b\u0010\r\u001a\u0004\u0018\u00010\fH\u0014J\u000e\u0010W\u001a\u00020\u00032\u0006\u0010V\u001a\u00020UJ\u000e\u0010Z\u001a\u00020\u00032\u0006\u0010Y\u001a\u00020XJ\u0006\u0010[\u001a\u00020\u0003J\u0006\u0010\\\u001a\u00020\u0003J\u0006\u0010^\u001a\u00020]J\u0006\u0010_\u001a\u00020\u0003J\u000f\u0010`\u001a\u0004\u0018\u00010\u0019¢\u0006\u0004\b`\u0010aJ\u0010\u0010b\u001a\u00020\u00032\b\b\u0002\u0010\u001f\u001a\u00020\u0019J\u0006\u0010c\u001a\u00020\u0003R\"\u0010k\u001a\u00020d8\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\be\u0010f\u001a\u0004\bg\u0010h\"\u0004\bi\u0010jR\"\u0010s\u001a\u00020l8\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\bm\u0010n\u001a\u0004\bo\u0010p\"\u0004\bq\u0010rR\"\u0010{\u001a\u00020t8\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\bu\u0010v\u001a\u0004\bw\u0010x\"\u0004\by\u0010zR&\u0010\u0083\u0001\u001a\u00020|8\u0006@\u0006X\u0087.¢\u0006\u0015\n\u0004\b}\u0010~\u001a\u0005\b\u007f\u0010\u0080\u0001\"\u0006\b\u0081\u0001\u0010\u0082\u0001R*\u0010\u008b\u0001\u001a\u00030\u0084\u00018\u0006@\u0006X\u0087.¢\u0006\u0018\n\u0006\b\u0085\u0001\u0010\u0086\u0001\u001a\u0006\b\u0087\u0001\u0010\u0088\u0001\"\u0006\b\u0089\u0001\u0010\u008a\u0001R2\u0010\u0095\u0001\u001a\u00030\u008c\u00018\u0006@\u0006X\u0087.¢\u0006 \n\u0006\b\u008d\u0001\u0010\u008e\u0001\u0012\u0006\b\u0093\u0001\u0010\u0094\u0001\u001a\u0006\b\u008f\u0001\u0010\u0090\u0001\"\u0006\b\u0091\u0001\u0010\u0092\u0001R*\u0010\u009d\u0001\u001a\u00030\u0096\u00018\u0006@\u0006X\u0087.¢\u0006\u0018\n\u0006\b\u0097\u0001\u0010\u0098\u0001\u001a\u0006\b\u0099\u0001\u0010\u009a\u0001\"\u0006\b\u009b\u0001\u0010\u009c\u0001R\u0017\u0010 \u0001\u001a\u00020\u00068\u0002X\u0082D¢\u0006\b\n\u0006\b\u009e\u0001\u0010\u009f\u0001R\u0018\u0010¤\u0001\u001a\u00030¡\u00018\u0002X\u0082\u0004¢\u0006\b\n\u0006\b¢\u0001\u0010£\u0001R6\u0010©\u0001\u001a\u001f\u0012\u000b\u0012\t\u0012\u0004\u0012\u00020\u00030¦\u0001\u0012\u000b\u0012\t\u0012\u0004\u0012\u00020\u00030¦\u0001\u0018\u00010¥\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\b§\u0001\u0010¨\u0001R2\u0010°\u0001\u001a\u000b\u0012\u0004\u0012\u00020\u0003\u0018\u00010¦\u00018\u0006@\u0006X\u0086\u000e¢\u0006\u0018\n\u0006\bª\u0001\u0010«\u0001\u001a\u0006\b¬\u0001\u0010\u00ad\u0001\"\u0006\b®\u0001\u0010¯\u0001R\u001c\u0010´\u0001\u001a\u0005\u0018\u00010±\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\b²\u0001\u0010³\u0001R&\u0010¸\u0001\u001a\u0011\u0012\u0004\u0012\u00020\"\u0012\u0006\u0012\u0004\u0018\u00010]0µ\u00018\u0002X\u0082\u0004¢\u0006\b\n\u0006\b¶\u0001\u0010·\u0001R\u0018\u0010¹\u0001\u001a\u00020\u00068\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\b<\u0010\u009f\u0001R\u0019\u0010¼\u0001\u001a\u00020\"8\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\bº\u0001\u0010»\u0001R!\u0010Â\u0001\u001a\u00030½\u00018BX\u0082\u0084\u0002¢\u0006\u0010\n\u0006\b¾\u0001\u0010¿\u0001\u001a\u0006\bÀ\u0001\u0010Á\u0001R\u001b\u0010Å\u0001\u001a\u0004\u0018\u00010]8\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\bÃ\u0001\u0010Ä\u0001¨\u0006É\u0001"}, d2 = {"Lcom/bukalapak/mitra/webview/MitraBrowserScreen;", "Lcom/bukalapak/mitra/webview/Hilt_MitraBrowserScreen;", "Lcom/bukalapak/mitra/webview/MitraBrowserScreen$b;", "Llm9;", "Y1", "U1", "", "text", "Lpm8$d;", "type", "X1", "V1", "Landroid/content/Intent;", "data", "C1", "name", "", "Lwe1;", "customerNumbers", "T1", "number", "F1", "numbers", "u1", "url", "", "B1", "H1", "Lcy1;", "result", "G1", "isFromTrxDetail", "M1", "a2", "", "transactionId", "W1", "onStart", "onStop", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "firstInit", "h0", "onResume", "onPause", "Landroid/webkit/WebView;", "view", "Landroid/graphics/Bitmap;", "favicon", "G0", "F0", "intent", "onNewIntent", "L0", "Lz80;", "s1", "", "message", "Landroid/view/View;", "F", "callbackFunction", "I1", "enabled", "Q1", "Z1", "Landroid/content/Context;", "context", "Landroid/webkit/ValueCallback;", "Landroid/net/Uri;", "fileUploadCallbackFirst", "", "fileUploadCallbackSecond", "Landroid/webkit/WebChromeClient$FileChooserParams;", "fileChooserParams", "V", "", "requestCode", "permissions", "", "grantResults", "onRequestPermissionsResult", "(I[Ljava/lang/String;[I)V", "resultCode", "onActivityResult", "Lm74;", "invoiceConversion", "K1", "Ld36;", "otpData", "L1", "S1", "O1", "Lhb4;", "t1", "J1", "R1", "()Ljava/lang/Boolean;", "D1", "r1", "Loq3;", "s", "Loq3;", "getHomeNavigation", "()Loq3;", "setHomeNavigation", "(Loq3;)V", "homeNavigation", "Lll7;", "t", "Lll7;", "getReferralNavigation", "()Lll7;", "setReferralNavigation", "(Lll7;)V", "referralNavigation", "Lpg2;", "u", "Lpg2;", "w1", "()Lpg2;", "setExternalIntentNavigation", "(Lpg2;)V", "externalIntentNavigation", "Lyi7;", "v", "Lyi7;", "A1", "()Lyi7;", "setReceiptNavigation", "(Lyi7;)V", "receiptNavigation", "Ldc1;", "w", "Ldc1;", "v1", "()Ldc1;", "setCustomerContactNavigation", "(Ldc1;)V", "customerContactNavigation", "Lb17;", "x", "Lb17;", "y1", "()Lb17;", "setQrNavigation", "(Lb17;)V", "getQrNavigation$annotations", "()V", "qrNavigation", "Lgd6;", "y", "Lgd6;", "x1", "()Lgd6;", "setPinNavigation", "(Lgd6;)V", "pinNavigation", "z", "Ljava/lang/String;", "subUrlAdjust", "Lo70;", "A", "Lo70;", "brazeJsBridge", "Lc46;", "Lkotlin/Function0;", "B", "Lc46;", "pendingDialogAction", "C", "Lex2;", "getPendingAction", "()Lex2;", "P1", "(Lex2;)V", "pendingAction", "Lcom/bukalapak/mitra/webview/MitraBrowserViewModel;", "D", "Lcom/bukalapak/mitra/webview/MitraBrowserViewModel;", "viewModel", "", "E", "Ljava/util/Map;", "receivedQrisTransactionSheetJobs", "receivedQrisTransactionSheetIdentifier", "G", "J", "receivedQrisTransactionId", "Lgo7;", "H", "Lxk4;", "z1", "()Lgo7;", "qrisNotificationUrlRegex", "I", "Lhb4;", "notificationEventSubscriberJob", "<init>", "a", "b", "base_app_release"}, k = 1, mv = {1, 8, 0})
public final class MitraBrowserScreen extends Hilt_MitraBrowserScreen<b> {

    private c46<? extends ex2<lm9>, ? extends ex2<lm9>> pendingDialogAction;

    private ex2<lm9> pendingAction;

    private MitraBrowserViewModel viewModel;

    private long receivedQrisTransactionId;

    private hb4 notificationEventSubscriberJob;

    public oq3 homeNavigation;

    public ll7 referralNavigation;

    public pg2 externalIntentNavigation;

    public yi7 receiptNavigation;

    public dc1 customerContactNavigation;

    public b17 qrNavigation;

    public gd6 pinNavigation;

    private final String subUrlAdjust = "https://app.adjust.com/";

    private final o70 brazeJsBridge = new o70();

    private final Map<Long, hb4> receivedQrisTransactionSheetJobs = mx4.c(new LinkedHashMap(), p.g);

    private String receivedQrisTransactionSheetIdentifier = "";

    private final xk4 qrisNotificationUrlRegex = wl4.a(o.g);

    @Metadata(d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\f\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b!\u0010\"R$\u0010\u0003\u001a\u0004\u0018\u00010\u00028\u0016@\u0016X\u0096\u000e¢\u0006\u0012\n\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006\"\u0004\b\u0007\u0010\bR>\u0010\u000b\u001a\u001e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00020\tj\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0002`\n8\u0016@\u0016X\u0096\u000e¢\u0006\u0012\n\u0004\b\u000b\u0010\f\u001a\u0004\b\r\u0010\u000e\"\u0004\b\u000f\u0010\u0010R\"\u0010\u0012\u001a\u00020\u00118\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0012\u0010\u0013\u001a\u0004\b\u0014\u0010\u0015\"\u0004\b\u0013\u0010\u0016R\"\u0010\u0018\u001a\u00020\u00178\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0018\u0010\u0019\u001a\u0004\b\u001a\u0010\u001b\"\u0004\b\u001c\u0010\u001dR\"\u0010\u001e\u001a\u00020\u00118\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u001e\u0010\u0013\u001a\u0004\b\u001f\u0010\u0015\"\u0004\b \u0010\u0016¨\u0006#"}, d2 = {"Lcom/bukalapak/mitra/webview/MitraBrowserScreen$b;", "Lcom/bukalapak/android/lib/browser/StandardBrowserScreen$b;", "", "userAgent", "Ljava/lang/String;", "n", "()Ljava/lang/String;", "F", "(Ljava/lang/String;)V", "Ljava/util/HashMap;", "Lkotlin/collections/HashMap;", "headers", "Ljava/util/HashMap;", "M", "()Ljava/util/HashMap;", "S", "(Ljava/util/HashMap;)V", "", "enablePtr", "Z", "W", "()Z", "(Z)V", "Lrp0;", "chooserMethod", "Lrp0;", "getChooserMethod", "()Lrp0;", "Y", "(Lrp0;)V", "immediateFinish", "X", "a0", "<init>", "()V", "base_app_release"}, k = 1, mv = {1, 8, 0})
    public static final class b extends StandardBrowserScreen.b {
        private boolean immediateFinish;
        private String userAgent = a.c(w80.a);
        private HashMap<String, String> headers = new HashMap<>();
        private boolean enablePtr = true;
        private rp0 chooserMethod = rp0.b;

        public void F(String str) {
            this.userAgent = str;
        }

        public HashMap<String, String> M() {
            return this.headers;
        }

        public void S(HashMap<String, String> hashMap) {
            p64.h(hashMap, "<set-?>");
            this.headers = hashMap;
        }

        public final boolean getEnablePtr() {
            return this.enablePtr;
        }

        public final boolean getImmediateFinish() {
            return this.immediateFinish;
        }

        public final void Y(rp0 rp0Var) {
            p64.h(rp0Var, "<set-?>");
            this.chooserMethod = rp0Var;
        }

        public final void Z(boolean z) {
            this.enablePtr = z;
        }

        public final void a0(boolean z) {
            this.immediateFinish = z;
        }

        public String getUserAgent() {
            return this.userAgent;
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llm9;", "a", "()V"}, k = 3, mv = {1, 8, 0})
    static final class c extends dk4 implements ex2<lm9> {
        c() {
            super(0);
        }

        public final void a() {
            MitraBrowserScreen.N1(MitraBrowserScreen.this, false, 1, null);
        }

        public Object invoke() {
            a();
            return lm9.a;
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llm9;", "a", "()V"}, k = 3, mv = {1, 8, 0})
    static final class d extends dk4 implements ex2<lm9> {
        d() {
            super(0);
        }

        public final void a() {
            MitraBrowserScreen.this.a2();
        }

        public Object invoke() {
            a();
            return lm9.a;
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lga2$d;", "Llm9;", "a", "(Lga2$d;)V"}, k = 3, mv = {1, 8, 0})
    static final class e extends dk4 implements gx2<d, lm9> {

        @Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/view/View;", "it", "Llm9;", "a", "(Landroid/view/View;)V"}, k = 3, mv = {1, 8, 0})
        static final class a extends dk4 implements gx2<View, lm9> {
            final MitraBrowserScreen this$0;

            a(MitraBrowserScreen mitraBrowserScreen) {
                super(1);
                this.this$0 = mitraBrowserScreen;
            }

            public final void a(View view) {
                p64.h(view, "it");
                this.this$0.V0();
            }

            public Object invoke(Object obj) {
                a((View) obj);
                return lm9.a;
            }
        }

        e() {
            super(1);
        }

        public final void a(d dVar) {
            p64.h(dVar, "$this$bind");
            dVar.E(ts7.g(vc7.u6));
            dVar.s(ts7.g(vc7.t6));
            dVar.v(new pw3(e20.a.c()));
            dVar.w(a.b);
            dVar.z(ts7.g(vc7.Ni));
            dVar.x(new a(MitraBrowserScreen.this));
        }

        public Object invoke(Object obj) {
            a((d) obj);
            return lm9.a;
        }
    }

    @Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\u008a@"}, d2 = {"Lb51;", "Llm9;", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    @eo1(c = "com.bukalapak.mitra.webview.MitraBrowserScreen$checkTriggerNudgePinAfterTransaction$1", f = "MitraBrowserScreen.kt", l = {672, 673}, m = "invokeSuspend")
    static final class f extends sw8 implements ux2<b51, r31<? super lm9>, Object> {
        int I$0;
        int label;

        f(r31<? super f> r31Var) {
            super(2, r31Var);
        }

        public final r31<lm9> create(Object obj, r31<?> r31Var) {
            return MitraBrowserScreen.this.new f(r31Var);
        }

        public final Object invoke(b51 b51Var, r31<? super lm9> r31Var) {
            return create(b51Var, r31Var).invokeSuspend(lm9.a);
        }

        public final java.lang.Object invokeSuspend(java.lang.Object r15) {
            throw new UnsupportedOperationException("Method not decompiled: com.bukalapak.mitra.webview.MitraBrowserScreen.f.invokeSuspend(java.lang.Object):java.lang.Object");
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lsk8;", "Llm9;", "a", "(Lsk8;)V"}, k = 3, mv = {1, 8, 0})
    static final class g extends dk4 implements gx2<sk8, lm9> {
        final String[] $chooserPermission;
        final MitraBrowserScreen this$0;

        g(String[] strArr, MitraBrowserScreen mitraBrowserScreen) {
            super(1);
            this.$chooserPermission = strArr;
            this.this$0 = mitraBrowserScreen;
        }

        public final void a(sk8 sk8Var) {
            p64.h(sk8Var, "$this$requestPermission");
            sk8Var.r(ym.i0(this.$chooserPermission));
            String string = this.this$0.getString(vc7.F2);
            p64.g(string, "getString(R.string.brows…est_access_storage_title)");
            sk8Var.k(string);
            String string2 = this.this$0.getString(vc7.E2);
            p64.g(string2, "getString(R.string.brows…cess_storage_description)");
            sk8Var.q(string2);
            sk8Var.i(x75.a.p1());
            String string3 = this.this$0.getString(je7.s0);
            p64.g(string3, "getString(RResource.string.shared_res_next)");
            sk8Var.l(string3);
            String string4 = this.this$0.getString(je7.h0);
            p64.g(string4, "getString(RResource.string.shared_res_later)");
            sk8Var.j(string4);
        }

        public Object invoke(Object obj) {
            a((sk8) obj);
            return lm9.a;
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llm9;", "a", "()V"}, k = 3, mv = {1, 8, 0})
    static final class h extends dk4 implements ex2<lm9> {
        final ValueCallback<Uri> $fileUploadCallbackFirst;
        final ValueCallback<Uri[]> $fileUploadCallbackSecond;

        h(ValueCallback<Uri> valueCallback, ValueCallback<Uri[]> valueCallback2) {
            super(0);
            this.$fileUploadCallbackFirst = valueCallback;
            this.$fileUploadCallbackSecond = valueCallback2;
        }

        public final void a() {
            BrowserView O = MitraBrowserScreen.this.O();
            if (O != null) {
                O.r(this.$fileUploadCallbackFirst, this.$fileUploadCallbackSecond);
            }
        }

        public Object invoke() {
            a();
            return lm9.a;
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llm9;", "a", "()V"}, k = 3, mv = {1, 8, 0})
    static final class i extends dk4 implements ex2<lm9> {
        final rp0 $chooserMethod;
        final Context $context;
        final WebChromeClient.FileChooserParams $fileChooserParams;
        final ValueCallback<Uri> $fileUploadCallbackFirst;
        final ValueCallback<Uri[]> $fileUploadCallbackSecond;

        i(Context context, ValueCallback<Uri> valueCallback, ValueCallback<Uri[]> valueCallback2, WebChromeClient.FileChooserParams fileChooserParams, rp0 rp0Var) {
            super(0);
            this.$context = context;
            this.$fileUploadCallbackFirst = valueCallback;
            this.$fileUploadCallbackSecond = valueCallback2;
            this.$fileChooserParams = fileChooserParams;
            this.$chooserMethod = rp0Var;
        }

        public final void a() {
            BrowserView O = MitraBrowserScreen.this.O();
            if (O != null) {
                O.s(this.$context, this.$fileUploadCallbackFirst, this.$fileUploadCallbackSecond, this.$fileChooserParams, this.$chooserMethod);
            }
        }

        public Object invoke() {
            a();
            return lm9.a;
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llm9;", "a", "()V"}, k = 3, mv = {1, 8, 0})
    static final class j extends dk4 implements ex2<lm9> {
        j() {
            super(0);
        }

        public final void a() {
            BrowserView O = MitraBrowserScreen.this.O();
            if (O != null) {
                O.u("proceedRedemptionGeneralReward()");
            }
        }

        public Object invoke() {
            a();
            return lm9.a;
        }
    }

    @Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\u008a@"}, d2 = {"Lb51;", "Llm9;", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    @eo1(c = "com.bukalapak.mitra.webview.MitraBrowserScreen$onActivityResult$2", f = "MitraBrowserScreen.kt", l = {566}, m = "invokeSuspend")
    static final class k extends sw8 implements ux2<b51, r31<? super lm9>, Object> {
        final String $path;
        final int $requestCode;
        final String $type;
        final Uri $uri;
        int label;

        @Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\u008a@"}, d2 = {"Lb51;", "Llm9;", "<anonymous>"}, k = 3, mv = {1, 8, 0})
        @eo1(c = "com.bukalapak.mitra.webview.MitraBrowserScreen$onActivityResult$2$1", f = "MitraBrowserScreen.kt", l = {}, m = "invokeSuspend")
        static final class a extends sw8 implements ux2<b51, r31<? super lm9>, Object> {
            final String $imageBase64;
            final String $type;
            int label;
            final MitraBrowserScreen this$0;

            a(String str, MitraBrowserScreen mitraBrowserScreen, String str2, r31<? super a> r31Var) {
                super(2, r31Var);
                this.$imageBase64 = str;
                this.this$0 = mitraBrowserScreen;
                this.$type = str2;
            }

            public final r31<lm9> create(Object obj, r31<?> r31Var) {
                return new a(this.$imageBase64, this.this$0, this.$type, r31Var);
            }

            public final Object invoke(b51 b51Var, r31<? super lm9> r31Var) {
                return create(b51Var, r31Var).invokeSuspend(lm9.a);
            }

            public final Object invokeSuspend(Object obj) {
                BrowserView O;
                q64.d();
                if (this.label != 0) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                ot7.b(obj);
                if ((!bu8.y(this.$imageBase64)) && (O = this.this$0.O()) != null) {
                    O.u(x4.a.a(this.$type, this.$imageBase64));
                }
                return lm9.a;
            }
        }

        k(String str, Uri uri, int i, String str2, r31<? super k> r31Var) {
            super(2, r31Var);
            this.$path = str;
            this.$uri = uri;
            this.$requestCode = i;
            this.$type = str2;
        }

        public final r31<lm9> create(Object obj, r31<?> r31Var) {
            return MitraBrowserScreen.this.new k(this.$path, this.$uri, this.$requestCode, this.$type, r31Var);
        }

        public final Object invoke(b51 b51Var, r31<? super lm9> r31Var) {
            return create(b51Var, r31Var).invokeSuspend(lm9.a);
        }

        public final Object invokeSuspend(Object obj) {
            Object d = q64.d();
            int i = this.label;
            if (i == 0) {
                ot7.b(obj);
                String c = bi0.c(bi0.a, MitraBrowserScreen.this, this.$path, this.$uri, 0, 8, null);
                if (this.$requestCode == 191) {
                    File file = new File(this.$path);
                    if (file.exists()) {
                        file.delete();
                    }
                }
                nw4 c2 = dh1.a.c();
                a aVar = new a(c, MitraBrowserScreen.this, this.$type, null);
                this.label = 1;
                if (ja0.g(c2, aVar, this) == d) {
                    return d;
                }
            } else {
                if (i != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                ot7.b(obj);
            }
            return lm9.a;
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llm9;", "a", "()V"}, k = 3, mv = {1, 8, 0})
    static final class l extends dk4 implements ex2<lm9> {
        l() {
            super(0);
        }

        public final void a() {
            ?? r0 = MitraBrowserScreen.this;
            String string = r0.getString(ed7.p0);
            p64.g(string, "getString(RCustomerConta…contact_from_phone_error)");
            r0.X1(string, d.b);
        }

        public Object invoke() {
            a();
            return lm9.a;
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llm9;", "a", "()V"}, k = 3, mv = {1, 8, 0})
    static final class m extends dk4 implements ex2<lm9> {
        final boolean $isFromTrxDetail;

        m(boolean z) {
            super(0);
            this.$isFromTrxDetail = z;
        }

        public final void a() {
            MitraBrowserScreen.this.M1(this.$isFromTrxDetail);
        }

        public Object invoke() {
            a();
            return lm9.a;
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llm9;", "a", "()V"}, k = 3, mv = {1, 8, 0})
    static final class n extends dk4 implements ex2<lm9> {
        n() {
            super(0);
        }

        public final void a() {
            MitraBrowserScreen.this.a2();
        }

        public Object invoke() {
            a();
            return lm9.a;
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Lgo7;", "a", "()Lgo7;"}, k = 3, mv = {1, 8, 0})
    static final class o extends dk4 implements ex2<go7> {
        public static final o g = new o();

        o() {
            super(0);
        }

        public final go7 invoke() {
            return new go7("/qris-transactions");
        }
    }

    @Metadata(d1 = {"\u0000\u000e\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"", "it", "Lhb4;", "a", "(J)Lhb4;"}, k = 3, mv = {1, 8, 0})
    static final class p extends dk4 implements gx2<Long, hb4> {
        public static final p g = new p();

        p() {
            super(1);
        }

        public final hb4 a(long j) {
            return null;
        }

        public Object invoke(Object obj) {
            return a(((Number) obj).longValue());
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llm9;", "a", "()V"}, k = 3, mv = {1, 8, 0})
    static final class q extends dk4 implements ex2<lm9> {
        final boolean $isFromTrxDetail;

        @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llm9;", "a", "()V"}, k = 3, mv = {1, 8, 0})
        static final class a extends dk4 implements ex2<lm9> {
            final MitraBrowserScreen this$0;

            a(MitraBrowserScreen mitraBrowserScreen) {
                super(0);
                this.this$0 = mitraBrowserScreen;
            }

            public final void a() {
                BrowserView O = this.this$0.O();
                if (O != null) {
                    O.u("goToProductList()");
                }
            }

            public Object invoke() {
                a();
                return lm9.a;
            }
        }

        q(boolean z) {
            super(0);
            this.$isFromTrxDetail = z;
        }

        public final void a() {
            MitraBrowserViewModel mitraBrowserViewModel;
            ?? r0 = MitraBrowserScreen.this;
            String string = r0.getString(vc7.Td);
            p64.g(string, "getString(R.string.permission_location_denied)");
            r0.X1(string, d.c);
            if (!this.$isFromTrxDetail || (mitraBrowserViewModel = MitraBrowserScreen.this.viewModel) == null) {
                return;
            }
            mitraBrowserViewModel.J(500L, new a(MitraBrowserScreen.this));
        }

        public Object invoke() {
            a();
            return lm9.a;
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llm9;", "a", "()V"}, k = 3, mv = {1, 8, 0})
    static final class r extends dk4 implements ex2<lm9> {
        final boolean $isFromTrxDetail;

        @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llm9;", "a", "()V"}, k = 3, mv = {1, 8, 0})
        static final class a extends dk4 implements ex2<lm9> {
            final boolean $isFromTrxDetail;
            final MitraBrowserScreen this$0;

            @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llm9;", "a", "()V"}, k = 3, mv = {1, 8, 0})
            static final class C0132a extends dk4 implements ex2<lm9> {
                final MitraBrowserScreen this$0;

                C0132a(MitraBrowserScreen mitraBrowserScreen) {
                    super(0);
                    this.this$0 = mitraBrowserScreen;
                }

                public final void a() {
                    BrowserView O = this.this$0.O();
                    if (O != null) {
                        O.u("goToProductList()");
                    }
                }

                public Object invoke() {
                    a();
                    return lm9.a;
                }
            }

            a(MitraBrowserScreen mitraBrowserScreen, boolean z) {
                super(0);
                this.this$0 = mitraBrowserScreen;
                this.$isFromTrxDetail = z;
            }

            public final void a() {
                MitraBrowserViewModel mitraBrowserViewModel;
                this.this$0.a2();
                if (!this.$isFromTrxDetail || (mitraBrowserViewModel = this.this$0.viewModel) == null) {
                    return;
                }
                mitraBrowserViewModel.J(500L, new C0132a(this.this$0));
            }

            public Object invoke() {
                a();
                return lm9.a;
            }
        }

        r(boolean z) {
            super(0);
            this.$isFromTrxDetail = z;
        }

        public final void a() {
            MitraBrowserViewModel mitraBrowserViewModel = MitraBrowserScreen.this.viewModel;
            if (mitraBrowserViewModel != null) {
                MitraBrowserScreen mitraBrowserScreen = MitraBrowserScreen.this;
                mitraBrowserViewModel.Q(mitraBrowserScreen, new a(mitraBrowserScreen, this.$isFromTrxDetail));
            }
        }

        public Object invoke() {
            a();
            return lm9.a;
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Ltx1$d;", "Llm9;", "a", "(Ltx1$d;)V"}, k = 3, mv = {1, 8, 0})
    static final class s extends dk4 implements gx2<d, lm9> {

        @Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Ltx1;", "dialog", "Llm9;", "a", "(Ltx1;)V"}, k = 3, mv = {1, 8, 0})
        static final class a extends dk4 implements gx2<tx1, lm9> {
            final MitraBrowserScreen this$0;

            a(MitraBrowserScreen mitraBrowserScreen) {
                super(1);
                this.this$0 = mitraBrowserScreen;
            }

            public final void a(tx1 tx1Var) {
                p64.h(tx1Var, "dialog");
                tx1Var.b();
                MitraBrowserViewModel mitraBrowserViewModel = this.this$0.viewModel;
                if (mitraBrowserViewModel != null) {
                    mitraBrowserViewModel.G(this.this$0);
                }
            }

            public Object invoke(Object obj) {
                a((tx1) obj);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Ltx1;", "dialog", "Llm9;", "a", "(Ltx1;)V"}, k = 3, mv = {1, 8, 0})
        static final class b extends dk4 implements gx2<tx1, lm9> {
            public static final b g = new b();

            b() {
                super(1);
            }

            public final void a(tx1 tx1Var) {
                p64.h(tx1Var, "dialog");
                tx1Var.b();
            }

            public Object invoke(Object obj) {
                a((tx1) obj);
                return lm9.a;
            }
        }

        s() {
            super(1);
        }

        public final void a(d dVar) {
            p64.h(dVar, "$this$confirmation");
            String string = MitraBrowserScreen.this.getString(vc7.ac);
            p64.g(string, "getString(R.string.logout_confirmation_title)");
            dVar.i(string);
            String string2 = MitraBrowserScreen.this.getString(vc7.Xb);
            p64.g(string2, "getString(R.string.logout_confirmation_desc)");
            dVar.g(string2);
            d.u(dVar, MitraBrowserScreen.this.getString(vc7.Zb), (d) null, new a(MitraBrowserScreen.this), 2, (Object) null);
            d.s(dVar, MitraBrowserScreen.this.getString(vc7.Yb), (d) null, b.g, 2, (Object) null);
        }

        public Object invoke(Object obj) {
            a((d) obj);
            return lm9.a;
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lrt5;", "Llm9;", "a", "(Lrt5;)V"}, k = 3, mv = {1, 8, 0})
    static final class t extends dk4 implements gx2<rt5, lm9> {
        final List<we1> $customerNumbers;
        final String $name;

        t(String str, List<we1> list) {
            super(1);
            this.$name = str;
            this.$customerNumbers = list;
        }

        public final void a(rt5 rt5Var) {
            p64.h(rt5Var, "$this$applyState");
            rt5Var.setName(this.$name);
            rt5Var.setCustomerNumbers(this.$customerNumbers);
            rt5Var.setCustomerNumberType((String) null);
            rt5Var.setListLogo((HashMap) null);
            rt5Var.setFromPhoneContact(rt5Var.isFromPhoneContact());
        }

        public Object invoke(Object obj) {
            a((rt5) obj);
            return lm9.a;
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lsk8;", "Llm9;", "a", "(Lsk8;)V"}, k = 3, mv = {1, 8, 0})
    static final class u extends dk4 implements gx2<sk8, lm9> {
        u() {
            super(1);
        }

        public final void a(sk8 sk8Var) {
            p64.h(sk8Var, "$this$requestPermission");
            sk8Var.r(iu0.e("android.permission.READ_CONTACTS"));
            String string = MitraBrowserScreen.this.getString(ed7.r0);
            p64.g(string, "getString(RCustomerConta…m_phone_permission_title)");
            sk8Var.k(string);
            String string2 = MitraBrowserScreen.this.getString(ed7.q0);
            p64.g(string2, "getString(RCustomerConta…e_permission_description)");
            sk8Var.q(string2);
            sk8Var.i(fd1.a.a());
            String string3 = MitraBrowserScreen.this.getString(je7.s0);
            p64.g(string3, "getString(RResource.string.shared_res_next)");
            sk8Var.l(string3);
            String string4 = MitraBrowserScreen.this.getString(je7.h0);
            p64.g(string4, "getString(RResource.string.shared_res_later)");
            sk8Var.j(string4);
        }

        public Object invoke(Object obj) {
            a((sk8) obj);
            return lm9.a;
        }
    }

    @Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\u008a@"}, d2 = {"Lb51;", "Llm9;", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    @eo1(c = "com.bukalapak.mitra.webview.MitraBrowserScreen$showQrisReceivedTransactionSheet$1", f = "MitraBrowserScreen.kt", l = {180, 182, 183, 192}, m = "invokeSuspend")
    static final class v extends sw8 implements ux2<b51, r31<? super lm9>, Object> {
        final boolean $isQrisTopupVpPaymentPage;
        final hb4 $previousJob;
        final ex2<lm9> $sheetCallback;
        final long $transactionId;
        Object L$0;
        Object L$1;
        int label;

        @Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\u008a@"}, d2 = {"Lb51;", "Llm9;", "<anonymous>"}, k = 3, mv = {1, 8, 0})
        @eo1(c = "com.bukalapak.mitra.webview.MitraBrowserScreen$showQrisReceivedTransactionSheet$1$1", f = "MitraBrowserScreen.kt", l = {194}, m = "invokeSuspend")
        static final class a extends sw8 implements ux2<b51, r31<? super lm9>, Object> {
            final boolean $isQrisTopupVpPaymentPage;
            final String $mitraStoreName;
            final MitraBrowserViewModel $mitraViewModel;
            final String $nextSheetIdentifier;
            final Qriscode $qrisCode;
            final ex2<lm9> $sheetCallback;
            final boolean $shouldDismissPreviousSheet;
            final Userqristransaction $transaction;
            int label;
            final MitraBrowserScreen this$0;

            a(boolean z, MitraBrowserViewModel mitraBrowserViewModel, MitraBrowserScreen mitraBrowserScreen, String str, ex2<lm9> ex2Var, Userqristransaction userqristransaction, Qriscode qriscode, String str2, boolean z2, r31<? super a> r31Var) {
                super(2, r31Var);
                this.$shouldDismissPreviousSheet = z;
                this.$mitraViewModel = mitraBrowserViewModel;
                this.this$0 = mitraBrowserScreen;
                this.$nextSheetIdentifier = str;
                this.$sheetCallback = ex2Var;
                this.$transaction = userqristransaction;
                this.$qrisCode = qriscode;
                this.$mitraStoreName = str2;
                this.$isQrisTopupVpPaymentPage = z2;
            }

            public final r31<lm9> create(Object obj, r31<?> r31Var) {
                return new a(this.$shouldDismissPreviousSheet, this.$mitraViewModel, this.this$0, this.$nextSheetIdentifier, this.$sheetCallback, this.$transaction, this.$qrisCode, this.$mitraStoreName, this.$isQrisTopupVpPaymentPage, r31Var);
            }

            public final Object invoke(b51 b51Var, r31<? super lm9> r31Var) {
                return create(b51Var, r31Var).invokeSuspend(lm9.a);
            }

            public final Object invokeSuspend(Object obj) {
                Object d = q64.d();
                int i = this.label;
                if (i == 0) {
                    ot7.b(obj);
                    if (this.$shouldDismissPreviousSheet) {
                        long s = this.$mitraViewModel.s();
                        this.label = 1;
                        if (ks1.a(s, this) == d) {
                            return d;
                        }
                    }
                    this.this$0.receivedQrisTransactionSheetIdentifier = this.$nextSheetIdentifier;
                    b17 y1 = this.this$0.y1();
                    Context applicationContext = this.this$0.getApplicationContext();
                    p64.g(applicationContext, "applicationContext");
                    ex2<lm9> ex2Var = this.$sheetCallback;
                    Userqristransaction userqristransaction = this.$transaction;
                    Qriscode qriscode = this.$qrisCode;
                    String str = this.$mitraStoreName;
                    d48 d48Var = d48.a;
                    y1.i(applicationContext, ex2Var, userqristransaction, qriscode, str, d48Var.y4().b(), d48Var.L1().b(), this.$isQrisTopupVpPaymentPage);
                    return lm9.a;
                }
                if (i != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                ot7.b(obj);
                a aVar = lg8.R;
                aVar.a(this.this$0.getApplicationContext(), "add_receipt_notes_sheet");
                aVar.a(this.this$0.getApplicationContext(), this.this$0.receivedQrisTransactionSheetIdentifier);
                this.this$0.receivedQrisTransactionSheetIdentifier = this.$nextSheetIdentifier;
                b17 y12 = this.this$0.y1();
                Context applicationContext2 = this.this$0.getApplicationContext();
                p64.g(applicationContext2, "applicationContext");
                ex2<lm9> ex2Var2 = this.$sheetCallback;
                Userqristransaction userqristransaction2 = this.$transaction;
                Qriscode qriscode2 = this.$qrisCode;
                String str2 = this.$mitraStoreName;
                d48 d48Var2 = d48.a;
                y12.i(applicationContext2, ex2Var2, userqristransaction2, qriscode2, str2, d48Var2.y4().b(), d48Var2.L1().b(), this.$isQrisTopupVpPaymentPage);
                return lm9.a;
            }
        }

        v(long j, hb4 hb4Var, ex2<lm9> ex2Var, boolean z, r31<? super v> r31Var) {
            super(2, r31Var);
            this.$transactionId = j;
            this.$previousJob = hb4Var;
            this.$sheetCallback = ex2Var;
            this.$isQrisTopupVpPaymentPage = z;
        }

        public final r31<lm9> create(Object obj, r31<?> r31Var) {
            return MitraBrowserScreen.this.new v(this.$transactionId, this.$previousJob, this.$sheetCallback, this.$isQrisTopupVpPaymentPage, r31Var);
        }

        public final Object invoke(b51 b51Var, r31<? super lm9> r31Var) {
            return create(b51Var, r31Var).invokeSuspend(lm9.a);
        }

        public final java.lang.Object invokeSuspend(java.lang.Object r19) {
            throw new UnsupportedOperationException("Method not decompiled: com.bukalapak.mitra.webview.MitraBrowserScreen.v.invokeSuspend(java.lang.Object):java.lang.Object");
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u0004\u0018\u00010\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llm9;", "a", "()Llm9;"}, k = 3, mv = {1, 8, 0})
    static final class w extends dk4 implements ex2<lm9> {
        w() {
            super(0);
        }

        public final lm9 invoke() {
            BrowserView O = MitraBrowserScreen.this.O();
            if (O == null) {
                return null;
            }
            O.reload();
            return lm9.a;
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u0004\u0018\u00010\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llm9;", "a", "()Llm9;"}, k = 3, mv = {1, 8, 0})
    static final class x extends dk4 implements ex2<lm9> {
        x() {
            super(0);
        }

        public final lm9 invoke() {
            BrowserView O = MitraBrowserScreen.this.O();
            if (O == null || !O.canGoBack()) {
                MitraBrowserScreen.this.finish();
                return lm9.a;
            }
            BrowserView O2 = MitraBrowserScreen.this.O();
            if (O2 == null) {
                return null;
            }
            O2.goBack();
            return lm9.a;
        }
    }

    @Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\u008a@"}, d2 = {"Lb51;", "Llm9;", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    @eo1(c = "com.bukalapak.mitra.webview.MitraBrowserScreen$subscribeToNotificationEvent$1", f = "MitraBrowserScreen.kt", l = {226}, m = "invokeSuspend")
    static final class y extends sw8 implements ux2<b51, r31<? super lm9>, Object> {
        int label;

        @Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\u008a@¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lrq5$a;", "it", "Llm9;", "a", "(Lrq5$a;Lr31;)Ljava/lang/Object;"}, k = 3, mv = {1, 8, 0})
        static final class a<T> implements ds2 {
            final MitraBrowserScreen a;

            a(MitraBrowserScreen mitraBrowserScreen) {
                this.a = mitraBrowserScreen;
            }

            public final Object g(a aVar, r31<? super lm9> r31Var) {
                String queryParameter;
                go7 z1 = this.a.z1();
                String a = aVar.a();
                if (a == null) {
                    a = "";
                }
                if (go7.c(z1, a, 0, 2, (Object) null) != null && (queryParameter = Uri.parse(aVar.a()).getQueryParameter("id")) != null) {
                    MitraBrowserScreen mitraBrowserScreen = this.a;
                    Long o = bu8.o(queryParameter);
                    if (o != null && o.longValue() > 0) {
                        mitraBrowserScreen.W1(o.longValue());
                    }
                }
                return lm9.a;
            }
        }

        y(r31<? super y> r31Var) {
            super(2, r31Var);
        }

        public final r31<lm9> create(Object obj, r31<?> r31Var) {
            return MitraBrowserScreen.this.new y(r31Var);
        }

        public final Object invoke(b51 b51Var, r31<? super lm9> r31Var) {
            return create(b51Var, r31Var).invokeSuspend(lm9.a);
        }

        public final Object invokeSuspend(Object obj) {
            Object d = q64.d();
            int i = this.label;
            if (i == 0) {
                ot7.b(obj);
                dg8 a2 = rq5.a.a();
                a aVar = new a(MitraBrowserScreen.this);
                this.label = 1;
                if (a2.a(aVar, this) == d) {
                    return d;
                }
            } else {
                if (i != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                ot7.b(obj);
            }
            throw new KotlinNothingValueException();
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llm9;", "a", "()V"}, k = 3, mv = {1, 8, 0})
    static final class z extends dk4 implements ex2<lm9> {

        @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llm9;", "a", "()V"}, k = 3, mv = {1, 8, 0})
        static final class a extends dk4 implements ex2<lm9> {
            final MitraBrowserScreen this$0;

            a(MitraBrowserScreen mitraBrowserScreen) {
                super(0);
                this.this$0 = mitraBrowserScreen;
            }

            public final void a() {
                BrowserView O = this.this$0.O();
                if (O != null) {
                    O.reload();
                }
            }

            public Object invoke() {
                a();
                return lm9.a;
            }
        }

        z() {
            super(0);
        }

        public final void a() {
            MitraBrowserViewModel mitraBrowserViewModel = MitraBrowserScreen.this.viewModel;
            if (mitraBrowserViewModel != null) {
                mitraBrowserViewModel.J(500L, new a(MitraBrowserScreen.this));
            }
        }

        public Object invoke() {
            a();
            return lm9.a;
        }
    }

    private final boolean B1(String url) {
        return url != null && bu8.R(url, this.subUrlAdjust, false, 2, (Object) null);
    }

    private final void C1(Intent intent) {
        Uri data = intent != null ? intent.getData() : null;
        boolean z2 = !ym.z(new Object[]{data}, (Object) null);
        if (z2) {
            p64.e(data);
            c46 a = ha6.a.a(this, data);
            if (a != null) {
                String str = (String) a.a();
                List<we1> u1 = u1((List) a.b());
                int size = u1.size();
                if (size == 0) {
                    String string = getString(ed7.o0);
                    p64.g(string, "getString(RCustomerConta…contact_from_phone_empty)");
                    X1(string, d.c);
                } else if (size != 1) {
                    T1(str, u1);
                } else {
                    F1(str, u1.get(0).b());
                }
            } else {
                String string2 = getString(ed7.p0);
                p64.g(string2, "getString(RCustomerConta…contact_from_phone_error)");
                X1(string2, d.b);
            }
        }
        new hn9(z2).a(new l());
    }

    public static void E1(MitraBrowserScreen mitraBrowserScreen, boolean z2, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            z2 = false;
        }
        mitraBrowserScreen.D1(z2);
    }

    private final void F1(String str, String str2) {
        BrowserView O = O();
        if (O != null) {
            O.u("processPhoneContact('" + str + "','" + str2 + "')");
        }
    }

    private final void G1(cy1 cy1Var) {
        ex2 ex2Var;
        ex2 ex2Var2;
        if (cy1Var.j("pin_phone_confirmation", 1118804)) {
            BrowserView O = O();
            if (O != null) {
                O.u("onFinishResetPIN();");
                return;
            }
            return;
        }
        if (cy1Var.i("number_chooser_sheet")) {
            int i2 = cy1Var.b().getInt("key_number_chooser_sheet");
            String string = cy1Var.b().getString("key_selected_name");
            String string2 = cy1Var.b().getString("key_selected_number");
            if (i2 == 8803) {
                F1(string, string2);
                return;
            }
            return;
        }
        if (!cy1Var.i("permission_dialog")) {
            if (cy1Var.i(this.receivedQrisTransactionSheetIdentifier)) {
                this.receivedQrisTransactionSheetIdentifier = "";
                BrowserView O2 = O();
                if (O2 != null) {
                    O2.reload();
                }
                return;
            }
            return;
        }
        switch (cy1Var.b().getInt("key_permission_dialog", 0)) {
            case 101:
            case 103:
            case 105:
                c46<? extends ex2<lm9>, ? extends ex2<lm9>> c46Var = this.pendingDialogAction;
                if (c46Var != null && (ex2Var = (ex2) c46Var.f()) != null) {
                    ex2Var.invoke();
                    break;
                }
                break;
            case 102:
                c46<? extends ex2<lm9>, ? extends ex2<lm9>> c46Var2 = this.pendingDialogAction;
                if (c46Var2 != null && (ex2Var2 = (ex2) c46Var2.e()) != null) {
                    ex2Var2.invoke();
                    break;
                }
                break;
        }
    }

    private final void H1(String str) {
        MitraBrowserViewModel mitraBrowserViewModel = this.viewModel;
        if (mitraBrowserViewModel != null) {
            d48 d48Var = d48.a;
            mitraBrowserViewModel.S(d48Var.y4().b(), d48Var.y4().b(), str);
        }
        BrowserView O = O();
        if (O != null) {
            O.u("processPaymentResponse('" + str + "')");
        }
    }

    public final void M1(boolean z2) {
        this.pendingDialogAction = new c46<>(new r(z2), new q(z2));
    }

    static void N1(MitraBrowserScreen mitraBrowserScreen, boolean z2, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            z2 = false;
        }
        mitraBrowserScreen.M1(z2);
    }

    private final void T1(String str, List<we1> list) {
        NumberChooserSheet.Fragment fragment = new NumberChooserSheet.Fragment();
        fragment.o0().S1(new t(str, list));
        fragment.m(this);
    }

    private final void U1() {
        try {
            startActivityForResult(new Intent("android.intent.action.PICK", ContactsContract.Contacts.CONTENT_URI), 700);
        } catch (ActivityNotFoundException unused) {
            String string = getString(ed7.H0);
            p64.g(string, "getString(RCustomerConta…t_open_from_phone_failed)");
            X1(string, d.b);
        }
    }

    private final void V1() {
        og4.a.a(this, true);
        h96.u(h96.a, this, (String) null, new u(), 2, (Object) null);
    }

    public final void X1(String str, d dVar) {
        if (dVar == d.b) {
            pm8.g.a(this, str);
        } else {
            pm8.g.d(this, str);
        }
    }

    private final void Y1() {
        if (this.notificationEventSubscriberJob != null) {
            return;
        }
        this.notificationEventSubscriberJob = ja0.d(xn4.a(this), dh1.a.c(), (f51) null, new y(null), 2, (Object) null);
    }

    public final void a2() {
        MitraBrowserViewModel mitraBrowserViewModel = this.viewModel;
        if (mitraBrowserViewModel != null) {
            mitraBrowserViewModel.p(new z());
        }
    }

    private final List<we1> u1(List<String> numbers) {
        ArrayList arrayList = new ArrayList();
        ArrayList arrayList2 = new ArrayList();
        for (Object obj : numbers) {
            if (nt8.g((String) obj)) {
                arrayList2.add(obj);
            }
        }
        ArrayList arrayList3 = new ArrayList();
        Iterator it = arrayList2.iterator();
        while (it.hasNext()) {
            String b2 = nt8.b((String) it.next());
            if (b2 != null) {
                arrayList3.add(b2);
            }
        }
        List T = iu0.T(arrayList3);
        ArrayList arrayList4 = new ArrayList(iu0.r(T, 10));
        Iterator it2 = T.iterator();
        while (it2.hasNext()) {
            arrayList4.add(new we1((String) null, (String) it2.next(), (Long) null, false, 8, (oq1) null));
        }
        arrayList.addAll(arrayList4);
        return iu0.Q0(arrayList);
    }

    public final go7 z1() {
        return (go7) this.qrisNotificationUrlRegex.getValue();
    }

    public final yi7 A1() {
        yi7 yi7Var = this.receiptNavigation;
        if (yi7Var != null) {
            return yi7Var;
        }
        p64.t("receiptNavigation");
        return null;
    }

    public final void D1(boolean z2) {
        MitraBrowserViewModel mitraBrowserViewModel = this.viewModel;
        if (mitraBrowserViewModel != null) {
            mitraBrowserViewModel.F(this, new m(z2), new n());
        }
    }

    protected View F(CharSequence message) {
        p64.h(message, "message");
        ha2 ha2Var = new ha2(this);
        ha2Var.Q(new e());
        ViewGroup V = ha2Var.V();
        V.setBackgroundColor(-1);
        return V;
    }

    protected void F0(WebView webView, String str) {
        p64.h(webView, "view");
        p64.h(str, "url");
        super.F0(webView, str);
        MitraBrowserViewModel mitraBrowserViewModel = this.viewModel;
        if (mitraBrowserViewModel != null) {
            mitraBrowserViewModel.N(str);
        }
        MitraBrowserViewModel mitraBrowserViewModel2 = this.viewModel;
        if (mitraBrowserViewModel2 != null) {
            mitraBrowserViewModel2.L(str);
        }
        if (bu8.R(str, "reddoorz", false, 2, (Object) null)) {
            webView.evaluateJavascript("\n            (\n                function() { \n                    window.addEventListener('message', function(event) {\n                        window.blandroid.onRedDoorzDownloadInvoice(event.data); \n                    }); \n                }\n            )();\n        ", null);
        }
    }

    protected void G0(WebView webView, String str, Bitmap bitmap) {
        p64.h(webView, "view");
        p64.h(str, "url");
        super/*com.bukalapak.android.lib.browser.BrowserScreen*/.G0(webView, str, bitmap);
        MitraBrowserViewModel mitraBrowserViewModel = this.viewModel;
        if (mitraBrowserViewModel != null) {
            mitraBrowserViewModel.B();
        }
        MitraBrowserViewModel mitraBrowserViewModel2 = this.viewModel;
        if (mitraBrowserViewModel2 != null) {
            Context context = webView.getContext();
            p64.g(context, "view.context");
            mitraBrowserViewModel2.T(context, str);
        }
        Q1(P().getEnablePtr());
    }

    public final void I1(String str) {
        p64.h(str, "callbackFunction");
        BrowserView O = O();
        if (O != null) {
            O.u(str + "(\"" + wg.a.r() + "\")");
        }
    }

    public final void J1() {
        MitraBrowserViewModel mitraBrowserViewModel = this.viewModel;
        if (mitraBrowserViewModel != null) {
            mitraBrowserViewModel.A(this, 1002);
        }
    }

    public final void K1(m74 m74Var) {
        p64.h(m74Var, "invoiceConversion");
        MitraBrowserViewModel mitraBrowserViewModel = this.viewModel;
        if (mitraBrowserViewModel != null) {
            mitraBrowserViewModel.I(m74Var);
        }
    }

    protected boolean L0(WebView view, String url) {
        WebBackForwardList copyBackForwardList;
        WebHistoryItem currentItem;
        p64.h(view, "view");
        p64.h(url, "url");
        BrowserView O = O();
        String originalUrl = (O == null || (copyBackForwardList = O.copyBackForwardList()) == null || (currentItem = copyBackForwardList.getCurrentItem()) == null) ? null : currentItem.getOriginalUrl();
        if (Uri.parse(url).isOpaque()) {
            c90.a.d(this, url, true);
        } else {
            d90 d90Var = d90.a;
            Bundle bundle = new Bundle();
            bundle.putBoolean("fromAdjust", B1(originalUrl));
            boolean z2 = false;
            if (originalUrl != null && bu8.R(originalUrl, "fallback", false, 2, (Object) null)) {
                z2 = true;
            }
            bundle.putBoolean("containsFallback", z2);
            lm9 lm9Var = lm9.a;
            d90Var.a(this, url, bundle);
        }
        return true;
    }

    public final void L1(PaaSOTPKey paaSOTPKey) {
        p64.h(paaSOTPKey, "otpData");
        MitraBrowserViewModel mitraBrowserViewModel = this.viewModel;
        if (mitraBrowserViewModel != null) {
            mitraBrowserViewModel.K(paaSOTPKey);
        }
    }

    public final void O1() {
        MitraBrowserViewModel mitraBrowserViewModel = this.viewModel;
        if (mitraBrowserViewModel != null) {
            mitraBrowserViewModel.P(P().P());
        }
    }

    public final void P1(ex2<lm9> ex2Var) {
        this.pendingAction = ex2Var;
    }

    public final void Q1(boolean z2) {
        R().setEnabled(z2);
    }

    public final Boolean R1() {
        MitraBrowserViewModel mitraBrowserViewModel = this.viewModel;
        if (mitraBrowserViewModel != null) {
            return Boolean.valueOf(mitraBrowserViewModel.R());
        }
        return null;
    }

    public final void S1() {
        tx1.b.b(this, new s()).h();
    }

    protected void V(Context context, ValueCallback<Uri> valueCallback, ValueCallback<Uri[]> valueCallback2, WebChromeClient.FileChooserParams fileChooserParams) {
        p64.h(context, "context");
        p64.h(fileChooserParams, "fileChooserParams");
        i iVar = new i(context, valueCallback, valueCallback2, fileChooserParams, fileChooserParams.isCaptureEnabled() ? rp0.a : fileChooserParams.getMode() == 1 ? rp0.c : rp0.b);
        h hVar = new h(valueCallback, valueCallback2);
        String[] strArr = Build.VERSION.SDK_INT >= 29 ? new String[]{"android.permission.CAMERA"} : new String[]{"android.permission.WRITE_EXTERNAL_STORAGE", "android.permission.READ_EXTERNAL_STORAGE", "android.permission.CAMERA"};
        h96 h96Var = h96.a;
        if (h96Var.j(this, strArr)) {
            iVar.invoke();
        } else {
            this.pendingDialogAction = new c46<>(iVar, hVar);
            h96.u(h96Var, this, (String) null, new g(strArr, this), 2, (Object) null);
        }
    }

    public final void W1(long j2) {
        ex2 ex2Var;
        ex2 xVar;
        BrowserView O = O();
        String url = O != null ? O.getUrl() : null;
        if (url == null) {
            url = "";
        }
        boolean z2 = bu8.R(url, "/topup/wallet", false, 2, (Object) null) && bu8.R(url, "tab=qris", false, 2, (Object) null);
        boolean z3 = bu8.R(url, "/topup/wallet", false, 2, (Object) null) && bu8.R(url, "method=qris", false, 2, (Object) null);
        if (z2) {
            xVar = new w();
        } else {
            if (!z3) {
                ex2Var = null;
                if (!z2 || z3) {
                    this.receivedQrisTransactionSheetJobs.put(Long.valueOf(j2), ja0.d(xn4.a(this), (v41) null, (f51) null, new v(j2, this.receivedQrisTransactionSheetJobs.get(Long.valueOf(this.receivedQrisTransactionId)), ex2Var, z3, null), 3, (Object) null));
                }
                return;
            }
            xVar = new x();
        }
        ex2Var = xVar;
        if (z2) {
        }
        this.receivedQrisTransactionSheetJobs.put(Long.valueOf(j2), ja0.d(xn4.a(this), (v41) null, (f51) null, new v(j2, this.receivedQrisTransactionSheetJobs.get(Long.valueOf(this.receivedQrisTransactionId)), ex2Var, z3, null), 3, (Object) null));
    }

    public final void Z1() {
        if (h96.a.j(this, new String[]{"android.permission.READ_CONTACTS"})) {
            U1();
        } else {
            V1();
        }
    }

    public final oq3 getHomeNavigation() {
        oq3 oq3Var = this.homeNavigation;
        if (oq3Var != null) {
            return oq3Var;
        }
        p64.t("homeNavigation");
        return null;
    }

    protected void h0(boolean z2) {
        super.h0(z2);
        if (z2) {
            o70 o70Var = this.brazeJsBridge;
            BrowserView O = O();
            p64.g(O, "browserView");
            o70Var.b(O);
            BrowserView O2 = O();
            if (O2 != null) {
                O2.addJavascriptInterface(new hc0(this), "blandroid");
            }
        }
    }

    protected void onActivityResult(int i2, int i3, Intent intent) {
        String stringExtra;
        MitraBrowserViewModel mitraBrowserViewModel;
        super/*com.bukalapak.android.lib.browser.BrowserScreen*/.onActivityResult(i2, i3, intent);
        BrowserView O = O();
        if (O != null) {
            O.t(i2, i3, intent);
        }
        Uri uri = null;
        uri = null;
        if (i2 == 191 || i2 == 192) {
            String stringExtra2 = intent != null ? intent.getStringExtra("result_camera_path") : null;
            String stringExtra3 = intent != null ? intent.getStringExtra("result_camera_type") : null;
            if (intent != null && (stringExtra = intent.getStringExtra("result_camera_uri")) != null) {
                uri = Uri.parse(stringExtra);
            }
            if (stringExtra2 == null || stringExtra3 == null) {
                return;
            }
            ja0.d(cc3.a, dh1.a.b(), (f51) null, new k(stringExtra2, uri, i2, stringExtra3, null), 2, (Object) null);
            return;
        }
        if (i2 == 700) {
            if (i3 == -1) {
                C1(intent);
                return;
            }
            return;
        }
        if (i2 != 1101) {
            if (i2 == 8800) {
                G1(new cy1(i3, intent));
                return;
            }
            if (i2 == 40101) {
                if (i3 != -1) {
                    H1("mitrabl://edc?status=CANCELLED");
                    return;
                } else {
                    H1(String.valueOf(intent != null ? intent.getDataString() : null));
                    return;
                }
            }
            if (i2 == 100001) {
                a.c(getHomeNavigation(), this, 2, (String) null, (String) null, (String) null, (Long) null, (String) null, false, false, (String) null, false, 1020, (Object) null);
                return;
            }
            if (i2 == 1002) {
                if (i3 == -1 && (mitraBrowserViewModel = this.viewModel) != null) {
                    mitraBrowserViewModel.J(500L, new j());
                    return;
                }
                return;
            }
            if (i2 != 1003) {
                return;
            }
        }
        if (i3 != -1) {
            return;
        }
        a2();
    }

    protected void onCreate(Bundle bundle) {
        super/*com.bukalapak.android.lib.browser.BrowserScreen*/.onCreate(bundle);
        this.viewModel = (MitraBrowserViewModel) new androidx.lifecycle.w(this).a(MitraBrowserViewModel.class);
        Q1(P().getEnablePtr());
        O1();
        MitraBrowserViewModel mitraBrowserViewModel = this.viewModel;
        if (mitraBrowserViewModel != null) {
            MitraBrowserViewModel.q(mitraBrowserViewModel, null, 1, null);
        }
    }

    protected void onNewIntent(Intent intent) {
        p64.h(intent, "intent");
        Object serializableExtra = intent.getSerializableExtra("extras");
        b bVar = serializableExtra instanceof b ? (b) serializableExtra : null;
        if (bVar != null) {
            if (bVar.getImmediateFinish()) {
                finish();
            }
            BrowserScreen.b bVar2 = new b();
            bVar2.U(bVar.P());
            if (bu8.R(P().P(), "reddoorz", false, 2, (Object) null)) {
                bVar2.Z(P().getEnablePtr());
                bVar2.s(P().d());
            }
            lm9 lm9Var = lm9.a;
            intent.putExtra("extras", (Serializable) bVar2);
        }
        super/*com.bukalapak.android.lib.browser.BrowserScreen*/.onNewIntent(intent);
    }

    protected void onPause() {
        super/*com.bukalapak.android.lib.browser.BrowserScreen*/.onPause();
        MitraBrowserViewModel mitraBrowserViewModel = this.viewModel;
        if (mitraBrowserViewModel != null) {
            mitraBrowserViewModel.U(this, P().P());
        }
    }

    public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
        boolean z2;
        ex2<lm9> ex2Var;
        p64.h(permissions, "permissions");
        p64.h(grantResults, "grantResults");
        super/*com.bukalapak.android.lib.browser.BrowserScreen*/.onRequestPermissionsResult(requestCode, permissions, grantResults);
        if (requestCode == 1001) {
            int length = grantResults.length;
            int i2 = 0;
            while (true) {
                if (i2 >= length) {
                    z2 = false;
                    break;
                } else {
                    if (grantResults[i2] != 0) {
                        z2 = true;
                        break;
                    }
                    i2++;
                }
            }
            boolean z3 = !z2;
            if ((!(grantResults.length == 0)) && z3 && (ex2Var = this.pendingAction) != null) {
                ex2Var.invoke();
            }
            this.pendingAction = null;
        }
    }

    protected void onResume() {
        super/*com.bukalapak.android.lib.browser.BrowserScreen*/.onResume();
        MitraBrowserViewModel mitraBrowserViewModel = this.viewModel;
        if (mitraBrowserViewModel != null) {
            mitraBrowserViewModel.H(this, P().P());
        }
    }

    protected void onStart() {
        super/*androidx.appcompat.app.c*/.onStart();
        Y1();
    }

    protected void onStop() {
        hb4 value;
        super/*androidx.appcompat.app.c*/.onStop();
        hb4 hb4Var = this.notificationEventSubscriberJob;
        if (hb4Var != null && hb4Var.b()) {
            hb4 hb4Var2 = this.notificationEventSubscriberJob;
            if (hb4Var2 != null) {
                a.a(hb4Var2, (CancellationException) null, 1, (Object) null);
            }
            this.notificationEventSubscriberJob = null;
        }
        for (Map.Entry<Long, hb4> entry : this.receivedQrisTransactionSheetJobs.entrySet()) {
            hb4 value2 = entry.getValue();
            if (value2 != null && value2.b() && (value = entry.getValue()) != null) {
                a.a(value, (CancellationException) null, 1, (Object) null);
            }
        }
        this.receivedQrisTransactionSheetJobs.clear();
    }

    public final void r1() {
        MitraBrowserViewModel mitraBrowserViewModel = this.viewModel;
        if (mitraBrowserViewModel != null) {
            mitraBrowserViewModel.o(this, new c(), new d());
        }
    }

    public z80<?> H() {
        return new z80<>(this);
    }

    public final hb4 t1() {
        return ja0.d(xn4.a(this), (v41) null, (f51) null, new f(null), 3, (Object) null);
    }

    public final dc1 v1() {
        dc1 dc1Var = this.customerContactNavigation;
        if (dc1Var != null) {
            return dc1Var;
        }
        p64.t("customerContactNavigation");
        return null;
    }

    public final pg2 w1() {
        pg2 pg2Var = this.externalIntentNavigation;
        if (pg2Var != null) {
            return pg2Var;
        }
        p64.t("externalIntentNavigation");
        return null;
    }

    public final gd6 x1() {
        gd6 gd6Var = this.pinNavigation;
        if (gd6Var != null) {
            return gd6Var;
        }
        p64.t("pinNavigation");
        return null;
    }

    public final b17 y1() {
        b17 b17Var = this.qrNavigation;
        if (b17Var != null) {
            return b17Var;
        }
        p64.t("qrNavigation");
        return null;
    }
}