正在查看: MedEd v5.3.6 应用的 GyanGuruOnboardingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: MedEd v5.3.6 应用的 GyanGuruOnboardingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.gyanguru.ui.onboarding;
import android.R;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.view.View;
import android.view.ViewGroup;
import androidx.compose.ui.f;
import androidx.lifecycle.H;
import androidx.lifecycle.I;
import com.gyanguru.domain.data.GyanGuruConfigData;
import com.gyanguru.ui.GyanGuruActivity;
import com.gyanguru.ui.onboarding.GyanGuruOnboardingActivity;
import com.gyanguru.ui.onboarding.viewmodel.AIGuruOnboardingViewModelContract$Event;
import com.gyanguru.ui.onboarding.viewmodel.AIGuruOnboardingViewModelContract$State;
import com.penpencil.k8_timeless.domain.model.NuggetAnalytics;
import defpackage.C0064Hr2;
import defpackage.C0132aN0;
import defpackage.C0337lN0;
import defpackage.L;
import defpackage.M23;
import defpackage.Q;
import defpackage.S;
import defpackage.U0;
import defpackage.WP0;
import defpackage.xx;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
@Metadata
public final class GyanGuruOnboardingActivity extends WP0 {
public static final int E0 = 0;
public final H D0 = new H(wv2.a(com.gyanguru.ui.onboarding.viewmodel.a.class), new d(this), new c(this), new e(this));
public static final class a {
public static Intent a(androidx.fragment.app.e eVar, U0 u0, int i, int i2, GyanGuruConfigData gyanGuruConfigData, boolean z) {
Intrinsics.checkNotNullParameter(eVar, "context");
Intrinsics.checkNotNullParameter(u0, "mode");
Intrinsics.checkNotNullParameter(gyanGuruConfigData, "configData");
Intent intent = new Intent((Context) eVar, (Class<?>) GyanGuruOnboardingActivity.class);
intent.putExtra("EXTRA_MODE", u0.name());
intent.putExtra("EXTRA_FAB_POS_X", i);
intent.putExtra("EXTRA_FAB_POS_Y", i2);
intent.putExtra("EXTRA_CONFIG_DATA", gyanGuruConfigData);
intent.putExtra("EXTRA_SHOW_CIRCULAR_REVEAL_ANIM", z);
return intent;
}
}
public static final class b implements HE0<f, Function0<? extends Unit>, KO, Integer, Unit> {
public b() {
}
public final Object m(Object obj, Object obj2, Object obj3, Object obj4) {
int i;
f fVar = (f) obj;
Function0 function0 = (Function0) obj2;
KO ko = (KO) obj3;
int c = xx.c((Number) obj4, fVar, "modifier", function0, "close");
if ((c & 14) == 0) {
i = (ko.H(fVar) ? 4 : 2) | c;
} else {
i = c;
}
if ((c & C0064Hr2.AppCompatTheme_toolbarNavigationButtonStyle) == 0) {
i |= ko.k(function0) ? 32 : 16;
}
if ((i & 731) == 146 && ko.r()) {
ko.w();
} else {
M23.a(fVar, ((Jr1) GyanGuruOnboardingActivity.this.U0()).m, null, function0, function0, ko, (i & 14) | 64 | ((i << 6) & 7168) | ((i << 9) & 57344), 4);
}
return Unit.a;
}
}
public static final class c extends Ob1 implements Function0<I.c> {
public final OL a;
public c(OL ol) {
super(0);
this.a = ol;
}
public final Object invoke() {
return this.a.getDefaultViewModelProviderFactory();
}
}
public static final class d extends Ob1 implements Function0<Qt3> {
public final OL a;
public d(OL ol) {
super(0);
this.a = ol;
}
public final Object invoke() {
return this.a.getViewModelStore();
}
}
public static final class e extends Ob1 implements Function0<SW> {
public final OL a;
public e(OL ol) {
super(0);
this.a = ol;
}
public final Object invoke() {
return this.a.getDefaultViewModelCreationExtras();
}
}
@Override
public final void Q0(KO ko, final int i) {
RO o = ko.o(1644981941);
String stringExtra = getIntent().getStringExtra("EXTRA_MODE");
final int i2 = 0;
U0 u0 = null;
if (stringExtra != null) {
U0[] values = U0.values();
int length = values.length;
int i3 = 0;
while (true) {
if (i3 >= length) {
break;
}
U0 u02 = values[i3];
if (Intrinsics.b(u02.name(), stringExtra)) {
u0 = u02;
break;
}
i3++;
}
}
if (u0 == null) {
u0 = U0.a;
}
int i4 = 1;
if (getIntent().getBooleanExtra("EXTRA_SHOW_CIRCULAR_REVEAL_ANIM", true)) {
int intExtra = getIntent().getIntExtra("EXTRA_FAB_POS_X", 0);
int intExtra2 = getIntent().getIntExtra("EXTRA_FAB_POS_Y", 0);
View rootView = ((ViewGroup) findViewById(R.id.content)).getRootView();
Intrinsics.d(rootView);
Intrinsics.checkNotNullParameter(rootView, "rootView");
rootView.getViewTreeObserver().addOnGlobalLayoutListener(new L(rootView, intExtra, intExtra2));
}
U0().p(new AIGuruOnboardingViewModelContract$Event.SetAIGuruMode(u0));
U0().p(AIGuruOnboardingViewModelContract$Event.a.a);
if (((AIGuruOnboardingViewModelContract$State) U0().l()).isOnboardingEnabled()) {
C0337lN0.a(((AIGuruOnboardingViewModelContract$State) U0().l()).getOnboardingData(), new Q(this, i4), new S(this, i4), new C0132aN0(this, i2), o, 8);
} else {
V0();
}
Su2 Y = o.Y();
if (Y != null) {
Y.d = new Function2() {
public final Object u(Object obj, Object obj2) {
int i5 = i2;
int i6 = i;
Object obj3 = this;
switch (i5) {
case 0:
GyanGuruOnboardingActivity gyanGuruOnboardingActivity = (GyanGuruOnboardingActivity) obj3;
((Integer) obj2).getClass();
int i7 = GyanGuruOnboardingActivity.E0;
Intrinsics.checkNotNullParameter(gyanGuruOnboardingActivity, "$tmp0_rcvr");
gyanGuruOnboardingActivity.Q0((KO) obj, xv.f0(i6 | 1));
break;
default:
NuggetAnalytics nuggetAnalytics = (NuggetAnalytics) obj3;
((Integer) obj2).getClass();
Intrinsics.checkNotNullParameter(nuggetAnalytics, "$result");
P91.i(nuggetAnalytics, (KO) obj, xv.f0(i6 | 1));
break;
}
return Unit.a;
}
};
}
}
@Override
public final void S0() {
}
public final com.gyanguru.ui.onboarding.viewmodel.a U0() {
return this.D0.b();
}
public final void V0() {
GyanGuruConfigData gyanGuruConfigData;
Object parcelableExtra;
U0().p(AIGuruOnboardingViewModelContract$Event.c.a);
if (Build.VERSION.SDK_INT > 33) {
parcelableExtra = getIntent().getParcelableExtra("EXTRA_CONFIG_DATA", GyanGuruConfigData.class);
gyanGuruConfigData = (GyanGuruConfigData) parcelableExtra;
} else {
gyanGuruConfigData = (GyanGuruConfigData) getIntent().getParcelableExtra("EXTRA_CONFIG_DATA");
}
U0 aiGuruMode = ((AIGuruOnboardingViewModelContract$State) U0().l()).getAiGuruMode();
Intrinsics.checkNotNullParameter(this, "context");
Intrinsics.checkNotNullParameter(aiGuruMode, "mode");
Intent intent = new Intent((Context) this, (Class<?>) GyanGuruActivity.class);
intent.setAction("LAUNCHED_NORMALLY");
intent.putExtra("EXTRA_MODE", aiGuruMode.name());
intent.putExtra("EXTRA_FAB_POS_X", 0);
intent.putExtra("EXTRA_FAB_POS_Y", 0);
intent.putExtra("EXTRA_CONFIG_DATA", gyanGuruConfigData);
startActivity(intent);
finish();
}
}