c.smali

.class public final Lal/c;
.super Lal/a;
.source "PaymentSelectFragment.kt"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lal/c$a;
    }
.end annotation

.annotation runtime Lkotlin/Metadata;
    bv = {
        0x1,
        0x0,
        0x3
    }
    d1 = {
        "\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\u0008\u0002\u0018\u0000 \t2\u00020\u0001:\u0001\tB\u0005\u00a2\u0006\u0002\u0010\u0002J\u0010\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0014J\u0008\u0010\u0007\u001a\u00020\u0008H\u0016\u00a8\u0006\n"
    }
    d2 = {
        "Lcom/shopee/foody/driver/wallet/spm/fragment/PaymentSelectFragment;",
        "Lcom/shopee/foody/driver/wallet/spm/fragment/BaseSPMFragment;",
        "()V",
        "createWebView",
        "Lcom/shopee/android/hybrid/webview/CustomWebView;",
        "context",
        "Landroid/content/Context;",
        "onDestroyView",
        "",
        "Companion",
        "driver_indonesiaRelease"
    }
    k = 0x1
    mv = {
        0x1,
        0x1,
        0x10
    }
.end annotation


# instance fields
.field public f:Ljava/util/HashMap;


# direct methods
.method public static constructor <clinit>()V
    .registers 2

    new-instance v0, Lal/c$a;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lal/c$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V

    return-void
.end method

.method public constructor <init>()V
    .registers 1

    invoke-direct {p0}, Lal/a;-><init>()V

    return-void
.end method


# virtual methods
.method public _$_clearFindViewByIdCache()V
    .registers 2

    iget-object v0, p0, Lal/c;->f:Ljava/util/HashMap;

    if-eqz v0, :cond_7

    invoke-virtual {v0}, Ljava/util/HashMap;->clear()V

    :cond_7
    return-void
.end method

.method public a(Landroid/content/Context;)Lpa/a;
    .registers 8

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_14

    invoke-virtual {v0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    if-eqz v0, :cond_14

    const-string v2, "set_session_storage_js"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_15

    :cond_14
    move-object v0, v1

    :goto_15
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v2

    if-eqz v2, :cond_27

    invoke-virtual {v2}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    if-eqz v2, :cond_27

    const-string v1, "url"

    invoke-virtual {v2, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :cond_27
    sget-object v2, Lzk/c;->b:Lzk/c;

    invoke-virtual {v2, p1}, Lzk/c;->a(Landroid/content/Context;)Lcom/shopee/foody/driver/wallet/spm/PaymentSelectWebView;

    move-result-object v2

    const/4 v3, 0x0

    const/4 v4, 0x1

    if-eqz v2, :cond_32

    goto :goto_4d

    :cond_32
    new-instance v2, Lcom/shopee/foody/driver/wallet/spm/PaymentSelectWebView;

    new-instance v5, Landroid/content/MutableContextWrapper;

    invoke-direct {v5, p1}, Landroid/content/MutableContextWrapper;-><init>(Landroid/content/Context;)V

    invoke-direct {v2, v5}, Lcom/shopee/foody/driver/wallet/spm/PaymentSelectWebView;-><init>(Landroid/content/Context;)V

    if-eqz v1, :cond_47

    invoke-static {v1}, Lkotlin/text/StringsKt__StringsJVMKt;->isBlank(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_45

    goto :goto_47

    :cond_45
    const/4 p1, 0x0

    goto :goto_48

    :cond_47
    :goto_47
    const/4 p1, 0x1

    :goto_48
    if-nez p1, :cond_4d

    invoke-virtual {v2, v1}, Lcom/shopee/foody/driver/wallet/spm/PaymentSelectWebView;->c(Ljava/lang/String;)V

    :cond_4d
    :goto_4d
    if-eqz v0, :cond_55

    invoke-static {v0}, Lkotlin/text/StringsKt__StringsJVMKt;->isBlank(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_56

    :cond_55
    const/4 v3, 0x1

    :cond_56
    if-nez v3, :cond_5b

    invoke-virtual {v2, v0}, Lcom/shopee/foody/driver/wallet/spm/PaymentSelectWebView;->setSessionStorage(Ljava/lang/String;)V

    :cond_5b
    return-object v2
.end method

.method public onDestroyView()V
    .registers 6

    invoke-virtual {p0}, Lka/b;->c()Lpa/a;

    move-result-object v0

    instance-of v1, v0, Lcom/shopee/foody/driver/wallet/spm/PaymentSelectWebView;

    const/4 v2, 0x0

    if-nez v1, :cond_a

    move-object v0, v2

    :cond_a
    check-cast v0, Lcom/shopee/foody/driver/wallet/spm/PaymentSelectWebView;

    if-eqz v0, :cond_38

    invoke-virtual {v0}, Lcom/shopee/foody/driver/wallet/spm/PaymentSelectWebView;->e()Z

    move-result v1

    if-eqz v1, :cond_38

    sget-object v1, Lqa/d;->e:Lqa/d$a;

    sget-object v3, Lal/c$b;->a:Lal/c$b;

    const-string v4, "spm.PaymentSelectFragment"

    invoke-virtual {v1, v4, v3}, Lqa/d$a;->c(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    invoke-virtual {v0}, Landroid/webkit/WebView;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    instance-of v3, v1, Landroid/view/ViewGroup;

    if-nez v3, :cond_26

    move-object v1, v2

    :cond_26
    check-cast v1, Landroid/view/ViewGroup;

    if-eqz v1, :cond_2d

    invoke-virtual {v1, v0}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    :cond_2d
    invoke-virtual {v0}, Lcom/shopee/foody/driver/wallet/spm/PaymentSelectWebView;->f()V

    sget-object v1, Lzk/c;->b:Lzk/c;

    invoke-virtual {v1, v0}, Lzk/c;->a(Lcom/shopee/foody/driver/wallet/spm/PaymentSelectWebView;)V

    invoke-virtual {p0, v2}, Lka/b;->a(Lpa/a;)V

    :cond_38
    invoke-super {p0}, Lal/a;->onDestroyView()V

    invoke-virtual {p0}, Lal/c;->_$_clearFindViewByIdCache()V

    return-void
.end method