package com.discord.stores; import com.discord.api.channel.Channel; import com.discord.rtcconnection.RtcConnection; import com.discord.utilities.analytics.AnalyticsTracker; import com.discord.utilities.analytics.AnalyticsUtils; import d0.t.h0; import d0.z.d.o; import java.util.Map; import kotlin.Unit; import kotlin.jvm.functions.Function0; /* compiled from: StoreAnalytics.kt */ public final class StoreAnalytics$onOverlayVoiceEvent$1 extends o implements Function0 { public final /* synthetic */ boolean $isActive; public final /* synthetic */ StoreAnalytics this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public StoreAnalytics$onOverlayVoiceEvent$1(StoreAnalytics storeAnalytics, boolean z2) { super(0); this.this$0 = storeAnalytics; this.$isActive = z2; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { Map map; RtcConnection rtcConnection$app_productionBetaRelease = StoreAnalytics.access$getStores$p(this.this$0).getRtcConnection$app_productionBetaRelease().getRtcConnection$app_productionBetaRelease(); if (rtcConnection$app_productionBetaRelease == null || (map = AnalyticsUtils.INSTANCE.getProperties$app_productionBetaRelease(rtcConnection$app_productionBetaRelease)) == null) { map = h0.emptyMap(); } if (this.$isActive) { Channel access$getSelectedVoiceChannel$p = StoreAnalytics.access$getSelectedVoiceChannel$p(this.this$0); Map map2 = null; Map access$getGuildAnalyticsPropertiesInternal = access$getSelectedVoiceChannel$p != null ? StoreAnalytics.access$getGuildAnalyticsPropertiesInternal(this.this$0, access$getSelectedVoiceChannel$p.f()) : null; if (access$getGuildAnalyticsPropertiesInternal == null) { access$getGuildAnalyticsPropertiesInternal = h0.emptyMap(); } Map plus = h0.plus(access$getGuildAnalyticsPropertiesInternal, map); Channel access$getSelectedVoiceChannel$p2 = StoreAnalytics.access$getSelectedVoiceChannel$p(this.this$0); if (access$getSelectedVoiceChannel$p2 != null) { map2 = AnalyticsUtils.INSTANCE.getProperties$app_productionBetaRelease(access$getSelectedVoiceChannel$p2); } if (map2 == null) { map2 = h0.emptyMap(); } AnalyticsTracker.INSTANCE.overlayVoiceOpened(h0.plus(plus, map2)); return; } AnalyticsTracker.INSTANCE.overlayVoiceClosed(map); } }