.class public Lcom/alibaba/alibclinkpartner/a/b;
.super Lcom/alibaba/alibclinkpartner/a/a;


# instance fields
.field private a:Lcom/alibaba/alibclinkpartner/param/a;

.field private b:I

.field private c:Ljava/lang/String;

.field private d:Lcom/alibaba/alibclinkpartner/i/b;


# direct methods
.method public constructor <init>(Lcom/alibaba/alibclinkpartner/param/a;ILjava/lang/String;)V
    .locals 0

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

    iput-object p1, p0, Lcom/alibaba/alibclinkpartner/a/b;->a:Lcom/alibaba/alibclinkpartner/param/a;

    iput p2, p0, Lcom/alibaba/alibclinkpartner/a/b;->b:I

    iput-object p3, p0, Lcom/alibaba/alibclinkpartner/a/b;->c:Ljava/lang/String;

    new-instance p2, Lcom/alibaba/alibclinkpartner/i/a;

    invoke-direct {p2, p1}, Lcom/alibaba/alibclinkpartner/i/a;-><init>(Lcom/alibaba/alibclinkpartner/param/a;)V

    iput-object p2, p0, Lcom/alibaba/alibclinkpartner/a/b;->d:Lcom/alibaba/alibclinkpartner/i/b;

    return-void
.end method

.method private a(Lcom/alibaba/alibclinkpartner/c/b;Lcom/alibaba/alibclinkpartner/param/a;ILjava/lang/String;)Lcom/alibaba/alibclinkpartner/a/d;
    .locals 6

    new-instance v0, Lcom/alibaba/alibclinkpartner/a/d;

    invoke-direct {v0}, Lcom/alibaba/alibclinkpartner/a/d;-><init>()V

    const/16 v1, 0x134

    const/16 v2, 0x133

    const/4 v3, 0x0

    const/4 v4, 0x1

    const/4 v5, -0x1

    packed-switch p3, :pswitch_data_0

    goto/16 :goto_4

    :pswitch_0
    sget-object p1, Lcom/alibaba/alibclinkpartner/b;->b:Lcom/alibaba/alibclinkpartner/d/a/d;

    invoke-virtual {p1}, Lcom/alibaba/alibclinkpartner/d/a/d;->a()Lcom/alibaba/alibclinkpartner/d/a/c;

    move-result-object p1

    iget-object p1, p1, Lcom/alibaba/alibclinkpartner/d/a/c;->e:Ljava/util/Map;

    const-string p2, "activity"

    invoke-interface {p1, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/String;

    iput-object p1, v0, Lcom/alibaba/alibclinkpartner/a/d;->b:Ljava/lang/String;

    iget-object p1, v0, Lcom/alibaba/alibclinkpartner/a/d;->f:Ljava/util/List;

    const-string p2, "android.intent.action.VIEW"

    invoke-interface {p1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iput v3, v0, Lcom/alibaba/alibclinkpartner/a/d;->a:I

    iget-object p1, v0, Lcom/alibaba/alibclinkpartner/a/d;->b:Ljava/lang/String;

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_5

    const-string p1, "ALPJumpOpenAPI"

    const-string p2, "ALPJumpOpenAPI"

    const-string p3, "H5 Url is null"

    invoke-static {p1, p2, p3}, Lcom/alibaba/alibclinkpartner/j/e;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    iput v5, v0, Lcom/alibaba/alibclinkpartner/a/d;->a:I

    const/16 p1, 0x135

    goto/16 :goto_3

    :pswitch_1
    iget-object p1, p0, Lcom/alibaba/alibclinkpartner/a/b;->d:Lcom/alibaba/alibclinkpartner/i/b;

    invoke-interface {p1}, Lcom/alibaba/alibclinkpartner/i/b;->a()Ljava/lang/String;

    move-result-object p1

    iput-object p1, v0, Lcom/alibaba/alibclinkpartner/a/d;->b:Ljava/lang/String;

    iget-object p1, v0, Lcom/alibaba/alibclinkpartner/a/d;->f:Ljava/util/List;

    const-string p2, "android.intent.action.VIEW"

    invoke-interface {p1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iput v4, v0, Lcom/alibaba/alibclinkpartner/a/d;->a:I

    iget-object p1, v0, Lcom/alibaba/alibclinkpartner/a/d;->b:Ljava/lang/String;

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_5

    const-string p1, "ALPJumpOpenAPI"

    const-string p2, "ALPJumpOpenAPI"

    const-string p3, "H5 Url is null"

    goto/16 :goto_2

    :pswitch_2
    iget-object p1, p0, Lcom/alibaba/alibclinkpartner/a/b;->d:Lcom/alibaba/alibclinkpartner/i/b;

    invoke-interface {p1, p4}, Lcom/alibaba/alibclinkpartner/i/b;->a(Ljava/lang/String;)Lcom/alibaba/alibclinkpartner/e/b;

    move-result-object p1

    iget-object p2, p1, Lcom/alibaba/alibclinkpartner/e/b;->a:Ljava/lang/String;

    iput-object p2, v0, Lcom/alibaba/alibclinkpartner/a/d;->b:Ljava/lang/String;

    iget-object p2, p1, Lcom/alibaba/alibclinkpartner/e/b;->b:Ljava/util/List;

    iput-object p2, v0, Lcom/alibaba/alibclinkpartner/a/d;->f:Ljava/util/List;

    iget-object p1, p1, Lcom/alibaba/alibclinkpartner/e/b;->c:Ljava/util/List;

    iput-object p1, v0, Lcom/alibaba/alibclinkpartner/a/d;->e:Ljava/util/List;

    const/4 p1, 0x3

    iput p1, v0, Lcom/alibaba/alibclinkpartner/a/d;->a:I

    iget-object p1, v0, Lcom/alibaba/alibclinkpartner/a/d;->b:Ljava/lang/String;

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_5

    :goto_0
    const-string p1, "ALPJumpOpenAPI"

    const-string p2, "ALPJumpOpenAPI"

    const-string p3, "native Url is null"

    invoke-static {p1, p2, p3}, Lcom/alibaba/alibclinkpartner/j/e;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    iput v5, v0, Lcom/alibaba/alibclinkpartner/a/d;->a:I

    iput v1, v0, Lcom/alibaba/alibclinkpartner/a/d;->g:I

    goto/16 :goto_4

    :pswitch_3
    iget-object p2, p0, Lcom/alibaba/alibclinkpartner/a/b;->d:Lcom/alibaba/alibclinkpartner/i/b;

    invoke-interface {p2, p4}, Lcom/alibaba/alibclinkpartner/i/b;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p3

    if-nez p3, :cond_2

    iput-object p2, v0, Lcom/alibaba/alibclinkpartner/a/d;->b:Ljava/lang/String;

    iget-object p2, v0, Lcom/alibaba/alibclinkpartner/a/d;->f:Ljava/util/List;

    const-string p3, "android.intent.action.VIEW"

    invoke-interface {p2, p3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iput v4, v0, Lcom/alibaba/alibclinkpartner/a/d;->a:I

    iget-object p2, p0, Lcom/alibaba/alibclinkpartner/a/b;->d:Lcom/alibaba/alibclinkpartner/i/b;

    invoke-interface {p2, p4}, Lcom/alibaba/alibclinkpartner/i/b;->a(Ljava/lang/String;)Lcom/alibaba/alibclinkpartner/e/b;

    move-result-object p2

    new-instance p3, Lcom/alibaba/alibclinkpartner/b/c;

    invoke-direct {p3}, Lcom/alibaba/alibclinkpartner/b/c;-><init>()V

    iput-object p3, v0, Lcom/alibaba/alibclinkpartner/a/d;->d:Lcom/alibaba/alibclinkpartner/b/c;

    iget-object p3, v0, Lcom/alibaba/alibclinkpartner/a/d;->d:Lcom/alibaba/alibclinkpartner/b/c;

    iget-object v1, p2, Lcom/alibaba/alibclinkpartner/e/b;->a:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_0

    const-string p2, ""

    goto :goto_1

    :cond_0
    iget-object p2, p2, Lcom/alibaba/alibclinkpartner/e/b;->a:Ljava/lang/String;

    :goto_1
    iput-object p2, p3, Lcom/alibaba/alibclinkpartner/b/c;->a:Ljava/lang/String;

    sget-object p2, Lcom/alibaba/alibclinkpartner/b;->b:Lcom/alibaba/alibclinkpartner/d/a/d;

    invoke-virtual {p2}, Lcom/alibaba/alibclinkpartner/d/a/d;->a()Lcom/alibaba/alibclinkpartner/d/a/c;

    move-result-object p2

    iget-object p2, p2, Lcom/alibaba/alibclinkpartner/d/a/c;->d:Ljava/util/Map;

    invoke-interface {p2, p4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lcom/alibaba/alibclinkpartner/d/a/a;

    if-eqz p2, :cond_1

    iget-object p3, v0, Lcom/alibaba/alibclinkpartner/a/d;->d:Lcom/alibaba/alibclinkpartner/b/c;

    iget-object p4, p2, Lcom/alibaba/alibclinkpartner/d/a/a;->d:Ljava/lang/String;

    iput-object p4, p3, Lcom/alibaba/alibclinkpartner/b/c;->b:Ljava/lang/String;

    iget-object p3, v0, Lcom/alibaba/alibclinkpartner/a/d;->d:Lcom/alibaba/alibclinkpartner/b/c;

    invoke-virtual {p2}, Lcom/alibaba/alibclinkpartner/d/a/a;->a()Ljava/lang/String;

    move-result-object p4

    iput-object p4, p3, Lcom/alibaba/alibclinkpartner/b/c;->c:Ljava/lang/String;

    iget-object p3, v0, Lcom/alibaba/alibclinkpartner/a/d;->d:Lcom/alibaba/alibclinkpartner/b/c;

    iget-object p2, p2, Lcom/alibaba/alibclinkpartner/d/a/a;->c:Ljava/util/List;

    iput-object p2, p3, Lcom/alibaba/alibclinkpartner/b/c;->d:Ljava/util/List;

    :cond_1
    if-eqz p1, :cond_5

    iput-boolean v4, p1, Lcom/alibaba/alibclinkpartner/c/b;->m:Z

    goto :goto_4

    :cond_2
    const-string p1, "ALPJumpOpenAPI"

    const-string p2, "ALPJumpOpenAPI"

    const-string p3, "downloadurl is null"

    invoke-static {p1, p2, p3}, Lcom/alibaba/alibclinkpartner/j/e;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    iput v5, v0, Lcom/alibaba/alibclinkpartner/a/d;->a:I

    const/16 p1, 0x132

    goto :goto_3

    :pswitch_4
    iget-object p1, p0, Lcom/alibaba/alibclinkpartner/a/b;->d:Lcom/alibaba/alibclinkpartner/i/b;

    invoke-interface {p1, p4}, Lcom/alibaba/alibclinkpartner/i/b;->a(Ljava/lang/String;)Lcom/alibaba/alibclinkpartner/e/b;

    move-result-object p1

    iget-object p3, p1, Lcom/alibaba/alibclinkpartner/e/b;->a:Ljava/lang/String;

    iput-object p3, v0, Lcom/alibaba/alibclinkpartner/a/d;->b:Ljava/lang/String;

    iget-object p3, p1, Lcom/alibaba/alibclinkpartner/e/b;->b:Ljava/util/List;

    iput-object p3, v0, Lcom/alibaba/alibclinkpartner/a/d;->f:Ljava/util/List;

    iget-object p1, p1, Lcom/alibaba/alibclinkpartner/e/b;->c:Ljava/util/List;

    iput-object p1, v0, Lcom/alibaba/alibclinkpartner/a/d;->e:Ljava/util/List;

    iput v4, v0, Lcom/alibaba/alibclinkpartner/a/d;->a:I

    invoke-virtual {p2}, Lcom/alibaba/alibclinkpartner/param/a;->canDegrade()Z

    move-result p1

    if-eqz p1, :cond_3

    iget-object p1, p0, Lcom/alibaba/alibclinkpartner/a/b;->d:Lcom/alibaba/alibclinkpartner/i/b;

    invoke-interface {p1}, Lcom/alibaba/alibclinkpartner/i/b;->a()Ljava/lang/String;

    move-result-object p1

    iput-object p1, v0, Lcom/alibaba/alibclinkpartner/a/d;->c:Ljava/lang/String;

    :cond_3
    iget-object p1, v0, Lcom/alibaba/alibclinkpartner/a/d;->b:Ljava/lang/String;

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_5

    goto/16 :goto_0

    :pswitch_5
    iget-object p1, p0, Lcom/alibaba/alibclinkpartner/a/b;->d:Lcom/alibaba/alibclinkpartner/i/b;

    invoke-interface {p1}, Lcom/alibaba/alibclinkpartner/i/b;->a()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p2

    if-nez p2, :cond_4

    iput-object p1, v0, Lcom/alibaba/alibclinkpartner/a/d;->b:Ljava/lang/String;

    iput v3, v0, Lcom/alibaba/alibclinkpartner/a/d;->a:I

    goto :goto_4

    :cond_4
    const-string p1, "ALPJumpOpenAPI"

    const-string p2, "ALPJumpOpenAPI"

    const-string p3, "h5Url is null"

    :goto_2
    invoke-static {p1, p2, p3}, Lcom/alibaba/alibclinkpartner/j/e;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    iput v5, v0, Lcom/alibaba/alibclinkpartner/a/d;->a:I

    iput v2, v0, Lcom/alibaba/alibclinkpartner/a/d;->g:I

    goto :goto_4

    :pswitch_6
    iput v5, v0, Lcom/alibaba/alibclinkpartner/a/d;->a:I

    const/16 p1, 0x136

    :goto_3
    iput p1, v0, Lcom/alibaba/alibclinkpartner/a/d;->g:I

    :cond_5
    :goto_4
    return-object v0

    :pswitch_data_0
    .packed-switch -0x1
        :pswitch_6
        :pswitch_5
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method


# virtual methods
.method public a(Lcom/alibaba/alibclinkpartner/c/b;)Lcom/alibaba/alibclinkpartner/a/d;
    .locals 3

    iget-object v0, p0, Lcom/alibaba/alibclinkpartner/a/b;->a:Lcom/alibaba/alibclinkpartner/param/a;

    iget v1, p0, Lcom/alibaba/alibclinkpartner/a/b;->b:I

    iget-object v2, p0, Lcom/alibaba/alibclinkpartner/a/b;->c:Ljava/lang/String;

    invoke-direct {p0, p1, v0, v1, v2}, Lcom/alibaba/alibclinkpartner/a/b;->a(Lcom/alibaba/alibclinkpartner/c/b;Lcom/alibaba/alibclinkpartner/param/a;ILjava/lang/String;)Lcom/alibaba/alibclinkpartner/a/d;

    move-result-object p1

    return-object p1
.end method
