2021-06-27 20:44:35 +00:00
|
|
|
package com.discord.widgets.stickers;
|
|
|
|
|
|
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
|
|
/* compiled from: StickerPurchaseLocation.kt */
|
|
|
|
public enum StickerPurchaseLocation {
|
|
|
|
EXPRESSION_PICKER("Expression Picker"),
|
|
|
|
STICKER_POPOUT("Sticker Popout"),
|
2021-06-27 20:53:42 +00:00
|
|
|
STICKER_UPSELL_POPOUT("Sticker Upsell Popout");
|
2021-06-27 20:44:35 +00:00
|
|
|
|
|
|
|
public static final Companion Companion = new Companion(null);
|
|
|
|
private final String analyticsValue;
|
|
|
|
|
|
|
|
/* compiled from: StickerPurchaseLocation.kt */
|
|
|
|
public static final class Companion {
|
|
|
|
|
|
|
|
public final /* synthetic */ class WhenMappings {
|
|
|
|
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
|
|
|
|
|
|
|
static {
|
|
|
|
StickerPurchaseLocation.values();
|
2021-06-27 20:53:42 +00:00
|
|
|
int[] iArr = new int[3];
|
2021-06-27 20:44:35 +00:00
|
|
|
$EnumSwitchMapping$0 = iArr;
|
|
|
|
iArr[StickerPurchaseLocation.STICKER_POPOUT.ordinal()] = 1;
|
|
|
|
iArr[StickerPurchaseLocation.STICKER_UPSELL_POPOUT.ordinal()] = 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private Companion() {
|
|
|
|
}
|
|
|
|
|
|
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
|
|
this();
|
|
|
|
}
|
|
|
|
|
|
|
|
public final StickerPurchaseLocation getPopoutPurchaseLocation(boolean z2) {
|
|
|
|
return z2 ? StickerPurchaseLocation.STICKER_UPSELL_POPOUT : StickerPurchaseLocation.STICKER_POPOUT;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final StickerPurchaseLocation getSimplifiedLocation(StickerPurchaseLocation stickerPurchaseLocation) {
|
|
|
|
if (stickerPurchaseLocation == null) {
|
|
|
|
return stickerPurchaseLocation;
|
|
|
|
}
|
|
|
|
int ordinal = stickerPurchaseLocation.ordinal();
|
|
|
|
return (ordinal == 1 || ordinal == 2) ? StickerPurchaseLocation.STICKER_POPOUT : stickerPurchaseLocation;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private StickerPurchaseLocation(String str) {
|
|
|
|
this.analyticsValue = str;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final String getAnalyticsValue() {
|
|
|
|
return this.analyticsValue;
|
|
|
|
}
|
|
|
|
}
|