2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.botuikit;
|
|
|
|
|
|
|
|
import c.d.b.a.a;
|
2021-10-15 06:18:26 +00:00
|
|
|
import c0.t.h0;
|
|
|
|
import c0.z.d.m;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.discord.api.botuikit.SelectItem;
|
|
|
|
import com.discord.stores.StoreApplicationInteractions;
|
|
|
|
import com.discord.stores.StoreStream;
|
|
|
|
import com.discord.stores.StoreUserSettings;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
|
|
import rx.Observable;
|
|
|
|
/* compiled from: ComponentChatListState.kt */
|
|
|
|
public final class ComponentChatListState {
|
|
|
|
public static final ComponentChatListState INSTANCE = new ComponentChatListState();
|
|
|
|
|
|
|
|
/* compiled from: ComponentChatListState.kt */
|
|
|
|
public static final class ComponentStoreState {
|
|
|
|
private final boolean animateEmojis;
|
|
|
|
private final Map<Integer, StoreApplicationInteractions.InteractionSendState> interactionState;
|
|
|
|
private final Map<Integer, List<SelectItem>> selections;
|
|
|
|
|
|
|
|
public ComponentStoreState() {
|
|
|
|
this(null, null, false, 7, null);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r1v0, resolved type: java.util.Map<java.lang.Integer, ? extends com.discord.stores.StoreApplicationInteractions$InteractionSendState> */
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: java.util.Map<java.lang.Integer, ? extends java.util.List<com.discord.api.botuikit.SelectItem>> */
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
|
|
public ComponentStoreState(Map<Integer, ? extends StoreApplicationInteractions.InteractionSendState> map, Map<Integer, ? extends List<SelectItem>> map2, boolean z2) {
|
|
|
|
this.interactionState = map;
|
|
|
|
this.selections = map2;
|
|
|
|
this.animateEmojis = z2;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
|
|
|
|
public /* synthetic */ ComponentStoreState(Map map, Map map2, boolean z2, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
|
|
this((i & 1) != 0 ? h0.emptyMap() : map, (i & 2) != 0 ? h0.emptyMap() : map2, (i & 4) != 0 ? true : z2);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.widgets.botuikit.ComponentChatListState$ComponentStoreState */
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
|
|
public static /* synthetic */ ComponentStoreState copy$default(ComponentStoreState componentStoreState, Map map, Map map2, boolean z2, int i, Object obj) {
|
|
|
|
if ((i & 1) != 0) {
|
|
|
|
map = componentStoreState.interactionState;
|
|
|
|
}
|
|
|
|
if ((i & 2) != 0) {
|
|
|
|
map2 = componentStoreState.selections;
|
|
|
|
}
|
|
|
|
if ((i & 4) != 0) {
|
|
|
|
z2 = componentStoreState.animateEmojis;
|
|
|
|
}
|
|
|
|
return componentStoreState.copy(map, map2, z2);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final Map<Integer, StoreApplicationInteractions.InteractionSendState> component1() {
|
|
|
|
return this.interactionState;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final Map<Integer, List<SelectItem>> component2() {
|
|
|
|
return this.selections;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final boolean component3() {
|
|
|
|
return this.animateEmojis;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final ComponentStoreState copy(Map<Integer, ? extends StoreApplicationInteractions.InteractionSendState> map, Map<Integer, ? extends List<SelectItem>> map2, boolean z2) {
|
|
|
|
return new ComponentStoreState(map, map2, z2);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean equals(Object obj) {
|
|
|
|
if (this == obj) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if (!(obj instanceof ComponentStoreState)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
ComponentStoreState componentStoreState = (ComponentStoreState) obj;
|
|
|
|
return m.areEqual(this.interactionState, componentStoreState.interactionState) && m.areEqual(this.selections, componentStoreState.selections) && this.animateEmojis == componentStoreState.animateEmojis;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final boolean getAnimateEmojis() {
|
|
|
|
return this.animateEmojis;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final Map<Integer, StoreApplicationInteractions.InteractionSendState> getInteractionState() {
|
|
|
|
return this.interactionState;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final Map<Integer, List<SelectItem>> getSelections() {
|
|
|
|
return this.selections;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int hashCode() {
|
|
|
|
Map<Integer, StoreApplicationInteractions.InteractionSendState> map = this.interactionState;
|
|
|
|
int i = 0;
|
|
|
|
int hashCode = (map != null ? map.hashCode() : 0) * 31;
|
|
|
|
Map<Integer, List<SelectItem>> map2 = this.selections;
|
|
|
|
if (map2 != null) {
|
|
|
|
i = map2.hashCode();
|
|
|
|
}
|
|
|
|
int i2 = (hashCode + i) * 31;
|
|
|
|
boolean z2 = this.animateEmojis;
|
|
|
|
if (z2) {
|
|
|
|
z2 = true;
|
|
|
|
}
|
|
|
|
int i3 = z2 ? 1 : 0;
|
|
|
|
int i4 = z2 ? 1 : 0;
|
|
|
|
int i5 = z2 ? 1 : 0;
|
|
|
|
return i2 + i3;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String toString() {
|
2021-10-09 06:29:02 +00:00
|
|
|
StringBuilder O = a.O("ComponentStoreState(interactionState=");
|
|
|
|
O.append(this.interactionState);
|
|
|
|
O.append(", selections=");
|
|
|
|
O.append(this.selections);
|
|
|
|
O.append(", animateEmojis=");
|
|
|
|
return a.K(O, this.animateEmojis, ")");
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private ComponentChatListState() {
|
|
|
|
}
|
|
|
|
|
|
|
|
public final Observable<Map<Long, ComponentStoreState>> observeChatListComponentState() {
|
|
|
|
StoreStream.Companion companion = StoreStream.Companion;
|
|
|
|
Observable<Map<Long, ComponentStoreState>> i = Observable.i(companion.getInteractions().observeComponentInteractionState(), companion.getLocalActionComponentState().observeSelectComponentSelections(), StoreUserSettings.observeIsAnimatedEmojisEnabled$default(companion.getUserSettings(), false, 1, null), ComponentChatListState$observeChatListComponentState$1.INSTANCE);
|
|
|
|
m.checkNotNullExpressionValue(i, "Observable.combineLatest…s\n )\n }\n }");
|
|
|
|
return i;
|
|
|
|
}
|
|
|
|
}
|