2021-09-24 06:27:57 +00:00
|
|
|
package com.discord.widgets.auth;
|
|
|
|
|
2021-10-15 06:18:26 +00:00
|
|
|
import c0.z.d.m;
|
|
|
|
import c0.z.d.o;
|
2021-09-24 06:27:57 +00:00
|
|
|
import com.discord.analytics.generated.events.impression.TrackImpressionUserAgeGate;
|
2021-09-30 06:24:59 +00:00
|
|
|
import com.discord.analytics.generated.events.impression.TrackImpressionUserAgeGateUnderage;
|
2021-09-24 06:27:57 +00:00
|
|
|
import com.discord.api.science.AnalyticsSchema;
|
2021-09-30 06:24:59 +00:00
|
|
|
import com.discord.app.AppViewFlipper;
|
2021-09-24 06:27:57 +00:00
|
|
|
import com.discord.stores.StoreStream;
|
|
|
|
import kotlin.jvm.functions.Function0;
|
|
|
|
/* compiled from: WidgetAgeVerify.kt */
|
|
|
|
public final class WidgetAgeVerify$loggingConfig$1 extends o implements Function0<AnalyticsSchema> {
|
2021-09-30 06:24:59 +00:00
|
|
|
public final /* synthetic */ WidgetAgeVerify this$0;
|
2021-09-24 06:27:57 +00:00
|
|
|
|
2021-09-30 06:24:59 +00:00
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public WidgetAgeVerify$loggingConfig$1(WidgetAgeVerify widgetAgeVerify) {
|
2021-09-24 06:27:57 +00:00
|
|
|
super(0);
|
2021-09-30 06:24:59 +00:00
|
|
|
this.this$0 = widgetAgeVerify;
|
2021-09-24 06:27:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
|
|
/* renamed from: invoke */
|
2021-10-15 06:18:26 +00:00
|
|
|
public final AnalyticsSchema mo17invoke() {
|
2021-09-30 06:24:59 +00:00
|
|
|
AnalyticsSchema analyticsSchema;
|
|
|
|
boolean z2 = StoreStream.Companion.getUsers().getMe().getId() > 0;
|
|
|
|
AppViewFlipper appViewFlipper = WidgetAgeVerify.access$getBinding$p(this.this$0).b;
|
|
|
|
m.checkNotNullExpressionValue(appViewFlipper, "binding.ageVerifyViewFlipper");
|
|
|
|
int displayedChild = appViewFlipper.getDisplayedChild();
|
|
|
|
if (displayedChild == 0) {
|
|
|
|
analyticsSchema = new TrackImpressionUserAgeGate(Boolean.valueOf(z2));
|
|
|
|
} else if (displayedChild != 2) {
|
|
|
|
return null;
|
|
|
|
} else {
|
|
|
|
analyticsSchema = new TrackImpressionUserAgeGateUnderage(Boolean.valueOf(z2));
|
|
|
|
}
|
|
|
|
return analyticsSchema;
|
2021-09-24 06:27:57 +00:00
|
|
|
}
|
|
|
|
}
|