BottomBtnComponentV2$a.smali

.class public final Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2$a;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lsg/bigolive/revenue64/b/e$b;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = null
.end annotation


# instance fields
.field final synthetic a:Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2;

.field final synthetic b:Ljava/lang/String;


# direct methods
.method constructor <init>(Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2;Ljava/lang/String;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")V"
        }
    .end annotation

    .line 168
    iput-object p1, p0, Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2$a;->a:Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2;

    iput-object p2, p0, Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2$a;->b:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final a()V
    .registers 3

    const-string v0, "Revenue_Gift"

    const-string v1, "BottomBtnComponentV2.fetchQuickGift failed"

    .line 209
    invoke-static {v0, v1}, Lsg/bigo/log/TraceLog;->e(Ljava/lang/String;Ljava/lang/String;)I

    return-void
.end method

.method public final a(Ljava/util/Map;)V
    .registers 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "+",
            "Ljava/util/List<",
            "Ljava/lang/Integer;",
            ">;>;)V"
        }
    .end annotation

    const-string v0, "extraInfo"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 170
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    check-cast v0, Ljava/util/List;

    .line 171
    invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_14
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_54

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/Map$Entry;

    invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/List;

    .line 172
    iget-object v4, p0, Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2$a;->b:Ljava/lang/String;

    if-eqz v4, :cond_14

    if-eqz v4, :cond_4c

    .line 173
    invoke-virtual {v4}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;

    move-result-object v4

    const-string v5, "(this as java.lang.String).toUpperCase()"

    invoke-static {v4, v5}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-static {v3, v4}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_14

    .line 174
    move-object v3, v2

    check-cast v3, Ljava/util/Collection;

    invoke-static {v3}, Lsg/bigo/common/o;->a(Ljava/util/Collection;)Z

    move-result v3

    if-nez v3, :cond_14

    move-object v0, v2

    goto :goto_54

    .line 173
    :cond_4c
    new-instance p1, Lkotlin/TypeCastException;

    const-string v0, "null cannot be cast to non-null type java.lang.String"

    invoke-direct {p1, v0}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 180
    :cond_54
    :goto_54
    move-object v1, v0

    check-cast v1, Ljava/util/Collection;

    invoke-static {v1}, Lsg/bigo/common/o;->a(Ljava/util/Collection;)Z

    move-result v1

    if-eqz v1, :cond_8f

    .line 181
    invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_65
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_8f

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map$Entry;

    invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/List;

    const-string v3, "GEN"

    .line 182
    invoke-static {v2, v3}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_65

    .line 183
    move-object v2, v1

    check-cast v2, Ljava/util/Collection;

    invoke-static {v2}, Lsg/bigo/common/o;->a(Ljava/util/Collection;)Z

    move-result v2

    if-nez v2, :cond_65

    move-object v0, v1

    .line 190
    :cond_8f
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_a5

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/Number;

    invoke-virtual {p1}, Ljava/lang/Number;->intValue()I

    move-result p1

    goto :goto_a6

    :cond_a5
    const/4 p1, 0x0

    .line 196
    :goto_a6
    iget-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2$a;->a:Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2;

    invoke-static {v0}, Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2;->b(Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2;)Ljava/util/List;

    move-result-object v0

    check-cast v0, Ljava/util/Collection;

    invoke-static {v0}, Lsg/bigo/common/o;->a(Ljava/util/Collection;)Z

    move-result v0

    if-nez v0, :cond_eb

    .line 197
    iget-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2$a;->a:Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2;

    invoke-static {v0}, Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2;->b(Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_be
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_eb

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lsg/bigolive/revenue64/component/gift/bean/VGiftInfoBean;

    .line 198
    iget v3, v2, Lsg/bigolive/revenue64/component/gift/bean/VGiftInfoBean;->a:I

    if-ne p1, v3, :cond_be

    .line 199
    iget-object p1, p0, Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2$a;->a:Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2;

    invoke-static {p1, v2}, Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2;->a(Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2;Lsg/bigolive/revenue64/component/gift/bean/VGiftInfoBean;)V

    .line 200
    iget-object p1, p0, Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2$a;->a:Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2;

    invoke-static {p1}, Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2;->a(Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2;)Lsg/bigo/live/support64/widget/YYNormalImageView;

    move-result-object p1

    if-eqz p1, :cond_e0

    iget-object v0, v2, Lsg/bigolive/revenue64/component/gift/bean/VGiftInfoBean;->e:Ljava/lang/String;

    invoke-virtual {p1, v0}, Lsg/bigo/live/support64/widget/YYNormalImageView;->setImageUrl(Ljava/lang/String;)V

    .line 201
    :cond_e0
    iget-object p1, p0, Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2$a;->a:Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2;

    invoke-static {p1}, Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2;->a(Lsg/bigo/live/support64/component/roomwidget/bottombutton/BottomBtnComponentV2;)Lsg/bigo/live/support64/widget/YYNormalImageView;

    move-result-object p1

    if-eqz p1, :cond_eb

    invoke-virtual {p1, v1}, Lsg/bigo/live/support64/widget/YYNormalImageView;->setVisibility(I)V

    :cond_eb
    return-void
.end method