d$k$a.smali

.class public final Lgh/d$k$a;
.super Ljava/lang/Object;
.source "LocationExtentions.kt"

# interfaces
.implements Leb/a$b;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lgh/d$k;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.end annotation

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

.annotation runtime Lkotlin/Metadata;
    bv = {
        0x1,
        0x0,
        0x3
    }
    d1 = {
        "\u0000#\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0008\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\u0008\n\u0018\u00002\u00020\u0001J$\u0010\u0002\u001a\u00020\u00032\u0008\u0010\u0004\u001a\u0004\u0018\u00010\u00052\u0006\u0010\u0006\u001a\u00020\u00072\u0008\u0010\u0008\u001a\u0004\u0018\u00010\tH\u0016\u00a8\u0006\n"
    }
    d2 = {
        "com/shopee/foody/driver/location/LocationExtentions$openMapsSelectorDialog$1$popInfo$1",
        "Lcom/shopee/android/popmanager/IPop$OnClickListener;",
        "onClick",
        "",
        "pop",
        "Lcom/shopee/android/popmanager/IPop;",
        "which",
        "",
        "data",
        "Lcom/google/gson/JsonObject;",
        "driver_indonesiaRelease"
    }
    k = 0x1
    mv = {
        0x1,
        0x1,
        0x10
    }
.end annotation


# instance fields
.field public final synthetic a:Lgh/d$k;


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

    return-void
.end method

.method public constructor <init>(Lgh/d$k;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()V"
        }
    .end annotation

    iput-object p1, p0, Lgh/d$k$a;->a:Lgh/d$k;

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

    return-void
.end method


# virtual methods
.method public a(Leb/a;ILp5/l;)V
    .registers 10

    sget-object p1, Lcom/shopee/android/base/common/gson/Gsons;->b:Lcom/shopee/android/base/common/gson/Gsons;

    invoke-virtual {p1}, Lcom/shopee/android/base/common/gson/Gsons;->a()Lcom/google/gson/Gson;

    move-result-object p1

    new-instance p2, Lgh/d$k$a$a;

    invoke-direct {p2}, Lgh/d$k$a$a;-><init>()V

    invoke-virtual {p2}, Lv5/a;->getType()Ljava/lang/reflect/Type;

    move-result-object p2

    const-string v0, "object : TypeToken<T>() {}.type"

    invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-static {p1, p3, p2}, Le9/a;->a(Lcom/google/gson/Gson;Lp5/i;Ljava/lang/reflect/Type;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/shopee/foody/driver/popmanager/popactivity/popview/actionsheet/ActionSheetItem;

    if-eqz p1, :cond_25

    invoke-virtual {p1}, Lcom/shopee/foody/driver/popmanager/popactivity/popview/actionsheet/ActionSheetItem;->getItemId()I

    move-result p1

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

    move-result-object p1

    goto :goto_26

    :cond_25
    const/4 p1, 0x0

    :goto_26
    sget-object p2, Lgh/d;->g:Lgh/d;

    invoke-static {p2}, Lgh/d;->b(Lgh/d;)Lcom/shopee/foody/driver/popmanager/popactivity/popview/actionsheet/ActionSheetItem;

    move-result-object p2

    invoke-virtual {p2}, Lcom/shopee/foody/driver/popmanager/popactivity/popview/actionsheet/ActionSheetItem;->getItemId()I

    move-result p2

    if-nez p1, :cond_33

    goto :goto_59

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

    move-result p3

    if-ne p3, p2, :cond_59

    sget-object p1, Ldf/g;->h:Ldf/g;

    const-string p2, "com.google.android.apps.maps"

    invoke-virtual {p1, p2}, Ldf/g;->d(Ljava/lang/String;)V

    sget-object v0, Lgh/d;->g:Lgh/d;

    iget-object p1, p0, Lgh/d$k$a;->a:Lgh/d$k;

    iget-wide v2, p1, Lgh/d$k;->d:D

    iget-wide v4, p1, Lgh/d$k;->e:D

    const-string v1, "com.google.android.apps.maps"

    invoke-static/range {v0 .. v5}, Lgh/d;->a(Lgh/d;Ljava/lang/String;DD)V

    sget-object p1, Lgh/d$b;->a:Lgh/d$b;

    iget-object p2, p0, Lgh/d$k$a;->a:Lgh/d$k;

    iget-object p2, p2, Lgh/d$k;->f:Ljava/lang/String;

    const-string p3, "google_maps"

    invoke-virtual {p1, p2, p3}, Lgh/d$b;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_8b

    :cond_59
    :goto_59
    sget-object p2, Lgh/d;->g:Lgh/d;

    invoke-static {p2}, Lgh/d;->d(Lgh/d;)Lcom/shopee/foody/driver/popmanager/popactivity/popview/actionsheet/ActionSheetItem;

    move-result-object p2

    invoke-virtual {p2}, Lcom/shopee/foody/driver/popmanager/popactivity/popview/actionsheet/ActionSheetItem;->getItemId()I

    move-result p2

    if-nez p1, :cond_66

    goto :goto_8b

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

    move-result p1

    if-ne p1, p2, :cond_8b

    sget-object p1, Ldf/g;->h:Ldf/g;

    const-string p2, "com.waze"

    invoke-virtual {p1, p2}, Ldf/g;->d(Ljava/lang/String;)V

    sget-object v0, Lgh/d;->g:Lgh/d;

    iget-object p1, p0, Lgh/d$k$a;->a:Lgh/d$k;

    iget-wide v2, p1, Lgh/d$k;->d:D

    iget-wide v4, p1, Lgh/d$k;->e:D

    const-string v1, "com.waze"

    invoke-static/range {v0 .. v5}, Lgh/d;->a(Lgh/d;Ljava/lang/String;DD)V

    sget-object p1, Lgh/d$b;->a:Lgh/d$b;

    iget-object p2, p0, Lgh/d$k$a;->a:Lgh/d$k;

    iget-object p2, p2, Lgh/d$k;->f:Ljava/lang/String;

    const-string p3, "waze"

    invoke-virtual {p1, p2, p3}, Lgh/d$b;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_8b
    :goto_8b
    return-void
.end method