a.smali

.class public final synthetic Lcom/facebook/gamingservices/a;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lcom/facebook/gamingservices/cloudgaming/DaemonRequest$Callback;
.implements Lcom/google/android/exoplayer2/util/p$a;
.implements Lcom/shopee/app/react/modules/ui/materialdialog/d$b;
.implements Lcom/shopee/app/plugin/w$a;
.implements Lcom/shopee/sz/mediasdk/vioceeffect/c;
.implements Lcom/shopee/threadpool/e;


# instance fields
.field public final synthetic a:I

.field public final synthetic b:Ljava/lang/Object;


# direct methods
.method public synthetic constructor <init>(Ljava/lang/Object;I)V
    .registers 3

    iput p2, p0, Lcom/facebook/gamingservices/a;->a:I

    iput-object p1, p0, Lcom/facebook/gamingservices/a;->b:Ljava/lang/Object;

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

    return-void
.end method


# virtual methods
.method public a()V
    .registers 5

    iget-object v0, p0, Lcom/facebook/gamingservices/a;->b:Ljava/lang/Object;

    check-cast v0, Lcom/shopee/app/ui/webview/l;

    sget-object v1, Lcom/shopee/app/ui/webview/l;->y0:Ljava/util/concurrent/ConcurrentHashMap;

    .line 1
    iget-object v1, v0, Lcom/shopee/app/ui/base/d;->O:Lcom/shopee/app/ui/base/e;

    .line 2
    invoke-interface {v1}, Lcom/shopee/app/ui/base/e;->getActionView()Landroid/view/ViewGroup;

    move-result-object v1

    new-instance v2, Landroidx/profileinstaller/j;

    const/4 v3, 0x7

    invoke-direct {v2, v0, v3}, Landroidx/profileinstaller/j;-><init>(Ljava/lang/Object;I)V

    invoke-virtual {v1, v2}, Landroid/view/View;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public b(Lcom/shopee/sz/mediasdk/vioceeffect/SSZMediaBottomPopWindowEntity;)V
    .registers 11

    iget v0, p0, Lcom/facebook/gamingservices/a;->a:I

    packed-switch v0, :pswitch_data_96

    goto :goto_42

    :pswitch_6
    iget-object v0, p0, Lcom/facebook/gamingservices/a;->b:Ljava/lang/Object;

    check-cast v0, Lcom/shopee/sz/mediasdk/editpage/panel/SSZEditPanelContainerView;

    sget v1, Lcom/shopee/sz/mediasdk/editpage/panel/SSZEditPanelContainerView;->o:I

    const-string v1, "this$0"

    .line 1
    invoke-static {v0, v1}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V

    .line 2
    iget-object v1, v0, Lcom/shopee/sz/mediasdk/editpage/panel/SSZEditPanelContainerView;->f:Lcom/shopee/sz/mediasdk/editpage/panel/sticker/d;

    invoke-virtual {v1}, Lcom/shopee/sz/mediasdk/text/SSZStickerContainerWrapper;->getEditStickerVm()Lcom/shopee/sz/mediasdk/sticker/framwork/model/StickerVm;

    move-result-object v1

    if-nez v1, :cond_1a

    goto :goto_41

    .line 3
    :cond_1a
    iget-object v2, v0, Lcom/shopee/sz/mediasdk/editpage/panel/SSZEditPanelContainerView;->f:Lcom/shopee/sz/mediasdk/editpage/panel/sticker/d;

    invoke-virtual {v2}, Lcom/shopee/sz/mediasdk/editpage/panel/sticker/d;->getViewModel()Lcom/shopee/sz/mediasdk/editpage/panel/sticker/SSZStickerViewModel;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/shopee/sz/mediasdk/editpage/panel/sticker/SSZStickerViewModel;->k(Lcom/shopee/sz/mediasdk/sticker/framwork/model/StickerVm;)Lcom/shopee/sz/mediasdk/ui/view/edit/sticker/StickerCompressEntity;

    move-result-object v1

    if-nez v1, :cond_27

    goto :goto_41

    .line 4
    :cond_27
    iget-object v2, v0, Lcom/shopee/sz/mediasdk/editpage/panel/SSZEditPanelContainerView;->m:Lcom/shopee/sz/mediasdk/editpage/panel/a;

    if-eqz v2, :cond_41

    .line 5
    invoke-virtual {p1}, Lcom/shopee/sz/mediasdk/vioceeffect/SSZMediaBottomPopWindowEntity;->getType()I

    move-result p1

    const/4 v3, 0x3

    .line 6
    iget-object v0, v0, Lcom/shopee/sz/mediasdk/editpage/panel/SSZEditPanelContainerView;->d:Lcom/shopee/sz/mediasdk/ui/view/edit/tts/d;

    if-eqz v0, :cond_3d

    .line 7
    invoke-virtual {v0}, Lcom/shopee/sz/mediasdk/ui/view/edit/tts/d;->a()Lcom/shopee/sz/mediasdk/vioceeffect/BottomPopWindowView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/shopee/sz/mediasdk/vioceeffect/BottomPopWindowView;->getLastSelectedItemType()I

    move-result v0

    goto :goto_3e

    :cond_3d
    const/4 v0, 0x0

    .line 8
    :goto_3e
    invoke-interface {v2, p1, v1, v3, v0}, Lcom/shopee/sz/mediasdk/editpage/panel/a;->b0(ILcom/shopee/sz/mediasdk/ui/view/edit/sticker/StickerCompressEntity;II)V

    :cond_41
    :goto_41
    return-void

    .line 9
    :goto_42
    iget-object v0, p0, Lcom/facebook/gamingservices/a;->b:Ljava/lang/Object;

    check-cast v0, Lcom/shopee/sz/mediasdk/vioceeffect/d;

    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 10
    new-instance v1, Lcom/shopee/sz/mediasdk/event/w;

    invoke-virtual {p1}, Lcom/shopee/sz/mediasdk/vioceeffect/SSZMediaBottomPopWindowEntity;->getType()I

    move-result v2

    invoke-direct {v1, v2}, Lcom/shopee/sz/mediasdk/event/w;-><init>(I)V

    .line 11
    invoke-static {}, Lorg/greenrobot/eventbus/c;->b()Lorg/greenrobot/eventbus/c;

    move-result-object v2

    invoke-virtual {v2, v1}, Lorg/greenrobot/eventbus/c;->g(Ljava/lang/Object;)V

    .line 12
    invoke-static {}, Lorg/greenrobot/eventbus/c;->b()Lorg/greenrobot/eventbus/c;

    move-result-object v1

    new-instance v2, Lcom/shopee/sz/mediasdk/event/r;

    invoke-direct {v2}, Lcom/shopee/sz/mediasdk/event/r;-><init>()V

    invoke-virtual {v1, v2}, Lorg/greenrobot/eventbus/c;->g(Ljava/lang/Object;)V

    .line 13
    sget-object v4, Lcom/shopee/sz/mediasdk/util/track/a0$e0;->a:Lcom/shopee/sz/mediasdk/util/track/a0;

    .line 14
    iget-object v1, v0, Lcom/shopee/sz/mediasdk/ui/view/edit/s;->d:Ljava/lang/String;

    invoke-static {v1}, Lcom/shopee/sz/mediasdk/util/track/o;->g(Ljava/lang/String;)I

    move-result v5

    iget-object v1, v0, Lcom/shopee/sz/mediasdk/ui/view/edit/s;->c:Ljava/lang/String;

    .line 15
    iget-object v2, v0, Lcom/shopee/sz/mediasdk/ui/view/edit/s;->f:Lcom/shopee/sz/mediasdk/ui/view/EditMediaParams;

    if-nez v2, :cond_76

    const-string v2, ""

    goto :goto_7a

    :cond_76
    invoke-virtual {v2}, Lcom/shopee/sz/mediasdk/ui/view/EditMediaParams;->getRouteSubPageName()Ljava/lang/String;

    move-result-object v2

    :goto_7a
    invoke-static {v1, v2}, Lcom/shopee/sz/mediasdk/util/track/o;->r(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iget-object v7, v0, Lcom/shopee/sz/mediasdk/ui/view/edit/s;->c:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/shopee/sz/mediasdk/vioceeffect/SSZMediaBottomPopWindowEntity;->getType()I

    move-result p1

    invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v8

    .line 16
    invoke-static {v4}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 17
    new-instance p1, Lcom/shopee/sz/mediasdk/util/track/c0;

    move-object v3, p1

    invoke-direct/range {v3 .. v8}, Lcom/shopee/sz/mediasdk/util/track/c0;-><init>(Lcom/shopee/sz/mediasdk/util/track/a0;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 18
    invoke-virtual {p1}, Lcom/shopee/sz/mediasdk/util/track/c0;->a()V

    return-void

    nop

    :pswitch_data_96
    .packed-switch 0x5
        :pswitch_6
    .end packed-switch
.end method

.method public getValue()Ljava/lang/String;
    .registers 2

    iget-object v0, p0, Lcom/facebook/gamingservices/a;->b:Ljava/lang/Object;

    check-cast v0, Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public invoke(Ljava/lang/Object;)V
    .registers 3

    iget-object v0, p0, Lcom/facebook/gamingservices/a;->b:Ljava/lang/Object;

    check-cast v0, Lcom/google/android/exoplayer2/analytics/b$a;

    check-cast p1, Lcom/google/android/exoplayer2/analytics/b;

    invoke-interface {p1, v0}, Lcom/google/android/exoplayer2/analytics/b;->M0(Lcom/google/android/exoplayer2/analytics/b$a;)V

    return-void
.end method

.method public onCompleted(Lcom/facebook/GraphResponse;)V
    .registers 3

    iget-object v0, p0, Lcom/facebook/gamingservices/a;->b:Ljava/lang/Object;

    check-cast v0, Lcom/facebook/gamingservices/ContextChooseDialog;

    invoke-static {v0, p1}, Lcom/facebook/gamingservices/ContextChooseDialog;->b(Lcom/facebook/gamingservices/ContextChooseDialog;Lcom/facebook/GraphResponse;)V

    return-void
.end method

.method public onDoTask()Ljava/lang/Object;
    .registers 6

    iget v0, p0, Lcom/facebook/gamingservices/a;->a:I

    const/4 v1, 0x0

    packed-switch v0, :pswitch_data_92

    goto :goto_f

    :pswitch_7
    iget-object v0, p0, Lcom/facebook/gamingservices/a;->b:Ljava/lang/Object;

    check-cast v0, Lcom/shopee/app/network/j;

    .line 1
    invoke-virtual {v0}, Lcom/shopee/app/network/j;->l()V

    return-object v1

    .line 2
    :goto_f
    iget-object v0, p0, Lcom/facebook/gamingservices/a;->b:Ljava/lang/Object;

    check-cast v0, Lcom/facebook/react/bridge/ReadableArray;

    sget-object v2, Lcom/shopee/app/react/prefetch/image/cart/a;->a:Lcom/shopee/app/react/prefetch/image/cart/a;

    .line 3
    :try_start_15
    new-instance v2, Lcom/shopee/sz/endpoint/endpointservice/manager/b;

    const/4 v3, 0x2

    invoke-direct {v2, v3}, Lcom/shopee/sz/endpoint/endpointservice/manager/b;-><init>(I)V

    invoke-virtual {v2, v0}, Lcom/shopee/sz/endpoint/endpointservice/manager/b;->a(Lcom/facebook/react/bridge/ReadableArray;)Lorg/json/JSONObject;

    move-result-object v0
    :try_end_1f
    .catchall {:try_start_15 .. :try_end_1f} :catchall_20

    goto :goto_25

    :catchall_20
    move-exception v0

    .line 4
    invoke-static {v0}, Lcom/shopee/sz/mmsplayercommon/util/b;->Y(Ljava/lang/Throwable;)Ljava/lang/Object;

    move-result-object v0

    .line 5
    :goto_25
    instance-of v2, v0, Lkotlin/l$a;

    if-eqz v2, :cond_2a

    move-object v0, v1

    .line 6
    :cond_2a
    check-cast v0, Lorg/json/JSONObject;

    if-eqz v0, :cond_91

    .line 7
    :try_start_2e
    new-instance v2, Lcom/shopee/app/react/prefetch/image/cart/e;

    invoke-direct {v2}, Lcom/shopee/app/react/prefetch/image/cart/e;-><init>()V

    const-string v3, "data"

    .line 8
    invoke-virtual {v0, v3}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    if-eqz v0, :cond_42

    const-string v3, "shop_orders"

    .line 9
    invoke-virtual {v0, v3}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v3

    goto :goto_43

    :cond_42
    move-object v3, v1

    :goto_43
    if-eqz v0, :cond_4c

    const-string v4, "shop_order_id_list"

    .line 10
    invoke-virtual {v0, v4}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v0

    goto :goto_4d

    :cond_4c
    move-object v0, v1

    :goto_4d
    if-eqz v0, :cond_62

    if-nez v3, :cond_52

    goto :goto_62

    :cond_52
    const/4 v4, 0x0

    .line 11
    iput-boolean v4, v2, Lcom/shopee/app/react/prefetch/image/cart/e;->d:Z

    .line 12
    iget-object v4, v2, Lcom/shopee/app/react/prefetch/image/cart/e;->b:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->clear()V

    .line 13
    new-instance v4, Lcom/shopee/app/react/prefetch/image/cart/d;

    invoke-direct {v4, v2, v3}, Lcom/shopee/app/react/prefetch/image/cart/d;-><init>(Lcom/shopee/app/react/prefetch/image/cart/e;Lorg/json/JSONArray;)V

    invoke-virtual {v2, v0, v4}, Lcom/shopee/app/react/prefetch/image/cart/e;->c(Lorg/json/JSONArray;Lkotlin/jvm/functions/l;)V

    .line 14
    :cond_62
    :goto_62
    iget-object v0, v2, Lcom/shopee/app/react/prefetch/image/cart/e;->b:Ljava/util/ArrayList;
    :try_end_64
    .catchall {:try_start_2e .. :try_end_64} :catchall_65

    goto :goto_6a

    :catchall_65
    move-exception v0

    .line 15
    invoke-static {v0}, Lcom/shopee/sz/mmsplayercommon/util/b;->Y(Ljava/lang/Throwable;)Ljava/lang/Object;

    move-result-object v0

    .line 16
    :goto_6a
    instance-of v2, v0, Lkotlin/l$a;

    if-eqz v2, :cond_6f

    goto :goto_70

    :cond_6f
    move-object v1, v0

    .line 17
    :goto_70
    check-cast v1, Ljava/util/ArrayList;

    if-nez v1, :cond_77

    .line 18
    sget-object v1, Lkotlin/collections/v;->a:Lkotlin/collections/v;

    goto :goto_7a

    .line 19
    :cond_77
    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    .line 20
    :goto_7a
    invoke-interface {v1}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_81

    goto :goto_8f

    .line 21
    :cond_81
    sget-object v0, Lcom/shopee/app/react/prefetch/image/r;->a:Lcom/shopee/app/react/prefetch/image/r;

    .line 22
    sget-object v0, Lcom/shopee/app/react/prefetch/image/p;->a:Lcom/shopee/app/react/prefetch/image/p;

    const-string v2, "cart_cache"

    invoke-virtual {v0, v2}, Lcom/shopee/app/react/prefetch/image/p;->b(Ljava/lang/String;)V

    .line 23
    sget-object v0, Lcom/shopee/app/react/prefetch/image/r;->b:Lcom/shopee/app/dre/preload/i;

    invoke-virtual {v0, v1}, Lcom/shopee/app/dre/preload/i;->d(Ljava/util/List;)V

    .line 24
    :goto_8f
    sget-object v1, Lkotlin/r;->a:Lkotlin/r;

    :cond_91
    return-object v1

    :pswitch_data_92
    .packed-switch 0x0
        :pswitch_7
    .end packed-switch
.end method