35 lines
2.2 KiB
Java
35 lines
2.2 KiB
Java
package com.discord.widgets.botuikit;
|
|
|
|
import c.d.b.a.a;
|
|
import com.discord.api.botuikit.SelectItem;
|
|
import com.discord.stores.StoreApplicationInteractions;
|
|
import com.discord.widgets.botuikit.ComponentChatListState;
|
|
import d0.t.o0;
|
|
import d0.t.u;
|
|
import java.util.LinkedHashMap;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
import rx.functions.Func2;
|
|
/* compiled from: ComponentChatListState.kt */
|
|
public final class ComponentChatListState$observeChatListComponentState$1<T1, T2, R> implements Func2<Map<Long, ? extends Map<Integer, ? extends StoreApplicationInteractions.InteractionSendState>>, Map<Long, ? extends Map<Integer, ? extends List<? extends SelectItem>>>, Map<Long, ? extends ComponentChatListState.ComponentStoreState>> {
|
|
public static final ComponentChatListState$observeChatListComponentState$1 INSTANCE = new ComponentChatListState$observeChatListComponentState$1();
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
|
|
@Override // rx.functions.Func2
|
|
public /* bridge */ /* synthetic */ Map<Long, ? extends ComponentChatListState.ComponentStoreState> call(Map<Long, ? extends Map<Integer, ? extends StoreApplicationInteractions.InteractionSendState>> map, Map<Long, ? extends Map<Integer, ? extends List<? extends SelectItem>>> map2) {
|
|
return call(map, (Map<Long, ? extends Map<Integer, ? extends List<SelectItem>>>) map2);
|
|
}
|
|
|
|
public final Map<Long, ComponentChatListState.ComponentStoreState> call(Map<Long, ? extends Map<Integer, ? extends StoreApplicationInteractions.InteractionSendState>> map, Map<Long, ? extends Map<Integer, ? extends List<SelectItem>>> map2) {
|
|
List distinct = u.distinct(o0.plus((Set) map.keySet(), (Iterable) map2.keySet()));
|
|
LinkedHashMap linkedHashMap = new LinkedHashMap(a.x(distinct, 10, 16));
|
|
for (Object obj : distinct) {
|
|
long longValue = ((Number) obj).longValue();
|
|
linkedHashMap.put(obj, new ComponentChatListState.ComponentStoreState((Map) map.get(Long.valueOf(longValue)), (Map) map2.get(Long.valueOf(longValue))));
|
|
}
|
|
return linkedHashMap;
|
|
}
|
|
}
|