40 lines
1.7 KiB
Java
40 lines
1.7 KiB
Java
package com.discord.stores;
|
|
|
|
import com.discord.api.botuikit.SelectItem;
|
|
import d0.t.h0;
|
|
import d0.z.d.o;
|
|
import java.util.LinkedHashMap;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
/* compiled from: StoreLocalActionComponentState.kt */
|
|
public final class StoreLocalActionComponentState$setSelectComponentSelection$1 extends o implements Function0<Unit> {
|
|
public final /* synthetic */ int $componentIndex;
|
|
public final /* synthetic */ long $messageId;
|
|
public final /* synthetic */ List $selectedItems;
|
|
public final /* synthetic */ StoreLocalActionComponentState this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public StoreLocalActionComponentState$setSelectComponentSelection$1(StoreLocalActionComponentState storeLocalActionComponentState, long j, List list, int i) {
|
|
super(0);
|
|
this.this$0 = storeLocalActionComponentState;
|
|
this.$messageId = j;
|
|
this.$selectedItems = list;
|
|
this.$componentIndex = i;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final void mo1invoke() {
|
|
Map<Integer, List<SelectItem>> map;
|
|
Map<Integer, List<SelectItem>> map2 = this.this$0.getSelectComponentSelections().get(Long.valueOf(this.$messageId));
|
|
if (map2 == null || (map = h0.toMutableMap(map2)) == null) {
|
|
map = new LinkedHashMap<>();
|
|
}
|
|
map.put(Integer.valueOf(this.$componentIndex), this.$selectedItems);
|
|
this.this$0.getSelectComponentSelections().put(Long.valueOf(this.$messageId), map);
|
|
this.this$0.markChanged();
|
|
}
|
|
}
|