package com.discord.stores; import com.discord.stores.StoreMessageState; import d0.t.h0; import d0.t.n0; import d0.t.o0; import d0.z.d.m; import d0.z.d.o; import java.util.Set; import kotlin.Unit; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; /* compiled from: StoreMessageState.kt */ public final class StoreMessageState$revealSpoilerEmbedData$1 extends o implements Function0 { public final /* synthetic */ String $key; public final /* synthetic */ long $messageId; public final /* synthetic */ int $spoilerEmbedIndex; public final /* synthetic */ StoreMessageState this$0; /* compiled from: StoreMessageState.kt */ /* renamed from: com.discord.stores.StoreMessageState$revealSpoilerEmbedData$1$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function1 { public final /* synthetic */ StoreMessageState$revealSpoilerEmbedData$1 this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public AnonymousClass1(StoreMessageState$revealSpoilerEmbedData$1 storeMessageState$revealSpoilerEmbedData$1) { super(1); this.this$0 = storeMessageState$revealSpoilerEmbedData$1; } public final StoreMessageState.State invoke(StoreMessageState.State state) { m.checkNotNullParameter(state, "currentState"); Set set = state.getVisibleSpoilerEmbedMap().get(Integer.valueOf(this.this$0.$spoilerEmbedIndex)); if (set == null) { set = n0.emptySet(); } return StoreMessageState.State.copy$default(state, null, h0.plus(state.getVisibleSpoilerEmbedMap(), d0.o.to(Integer.valueOf(this.this$0.$spoilerEmbedIndex), o0.plus(set, this.this$0.$key))), 1, null); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public StoreMessageState$revealSpoilerEmbedData$1(StoreMessageState storeMessageState, long j, int i, String str) { super(0); this.this$0 = storeMessageState; this.$messageId = j; this.$spoilerEmbedIndex = i; this.$key = str; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { StoreMessageState.access$updateState(this.this$0, this.$messageId, new AnonymousClass1(this)); } }