2021-06-27 20:44:35 +00:00
|
|
|
package com.discord.widgets.home;
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
import com.discord.stores.StoreNux;
|
|
|
|
import com.discord.stores.StoreStream;
|
|
|
|
import com.discord.utilities.rx.ObservableExtensionsKt;
|
|
|
|
import d0.z.d.m;
|
|
|
|
import d0.z.d.o;
|
|
|
|
import j0.l.e.j;
|
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.jvm.functions.Function0;
|
|
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
import rx.Observable;
|
|
|
|
/* compiled from: WidgetHome.kt */
|
|
|
|
public final class WidgetHome$configureFirstOpen$2 extends o implements Function1<Boolean, Unit> {
|
|
|
|
public final /* synthetic */ WidgetHome this$0;
|
|
|
|
|
|
|
|
/* compiled from: WidgetHome.kt */
|
|
|
|
/* renamed from: com.discord.widgets.home.WidgetHome$configureFirstOpen$2$1 reason: invalid class name */
|
|
|
|
public static final class AnonymousClass1 extends o implements Function1<StoreNux.NuxState, StoreNux.NuxState> {
|
|
|
|
public static final AnonymousClass1 INSTANCE = new AnonymousClass1();
|
|
|
|
|
|
|
|
public AnonymousClass1() {
|
|
|
|
super(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final StoreNux.NuxState invoke(StoreNux.NuxState nuxState) {
|
|
|
|
m.checkNotNullParameter(nuxState, "it");
|
|
|
|
return StoreNux.NuxState.copy$default(nuxState, false, false, false, false, false, null, 55, null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* compiled from: WidgetHome.kt */
|
|
|
|
/* renamed from: com.discord.widgets.home.WidgetHome$configureFirstOpen$2$2 reason: invalid class name */
|
|
|
|
public static final class AnonymousClass2 extends o implements Function0<Unit> {
|
|
|
|
public final /* synthetic */ WidgetHome$configureFirstOpen$2 this$0;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public AnonymousClass2(WidgetHome$configureFirstOpen$2 widgetHome$configureFirstOpen$2) {
|
|
|
|
super(0);
|
|
|
|
this.this$0 = widgetHome$configureFirstOpen$2;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
|
|
/* renamed from: invoke */
|
|
|
|
public final void mo1invoke() {
|
2021-06-27 20:53:42 +00:00
|
|
|
WidgetHome.access$getBinding$p(this.this$0.this$0).f1820c.openStartPanel();
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* compiled from: WidgetHome.kt */
|
|
|
|
/* renamed from: com.discord.widgets.home.WidgetHome$configureFirstOpen$2$3 reason: invalid class name */
|
|
|
|
public static final class AnonymousClass3 extends o implements Function0<Unit> {
|
|
|
|
public static final AnonymousClass3 INSTANCE = new AnonymousClass3();
|
|
|
|
|
|
|
|
/* compiled from: WidgetHome.kt */
|
|
|
|
/* renamed from: com.discord.widgets.home.WidgetHome$configureFirstOpen$2$3$1 reason: invalid class name */
|
|
|
|
public static final class AnonymousClass1 extends o implements Function1<StoreNux.NuxState, StoreNux.NuxState> {
|
|
|
|
public static final AnonymousClass1 INSTANCE = new AnonymousClass1();
|
|
|
|
|
|
|
|
public AnonymousClass1() {
|
|
|
|
super(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final StoreNux.NuxState invoke(StoreNux.NuxState nuxState) {
|
|
|
|
m.checkNotNullParameter(nuxState, "it");
|
|
|
|
return StoreNux.NuxState.copy$default(nuxState, false, false, false, false, true, null, 39, null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public AnonymousClass3() {
|
|
|
|
super(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
|
|
/* renamed from: invoke */
|
|
|
|
public final void mo1invoke() {
|
|
|
|
StoreStream.Companion.getNux().updateNux(AnonymousClass1.INSTANCE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* compiled from: WidgetHome.kt */
|
|
|
|
/* renamed from: com.discord.widgets.home.WidgetHome$configureFirstOpen$2$4 reason: invalid class name */
|
|
|
|
public static final class AnonymousClass4 extends o implements Function1<Function0<? extends Unit>, Unit> {
|
|
|
|
public static final AnonymousClass4 INSTANCE = new AnonymousClass4();
|
|
|
|
|
|
|
|
public AnonymousClass4() {
|
|
|
|
super(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] */
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
|
|
public /* bridge */ /* synthetic */ Unit invoke(Function0<? extends Unit> function0) {
|
|
|
|
invoke((Function0<Unit>) function0);
|
|
|
|
return Unit.a;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final void invoke(Function0<Unit> function0) {
|
|
|
|
function0.mo1invoke();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public WidgetHome$configureFirstOpen$2(WidgetHome widgetHome) {
|
|
|
|
super(1);
|
|
|
|
this.this$0 = widgetHome;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 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(Boolean bool) {
|
|
|
|
invoke(bool);
|
|
|
|
return Unit.a;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final void invoke(Boolean bool) {
|
|
|
|
if (bool != null) {
|
|
|
|
if (!bool.booleanValue()) {
|
|
|
|
StoreStream.Companion.getNux().updateNux(AnonymousClass1.INSTANCE);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
j jVar = new j(new AnonymousClass2(this));
|
|
|
|
TimeUnit timeUnit = TimeUnit.MILLISECONDS;
|
|
|
|
Observable I = Observable.I(jVar.q(1000, timeUnit), new j(AnonymousClass3.INSTANCE).q(2000, timeUnit));
|
|
|
|
m.checkNotNullExpressionValue(I, "Observable\n …, TimeUnit.MILLISECONDS))");
|
|
|
|
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(I, this.this$0, null, 2, null), this.this$0.getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, AnonymousClass4.INSTANCE, 62, (Object) null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|