package com.discord.utilities.analytics; import com.discord.utilities.analytics.Traits; import com.discord.utilities.collections.CollectionExtensionsKt; import d0.t.h0; import d0.z.d.o; import java.util.LinkedHashMap; import java.util.Map; import kotlin.jvm.functions.Function0; /* compiled from: AnalyticsTracker.kt */ public final class AnalyticsTracker$searchResultViewed$propertyProvider$1 extends o implements Function0> { public final /* synthetic */ Traits.Location $locationTrait; public final /* synthetic */ Integer $lockedResultsCount; public final /* synthetic */ Map $properties; public final /* synthetic */ SearchType $searchType; public final /* synthetic */ int $totalResultsCount; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public AnalyticsTracker$searchResultViewed$propertyProvider$1(SearchType searchType, int i, Integer num, Traits.Location location, Map map) { super(0); this.$searchType = searchType; this.$totalResultsCount = i; this.$lockedResultsCount = num; this.$locationTrait = location; this.$properties = map; } /* Return type fixed from 'java.util.Map' to match base method */ @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final Map mo1invoke() { LinkedHashMap linkedHashMap = new LinkedHashMap(); linkedHashMap.put("search_type", this.$searchType.name()); linkedHashMap.put("total_results", Integer.valueOf(this.$totalResultsCount)); Integer num = this.$lockedResultsCount; if (num != null) { linkedHashMap.put("num_results_locked", num); } Traits.Location location = this.$locationTrait; if (location != null) { location.serializeTo(linkedHashMap); } return h0.plus(linkedHashMap, CollectionExtensionsKt.filterNonNullValues(this.$properties)); } }