正在查看: Cashalo v2.25.0.0 应用的 BaseLaunchActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Cashalo v2.25.0.0 应用的 BaseLaunchActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package finance.empower.android.app;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.activity.ComponentActivity;
import androidx.activity.compose.ComponentActivityKt;
import androidx.appcompat.app.AppCompatActivity;
import androidx.compose.runtime.CompositionContext;
import androidx.core.os.BundleCompat;
import androidx.core.splashscreen.SplashScreen;
import androidx.core.view.WindowCompat;
import com.google.firebase.crashlytics.FirebaseCrashlytics;
import com.snap.stuffing.api.DynamicAppManager;
import dagger.android.AndroidInjection;
import finance.empower.android.LogicFailure;
import finance.empower.android.Result;
import finance.empower.android.app.authentication.ConfirmationCodeActivity;
import finance.empower.android.app.components.AnalyticsComponent;
import finance.empower.android.app.components.AppUpdateComponent;
import finance.empower.android.app.components.ErrorComponent;
import finance.empower.android.app.components.PerformanceComponent;
import finance.empower.android.app.password.SetNewPasswordActivity;
import finance.empower.android.core.ui.ButtonConfig;
import finance.empower.android.core.ui.view.UiString;
import finance.empower.android.data.model.AccessChallengeResponseDto;
import finance.empower.android.data.service.AuthService;
import finance.empower.android.data.service.ConfigService;
import finance.empower.android.data.service.ScreenService;
import finance.empower.android.data.service.UserService;
import finance.empower.android.domain.error.DomainError;
import finance.empower.android.domain.model.User;
import finance.empower.android.framework.ReleaseConfig;
import finance.empower.android.framework.ReleaseToggle;
import finance.empower.android.kotlin.extensions.IntentExtKt;
import finance.empower.android.kotlin.extensions.ResultExtKt;
import finance.empower.android.kotlin.extensions.content.Internals;
import finance.empower.android.ui.core.R;
import finance.empower.ph.ResolveNavigationQuery;
import finance.empower.ph.model.sdui.ui.ScreenUiKt;
import finance.empower.ph.model.sdui.ui.state.TextState;
import finance.empower.ph.model.sdui.ui.state.ValidatedTextState;
import finance.empower.ph.sdui.DynamicSDUIActivity;
import finance.empower.ph.sdui.ScreenConfig;
import io.reactivex.Single;
import io.reactivex.SingleSource;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.CompositeDisposable;
import io.reactivex.disposables.Disposable;
import io.reactivex.functions.Consumer;
import io.reactivex.functions.Function;
import io.reactivex.rxkotlin.DisposableKt;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import javax.inject.Inject;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.Pair;
import kotlin.TuplesKt;
import kotlin.Unit;
import kotlin.collections.CollectionsKt;
import kotlin.collections.MapsKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.serialization.json.JsonElementBuildersKt;
import kotlinx.serialization.json.JsonObjectBuilder;
@Metadata(d1 = {"\u0000¦\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0013\n\u0002\u0018\u0002\n\u0002\b\u0005\b'\u0018\u0000 n2\u00020\u0001:\u0003nopB\u0005¢\u0006\u0002\u0010\u0002J\b\u0010B\u001a\u00020CH\u0002J\n\u0010D\u001a\u0004\u0018\u00010EH\u0016J\u0018\u0010F\u001a\b\u0012\u0004\u0012\u00020E0G2\b\u0010H\u001a\u0004\u0018\u00010IH\u0002J\"\u0010J\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00020E\u0012\u0004\u0012\u00020M0L0K2\u0006\u0010H\u001a\u00020IH\u0002J\b\u0010N\u001a\u00020CH\u0016J\b\u0010O\u001a\u00020CH\u0002J\u0018\u0010P\u001a\u00020C2\u0006\u0010Q\u001a\u00020R2\u0006\u0010S\u001a\u00020TH\u0002J\u0018\u0010U\u001a\u00020C2\u0006\u0010Q\u001a\u00020R2\u0006\u0010S\u001a\u00020TH\u0002J\u0010\u0010V\u001a\u00020C2\u0006\u0010W\u001a\u00020XH\u0002J\b\u0010Y\u001a\u00020CH\u0002J\u0010\u0010Z\u001a\u00020C2\u0006\u0010S\u001a\u00020TH\u0002J\u0012\u0010[\u001a\u00020C2\b\u0010\\\u001a\u0004\u0018\u00010XH\u0014J\u0012\u0010]\u001a\u00020C2\b\u0010^\u001a\u0004\u0018\u00010EH\u0014J\b\u0010_\u001a\u00020CH\u0014J\b\u0010`\u001a\u00020CH\u0014J\b\u0010a\u001a\u00020CH\u0014J\"\u0010b\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020E0G0K*\u00020R2\b\u0010^\u001a\u0004\u0018\u00010EH\u0002J=\u0010b\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020E0G0K*\u00020R2\u001e\u0010c\u001a\u001a\u0012\u0016\u0012\u0014\u0012\n\u0012\b\u0012\u0004\u0012\u00020E0G\u0012\u0004\u0012\u00020M0L0KH\u0003¢\u0006\u0002\bdJ,\u0010b\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020E0G0K*\u00020R2\u0012\u0010c\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020E0G0KH\u0002J*\u0010b\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020E0G0K*\u00020R2\u0010\b\u0002\u0010e\u001a\n\u0012\u0004\u0012\u00020E\u0018\u00010GH\u0002J2\u0010f\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020E0G0K*\u00020R2\u0018\u0010c\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00020E\u0012\u0004\u0012\u00020M0L0KH\u0002J=\u0010f\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020E0G0K*\u00020R2\u001e\u0010c\u001a\u001a\u0012\u0016\u0012\u0014\u0012\n\u0012\b\u0012\u0004\u0012\u00020E0G\u0012\u0004\u0012\u00020M0L0KH\u0003¢\u0006\u0002\bgJ \u0010h\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020E0G0K*\u00020T2\u0006\u0010Q\u001a\u00020RH\u0002J\u0012\u0010i\u001a\b\u0012\u0004\u0012\u00020E0G*\u00020TH\u0002J(\u0010j\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020E0G0K*\u00020T2\u0006\u0010Q\u001a\u00020R2\u0006\u0010k\u001a\u00020lH\u0002J\f\u0010m\u001a\u00020E*\u00020EH\u0002R$\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0004@GX\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b\u0006\u0010\u0007\"\u0004\b\b\u0010\tR$\u0010\u000b\u001a\u00020\n2\u0006\u0010\u0003\u001a\u00020\n@GX\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b\f\u0010\r\"\u0004\b\u000e\u0010\u000fR$\u0010\u0011\u001a\u00020\u00102\u0006\u0010\u0003\u001a\u00020\u0010@GX\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b\u0012\u0010\u0013\"\u0004\b\u0014\u0010\u0015R$\u0010\u0017\u001a\u00020\u00162\u0006\u0010\u0003\u001a\u00020\u0016@GX\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b\u0018\u0010\u0019\"\u0004\b\u001a\u0010\u001bR\u000e\u0010\u001c\u001a\u00020\u001dX\u0082\u0004¢\u0006\u0002\n\u0000R$\u0010\u001f\u001a\u00020\u001e2\u0006\u0010\u0003\u001a\u00020\u001e@GX\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b \u0010!\"\u0004\b\"\u0010#R$\u0010%\u001a\u00020$2\u0006\u0010\u0003\u001a\u00020$@GX\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b&\u0010'\"\u0004\b(\u0010)R$\u0010+\u001a\u00020*2\u0006\u0010\u0003\u001a\u00020*@GX\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b,\u0010-\"\u0004\b.\u0010/R$\u00101\u001a\u0002002\u0006\u0010\u0003\u001a\u000200@GX\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b2\u00103\"\u0004\b4\u00105R$\u00107\u001a\u0002062\u0006\u0010\u0003\u001a\u000206@GX\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b8\u00109\"\u0004\b:\u0010;R$\u0010=\u001a\u00020<2\u0006\u0010\u0003\u001a\u00020<@GX\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b>\u0010?\"\u0004\b@\u0010A¨\u0006q"}, d2 = {"Lfinance/empower/android/app/BaseLaunchActivity;", "Landroidx/appcompat/app/AppCompatActivity;", "()V", "<set-?>", "Lfinance/empower/android/app/components/AnalyticsComponent;", "analyticsComponent", "getAnalyticsComponent", "()Lfinance/empower/android/app/components/AnalyticsComponent;", "setAnalyticsComponent", "(Lfinance/empower/android/app/components/AnalyticsComponent;)V", "Lfinance/empower/android/app/components/AppUpdateComponent;", "appUpdateComponent", "getAppUpdateComponent", "()Lfinance/empower/android/app/components/AppUpdateComponent;", "setAppUpdateComponent", "(Lfinance/empower/android/app/components/AppUpdateComponent;)V", "Lfinance/empower/android/data/service/AuthService;", "authService", "getAuthService", "()Lfinance/empower/android/data/service/AuthService;", "setAuthService", "(Lfinance/empower/android/data/service/AuthService;)V", "Lfinance/empower/android/data/service/ConfigService;", "configService", "getConfigService", "()Lfinance/empower/android/data/service/ConfigService;", "setConfigService", "(Lfinance/empower/android/data/service/ConfigService;)V", "disposables", "Lio/reactivex/disposables/CompositeDisposable;", "Lcom/snap/stuffing/api/DynamicAppManager;", "dynamicAppManager", "getDynamicAppManager", "()Lcom/snap/stuffing/api/DynamicAppManager;", "setDynamicAppManager", "(Lcom/snap/stuffing/api/DynamicAppManager;)V", "Lfinance/empower/android/app/components/ErrorComponent;", "errorComponent", "getErrorComponent", "()Lfinance/empower/android/app/components/ErrorComponent;", "setErrorComponent", "(Lfinance/empower/android/app/components/ErrorComponent;)V", "Lfinance/empower/android/app/components/PerformanceComponent;", "performanceComponent", "getPerformanceComponent", "()Lfinance/empower/android/app/components/PerformanceComponent;", "setPerformanceComponent", "(Lfinance/empower/android/app/components/PerformanceComponent;)V", "Lfinance/empower/android/framework/ReleaseConfig;", "releaseConfig", "getReleaseConfig", "()Lfinance/empower/android/framework/ReleaseConfig;", "setReleaseConfig", "(Lfinance/empower/android/framework/ReleaseConfig;)V", "Lfinance/empower/android/data/service/ScreenService;", "screenService", "getScreenService", "()Lfinance/empower/android/data/service/ScreenService;", "setScreenService", "(Lfinance/empower/android/data/service/ScreenService;)V", "Lfinance/empower/android/data/service/UserService;", "userService", "getUserService", "()Lfinance/empower/android/data/service/UserService;", "setUserService", "(Lfinance/empower/android/data/service/UserService;)V", "checkForUpdates", "", "deepLinkDevTools", "Landroid/content/Intent;", "deeplinkResetPassword", "", "code", "", "deeplinkVerifyEmail", "Lio/reactivex/Single;", "Lfinance/empower/android/Result;", "Lfinance/empower/android/domain/error/DomainError;", "finish", "handleAppLaunch", "handleAuthenticatedDeeplink", "source", "Lfinance/empower/android/app/BaseLaunchActivity$Source;", "link", "Lfinance/empower/android/app/BaseLaunchActivity$DeepLink;", "handleDeepLink", "handleLaunchFromLegacyCashalo", "extras", "Landroid/os/Bundle;", "handleStandardAppLaunch", "handleUnauthenticatedDeeplink", "onCreate", "savedInstanceState", "onNewIntent", "intent", "onResume", "onStart", "onStop", "mapOverHome", "single", "mapOverHomeResult", "intents", "mapOverNothing", "mapOverNothingList", "mapToIntentsAuthenticated", "mapToIntentsUnauthenticated", "mapToOnboardingIntentsAuthenticated", "user", "Lfinance/empower/android/domain/model/User;", "rootOfNewTask", "Companion", "DeepLink", "Source", "empower-app_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public abstract class BaseLaunchActivity extends AppCompatActivity {
private static final String EXTRA_SOURCE = "finance.empower.cb6871e5-f201-43fd-a6d9-e39424d4d135";
public AnalyticsComponent analyticsComponent;
public AppUpdateComponent appUpdateComponent;
public AuthService authService;
public ConfigService configService;
private final CompositeDisposable disposables = new CompositeDisposable();
public DynamicAppManager dynamicAppManager;
public ErrorComponent errorComponent;
public PerformanceComponent performanceComponent;
public ReleaseConfig releaseConfig;
public ScreenService screenService;
public UserService userService;
public static final Companion INSTANCE = new Companion(null);
public static final int $stable = 8;
public Intent deepLinkDevTools() {
return null;
}
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0016\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\nR\u000e\u0010\u0003\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000¨\u0006\u000b"}, d2 = {"Lfinance/empower/android/app/BaseLaunchActivity$Companion;", "", "()V", "EXTRA_SOURCE", "", "newIntentFromInternalSource", "Landroid/content/Intent;", "context", "Landroid/content/Context;", "deepLink", "Landroid/net/Uri;", "empower-app_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final Intent newIntentFromInternalSource(Context context, Uri deepLink) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(deepLink, "deepLink");
Intent putExtra = Internals.createIntent(context, LaunchActivity.class, new Pair[0]).setAction("android.intent.action.VIEW").setData(deepLink).putExtra(BaseLaunchActivity.EXTRA_SOURCE, Source.Internal.INSTANCE);
Intrinsics.checkNotNullExpressionValue(putExtra, "putExtra(...)");
return putExtra;
}
}
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
setIntent(intent);
}
public final AuthService getAuthService() {
AuthService authService = this.authService;
if (authService != null) {
return authService;
}
Intrinsics.throwUninitializedPropertyAccessException("authService");
return null;
}
@Inject
public final void setAuthService(AuthService authService) {
Intrinsics.checkNotNullParameter(authService, "<set-?>");
this.authService = authService;
}
public final UserService getUserService() {
UserService userService = this.userService;
if (userService != null) {
return userService;
}
Intrinsics.throwUninitializedPropertyAccessException("userService");
return null;
}
@Inject
public final void setUserService(UserService userService) {
Intrinsics.checkNotNullParameter(userService, "<set-?>");
this.userService = userService;
}
public final ConfigService getConfigService() {
ConfigService configService = this.configService;
if (configService != null) {
return configService;
}
Intrinsics.throwUninitializedPropertyAccessException("configService");
return null;
}
@Inject
public final void setConfigService(ConfigService configService) {
Intrinsics.checkNotNullParameter(configService, "<set-?>");
this.configService = configService;
}
public final AnalyticsComponent getAnalyticsComponent() {
AnalyticsComponent analyticsComponent = this.analyticsComponent;
if (analyticsComponent != null) {
return analyticsComponent;
}
Intrinsics.throwUninitializedPropertyAccessException("analyticsComponent");
return null;
}
@Inject
public final void setAnalyticsComponent(AnalyticsComponent analyticsComponent) {
Intrinsics.checkNotNullParameter(analyticsComponent, "<set-?>");
this.analyticsComponent = analyticsComponent;
}
public final AppUpdateComponent getAppUpdateComponent() {
AppUpdateComponent appUpdateComponent = this.appUpdateComponent;
if (appUpdateComponent != null) {
return appUpdateComponent;
}
Intrinsics.throwUninitializedPropertyAccessException("appUpdateComponent");
return null;
}
@Inject
public final void setAppUpdateComponent(AppUpdateComponent appUpdateComponent) {
Intrinsics.checkNotNullParameter(appUpdateComponent, "<set-?>");
this.appUpdateComponent = appUpdateComponent;
}
public final ErrorComponent getErrorComponent() {
ErrorComponent errorComponent = this.errorComponent;
if (errorComponent != null) {
return errorComponent;
}
Intrinsics.throwUninitializedPropertyAccessException("errorComponent");
return null;
}
@Inject
public final void setErrorComponent(ErrorComponent errorComponent) {
Intrinsics.checkNotNullParameter(errorComponent, "<set-?>");
this.errorComponent = errorComponent;
}
public final PerformanceComponent getPerformanceComponent() {
PerformanceComponent performanceComponent = this.performanceComponent;
if (performanceComponent != null) {
return performanceComponent;
}
Intrinsics.throwUninitializedPropertyAccessException("performanceComponent");
return null;
}
@Inject
public final void setPerformanceComponent(PerformanceComponent performanceComponent) {
Intrinsics.checkNotNullParameter(performanceComponent, "<set-?>");
this.performanceComponent = performanceComponent;
}
public final ReleaseConfig getReleaseConfig() {
ReleaseConfig releaseConfig = this.releaseConfig;
if (releaseConfig != null) {
return releaseConfig;
}
Intrinsics.throwUninitializedPropertyAccessException("releaseConfig");
return null;
}
@Inject
public final void setReleaseConfig(ReleaseConfig releaseConfig) {
Intrinsics.checkNotNullParameter(releaseConfig, "<set-?>");
this.releaseConfig = releaseConfig;
}
public final ScreenService getScreenService() {
ScreenService screenService = this.screenService;
if (screenService != null) {
return screenService;
}
Intrinsics.throwUninitializedPropertyAccessException("screenService");
return null;
}
@Inject
public final void setScreenService(ScreenService screenService) {
Intrinsics.checkNotNullParameter(screenService, "<set-?>");
this.screenService = screenService;
}
public final DynamicAppManager getDynamicAppManager() {
DynamicAppManager dynamicAppManager = this.dynamicAppManager;
if (dynamicAppManager != null) {
return dynamicAppManager;
}
Intrinsics.throwUninitializedPropertyAccessException("dynamicAppManager");
return null;
}
@Inject
public final void setDynamicAppManager(DynamicAppManager dynamicAppManager) {
Intrinsics.checkNotNullParameter(dynamicAppManager, "<set-?>");
this.dynamicAppManager = dynamicAppManager;
}
protected void onCreate(Bundle savedInstanceState) {
Activity activity = (Activity) this;
AndroidInjection.inject(activity);
if (!(!getReleaseConfig().isReleaseToggleEnabled(ReleaseToggle.DEMONSTRATION))) {
throw new IllegalStateException("Check failed.".toString());
}
SplashScreen.Companion.installSplashScreen(activity);
super.onCreate(savedInstanceState);
ComponentActivityKt.setContent$default((ComponentActivity) this, (CompositionContext) null, ComposableSingletons$BaseLaunchActivityKt.INSTANCE.m629getLambda1$empower_app_release(), 1, (Object) null);
}
protected void onStart() {
super.onStart();
checkForUpdates();
}
protected void onResume() {
super.onResume();
WindowCompat.setDecorFitsSystemWindows(getWindow(), false);
}
protected void onStop() {
this.disposables.clear();
super.onStop();
}
public void finish() {
super.finish();
overridePendingTransition(R.anim.fade_in, R.anim.fade_out);
}
private final void checkForUpdates() {
getAppUpdateComponent().checkForUpdates(new Function0<Unit>() {
public final void m626invoke() {
}
public Object invoke() {
m626invoke();
return Unit.INSTANCE;
}
}, new Function0<Unit>() {
{
super(0);
}
public Object invoke() {
m627invoke();
return Unit.INSTANCE;
}
public final void m627invoke() {
BaseLaunchActivity.this.handleAppLaunch();
}
});
}
public final void handleAppLaunch() {
Source.External external;
String string;
String action = getIntent().getAction();
Bundle extras = getIntent().getExtras();
if (getIntent().hasExtra("google.message_id")) {
getAnalyticsComponent().trackApplicationLaunch(LaunchType.PUSH_NOTIFICATION);
if (extras != null && (string = extras.getString("notification_type")) != null) {
getAnalyticsComponent().trackAppNotificationSelection(string, extras.getString("alert_data"));
}
handleDeepLink(Source.Notification.INSTANCE, DeepLink.INSTANCE.resolve(extras));
return;
}
if (getIntent().hasExtra("access_challenge_request") || getIntent().hasExtra("mobile_number") || getIntent().hasExtra("existing_app_data")) {
Intrinsics.checkNotNull(extras);
handleLaunchFromLegacyCashalo(extras);
return;
}
if (Intrinsics.areEqual(action, "android.intent.action.VIEW")) {
getIntent().getDataString();
if (extras == null || (external = (Source) ((Parcelable) BundleCompat.getParcelable(extras, EXTRA_SOURCE, Source.class))) == null) {
external = Source.External.INSTANCE;
}
handleDeepLink(external, DeepLink.INSTANCE.resolve(getIntent().getData()));
return;
}
if (!getAuthService().isAuthenticated()) {
getAnalyticsComponent().trackReturnToLegacyApp("unauthed in new app");
getDynamicAppManager().switchToAppFamily("oriente", false, (Intent) null);
} else if (Intrinsics.areEqual(action, "android.intent.action.MAIN")) {
handleStandardAppLaunch();
}
}
private final void handleLaunchFromLegacyCashalo(Bundle extras) {
if (extras.containsKey("access_challenge_request")) {
AnalyticsComponent analyticsComponent = getAnalyticsComponent();
String string = extras.getString("device_analytics_token");
Intrinsics.checkNotNull(string);
AnalyticsComponent.identifyDevice$default(analyticsComponent, null, string, null, 5, null);
getAnalyticsComponent().trackPageDuration("AuthenticationEntryScreen", extras.getLong("login_screen_duration_ms"), MapsKt.emptyMap());
String string2 = extras.getString("mobile_number");
Intrinsics.checkNotNull(string2);
AnalyticsComponent analyticsComponent2 = getAnalyticsComponent();
JsonObjectBuilder jsonObjectBuilder = new JsonObjectBuilder();
JsonElementBuildersKt.put(jsonObjectBuilder, "launchType", "login_switcher");
JsonElementBuildersKt.put(jsonObjectBuilder, "mobileNumber", string2);
Unit unit = Unit.INSTANCE;
analyticsComponent2.trackEvent("appStartedFromSwitcher", jsonObjectBuilder.build());
String string3 = extras.getString("access_challenge_request");
Intrinsics.checkNotNull(string3);
startActivity(ConfirmationCodeActivity.Companion.newIntent$default(ConfirmationCodeActivity.INSTANCE, (Context) this, string2, string3, false, 8, null));
finish();
return;
}
if (extras.containsKey("should_migrate")) {
AnalyticsComponent analyticsComponent3 = getAnalyticsComponent();
JsonObjectBuilder jsonObjectBuilder2 = new JsonObjectBuilder();
JsonElementBuildersKt.put(jsonObjectBuilder2, "launchType", "apply_now_switcher");
Unit unit2 = Unit.INSTANCE;
analyticsComponent3.trackEvent("appStartedFromSwitcher", jsonObjectBuilder2.build());
String string4 = extras.getString("mobile_number");
Intrinsics.checkNotNull(string4);
String string5 = extras.getString("encrypted_mobile_number");
Intrinsics.checkNotNull(string5);
String jsonString = ScreenUiKt.toJsonString(new ValidatedTextState(string4, true));
Intrinsics.checkNotNull(jsonString);
String jsonString2 = ScreenUiKt.toJsonString(new ValidatedTextState(string5, true));
Intrinsics.checkNotNull(jsonString2);
startActivity(DynamicSDUIActivity.INSTANCE.newIntent((Context) this, new ScreenConfig("ApplyNowMigration", null, MapsKt.mapOf(new Pair[]{TuplesKt.to("mobile_number", jsonString), TuplesKt.to("encrypted_mobile_number", jsonString2)}), 2, null)));
finish();
return;
}
if (extras.containsKey("mobile_number")) {
final String string6 = extras.getString("mobile_number");
Intrinsics.checkNotNull(string6);
AnalyticsComponent analyticsComponent4 = getAnalyticsComponent();
JsonObjectBuilder jsonObjectBuilder3 = new JsonObjectBuilder();
JsonElementBuildersKt.put(jsonObjectBuilder3, "launchType", "signup_switcher");
JsonElementBuildersKt.put(jsonObjectBuilder3, "mobileNumber", string6);
JsonElementBuildersKt.put(jsonObjectBuilder3, "registerNewUserProp", Boolean.valueOf(extras.getBoolean("register_new_user")));
Unit unit3 = Unit.INSTANCE;
analyticsComponent4.trackEvent("appStartedFromSwitcher", jsonObjectBuilder3.build());
AnalyticsComponent.trackEvent$default(getAnalyticsComponent(), "registerInitiated", null, 2, null);
Single<Result<AccessChallengeResponseDto, DomainError>> observeOn = getAuthService().register(string6).observeOn(AndroidSchedulers.mainThread());
Intrinsics.checkNotNullExpressionValue(observeOn, "observeOn(...)");
DisposableKt.addTo(ResultExtKt.subscribeForResult(observeOn, new Function1<AccessChallengeResponseDto, Unit>() {
{
super(1);
}
public Object invoke(Object obj) {
invoke((AccessChallengeResponseDto) obj);
return Unit.INSTANCE;
}
public final void invoke(AccessChallengeResponseDto accessChallengeResponseDto) {
Intrinsics.checkNotNullParameter(accessChallengeResponseDto, "accessChallenge");
AnalyticsComponent.trackEvent$default(BaseLaunchActivity.this.getAnalyticsComponent(), "registerSucceeded", null, 2, null);
BaseLaunchActivity.this.startActivity(ConfirmationCodeActivity.INSTANCE.newIntent((Context) BaseLaunchActivity.this, string6, accessChallengeResponseDto.getAccessChallengeRequest(), true));
BaseLaunchActivity.this.finish();
}
}, new Function1<DomainError, Unit>() {
{
super(1);
}
public Object invoke(Object obj) {
invoke((DomainError) obj);
return Unit.INSTANCE;
}
public final void invoke(DomainError domainError) {
Intrinsics.checkNotNullParameter(domainError, "error");
AnalyticsComponent analyticsComponent5 = BaseLaunchActivity.this.getAnalyticsComponent();
JsonObjectBuilder jsonObjectBuilder4 = new JsonObjectBuilder();
JsonElementBuildersKt.put(jsonObjectBuilder4, "error", domainError.getCode());
Unit unit4 = Unit.INSTANCE;
analyticsComponent5.trackEvent("registerFailed", jsonObjectBuilder4.build());
final BaseLaunchActivity baseLaunchActivity = BaseLaunchActivity.this;
Function0<Unit> function0 = new Function0<Unit>() {
{
super(0);
}
public Object invoke() {
m628invoke();
return Unit.INSTANCE;
}
public final void m628invoke() {
BaseLaunchActivity.this.getAnalyticsComponent().trackReturnToLegacyApp("register failure");
BaseLaunchActivity.this.getDynamicAppManager().switchToAppFamily("oriente", false, (Intent) null);
}
};
ErrorComponent.showTransientError$default(BaseLaunchActivity.this.getErrorComponent(), domainError, new ButtonConfig(new UiString.UiStringRes(finance.empower.ph.R.string.text_leading_ok, null, 2, null), function0), null, function0, 4, null);
}
}), this.disposables);
}
}
private final void handleStandardAppLaunch() {
getAnalyticsComponent().trackApplicationLaunch(LaunchType.STANDARD);
Single observeOn = ResultExtKt.flatMapSuccess(getUserService().fetchUser(false), new Function1<User, Single<Result<List<? extends Intent>, DomainError>>>() {
{
super(1);
}
public final Single<Result<List<Intent>, DomainError>> invoke(User user) {
Intrinsics.checkNotNullParameter(user, "user");
AnalyticsComponent.identifyUser$default(BaseLaunchActivity.this.getAnalyticsComponent(), user.getPublicToken(), null, 2, null);
Single<Result<ResolveNavigationQuery.Navigation, DomainError>> resolveNavigation = BaseLaunchActivity.this.getScreenService().resolveNavigation("onboarding");
final BaseLaunchActivity baseLaunchActivity = BaseLaunchActivity.this;
return ResultExtKt.mapSuccess(resolveNavigation, new Function1<ResolveNavigationQuery.Navigation, List<? extends Intent>>() {
{
super(1);
}
public final List<Intent> invoke(ResolveNavigationQuery.Navigation navigation) {
Intent rootOfNewTask;
Intrinsics.checkNotNullParameter(navigation, "it");
List<Intent> mapToIntents = BaseLaunchActivity.this.getScreenService().mapToIntents((Context) BaseLaunchActivity.this, navigation);
BaseLaunchActivity baseLaunchActivity2 = BaseLaunchActivity.this;
ArrayList arrayList = new ArrayList(CollectionsKt.collectionSizeOrDefault(mapToIntents, 10));
Iterator<T> it = mapToIntents.iterator();
while (it.hasNext()) {
rootOfNewTask = baseLaunchActivity2.rootOfNewTask((Intent) it.next());
arrayList.add(rootOfNewTask);
}
return arrayList;
}
});
}
}).observeOn(AndroidSchedulers.mainThread());
Intrinsics.checkNotNullExpressionValue(observeOn, "observeOn(...)");
DisposableKt.addTo(ResultExtKt.subscribeForResult(observeOn, new Function1<List<? extends Intent>, Unit>() {
{
super(1);
}
public Object invoke(Object obj) {
invoke((List<? extends Intent>) obj);
return Unit.INSTANCE;
}
public final void invoke(List<? extends Intent> list) {
Intrinsics.checkNotNullParameter(list, "intents");
List<? extends Intent> list2 = list;
if (!list2.isEmpty()) {
BaseLaunchActivity.this.startActivities((Intent[]) list2.toArray(new Intent[0]));
}
if (list.isEmpty()) {
FirebaseCrashlytics.getInstance().recordException(new LogicFailure("No intents to display on app launch"));
}
BaseLaunchActivity.this.finish();
}
}, new Function1<DomainError, Unit>() {
{
super(1);
}
public Object invoke(Object obj) {
invoke((DomainError) obj);
return Unit.INSTANCE;
}
public final void invoke(DomainError domainError) {
Intrinsics.checkNotNullParameter(domainError, "it");
BaseLaunchActivity.this.getErrorComponent().showBlockingError(domainError);
}
}), this.disposables);
}
private final void handleDeepLink(Source source, DeepLink link) {
getAnalyticsComponent().trackDeepLinkSelect(link.getPath(), link.getParams(), link.getScheme());
if (source instanceof Source.External) {
getAnalyticsComponent().trackApplicationLaunch(LaunchType.EXTERNAL_LINK);
getAnalyticsComponent().trackApplicationLinkSelection(link.getPath());
}
boolean isAuthenticated = getAuthService().isAuthenticated();
if (isAuthenticated) {
handleAuthenticatedDeeplink(source, link);
} else {
if (isAuthenticated) {
return;
}
handleUnauthenticatedDeeplink(link);
}
}
private final void handleAuthenticatedDeeplink(final Source source, final DeepLink link) {
Single observeOn = ResultExtKt.flatMapResult(getUserService().fetchUser(false), new Function1<User, Single<List<? extends Intent>>>() {
{
super(1);
}
public final Single<List<Intent>> invoke(User user) {
Single<List<Intent>> mapToOnboardingIntentsAuthenticated;
Intrinsics.checkNotNullParameter(user, "user");
mapToOnboardingIntentsAuthenticated = BaseLaunchActivity.this.mapToOnboardingIntentsAuthenticated(link, source, user);
return mapToOnboardingIntentsAuthenticated;
}
}, new Function1<DomainError, Single<List<? extends Intent>>>() {
{
super(1);
}
public final Single<List<Intent>> invoke(DomainError domainError) {
Intrinsics.checkNotNullParameter(domainError, "it");
return BaseLaunchActivity.mapOverHome$default(BaseLaunchActivity.this, source, null, 1, null);
}
}).observeOn(AndroidSchedulers.mainThread());
final Function1<List<? extends Intent>, Unit> function1 = new Function1<List<? extends Intent>, Unit>() {
{
super(1);
}
public Object invoke(Object obj) {
invoke((List<? extends Intent>) obj);
return Unit.INSTANCE;
}
public final void invoke(List<? extends Intent> list) {
Intrinsics.checkNotNull(list);
List<? extends Intent> list2 = list;
if (!list2.isEmpty()) {
BaseLaunchActivity.this.startActivities((Intent[]) list2.toArray(new Intent[0]));
}
BaseLaunchActivity.this.finish();
}
};
Consumer consumer = new Consumer() {
@Override
public final void accept(Object obj) {
BaseLaunchActivity.handleAuthenticatedDeeplink$lambda$4(function1, obj);
}
};
final Function1<Throwable, Unit> function12 = new Function1<Throwable, Unit>() {
{
super(1);
}
public Object invoke(Object obj) {
invoke((Throwable) obj);
return Unit.INSTANCE;
}
public final void invoke(Throwable th) {
Intent rootOfNewTask;
Intrinsics.checkNotNull(th);
BaseLaunchActivity baseLaunchActivity = BaseLaunchActivity.this;
FirebaseCrashlytics.getInstance().recordException(th);
rootOfNewTask = baseLaunchActivity.rootOfNewTask(DynamicSDUIActivity.INSTANCE.newIntent((Context) baseLaunchActivity, new ScreenConfig("Home", null, null, 6, null)));
baseLaunchActivity.startActivity(rootOfNewTask);
baseLaunchActivity.finish();
}
};
Disposable subscribe = observeOn.subscribe(consumer, new Consumer() {
@Override
public final void accept(Object obj) {
BaseLaunchActivity.handleAuthenticatedDeeplink$lambda$5(function12, obj);
}
});
Intrinsics.checkNotNullExpressionValue(subscribe, "subscribe(...)");
DisposableKt.addTo(subscribe, this.disposables);
}
public static final void handleAuthenticatedDeeplink$lambda$4(Function1 function1, Object obj) {
Intrinsics.checkNotNullParameter(function1, "$tmp0");
function1.invoke(obj);
}
public static final void handleAuthenticatedDeeplink$lambda$5(Function1 function1, Object obj) {
Intrinsics.checkNotNullParameter(function1, "$tmp0");
function1.invoke(obj);
}
private final void handleUnauthenticatedDeeplink(DeepLink link) {
startActivities((Intent[]) mapToIntentsUnauthenticated(link).toArray(new Intent[0]));
}
private final Single<List<Intent>> mapToIntentsAuthenticated(DeepLink deepLink, Source source) {
String path = deepLink.getPath();
Locale locale = Locale.US;
Intrinsics.checkNotNullExpressionValue(locale, "US");
Intrinsics.checkNotNullExpressionValue(path.toLowerCase(locale), "toLowerCase(...)");
return mapOverHome$default(this, source, null, 1, null);
}
public final Single<List<Intent>> mapToOnboardingIntentsAuthenticated(DeepLink deepLink, Source source, User user) {
String path = deepLink.getPath();
Locale locale = Locale.US;
Intrinsics.checkNotNullExpressionValue(locale, "US");
String lowerCase = path.toLowerCase(locale);
Intrinsics.checkNotNullExpressionValue(lowerCase, "toLowerCase(...)");
if (!Intrinsics.areEqual(lowerCase, "/verifyemail")) {
return ResultExtKt.mapResult(ResultExtKt.mapSuccess(getScreenService().resolveNavigation("onboarding"), new Function1<ResolveNavigationQuery.Navigation, List<? extends Intent>>() {
{
super(1);
}
public final List<Intent> invoke(ResolveNavigationQuery.Navigation navigation) {
Intent rootOfNewTask;
Intrinsics.checkNotNullParameter(navigation, "it");
List<Intent> mapToIntents = BaseLaunchActivity.this.getScreenService().mapToIntents((Context) BaseLaunchActivity.this, navigation);
BaseLaunchActivity baseLaunchActivity = BaseLaunchActivity.this;
ArrayList arrayList = new ArrayList(CollectionsKt.collectionSizeOrDefault(mapToIntents, 10));
Iterator<T> it = mapToIntents.iterator();
while (it.hasNext()) {
rootOfNewTask = baseLaunchActivity.rootOfNewTask((Intent) it.next());
arrayList.add(rootOfNewTask);
}
return arrayList;
}
}), new Function1<List<? extends Intent>, List<? extends Intent>>() {
public final List<Intent> invoke(List<? extends Intent> list) {
Intrinsics.checkNotNullParameter(list, "it");
return list;
}
}, new Function1<DomainError, List<? extends Intent>>() {
public final List<Intent> invoke(DomainError domainError) {
Intrinsics.checkNotNullParameter(domainError, "it");
return CollectionsKt.emptyList();
}
});
}
String str = deepLink.getParams().get("code");
Intrinsics.checkNotNull(str);
return mapOverNothing(source, deeplinkVerifyEmail(str));
}
private final List<Intent> mapToIntentsUnauthenticated(DeepLink deepLink) {
String path = deepLink.getPath();
Locale locale = Locale.US;
Intrinsics.checkNotNullExpressionValue(locale, "US");
String lowerCase = path.toLowerCase(locale);
Intrinsics.checkNotNullExpressionValue(lowerCase, "toLowerCase(...)");
return Intrinsics.areEqual(lowerCase, "/resetpassword") ? deeplinkResetPassword(deepLink.getParams().get("code")) : CollectionsKt.emptyList();
}
private final Single<Result<Intent, DomainError>> deeplinkVerifyEmail(String code) {
String jsonString = ScreenUiKt.toJsonString(new TextState(code));
Intrinsics.checkNotNull(jsonString);
Single<Result<Intent, DomainError>> just = Single.just(new Result.Success(DynamicSDUIActivity.INSTANCE.newIntent((Context) this, new ScreenConfig("VerifyEmail", null, MapsKt.mapOf(TuplesKt.to("code", jsonString)), 2, null))));
Intrinsics.checkNotNullExpressionValue(just, "just(...)");
return just;
}
private final List<Intent> deeplinkResetPassword(String code) {
Intrinsics.checkNotNull(code);
return CollectionsKt.listOf(SetNewPasswordActivity.INSTANCE.newIntent((Context) this, code));
}
private final Single<List<Intent>> mapOverHome(Source source, Intent intent) {
return mapOverHome(source, intent == null ? CollectionsKt.emptyList() : CollectionsKt.listOf(intent));
}
private final Single<List<Intent>> mapOverHome(final Source source, Single<List<Intent>> single) {
final Function1<List<? extends Intent>, SingleSource<? extends List<? extends Intent>>> function1 = new Function1<List<? extends Intent>, SingleSource<? extends List<? extends Intent>>>() {
{
super(1);
}
public final SingleSource<? extends List<Intent>> invoke(List<? extends Intent> list) {
Single mapOverHome;
Intrinsics.checkNotNullParameter(list, "intent");
mapOverHome = BaseLaunchActivity.this.mapOverHome(source, (List<? extends Intent>) list);
return mapOverHome;
}
};
Single flatMap = single.flatMap(new Function() {
@Override
public final Object apply(Object obj) {
SingleSource mapOverHome$lambda$6;
mapOverHome$lambda$6 = BaseLaunchActivity.mapOverHome$lambda$6(function1, obj);
return mapOverHome$lambda$6;
}
});
Intrinsics.checkNotNullExpressionValue(flatMap, "flatMap(...)");
return flatMap;
}
public static final SingleSource mapOverHome$lambda$6(Function1 function1, Object obj) {
Intrinsics.checkNotNullParameter(function1, "$tmp0");
Intrinsics.checkNotNullParameter(obj, "p0");
return (SingleSource) function1.invoke(obj);
}
private final Single<List<Intent>> mapOverHomeResult(final Source source, Single<Result<List<Intent>, DomainError>> single) {
return ResultExtKt.flatMapResult(single, new Function1<List<? extends Intent>, Single<List<? extends Intent>>>() {
{
super(1);
}
public final Single<List<Intent>> invoke(List<? extends Intent> list) {
Single<List<Intent>> mapOverHome;
Intrinsics.checkNotNullParameter(list, "intents");
mapOverHome = BaseLaunchActivity.this.mapOverHome(source, (List<? extends Intent>) list);
return mapOverHome;
}
}, new Function1<DomainError, Single<List<? extends Intent>>>() {
public final Single<List<Intent>> invoke(DomainError domainError) {
Intrinsics.checkNotNullParameter(domainError, "it");
Single<List<Intent>> just = Single.just(CollectionsKt.emptyList());
Intrinsics.checkNotNullExpressionValue(just, "just(...)");
return just;
}
});
}
static Single mapOverHome$default(BaseLaunchActivity baseLaunchActivity, Source source, List list, int i, Object obj) {
if (obj != null) {
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: mapOverHome");
}
if ((i & 1) != 0) {
list = null;
}
return baseLaunchActivity.mapOverHome(source, (List<? extends Intent>) list);
}
public final Single<List<Intent>> mapOverHome(Source source, List<? extends Intent> list) {
Intent intent = list != null ? (Intent) CollectionsKt.firstOrNull(list) : null;
if (intent == null) {
if (source instanceof Source.Internal) {
list = CollectionsKt.emptyList();
} else {
if (!(source instanceof Source.Notification ? true : source instanceof Source.External)) {
throw new NoWhenBranchMatchedException();
}
list = CollectionsKt.listOf(rootOfNewTask(DynamicSDUIActivity.INSTANCE.newIntent((Context) this, new ScreenConfig("Home", null, null, 6, null))));
}
} else {
ComponentName component = intent.getComponent();
if (Intrinsics.areEqual(component != null ? component.getClassName() : null, DynamicSDUIActivity.class.getName())) {
list = CollectionsKt.plus(CollectionsKt.listOf(rootOfNewTask(intent)), CollectionsKt.takeLast(list, list.size() - 1));
} else if (!(source instanceof Source.Internal)) {
if (!(source instanceof Source.Notification ? true : source instanceof Source.External)) {
throw new NoWhenBranchMatchedException();
}
list = CollectionsKt.plus(CollectionsKt.listOf(rootOfNewTask(DynamicSDUIActivity.INSTANCE.newIntent((Context) this, new ScreenConfig("Home", null, null, 6, null)))), list);
}
}
Single<List<Intent>> just = Single.just(list);
Intrinsics.checkNotNullExpressionValue(just, "just(...)");
return just;
}
private final Single<List<Intent>> mapOverNothingList(Source source, Single<Result<List<Intent>, DomainError>> single) {
return ResultExtKt.flatMapResult(single, new Function1<List<? extends Intent>, Single<List<? extends Intent>>>() {
public final Single<List<Intent>> invoke(List<? extends Intent> list) {
Intrinsics.checkNotNullParameter(list, "intents");
Single<List<Intent>> just = Single.just(list);
Intrinsics.checkNotNullExpressionValue(just, "just(...)");
return just;
}
}, new Function1<DomainError, Single<List<? extends Intent>>>() {
public final Single<List<Intent>> invoke(DomainError domainError) {
Intrinsics.checkNotNullParameter(domainError, "it");
Single<List<Intent>> just = Single.just(CollectionsKt.emptyList());
Intrinsics.checkNotNullExpressionValue(just, "just(...)");
return just;
}
});
}
private final Single<List<Intent>> mapOverNothing(Source source, Single<Result<Intent, DomainError>> single) {
return ResultExtKt.flatMapResult(single, new Function1<Intent, Single<List<? extends Intent>>>() {
public final Single<List<Intent>> invoke(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
Single<List<Intent>> just = Single.just(CollectionsKt.listOf(intent));
Intrinsics.checkNotNullExpressionValue(just, "just(...)");
return just;
}
}, new Function1<DomainError, Single<List<? extends Intent>>>() {
public final Single<List<Intent>> invoke(DomainError domainError) {
Intrinsics.checkNotNullParameter(domainError, "it");
Single<List<Intent>> just = Single.just(CollectionsKt.emptyList());
Intrinsics.checkNotNullExpressionValue(just, "just(...)");
return just;
}
});
}
public final Intent rootOfNewTask(Intent intent) {
return IntentExtKt.clearTask(IntentExtKt.newTask(intent));
}
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b2\u0018\u00002\u00020\u0001:\u0003\u0003\u0004\u0005B\u0007\b\u0004¢\u0006\u0002\u0010\u0002\u0082\u0001\u0003\u0006\u0007\b¨\u0006\t"}, d2 = {"Lfinance/empower/android/app/BaseLaunchActivity$Source;", "Landroid/os/Parcelable;", "()V", "External", "Internal", "Notification", "Lfinance/empower/android/app/BaseLaunchActivity$Source$External;", "Lfinance/empower/android/app/BaseLaunchActivity$Source$Internal;", "Lfinance/empower/android/app/BaseLaunchActivity$Source$Notification;", "empower-app_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
static abstract class Source implements Parcelable {
public Source(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Source() {
}
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\bÇ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\t\u0010\u0003\u001a\u00020\u0004HÖ\u0001J\u0019\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\u0004HÖ\u0001¨\u0006\n"}, d2 = {"Lfinance/empower/android/app/BaseLaunchActivity$Source$Notification;", "Lfinance/empower/android/app/BaseLaunchActivity$Source;", "()V", "describeContents", "", "writeToParcel", "", "parcel", "Landroid/os/Parcel;", "flags", "empower-app_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public static final class Notification extends Source {
public static final int $stable = 0;
public static final Notification INSTANCE = new Notification();
public static final Parcelable.Creator<Notification> CREATOR = new Creator();
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
public static final class Creator implements Parcelable.Creator<Notification> {
@Override
public final Notification createFromParcel(Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
parcel.readInt();
return Notification.INSTANCE;
}
@Override
public final Notification[] newArray(int i) {
return new Notification[i];
}
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel parcel, int flags) {
Intrinsics.checkNotNullParameter(parcel, "out");
parcel.writeInt(1);
}
private Notification() {
super(null);
}
}
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\bÇ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\t\u0010\u0003\u001a\u00020\u0004HÖ\u0001J\u0019\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\u0004HÖ\u0001¨\u0006\n"}, d2 = {"Lfinance/empower/android/app/BaseLaunchActivity$Source$External;", "Lfinance/empower/android/app/BaseLaunchActivity$Source;", "()V", "describeContents", "", "writeToParcel", "", "parcel", "Landroid/os/Parcel;", "flags", "empower-app_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public static final class External extends Source {
public static final int $stable = 0;
public static final External INSTANCE = new External();
public static final Parcelable.Creator<External> CREATOR = new Creator();
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
public static final class Creator implements Parcelable.Creator<External> {
@Override
public final External createFromParcel(Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
parcel.readInt();
return External.INSTANCE;
}
@Override
public final External[] newArray(int i) {
return new External[i];
}
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel parcel, int flags) {
Intrinsics.checkNotNullParameter(parcel, "out");
parcel.writeInt(1);
}
private External() {
super(null);
}
}
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\bÇ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\t\u0010\u0003\u001a\u00020\u0004HÖ\u0001J\u0019\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\u0004HÖ\u0001¨\u0006\n"}, d2 = {"Lfinance/empower/android/app/BaseLaunchActivity$Source$Internal;", "Lfinance/empower/android/app/BaseLaunchActivity$Source;", "()V", "describeContents", "", "writeToParcel", "", "parcel", "Landroid/os/Parcel;", "flags", "empower-app_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public static final class Internal extends Source {
public static final int $stable = 0;
public static final Internal INSTANCE = new Internal();
public static final Parcelable.Creator<Internal> CREATOR = new Creator();
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
public static final class Creator implements Parcelable.Creator<Internal> {
@Override
public final Internal createFromParcel(Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
parcel.readInt();
return Internal.INSTANCE;
}
@Override
public final Internal[] newArray(int i) {
return new Internal[i];
}
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel parcel, int flags) {
Intrinsics.checkNotNullParameter(parcel, "out");
parcel.writeInt(1);
}
private Internal() {
super(null);
}
}
}
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010$\n\u0002\b\u000b\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\b\u0082\b\u0018\u0000 \u00172\u00020\u0001:\u0001\u0017B)\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0012\u0010\u0005\u001a\u000e\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\u00030\u0006¢\u0006\u0002\u0010\u0007J\t\u0010\r\u001a\u00020\u0003HÆ\u0003J\t\u0010\u000e\u001a\u00020\u0003HÆ\u0003J\u0015\u0010\u000f\u001a\u000e\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\u00030\u0006HÆ\u0003J3\u0010\u0010\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00032\u0014\b\u0002\u0010\u0005\u001a\u000e\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\u00030\u0006HÆ\u0001J\u0013\u0010\u0011\u001a\u00020\u00122\b\u0010\u0013\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u0014\u001a\u00020\u0015HÖ\u0001J\t\u0010\u0016\u001a\u00020\u0003HÖ\u0001R\u001d\u0010\u0005\u001a\u000e\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\u00030\u0006¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\tR\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000bR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\u000b¨\u0006\u0018"}, d2 = {"Lfinance/empower/android/app/BaseLaunchActivity$DeepLink;", "", "scheme", "", "path", "params", "", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V", "getParams", "()Ljava/util/Map;", "getPath", "()Ljava/lang/String;", "getScheme", "component1", "component2", "component3", "copy", "equals", "", "other", "hashCode", "", "toString", "Companion", "empower-app_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
static final class DeepLink {
public static final Companion INSTANCE = new Companion(null);
private final Map<String, String> params;
private final String path;
private final String scheme;
public static DeepLink copy$default(DeepLink deepLink, String str, String str2, Map map, int i, Object obj) {
if ((i & 1) != 0) {
str = deepLink.scheme;
}
if ((i & 2) != 0) {
str2 = deepLink.path;
}
if ((i & 4) != 0) {
map = deepLink.params;
}
return deepLink.copy(str, str2, map);
}
public final String getScheme() {
return this.scheme;
}
public final String getPath() {
return this.path;
}
public final Map<String, String> component3() {
return this.params;
}
public final DeepLink copy(String scheme, String path, Map<String, String> params) {
Intrinsics.checkNotNullParameter(scheme, "scheme");
Intrinsics.checkNotNullParameter(path, "path");
Intrinsics.checkNotNullParameter(params, "params");
return new DeepLink(scheme, path, params);
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof DeepLink)) {
return false;
}
DeepLink deepLink = (DeepLink) other;
return Intrinsics.areEqual(this.scheme, deepLink.scheme) && Intrinsics.areEqual(this.path, deepLink.path) && Intrinsics.areEqual(this.params, deepLink.params);
}
public int hashCode() {
return (((this.scheme.hashCode() * 31) + this.path.hashCode()) * 31) + this.params.hashCode();
}
public String toString() {
return "DeepLink(scheme=" + this.scheme + ", path=" + this.path + ", params=" + this.params + ")";
}
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0010\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006J\u0010\u0010\u0003\u001a\u00020\u00042\b\u0010\u0007\u001a\u0004\u0018\u00010\b¨\u0006\t"}, d2 = {"Lfinance/empower/android/app/BaseLaunchActivity$DeepLink$Companion;", "", "()V", "resolve", "Lfinance/empower/android/app/BaseLaunchActivity$DeepLink;", "uri", "Landroid/net/Uri;", "extras", "Landroid/os/Bundle;", "empower-app_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final finance.empower.android.app.BaseLaunchActivity.DeepLink resolve(android.net.Uri r7) {
throw new UnsupportedOperationException("Method not decompiled: finance.empower.android.app.BaseLaunchActivity.DeepLink.Companion.resolve(android.net.Uri):finance.empower.android.app.BaseLaunchActivity$DeepLink");
}
public final DeepLink resolve(Bundle extras) {
if (extras == null) {
return new DeepLink("", "", MapsKt.emptyMap());
}
String string = extras.getString("deep_link");
if (string == null) {
return new DeepLink("", "", MapsKt.emptyMap());
}
return resolve(Uri.parse(string));
}
}
public DeepLink(String str, String str2, Map<String, String> map) {
Intrinsics.checkNotNullParameter(str, "scheme");
Intrinsics.checkNotNullParameter(str2, "path");
Intrinsics.checkNotNullParameter(map, "params");
this.scheme = str;
this.path = str2;
this.params = map;
}
public final Map<String, String> getParams() {
return this.params;
}
public final String getPath() {
return this.path;
}
public final String getScheme() {
return this.scheme;
}
}
}