52 lines
2.3 KiB
Java
52 lines
2.3 KiB
Java
|
package com.discord.widgets.emoji;
|
||
|
|
||
|
import com.discord.utilities.KotlinExtensionsKt;
|
||
|
import com.discord.widgets.emoji.EmojiSheetViewModel;
|
||
|
import d0.z.d.m;
|
||
|
import d0.z.d.o;
|
||
|
import kotlin.NoWhenBranchMatchedException;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.jvm.functions.Function1;
|
||
|
/* compiled from: WidgetEmojiSheet.kt */
|
||
|
public final class WidgetEmojiSheet$bindSubscriptions$1 extends o implements Function1<EmojiSheetViewModel.ViewState, Unit> {
|
||
|
public final /* synthetic */ WidgetEmojiSheet this$0;
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public WidgetEmojiSheet$bindSubscriptions$1(WidgetEmojiSheet widgetEmojiSheet) {
|
||
|
super(1);
|
||
|
this.this$0 = widgetEmojiSheet;
|
||
|
}
|
||
|
|
||
|
/* 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] */
|
||
|
@Override // kotlin.jvm.functions.Function1
|
||
|
public /* bridge */ /* synthetic */ Unit invoke(EmojiSheetViewModel.ViewState viewState) {
|
||
|
invoke(viewState);
|
||
|
return Unit.a;
|
||
|
}
|
||
|
|
||
|
public final void invoke(EmojiSheetViewModel.ViewState viewState) {
|
||
|
Unit unit;
|
||
|
m.checkNotNullParameter(viewState, "it");
|
||
|
if (m.areEqual(viewState, EmojiSheetViewModel.ViewState.Loading.INSTANCE)) {
|
||
|
WidgetEmojiSheet.access$showLoading(this.this$0);
|
||
|
unit = Unit.a;
|
||
|
} else if (viewState instanceof EmojiSheetViewModel.ViewState.EmojiCustom) {
|
||
|
WidgetEmojiSheet.access$configureCustomEmoji(this.this$0, (EmojiSheetViewModel.ViewState.EmojiCustom) viewState);
|
||
|
unit = Unit.a;
|
||
|
} else if (viewState instanceof EmojiSheetViewModel.ViewState.EmojiUnicode) {
|
||
|
WidgetEmojiSheet.access$configureUnicodeEmoji(this.this$0, (EmojiSheetViewModel.ViewState.EmojiUnicode) viewState);
|
||
|
unit = Unit.a;
|
||
|
} else if (m.areEqual(viewState, EmojiSheetViewModel.ViewState.Invalid.INSTANCE)) {
|
||
|
this.this$0.dismiss();
|
||
|
unit = Unit.a;
|
||
|
} else if (m.areEqual(viewState, EmojiSheetViewModel.ViewState.Dismiss.INSTANCE)) {
|
||
|
this.this$0.dismiss();
|
||
|
unit = Unit.a;
|
||
|
} else {
|
||
|
throw new NoWhenBranchMatchedException();
|
||
|
}
|
||
|
KotlinExtensionsKt.getExhaustive(unit);
|
||
|
}
|
||
|
}
|