package com.discord.widgets.auth; import c0.z.d.m; import c0.z.d.o; import com.discord.analytics.generated.events.impression.TrackImpressionUserAgeGate; import com.discord.analytics.generated.events.impression.TrackImpressionUserAgeGateUnderage; import com.discord.api.science.AnalyticsSchema; import com.discord.app.AppViewFlipper; import com.discord.stores.StoreStream; import kotlin.jvm.functions.Function0; /* compiled from: WidgetAgeVerify.kt */ public final class WidgetAgeVerify$loggingConfig$1 extends o implements Function0 { public final /* synthetic */ WidgetAgeVerify this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public WidgetAgeVerify$loggingConfig$1(WidgetAgeVerify widgetAgeVerify) { super(0); this.this$0 = widgetAgeVerify; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final AnalyticsSchema mo17invoke() { 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; } }