Primer paso de la investigacion. Se aportan el .apk, las carpetas con el apk extraido y el apk descompilado. El archivo API_DOCUMENTATION.md es un archivo donde se anotaran los descubrimientos del funcionamiento de la API, y los .py son scripts para probar la funcionalidad de la API con los métodos que vayamos encontrando. Finalmente, los archivos .js son scripts de Frida para extraer informacion de la APP durante la ejecucion.
This commit is contained in:
40
apk_decompiled/sources/com/adif/elcanomovil/uiHome/A.java
Normal file
40
apk_decompiled/sources/com/adif/elcanomovil/uiHome/A.java
Normal file
@@ -0,0 +1,40 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class A extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeViewModel f5054a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public A(HomeViewModel homeViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5054a = homeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new A(this.f5054a, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((A) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
this.f5054a.updateViewWithNearestStationBottomSheet();
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
117
apk_decompiled/sources/com/adif/elcanomovil/uiHome/B.java
Normal file
117
apk_decompiled/sources/com/adif/elcanomovil/uiHome/B.java
Normal file
@@ -0,0 +1,117 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.BottomNavInitialTab;
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.Navigation;
|
||||
import com.adif.elcanomovil.commonViews.data.StationViewEntity;
|
||||
import com.adif.elcanomovil.domain.entities.CirculationType;
|
||||
import com.adif.elcanomovil.domain.entities.StationServiceType;
|
||||
import com.adif.elcanomovil.domain.entities.TrainType;
|
||||
import com.adif.elcanomovil.domain.usecases.tabs.TabDataHolder;
|
||||
import com.adif.elcanomovil.uiHome.data.UserFavoriteVO;
|
||||
import java.util.List;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.text.StringsKt__StringsKt;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.channels.Channel;
|
||||
import kotlinx.coroutines.channels.ChannelResult;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class B extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5055a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ UserFavoriteVO f5056b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeViewModel f5057c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public B(UserFavoriteVO userFavoriteVO, HomeViewModel homeViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5056b = userFavoriteVO;
|
||||
this.f5057c = homeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new B(this.f5056b, this.f5057c, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((B) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
TabDataHolder tabDataHolder;
|
||||
Channel channel;
|
||||
TabDataHolder tabDataHolder2;
|
||||
Channel channel2;
|
||||
TabDataHolder tabDataHolder3;
|
||||
Channel channel3;
|
||||
TabDataHolder tabDataHolder4;
|
||||
Channel channel4;
|
||||
List split$default;
|
||||
Channel channel5;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f5055a;
|
||||
HomeViewModel homeViewModel = this.f5057c;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
UserFavoriteVO userFavoriteVO = this.f5056b;
|
||||
int i4 = HomeViewModel$onUserFavoritePressed$1$WhenMappings.$EnumSwitchMapping$0[userFavoriteVO.getType().ordinal()];
|
||||
if (i4 == 1) {
|
||||
tabDataHolder = homeViewModel.tabDataHolder;
|
||||
String identifierStation = userFavoriteVO.getIdentifierStation();
|
||||
if (identifierStation == null) {
|
||||
identifierStation = "";
|
||||
}
|
||||
tabDataHolder.push(new TabDataHolder.TabData.Stations(identifierStation, StationServiceType.SERVICES));
|
||||
channel = homeViewModel._navigation;
|
||||
channel.mo1630trySendJP2dKIU(new Navigation.TabDirection(new BottomNavInitialTab.Station(null, 1, null)));
|
||||
} else if (i4 == 2) {
|
||||
tabDataHolder2 = homeViewModel.tabDataHolder;
|
||||
tabDataHolder2.push(new TabDataHolder.TabData.Departures(userFavoriteVO.getIdentifierStation(), null, CirculationType.DEPARTURE, userFavoriteVO.getTrafficType() != StationViewEntity.TypeTraffic.AVLDMD ? TrainType.CERCANIAS : TrainType.AVELDMD));
|
||||
channel2 = homeViewModel._navigation;
|
||||
channel2.mo1630trySendJP2dKIU(new Navigation.TabDirection(new BottomNavInitialTab.Departures(null, 1, null)));
|
||||
} else if (i4 == 3) {
|
||||
tabDataHolder3 = homeViewModel.tabDataHolder;
|
||||
tabDataHolder3.push(new TabDataHolder.TabData.Departures(userFavoriteVO.getIdentifierStation(), null, CirculationType.ARRIVAL, userFavoriteVO.getTrafficType() != StationViewEntity.TypeTraffic.AVLDMD ? TrainType.CERCANIAS : TrainType.AVELDMD));
|
||||
channel3 = homeViewModel._navigation;
|
||||
channel3.mo1630trySendJP2dKIU(new Navigation.TabDirection(new BottomNavInitialTab.Departures(null, 1, null)));
|
||||
} else if (i4 == 4) {
|
||||
tabDataHolder4 = homeViewModel.tabDataHolder;
|
||||
tabDataHolder4.push(new TabDataHolder.TabData.Departures(userFavoriteVO.getIdentifierStation(), userFavoriteVO.getIdentifierToStation(), CirculationType.BETWEEN_STATIONS, userFavoriteVO.getTrafficType() != StationViewEntity.TypeTraffic.AVLDMD ? TrainType.CERCANIAS : TrainType.AVELDMD));
|
||||
channel4 = homeViewModel._navigation;
|
||||
channel4.mo1630trySendJP2dKIU(new Navigation.TabDirection(new BottomNavInitialTab.Departures(null, 1, null)));
|
||||
} else if (i4 == 5) {
|
||||
split$default = StringsKt__StringsKt.split$default(userFavoriteVO.getTitle(), new String[]{"#"}, false, 0, 6, (Object) null);
|
||||
String str = (String) split$default.get(1);
|
||||
this.f5055a = 1;
|
||||
obj = homeViewModel.handleTrainTap(str, this);
|
||||
if (obj == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
Navigation navigation = (Navigation) obj;
|
||||
if (navigation != null) {
|
||||
channel5 = homeViewModel._navigation;
|
||||
ChannelResult.m1640boximpl(channel5.mo1630trySendJP2dKIU(navigation));
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class BuildConfig {
|
||||
public static final String BUILD_TYPE = "release";
|
||||
public static final boolean DEBUG = false;
|
||||
public static final String FLAVOR = "proNon_corporate";
|
||||
public static final String FLAVOR_is_corporate = "non_corporate";
|
||||
public static final String FLAVOR_version = "pro";
|
||||
public static final String LIBRARY_PACKAGE_NAME = "com.adif.elcanomovil.uiHome";
|
||||
}
|
||||
119
apk_decompiled/sources/com/adif/elcanomovil/uiHome/C.java
Normal file
119
apk_decompiled/sources/com/adif/elcanomovil/uiHome/C.java
Normal file
@@ -0,0 +1,119 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class C extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5058a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeViewModel f5059b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ boolean f5060c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public C(HomeViewModel homeViewModel, boolean z3, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5059b = homeViewModel;
|
||||
this.f5060c = z3;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new C(this.f5059b, this.f5060c, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((C) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:18:0x0042, code lost:
|
||||
|
||||
if (r7 == r0) goto L20;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:19:0x0044, code lost:
|
||||
|
||||
return r0;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:22:0x0039, code lost:
|
||||
|
||||
if (r7 == r0) goto L20;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:24:0x0030, code lost:
|
||||
|
||||
if (r7 == r0) goto L20;
|
||||
*/
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r7) {
|
||||
/*
|
||||
r6 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r6.f5058a
|
||||
com.adif.elcanomovil.uiHome.HomeViewModel r2 = r6.f5059b
|
||||
r3 = 3
|
||||
r4 = 2
|
||||
r5 = 1
|
||||
if (r1 == 0) goto L27
|
||||
if (r1 == r5) goto L23
|
||||
if (r1 == r4) goto L1f
|
||||
if (r1 != r3) goto L17
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
goto L45
|
||||
L17:
|
||||
java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
|
||||
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r6.<init>(r7)
|
||||
throw r6
|
||||
L1f:
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
goto L3c
|
||||
L23:
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
goto L33
|
||||
L27:
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
r6.f5058a = r5
|
||||
java.lang.Object r7 = com.adif.elcanomovil.uiHome.HomeViewModel.access$fetchHomeStation(r2, r6)
|
||||
if (r7 != r0) goto L33
|
||||
goto L44
|
||||
L33:
|
||||
r6.f5058a = r4
|
||||
java.lang.Object r7 = com.adif.elcanomovil.uiHome.HomeViewModel.access$fetchWorkStation(r2, r6)
|
||||
if (r7 != r0) goto L3c
|
||||
goto L44
|
||||
L3c:
|
||||
r6.f5058a = r3
|
||||
java.lang.Object r7 = com.adif.elcanomovil.uiHome.HomeViewModel.access$fetchFavorites(r2, r6)
|
||||
if (r7 != r0) goto L45
|
||||
L44:
|
||||
return r0
|
||||
L45:
|
||||
com.adif.elcanomovil.uiHome.HomeViewModel.access$collectLocationStatus(r2)
|
||||
com.adif.elcanomovil.uiHome.HomeViewModel.access$collectNearestStation(r2)
|
||||
boolean r6 = r6.f5060c
|
||||
if (r6 == 0) goto L53
|
||||
com.adif.elcanomovil.uiHome.HomeViewModel.access$showFavorites(r2)
|
||||
goto L5a
|
||||
L53:
|
||||
r6 = 0
|
||||
com.adif.elcanomovil.uiHome.HomeViewModel.access$setFullyExpandedBottomSheet$p(r2, r6)
|
||||
com.adif.elcanomovil.uiHome.HomeViewModel.access$updateViewState(r2)
|
||||
L5a:
|
||||
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
||||
return r6
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiHome.C.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.commonViews.data.StationViewEntity;
|
||||
import com.adif.elcanomovil.uiHome.HomeFragmentViewAction;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* renamed from: com.adif.elcanomovil.uiHome.a, reason: case insensitive filesystem */
|
||||
/* loaded from: classes2.dex */
|
||||
public final class C0286a extends Lambda implements Function1 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeFragment f5067a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public C0286a(HomeFragment homeFragment) {
|
||||
super(1);
|
||||
this.f5067a = homeFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
HomeViewModel viewModel;
|
||||
HomeViewModel viewModel2;
|
||||
StationViewEntity stationViewEntity = (StationViewEntity) obj;
|
||||
HomeFragment homeFragment = this.f5067a;
|
||||
if (stationViewEntity != null) {
|
||||
viewModel2 = homeFragment.getViewModel();
|
||||
viewModel2.onAction(new HomeFragmentViewAction.StationSelected(stationViewEntity));
|
||||
} else {
|
||||
viewModel = homeFragment.getViewModel();
|
||||
viewModel.onAction(HomeFragmentViewAction.MapTapped.INSTANCE);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.commonViews.data.StationOptionViewEntity;
|
||||
import com.adif.elcanomovil.uiHome.HomeFragmentViewAction;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* renamed from: com.adif.elcanomovil.uiHome.b, reason: case insensitive filesystem */
|
||||
/* loaded from: classes2.dex */
|
||||
public final class C0287b extends Lambda implements Function1 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeFragment f5068a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public C0287b(HomeFragment homeFragment) {
|
||||
super(1);
|
||||
this.f5068a = homeFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
HomeViewModel viewModel;
|
||||
StationOptionViewEntity stationOptionViewEntity = (StationOptionViewEntity) obj;
|
||||
if (stationOptionViewEntity != null) {
|
||||
viewModel = this.f5068a.getViewModel();
|
||||
viewModel.onAction(new HomeFragmentViewAction.StationDetailTapped(stationOptionViewEntity.getType(), stationOptionViewEntity.getId()));
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.commonViews.data.StationViewEntity;
|
||||
import com.adif.elcanomovil.uiHome.HomeFragmentViewAction;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* renamed from: com.adif.elcanomovil.uiHome.c, reason: case insensitive filesystem */
|
||||
/* loaded from: classes2.dex */
|
||||
public final class C0288c extends Lambda implements Function1 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeFragment f5069a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public C0288c(HomeFragment homeFragment) {
|
||||
super(1);
|
||||
this.f5069a = homeFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
HomeViewModel viewModel;
|
||||
HomeViewModel viewModel2;
|
||||
StationViewEntity.Type it = (StationViewEntity.Type) obj;
|
||||
Intrinsics.checkNotNullParameter(it, "it");
|
||||
int i = HomeFragment$configureListeners$3$WhenMappings.$EnumSwitchMapping$0[it.ordinal()];
|
||||
HomeFragment homeFragment = this.f5069a;
|
||||
if (i == 1) {
|
||||
viewModel = homeFragment.getViewModel();
|
||||
viewModel.onAction(HomeFragmentViewAction.SetHomeStationTapped.INSTANCE);
|
||||
} else if (i == 2) {
|
||||
viewModel2 = homeFragment.getViewModel();
|
||||
viewModel2.onAction(HomeFragmentViewAction.SetWorkStationTapped.INSTANCE);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.commonViews.data.StationOptionViewEntity;
|
||||
import com.adif.elcanomovil.uiHome.HomeFragmentViewAction;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* renamed from: com.adif.elcanomovil.uiHome.d, reason: case insensitive filesystem */
|
||||
/* loaded from: classes2.dex */
|
||||
public final class C0289d extends Lambda implements Function1 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeFragment f5070a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public C0289d(HomeFragment homeFragment) {
|
||||
super(1);
|
||||
this.f5070a = homeFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
HomeViewModel viewModel;
|
||||
StationOptionViewEntity stationOptionViewEntity = (StationOptionViewEntity) obj;
|
||||
if (stationOptionViewEntity != null) {
|
||||
viewModel = this.f5070a.getViewModel();
|
||||
viewModel.onAction(new HomeFragmentViewAction.StationDetailTapped(stationOptionViewEntity.getType(), stationOptionViewEntity.getId()));
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.uiHome.HomeFragmentViewAction;
|
||||
import com.adif.elcanomovil.uiHome.data.UserFavoriteVO;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* renamed from: com.adif.elcanomovil.uiHome.e, reason: case insensitive filesystem */
|
||||
/* loaded from: classes2.dex */
|
||||
public final class C0290e extends Lambda implements Function1 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeFragment f5071a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public C0290e(HomeFragment homeFragment) {
|
||||
super(1);
|
||||
this.f5071a = homeFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
HomeViewModel viewModel;
|
||||
UserFavoriteVO it = (UserFavoriteVO) obj;
|
||||
Intrinsics.checkNotNullParameter(it, "it");
|
||||
viewModel = this.f5071a.getViewModel();
|
||||
viewModel.onAction(new HomeFragmentViewAction.FavoriteTapped(it));
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.commonViews.data.StationViewEntity;
|
||||
import com.adif.elcanomovil.domain.entities.station.Station;
|
||||
import com.adif.elcanomovil.uiHome.mappers.StationViewEntityMapper;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* renamed from: com.adif.elcanomovil.uiHome.r, reason: case insensitive filesystem */
|
||||
/* loaded from: classes2.dex */
|
||||
public final class C0291r implements FlowCollector {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeViewModel f5094a;
|
||||
|
||||
public C0291r(HomeViewModel homeViewModel) {
|
||||
this.f5094a = homeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
public final Object emit(Object obj, Continuation continuation) {
|
||||
StationViewEntity map = StationViewEntityMapper.INSTANCE.map((Station) obj);
|
||||
StationViewEntity copy$default = map != null ? StationViewEntity.copy$default(map, null, null, null, null, null, null, null, null, null, StationViewEntity.Type.NEAR, null, 1535, null) : null;
|
||||
HomeViewModel homeViewModel = this.f5094a;
|
||||
homeViewModel.nearestStation = copy$default;
|
||||
homeViewModel.updateViewState();
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
118
apk_decompiled/sources/com/adif/elcanomovil/uiHome/D.java
Normal file
118
apk_decompiled/sources/com/adif/elcanomovil/uiHome/D.java
Normal file
@@ -0,0 +1,118 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.uiHome.HomeFragmentViewAction;
|
||||
import com.adif.elcanomovil.uiHome.mappers.StationViewEntityMapper;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class D extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public HomeViewModel f5061a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public StationViewEntityMapper f5062b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public int f5063c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeViewModel f5064d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeFragmentViewAction.WorkStationSet f5065e;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public D(HomeViewModel homeViewModel, HomeFragmentViewAction.WorkStationSet workStationSet, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5064d = homeViewModel;
|
||||
this.f5065e = workStationSet;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new D(this.f5064d, this.f5065e, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((D) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:20:0x0037, code lost:
|
||||
|
||||
if (r6.invoke(r1, r5) == r0) goto L15;
|
||||
*/
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0059 */
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r6) {
|
||||
/*
|
||||
r5 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r5.f5063c
|
||||
com.adif.elcanomovil.uiHome.HomeViewModel r2 = r5.f5064d
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r1 == 0) goto L24
|
||||
if (r1 == r4) goto L20
|
||||
if (r1 != r3) goto L18
|
||||
com.adif.elcanomovil.uiHome.mappers.StationViewEntityMapper r0 = r5.f5062b
|
||||
com.adif.elcanomovil.uiHome.HomeViewModel r5 = r5.f5061a
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L50
|
||||
L18:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L20:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L3a
|
||||
L24:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
com.adif.elcanomovil.domain.usecases.stations.SetWorkStationUseCase r6 = com.adif.elcanomovil.uiHome.HomeViewModel.access$getSetWorkStationUseCase$p(r2)
|
||||
com.adif.elcanomovil.uiHome.HomeFragmentViewAction$WorkStationSet r1 = r5.f5065e
|
||||
java.lang.String r1 = r1.getStationId()
|
||||
r5.f5063c = r4
|
||||
java.lang.Object r6 = r6.invoke(r1, r5)
|
||||
if (r6 != r0) goto L3a
|
||||
goto L4c
|
||||
L3a:
|
||||
com.adif.elcanomovil.uiHome.mappers.StationViewEntityMapper r6 = com.adif.elcanomovil.uiHome.mappers.StationViewEntityMapper.INSTANCE
|
||||
com.adif.elcanomovil.domain.usecases.stations.GetWorkStationUseCase r1 = com.adif.elcanomovil.uiHome.HomeViewModel.access$getGetWorkStationUseCase$p(r2)
|
||||
r5.f5061a = r2
|
||||
r5.f5062b = r6
|
||||
r5.f5063c = r3
|
||||
java.lang.Object r5 = r1.invoke(r5)
|
||||
if (r5 != r0) goto L4d
|
||||
L4c:
|
||||
return r0
|
||||
L4d:
|
||||
r0 = r6
|
||||
r6 = r5
|
||||
r5 = r2
|
||||
L50:
|
||||
com.adif.elcanomovil.domain.entities.station.Station r6 = (com.adif.elcanomovil.domain.entities.station.Station) r6
|
||||
com.adif.elcanomovil.commonViews.data.StationViewEntity r6 = r0.map(r6)
|
||||
if (r6 != 0) goto L59
|
||||
goto L5e
|
||||
L59:
|
||||
com.adif.elcanomovil.commonViews.data.StationViewEntity$Type r0 = com.adif.elcanomovil.commonViews.data.StationViewEntity.Type.WORK
|
||||
r6.setType(r0)
|
||||
L5e:
|
||||
com.adif.elcanomovil.uiHome.HomeViewModel.access$setWorkStation$p(r5, r6)
|
||||
com.adif.elcanomovil.uiHome.HomeViewModel.access$updateViewState(r2)
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiHome.D.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public abstract class E {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public static final HomeViewModel_HiltModules_KeyModule_ProvideFactory f5066a = new HomeViewModel_HiltModules_KeyModule_ProvideFactory();
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.enums.EnumEntries;
|
||||
import kotlin.enums.EnumEntriesKt;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
|
||||
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0000\n\u0002\u0010\b\n\u0002\b\t\b\u0086\u0081\u0002\u0018\u0000 \u000b2\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0001\u000bB\u000f\b\u0002\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006j\u0002\b\u0007j\u0002\b\bj\u0002\b\tj\u0002\b\n¨\u0006\f"}, d2 = {"Lcom/adif/elcanomovil/uiHome/Gestures;", "", "value", "", "(Ljava/lang/String;II)V", "getValue", "()I", "SWIPE_TOP", "SWIPE_LEFT", "SWIPE_DOWN", "SWIPE_RIGHT", "Companion", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class Gestures {
|
||||
private static final /* synthetic */ EnumEntries $ENTRIES;
|
||||
private static final /* synthetic */ Gestures[] $VALUES;
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE;
|
||||
private final int value;
|
||||
public static final Gestures SWIPE_TOP = new Gestures("SWIPE_TOP", 0, 1);
|
||||
public static final Gestures SWIPE_LEFT = new Gestures("SWIPE_LEFT", 1, 2);
|
||||
public static final Gestures SWIPE_DOWN = new Gestures("SWIPE_DOWN", 2, 3);
|
||||
public static final Gestures SWIPE_RIGHT = new Gestures("SWIPE_RIGHT", 3, 4);
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0013\u0010\u0003\u001a\u0004\u0018\u00010\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0086\u0002¨\u0006\u0007"}, d2 = {"Lcom/adif/elcanomovil/uiHome/Gestures$Companion;", "", "()V", "invoke", "Lcom/adif/elcanomovil/uiHome/Gestures;", "rawValue", "", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nGestureDetector.kt\nKotlin\n*S Kotlin\n*F\n+ 1 GestureDetector.kt\ncom/adif/elcanomovil/uiHome/Gestures$Companion\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,71:1\n1#2:72\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
public final Gestures invoke(int rawValue) {
|
||||
for (Gestures gestures : Gestures.values()) {
|
||||
if (gestures.getValue() == rawValue) {
|
||||
return gestures;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
private static final /* synthetic */ Gestures[] $values() {
|
||||
return new Gestures[]{SWIPE_TOP, SWIPE_LEFT, SWIPE_DOWN, SWIPE_RIGHT};
|
||||
}
|
||||
|
||||
static {
|
||||
Gestures[] $values = $values();
|
||||
$VALUES = $values;
|
||||
$ENTRIES = EnumEntriesKt.enumEntries($values);
|
||||
INSTANCE = new Companion(null);
|
||||
}
|
||||
|
||||
private Gestures(String str, int i, int i4) {
|
||||
this.value = i4;
|
||||
}
|
||||
|
||||
public static EnumEntries<Gestures> getEntries() {
|
||||
return $ENTRIES;
|
||||
}
|
||||
|
||||
public static Gestures valueOf(String str) {
|
||||
return (Gestures) Enum.valueOf(Gestures.class, str);
|
||||
}
|
||||
|
||||
public static Gestures[] values() {
|
||||
return (Gestures[]) $VALUES.clone();
|
||||
}
|
||||
|
||||
public final int getValue() {
|
||||
return this.value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.ContextWrapper;
|
||||
import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import androidx.fragment.app.K;
|
||||
import androidx.lifecycle.y0;
|
||||
import dagger.hilt.android.flags.FragmentGetContextFix;
|
||||
import dagger.hilt.android.internal.lifecycle.DefaultViewModelFactories;
|
||||
import dagger.hilt.android.internal.managers.FragmentComponentManager;
|
||||
import dagger.hilt.internal.GeneratedComponentManagerHolder;
|
||||
import dagger.hilt.internal.Preconditions;
|
||||
import dagger.hilt.internal.UnsafeCasts;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public abstract class Hilt_HomeFragment extends K implements GeneratedComponentManagerHolder {
|
||||
private ContextWrapper componentContext;
|
||||
private volatile FragmentComponentManager componentManager;
|
||||
private final Object componentManagerLock;
|
||||
private boolean disableGetContextFix;
|
||||
private boolean injected;
|
||||
|
||||
public Hilt_HomeFragment() {
|
||||
this.componentManagerLock = new Object();
|
||||
this.injected = false;
|
||||
}
|
||||
|
||||
private void initializeComponentContext() {
|
||||
if (this.componentContext == null) {
|
||||
this.componentContext = FragmentComponentManager.createContextWrapper(super.getContext(), this);
|
||||
this.disableGetContextFix = FragmentGetContextFix.isFragmentGetContextFixDisabled(super.getContext());
|
||||
}
|
||||
}
|
||||
|
||||
public FragmentComponentManager createComponentManager() {
|
||||
return new FragmentComponentManager(this);
|
||||
}
|
||||
|
||||
@Override // dagger.hilt.internal.GeneratedComponentManager
|
||||
public final Object generatedComponent() {
|
||||
return componentManager().generatedComponent();
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public Context getContext() {
|
||||
if (super.getContext() == null && !this.disableGetContextFix) {
|
||||
return null;
|
||||
}
|
||||
initializeComponentContext();
|
||||
return this.componentContext;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K, androidx.lifecycle.InterfaceC0200v
|
||||
public y0 getDefaultViewModelProviderFactory() {
|
||||
return DefaultViewModelFactories.getFragmentFactory(this, super.getDefaultViewModelProviderFactory());
|
||||
}
|
||||
|
||||
public void inject() {
|
||||
if (this.injected) {
|
||||
return;
|
||||
}
|
||||
this.injected = true;
|
||||
((HomeFragment_GeneratedInjector) generatedComponent()).injectHomeFragment((HomeFragment) UnsafeCasts.unsafeCast(this));
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onAttach(Context context) {
|
||||
super.onAttach(context);
|
||||
initializeComponentContext();
|
||||
inject();
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public LayoutInflater onGetLayoutInflater(Bundle bundle) {
|
||||
LayoutInflater onGetLayoutInflater = super.onGetLayoutInflater(bundle);
|
||||
return onGetLayoutInflater.cloneInContext(FragmentComponentManager.createContextWrapper(onGetLayoutInflater, this));
|
||||
}
|
||||
|
||||
@Override // dagger.hilt.internal.GeneratedComponentManagerHolder
|
||||
public final FragmentComponentManager componentManager() {
|
||||
if (this.componentManager == null) {
|
||||
synchronized (this.componentManagerLock) {
|
||||
try {
|
||||
if (this.componentManager == null) {
|
||||
this.componentManager = createComponentManager();
|
||||
}
|
||||
} finally {
|
||||
}
|
||||
}
|
||||
}
|
||||
return this.componentManager;
|
||||
}
|
||||
|
||||
public Hilt_HomeFragment(int i) {
|
||||
super(i);
|
||||
this.componentManagerLock = new Object();
|
||||
this.injected = false;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onAttach(Activity activity) {
|
||||
super.onAttach(activity);
|
||||
ContextWrapper contextWrapper = this.componentContext;
|
||||
Preconditions.checkState(contextWrapper == null || FragmentComponentManager.findActivity(contextWrapper) == activity, "onAttach called multiple times with different Context! Hilt Fragments should not be retained.", new Object[0]);
|
||||
initializeComponentContext();
|
||||
inject();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.commonViews.data.StationViewEntity;
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final /* synthetic */ class HomeFragment$configureListeners$3$WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[StationViewEntity.Type.values().length];
|
||||
try {
|
||||
iArr[StationViewEntity.Type.HOME.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[StationViewEntity.Type.WORK.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,121 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import android.os.Bundle;
|
||||
import androidx.lifecycle.n0;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.NavArguments;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.JvmStatic;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import o0.InterfaceC0530g;
|
||||
|
||||
@Metadata(d1 = {"\u00008\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0007\b\u0086\b\u0018\u0000 \u001c2\u00020\u0001:\u0001\u001cB\u0011\u0012\b\b\u0002\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0004\u0010\u0005J\r\u0010\u0007\u001a\u00020\u0006¢\u0006\u0004\b\u0007\u0010\bJ\r\u0010\n\u001a\u00020\t¢\u0006\u0004\b\n\u0010\u000bJ\u0010\u0010\f\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\f\u0010\rJ\u001a\u0010\u000e\u001a\u00020\u00002\b\b\u0002\u0010\u0003\u001a\u00020\u0002HÆ\u0001¢\u0006\u0004\b\u000e\u0010\u000fJ\u0010\u0010\u0011\u001a\u00020\u0010HÖ\u0001¢\u0006\u0004\b\u0011\u0010\u0012J\u0010\u0010\u0014\u001a\u00020\u0013HÖ\u0001¢\u0006\u0004\b\u0014\u0010\u0015J\u001a\u0010\u0018\u001a\u00020\u00022\b\u0010\u0017\u001a\u0004\u0018\u00010\u0016HÖ\u0003¢\u0006\u0004\b\u0018\u0010\u0019R\u0017\u0010\u0003\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u0003\u0010\u001a\u001a\u0004\b\u001b\u0010\r¨\u0006\u001d"}, d2 = {"Lcom/adif/elcanomovil/uiHome/HomeFragmentArgs;", "Lo0/g;", "", NavArguments.ARG_FOCUS_FAVOURITES, "<init>", "(Z)V", "Landroid/os/Bundle;", "toBundle", "()Landroid/os/Bundle;", "Landroidx/lifecycle/n0;", "toSavedStateHandle", "()Landroidx/lifecycle/n0;", "component1", "()Z", "copy", "(Z)Lcom/adif/elcanomovil/uiHome/HomeFragmentArgs;", "", "toString", "()Ljava/lang/String;", "", "hashCode", "()I", "", "other", "equals", "(Ljava/lang/Object;)Z", "Z", "getFocusFavourites", "Companion", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final /* data */ class HomeFragmentArgs implements InterfaceC0530g {
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE = new Companion(null);
|
||||
private final boolean focusFavourites;
|
||||
|
||||
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\u0017\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004H\u0007¢\u0006\u0004\b\u0007\u0010\bJ\u0017\u0010\u000b\u001a\u00020\u00062\u0006\u0010\n\u001a\u00020\tH\u0007¢\u0006\u0004\b\u000b\u0010\f¨\u0006\r"}, d2 = {"Lcom/adif/elcanomovil/uiHome/HomeFragmentArgs$Companion;", "", "<init>", "()V", "Landroid/os/Bundle;", "bundle", "Lcom/adif/elcanomovil/uiHome/HomeFragmentArgs;", "fromBundle", "(Landroid/os/Bundle;)Lcom/adif/elcanomovil/uiHome/HomeFragmentArgs;", "Landroidx/lifecycle/n0;", "savedStateHandle", "fromSavedStateHandle", "(Landroidx/lifecycle/n0;)Lcom/adif/elcanomovil/uiHome/HomeFragmentArgs;", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
public final HomeFragmentArgs fromBundle(Bundle bundle) {
|
||||
Intrinsics.checkNotNullParameter(bundle, "bundle");
|
||||
bundle.setClassLoader(HomeFragmentArgs.class.getClassLoader());
|
||||
return new HomeFragmentArgs(bundle.containsKey(NavArguments.ARG_FOCUS_FAVOURITES) ? bundle.getBoolean(NavArguments.ARG_FOCUS_FAVOURITES) : false);
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
public final HomeFragmentArgs fromSavedStateHandle(n0 savedStateHandle) {
|
||||
Boolean bool;
|
||||
Intrinsics.checkNotNullParameter(savedStateHandle, "savedStateHandle");
|
||||
if (savedStateHandle.b(NavArguments.ARG_FOCUS_FAVOURITES)) {
|
||||
bool = (Boolean) savedStateHandle.c(NavArguments.ARG_FOCUS_FAVOURITES);
|
||||
if (bool == null) {
|
||||
throw new IllegalArgumentException("Argument \"focusFavourites\" of type boolean does not support null values");
|
||||
}
|
||||
} else {
|
||||
bool = Boolean.FALSE;
|
||||
}
|
||||
return new HomeFragmentArgs(bool.booleanValue());
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
public HomeFragmentArgs() {
|
||||
this(false, 1, null);
|
||||
}
|
||||
|
||||
public static /* synthetic */ HomeFragmentArgs copy$default(HomeFragmentArgs homeFragmentArgs, boolean z3, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
z3 = homeFragmentArgs.focusFavourites;
|
||||
}
|
||||
return homeFragmentArgs.copy(z3);
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
public static final HomeFragmentArgs fromBundle(Bundle bundle) {
|
||||
return INSTANCE.fromBundle(bundle);
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
public static final HomeFragmentArgs fromSavedStateHandle(n0 n0Var) {
|
||||
return INSTANCE.fromSavedStateHandle(n0Var);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final boolean getFocusFavourites() {
|
||||
return this.focusFavourites;
|
||||
}
|
||||
|
||||
public final HomeFragmentArgs copy(boolean focusFavourites) {
|
||||
return new HomeFragmentArgs(focusFavourites);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
return (other instanceof HomeFragmentArgs) && this.focusFavourites == ((HomeFragmentArgs) other).focusFavourites;
|
||||
}
|
||||
|
||||
public final boolean getFocusFavourites() {
|
||||
return this.focusFavourites;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return Boolean.hashCode(this.focusFavourites);
|
||||
}
|
||||
|
||||
public final Bundle toBundle() {
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putBoolean(NavArguments.ARG_FOCUS_FAVOURITES, this.focusFavourites);
|
||||
return bundle;
|
||||
}
|
||||
|
||||
public final n0 toSavedStateHandle() {
|
||||
n0 n0Var = new n0();
|
||||
n0Var.d(Boolean.valueOf(this.focusFavourites), NavArguments.ARG_FOCUS_FAVOURITES);
|
||||
return n0Var;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "HomeFragmentArgs(focusFavourites=" + this.focusFavourites + ')';
|
||||
}
|
||||
|
||||
public HomeFragmentArgs(boolean z3) {
|
||||
this.focusFavourites = z3;
|
||||
}
|
||||
|
||||
public /* synthetic */ HomeFragmentArgs(boolean z3, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this((i & 1) != 0 ? false : z3);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,229 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.commonViews.data.StationViewEntity;
|
||||
import com.adif.elcanomovil.uiHome.data.UserFavoriteVO;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b6\u0018\u00002\u00020\u0001:\u0003\u0003\u0004\u0005B\u0007\b\u0004¢\u0006\u0002\u0010\u0002\u0082\u0001\u0003\u0006\u0007\b¨\u0006\t"}, d2 = {"Lcom/adif/elcanomovil/uiHome/HomeFragmentBottomSheetViewState;", "", "()V", "Hidden", "NearestStationShown", "StationSelected", "Lcom/adif/elcanomovil/uiHome/HomeFragmentBottomSheetViewState$Hidden;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentBottomSheetViewState$NearestStationShown;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentBottomSheetViewState$StationSelected;", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public abstract class HomeFragmentBottomSheetViewState {
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\bÆ\n\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0013\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006HÖ\u0003J\t\u0010\u0007\u001a\u00020\bHÖ\u0001J\t\u0010\t\u001a\u00020\nHÖ\u0001¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/uiHome/HomeFragmentBottomSheetViewState$Hidden;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentBottomSheetViewState;", "()V", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final /* data */ class Hidden extends HomeFragmentBottomSheetViewState {
|
||||
public static final Hidden INSTANCE = new Hidden();
|
||||
|
||||
private Hidden() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return this == other || (other instanceof Hidden);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return -778207756;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "Hidden";
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0016\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0086\b\u0018\u00002\u00020\u0001BA\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0005\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0005\u0012\b\u0010\u0007\u001a\u0004\u0018\u00010\u0005\u0012\f\u0010\b\u001a\b\u0012\u0004\u0012\u00020\n0\t\u0012\u0006\u0010\u000b\u001a\u00020\f¢\u0006\u0002\u0010\rJ\t\u0010\u001a\u001a\u00020\u0003HÆ\u0003J\u000b\u0010\u001b\u001a\u0004\u0018\u00010\u0005HÆ\u0003J\u000b\u0010\u001c\u001a\u0004\u0018\u00010\u0005HÆ\u0003J\u000b\u0010\u001d\u001a\u0004\u0018\u00010\u0005HÆ\u0003J\u000f\u0010\u001e\u001a\b\u0012\u0004\u0012\u00020\n0\tHÆ\u0003J\t\u0010\u001f\u001a\u00020\fHÆ\u0003JQ\u0010 \u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u00052\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u00052\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\u00052\u000e\b\u0002\u0010\b\u001a\b\u0012\u0004\u0012\u00020\n0\t2\b\b\u0002\u0010\u000b\u001a\u00020\fHÆ\u0001J\u0013\u0010!\u001a\u00020\f2\b\u0010\"\u001a\u0004\u0018\u00010#HÖ\u0003J\t\u0010$\u001a\u00020%HÖ\u0001J\t\u0010&\u001a\u00020'HÖ\u0001R\u0017\u0010\b\u001a\b\u0012\u0004\u0012\u00020\n0\t¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\u000fR\u0011\u0010\u000b\u001a\u00020\f¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\u0011R\u0013\u0010\u0006\u001a\u0004\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0012\u0010\u0013R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0014\u0010\u0015R\u0013\u0010\u0004\u001a\u0004\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0016\u0010\u0013R\u0011\u0010\u0017\u001a\u00020\f8F¢\u0006\u0006\u001a\u0004\b\u0018\u0010\u0011R\u0013\u0010\u0007\u001a\u0004\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0019\u0010\u0013¨\u0006("}, d2 = {"Lcom/adif/elcanomovil/uiHome/HomeFragmentBottomSheetViewState$NearestStationShown;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentBottomSheetViewState;", "locationStatus", "Lcom/adif/elcanomovil/uiHome/LocationStatus;", "nearestStation", "Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;", "homeStation", "workStation", "favoriteEntries", "", "Lcom/adif/elcanomovil/uiHome/data/UserFavoriteVO;", "fullyExpanded", "", "(Lcom/adif/elcanomovil/uiHome/LocationStatus;Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;Ljava/util/List;Z)V", "getFavoriteEntries", "()Ljava/util/List;", "getFullyExpanded", "()Z", "getHomeStation", "()Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;", "getLocationStatus", "()Lcom/adif/elcanomovil/uiHome/LocationStatus;", "getNearestStation", "showLoading", "getShowLoading", "getWorkStation", "component1", "component2", "component3", "component4", "component5", "component6", "copy", "equals", "other", "", "hashCode", "", "toString", "", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final /* data */ class NearestStationShown extends HomeFragmentBottomSheetViewState {
|
||||
private final List<UserFavoriteVO> favoriteEntries;
|
||||
private final boolean fullyExpanded;
|
||||
private final StationViewEntity homeStation;
|
||||
private final LocationStatus locationStatus;
|
||||
private final StationViewEntity nearestStation;
|
||||
private final StationViewEntity workStation;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public NearestStationShown(LocationStatus locationStatus, StationViewEntity stationViewEntity, StationViewEntity stationViewEntity2, StationViewEntity stationViewEntity3, List<UserFavoriteVO> favoriteEntries, boolean z3) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(locationStatus, "locationStatus");
|
||||
Intrinsics.checkNotNullParameter(favoriteEntries, "favoriteEntries");
|
||||
this.locationStatus = locationStatus;
|
||||
this.nearestStation = stationViewEntity;
|
||||
this.homeStation = stationViewEntity2;
|
||||
this.workStation = stationViewEntity3;
|
||||
this.favoriteEntries = favoriteEntries;
|
||||
this.fullyExpanded = z3;
|
||||
}
|
||||
|
||||
public static /* synthetic */ NearestStationShown copy$default(NearestStationShown nearestStationShown, LocationStatus locationStatus, StationViewEntity stationViewEntity, StationViewEntity stationViewEntity2, StationViewEntity stationViewEntity3, List list, boolean z3, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
locationStatus = nearestStationShown.locationStatus;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
stationViewEntity = nearestStationShown.nearestStation;
|
||||
}
|
||||
if ((i & 4) != 0) {
|
||||
stationViewEntity2 = nearestStationShown.homeStation;
|
||||
}
|
||||
if ((i & 8) != 0) {
|
||||
stationViewEntity3 = nearestStationShown.workStation;
|
||||
}
|
||||
if ((i & 16) != 0) {
|
||||
list = nearestStationShown.favoriteEntries;
|
||||
}
|
||||
if ((i & 32) != 0) {
|
||||
z3 = nearestStationShown.fullyExpanded;
|
||||
}
|
||||
List list2 = list;
|
||||
boolean z4 = z3;
|
||||
return nearestStationShown.copy(locationStatus, stationViewEntity, stationViewEntity2, stationViewEntity3, list2, z4);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final LocationStatus getLocationStatus() {
|
||||
return this.locationStatus;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final StationViewEntity getNearestStation() {
|
||||
return this.nearestStation;
|
||||
}
|
||||
|
||||
/* renamed from: component3, reason: from getter */
|
||||
public final StationViewEntity getHomeStation() {
|
||||
return this.homeStation;
|
||||
}
|
||||
|
||||
/* renamed from: component4, reason: from getter */
|
||||
public final StationViewEntity getWorkStation() {
|
||||
return this.workStation;
|
||||
}
|
||||
|
||||
public final List<UserFavoriteVO> component5() {
|
||||
return this.favoriteEntries;
|
||||
}
|
||||
|
||||
/* renamed from: component6, reason: from getter */
|
||||
public final boolean getFullyExpanded() {
|
||||
return this.fullyExpanded;
|
||||
}
|
||||
|
||||
public final NearestStationShown copy(LocationStatus locationStatus, StationViewEntity nearestStation, StationViewEntity homeStation, StationViewEntity workStation, List<UserFavoriteVO> favoriteEntries, boolean fullyExpanded) {
|
||||
Intrinsics.checkNotNullParameter(locationStatus, "locationStatus");
|
||||
Intrinsics.checkNotNullParameter(favoriteEntries, "favoriteEntries");
|
||||
return new NearestStationShown(locationStatus, nearestStation, homeStation, workStation, favoriteEntries, fullyExpanded);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof NearestStationShown)) {
|
||||
return false;
|
||||
}
|
||||
NearestStationShown nearestStationShown = (NearestStationShown) other;
|
||||
return this.locationStatus == nearestStationShown.locationStatus && Intrinsics.areEqual(this.nearestStation, nearestStationShown.nearestStation) && Intrinsics.areEqual(this.homeStation, nearestStationShown.homeStation) && Intrinsics.areEqual(this.workStation, nearestStationShown.workStation) && Intrinsics.areEqual(this.favoriteEntries, nearestStationShown.favoriteEntries) && this.fullyExpanded == nearestStationShown.fullyExpanded;
|
||||
}
|
||||
|
||||
public final List<UserFavoriteVO> getFavoriteEntries() {
|
||||
return this.favoriteEntries;
|
||||
}
|
||||
|
||||
public final boolean getFullyExpanded() {
|
||||
return this.fullyExpanded;
|
||||
}
|
||||
|
||||
public final StationViewEntity getHomeStation() {
|
||||
return this.homeStation;
|
||||
}
|
||||
|
||||
public final LocationStatus getLocationStatus() {
|
||||
return this.locationStatus;
|
||||
}
|
||||
|
||||
public final StationViewEntity getNearestStation() {
|
||||
return this.nearestStation;
|
||||
}
|
||||
|
||||
public final boolean getShowLoading() {
|
||||
return this.nearestStation == null && this.locationStatus.isEnabled();
|
||||
}
|
||||
|
||||
public final StationViewEntity getWorkStation() {
|
||||
return this.workStation;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int hashCode = this.locationStatus.hashCode() * 31;
|
||||
StationViewEntity stationViewEntity = this.nearestStation;
|
||||
int hashCode2 = (hashCode + (stationViewEntity == null ? 0 : stationViewEntity.hashCode())) * 31;
|
||||
StationViewEntity stationViewEntity2 = this.homeStation;
|
||||
int hashCode3 = (hashCode2 + (stationViewEntity2 == null ? 0 : stationViewEntity2.hashCode())) * 31;
|
||||
StationViewEntity stationViewEntity3 = this.workStation;
|
||||
int hashCode4 = stationViewEntity3 != null ? stationViewEntity3.hashCode() : 0;
|
||||
return Boolean.hashCode(this.fullyExpanded) + ((this.favoriteEntries.hashCode() + ((hashCode3 + hashCode4) * 31)) * 31);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "NearestStationShown(locationStatus=" + this.locationStatus + ", nearestStation=" + this.nearestStation + ", homeStation=" + this.homeStation + ", workStation=" + this.workStation + ", favoriteEntries=" + this.favoriteEntries + ", fullyExpanded=" + this.fullyExpanded + ')';
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0086\b\u0018\u00002\u00020\u0001B\u000f\u0012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0003¢\u0006\u0002\u0010\u0004J\u000b\u0010\u0007\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u0015\u0010\b\u001a\u00020\u00002\n\b\u0002\u0010\u0002\u001a\u0004\u0018\u00010\u0003HÆ\u0001J\u0013\u0010\t\u001a\u00020\n2\b\u0010\u000b\u001a\u0004\u0018\u00010\fHÖ\u0003J\t\u0010\r\u001a\u00020\u000eHÖ\u0001J\t\u0010\u000f\u001a\u00020\u0010HÖ\u0001R\u0013\u0010\u0002\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0011"}, d2 = {"Lcom/adif/elcanomovil/uiHome/HomeFragmentBottomSheetViewState$StationSelected;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentBottomSheetViewState;", "selectedStation", "Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;", "(Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;)V", "getSelectedStation", "()Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;", "component1", "copy", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final /* data */ class StationSelected extends HomeFragmentBottomSheetViewState {
|
||||
private final StationViewEntity selectedStation;
|
||||
|
||||
public StationSelected(StationViewEntity stationViewEntity) {
|
||||
super(null);
|
||||
this.selectedStation = stationViewEntity;
|
||||
}
|
||||
|
||||
public static /* synthetic */ StationSelected copy$default(StationSelected stationSelected, StationViewEntity stationViewEntity, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
stationViewEntity = stationSelected.selectedStation;
|
||||
}
|
||||
return stationSelected.copy(stationViewEntity);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final StationViewEntity getSelectedStation() {
|
||||
return this.selectedStation;
|
||||
}
|
||||
|
||||
public final StationSelected copy(StationViewEntity selectedStation) {
|
||||
return new StationSelected(selectedStation);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
return (other instanceof StationSelected) && Intrinsics.areEqual(this.selectedStation, ((StationSelected) other).selectedStation);
|
||||
}
|
||||
|
||||
public final StationViewEntity getSelectedStation() {
|
||||
return this.selectedStation;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
StationViewEntity stationViewEntity = this.selectedStation;
|
||||
if (stationViewEntity == null) {
|
||||
return 0;
|
||||
}
|
||||
return stationViewEntity.hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "StationSelected(selectedStation=" + this.selectedStation + ')';
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ HomeFragmentBottomSheetViewState(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
private HomeFragmentBottomSheetViewState() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,441 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.commonViews.data.StationViewEntity;
|
||||
import com.adif.elcanomovil.uiHome.data.UserFavoriteVO;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000>\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\r\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b6\u0018\u00002\u00020\u0001:\f\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000eB\u0007\b\u0004¢\u0006\u0002\u0010\u0002\u0082\u0001\f\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a¨\u0006\u001b"}, d2 = {"Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction;", "", "()V", "BottomSheetHidden", "FavoriteTapped", "HomeStationSet", "LocationPermissionGranted", "MapTapped", "OpenBottomSheet", "SetHomeStationTapped", "SetWorkStationTapped", "ShowFavorites", "StationDetailTapped", "StationSelected", "WorkStationSet", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$BottomSheetHidden;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$FavoriteTapped;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$HomeStationSet;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$LocationPermissionGranted;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$MapTapped;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$OpenBottomSheet;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$SetHomeStationTapped;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$SetWorkStationTapped;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$ShowFavorites;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$StationDetailTapped;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$StationSelected;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$WorkStationSet;", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public abstract class HomeFragmentViewAction {
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\bÆ\n\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0013\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006HÖ\u0003J\t\u0010\u0007\u001a\u00020\bHÖ\u0001J\t\u0010\t\u001a\u00020\nHÖ\u0001¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$BottomSheetHidden;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction;", "()V", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final /* data */ class BottomSheetHidden extends HomeFragmentViewAction {
|
||||
public static final BottomSheetHidden INSTANCE = new BottomSheetHidden();
|
||||
|
||||
private BottomSheetHidden() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return this == other || (other instanceof BottomSheetHidden);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return 473365079;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "BottomSheetHidden";
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0086\b\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\t\u0010\u0007\u001a\u00020\u0003HÆ\u0003J\u0013\u0010\b\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\t\u001a\u00020\n2\b\u0010\u000b\u001a\u0004\u0018\u00010\fHÖ\u0003J\t\u0010\r\u001a\u00020\u000eHÖ\u0001J\t\u0010\u000f\u001a\u00020\u0010HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0011"}, d2 = {"Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$FavoriteTapped;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction;", "favorite", "Lcom/adif/elcanomovil/uiHome/data/UserFavoriteVO;", "(Lcom/adif/elcanomovil/uiHome/data/UserFavoriteVO;)V", "getFavorite", "()Lcom/adif/elcanomovil/uiHome/data/UserFavoriteVO;", "component1", "copy", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final /* data */ class FavoriteTapped extends HomeFragmentViewAction {
|
||||
private final UserFavoriteVO favorite;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public FavoriteTapped(UserFavoriteVO favorite) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(favorite, "favorite");
|
||||
this.favorite = favorite;
|
||||
}
|
||||
|
||||
public static /* synthetic */ FavoriteTapped copy$default(FavoriteTapped favoriteTapped, UserFavoriteVO userFavoriteVO, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
userFavoriteVO = favoriteTapped.favorite;
|
||||
}
|
||||
return favoriteTapped.copy(userFavoriteVO);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final UserFavoriteVO getFavorite() {
|
||||
return this.favorite;
|
||||
}
|
||||
|
||||
public final FavoriteTapped copy(UserFavoriteVO favorite) {
|
||||
Intrinsics.checkNotNullParameter(favorite, "favorite");
|
||||
return new FavoriteTapped(favorite);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
return (other instanceof FavoriteTapped) && Intrinsics.areEqual(this.favorite, ((FavoriteTapped) other).favorite);
|
||||
}
|
||||
|
||||
public final UserFavoriteVO getFavorite() {
|
||||
return this.favorite;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.favorite.hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "FavoriteTapped(favorite=" + this.favorite + ')';
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\t\u0010\u0007\u001a\u00020\u0003HÆ\u0003J\u0013\u0010\b\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\t\u001a\u00020\n2\b\u0010\u000b\u001a\u0004\u0018\u00010\fHÖ\u0003J\t\u0010\r\u001a\u00020\u000eHÖ\u0001J\t\u0010\u000f\u001a\u00020\u0003HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0010"}, d2 = {"Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$HomeStationSet;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction;", "stationId", "", "(Ljava/lang/String;)V", "getStationId", "()Ljava/lang/String;", "component1", "copy", "equals", "", "other", "", "hashCode", "", "toString", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final /* data */ class HomeStationSet extends HomeFragmentViewAction {
|
||||
private final String stationId;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public HomeStationSet(String stationId) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(stationId, "stationId");
|
||||
this.stationId = stationId;
|
||||
}
|
||||
|
||||
public static /* synthetic */ HomeStationSet copy$default(HomeStationSet homeStationSet, String str, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str = homeStationSet.stationId;
|
||||
}
|
||||
return homeStationSet.copy(str);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final String getStationId() {
|
||||
return this.stationId;
|
||||
}
|
||||
|
||||
public final HomeStationSet copy(String stationId) {
|
||||
Intrinsics.checkNotNullParameter(stationId, "stationId");
|
||||
return new HomeStationSet(stationId);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
return (other instanceof HomeStationSet) && Intrinsics.areEqual(this.stationId, ((HomeStationSet) other).stationId);
|
||||
}
|
||||
|
||||
public final String getStationId() {
|
||||
return this.stationId;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.stationId.hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return com.google.android.gms.measurement.internal.a.n(new StringBuilder("HomeStationSet(stationId="), this.stationId, ')');
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\bÆ\n\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0013\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006HÖ\u0003J\t\u0010\u0007\u001a\u00020\bHÖ\u0001J\t\u0010\t\u001a\u00020\nHÖ\u0001¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$LocationPermissionGranted;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction;", "()V", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final /* data */ class LocationPermissionGranted extends HomeFragmentViewAction {
|
||||
public static final LocationPermissionGranted INSTANCE = new LocationPermissionGranted();
|
||||
|
||||
private LocationPermissionGranted() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return this == other || (other instanceof LocationPermissionGranted);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return -1252168880;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "LocationPermissionGranted";
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\bÆ\n\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0013\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006HÖ\u0003J\t\u0010\u0007\u001a\u00020\bHÖ\u0001J\t\u0010\t\u001a\u00020\nHÖ\u0001¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$MapTapped;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction;", "()V", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final /* data */ class MapTapped extends HomeFragmentViewAction {
|
||||
public static final MapTapped INSTANCE = new MapTapped();
|
||||
|
||||
private MapTapped() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return this == other || (other instanceof MapTapped);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return 1011790241;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "MapTapped";
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\bÆ\n\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0013\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006HÖ\u0003J\t\u0010\u0007\u001a\u00020\bHÖ\u0001J\t\u0010\t\u001a\u00020\nHÖ\u0001¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$OpenBottomSheet;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction;", "()V", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final /* data */ class OpenBottomSheet extends HomeFragmentViewAction {
|
||||
public static final OpenBottomSheet INSTANCE = new OpenBottomSheet();
|
||||
|
||||
private OpenBottomSheet() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return this == other || (other instanceof OpenBottomSheet);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return -1516250845;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "OpenBottomSheet";
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\bÆ\n\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0013\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006HÖ\u0003J\t\u0010\u0007\u001a\u00020\bHÖ\u0001J\t\u0010\t\u001a\u00020\nHÖ\u0001¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$SetHomeStationTapped;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction;", "()V", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final /* data */ class SetHomeStationTapped extends HomeFragmentViewAction {
|
||||
public static final SetHomeStationTapped INSTANCE = new SetHomeStationTapped();
|
||||
|
||||
private SetHomeStationTapped() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return this == other || (other instanceof SetHomeStationTapped);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return -805405242;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "SetHomeStationTapped";
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\bÆ\n\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0013\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006HÖ\u0003J\t\u0010\u0007\u001a\u00020\bHÖ\u0001J\t\u0010\t\u001a\u00020\nHÖ\u0001¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$SetWorkStationTapped;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction;", "()V", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final /* data */ class SetWorkStationTapped extends HomeFragmentViewAction {
|
||||
public static final SetWorkStationTapped INSTANCE = new SetWorkStationTapped();
|
||||
|
||||
private SetWorkStationTapped() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return this == other || (other instanceof SetWorkStationTapped);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return -1771156268;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "SetWorkStationTapped";
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\bÆ\n\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0013\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006HÖ\u0003J\t\u0010\u0007\u001a\u00020\bHÖ\u0001J\t\u0010\t\u001a\u00020\nHÖ\u0001¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$ShowFavorites;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction;", "()V", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final /* data */ class ShowFavorites extends HomeFragmentViewAction {
|
||||
public static final ShowFavorites INSTANCE = new ShowFavorites();
|
||||
|
||||
private ShowFavorites() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return this == other || (other instanceof ShowFavorites);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return 1619112435;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "ShowFavorites";
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\t\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001B\u0017\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0005¢\u0006\u0002\u0010\u0006J\t\u0010\u000b\u001a\u00020\u0003HÆ\u0003J\u000b\u0010\f\u001a\u0004\u0018\u00010\u0005HÆ\u0003J\u001f\u0010\r\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u0005HÆ\u0001J\u0013\u0010\u000e\u001a\u00020\u000f2\b\u0010\u0010\u001a\u0004\u0018\u00010\u0011HÖ\u0003J\t\u0010\u0012\u001a\u00020\u0013HÖ\u0001J\t\u0010\u0014\u001a\u00020\u0005HÖ\u0001R\u0013\u0010\u0004\u001a\u0004\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\n¨\u0006\u0015"}, d2 = {"Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$StationDetailTapped;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction;", "stationType", "Lcom/adif/elcanomovil/commonViews/data/StationViewEntity$Type;", "stationId", "", "(Lcom/adif/elcanomovil/commonViews/data/StationViewEntity$Type;Ljava/lang/String;)V", "getStationId", "()Ljava/lang/String;", "getStationType", "()Lcom/adif/elcanomovil/commonViews/data/StationViewEntity$Type;", "component1", "component2", "copy", "equals", "", "other", "", "hashCode", "", "toString", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final /* data */ class StationDetailTapped extends HomeFragmentViewAction {
|
||||
private final String stationId;
|
||||
private final StationViewEntity.Type stationType;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public StationDetailTapped(StationViewEntity.Type stationType, String str) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(stationType, "stationType");
|
||||
this.stationType = stationType;
|
||||
this.stationId = str;
|
||||
}
|
||||
|
||||
public static /* synthetic */ StationDetailTapped copy$default(StationDetailTapped stationDetailTapped, StationViewEntity.Type type, String str, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
type = stationDetailTapped.stationType;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
str = stationDetailTapped.stationId;
|
||||
}
|
||||
return stationDetailTapped.copy(type, str);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final StationViewEntity.Type getStationType() {
|
||||
return this.stationType;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final String getStationId() {
|
||||
return this.stationId;
|
||||
}
|
||||
|
||||
public final StationDetailTapped copy(StationViewEntity.Type stationType, String stationId) {
|
||||
Intrinsics.checkNotNullParameter(stationType, "stationType");
|
||||
return new StationDetailTapped(stationType, stationId);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof StationDetailTapped)) {
|
||||
return false;
|
||||
}
|
||||
StationDetailTapped stationDetailTapped = (StationDetailTapped) other;
|
||||
return this.stationType == stationDetailTapped.stationType && Intrinsics.areEqual(this.stationId, stationDetailTapped.stationId);
|
||||
}
|
||||
|
||||
public final String getStationId() {
|
||||
return this.stationId;
|
||||
}
|
||||
|
||||
public final StationViewEntity.Type getStationType() {
|
||||
return this.stationType;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int hashCode = this.stationType.hashCode() * 31;
|
||||
String str = this.stationId;
|
||||
return hashCode + (str == null ? 0 : str.hashCode());
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("StationDetailTapped(stationType=");
|
||||
sb.append(this.stationType);
|
||||
sb.append(", stationId=");
|
||||
return com.google.android.gms.measurement.internal.a.n(sb, this.stationId, ')');
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0086\b\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\t\u0010\u0007\u001a\u00020\u0003HÆ\u0003J\u0013\u0010\b\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\t\u001a\u00020\n2\b\u0010\u000b\u001a\u0004\u0018\u00010\fHÖ\u0003J\t\u0010\r\u001a\u00020\u000eHÖ\u0001J\t\u0010\u000f\u001a\u00020\u0010HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0011"}, d2 = {"Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$StationSelected;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction;", "station", "Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;", "(Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;)V", "getStation", "()Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;", "component1", "copy", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final /* data */ class StationSelected extends HomeFragmentViewAction {
|
||||
private final StationViewEntity station;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public StationSelected(StationViewEntity station) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(station, "station");
|
||||
this.station = station;
|
||||
}
|
||||
|
||||
public static /* synthetic */ StationSelected copy$default(StationSelected stationSelected, StationViewEntity stationViewEntity, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
stationViewEntity = stationSelected.station;
|
||||
}
|
||||
return stationSelected.copy(stationViewEntity);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final StationViewEntity getStation() {
|
||||
return this.station;
|
||||
}
|
||||
|
||||
public final StationSelected copy(StationViewEntity station) {
|
||||
Intrinsics.checkNotNullParameter(station, "station");
|
||||
return new StationSelected(station);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
return (other instanceof StationSelected) && Intrinsics.areEqual(this.station, ((StationSelected) other).station);
|
||||
}
|
||||
|
||||
public final StationViewEntity getStation() {
|
||||
return this.station;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.station.hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "StationSelected(station=" + this.station + ')';
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\t\u0010\u0007\u001a\u00020\u0003HÆ\u0003J\u0013\u0010\b\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\t\u001a\u00020\n2\b\u0010\u000b\u001a\u0004\u0018\u00010\fHÖ\u0003J\t\u0010\r\u001a\u00020\u000eHÖ\u0001J\t\u0010\u000f\u001a\u00020\u0003HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0010"}, d2 = {"Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction$WorkStationSet;", "Lcom/adif/elcanomovil/uiHome/HomeFragmentViewAction;", "stationId", "", "(Ljava/lang/String;)V", "getStationId", "()Ljava/lang/String;", "component1", "copy", "equals", "", "other", "", "hashCode", "", "toString", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final /* data */ class WorkStationSet extends HomeFragmentViewAction {
|
||||
private final String stationId;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public WorkStationSet(String stationId) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(stationId, "stationId");
|
||||
this.stationId = stationId;
|
||||
}
|
||||
|
||||
public static /* synthetic */ WorkStationSet copy$default(WorkStationSet workStationSet, String str, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str = workStationSet.stationId;
|
||||
}
|
||||
return workStationSet.copy(str);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final String getStationId() {
|
||||
return this.stationId;
|
||||
}
|
||||
|
||||
public final WorkStationSet copy(String stationId) {
|
||||
Intrinsics.checkNotNullParameter(stationId, "stationId");
|
||||
return new WorkStationSet(stationId);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
return (other instanceof WorkStationSet) && Intrinsics.areEqual(this.stationId, ((WorkStationSet) other).stationId);
|
||||
}
|
||||
|
||||
public final String getStationId() {
|
||||
return this.stationId;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.stationId.hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return com.google.android.gms.measurement.internal.a.n(new StringBuilder("WorkStationSet(stationId="), this.stationId, ')');
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ HomeFragmentViewAction(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
private HomeFragmentViewAction() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0086\b\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\t\u0010\u000b\u001a\u00020\u0003HÆ\u0003J\t\u0010\f\u001a\u00020\u0005HÆ\u0003J\u001d\u0010\r\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u0005HÆ\u0001J\u0013\u0010\u000e\u001a\u00020\u000f2\b\u0010\u0010\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u0011\u001a\u00020\u0012HÖ\u0001J\t\u0010\u0013\u001a\u00020\u0014HÖ\u0001R\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\n¨\u0006\u0015"}, d2 = {"Lcom/adif/elcanomovil/uiHome/HomeFragmentViewState;", "", "mapViewState", "Lcom/adif/elcanomovil/uiHome/MapViewState;", "bottomSheetViewState", "Lcom/adif/elcanomovil/uiHome/HomeFragmentBottomSheetViewState;", "(Lcom/adif/elcanomovil/uiHome/MapViewState;Lcom/adif/elcanomovil/uiHome/HomeFragmentBottomSheetViewState;)V", "getBottomSheetViewState", "()Lcom/adif/elcanomovil/uiHome/HomeFragmentBottomSheetViewState;", "getMapViewState", "()Lcom/adif/elcanomovil/uiHome/MapViewState;", "component1", "component2", "copy", "equals", "", "other", "hashCode", "", "toString", "", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final /* data */ class HomeFragmentViewState {
|
||||
private final HomeFragmentBottomSheetViewState bottomSheetViewState;
|
||||
private final MapViewState mapViewState;
|
||||
|
||||
public HomeFragmentViewState(MapViewState mapViewState, HomeFragmentBottomSheetViewState bottomSheetViewState) {
|
||||
Intrinsics.checkNotNullParameter(mapViewState, "mapViewState");
|
||||
Intrinsics.checkNotNullParameter(bottomSheetViewState, "bottomSheetViewState");
|
||||
this.mapViewState = mapViewState;
|
||||
this.bottomSheetViewState = bottomSheetViewState;
|
||||
}
|
||||
|
||||
public static /* synthetic */ HomeFragmentViewState copy$default(HomeFragmentViewState homeFragmentViewState, MapViewState mapViewState, HomeFragmentBottomSheetViewState homeFragmentBottomSheetViewState, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
mapViewState = homeFragmentViewState.mapViewState;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
homeFragmentBottomSheetViewState = homeFragmentViewState.bottomSheetViewState;
|
||||
}
|
||||
return homeFragmentViewState.copy(mapViewState, homeFragmentBottomSheetViewState);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final MapViewState getMapViewState() {
|
||||
return this.mapViewState;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final HomeFragmentBottomSheetViewState getBottomSheetViewState() {
|
||||
return this.bottomSheetViewState;
|
||||
}
|
||||
|
||||
public final HomeFragmentViewState copy(MapViewState mapViewState, HomeFragmentBottomSheetViewState bottomSheetViewState) {
|
||||
Intrinsics.checkNotNullParameter(mapViewState, "mapViewState");
|
||||
Intrinsics.checkNotNullParameter(bottomSheetViewState, "bottomSheetViewState");
|
||||
return new HomeFragmentViewState(mapViewState, bottomSheetViewState);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof HomeFragmentViewState)) {
|
||||
return false;
|
||||
}
|
||||
HomeFragmentViewState homeFragmentViewState = (HomeFragmentViewState) other;
|
||||
return Intrinsics.areEqual(this.mapViewState, homeFragmentViewState.mapViewState) && Intrinsics.areEqual(this.bottomSheetViewState, homeFragmentViewState.bottomSheetViewState);
|
||||
}
|
||||
|
||||
public final HomeFragmentBottomSheetViewState getBottomSheetViewState() {
|
||||
return this.bottomSheetViewState;
|
||||
}
|
||||
|
||||
public final MapViewState getMapViewState() {
|
||||
return this.mapViewState;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.bottomSheetViewState.hashCode() + (this.mapViewState.hashCode() * 31);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "HomeFragmentViewState(mapViewState=" + this.mapViewState + ", bottomSheetViewState=" + this.bottomSheetViewState + ')';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.components.FragmentComponent;
|
||||
import dagger.hilt.codegen.OriginatingElement;
|
||||
import dagger.hilt.internal.GeneratedEntryPoint;
|
||||
|
||||
@OriginatingElement(topLevelClass = HomeFragment.class)
|
||||
@GeneratedEntryPoint
|
||||
@InstallIn({FragmentComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public interface HomeFragment_GeneratedInjector {
|
||||
void injectHomeFragment(HomeFragment homeFragment);
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.DataType;
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final /* synthetic */ class HomeViewModel$onUserFavoritePressed$1$WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[DataType.values().length];
|
||||
try {
|
||||
iArr[DataType.INFO.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[DataType.DEPARTURES.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[DataType.ARRIVALS.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
try {
|
||||
iArr[DataType.ROUTE.ordinal()] = 4;
|
||||
} catch (NoSuchFieldError unused4) {
|
||||
}
|
||||
try {
|
||||
iArr[DataType.COMMERCIAL.ordinal()] = 5;
|
||||
} catch (NoSuchFieldError unused5) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,66 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import android.content.Context;
|
||||
import c1.C0284d;
|
||||
import com.adif.elcanomovil.domain.providers.LocationStatusProvider;
|
||||
import com.adif.elcanomovil.domain.usecases.favorites.GetRelationStationsFavoritesUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.favorites.GetTrainsFavoritesUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetClosestStationUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetHomeStationUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetWorkStationUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.SetHomeStationUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.SetWorkStationUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.tabs.TabDataHolder;
|
||||
import com.adif.elcanomovil.uiHome.mappers.UserFavoriteVOMapper;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.qualifiers.ApplicationContext"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class HomeViewModel_Factory implements Factory<HomeViewModel> {
|
||||
private final Provider<Context> contextProvider;
|
||||
private final Provider<GetClosestStationUseCase> getClosestStationUseCaseProvider;
|
||||
private final Provider<GetHomeStationUseCase> getHomeStationUseCaseProvider;
|
||||
private final Provider<GetRelationStationsFavoritesUseCase> getRelationFavoritesUseCaseProvider;
|
||||
private final Provider<GetTrainsFavoritesUseCase> getTrainsFavoritesUseCaseProvider;
|
||||
private final Provider<GetWorkStationUseCase> getWorkStationUseCaseProvider;
|
||||
private final Provider<LocationStatusProvider> locationStatusProvider;
|
||||
private final Provider<C0284d> permissionHelperProvider;
|
||||
private final Provider<SetHomeStationUseCase> setHomeStationUseCaseProvider;
|
||||
private final Provider<SetWorkStationUseCase> setWorkStationUseCaseProvider;
|
||||
private final Provider<TabDataHolder> tabDataHolderProvider;
|
||||
private final Provider<UserFavoriteVOMapper> userFavoriteVOMapperProvider;
|
||||
|
||||
public HomeViewModel_Factory(Provider<Context> provider, Provider<GetHomeStationUseCase> provider2, Provider<GetWorkStationUseCase> provider3, Provider<GetClosestStationUseCase> provider4, Provider<SetHomeStationUseCase> provider5, Provider<SetWorkStationUseCase> provider6, Provider<GetRelationStationsFavoritesUseCase> provider7, Provider<GetTrainsFavoritesUseCase> provider8, Provider<TabDataHolder> provider9, Provider<C0284d> provider10, Provider<UserFavoriteVOMapper> provider11, Provider<LocationStatusProvider> provider12) {
|
||||
this.contextProvider = provider;
|
||||
this.getHomeStationUseCaseProvider = provider2;
|
||||
this.getWorkStationUseCaseProvider = provider3;
|
||||
this.getClosestStationUseCaseProvider = provider4;
|
||||
this.setHomeStationUseCaseProvider = provider5;
|
||||
this.setWorkStationUseCaseProvider = provider6;
|
||||
this.getRelationFavoritesUseCaseProvider = provider7;
|
||||
this.getTrainsFavoritesUseCaseProvider = provider8;
|
||||
this.tabDataHolderProvider = provider9;
|
||||
this.permissionHelperProvider = provider10;
|
||||
this.userFavoriteVOMapperProvider = provider11;
|
||||
this.locationStatusProvider = provider12;
|
||||
}
|
||||
|
||||
public static HomeViewModel_Factory create(Provider<Context> provider, Provider<GetHomeStationUseCase> provider2, Provider<GetWorkStationUseCase> provider3, Provider<GetClosestStationUseCase> provider4, Provider<SetHomeStationUseCase> provider5, Provider<SetWorkStationUseCase> provider6, Provider<GetRelationStationsFavoritesUseCase> provider7, Provider<GetTrainsFavoritesUseCase> provider8, Provider<TabDataHolder> provider9, Provider<C0284d> provider10, Provider<UserFavoriteVOMapper> provider11, Provider<LocationStatusProvider> provider12) {
|
||||
return new HomeViewModel_Factory(provider, provider2, provider3, provider4, provider5, provider6, provider7, provider8, provider9, provider10, provider11, provider12);
|
||||
}
|
||||
|
||||
public static HomeViewModel newInstance(Context context, GetHomeStationUseCase getHomeStationUseCase, GetWorkStationUseCase getWorkStationUseCase, GetClosestStationUseCase getClosestStationUseCase, SetHomeStationUseCase setHomeStationUseCase, SetWorkStationUseCase setWorkStationUseCase, GetRelationStationsFavoritesUseCase getRelationStationsFavoritesUseCase, GetTrainsFavoritesUseCase getTrainsFavoritesUseCase, TabDataHolder tabDataHolder, C0284d c0284d, UserFavoriteVOMapper userFavoriteVOMapper, LocationStatusProvider locationStatusProvider) {
|
||||
return new HomeViewModel(context, getHomeStationUseCase, getWorkStationUseCase, getClosestStationUseCase, setHomeStationUseCase, setWorkStationUseCase, getRelationStationsFavoritesUseCase, getTrainsFavoritesUseCase, tabDataHolder, c0284d, userFavoriteVOMapper, locationStatusProvider);
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public HomeViewModel get() {
|
||||
return newInstance(this.contextProvider.get(), this.getHomeStationUseCaseProvider.get(), this.getWorkStationUseCaseProvider.get(), this.getClosestStationUseCaseProvider.get(), this.setHomeStationUseCaseProvider.get(), this.setWorkStationUseCaseProvider.get(), this.getRelationFavoritesUseCaseProvider.get(), this.getTrainsFavoritesUseCaseProvider.get(), this.tabDataHolderProvider.get(), this.permissionHelperProvider.get(), this.userFavoriteVOMapperProvider.get(), this.locationStatusProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import androidx.lifecycle.w0;
|
||||
import dagger.Binds;
|
||||
import dagger.Module;
|
||||
import dagger.Provides;
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.components.ActivityRetainedComponent;
|
||||
import dagger.hilt.android.components.ViewModelComponent;
|
||||
import dagger.hilt.android.internal.lifecycle.HiltViewModelMap;
|
||||
import dagger.hilt.codegen.OriginatingElement;
|
||||
import dagger.multibindings.IntoMap;
|
||||
import dagger.multibindings.IntoSet;
|
||||
import dagger.multibindings.StringKey;
|
||||
|
||||
@OriginatingElement(topLevelClass = HomeViewModel.class)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class HomeViewModel_HiltModules {
|
||||
|
||||
@Module
|
||||
@InstallIn({ViewModelComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public static abstract class BindsModule {
|
||||
private BindsModule() {
|
||||
}
|
||||
|
||||
@Binds
|
||||
@StringKey("com.adif.elcanomovil.uiHome.HomeViewModel")
|
||||
@HiltViewModelMap
|
||||
@IntoMap
|
||||
public abstract w0 binds(HomeViewModel homeViewModel);
|
||||
}
|
||||
|
||||
@Module
|
||||
@InstallIn({ActivityRetainedComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class KeyModule {
|
||||
private KeyModule() {
|
||||
}
|
||||
|
||||
@Provides
|
||||
@HiltViewModelMap.KeySet
|
||||
@IntoSet
|
||||
public static String provide() {
|
||||
return "com.adif.elcanomovil.uiHome.HomeViewModel";
|
||||
}
|
||||
}
|
||||
|
||||
private HomeViewModel_HiltModules() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.uiHome.HomeViewModel_HiltModules;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.internal.lifecycle.HiltViewModelMap.KeySet"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class HomeViewModel_HiltModules_KeyModule_ProvideFactory implements Factory<String> {
|
||||
public static HomeViewModel_HiltModules_KeyModule_ProvideFactory create() {
|
||||
return E.f5066a;
|
||||
}
|
||||
|
||||
public static String provide() {
|
||||
return (String) Preconditions.checkNotNullFromProvides(HomeViewModel_HiltModules.KeyModule.provide());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public String get() {
|
||||
return provide();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.enums.EnumEntries;
|
||||
import kotlin.enums.EnumEntriesKt;
|
||||
|
||||
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
|
||||
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0005\b\u0086\u0081\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0011\u0010\u0003\u001a\u00020\u00048F¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0005j\u0002\b\u0006j\u0002\b\u0007j\u0002\b\b¨\u0006\t"}, d2 = {"Lcom/adif/elcanomovil/uiHome/LocationStatus;", "", "(Ljava/lang/String;I)V", "isEnabled", "", "()Z", "ENABLED", "DISABLED", "PERMISSION_DENIED", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class LocationStatus {
|
||||
private static final /* synthetic */ EnumEntries $ENTRIES;
|
||||
private static final /* synthetic */ LocationStatus[] $VALUES;
|
||||
public static final LocationStatus ENABLED = new LocationStatus("ENABLED", 0);
|
||||
public static final LocationStatus DISABLED = new LocationStatus("DISABLED", 1);
|
||||
public static final LocationStatus PERMISSION_DENIED = new LocationStatus("PERMISSION_DENIED", 2);
|
||||
|
||||
private static final /* synthetic */ LocationStatus[] $values() {
|
||||
return new LocationStatus[]{ENABLED, DISABLED, PERMISSION_DENIED};
|
||||
}
|
||||
|
||||
static {
|
||||
LocationStatus[] $values = $values();
|
||||
$VALUES = $values;
|
||||
$ENTRIES = EnumEntriesKt.enumEntries($values);
|
||||
}
|
||||
|
||||
private LocationStatus(String str, int i) {
|
||||
}
|
||||
|
||||
public static EnumEntries<LocationStatus> getEntries() {
|
||||
return $ENTRIES;
|
||||
}
|
||||
|
||||
public static LocationStatus valueOf(String str) {
|
||||
return (LocationStatus) Enum.valueOf(LocationStatus.class, str);
|
||||
}
|
||||
|
||||
public static LocationStatus[] values() {
|
||||
return (LocationStatus[]) $VALUES.clone();
|
||||
}
|
||||
|
||||
public final boolean isEnabled() {
|
||||
return this == ENABLED;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.commonViews.data.StationViewEntity;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0086\b\u0018\u00002\u00020\u0001B\u000f\u0012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0003¢\u0006\u0002\u0010\u0004J\u000b\u0010\u0007\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u0015\u0010\b\u001a\u00020\u00002\n\b\u0002\u0010\u0002\u001a\u0004\u0018\u00010\u0003HÆ\u0001J\u0013\u0010\t\u001a\u00020\n2\b\u0010\u000b\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\f\u001a\u00020\rHÖ\u0001J\t\u0010\u000e\u001a\u00020\u000fHÖ\u0001R\u0013\u0010\u0002\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0010"}, d2 = {"Lcom/adif/elcanomovil/uiHome/MapViewState;", "", "highlightedStation", "Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;", "(Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;)V", "getHighlightedStation", "()Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;", "component1", "copy", "equals", "", "other", "hashCode", "", "toString", "", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final /* data */ class MapViewState {
|
||||
private final StationViewEntity highlightedStation;
|
||||
|
||||
public MapViewState(StationViewEntity stationViewEntity) {
|
||||
this.highlightedStation = stationViewEntity;
|
||||
}
|
||||
|
||||
public static /* synthetic */ MapViewState copy$default(MapViewState mapViewState, StationViewEntity stationViewEntity, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
stationViewEntity = mapViewState.highlightedStation;
|
||||
}
|
||||
return mapViewState.copy(stationViewEntity);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final StationViewEntity getHighlightedStation() {
|
||||
return this.highlightedStation;
|
||||
}
|
||||
|
||||
public final MapViewState copy(StationViewEntity highlightedStation) {
|
||||
return new MapViewState(highlightedStation);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
return (other instanceof MapViewState) && Intrinsics.areEqual(this.highlightedStation, ((MapViewState) other).highlightedStation);
|
||||
}
|
||||
|
||||
public final StationViewEntity getHighlightedStation() {
|
||||
return this.highlightedStation;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
StationViewEntity stationViewEntity = this.highlightedStation;
|
||||
if (stationViewEntity == null) {
|
||||
return 0;
|
||||
}
|
||||
return stationViewEntity.hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "MapViewState(highlightedStation=" + this.highlightedStation + ')';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\b`\u0018\u00002\u00020\u0001J\u0010\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H&¨\u0006\u0006"}, d2 = {"Lcom/adif/elcanomovil/uiHome/OnViewPagerSwipe;", "", "onViewPagerSwipe", "", "swipe", "Lcom/adif/elcanomovil/uiHome/Gestures;", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public interface OnViewPagerSwipe {
|
||||
void onViewPagerSwipe(Gestures swipe);
|
||||
}
|
||||
8507
apk_decompiled/sources/com/adif/elcanomovil/uiHome/R.java
Normal file
8507
apk_decompiled/sources/com/adif/elcanomovil/uiHome/R.java
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,81 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import android.view.GestureDetector;
|
||||
import android.view.MotionEvent;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u00004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0007\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u0002\n\u0000\b\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J(\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\b2\u0006\u0010\n\u001a\u00020\b2\u0006\u0010\u000b\u001a\u00020\bH\u0002J*\u0010\f\u001a\u00020\r2\b\u0010\u000e\u001a\u0004\u0018\u00010\u000f2\u0006\u0010\u0010\u001a\u00020\u000f2\u0006\u0010\u0011\u001a\u00020\b2\u0006\u0010\u0012\u001a\u00020\bH\u0016J\u0010\u0010\u0013\u001a\u00020\r2\u0006\u0010\u0014\u001a\u00020\u000fH\u0016J\u0010\u0010\u0015\u001a\u00020\u00162\b\u0010\u0003\u001a\u0004\u0018\u00010\u0004R\u0010\u0010\u0003\u001a\u0004\u0018\u00010\u0004X\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006\u0017"}, d2 = {"Lcom/adif/elcanomovil/uiHome/SwipeGestureDetector;", "Landroid/view/GestureDetector$SimpleOnGestureListener;", "()V", "onViewPagerSwipe", "Lcom/adif/elcanomovil/uiHome/OnViewPagerSwipe;", "getSlope", "", "x1", "", "y1", "x2", "y2", "onFling", "", "e1", "Landroid/view/MotionEvent;", "e2", "velocityX", "velocityY", "onSingleTapUp", "e", "setViewPagerSwipeListener", "", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class SwipeGestureDetector extends GestureDetector.SimpleOnGestureListener {
|
||||
private OnViewPagerSwipe onViewPagerSwipe;
|
||||
|
||||
private final int getSlope(float x12, float y12, float x22, float y22) {
|
||||
double degrees = Math.toDegrees(Math.atan2(y12 - y22, x22 - x12));
|
||||
if (degrees > 35.0d && degrees <= 160.0d) {
|
||||
return 1;
|
||||
}
|
||||
if (degrees > 160.0d && degrees <= 180.0d) {
|
||||
return 2;
|
||||
}
|
||||
if (degrees < -160.0d && degrees > -180.0d) {
|
||||
return 2;
|
||||
}
|
||||
if (degrees >= -35.0d || degrees < -160.0d) {
|
||||
return (degrees <= -35.0d || degrees > 35.0d) ? 0 : 4;
|
||||
}
|
||||
return 3;
|
||||
}
|
||||
|
||||
@Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener
|
||||
public boolean onFling(MotionEvent e1, MotionEvent e22, float velocityX, float velocityY) {
|
||||
Intrinsics.checkNotNullParameter(e22, "e2");
|
||||
if (e1 == null) {
|
||||
return false;
|
||||
}
|
||||
int slope = getSlope(e1.getX(), e1.getY(), e22.getX(), e22.getY());
|
||||
Gestures gestures = Gestures.SWIPE_TOP;
|
||||
if (slope == gestures.getValue()) {
|
||||
OnViewPagerSwipe onViewPagerSwipe = this.onViewPagerSwipe;
|
||||
if (onViewPagerSwipe != null) {
|
||||
onViewPagerSwipe.onViewPagerSwipe(gestures);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
Gestures gestures2 = Gestures.SWIPE_DOWN;
|
||||
if (slope == gestures2.getValue()) {
|
||||
OnViewPagerSwipe onViewPagerSwipe2 = this.onViewPagerSwipe;
|
||||
if (onViewPagerSwipe2 != null) {
|
||||
onViewPagerSwipe2.onViewPagerSwipe(gestures2);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
Gestures gestures3 = Gestures.SWIPE_LEFT;
|
||||
if (slope == gestures3.getValue()) {
|
||||
OnViewPagerSwipe onViewPagerSwipe3 = this.onViewPagerSwipe;
|
||||
if (onViewPagerSwipe3 != null) {
|
||||
onViewPagerSwipe3.onViewPagerSwipe(gestures3);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
Gestures gestures4 = Gestures.SWIPE_RIGHT;
|
||||
if (slope != gestures4.getValue()) {
|
||||
return false;
|
||||
}
|
||||
OnViewPagerSwipe onViewPagerSwipe4 = this.onViewPagerSwipe;
|
||||
if (onViewPagerSwipe4 != null) {
|
||||
onViewPagerSwipe4.onViewPagerSwipe(gestures4);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener
|
||||
public boolean onSingleTapUp(MotionEvent e4) {
|
||||
Intrinsics.checkNotNullParameter(e4, "e");
|
||||
return true;
|
||||
}
|
||||
|
||||
public final void setViewPagerSwipeListener(OnViewPagerSwipe onViewPagerSwipe) {
|
||||
this.onViewPagerSwipe = onViewPagerSwipe;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.adif.elcanomovil.uiHome.adapters;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.DataType;
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final /* synthetic */ class UserFavoritesAdapter$UserFavoritesViewHolder$WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[DataType.values().length];
|
||||
try {
|
||||
iArr[DataType.DEPARTURES.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[DataType.ARRIVALS.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[DataType.ROUTE.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
try {
|
||||
iArr[DataType.HOME.ordinal()] = 4;
|
||||
} catch (NoSuchFieldError unused4) {
|
||||
}
|
||||
try {
|
||||
iArr[DataType.WORK.ordinal()] = 5;
|
||||
} catch (NoSuchFieldError unused5) {
|
||||
}
|
||||
try {
|
||||
iArr[DataType.STATION.ordinal()] = 6;
|
||||
} catch (NoSuchFieldError unused6) {
|
||||
}
|
||||
try {
|
||||
iArr[DataType.FAVORITE.ordinal()] = 7;
|
||||
} catch (NoSuchFieldError unused7) {
|
||||
}
|
||||
try {
|
||||
iArr[DataType.INFO.ordinal()] = 8;
|
||||
} catch (NoSuchFieldError unused8) {
|
||||
}
|
||||
try {
|
||||
iArr[DataType.NEAR.ordinal()] = 9;
|
||||
} catch (NoSuchFieldError unused9) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,196 @@
|
||||
package com.adif.elcanomovil.uiHome.adapters;
|
||||
|
||||
import F.j;
|
||||
import F.q;
|
||||
import G1.b;
|
||||
import G1.c;
|
||||
import a.AbstractC0105a;
|
||||
import android.content.Context;
|
||||
import android.content.res.Resources;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
import androidx.recyclerview.widget.AbstractC0220h0;
|
||||
import androidx.recyclerview.widget.I0;
|
||||
import com.adif.elcanomovil.commonViews.databinding.ViewStationOptionBinding;
|
||||
import com.adif.elcanomovil.commonViews.databinding.ViewTrainOptionBinding;
|
||||
import com.adif.elcanomovil.domain.entities.DataType;
|
||||
import com.adif.elcanomovil.uiHome.R;
|
||||
import com.adif.elcanomovil.uiHome.data.UserFavoriteVO;
|
||||
import com.google.android.gms.common.internal.ServiceSpecificExtraArgs;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.StringCompanionObject;
|
||||
import kotlin.text.StringsKt__StringsKt;
|
||||
|
||||
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0014\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0002\"#B7\u0012\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003\u0012\u0018\u0010\t\u001a\u0014\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u0006j\u0002`\b\u0012\u0006\u0010\u000b\u001a\u00020\n¢\u0006\u0004\b\f\u0010\rJ\u001f\u0010\u0012\u001a\u00020\u00022\u0006\u0010\u000f\u001a\u00020\u000e2\u0006\u0010\u0011\u001a\u00020\u0010H\u0016¢\u0006\u0004\b\u0012\u0010\u0013J\u0017\u0010\u0015\u001a\u00020\u00102\u0006\u0010\u0014\u001a\u00020\u0010H\u0016¢\u0006\u0004\b\u0015\u0010\u0016J\u000f\u0010\u0017\u001a\u00020\u0010H\u0016¢\u0006\u0004\b\u0017\u0010\u0018J\u001f\u0010\u001a\u001a\u00020\u00072\u0006\u0010\u0019\u001a\u00020\u00022\u0006\u0010\u0014\u001a\u00020\u0010H\u0016¢\u0006\u0004\b\u001a\u0010\u001bR\u001a\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00040\u00038\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0005\u0010\u001cR&\u0010\t\u001a\u0014\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u0006j\u0002`\b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\t\u0010\u001dR\u0014\u0010\u000b\u001a\u00020\n8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000b\u0010\u001eR\u0014\u0010\u001f\u001a\u00020\u00108\u0002X\u0082D¢\u0006\u0006\n\u0004\b\u001f\u0010 R\u0014\u0010!\u001a\u00020\u00108\u0002X\u0082D¢\u0006\u0006\n\u0004\b!\u0010 ¨\u0006$"}, d2 = {"Lcom/adif/elcanomovil/uiHome/adapters/UserFavoritesAdapter;", "Landroidx/recyclerview/widget/h0;", "Landroidx/recyclerview/widget/I0;", "", "Lcom/adif/elcanomovil/uiHome/data/UserFavoriteVO;", FirebaseAnalytics.Param.ITEMS, "Lkotlin/Function1;", "", "Lcom/adif/elcanomovil/uiHome/adapters/UserFavoriteListener;", ServiceSpecificExtraArgs.CastExtraArgs.LISTENER, "Landroid/content/Context;", "context", "<init>", "(Ljava/util/List;Lkotlin/jvm/functions/Function1;Landroid/content/Context;)V", "Landroid/view/ViewGroup;", "parent", "", "viewType", "onCreateViewHolder", "(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/I0;", "position", "getItemViewType", "(I)I", "getItemCount", "()I", "holder", "onBindViewHolder", "(Landroidx/recyclerview/widget/I0;I)V", "Ljava/util/List;", "Lkotlin/jvm/functions/Function1;", "Landroid/content/Context;", "TYPE_TRAIN", "I", "TYPE_OTHER", "G1/b", "G1/c", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class UserFavoritesAdapter extends AbstractC0220h0 {
|
||||
private final int TYPE_OTHER;
|
||||
private final int TYPE_TRAIN;
|
||||
private final Context context;
|
||||
private final List<UserFavoriteVO> items;
|
||||
private final Function1<UserFavoriteVO, Unit> listener;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public UserFavoritesAdapter(List<UserFavoriteVO> items, Function1<? super UserFavoriteVO, Unit> function1, Context context) {
|
||||
Intrinsics.checkNotNullParameter(items, "items");
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
this.items = items;
|
||||
this.listener = function1;
|
||||
this.context = context;
|
||||
this.TYPE_TRAIN = 1;
|
||||
this.TYPE_OTHER = 2;
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public int getItemCount() {
|
||||
return this.items.size();
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public int getItemViewType(int position) {
|
||||
return this.items.get(position).getType() == DataType.COMMERCIAL ? this.TYPE_TRAIN : this.TYPE_OTHER;
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public void onBindViewHolder(I0 holder, int position) {
|
||||
List split$default;
|
||||
List split$default2;
|
||||
List split$default3;
|
||||
final int i = 0;
|
||||
final int i4 = 1;
|
||||
Intrinsics.checkNotNullParameter(holder, "holder");
|
||||
Integer num = null;
|
||||
if (holder instanceof c) {
|
||||
c cVar = (c) holder;
|
||||
final UserFavoriteVO item = this.items.get(position);
|
||||
final Function1<UserFavoriteVO, Unit> function1 = this.listener;
|
||||
cVar.getClass();
|
||||
Intrinsics.checkNotNullParameter(item, "item");
|
||||
switch (UserFavoritesAdapter$UserFavoritesViewHolder$WhenMappings.$EnumSwitchMapping$0[item.getType().ordinal()]) {
|
||||
case 1:
|
||||
num = Integer.valueOf(R.drawable.ic_station_option_departures);
|
||||
break;
|
||||
case 2:
|
||||
num = Integer.valueOf(R.drawable.ic_station_option_arrivals);
|
||||
break;
|
||||
case 3:
|
||||
num = Integer.valueOf(R.drawable.ic_train_between_stations);
|
||||
break;
|
||||
case 4:
|
||||
case 5:
|
||||
case 6:
|
||||
case 7:
|
||||
case 8:
|
||||
case 9:
|
||||
num = Integer.valueOf(R.drawable.ic_stations);
|
||||
break;
|
||||
}
|
||||
ViewStationOptionBinding viewStationOptionBinding = cVar.f573a;
|
||||
if (num != null) {
|
||||
int intValue = num.intValue();
|
||||
ImageView imageView = viewStationOptionBinding.stationOptionIcon;
|
||||
imageView.setImageDrawable(imageView.getContext().getResources().getDrawable(intValue));
|
||||
}
|
||||
viewStationOptionBinding.stationOptionTitle.setText(item.getTitle());
|
||||
viewStationOptionBinding.stationOptionSubtitle.setText(item.getSubtitle());
|
||||
viewStationOptionBinding.getRoot().setOnClickListener(new View.OnClickListener() { // from class: G1.a
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
switch (i4) {
|
||||
case 0:
|
||||
UserFavoriteVO item2 = item;
|
||||
Intrinsics.checkNotNullParameter(item2, "$item");
|
||||
Function1 function12 = function1;
|
||||
if (function12 != null) {
|
||||
function12.invoke(item2);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
default:
|
||||
UserFavoriteVO item3 = item;
|
||||
Intrinsics.checkNotNullParameter(item3, "$item");
|
||||
Function1 function13 = function1;
|
||||
if (function13 != null) {
|
||||
function13.invoke(item3);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (holder instanceof b) {
|
||||
b bVar = (b) holder;
|
||||
final UserFavoriteVO item2 = this.items.get(position);
|
||||
final Function1<UserFavoriteVO, Unit> function12 = this.listener;
|
||||
bVar.getClass();
|
||||
Intrinsics.checkNotNullParameter(item2, "item");
|
||||
ViewTrainOptionBinding viewTrainOptionBinding = bVar.f572b;
|
||||
ImageView imageView2 = viewTrainOptionBinding.trainOptionIcon;
|
||||
Resources resources = bVar.f571a.getResources();
|
||||
int i5 = R.drawable.ic_train;
|
||||
ThreadLocal threadLocal = q.f503a;
|
||||
imageView2.setImageDrawable(j.a(resources, i5, null));
|
||||
split$default = StringsKt__StringsKt.split$default(item2.getTitle(), new String[]{"#"}, false, 0, 6, (Object) null);
|
||||
split$default2 = StringsKt__StringsKt.split$default((CharSequence) split$default.get(0), new String[]{" "}, false, 2, 2, (Object) null);
|
||||
TextView textView = viewTrainOptionBinding.trainOptionTitle;
|
||||
StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
|
||||
String format = String.format("%s %s", Arrays.copyOf(new Object[]{AbstractC0105a.K(bVar.itemView.getContext(), (String) split$default2.get(0)), AbstractC0105a.k(bVar.itemView.getContext(), (String) split$default2.get(1))}, 2));
|
||||
Intrinsics.checkNotNullExpressionValue(format, "format(...)");
|
||||
textView.setText(format);
|
||||
split$default3 = StringsKt__StringsKt.split$default(item2.getSubtitle(), new String[]{"#"}, false, 0, 6, (Object) null);
|
||||
viewTrainOptionBinding.trainOptionFromStation.setText((CharSequence) split$default3.get(0));
|
||||
viewTrainOptionBinding.trainOptionToStation.setText((CharSequence) split$default3.get(1));
|
||||
viewTrainOptionBinding.trainOptionFromStationTime.setText((CharSequence) split$default3.get(2));
|
||||
viewTrainOptionBinding.trainOptionToStationTime.setText((CharSequence) split$default3.get(3));
|
||||
viewTrainOptionBinding.getRoot().setOnClickListener(new View.OnClickListener() { // from class: G1.a
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
switch (i) {
|
||||
case 0:
|
||||
UserFavoriteVO item22 = item2;
|
||||
Intrinsics.checkNotNullParameter(item22, "$item");
|
||||
Function1 function122 = function12;
|
||||
if (function122 != null) {
|
||||
function122.invoke(item22);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
default:
|
||||
UserFavoriteVO item3 = item2;
|
||||
Intrinsics.checkNotNullParameter(item3, "$item");
|
||||
Function1 function13 = function12;
|
||||
if (function13 != null) {
|
||||
function13.invoke(item3);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public I0 onCreateViewHolder(ViewGroup parent, int viewType) {
|
||||
Intrinsics.checkNotNullParameter(parent, "parent");
|
||||
if (viewType == this.TYPE_TRAIN) {
|
||||
View inflate = LayoutInflater.from(parent.getContext()).inflate(R.layout.view_train_option, parent, false);
|
||||
Intrinsics.checkNotNull(inflate);
|
||||
return new b(inflate, this.context);
|
||||
}
|
||||
View inflate2 = LayoutInflater.from(parent.getContext()).inflate(R.layout.view_station_option, parent, false);
|
||||
Intrinsics.checkNotNull(inflate2);
|
||||
return new c(inflate2);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.adif.elcanomovil.uiHome.adapters;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000*&\u0010\u0000\"\u0010\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0003\u0018\u00010\u00012\u0010\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0003\u0018\u00010\u0001¨\u0006\u0004"}, d2 = {"UserFavoriteListener", "Lkotlin/Function1;", "Lcom/adif/elcanomovil/uiHome/data/UserFavoriteVO;", "", "ui-home_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class UserFavoritesAdapterKt {
|
||||
}
|
||||
@@ -0,0 +1,215 @@
|
||||
package com.adif.elcanomovil.uiHome.data;
|
||||
|
||||
import D.h;
|
||||
import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.drawable.BitmapDrawable;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import com.adif.elcanomovil.commonViews.data.StationViewEntity;
|
||||
import com.adif.elcanomovil.resources.ResourcesUtils;
|
||||
import com.adif.elcanomovil.uiHome.R;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptor;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import com.google.android.gms.maps.model.LatLng;
|
||||
import com.google.android.gms.maps.model.Marker;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000D\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0019\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\b\u0086\b\u0018\u00002\u00020\u0001B-\u0012\n\b\u0002\u0010\u0002\u001a\u0004\u0018\u00010\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0007\u0012\b\b\u0002\u0010\b\u001a\u00020\t¢\u0006\u0002\u0010\nJ\u000b\u0010\u001c\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\t\u0010\u001d\u001a\u00020\u0005HÆ\u0003J\u000b\u0010\u001e\u001a\u0004\u0018\u00010\u0007HÆ\u0003J\t\u0010\u001f\u001a\u00020\tHÆ\u0003J5\u0010 \u001a\u00020\u00002\n\b\u0002\u0010\u0002\u001a\u0004\u0018\u00010\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00052\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u00072\b\b\u0002\u0010\b\u001a\u00020\tHÆ\u0001J\u0013\u0010!\u001a\u00020\t2\b\u0010\"\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010#\u001a\u00020\fHÖ\u0001J\b\u0010$\u001a\u00020\fH\u0002J\u0010\u0010%\u001a\u0004\u0018\u00010&2\u0006\u0010'\u001a\u00020(J\t\u0010)\u001a\u00020*HÖ\u0001J\u000e\u0010+\u001a\u00020,2\u0006\u0010'\u001a\u00020(R\u0014\u0010\u000b\u001a\u00020\f8BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\r\u0010\u000eR\u001a\u0010\b\u001a\u00020\tX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\b\u0010\u000f\"\u0004\b\u0010\u0010\u0011R\u001c\u0010\u0006\u001a\u0004\u0018\u00010\u0007X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0012\u0010\u0013\"\u0004\b\u0014\u0010\u0015R\u001c\u0010\u0002\u001a\u0004\u0018\u00010\u0003X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0016\u0010\u0017\"\u0004\b\u0018\u0010\u0019R\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u001a\u0010\u001b¨\u0006-"}, d2 = {"Lcom/adif/elcanomovil/uiHome/data/StationMarker;", "", "marker", "Lcom/google/android/gms/maps/model/Marker;", "station", "Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;", FirebaseAnalytics.Param.LOCATION, "Lcom/google/android/gms/maps/model/LatLng;", "isSelected", "", "(Lcom/google/android/gms/maps/model/Marker;Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;Lcom/google/android/gms/maps/model/LatLng;Z)V", "icon", "", "getIcon", "()I", "()Z", "setSelected", "(Z)V", "getLocation", "()Lcom/google/android/gms/maps/model/LatLng;", "setLocation", "(Lcom/google/android/gms/maps/model/LatLng;)V", "getMarker", "()Lcom/google/android/gms/maps/model/Marker;", "setMarker", "(Lcom/google/android/gms/maps/model/Marker;)V", "getStation", "()Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;", "component1", "component2", "component3", "component4", "copy", "equals", "other", "hashCode", "iconForStationType", "markerIcon", "Lcom/google/android/gms/maps/model/BitmapDescriptor;", "context", "Landroid/content/Context;", "toString", "", "updateMarkerIcon", "", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final /* data */ class StationMarker {
|
||||
private boolean isSelected;
|
||||
private LatLng location;
|
||||
private Marker marker;
|
||||
private final StationViewEntity station;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[StationViewEntity.Type.values().length];
|
||||
try {
|
||||
iArr[StationViewEntity.Type.STATION.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[StationViewEntity.Type.HOME.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[StationViewEntity.Type.WORK.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
try {
|
||||
iArr[StationViewEntity.Type.NEAR.ordinal()] = 4;
|
||||
} catch (NoSuchFieldError unused4) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
|
||||
public StationMarker(Marker marker, StationViewEntity station, LatLng latLng, boolean z3) {
|
||||
Intrinsics.checkNotNullParameter(station, "station");
|
||||
this.marker = marker;
|
||||
this.station = station;
|
||||
this.location = latLng;
|
||||
this.isSelected = z3;
|
||||
}
|
||||
|
||||
public static /* synthetic */ StationMarker copy$default(StationMarker stationMarker, Marker marker, StationViewEntity stationViewEntity, LatLng latLng, boolean z3, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
marker = stationMarker.marker;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
stationViewEntity = stationMarker.station;
|
||||
}
|
||||
if ((i & 4) != 0) {
|
||||
latLng = stationMarker.location;
|
||||
}
|
||||
if ((i & 8) != 0) {
|
||||
z3 = stationMarker.isSelected;
|
||||
}
|
||||
return stationMarker.copy(marker, stationViewEntity, latLng, z3);
|
||||
}
|
||||
|
||||
private final int getIcon() {
|
||||
return iconForStationType();
|
||||
}
|
||||
|
||||
private final int iconForStationType() {
|
||||
int i = WhenMappings.$EnumSwitchMapping$0[this.station.getType().ordinal()];
|
||||
return i != 2 ? i != 3 ? i != 4 ? this.isSelected ? R.drawable.ic_marker_selected : R.drawable.ic_marker : this.isSelected ? R.drawable.ic_marker_selected : R.drawable.ic_marker : this.isSelected ? R.drawable.ic_marker_work_selected : R.drawable.ic_marker_work : this.isSelected ? R.drawable.ic_marker_home_selected : R.drawable.ic_marker_home;
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final Marker getMarker() {
|
||||
return this.marker;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final StationViewEntity getStation() {
|
||||
return this.station;
|
||||
}
|
||||
|
||||
/* renamed from: component3, reason: from getter */
|
||||
public final LatLng getLocation() {
|
||||
return this.location;
|
||||
}
|
||||
|
||||
/* renamed from: component4, reason: from getter */
|
||||
public final boolean getIsSelected() {
|
||||
return this.isSelected;
|
||||
}
|
||||
|
||||
public final StationMarker copy(Marker marker, StationViewEntity station, LatLng location, boolean isSelected) {
|
||||
Intrinsics.checkNotNullParameter(station, "station");
|
||||
return new StationMarker(marker, station, location, isSelected);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof StationMarker)) {
|
||||
return false;
|
||||
}
|
||||
StationMarker stationMarker = (StationMarker) other;
|
||||
return Intrinsics.areEqual(this.marker, stationMarker.marker) && Intrinsics.areEqual(this.station, stationMarker.station) && Intrinsics.areEqual(this.location, stationMarker.location) && this.isSelected == stationMarker.isSelected;
|
||||
}
|
||||
|
||||
public final LatLng getLocation() {
|
||||
return this.location;
|
||||
}
|
||||
|
||||
public final Marker getMarker() {
|
||||
return this.marker;
|
||||
}
|
||||
|
||||
public final StationViewEntity getStation() {
|
||||
return this.station;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
Marker marker = this.marker;
|
||||
int hashCode = (this.station.hashCode() + ((marker == null ? 0 : marker.hashCode()) * 31)) * 31;
|
||||
LatLng latLng = this.location;
|
||||
return Boolean.hashCode(this.isSelected) + ((hashCode + (latLng != null ? latLng.hashCode() : 0)) * 31);
|
||||
}
|
||||
|
||||
public final boolean isSelected() {
|
||||
return this.isSelected;
|
||||
}
|
||||
|
||||
public final BitmapDescriptor markerIcon(Context context) {
|
||||
Bitmap bitmap;
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
if (WhenMappings.$EnumSwitchMapping$0[this.station.getType().ordinal()] == 1) {
|
||||
bitmap = ResourcesUtils.INSTANCE.vectorToBitmap(context, getIcon());
|
||||
} else {
|
||||
Drawable drawable = h.getDrawable(context, getIcon());
|
||||
if (drawable != null) {
|
||||
int intrinsicWidth = drawable.getIntrinsicWidth();
|
||||
int intrinsicHeight = drawable.getIntrinsicHeight();
|
||||
if (drawable instanceof BitmapDrawable) {
|
||||
BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable;
|
||||
if (bitmapDrawable.getBitmap() == null) {
|
||||
throw new IllegalArgumentException("bitmap is null");
|
||||
}
|
||||
bitmap = (intrinsicWidth == bitmapDrawable.getBitmap().getWidth() && intrinsicHeight == bitmapDrawable.getBitmap().getHeight()) ? bitmapDrawable.getBitmap() : Bitmap.createScaledBitmap(bitmapDrawable.getBitmap(), intrinsicWidth, intrinsicHeight, true);
|
||||
} else {
|
||||
Rect bounds = drawable.getBounds();
|
||||
int i = bounds.left;
|
||||
int i4 = bounds.top;
|
||||
int i5 = bounds.right;
|
||||
int i6 = bounds.bottom;
|
||||
Bitmap createBitmap = Bitmap.createBitmap(intrinsicWidth, intrinsicHeight, Bitmap.Config.ARGB_8888);
|
||||
drawable.setBounds(0, 0, intrinsicWidth, intrinsicHeight);
|
||||
drawable.draw(new Canvas(createBitmap));
|
||||
drawable.setBounds(i, i4, i5, i6);
|
||||
bitmap = createBitmap;
|
||||
}
|
||||
} else {
|
||||
bitmap = null;
|
||||
}
|
||||
}
|
||||
if (bitmap == null) {
|
||||
return null;
|
||||
}
|
||||
return BitmapDescriptorFactory.fromBitmap(bitmap);
|
||||
}
|
||||
|
||||
public final void setLocation(LatLng latLng) {
|
||||
this.location = latLng;
|
||||
}
|
||||
|
||||
public final void setMarker(Marker marker) {
|
||||
this.marker = marker;
|
||||
}
|
||||
|
||||
public final void setSelected(boolean z3) {
|
||||
this.isSelected = z3;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "StationMarker(marker=" + this.marker + ", station=" + this.station + ", location=" + this.location + ", isSelected=" + this.isSelected + ')';
|
||||
}
|
||||
|
||||
public final void updateMarkerIcon(Context context) {
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
BitmapDescriptor markerIcon = markerIcon(context);
|
||||
Marker marker = this.marker;
|
||||
if (marker != null) {
|
||||
marker.setIcon(markerIcon);
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ StationMarker(Marker marker, StationViewEntity stationViewEntity, LatLng latLng, boolean z3, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this((i & 1) != 0 ? null : marker, stationViewEntity, latLng, (i & 8) != 0 ? false : z3);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.adif.elcanomovil.uiHome.data;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000*\u0016\u0010\u0000\"\b\u0012\u0004\u0012\u00020\u0002`\u00012\b\u0012\u0004\u0012\u00020\u00020\u0003¨\u0006\u0004"}, d2 = {"StationsMarkers", "Lkotlin/collections/ArrayList;", "Lcom/adif/elcanomovil/uiHome/data/StationMarker;", "Ljava/util/ArrayList;", "ui-home_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationMarkerKt {
|
||||
}
|
||||
@@ -0,0 +1,226 @@
|
||||
package com.adif.elcanomovil.uiHome.data;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.text.TextUtils;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.NavArguments;
|
||||
import com.adif.elcanomovil.commonViews.data.StationViewEntity;
|
||||
import com.adif.elcanomovil.domain.entities.DataType;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.parcelize.Parcelize;
|
||||
|
||||
@Parcelize
|
||||
@Metadata(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\r\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u001e\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0087\b\u0018\u00002\u00020\u0001BA\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0003\u0012\u0006\u0010\u0007\u001a\u00020\u0005\u0012\b\u0010\b\u001a\u0004\u0018\u00010\u0003\u0012\u0006\u0010\t\u001a\u00020\n\u0012\u0006\u0010\u000b\u001a\u00020\f¢\u0006\u0002\u0010\rJ\t\u0010\"\u001a\u00020\u0003HÆ\u0003J\t\u0010#\u001a\u00020\u0005HÆ\u0003J\u000b\u0010$\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\t\u0010%\u001a\u00020\u0005HÆ\u0003J\u000b\u0010&\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\t\u0010'\u001a\u00020\nHÆ\u0003J\t\u0010(\u001a\u00020\fHÆ\u0003JS\u0010)\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00052\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u00032\b\b\u0002\u0010\u0007\u001a\u00020\u00052\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\u00032\b\b\u0002\u0010\t\u001a\u00020\n2\b\b\u0002\u0010\u000b\u001a\u00020\fHÆ\u0001J\t\u0010*\u001a\u00020+HÖ\u0001J\u0013\u0010,\u001a\u00020-2\b\u0010.\u001a\u0004\u0018\u00010/HÖ\u0003J\t\u00100\u001a\u00020+HÖ\u0001J\t\u00101\u001a\u00020\u0003HÖ\u0001J\u0019\u00102\u001a\u0002032\u0006\u00104\u001a\u0002052\u0006\u00106\u001a\u00020+HÖ\u0001R\u001a\u0010\u0002\u001a\u00020\u0003X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000e\u0010\u000f\"\u0004\b\u0010\u0010\u0011R\u0013\u0010\u0006\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0012\u0010\u000fR\u0013\u0010\b\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u000fR\u001a\u0010\u0007\u001a\u00020\u0005X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0014\u0010\u0015\"\u0004\b\u0016\u0010\u0017R\u001a\u0010\u0004\u001a\u00020\u0005X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0018\u0010\u0015\"\u0004\b\u0019\u0010\u0017R\u001a\u0010\u000b\u001a\u00020\fX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u001a\u0010\u001b\"\u0004\b\u001c\u0010\u001dR\u001a\u0010\t\u001a\u00020\nX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u001e\u0010\u001f\"\u0004\b \u0010!¨\u00067"}, d2 = {"Lcom/adif/elcanomovil/uiHome/data/UserFavoriteVO;", "Landroid/os/Parcelable;", NavArguments.ARG_TYPE_NOTIFICATION_JSON_MESSAGE_TRAIN, "", "title", "", "identifierStation", "subtitle", "identifierToStation", "type", "Lcom/adif/elcanomovil/domain/entities/DataType;", NavArguments.ARG_DYNAMIC_LINKS_STATION_TRAFFIC, "Lcom/adif/elcanomovil/commonViews/data/StationViewEntity$TypeTraffic;", "(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;Lcom/adif/elcanomovil/domain/entities/DataType;Lcom/adif/elcanomovil/commonViews/data/StationViewEntity$TypeTraffic;)V", "getId", "()Ljava/lang/String;", "setId", "(Ljava/lang/String;)V", "getIdentifierStation", "getIdentifierToStation", "getSubtitle", "()Ljava/lang/CharSequence;", "setSubtitle", "(Ljava/lang/CharSequence;)V", "getTitle", "setTitle", "getTrafficType", "()Lcom/adif/elcanomovil/commonViews/data/StationViewEntity$TypeTraffic;", "setTrafficType", "(Lcom/adif/elcanomovil/commonViews/data/StationViewEntity$TypeTraffic;)V", "getType", "()Lcom/adif/elcanomovil/domain/entities/DataType;", "setType", "(Lcom/adif/elcanomovil/domain/entities/DataType;)V", "component1", "component2", "component3", "component4", "component5", "component6", "component7", "copy", "describeContents", "", "equals", "", "other", "", "hashCode", "toString", "writeToParcel", "", "parcel", "Landroid/os/Parcel;", "flags", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final /* data */ class UserFavoriteVO implements Parcelable {
|
||||
public static final Parcelable.Creator<UserFavoriteVO> CREATOR = new Creator();
|
||||
private String id;
|
||||
private final String identifierStation;
|
||||
private final String identifierToStation;
|
||||
private CharSequence subtitle;
|
||||
private CharSequence title;
|
||||
private StationViewEntity.TypeTraffic trafficType;
|
||||
private DataType type;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class Creator implements Parcelable.Creator<UserFavoriteVO> {
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final UserFavoriteVO createFromParcel(Parcel parcel) {
|
||||
Intrinsics.checkNotNullParameter(parcel, "parcel");
|
||||
String readString = parcel.readString();
|
||||
Parcelable.Creator creator = TextUtils.CHAR_SEQUENCE_CREATOR;
|
||||
return new UserFavoriteVO(readString, (CharSequence) creator.createFromParcel(parcel), parcel.readString(), (CharSequence) creator.createFromParcel(parcel), parcel.readString(), (DataType) parcel.readParcelable(UserFavoriteVO.class.getClassLoader()), (StationViewEntity.TypeTraffic) parcel.readParcelable(UserFavoriteVO.class.getClassLoader()));
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final UserFavoriteVO[] newArray(int i) {
|
||||
return new UserFavoriteVO[i];
|
||||
}
|
||||
}
|
||||
|
||||
public UserFavoriteVO(String id, CharSequence title, String str, CharSequence subtitle, String str2, DataType type, StationViewEntity.TypeTraffic trafficType) {
|
||||
Intrinsics.checkNotNullParameter(id, "id");
|
||||
Intrinsics.checkNotNullParameter(title, "title");
|
||||
Intrinsics.checkNotNullParameter(subtitle, "subtitle");
|
||||
Intrinsics.checkNotNullParameter(type, "type");
|
||||
Intrinsics.checkNotNullParameter(trafficType, "trafficType");
|
||||
this.id = id;
|
||||
this.title = title;
|
||||
this.identifierStation = str;
|
||||
this.subtitle = subtitle;
|
||||
this.identifierToStation = str2;
|
||||
this.type = type;
|
||||
this.trafficType = trafficType;
|
||||
}
|
||||
|
||||
public static /* synthetic */ UserFavoriteVO copy$default(UserFavoriteVO userFavoriteVO, String str, CharSequence charSequence, String str2, CharSequence charSequence2, String str3, DataType dataType, StationViewEntity.TypeTraffic typeTraffic, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str = userFavoriteVO.id;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
charSequence = userFavoriteVO.title;
|
||||
}
|
||||
if ((i & 4) != 0) {
|
||||
str2 = userFavoriteVO.identifierStation;
|
||||
}
|
||||
if ((i & 8) != 0) {
|
||||
charSequence2 = userFavoriteVO.subtitle;
|
||||
}
|
||||
if ((i & 16) != 0) {
|
||||
str3 = userFavoriteVO.identifierToStation;
|
||||
}
|
||||
if ((i & 32) != 0) {
|
||||
dataType = userFavoriteVO.type;
|
||||
}
|
||||
if ((i & 64) != 0) {
|
||||
typeTraffic = userFavoriteVO.trafficType;
|
||||
}
|
||||
DataType dataType2 = dataType;
|
||||
StationViewEntity.TypeTraffic typeTraffic2 = typeTraffic;
|
||||
String str4 = str3;
|
||||
String str5 = str2;
|
||||
return userFavoriteVO.copy(str, charSequence, str5, charSequence2, str4, dataType2, typeTraffic2);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final CharSequence getTitle() {
|
||||
return this.title;
|
||||
}
|
||||
|
||||
/* renamed from: component3, reason: from getter */
|
||||
public final String getIdentifierStation() {
|
||||
return this.identifierStation;
|
||||
}
|
||||
|
||||
/* renamed from: component4, reason: from getter */
|
||||
public final CharSequence getSubtitle() {
|
||||
return this.subtitle;
|
||||
}
|
||||
|
||||
/* renamed from: component5, reason: from getter */
|
||||
public final String getIdentifierToStation() {
|
||||
return this.identifierToStation;
|
||||
}
|
||||
|
||||
/* renamed from: component6, reason: from getter */
|
||||
public final DataType getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
/* renamed from: component7, reason: from getter */
|
||||
public final StationViewEntity.TypeTraffic getTrafficType() {
|
||||
return this.trafficType;
|
||||
}
|
||||
|
||||
public final UserFavoriteVO copy(String id, CharSequence title, String identifierStation, CharSequence subtitle, String identifierToStation, DataType type, StationViewEntity.TypeTraffic trafficType) {
|
||||
Intrinsics.checkNotNullParameter(id, "id");
|
||||
Intrinsics.checkNotNullParameter(title, "title");
|
||||
Intrinsics.checkNotNullParameter(subtitle, "subtitle");
|
||||
Intrinsics.checkNotNullParameter(type, "type");
|
||||
Intrinsics.checkNotNullParameter(trafficType, "trafficType");
|
||||
return new UserFavoriteVO(id, title, identifierStation, subtitle, identifierToStation, type, trafficType);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof UserFavoriteVO)) {
|
||||
return false;
|
||||
}
|
||||
UserFavoriteVO userFavoriteVO = (UserFavoriteVO) other;
|
||||
return Intrinsics.areEqual(this.id, userFavoriteVO.id) && Intrinsics.areEqual(this.title, userFavoriteVO.title) && Intrinsics.areEqual(this.identifierStation, userFavoriteVO.identifierStation) && Intrinsics.areEqual(this.subtitle, userFavoriteVO.subtitle) && Intrinsics.areEqual(this.identifierToStation, userFavoriteVO.identifierToStation) && this.type == userFavoriteVO.type && this.trafficType == userFavoriteVO.trafficType;
|
||||
}
|
||||
|
||||
public final String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public final String getIdentifierStation() {
|
||||
return this.identifierStation;
|
||||
}
|
||||
|
||||
public final String getIdentifierToStation() {
|
||||
return this.identifierToStation;
|
||||
}
|
||||
|
||||
public final CharSequence getSubtitle() {
|
||||
return this.subtitle;
|
||||
}
|
||||
|
||||
public final CharSequence getTitle() {
|
||||
return this.title;
|
||||
}
|
||||
|
||||
public final StationViewEntity.TypeTraffic getTrafficType() {
|
||||
return this.trafficType;
|
||||
}
|
||||
|
||||
public final DataType getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int hashCode = (this.title.hashCode() + (this.id.hashCode() * 31)) * 31;
|
||||
String str = this.identifierStation;
|
||||
int hashCode2 = (this.subtitle.hashCode() + ((hashCode + (str == null ? 0 : str.hashCode())) * 31)) * 31;
|
||||
String str2 = this.identifierToStation;
|
||||
int hashCode3 = str2 != null ? str2.hashCode() : 0;
|
||||
return this.trafficType.hashCode() + ((this.type.hashCode() + ((hashCode2 + hashCode3) * 31)) * 31);
|
||||
}
|
||||
|
||||
public final void setId(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<set-?>");
|
||||
this.id = str;
|
||||
}
|
||||
|
||||
public final void setSubtitle(CharSequence charSequence) {
|
||||
Intrinsics.checkNotNullParameter(charSequence, "<set-?>");
|
||||
this.subtitle = charSequence;
|
||||
}
|
||||
|
||||
public final void setTitle(CharSequence charSequence) {
|
||||
Intrinsics.checkNotNullParameter(charSequence, "<set-?>");
|
||||
this.title = charSequence;
|
||||
}
|
||||
|
||||
public final void setTrafficType(StationViewEntity.TypeTraffic typeTraffic) {
|
||||
Intrinsics.checkNotNullParameter(typeTraffic, "<set-?>");
|
||||
this.trafficType = typeTraffic;
|
||||
}
|
||||
|
||||
public final void setType(DataType dataType) {
|
||||
Intrinsics.checkNotNullParameter(dataType, "<set-?>");
|
||||
this.type = dataType;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "UserFavoriteVO(id=" + this.id + ", title=" + ((Object) this.title) + ", identifierStation=" + this.identifierStation + ", subtitle=" + ((Object) this.subtitle) + ", identifierToStation=" + this.identifierToStation + ", type=" + this.type + ", trafficType=" + this.trafficType + ')';
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int flags) {
|
||||
Intrinsics.checkNotNullParameter(parcel, "out");
|
||||
parcel.writeString(this.id);
|
||||
TextUtils.writeToParcel(this.title, parcel, flags);
|
||||
parcel.writeString(this.identifierStation);
|
||||
TextUtils.writeToParcel(this.subtitle, parcel, flags);
|
||||
parcel.writeString(this.identifierToStation);
|
||||
parcel.writeParcelable(this.type, flags);
|
||||
parcel.writeParcelable(this.trafficType, flags);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.adif.elcanomovil.uiHome.databinding;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Button;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import com.adif.elcanomovil.uiHome.R;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class FakeTabViewBinding {
|
||||
public final Button buttonSheet;
|
||||
public final ConstraintLayout containerButtonSheet;
|
||||
private final ConstraintLayout rootView;
|
||||
public final ImageView sliderImageController;
|
||||
public final TextView userStationsTitle;
|
||||
|
||||
private FakeTabViewBinding(ConstraintLayout constraintLayout, Button button, ConstraintLayout constraintLayout2, ImageView imageView, TextView textView) {
|
||||
this.rootView = constraintLayout;
|
||||
this.buttonSheet = button;
|
||||
this.containerButtonSheet = constraintLayout2;
|
||||
this.sliderImageController = imageView;
|
||||
this.userStationsTitle = textView;
|
||||
}
|
||||
|
||||
public static FakeTabViewBinding bind(View view) {
|
||||
int i = R.id.buttonSheet;
|
||||
Button button = (Button) AbstractC0105a.t(view, i);
|
||||
if (button != null) {
|
||||
ConstraintLayout constraintLayout = (ConstraintLayout) view;
|
||||
i = R.id.sliderImageController;
|
||||
ImageView imageView = (ImageView) AbstractC0105a.t(view, i);
|
||||
if (imageView != null) {
|
||||
i = R.id.userStationsTitle;
|
||||
TextView textView = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView != null) {
|
||||
return new FakeTabViewBinding(constraintLayout, button, constraintLayout, imageView, textView);
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
|
||||
}
|
||||
|
||||
public static FakeTabViewBinding inflate(LayoutInflater layoutInflater) {
|
||||
return inflate(layoutInflater, null, false);
|
||||
}
|
||||
|
||||
public static FakeTabViewBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z3) {
|
||||
View inflate = layoutInflater.inflate(R.layout.fake_tab_view, viewGroup, false);
|
||||
if (z3) {
|
||||
viewGroup.addView(inflate);
|
||||
}
|
||||
return bind(inflate);
|
||||
}
|
||||
|
||||
public ConstraintLayout getRoot() {
|
||||
return this.rootView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.adif.elcanomovil.uiHome.databinding;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.FrameLayout;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import com.adif.elcanomovil.uiHome.R;
|
||||
import com.adif.elcanomovil.uiHome.views.HomeMapView;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class FragmentHomeBinding {
|
||||
public final FrameLayout frameFakeTab;
|
||||
public final FakeTabViewBinding frameFakeTabInclude;
|
||||
public final ViewHomeDetailBinding layoutHomeDetail;
|
||||
public final HomeMapView layoutHomeMap;
|
||||
private final CoordinatorLayout rootView;
|
||||
|
||||
private FragmentHomeBinding(CoordinatorLayout coordinatorLayout, FrameLayout frameLayout, FakeTabViewBinding fakeTabViewBinding, ViewHomeDetailBinding viewHomeDetailBinding, HomeMapView homeMapView) {
|
||||
this.rootView = coordinatorLayout;
|
||||
this.frameFakeTab = frameLayout;
|
||||
this.frameFakeTabInclude = fakeTabViewBinding;
|
||||
this.layoutHomeDetail = viewHomeDetailBinding;
|
||||
this.layoutHomeMap = homeMapView;
|
||||
}
|
||||
|
||||
public static FragmentHomeBinding bind(View view) {
|
||||
View t2;
|
||||
int i = R.id.frameFakeTab;
|
||||
FrameLayout frameLayout = (FrameLayout) AbstractC0105a.t(view, i);
|
||||
if (frameLayout != null && (t2 = AbstractC0105a.t(view, (i = R.id.frameFakeTabInclude))) != null) {
|
||||
FakeTabViewBinding bind = FakeTabViewBinding.bind(t2);
|
||||
i = R.id.layoutHomeDetail;
|
||||
View t4 = AbstractC0105a.t(view, i);
|
||||
if (t4 != null) {
|
||||
ViewHomeDetailBinding bind2 = ViewHomeDetailBinding.bind(t4);
|
||||
i = R.id.layoutHomeMap;
|
||||
HomeMapView homeMapView = (HomeMapView) AbstractC0105a.t(view, i);
|
||||
if (homeMapView != null) {
|
||||
return new FragmentHomeBinding((CoordinatorLayout) view, frameLayout, bind, bind2, homeMapView);
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
|
||||
}
|
||||
|
||||
public static FragmentHomeBinding inflate(LayoutInflater layoutInflater) {
|
||||
return inflate(layoutInflater, null, false);
|
||||
}
|
||||
|
||||
public static FragmentHomeBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z3) {
|
||||
View inflate = layoutInflater.inflate(R.layout.fragment_home, viewGroup, false);
|
||||
if (z3) {
|
||||
viewGroup.addView(inflate);
|
||||
}
|
||||
return bind(inflate);
|
||||
}
|
||||
|
||||
public CoordinatorLayout getRoot() {
|
||||
return this.rootView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
package com.adif.elcanomovil.uiHome.databinding;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ImageView;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import com.adif.elcanomovil.commonViews.UserStationsView;
|
||||
import com.adif.elcanomovil.uiHome.R;
|
||||
import com.adif.elcanomovil.uiHome.views.StationNearView;
|
||||
import com.adif.elcanomovil.uiHome.views.UserFavoritesView;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class ViewHomeDetailBinding {
|
||||
public final ConstraintLayout layoutHomeDetail;
|
||||
public final StationNearView layoutNearStation;
|
||||
public final ViewHomeOffersBinding layoutStationOffers;
|
||||
public final UserFavoritesView layoutUserFavorites;
|
||||
public final UserStationsView layoutUserStations;
|
||||
private final ConstraintLayout rootView;
|
||||
public final ImageView sliderImageController;
|
||||
|
||||
private ViewHomeDetailBinding(ConstraintLayout constraintLayout, ConstraintLayout constraintLayout2, StationNearView stationNearView, ViewHomeOffersBinding viewHomeOffersBinding, UserFavoritesView userFavoritesView, UserStationsView userStationsView, ImageView imageView) {
|
||||
this.rootView = constraintLayout;
|
||||
this.layoutHomeDetail = constraintLayout2;
|
||||
this.layoutNearStation = stationNearView;
|
||||
this.layoutStationOffers = viewHomeOffersBinding;
|
||||
this.layoutUserFavorites = userFavoritesView;
|
||||
this.layoutUserStations = userStationsView;
|
||||
this.sliderImageController = imageView;
|
||||
}
|
||||
|
||||
public static ViewHomeDetailBinding bind(View view) {
|
||||
View t2;
|
||||
ConstraintLayout constraintLayout = (ConstraintLayout) view;
|
||||
int i = R.id.layoutNearStation;
|
||||
StationNearView stationNearView = (StationNearView) AbstractC0105a.t(view, i);
|
||||
if (stationNearView != null && (t2 = AbstractC0105a.t(view, (i = R.id.layoutStationOffers))) != null) {
|
||||
ViewHomeOffersBinding bind = ViewHomeOffersBinding.bind(t2);
|
||||
i = R.id.layoutUserFavorites;
|
||||
UserFavoritesView userFavoritesView = (UserFavoritesView) AbstractC0105a.t(view, i);
|
||||
if (userFavoritesView != null) {
|
||||
i = R.id.layoutUserStations;
|
||||
UserStationsView userStationsView = (UserStationsView) AbstractC0105a.t(view, i);
|
||||
if (userStationsView != null) {
|
||||
i = R.id.sliderImageController;
|
||||
ImageView imageView = (ImageView) AbstractC0105a.t(view, i);
|
||||
if (imageView != null) {
|
||||
return new ViewHomeDetailBinding(constraintLayout, constraintLayout, stationNearView, bind, userFavoritesView, userStationsView, imageView);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
|
||||
}
|
||||
|
||||
public static ViewHomeDetailBinding inflate(LayoutInflater layoutInflater) {
|
||||
return inflate(layoutInflater, null, false);
|
||||
}
|
||||
|
||||
public static ViewHomeDetailBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z3) {
|
||||
View inflate = layoutInflater.inflate(R.layout.view_home_detail, viewGroup, false);
|
||||
if (z3) {
|
||||
viewGroup.addView(inflate);
|
||||
}
|
||||
return bind(inflate);
|
||||
}
|
||||
|
||||
public ConstraintLayout getRoot() {
|
||||
return this.rootView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.adif.elcanomovil.uiHome.databinding;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import androidx.fragment.app.FragmentContainerView;
|
||||
import com.adif.elcanomovil.uiHome.R;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class ViewHomeMapBinding {
|
||||
public final ConstraintLayout layoutHomeMap;
|
||||
public final FragmentContainerView map;
|
||||
private final ConstraintLayout rootView;
|
||||
|
||||
private ViewHomeMapBinding(ConstraintLayout constraintLayout, ConstraintLayout constraintLayout2, FragmentContainerView fragmentContainerView) {
|
||||
this.rootView = constraintLayout;
|
||||
this.layoutHomeMap = constraintLayout2;
|
||||
this.map = fragmentContainerView;
|
||||
}
|
||||
|
||||
public static ViewHomeMapBinding bind(View view) {
|
||||
ConstraintLayout constraintLayout = (ConstraintLayout) view;
|
||||
int i = R.id.map;
|
||||
FragmentContainerView fragmentContainerView = (FragmentContainerView) AbstractC0105a.t(view, i);
|
||||
if (fragmentContainerView != null) {
|
||||
return new ViewHomeMapBinding(constraintLayout, constraintLayout, fragmentContainerView);
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
|
||||
}
|
||||
|
||||
public static ViewHomeMapBinding inflate(LayoutInflater layoutInflater) {
|
||||
return inflate(layoutInflater, null, false);
|
||||
}
|
||||
|
||||
public static ViewHomeMapBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z3) {
|
||||
View inflate = layoutInflater.inflate(R.layout.view_home_map, viewGroup, false);
|
||||
if (z3) {
|
||||
viewGroup.addView(inflate);
|
||||
}
|
||||
return bind(inflate);
|
||||
}
|
||||
|
||||
public ConstraintLayout getRoot() {
|
||||
return this.rootView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package com.adif.elcanomovil.uiHome.databinding;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.TextView;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import com.adif.elcanomovil.commonViews.databinding.ViewBadgeBinding;
|
||||
import com.adif.elcanomovil.uiHome.R;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class ViewHomeOffersBinding {
|
||||
public final ViewBadgeBinding offersLayoutBadge;
|
||||
public final TextView offersSubtitle;
|
||||
public final TextView offersTitle;
|
||||
private final ConstraintLayout rootView;
|
||||
|
||||
private ViewHomeOffersBinding(ConstraintLayout constraintLayout, ViewBadgeBinding viewBadgeBinding, TextView textView, TextView textView2) {
|
||||
this.rootView = constraintLayout;
|
||||
this.offersLayoutBadge = viewBadgeBinding;
|
||||
this.offersSubtitle = textView;
|
||||
this.offersTitle = textView2;
|
||||
}
|
||||
|
||||
public static ViewHomeOffersBinding bind(View view) {
|
||||
int i = R.id.offersLayoutBadge;
|
||||
View t2 = AbstractC0105a.t(view, i);
|
||||
if (t2 != null) {
|
||||
ViewBadgeBinding bind = ViewBadgeBinding.bind(t2);
|
||||
int i4 = R.id.offersSubtitle;
|
||||
TextView textView = (TextView) AbstractC0105a.t(view, i4);
|
||||
if (textView != null) {
|
||||
i4 = R.id.offersTitle;
|
||||
TextView textView2 = (TextView) AbstractC0105a.t(view, i4);
|
||||
if (textView2 != null) {
|
||||
return new ViewHomeOffersBinding((ConstraintLayout) view, bind, textView, textView2);
|
||||
}
|
||||
}
|
||||
i = i4;
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
|
||||
}
|
||||
|
||||
public static ViewHomeOffersBinding inflate(LayoutInflater layoutInflater) {
|
||||
return inflate(layoutInflater, null, false);
|
||||
}
|
||||
|
||||
public static ViewHomeOffersBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z3) {
|
||||
View inflate = layoutInflater.inflate(R.layout.view_home_offers, viewGroup, false);
|
||||
if (z3) {
|
||||
viewGroup.addView(inflate);
|
||||
}
|
||||
return bind(inflate);
|
||||
}
|
||||
|
||||
public ConstraintLayout getRoot() {
|
||||
return this.rootView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.adif.elcanomovil.uiHome.databinding;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ProgressBar;
|
||||
import android.widget.TextView;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import com.adif.elcanomovil.commonViews.StationOptionView;
|
||||
import com.adif.elcanomovil.uiHome.R;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class ViewStationNearBinding {
|
||||
public final TextView nearStationInfo;
|
||||
public final TextView nearStationSubtitle;
|
||||
public final TextView nearStationTitle;
|
||||
public final TextView permissionStatusTextView;
|
||||
private final ConstraintLayout rootView;
|
||||
public final StationOptionView stationInfoArrivals;
|
||||
public final StationOptionView stationInfoComercial;
|
||||
public final StationOptionView stationInfoDepartures;
|
||||
public final StationOptionView stationInfoDetails;
|
||||
public final ProgressBar stationOptionsLoading;
|
||||
|
||||
private ViewStationNearBinding(ConstraintLayout constraintLayout, TextView textView, TextView textView2, TextView textView3, TextView textView4, StationOptionView stationOptionView, StationOptionView stationOptionView2, StationOptionView stationOptionView3, StationOptionView stationOptionView4, ProgressBar progressBar) {
|
||||
this.rootView = constraintLayout;
|
||||
this.nearStationInfo = textView;
|
||||
this.nearStationSubtitle = textView2;
|
||||
this.nearStationTitle = textView3;
|
||||
this.permissionStatusTextView = textView4;
|
||||
this.stationInfoArrivals = stationOptionView;
|
||||
this.stationInfoComercial = stationOptionView2;
|
||||
this.stationInfoDepartures = stationOptionView3;
|
||||
this.stationInfoDetails = stationOptionView4;
|
||||
this.stationOptionsLoading = progressBar;
|
||||
}
|
||||
|
||||
public static ViewStationNearBinding bind(View view) {
|
||||
int i = R.id.nearStationInfo;
|
||||
TextView textView = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView != null) {
|
||||
i = R.id.nearStationSubtitle;
|
||||
TextView textView2 = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView2 != null) {
|
||||
i = R.id.nearStationTitle;
|
||||
TextView textView3 = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView3 != null) {
|
||||
i = R.id.permissionStatusTextView;
|
||||
TextView textView4 = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView4 != null) {
|
||||
i = R.id.stationInfoArrivals;
|
||||
StationOptionView stationOptionView = (StationOptionView) AbstractC0105a.t(view, i);
|
||||
if (stationOptionView != null) {
|
||||
i = R.id.stationInfoComercial;
|
||||
StationOptionView stationOptionView2 = (StationOptionView) AbstractC0105a.t(view, i);
|
||||
if (stationOptionView2 != null) {
|
||||
i = R.id.stationInfoDepartures;
|
||||
StationOptionView stationOptionView3 = (StationOptionView) AbstractC0105a.t(view, i);
|
||||
if (stationOptionView3 != null) {
|
||||
i = R.id.stationInfoDetails;
|
||||
StationOptionView stationOptionView4 = (StationOptionView) AbstractC0105a.t(view, i);
|
||||
if (stationOptionView4 != null) {
|
||||
i = R.id.stationOptionsLoading;
|
||||
ProgressBar progressBar = (ProgressBar) AbstractC0105a.t(view, i);
|
||||
if (progressBar != null) {
|
||||
return new ViewStationNearBinding((ConstraintLayout) view, textView, textView2, textView3, textView4, stationOptionView, stationOptionView2, stationOptionView3, stationOptionView4, progressBar);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
|
||||
}
|
||||
|
||||
public static ViewStationNearBinding inflate(LayoutInflater layoutInflater) {
|
||||
return inflate(layoutInflater, null, false);
|
||||
}
|
||||
|
||||
public static ViewStationNearBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z3) {
|
||||
View inflate = layoutInflater.inflate(R.layout.view_station_near, viewGroup, false);
|
||||
if (z3) {
|
||||
viewGroup.addView(inflate);
|
||||
}
|
||||
return bind(inflate);
|
||||
}
|
||||
|
||||
public ConstraintLayout getRoot() {
|
||||
return this.rootView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.adif.elcanomovil.uiHome.databinding;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ImageButton;
|
||||
import android.widget.TextView;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.adif.elcanomovil.uiHome.R;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class ViewUserFavoritesBinding {
|
||||
public final RecyclerView recycleViewFavouriteStations;
|
||||
private final ConstraintLayout rootView;
|
||||
public final ImageButton userFavoritesActionMore;
|
||||
public final TextView userFavoritesTitle;
|
||||
public final TextView viewFavouriteStationsEmpty;
|
||||
|
||||
private ViewUserFavoritesBinding(ConstraintLayout constraintLayout, RecyclerView recyclerView, ImageButton imageButton, TextView textView, TextView textView2) {
|
||||
this.rootView = constraintLayout;
|
||||
this.recycleViewFavouriteStations = recyclerView;
|
||||
this.userFavoritesActionMore = imageButton;
|
||||
this.userFavoritesTitle = textView;
|
||||
this.viewFavouriteStationsEmpty = textView2;
|
||||
}
|
||||
|
||||
public static ViewUserFavoritesBinding bind(View view) {
|
||||
int i = R.id.recycleViewFavouriteStations;
|
||||
RecyclerView recyclerView = (RecyclerView) AbstractC0105a.t(view, i);
|
||||
if (recyclerView != null) {
|
||||
i = R.id.userFavoritesActionMore;
|
||||
ImageButton imageButton = (ImageButton) AbstractC0105a.t(view, i);
|
||||
if (imageButton != null) {
|
||||
i = R.id.userFavoritesTitle;
|
||||
TextView textView = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView != null) {
|
||||
i = R.id.viewFavouriteStationsEmpty;
|
||||
TextView textView2 = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView2 != null) {
|
||||
return new ViewUserFavoritesBinding((ConstraintLayout) view, recyclerView, imageButton, textView, textView2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
|
||||
}
|
||||
|
||||
public static ViewUserFavoritesBinding inflate(LayoutInflater layoutInflater) {
|
||||
return inflate(layoutInflater, null, false);
|
||||
}
|
||||
|
||||
public static ViewUserFavoritesBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z3) {
|
||||
View inflate = layoutInflater.inflate(R.layout.view_user_favorites, viewGroup, false);
|
||||
if (z3) {
|
||||
viewGroup.addView(inflate);
|
||||
}
|
||||
return bind(inflate);
|
||||
}
|
||||
|
||||
public ConstraintLayout getRoot() {
|
||||
return this.rootView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.adif.elcanomovil.uiHome.di;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetHomeStationUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetStationsForRegionUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetWorkStationUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.user.GetUserLastLocationUseCase;
|
||||
import com.adif.elcanomovil.uiHome.views.HomeMapViewModel;
|
||||
import dagger.Module;
|
||||
import dagger.Provides;
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.qualifiers.ApplicationContext;
|
||||
import dagger.hilt.components.SingletonComponent;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u00000\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\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\bÇ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J2\u0010\u0003\u001a\u00020\u00042\b\b\u0001\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\f2\u0006\u0010\r\u001a\u00020\u000eH\u0007¨\u0006\u000f"}, d2 = {"Lcom/adif/elcanomovil/uiHome/di/HomeModule;", "", "()V", "provideHomeMapViewModel", "Lcom/adif/elcanomovil/uiHome/views/HomeMapViewModel;", "context", "Landroid/content/Context;", "getStationsUseCase", "Lcom/adif/elcanomovil/domain/usecases/stations/GetStationsForRegionUseCase;", "getUserLastLocationUseCase", "Lcom/adif/elcanomovil/domain/usecases/user/GetUserLastLocationUseCase;", "getHomeStationUseCase", "Lcom/adif/elcanomovil/domain/usecases/stations/GetHomeStationUseCase;", "getWorkStationUseCase", "Lcom/adif/elcanomovil/domain/usecases/stations/GetWorkStationUseCase;", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@Module
|
||||
@InstallIn({SingletonComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class HomeModule {
|
||||
public static final HomeModule INSTANCE = new HomeModule();
|
||||
|
||||
private HomeModule() {
|
||||
}
|
||||
|
||||
@Provides
|
||||
public final HomeMapViewModel provideHomeMapViewModel(@ApplicationContext Context context, GetStationsForRegionUseCase getStationsUseCase, GetUserLastLocationUseCase getUserLastLocationUseCase, GetHomeStationUseCase getHomeStationUseCase, GetWorkStationUseCase getWorkStationUseCase) {
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
Intrinsics.checkNotNullParameter(getStationsUseCase, "getStationsUseCase");
|
||||
Intrinsics.checkNotNullParameter(getUserLastLocationUseCase, "getUserLastLocationUseCase");
|
||||
Intrinsics.checkNotNullParameter(getHomeStationUseCase, "getHomeStationUseCase");
|
||||
Intrinsics.checkNotNullParameter(getWorkStationUseCase, "getWorkStationUseCase");
|
||||
return new HomeMapViewModel(context, getStationsUseCase, getUserLastLocationUseCase, getHomeStationUseCase, getWorkStationUseCase);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.adif.elcanomovil.uiHome.di;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetHomeStationUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetStationsForRegionUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetWorkStationUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.user.GetUserLastLocationUseCase;
|
||||
import com.adif.elcanomovil.uiHome.views.HomeMapViewModel;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.qualifiers.ApplicationContext"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class HomeModule_ProvideHomeMapViewModelFactory implements Factory<HomeMapViewModel> {
|
||||
private final Provider<Context> contextProvider;
|
||||
private final Provider<GetHomeStationUseCase> getHomeStationUseCaseProvider;
|
||||
private final Provider<GetStationsForRegionUseCase> getStationsUseCaseProvider;
|
||||
private final Provider<GetUserLastLocationUseCase> getUserLastLocationUseCaseProvider;
|
||||
private final Provider<GetWorkStationUseCase> getWorkStationUseCaseProvider;
|
||||
|
||||
public HomeModule_ProvideHomeMapViewModelFactory(Provider<Context> provider, Provider<GetStationsForRegionUseCase> provider2, Provider<GetUserLastLocationUseCase> provider3, Provider<GetHomeStationUseCase> provider4, Provider<GetWorkStationUseCase> provider5) {
|
||||
this.contextProvider = provider;
|
||||
this.getStationsUseCaseProvider = provider2;
|
||||
this.getUserLastLocationUseCaseProvider = provider3;
|
||||
this.getHomeStationUseCaseProvider = provider4;
|
||||
this.getWorkStationUseCaseProvider = provider5;
|
||||
}
|
||||
|
||||
public static HomeModule_ProvideHomeMapViewModelFactory create(Provider<Context> provider, Provider<GetStationsForRegionUseCase> provider2, Provider<GetUserLastLocationUseCase> provider3, Provider<GetHomeStationUseCase> provider4, Provider<GetWorkStationUseCase> provider5) {
|
||||
return new HomeModule_ProvideHomeMapViewModelFactory(provider, provider2, provider3, provider4, provider5);
|
||||
}
|
||||
|
||||
public static HomeMapViewModel provideHomeMapViewModel(Context context, GetStationsForRegionUseCase getStationsForRegionUseCase, GetUserLastLocationUseCase getUserLastLocationUseCase, GetHomeStationUseCase getHomeStationUseCase, GetWorkStationUseCase getWorkStationUseCase) {
|
||||
return (HomeMapViewModel) Preconditions.checkNotNullFromProvides(HomeModule.INSTANCE.provideHomeMapViewModel(context, getStationsForRegionUseCase, getUserLastLocationUseCase, getHomeStationUseCase, getWorkStationUseCase));
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public HomeMapViewModel get() {
|
||||
return provideHomeMapViewModel(this.contextProvider.get(), this.getStationsUseCaseProvider.get(), this.getUserLastLocationUseCaseProvider.get(), this.getHomeStationUseCaseProvider.get(), this.getWorkStationUseCaseProvider.get());
|
||||
}
|
||||
}
|
||||
51
apk_decompiled/sources/com/adif/elcanomovil/uiHome/f.java
Normal file
51
apk_decompiled/sources/com/adif/elcanomovil/uiHome/f.java
Normal file
@@ -0,0 +1,51 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.Navigation;
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.NavigationHandler;
|
||||
import com.adif.elcanomovil.uiHome.databinding.FragmentHomeBinding;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class f implements FlowCollector {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ int f5072a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeFragment f5073b;
|
||||
|
||||
public /* synthetic */ f(HomeFragment homeFragment, int i) {
|
||||
this.f5072a = i;
|
||||
this.f5073b = homeFragment;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
public final Object emit(Object obj, Continuation continuation) {
|
||||
NavigationHandler navigationHandler;
|
||||
FragmentHomeBinding fragmentHomeBinding;
|
||||
switch (this.f5072a) {
|
||||
case 0:
|
||||
navigationHandler = this.f5073b.navigationHandler;
|
||||
navigationHandler.invoke2((Navigation) obj);
|
||||
return Unit.INSTANCE;
|
||||
case 1:
|
||||
this.f5073b.onViewStateUpdated((HomeFragmentViewState) obj);
|
||||
return Unit.INSTANCE;
|
||||
case 2:
|
||||
this.f5073b.checkAndAskUserPermission();
|
||||
return Unit.INSTANCE;
|
||||
default:
|
||||
boolean booleanValue = ((Boolean) obj).booleanValue();
|
||||
fragmentHomeBinding = this.f5073b.binding;
|
||||
if (fragmentHomeBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentHomeBinding = null;
|
||||
}
|
||||
fragmentHomeBinding.layoutHomeMap.setLocationAvailableAndCenterCamera(booleanValue);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
}
|
||||
61
apk_decompiled/sources/com/adif/elcanomovil/uiHome/g.java
Normal file
61
apk_decompiled/sources/com/adif/elcanomovil/uiHome/g.java
Normal file
@@ -0,0 +1,61 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.Navigation;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class g extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5074a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeFragment f5075b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public g(HomeFragment homeFragment, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5075b = homeFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new g(this.f5075b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((g) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
HomeViewModel viewModel;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f5074a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
HomeFragment homeFragment = this.f5075b;
|
||||
viewModel = homeFragment.getViewModel();
|
||||
Flow<Navigation> navigation = viewModel.getNavigation();
|
||||
f fVar = new f(homeFragment, 0);
|
||||
this.f5074a = 1;
|
||||
if (navigation.collect(fVar, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
60
apk_decompiled/sources/com/adif/elcanomovil/uiHome/h.java
Normal file
60
apk_decompiled/sources/com/adif/elcanomovil/uiHome/h.java
Normal file
@@ -0,0 +1,60 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import androidx.lifecycle.q0;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class h extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5076a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeFragment f5077b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public h(HomeFragment homeFragment, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5077b = homeFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new h(this.f5077b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((h) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f5076a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
HomeFragment homeFragment = this.f5077b;
|
||||
androidx.lifecycle.C lifecycle = homeFragment.getLifecycle();
|
||||
Intrinsics.checkNotNullExpressionValue(lifecycle, "<get-lifecycle>(...)");
|
||||
g gVar = new g(homeFragment, null);
|
||||
this.f5076a = 1;
|
||||
if (q0.l(lifecycle, gVar, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
61
apk_decompiled/sources/com/adif/elcanomovil/uiHome/i.java
Normal file
61
apk_decompiled/sources/com/adif/elcanomovil/uiHome/i.java
Normal file
@@ -0,0 +1,61 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import kotlin.KotlinNothingValueException;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.flow.StateFlow;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class i extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5078a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeFragment f5079b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public i(HomeFragment homeFragment, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5079b = homeFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new i(this.f5079b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((i) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
HomeViewModel viewModel;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f5078a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
HomeFragment homeFragment = this.f5079b;
|
||||
viewModel = homeFragment.getViewModel();
|
||||
StateFlow<HomeFragmentViewState> viewState = viewModel.getViewState();
|
||||
f fVar = new f(homeFragment, 1);
|
||||
this.f5078a = 1;
|
||||
if (viewState.collect(fVar, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
throw new KotlinNothingValueException();
|
||||
}
|
||||
}
|
||||
60
apk_decompiled/sources/com/adif/elcanomovil/uiHome/j.java
Normal file
60
apk_decompiled/sources/com/adif/elcanomovil/uiHome/j.java
Normal file
@@ -0,0 +1,60 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import androidx.lifecycle.q0;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class j extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5080a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeFragment f5081b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public j(HomeFragment homeFragment, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5081b = homeFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new j(this.f5081b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((j) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f5080a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
HomeFragment homeFragment = this.f5081b;
|
||||
androidx.lifecycle.C lifecycle = homeFragment.getLifecycle();
|
||||
Intrinsics.checkNotNullExpressionValue(lifecycle, "<get-lifecycle>(...)");
|
||||
i iVar = new i(homeFragment, null);
|
||||
this.f5080a = 1;
|
||||
if (q0.l(lifecycle, iVar, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
60
apk_decompiled/sources/com/adif/elcanomovil/uiHome/k.java
Normal file
60
apk_decompiled/sources/com/adif/elcanomovil/uiHome/k.java
Normal file
@@ -0,0 +1,60 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class k extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5082a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeFragment f5083b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public k(HomeFragment homeFragment, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5083b = homeFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new k(this.f5083b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((k) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
HomeViewModel viewModel;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f5082a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
HomeFragment homeFragment = this.f5083b;
|
||||
viewModel = homeFragment.getViewModel();
|
||||
Flow<Unit> requestLocationPermission = viewModel.getRequestLocationPermission();
|
||||
f fVar = new f(homeFragment, 2);
|
||||
this.f5082a = 1;
|
||||
if (requestLocationPermission.collect(fVar, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
60
apk_decompiled/sources/com/adif/elcanomovil/uiHome/l.java
Normal file
60
apk_decompiled/sources/com/adif/elcanomovil/uiHome/l.java
Normal file
@@ -0,0 +1,60 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import androidx.lifecycle.q0;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class l extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5084a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeFragment f5085b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public l(HomeFragment homeFragment, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5085b = homeFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new l(this.f5085b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((l) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f5084a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
HomeFragment homeFragment = this.f5085b;
|
||||
androidx.lifecycle.C lifecycle = homeFragment.getLifecycle();
|
||||
Intrinsics.checkNotNullExpressionValue(lifecycle, "<get-lifecycle>(...)");
|
||||
k kVar = new k(homeFragment, null);
|
||||
this.f5084a = 1;
|
||||
if (q0.l(lifecycle, kVar, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
60
apk_decompiled/sources/com/adif/elcanomovil/uiHome/m.java
Normal file
60
apk_decompiled/sources/com/adif/elcanomovil/uiHome/m.java
Normal file
@@ -0,0 +1,60 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class m extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5086a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeFragment f5087b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public m(HomeFragment homeFragment, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5087b = homeFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new m(this.f5087b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((m) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
HomeViewModel viewModel;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f5086a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
HomeFragment homeFragment = this.f5087b;
|
||||
viewModel = homeFragment.getViewModel();
|
||||
Flow<Boolean> locationAvailable = viewModel.getLocationAvailable();
|
||||
f fVar = new f(homeFragment, 3);
|
||||
this.f5086a = 1;
|
||||
if (locationAvailable.collect(fVar, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.adif.elcanomovil.uiHome.mappers;
|
||||
|
||||
import android.location.Location;
|
||||
import com.google.android.gms.maps.model.LatLng;
|
||||
import com.google.firebase.messaging.Constants;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0000\bÆ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0012\u0010\u0003\u001a\u0004\u0018\u00010\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006J\u001c\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00040\u00072\u000e\u0010\u0005\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00060\u0007¨\u0006\b"}, d2 = {"Lcom/adif/elcanomovil/uiHome/mappers/LocationMapper;", "", "()V", "map", "Landroid/location/Location;", Constants.MessagePayloadKeys.FROM, "Lcom/google/android/gms/maps/model/LatLng;", "", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nLocationMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 LocationMapper.kt\ncom/adif/elcanomovil/uiHome/mappers/LocationMapper\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,17:1\n1603#2,9:18\n1855#2:27\n1856#2:29\n1612#2:30\n1#3:28\n*S KotlinDebug\n*F\n+ 1 LocationMapper.kt\ncom/adif/elcanomovil/uiHome/mappers/LocationMapper\n*L\n15#1:18,9\n15#1:27\n15#1:29\n15#1:30\n15#1:28\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class LocationMapper {
|
||||
public static final LocationMapper INSTANCE = new LocationMapper();
|
||||
|
||||
private LocationMapper() {
|
||||
}
|
||||
|
||||
public final Location map(LatLng from) {
|
||||
if (from == null) {
|
||||
return null;
|
||||
}
|
||||
Location location = new Location("gps");
|
||||
location.setLatitude(from.latitude);
|
||||
location.setLongitude(from.longitude);
|
||||
return location;
|
||||
}
|
||||
|
||||
public final List<Location> map(List<LatLng> from) {
|
||||
Intrinsics.checkNotNullParameter(from, "from");
|
||||
ArrayList arrayList = new ArrayList();
|
||||
Iterator<T> it = from.iterator();
|
||||
while (it.hasNext()) {
|
||||
Location map = INSTANCE.map((LatLng) it.next());
|
||||
if (map != null) {
|
||||
arrayList.add(map);
|
||||
}
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.adif.elcanomovil.uiHome.mappers;
|
||||
|
||||
import android.location.Location;
|
||||
import com.adif.elcanomovil.commonViews.data.StationViewEntity;
|
||||
import com.adif.elcanomovil.extensions.LocationExtensionsKt;
|
||||
import com.adif.elcanomovil.uiHome.data.StationMarker;
|
||||
import com.google.firebase.messaging.Constants;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0010 \n\u0000\bÆ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u001c\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u00062\b\u0010\u0007\u001a\u0004\u0018\u00010\bH\u0002J\u001c\u0010\t\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u00062\b\u0010\n\u001a\u0004\u0018\u00010\u000bH\u0002J2\u0010\f\u001a\u0004\u0018\u00010\b2\b\u0010\r\u001a\u0004\u0018\u00010\u00062\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\b2\b\u0010\u000e\u001a\u0004\u0018\u00010\u000b2\b\u0010\u000f\u001a\u0004\u0018\u00010\u000bJ<\u0010\f\u001a\b\u0012\u0004\u0012\u00020\b0\u00102\u000e\u0010\r\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00060\u00102\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\b2\b\u0010\u000e\u001a\u0004\u0018\u00010\u000b2\b\u0010\u000f\u001a\u0004\u0018\u00010\u000b¨\u0006\u0011"}, d2 = {"Lcom/adif/elcanomovil/uiHome/mappers/StationMarkerMapper;", "", "()V", "isSelectedStation", "", "station", "Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;", "selected", "Lcom/adif/elcanomovil/uiHome/data/StationMarker;", "isUserSelectionStation", "userStation", "", "map", Constants.MessagePayloadKeys.FROM, "homeStation", "workStation", "", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nStationMarkerMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 StationMarkerMapper.kt\ncom/adif/elcanomovil/uiHome/mappers/StationMarkerMapper\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,52:1\n1#2:53\n1#2:64\n1603#3,9:54\n1855#3:63\n1856#3:65\n1612#3:66\n*S KotlinDebug\n*F\n+ 1 StationMarkerMapper.kt\ncom/adif/elcanomovil/uiHome/mappers/StationMarkerMapper\n*L\n43#1:64\n43#1:54,9\n43#1:63\n43#1:65\n43#1:66\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationMarkerMapper {
|
||||
public static final StationMarkerMapper INSTANCE = new StationMarkerMapper();
|
||||
|
||||
private StationMarkerMapper() {
|
||||
}
|
||||
|
||||
private final boolean isSelectedStation(StationViewEntity station, StationMarker selected) {
|
||||
StationViewEntity station2;
|
||||
String str = null;
|
||||
String id = station != null ? station.getId() : null;
|
||||
if (selected != null && (station2 = selected.getStation()) != null) {
|
||||
str = station2.getId();
|
||||
}
|
||||
return Intrinsics.areEqual(id, str);
|
||||
}
|
||||
|
||||
private final boolean isUserSelectionStation(StationViewEntity station, String userStation) {
|
||||
return Intrinsics.areEqual(station != null ? station.getId() : null, userStation);
|
||||
}
|
||||
|
||||
public static /* synthetic */ StationMarker map$default(StationMarkerMapper stationMarkerMapper, StationViewEntity stationViewEntity, StationMarker stationMarker, String str, String str2, int i, Object obj) {
|
||||
if ((i & 2) != 0) {
|
||||
stationMarker = null;
|
||||
}
|
||||
return stationMarkerMapper.map(stationViewEntity, stationMarker, str, str2);
|
||||
}
|
||||
|
||||
public final StationMarker map(StationViewEntity from, StationMarker selected, String homeStation, String workStation) {
|
||||
if (from != null) {
|
||||
StationMarkerMapper stationMarkerMapper = INSTANCE;
|
||||
if (!stationMarkerMapper.isSelectedStation(from, selected)) {
|
||||
Location location = from.getLocation();
|
||||
selected = new StationMarker(null, from, location != null ? LocationExtensionsKt.toLatLng(location) : null, false);
|
||||
}
|
||||
if (stationMarkerMapper.isUserSelectionStation(selected != null ? selected.getStation() : null, homeStation)) {
|
||||
StationViewEntity station = selected != null ? selected.getStation() : null;
|
||||
if (station != null) {
|
||||
station.setType(StationViewEntity.Type.HOME);
|
||||
}
|
||||
} else {
|
||||
if (stationMarkerMapper.isUserSelectionStation(selected != null ? selected.getStation() : null, workStation)) {
|
||||
StationViewEntity station2 = selected != null ? selected.getStation() : null;
|
||||
if (station2 != null) {
|
||||
station2.setType(StationViewEntity.Type.WORK);
|
||||
}
|
||||
} else {
|
||||
StationViewEntity station3 = selected != null ? selected.getStation() : null;
|
||||
if (station3 != null) {
|
||||
station3.setType(StationViewEntity.Type.STATION);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (selected != null) {
|
||||
return selected;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static /* synthetic */ List map$default(StationMarkerMapper stationMarkerMapper, List list, StationMarker stationMarker, String str, String str2, int i, Object obj) {
|
||||
if ((i & 2) != 0) {
|
||||
stationMarker = null;
|
||||
}
|
||||
return stationMarkerMapper.map((List<StationViewEntity>) list, stationMarker, str, str2);
|
||||
}
|
||||
|
||||
public final List<StationMarker> map(List<StationViewEntity> from, StationMarker selected, String homeStation, String workStation) {
|
||||
Intrinsics.checkNotNullParameter(from, "from");
|
||||
ArrayList arrayList = new ArrayList();
|
||||
Iterator<T> it = from.iterator();
|
||||
while (it.hasNext()) {
|
||||
StationMarker map = INSTANCE.map((StationViewEntity) it.next(), selected, homeStation, workStation);
|
||||
if (map != null) {
|
||||
arrayList.add(map);
|
||||
}
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.adif.elcanomovil.uiHome.mappers;
|
||||
|
||||
import android.location.Location;
|
||||
import com.adif.elcanomovil.commonViews.data.StationViewEntity;
|
||||
import com.adif.elcanomovil.domain.entities.station.Station;
|
||||
import com.google.firebase.messaging.Constants;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0000\bÆ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0012\u0010\u0003\u001a\u0004\u0018\u00010\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006J\u001c\u0010\u0003\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00040\u00072\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00060\u0007¨\u0006\b"}, d2 = {"Lcom/adif/elcanomovil/uiHome/mappers/StationViewEntityMapper;", "", "()V", "map", "Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;", Constants.MessagePayloadKeys.FROM, "Lcom/adif/elcanomovil/domain/entities/station/Station;", "", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nStationViewEntityMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 StationViewEntityMapper.kt\ncom/adif/elcanomovil/uiHome/mappers/StationViewEntityMapper\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,31:1\n1#2:32\n1549#3:33\n1620#3,3:34\n*S KotlinDebug\n*F\n+ 1 StationViewEntityMapper.kt\ncom/adif/elcanomovil/uiHome/mappers/StationViewEntityMapper\n*L\n29#1:33\n29#1:34,3\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationViewEntityMapper {
|
||||
public static final StationViewEntityMapper INSTANCE = new StationViewEntityMapper();
|
||||
|
||||
private StationViewEntityMapper() {
|
||||
}
|
||||
|
||||
public final StationViewEntity map(Station from) {
|
||||
if (from == null) {
|
||||
return null;
|
||||
}
|
||||
String stationCode = from.getStationCode();
|
||||
String longName = from.getLongName();
|
||||
String shortName = from.getShortName();
|
||||
Float distance = from.getDistance();
|
||||
Float duration = from.getDuration();
|
||||
Location location = from.getLocation();
|
||||
String commercialZoneType = from.getCommercialZoneType();
|
||||
if (commercialZoneType == null) {
|
||||
commercialZoneType = "";
|
||||
}
|
||||
return new StationViewEntity(stationCode, longName, shortName, distance, duration, location, null, commercialZoneType, CollectionsKt.arrayListOf(StationViewEntity.Service.ARRIVALS, StationViewEntity.Service.DEPARTURES, StationViewEntity.Service.INFO, StationViewEntity.Service.COMMERCIAL), null, null, 1600, null);
|
||||
}
|
||||
|
||||
public final List<StationViewEntity> map(List<Station> from) {
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(from, "from");
|
||||
List<Station> list = from;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator<T> it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(INSTANCE.map((Station) it.next()));
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,442 @@
|
||||
package com.adif.elcanomovil.uiHome.mappers;
|
||||
|
||||
import android.content.Context;
|
||||
import android.text.Spannable;
|
||||
import com.adif.elcanomovil.commonViews.data.StationViewEntity;
|
||||
import com.adif.elcanomovil.domain.entities.DataType;
|
||||
import com.adif.elcanomovil.domain.entities.FavouriteStation;
|
||||
import com.adif.elcanomovil.domain.entities.FavouriteTrain;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetStationByIdUseCase;
|
||||
import com.adif.elcanomovil.resources.StringUtils;
|
||||
import com.adif.elcanomovil.uiHome.R;
|
||||
import com.google.firebase.messaging.Constants;
|
||||
import dagger.hilt.android.qualifiers.ApplicationContext;
|
||||
import javax.inject.Inject;
|
||||
import javax.inject.Singleton;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Singleton
|
||||
@Metadata(d1 = {"\u0000P\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010 \n\u0002\b\u0004\b\u0007\u0018\u00002\u00020\u0001B\u0019\b\u0007\u0012\b\b\u0001\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\u0018\u0010\u0007\u001a\u0004\u0018\u00010\b2\u0006\u0010\t\u001a\u00020\nH\u0082@¢\u0006\u0002\u0010\u000bJ\u0018\u0010\f\u001a\u0004\u0018\u00010\r2\u0006\u0010\t\u001a\u00020\nH\u0082@¢\u0006\u0002\u0010\u000bJ\u0012\u0010\u000e\u001a\u0004\u0018\u00010\r2\u0006\u0010\t\u001a\u00020\nH\u0002J\u0016\u0010\u000f\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u0012H\u0082@¢\u0006\u0002\u0010\u0013J\u0010\u0010\u0014\u001a\u00020\r2\u0006\u0010\u0011\u001a\u00020\u0012H\u0002J\u0010\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0017\u001a\u00020\u0018H\u0002J&\u0010\u0019\u001a\n\u0012\u0004\u0012\u00020\b\u0018\u00010\u001a2\u000e\u0010\u001b\u001a\n\u0012\u0004\u0012\u00020\n\u0018\u00010\u001aH\u0086@¢\u0006\u0002\u0010\u001cJ&\u0010\u001d\u001a\n\u0012\u0004\u0012\u00020\b\u0018\u00010\u001a2\u000e\u0010\u001b\u001a\n\u0012\u0004\u0012\u00020\u0012\u0018\u00010\u001aH\u0086@¢\u0006\u0002\u0010\u001cR\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u001e"}, d2 = {"Lcom/adif/elcanomovil/uiHome/mappers/UserFavoriteVOMapper;", "", "context", "Landroid/content/Context;", "getStationByIdUseCase", "Lcom/adif/elcanomovil/domain/usecases/stations/GetStationByIdUseCase;", "(Landroid/content/Context;Lcom/adif/elcanomovil/domain/usecases/stations/GetStationByIdUseCase;)V", "favouriteStationToStationVO", "Lcom/adif/elcanomovil/uiHome/data/UserFavoriteVO;", "stationFavourite", "Lcom/adif/elcanomovil/domain/entities/FavouriteStation;", "(Lcom/adif/elcanomovil/domain/entities/FavouriteStation;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "getSubtitle", "Landroid/text/Spannable;", "getTitle", "getTrainSubTitle", "", "favouriteTrain", "Lcom/adif/elcanomovil/domain/entities/FavouriteTrain;", "(Lcom/adif/elcanomovil/domain/entities/FavouriteTrain;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "getTrainTitle", "getTypeTraffic", "Lcom/adif/elcanomovil/commonViews/data/StationViewEntity$TypeTraffic;", "isCercanaias", "", "mapFavourites", "", Constants.MessagePayloadKeys.FROM, "(Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "mapTrainFavourites", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nUserFavoriteVOMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 UserFavoriteVOMapper.kt\ncom/adif/elcanomovil/uiHome/mappers/UserFavoriteVOMapper\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,162:1\n1603#2,9:163\n1855#2:172\n1856#2:174\n1612#2:175\n1549#2:176\n1620#2,3:177\n1#3:173\n1#3:180\n*S KotlinDebug\n*F\n+ 1 UserFavoriteVOMapper.kt\ncom/adif/elcanomovil/uiHome/mappers/UserFavoriteVOMapper\n*L\n23#1:163,9\n23#1:172\n23#1:174\n23#1:175\n42#1:176\n42#1:177,3\n23#1:173\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class UserFavoriteVOMapper {
|
||||
private final Context context;
|
||||
private final GetStationByIdUseCase getStationByIdUseCase;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[DataType.values().length];
|
||||
try {
|
||||
iArr[DataType.ARRIVALS.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[DataType.DEPARTURES.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[DataType.INFO.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
try {
|
||||
iArr[DataType.ROUTE.ordinal()] = 4;
|
||||
} catch (NoSuchFieldError unused4) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
|
||||
@Inject
|
||||
public UserFavoriteVOMapper(@ApplicationContext Context context, GetStationByIdUseCase getStationByIdUseCase) {
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
Intrinsics.checkNotNullParameter(getStationByIdUseCase, "getStationByIdUseCase");
|
||||
this.context = context;
|
||||
this.getStationByIdUseCase = getStationByIdUseCase;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
/* JADX WARN: Removed duplicated region for block: B:12:0x0058 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:18:? A[RETURN, SYNTHETIC] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:21:0x0039 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object favouriteStationToStationVO(com.adif.elcanomovil.domain.entities.FavouriteStation r13, kotlin.coroutines.Continuation<? super com.adif.elcanomovil.uiHome.data.UserFavoriteVO> r14) {
|
||||
/*
|
||||
r12 = this;
|
||||
boolean r0 = r14 instanceof H1.a
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r14
|
||||
H1.a r0 = (H1.a) r0
|
||||
int r1 = r0.f666f
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.f666f = r1
|
||||
goto L18
|
||||
L13:
|
||||
H1.a r0 = new H1.a
|
||||
r0.<init>(r12, r14)
|
||||
L18:
|
||||
java.lang.Object r14 = r0.f664d
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.f666f
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L39
|
||||
if (r2 != r3) goto L31
|
||||
android.text.Spannable r12 = r0.f663c
|
||||
com.adif.elcanomovil.domain.entities.FavouriteStation r13 = r0.f662b
|
||||
com.adif.elcanomovil.uiHome.mappers.UserFavoriteVOMapper r0 = r0.f661a
|
||||
kotlin.ResultKt.throwOnFailure(r14)
|
||||
r6 = r12
|
||||
r12 = r0
|
||||
goto L53
|
||||
L31:
|
||||
java.lang.IllegalStateException r12 = new java.lang.IllegalStateException
|
||||
java.lang.String r13 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r12.<init>(r13)
|
||||
throw r12
|
||||
L39:
|
||||
kotlin.ResultKt.throwOnFailure(r14)
|
||||
android.text.Spannable r14 = r12.getTitle(r13)
|
||||
if (r14 == 0) goto L84
|
||||
r0.f661a = r12
|
||||
r0.f662b = r13
|
||||
r0.f663c = r14
|
||||
r0.f666f = r3
|
||||
java.lang.Object r0 = r12.getSubtitle(r13, r0)
|
||||
if (r0 != r1) goto L51
|
||||
return r1
|
||||
L51:
|
||||
r6 = r14
|
||||
r14 = r0
|
||||
L53:
|
||||
r8 = r14
|
||||
android.text.Spannable r8 = (android.text.Spannable) r8
|
||||
if (r8 == 0) goto L84
|
||||
com.adif.elcanomovil.uiHome.data.UserFavoriteVO r4 = new com.adif.elcanomovil.uiHome.data.UserFavoriteVO
|
||||
int r14 = r13.getId()
|
||||
java.lang.String r5 = java.lang.String.valueOf(r14)
|
||||
java.lang.String r7 = r13.getIdentifierStation()
|
||||
java.lang.String r9 = r13.getIdentifierToStation()
|
||||
java.lang.String r14 = r13.getType()
|
||||
com.adif.elcanomovil.domain.entities.DataType r10 = com.adif.elcanomovil.domain.entities.DataType.valueOf(r14)
|
||||
java.lang.Boolean r13 = r13.isCercanias()
|
||||
if (r13 == 0) goto L7c
|
||||
boolean r3 = r13.booleanValue()
|
||||
L7c:
|
||||
com.adif.elcanomovil.commonViews.data.StationViewEntity$TypeTraffic r11 = r12.getTypeTraffic(r3)
|
||||
r4.<init>(r5, r6, r7, r8, r9, r10, r11)
|
||||
return r4
|
||||
L84:
|
||||
r12 = 0
|
||||
return r12
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiHome.mappers.UserFavoriteVOMapper.favouriteStationToStationVO(com.adif.elcanomovil.domain.entities.FavouriteStation, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
/* JADX WARN: Removed duplicated region for block: B:13:0x010d */
|
||||
/* JADX WARN: Removed duplicated region for block: B:16:0x0115 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:29:0x01b3 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:32:0x01bb */
|
||||
/* JADX WARN: Removed duplicated region for block: B:39:0x0047 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0029 */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object getSubtitle(com.adif.elcanomovil.domain.entities.FavouriteStation r11, kotlin.coroutines.Continuation<? super android.text.Spannable> r12) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 546
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiHome.mappers.UserFavoriteVOMapper.getSubtitle(com.adif.elcanomovil.domain.entities.FavouriteStation, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
private final Spannable getTitle(FavouriteStation stationFavourite) {
|
||||
int i = WhenMappings.$EnumSwitchMapping$0[DataType.valueOf(stationFavourite.getType()).ordinal()];
|
||||
if (i == 1 || i == 2 || i == 3) {
|
||||
StringUtils.Companion companion = StringUtils.INSTANCE;
|
||||
Context context = this.context;
|
||||
String stationName = stationFavourite.getStationName();
|
||||
if (stationName == null) {
|
||||
stationName = "";
|
||||
}
|
||||
return companion.textSemiBold(context, 0, 0, null, stationName);
|
||||
}
|
||||
if (i != 4) {
|
||||
return null;
|
||||
}
|
||||
StringBuilder sb = new StringBuilder();
|
||||
Context context2 = this.context;
|
||||
int i4 = R.string.from_route;
|
||||
sb.append(context2.getString(i4));
|
||||
sb.append(' ');
|
||||
sb.append(stationFavourite.getStationName());
|
||||
String sb2 = sb.toString();
|
||||
StringUtils.Companion companion2 = StringUtils.INSTANCE;
|
||||
Context context3 = this.context;
|
||||
return companion2.textSemiBold(context3, 0, context3.getString(i4).length(), Integer.valueOf(this.context.getResources().getColor(R.color.colorPrimary)), sb2);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
/* JADX WARN: Removed duplicated region for block: B:13:0x00bb */
|
||||
/* JADX WARN: Removed duplicated region for block: B:22:0x008f */
|
||||
/* JADX WARN: Removed duplicated region for block: B:26:0x00b2 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:27:0x0094 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:28:0x005f */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0025 */
|
||||
/* JADX WARN: Type inference failed for: r12v11 */
|
||||
/* JADX WARN: Type inference failed for: r12v12 */
|
||||
/* JADX WARN: Type inference failed for: r12v5, types: [java.lang.Object[], java.io.Serializable] */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object getTrainSubTitle(com.adif.elcanomovil.domain.entities.FavouriteTrain r11, kotlin.coroutines.Continuation<? super java.lang.String> r12) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 214
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiHome.mappers.UserFavoriteVOMapper.getTrainSubTitle(com.adif.elcanomovil.domain.entities.FavouriteTrain, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
private final Spannable getTrainTitle(FavouriteTrain favouriteTrain) {
|
||||
return StringUtils.INSTANCE.textSemiBold(this.context, 0, 0, null, favouriteTrain.getOperator() + ' ' + favouriteTrain.getCommercialProduct() + '#' + favouriteTrain.getCommercialNumber());
|
||||
}
|
||||
|
||||
private final StationViewEntity.TypeTraffic getTypeTraffic(boolean isCercanaias) {
|
||||
return isCercanaias ? StationViewEntity.TypeTraffic.CERCANIAS : StationViewEntity.TypeTraffic.AVLDMD;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:13:0x0076 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:17:0x0056 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:22:0x007c */
|
||||
/* JADX WARN: Removed duplicated region for block: B:26:0x003d */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
/* JADX WARN: Type inference failed for: r7v8, types: [java.util.Collection] */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:21:0x006e -> B:10:0x0033). Please report as a decompilation issue!!! */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object mapFavourites(java.util.List<com.adif.elcanomovil.domain.entities.FavouriteStation> r7, kotlin.coroutines.Continuation<? super java.util.List<com.adif.elcanomovil.uiHome.data.UserFavoriteVO>> r8) {
|
||||
/*
|
||||
r6 = this;
|
||||
boolean r0 = r8 instanceof H1.d
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r8
|
||||
H1.d r0 = (H1.d) r0
|
||||
int r1 = r0.f684f
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.f684f = r1
|
||||
goto L18
|
||||
L13:
|
||||
H1.d r0 = new H1.d
|
||||
r0.<init>(r6, r8)
|
||||
L18:
|
||||
java.lang.Object r8 = r0.f682d
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.f684f
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L3d
|
||||
if (r2 != r3) goto L35
|
||||
java.util.Iterator r6 = r0.f681c
|
||||
java.util.Collection r7 = r0.f680b
|
||||
java.util.Collection r7 = (java.util.Collection) r7
|
||||
com.adif.elcanomovil.uiHome.mappers.UserFavoriteVOMapper r2 = r0.f679a
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
r5 = r0
|
||||
r0 = r7
|
||||
r7 = r2
|
||||
L33:
|
||||
r2 = r5
|
||||
goto L72
|
||||
L35:
|
||||
java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
|
||||
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r6.<init>(r7)
|
||||
throw r6
|
||||
L3d:
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
if (r7 == 0) goto L7f
|
||||
java.lang.Iterable r7 = (java.lang.Iterable) r7
|
||||
java.util.ArrayList r8 = new java.util.ArrayList
|
||||
r8.<init>()
|
||||
java.util.Iterator r7 = r7.iterator()
|
||||
r5 = r7
|
||||
r7 = r6
|
||||
r6 = r5
|
||||
L50:
|
||||
boolean r2 = r6.hasNext()
|
||||
if (r2 == 0) goto L7c
|
||||
java.lang.Object r2 = r6.next()
|
||||
com.adif.elcanomovil.domain.entities.FavouriteStation r2 = (com.adif.elcanomovil.domain.entities.FavouriteStation) r2
|
||||
r0.f679a = r7
|
||||
r4 = r8
|
||||
java.util.Collection r4 = (java.util.Collection) r4
|
||||
r0.f680b = r4
|
||||
r0.f681c = r6
|
||||
r0.f684f = r3
|
||||
java.lang.Object r2 = r7.favouriteStationToStationVO(r2, r0)
|
||||
if (r2 != r1) goto L6e
|
||||
return r1
|
||||
L6e:
|
||||
r5 = r0
|
||||
r0 = r8
|
||||
r8 = r2
|
||||
goto L33
|
||||
L72:
|
||||
com.adif.elcanomovil.uiHome.data.UserFavoriteVO r8 = (com.adif.elcanomovil.uiHome.data.UserFavoriteVO) r8
|
||||
if (r8 == 0) goto L79
|
||||
r0.add(r8)
|
||||
L79:
|
||||
r8 = r0
|
||||
r0 = r2
|
||||
goto L50
|
||||
L7c:
|
||||
java.util.List r8 = (java.util.List) r8
|
||||
return r8
|
||||
L7f:
|
||||
r6 = 0
|
||||
return r6
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiHome.mappers.UserFavoriteVOMapper.mapFavourites(java.util.List, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:13:0x006d */
|
||||
/* JADX WARN: Removed duplicated region for block: B:18:0x00b8 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:22:0x0050 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0029 */
|
||||
/* JADX WARN: Type inference failed for: r2v5, types: [java.util.Collection] */
|
||||
/* JADX WARN: Type inference failed for: r9v3, types: [java.util.Collection] */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:17:0x009d -> B:10:0x00a1). Please report as a decompilation issue!!! */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object mapTrainFavourites(java.util.List<com.adif.elcanomovil.domain.entities.FavouriteTrain> r17, kotlin.coroutines.Continuation<? super java.util.List<com.adif.elcanomovil.uiHome.data.UserFavoriteVO>> r18) {
|
||||
/*
|
||||
r16 = this;
|
||||
r0 = r18
|
||||
boolean r1 = r0 instanceof H1.e
|
||||
if (r1 == 0) goto L17
|
||||
r1 = r0
|
||||
H1.e r1 = (H1.e) r1
|
||||
int r2 = r1.f692j
|
||||
r3 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r4 = r2 & r3
|
||||
if (r4 == 0) goto L17
|
||||
int r2 = r2 - r3
|
||||
r1.f692j = r2
|
||||
r2 = r16
|
||||
goto L1e
|
||||
L17:
|
||||
H1.e r1 = new H1.e
|
||||
r2 = r16
|
||||
r1.<init>(r2, r0)
|
||||
L1e:
|
||||
java.lang.Object r0 = r1.h
|
||||
java.lang.Object r3 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r4 = r1.f692j
|
||||
r5 = 1
|
||||
if (r4 == 0) goto L50
|
||||
if (r4 != r5) goto L48
|
||||
java.util.Collection r2 = r1.f691g
|
||||
java.util.Collection r2 = (java.util.Collection) r2
|
||||
java.lang.String r4 = r1.f690f
|
||||
android.text.Spannable r6 = r1.f689e
|
||||
java.lang.String r7 = r1.f688d
|
||||
java.util.Iterator r8 = r1.f687c
|
||||
java.util.Collection r9 = r1.f686b
|
||||
java.util.Collection r9 = (java.util.Collection) r9
|
||||
com.adif.elcanomovil.uiHome.mappers.UserFavoriteVOMapper r10 = r1.f685a
|
||||
kotlin.ResultKt.throwOnFailure(r0)
|
||||
r15 = r8
|
||||
r14 = r9
|
||||
r8 = r6
|
||||
r9 = r7
|
||||
r7 = r4
|
||||
r4 = r2
|
||||
r2 = r10
|
||||
goto La1
|
||||
L48:
|
||||
java.lang.IllegalStateException r0 = new java.lang.IllegalStateException
|
||||
java.lang.String r1 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r0.<init>(r1)
|
||||
throw r0
|
||||
L50:
|
||||
kotlin.ResultKt.throwOnFailure(r0)
|
||||
if (r17 == 0) goto Lbb
|
||||
r0 = r17
|
||||
java.lang.Iterable r0 = (java.lang.Iterable) r0
|
||||
java.util.ArrayList r4 = new java.util.ArrayList
|
||||
int r6 = kotlin.collections.CollectionsKt.g(r0)
|
||||
r4.<init>(r6)
|
||||
java.util.Iterator r0 = r0.iterator()
|
||||
r8 = r0
|
||||
L67:
|
||||
boolean r0 = r8.hasNext()
|
||||
if (r0 == 0) goto Lb8
|
||||
java.lang.Object r0 = r8.next()
|
||||
com.adif.elcanomovil.domain.entities.FavouriteTrain r0 = (com.adif.elcanomovil.domain.entities.FavouriteTrain) r0
|
||||
long r6 = r0.getLaunchingDate()
|
||||
java.lang.String r6 = java.lang.String.valueOf(r6)
|
||||
android.text.Spannable r7 = r2.getTrainTitle(r0)
|
||||
java.lang.String r9 = r0.getCommercialNumber()
|
||||
r1.f685a = r2
|
||||
r10 = r4
|
||||
java.util.Collection r10 = (java.util.Collection) r10
|
||||
r1.f686b = r10
|
||||
r1.f687c = r8
|
||||
r1.f688d = r9
|
||||
r1.f689e = r7
|
||||
r1.f690f = r6
|
||||
r1.f691g = r10
|
||||
r1.f692j = r5
|
||||
java.lang.Object r0 = r2.getTrainSubTitle(r0, r1)
|
||||
if (r0 != r3) goto L9d
|
||||
return r3
|
||||
L9d:
|
||||
r14 = r4
|
||||
r15 = r8
|
||||
r8 = r7
|
||||
r7 = r6
|
||||
La1:
|
||||
r10 = r0
|
||||
java.lang.CharSequence r10 = (java.lang.CharSequence) r10
|
||||
com.adif.elcanomovil.domain.entities.DataType r12 = com.adif.elcanomovil.domain.entities.DataType.COMMERCIAL
|
||||
r0 = 0
|
||||
com.adif.elcanomovil.commonViews.data.StationViewEntity$TypeTraffic r13 = r2.getTypeTraffic(r0)
|
||||
com.adif.elcanomovil.uiHome.data.UserFavoriteVO r6 = new com.adif.elcanomovil.uiHome.data.UserFavoriteVO
|
||||
java.lang.String r11 = ""
|
||||
r6.<init>(r7, r8, r9, r10, r11, r12, r13)
|
||||
r4.add(r6)
|
||||
r4 = r14
|
||||
r8 = r15
|
||||
goto L67
|
||||
Lb8:
|
||||
java.util.List r4 = (java.util.List) r4
|
||||
return r4
|
||||
Lbb:
|
||||
r0 = 0
|
||||
return r0
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiHome.mappers.UserFavoriteVOMapper.mapTrainFavourites(java.util.List, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.adif.elcanomovil.uiHome.mappers;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetStationByIdUseCase;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.qualifiers.ApplicationContext"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class UserFavoriteVOMapper_Factory implements Factory<UserFavoriteVOMapper> {
|
||||
private final Provider<Context> contextProvider;
|
||||
private final Provider<GetStationByIdUseCase> getStationByIdUseCaseProvider;
|
||||
|
||||
public UserFavoriteVOMapper_Factory(Provider<Context> provider, Provider<GetStationByIdUseCase> provider2) {
|
||||
this.contextProvider = provider;
|
||||
this.getStationByIdUseCaseProvider = provider2;
|
||||
}
|
||||
|
||||
public static UserFavoriteVOMapper_Factory create(Provider<Context> provider, Provider<GetStationByIdUseCase> provider2) {
|
||||
return new UserFavoriteVOMapper_Factory(provider, provider2);
|
||||
}
|
||||
|
||||
public static UserFavoriteVOMapper newInstance(Context context, GetStationByIdUseCase getStationByIdUseCase) {
|
||||
return new UserFavoriteVOMapper(context, getStationByIdUseCase);
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public UserFavoriteVOMapper get() {
|
||||
return newInstance(this.contextProvider.get(), this.getStationByIdUseCaseProvider.get());
|
||||
}
|
||||
}
|
||||
60
apk_decompiled/sources/com/adif/elcanomovil/uiHome/n.java
Normal file
60
apk_decompiled/sources/com/adif/elcanomovil/uiHome/n.java
Normal file
@@ -0,0 +1,60 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import androidx.lifecycle.q0;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class n extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5088a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeFragment f5089b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public n(HomeFragment homeFragment, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5089b = homeFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new n(this.f5089b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((n) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f5088a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
HomeFragment homeFragment = this.f5089b;
|
||||
androidx.lifecycle.C lifecycle = homeFragment.getLifecycle();
|
||||
Intrinsics.checkNotNullExpressionValue(lifecycle, "<get-lifecycle>(...)");
|
||||
m mVar = new m(homeFragment, null);
|
||||
this.f5088a = 1;
|
||||
if (q0.l(lifecycle, mVar, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
30
apk_decompiled/sources/com/adif/elcanomovil/uiHome/o.java
Normal file
30
apk_decompiled/sources/com/adif/elcanomovil/uiHome/o.java
Normal file
@@ -0,0 +1,30 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.uiHome.HomeFragmentViewAction;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class o extends Lambda implements Function1 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeFragment f5090a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public o(HomeFragment homeFragment) {
|
||||
super(1);
|
||||
this.f5090a = homeFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
HomeViewModel viewModel;
|
||||
String station = (String) obj;
|
||||
Intrinsics.checkNotNullParameter(station, "station");
|
||||
viewModel = this.f5090a.getViewModel();
|
||||
viewModel.onAction(new HomeFragmentViewAction.HomeStationSet(station));
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
30
apk_decompiled/sources/com/adif/elcanomovil/uiHome/p.java
Normal file
30
apk_decompiled/sources/com/adif/elcanomovil/uiHome/p.java
Normal file
@@ -0,0 +1,30 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.uiHome.HomeFragmentViewAction;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class p extends Lambda implements Function1 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeFragment f5091a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public p(HomeFragment homeFragment) {
|
||||
super(1);
|
||||
this.f5091a = homeFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
HomeViewModel viewModel;
|
||||
String station = (String) obj;
|
||||
Intrinsics.checkNotNullParameter(station, "station");
|
||||
viewModel = this.f5091a.getViewModel();
|
||||
viewModel.onAction(new HomeFragmentViewAction.WorkStationSet(station));
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
62
apk_decompiled/sources/com/adif/elcanomovil/uiHome/q.java
Normal file
62
apk_decompiled/sources/com/adif/elcanomovil/uiHome/q.java
Normal file
@@ -0,0 +1,62 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.domain.providers.LocationStatusProvider;
|
||||
import kotlin.KotlinNothingValueException;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.flow.SharedFlow;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class q extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5092a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeViewModel f5093b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public q(HomeViewModel homeViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5093b = homeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new q(this.f5093b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((q) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
LocationStatusProvider locationStatusProvider;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f5092a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
HomeViewModel homeViewModel = this.f5093b;
|
||||
locationStatusProvider = homeViewModel.locationStatusProvider;
|
||||
SharedFlow<Boolean> locationStatus = locationStatusProvider.getLocationStatus();
|
||||
C1.b bVar = new C1.b(homeViewModel, 10);
|
||||
this.f5092a = 1;
|
||||
if (locationStatus.collect(bVar, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
throw new KotlinNothingValueException();
|
||||
}
|
||||
}
|
||||
94
apk_decompiled/sources/com/adif/elcanomovil/uiHome/s.java
Normal file
94
apk_decompiled/sources/com/adif/elcanomovil/uiHome/s.java
Normal file
@@ -0,0 +1,94 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class s extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5095a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeViewModel f5096b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public s(HomeViewModel homeViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5096b = homeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new s(this.f5096b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((s) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:13:0x003d, code lost:
|
||||
|
||||
if (((kotlinx.coroutines.flow.Flow) r6).collect(r1, r5) == r0) goto L15;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x003f, code lost:
|
||||
|
||||
return r0;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:16:0x002d, code lost:
|
||||
|
||||
if (r6 == r0) goto L15;
|
||||
*/
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r6) {
|
||||
/*
|
||||
r5 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r5.f5095a
|
||||
com.adif.elcanomovil.uiHome.HomeViewModel r2 = r5.f5096b
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r1 == 0) goto L20
|
||||
if (r1 == r4) goto L1c
|
||||
if (r1 != r3) goto L14
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L40
|
||||
L14:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L1c:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L30
|
||||
L20:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
com.adif.elcanomovil.domain.usecases.stations.GetClosestStationUseCase r6 = com.adif.elcanomovil.uiHome.HomeViewModel.access$getGetClosestStationUseCase$p(r2)
|
||||
r5.f5095a = r4
|
||||
java.lang.Object r6 = r6.invoke(r5)
|
||||
if (r6 != r0) goto L30
|
||||
goto L3f
|
||||
L30:
|
||||
kotlinx.coroutines.flow.Flow r6 = (kotlinx.coroutines.flow.Flow) r6
|
||||
com.adif.elcanomovil.uiHome.r r1 = new com.adif.elcanomovil.uiHome.r
|
||||
r1.<init>(r2)
|
||||
r5.f5095a = r3
|
||||
java.lang.Object r5 = r6.collect(r1, r5)
|
||||
if (r5 != r0) goto L40
|
||||
L3f:
|
||||
return r0
|
||||
L40:
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiHome.s.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
43
apk_decompiled/sources/com/adif/elcanomovil/uiHome/t.java
Normal file
43
apk_decompiled/sources/com/adif/elcanomovil/uiHome/t.java
Normal file
@@ -0,0 +1,43 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.uiHome.mappers.UserFavoriteVOMapper;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class t extends ContinuationImpl {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public HomeViewModel f5097a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public Object f5098b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public UserFavoriteVOMapper f5099c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public /* synthetic */ Object f5100d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeViewModel f5101e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public int f5102f;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public t(HomeViewModel homeViewModel, Continuation continuation) {
|
||||
super(continuation);
|
||||
this.f5101e = homeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object fetchFavorites;
|
||||
this.f5100d = obj;
|
||||
this.f5102f |= IntCompanionObject.MIN_VALUE;
|
||||
fetchFavorites = this.f5101e.fetchFavorites(this);
|
||||
return fetchFavorites;
|
||||
}
|
||||
}
|
||||
110
apk_decompiled/sources/com/adif/elcanomovil/uiHome/u.java
Normal file
110
apk_decompiled/sources/com/adif/elcanomovil/uiHome/u.java
Normal file
@@ -0,0 +1,110 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.uiHome.views.HomeMapViewModel;
|
||||
import com.adif.elcanomovil.uiHome.views.HomeMapViewModelKt;
|
||||
import com.google.android.gms.maps.model.LatLng;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class u extends SuspendLambda implements Function3 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ int f5103a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f5104b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public /* synthetic */ u(int i, Continuation continuation, int i4) {
|
||||
super(i, continuation);
|
||||
this.f5103a = i4;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function3
|
||||
public final Object invoke(Object obj, Object obj2, Object obj3) {
|
||||
Throwable th = (Throwable) obj2;
|
||||
Continuation continuation = (Continuation) obj3;
|
||||
switch (this.f5103a) {
|
||||
case 0:
|
||||
u uVar = new u(3, continuation, 0);
|
||||
uVar.f5104b = th;
|
||||
return uVar.invokeSuspend(Unit.INSTANCE);
|
||||
case 1:
|
||||
u uVar2 = new u(3, continuation, 1);
|
||||
uVar2.f5104b = th;
|
||||
return uVar2.invokeSuspend(Unit.INSTANCE);
|
||||
case 2:
|
||||
u uVar3 = new u(3, continuation, 2);
|
||||
uVar3.f5104b = th;
|
||||
return uVar3.invokeSuspend(Unit.INSTANCE);
|
||||
case 3:
|
||||
u uVar4 = new u(3, continuation, 3);
|
||||
uVar4.f5104b = th;
|
||||
return uVar4.invokeSuspend(Unit.INSTANCE);
|
||||
case 4:
|
||||
u uVar5 = new u(3, continuation, 4);
|
||||
uVar5.f5104b = th;
|
||||
return uVar5.invokeSuspend(Unit.INSTANCE);
|
||||
default:
|
||||
return new u((HomeMapViewModel) this.f5104b, continuation).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
LatLng latLng;
|
||||
int i = this.f5103a;
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
switch (i) {
|
||||
case 0:
|
||||
ResultKt.throwOnFailure(obj);
|
||||
String message = "fetchUserFavorites ERROR " + ((Throwable) this.f5104b);
|
||||
Intrinsics.checkNotNullParameter(message, "message");
|
||||
t3.c.f8551a.a(message, new Object[0]);
|
||||
return Unit.INSTANCE;
|
||||
case 1:
|
||||
ResultKt.throwOnFailure(obj);
|
||||
String message2 = "fetchUserFavorites ERROR " + ((Throwable) this.f5104b);
|
||||
Intrinsics.checkNotNullParameter(message2, "message");
|
||||
t3.c.f8551a.a(message2, new Object[0]);
|
||||
return Unit.INSTANCE;
|
||||
case 2:
|
||||
ResultKt.throwOnFailure(obj);
|
||||
String message3 = "fetchUserFavorites ERROR " + ((Throwable) this.f5104b);
|
||||
Intrinsics.checkNotNullParameter(message3, "message");
|
||||
t3.c.f8551a.a(message3, new Object[0]);
|
||||
return Unit.INSTANCE;
|
||||
case 3:
|
||||
ResultKt.throwOnFailure(obj);
|
||||
String message4 = "getStationsUseCase ERROR " + ((Throwable) this.f5104b);
|
||||
Intrinsics.checkNotNullParameter(message4, "message");
|
||||
t3.c.f8551a.a(message4, new Object[0]);
|
||||
return Unit.INSTANCE;
|
||||
case 4:
|
||||
ResultKt.throwOnFailure(obj);
|
||||
String message5 = "SelectStationViewModel getClosestStationUseCase ERROR " + ((Throwable) this.f5104b);
|
||||
Intrinsics.checkNotNullParameter(message5, "message");
|
||||
t3.c.f8551a.a(message5, new Object[0]);
|
||||
return Unit.INSTANCE;
|
||||
default:
|
||||
ResultKt.throwOnFailure(obj);
|
||||
HomeMapViewModel homeMapViewModel = (HomeMapViewModel) this.f5104b;
|
||||
latLng = HomeMapViewModelKt.DEFAULT_LOCATION;
|
||||
homeMapViewModel.notifyViewMoveCameraToLocation(latLng);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public u(HomeMapViewModel homeMapViewModel, Continuation continuation) {
|
||||
super(3, continuation);
|
||||
this.f5103a = 5;
|
||||
this.f5104b = homeMapViewModel;
|
||||
}
|
||||
}
|
||||
40
apk_decompiled/sources/com/adif/elcanomovil/uiHome/v.java
Normal file
40
apk_decompiled/sources/com/adif/elcanomovil/uiHome/v.java
Normal file
@@ -0,0 +1,40 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.uiHome.mappers.StationViewEntityMapper;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class v extends ContinuationImpl {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public HomeViewModel f5105a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public StationViewEntityMapper f5106b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public /* synthetic */ Object f5107c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeViewModel f5108d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public int f5109e;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public v(HomeViewModel homeViewModel, Continuation continuation) {
|
||||
super(continuation);
|
||||
this.f5108d = homeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object fetchHomeStation;
|
||||
this.f5107c = obj;
|
||||
this.f5109e |= IntCompanionObject.MIN_VALUE;
|
||||
fetchHomeStation = this.f5108d.fetchHomeStation(this);
|
||||
return fetchHomeStation;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.adif.elcanomovil.uiHome.views;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import dagger.hilt.android.internal.managers.ViewComponentManager;
|
||||
import dagger.hilt.internal.GeneratedComponentManagerHolder;
|
||||
import dagger.hilt.internal.UnsafeCasts;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public abstract class Hilt_HomeMapView extends ConstraintLayout implements GeneratedComponentManagerHolder {
|
||||
private ViewComponentManager componentManager;
|
||||
private boolean injected;
|
||||
|
||||
public Hilt_HomeMapView(Context context) {
|
||||
super(context);
|
||||
inject();
|
||||
}
|
||||
|
||||
public ViewComponentManager createComponentManager() {
|
||||
return new ViewComponentManager(this, false);
|
||||
}
|
||||
|
||||
@Override // dagger.hilt.internal.GeneratedComponentManager
|
||||
public final Object generatedComponent() {
|
||||
return componentManager().generatedComponent();
|
||||
}
|
||||
|
||||
public void inject() {
|
||||
if (this.injected) {
|
||||
return;
|
||||
}
|
||||
this.injected = true;
|
||||
((HomeMapView_GeneratedInjector) generatedComponent()).injectHomeMapView((HomeMapView) UnsafeCasts.unsafeCast(this));
|
||||
}
|
||||
|
||||
@Override // dagger.hilt.internal.GeneratedComponentManagerHolder
|
||||
public final ViewComponentManager componentManager() {
|
||||
if (this.componentManager == null) {
|
||||
this.componentManager = createComponentManager();
|
||||
}
|
||||
return this.componentManager;
|
||||
}
|
||||
|
||||
public Hilt_HomeMapView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
inject();
|
||||
}
|
||||
|
||||
public Hilt_HomeMapView(Context context, AttributeSet attributeSet, int i) {
|
||||
super(context, attributeSet, i);
|
||||
inject();
|
||||
}
|
||||
|
||||
@TargetApi(21)
|
||||
public Hilt_HomeMapView(Context context, AttributeSet attributeSet, int i, int i4) {
|
||||
super(context, attributeSet, i, i4);
|
||||
inject();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,25 @@
|
||||
package com.adif.elcanomovil.uiHome.views;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.ContextWrapper;
|
||||
import androidx.lifecycle.J;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0007\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u001a\u0011\u0010\u0002\u001a\u00020\u0001*\u00020\u0000¢\u0006\u0004\b\u0002\u0010\u0003\"\u0014\u0010\u0005\u001a\u00020\u00048\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u0005\u0010\u0006**\u0010\n\"\u0012\u0012\u0006\u0012\u0004\u0018\u00010\b\u0012\u0004\u0012\u00020\t\u0018\u00010\u00072\u0012\u0012\u0006\u0012\u0004\u0018\u00010\b\u0012\u0004\u0012\u00020\t\u0018\u00010\u0007¨\u0006\u000b"}, d2 = {"Landroid/content/Context;", "Landroidx/lifecycle/J;", "getLifecycleOwner", "(Landroid/content/Context;)Landroidx/lifecycle/J;", "", "DEFAULT_ZOOM", "F", "Lkotlin/Function1;", "Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;", "", "StationMarkerListener", "ui-home_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class HomeMapViewKt {
|
||||
private static final float DEFAULT_ZOOM = 14.0f;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public static final J getLifecycleOwner(Context context) {
|
||||
Intrinsics.checkNotNullParameter(context, "<this>");
|
||||
try {
|
||||
return (J) context;
|
||||
} catch (ClassCastException unused) {
|
||||
Object baseContext = ((ContextWrapper) context).getBaseContext();
|
||||
Intrinsics.checkNotNull(baseContext, "null cannot be cast to non-null type androidx.lifecycle.LifecycleOwner");
|
||||
return (J) baseContext;
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,10 @@
|
||||
package com.adif.elcanomovil.uiHome.views;
|
||||
|
||||
import com.google.android.gms.maps.model.LatLng;
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0018\u0002\n\u0000\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0002"}, d2 = {"DEFAULT_LOCATION", "Lcom/google/android/gms/maps/model/LatLng;", "ui-home_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class HomeMapViewModelKt {
|
||||
private static final LatLng DEFAULT_LOCATION = new LatLng(40.407168d, -3.689688d);
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.adif.elcanomovil.uiHome.views;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetHomeStationUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetStationsForRegionUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetWorkStationUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.user.GetUserLastLocationUseCase;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.qualifiers.ApplicationContext"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class HomeMapViewModel_Factory implements Factory<HomeMapViewModel> {
|
||||
private final Provider<Context> contextProvider;
|
||||
private final Provider<GetHomeStationUseCase> getHomeStationUseCaseProvider;
|
||||
private final Provider<GetStationsForRegionUseCase> getStationsUseCaseProvider;
|
||||
private final Provider<GetUserLastLocationUseCase> getUserLastLocationUseCaseProvider;
|
||||
private final Provider<GetWorkStationUseCase> getWorkStationUseCaseProvider;
|
||||
|
||||
public HomeMapViewModel_Factory(Provider<Context> provider, Provider<GetStationsForRegionUseCase> provider2, Provider<GetUserLastLocationUseCase> provider3, Provider<GetHomeStationUseCase> provider4, Provider<GetWorkStationUseCase> provider5) {
|
||||
this.contextProvider = provider;
|
||||
this.getStationsUseCaseProvider = provider2;
|
||||
this.getUserLastLocationUseCaseProvider = provider3;
|
||||
this.getHomeStationUseCaseProvider = provider4;
|
||||
this.getWorkStationUseCaseProvider = provider5;
|
||||
}
|
||||
|
||||
public static HomeMapViewModel_Factory create(Provider<Context> provider, Provider<GetStationsForRegionUseCase> provider2, Provider<GetUserLastLocationUseCase> provider3, Provider<GetHomeStationUseCase> provider4, Provider<GetWorkStationUseCase> provider5) {
|
||||
return new HomeMapViewModel_Factory(provider, provider2, provider3, provider4, provider5);
|
||||
}
|
||||
|
||||
public static HomeMapViewModel newInstance(Context context, GetStationsForRegionUseCase getStationsForRegionUseCase, GetUserLastLocationUseCase getUserLastLocationUseCase, GetHomeStationUseCase getHomeStationUseCase, GetWorkStationUseCase getWorkStationUseCase) {
|
||||
return new HomeMapViewModel(context, getStationsForRegionUseCase, getUserLastLocationUseCase, getHomeStationUseCase, getWorkStationUseCase);
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public HomeMapViewModel get() {
|
||||
return newInstance(this.contextProvider.get(), this.getStationsUseCaseProvider.get(), this.getUserLastLocationUseCaseProvider.get(), this.getHomeStationUseCaseProvider.get(), this.getWorkStationUseCaseProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.adif.elcanomovil.uiHome.views;
|
||||
|
||||
import androidx.lifecycle.w0;
|
||||
import dagger.Binds;
|
||||
import dagger.Module;
|
||||
import dagger.Provides;
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.components.ActivityRetainedComponent;
|
||||
import dagger.hilt.android.components.ViewModelComponent;
|
||||
import dagger.hilt.android.internal.lifecycle.HiltViewModelMap;
|
||||
import dagger.hilt.codegen.OriginatingElement;
|
||||
import dagger.multibindings.IntoMap;
|
||||
import dagger.multibindings.IntoSet;
|
||||
import dagger.multibindings.StringKey;
|
||||
|
||||
@OriginatingElement(topLevelClass = HomeMapViewModel.class)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class HomeMapViewModel_HiltModules {
|
||||
|
||||
@Module
|
||||
@InstallIn({ViewModelComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public static abstract class BindsModule {
|
||||
private BindsModule() {
|
||||
}
|
||||
|
||||
@Binds
|
||||
@StringKey("com.adif.elcanomovil.uiHome.views.HomeMapViewModel")
|
||||
@HiltViewModelMap
|
||||
@IntoMap
|
||||
public abstract w0 binds(HomeMapViewModel homeMapViewModel);
|
||||
}
|
||||
|
||||
@Module
|
||||
@InstallIn({ActivityRetainedComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class KeyModule {
|
||||
private KeyModule() {
|
||||
}
|
||||
|
||||
@Provides
|
||||
@HiltViewModelMap.KeySet
|
||||
@IntoSet
|
||||
public static String provide() {
|
||||
return "com.adif.elcanomovil.uiHome.views.HomeMapViewModel";
|
||||
}
|
||||
}
|
||||
|
||||
private HomeMapViewModel_HiltModules() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.adif.elcanomovil.uiHome.views;
|
||||
|
||||
import com.adif.elcanomovil.uiHome.views.HomeMapViewModel_HiltModules;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.internal.lifecycle.HiltViewModelMap.KeySet"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class HomeMapViewModel_HiltModules_KeyModule_ProvideFactory implements Factory<String> {
|
||||
public static HomeMapViewModel_HiltModules_KeyModule_ProvideFactory create() {
|
||||
return i.f5135a;
|
||||
}
|
||||
|
||||
public static String provide() {
|
||||
return (String) Preconditions.checkNotNullFromProvides(HomeMapViewModel_HiltModules.KeyModule.provide());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public String get() {
|
||||
return provide();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.adif.elcanomovil.uiHome.views;
|
||||
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.components.ViewComponent;
|
||||
import dagger.hilt.codegen.OriginatingElement;
|
||||
import dagger.hilt.internal.GeneratedEntryPoint;
|
||||
|
||||
@OriginatingElement(topLevelClass = HomeMapView.class)
|
||||
@GeneratedEntryPoint
|
||||
@InstallIn({ViewComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public interface HomeMapView_GeneratedInjector {
|
||||
void injectHomeMapView(HomeMapView homeMapView);
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.adif.elcanomovil.uiHome.views;
|
||||
|
||||
import dagger.MembersInjector;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.InjectedFieldSignature;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes2.dex */
|
||||
public final class HomeMapView_MembersInjector implements MembersInjector<HomeMapView> {
|
||||
private final Provider<HomeMapViewModel> viewModelProvider;
|
||||
|
||||
public HomeMapView_MembersInjector(Provider<HomeMapViewModel> provider) {
|
||||
this.viewModelProvider = provider;
|
||||
}
|
||||
|
||||
public static MembersInjector<HomeMapView> create(Provider<HomeMapViewModel> provider) {
|
||||
return new HomeMapView_MembersInjector(provider);
|
||||
}
|
||||
|
||||
@InjectedFieldSignature("com.adif.elcanomovil.uiHome.views.HomeMapView.viewModel")
|
||||
public static void injectViewModel(HomeMapView homeMapView, HomeMapViewModel homeMapViewModel) {
|
||||
homeMapView.viewModel = homeMapViewModel;
|
||||
}
|
||||
|
||||
@Override // dagger.MembersInjector
|
||||
public void injectMembers(HomeMapView homeMapView) {
|
||||
injectViewModel(homeMapView, this.viewModelProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,672 @@
|
||||
package com.adif.elcanomovil.uiHome.views;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.text.SpannableString;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.LayoutInflater;
|
||||
import android.widget.TextView;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import com.adif.elcanomovil.commonViews.data.StationOptionViewEntity;
|
||||
import com.adif.elcanomovil.commonViews.data.StationViewEntity;
|
||||
import com.adif.elcanomovil.extensions.FloatExtensionsKt;
|
||||
import com.adif.elcanomovil.resources.StringUtils;
|
||||
import com.adif.elcanomovil.uiHome.HomeFragmentBottomSheetViewState;
|
||||
import com.adif.elcanomovil.uiHome.LocationStatus;
|
||||
import com.adif.elcanomovil.uiHome.R;
|
||||
import com.adif.elcanomovil.uiHome.databinding.ViewStationNearBinding;
|
||||
import com.google.android.gms.common.internal.ServiceSpecificExtraArgs;
|
||||
import com.google.firebase.remoteconfig.RemoteConfigConstants;
|
||||
import java.util.concurrent.CancellationException;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.BuildersKt__Builders_commonKt;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.Job;
|
||||
|
||||
@Metadata(d1 = {"\u0000~\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0007\n\u0002\b\b\n\u0002\u0010\u000e\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\u000f\b\u0016\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004B\u001b\b\u0016\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\u0002\u0010\u0007B!\b\u0016\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\b\u0010\b\u001a\u0004\u0018\u00010\u0006\u0012\u0006\u0010\t\u001a\u00020\n¢\u0006\u0002\u0010\u000bJ\b\u0010\u001e\u001a\u00020\u0011H\u0002J\u001a\u0010\u001f\u001a\u00020\u00112\u0006\u0010\u0002\u001a\u00020\u00032\b\u0010\b\u001a\u0004\u0018\u00010\u0006H\u0002J\u0018\u0010 \u001a\u00020\u00112\u0006\u0010!\u001a\u00020\"2\u0006\u0010#\u001a\u00020$H\u0002J\u0010\u0010%\u001a\u00020\u00112\u0006\u0010&\u001a\u00020'H\u0002J\u0012\u0010(\u001a\u00020\u00112\b\b\u0001\u0010)\u001a\u00020\nH\u0002J\u0016\u0010*\u001a\u00020\u00112\u0006\u0010+\u001a\u00020,2\u0006\u0010#\u001a\u00020$J\u0012\u0010-\u001a\u00020\u00112\b\u0010.\u001a\u0004\u0018\u00010/H\u0002J\u0012\u00100\u001a\u00020\u00112\b\u0010.\u001a\u0004\u0018\u00010/H\u0002J\u0012\u00101\u001a\u00020\u00112\b\u0010.\u001a\u0004\u0018\u00010/H\u0002J!\u00102\u001a\u00020\u00112\b\u00103\u001a\u0004\u0018\u0001042\b\u00105\u001a\u0004\u0018\u000104H\u0003¢\u0006\u0002\u00106J\u0012\u00107\u001a\u00020\u00112\b\u0010.\u001a\u0004\u0018\u00010/H\u0002J\u0010\u00108\u001a\u00020\u00112\u0006\u00109\u001a\u00020\nH\u0002J\u0012\u0010:\u001a\u00020\u00112\b\u0010\u001b\u001a\u0004\u0018\u00010\u001aH\u0002J\u0012\u0010;\u001a\u00020\u00112\b\u0010.\u001a\u0004\u0018\u00010/H\u0002J\u0012\u0010;\u001a\u00020\u00112\b\u0010<\u001a\u0004\u0018\u00010=H\u0002J\u0012\u0010>\u001a\u00020\u00112\b\u0010<\u001a\u0004\u0018\u00010=H\u0002R\u000e\u0010\f\u001a\u00020\rX\u0082.¢\u0006\u0002\n\u0000RL\u0010\u0013\u001a\u0016\u0012\u0006\u0012\u0004\u0018\u00010\u0010\u0012\u0004\u0012\u00020\u0011\u0018\u00010\u000fj\u0002`\u00122\u001a\u0010\u000e\u001a\u0016\u0012\u0006\u0012\u0004\u0018\u00010\u0010\u0012\u0004\u0012\u00020\u0011\u0018\u00010\u000fj\u0002`\u0012@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0014\u0010\u0015\"\u0004\b\u0016\u0010\u0017R\u0010\u0010\u0018\u001a\u0004\u0018\u00010\u0019X\u0082\u000e¢\u0006\u0002\n\u0000R\"\u0010\u001b\u001a\u0004\u0018\u00010\u001a2\b\u0010\u000e\u001a\u0004\u0018\u00010\u001a@BX\u0082\u000e¢\u0006\b\n\u0000\"\u0004\b\u001c\u0010\u001d¨\u0006?"}, d2 = {"Lcom/adif/elcanomovil/uiHome/views/StationNearView;", "Landroidx/constraintlayout/widget/ConstraintLayout;", "context", "Landroid/content/Context;", "(Landroid/content/Context;)V", "attr", "Landroid/util/AttributeSet;", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "attrs", "defStyleAttr", "", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "binding", "Lcom/adif/elcanomovil/uiHome/databinding/ViewStationNearBinding;", "value", "Lkotlin/Function1;", "Lcom/adif/elcanomovil/commonViews/data/StationOptionViewEntity;", "", "Lcom/adif/elcanomovil/commonViews/StationOptionListener;", ServiceSpecificExtraArgs.CastExtraArgs.LISTENER, "getListener", "()Lkotlin/jvm/functions/Function1;", "setListener", "(Lkotlin/jvm/functions/Function1;)V", "showLoadingJob", "Lkotlinx/coroutines/Job;", "Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;", "station", "setStation", "(Lcom/adif/elcanomovil/commonViews/data/StationViewEntity;)V", "hideLocationPermissionStatusMessage", "initView", "showLoading", "show", "", "scope", "Lkotlinx/coroutines/CoroutineScope;", "showLocationPermissionStatus", "status", "Lcom/adif/elcanomovil/uiHome/LocationStatus;", "showPermissionStatusMessage", "message", "update", RemoteConfigConstants.ResponseFieldKey.STATE, "Lcom/adif/elcanomovil/uiHome/HomeFragmentBottomSheetViewState;", "updateArrivalsOption", "values", "Landroid/content/res/TypedArray;", "updateCommercialOption", "updateDeparturesOption", "updateDistanceTime", "distance", "", "time", "(Ljava/lang/Float;Ljava/lang/Float;)V", "updateInfoOption", "updateShowStationOption", "visibility", "updateShowStationOptions", "updateStationTitle", "title", "", "updateTitle", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationNearView extends ConstraintLayout {
|
||||
private ViewStationNearBinding binding;
|
||||
private Function1<? super StationOptionViewEntity, Unit> listener;
|
||||
private Job showLoadingJob;
|
||||
private StationViewEntity station;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$1;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[StationViewEntity.Type.values().length];
|
||||
try {
|
||||
iArr[StationViewEntity.Type.NEAR.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[StationViewEntity.Type.HOME.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[StationViewEntity.Type.WORK.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
int[] iArr2 = new int[LocationStatus.values().length];
|
||||
try {
|
||||
iArr2[LocationStatus.ENABLED.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused4) {
|
||||
}
|
||||
try {
|
||||
iArr2[LocationStatus.DISABLED.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused5) {
|
||||
}
|
||||
try {
|
||||
iArr2[LocationStatus.PERMISSION_DENIED.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused6) {
|
||||
}
|
||||
$EnumSwitchMapping$1 = iArr2;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public StationNearView(Context context) {
|
||||
super(context);
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
initView(context, null);
|
||||
}
|
||||
|
||||
private final void hideLocationPermissionStatusMessage() {
|
||||
ViewStationNearBinding viewStationNearBinding = this.binding;
|
||||
ViewStationNearBinding viewStationNearBinding2 = null;
|
||||
if (viewStationNearBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding = null;
|
||||
}
|
||||
viewStationNearBinding.permissionStatusTextView.setVisibility(8);
|
||||
ViewStationNearBinding viewStationNearBinding3 = this.binding;
|
||||
if (viewStationNearBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
viewStationNearBinding2 = viewStationNearBinding3;
|
||||
}
|
||||
viewStationNearBinding2.nearStationSubtitle.setVisibility(0);
|
||||
}
|
||||
|
||||
private final void initView(Context context, AttributeSet attrs) {
|
||||
ViewStationNearBinding inflate = ViewStationNearBinding.inflate(LayoutInflater.from(context), this, true);
|
||||
Intrinsics.checkNotNullExpressionValue(inflate, "inflate(...)");
|
||||
this.binding = inflate;
|
||||
TypedArray obtainStyledAttributes = context.getTheme().obtainStyledAttributes(attrs, R.styleable.StationNearView, 0, 0);
|
||||
try {
|
||||
updateStationTitle(obtainStyledAttributes);
|
||||
updateDeparturesOption(obtainStyledAttributes);
|
||||
updateArrivalsOption(obtainStyledAttributes);
|
||||
updateInfoOption(obtainStyledAttributes);
|
||||
updateCommercialOption(obtainStyledAttributes);
|
||||
} finally {
|
||||
obtainStyledAttributes.recycle();
|
||||
}
|
||||
}
|
||||
|
||||
private final void setStation(StationViewEntity stationViewEntity) {
|
||||
this.station = stationViewEntity;
|
||||
Unit unit = null;
|
||||
ViewStationNearBinding viewStationNearBinding = null;
|
||||
if (stationViewEntity != null) {
|
||||
ViewStationNearBinding viewStationNearBinding2 = this.binding;
|
||||
if (viewStationNearBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding2 = null;
|
||||
}
|
||||
viewStationNearBinding2.stationInfoDepartures.updateData(new StationOptionViewEntity(null, null, null, StationViewEntity.Type.DEPARTURES, stationViewEntity.isDeparturesAvailable(), null, null, 103, null));
|
||||
ViewStationNearBinding viewStationNearBinding3 = this.binding;
|
||||
if (viewStationNearBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding3 = null;
|
||||
}
|
||||
viewStationNearBinding3.stationInfoArrivals.updateData(new StationOptionViewEntity(null, null, null, StationViewEntity.Type.ARRIVALS, stationViewEntity.isArrivalsAvailable(), null, null, 103, null));
|
||||
ViewStationNearBinding viewStationNearBinding4 = this.binding;
|
||||
if (viewStationNearBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding4 = null;
|
||||
}
|
||||
viewStationNearBinding4.stationInfoDetails.updateData(new StationOptionViewEntity(null, null, null, StationViewEntity.Type.INFO, stationViewEntity.isInfoDetailAvailable(), null, null, 103, null));
|
||||
ViewStationNearBinding viewStationNearBinding5 = this.binding;
|
||||
if (viewStationNearBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
viewStationNearBinding = viewStationNearBinding5;
|
||||
}
|
||||
viewStationNearBinding.stationInfoComercial.updateData(new StationOptionViewEntity(null, null, null, StationViewEntity.Type.COMMERCIAL, stationViewEntity.isCommercialAreaAvailable(), null, stationViewEntity.getCommercialZoneType(), 39, null));
|
||||
int i = WhenMappings.$EnumSwitchMapping$0[stationViewEntity.getType().ordinal()];
|
||||
String string = i != 1 ? i != 2 ? i != 3 ? getContext().getString(R.string.near_station_selected_title) : getContext().getString(R.string.near_work_selected_title) : getContext().getString(R.string.near_home_selected_title) : getContext().getString(R.string.near_station_title);
|
||||
Intrinsics.checkNotNull(string);
|
||||
updateTitle(string);
|
||||
updateStationTitle(stationViewEntity.getName());
|
||||
updateDistanceTime(stationViewEntity.getDistance(), stationViewEntity.getDuration());
|
||||
unit = Unit.INSTANCE;
|
||||
}
|
||||
if (unit == null) {
|
||||
updateTitle(getContext().getString(R.string.near_station_title));
|
||||
updateStationTitle(getRootView().getContext().getString(R.string.near_station_loading_title));
|
||||
}
|
||||
}
|
||||
|
||||
private final void showLoading(boolean show, CoroutineScope scope) {
|
||||
Job launch$default;
|
||||
ViewStationNearBinding viewStationNearBinding = null;
|
||||
if (show) {
|
||||
Job job = this.showLoadingJob;
|
||||
if (job == null || !job.isActive()) {
|
||||
launch$default = BuildersKt__Builders_commonKt.launch$default(scope, null, null, new j(this, null), 3, null);
|
||||
this.showLoadingJob = launch$default;
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
Job job2 = this.showLoadingJob;
|
||||
if (job2 != null) {
|
||||
Job.DefaultImpls.cancel$default(job2, (CancellationException) null, 1, (Object) null);
|
||||
}
|
||||
this.showLoadingJob = null;
|
||||
ViewStationNearBinding viewStationNearBinding2 = this.binding;
|
||||
if (viewStationNearBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
viewStationNearBinding = viewStationNearBinding2;
|
||||
}
|
||||
viewStationNearBinding.stationOptionsLoading.setVisibility(8);
|
||||
updateShowStationOptions(this.station);
|
||||
}
|
||||
|
||||
private final void showLocationPermissionStatus(LocationStatus status) {
|
||||
int i = WhenMappings.$EnumSwitchMapping$1[status.ordinal()];
|
||||
if (i == 1) {
|
||||
hideLocationPermissionStatusMessage();
|
||||
} else if (i == 2) {
|
||||
showPermissionStatusMessage(R.string.near_station_no_location_available_info);
|
||||
} else {
|
||||
if (i != 3) {
|
||||
return;
|
||||
}
|
||||
showPermissionStatusMessage(R.string.near_station_no_location_permission_info);
|
||||
}
|
||||
}
|
||||
|
||||
private final void showPermissionStatusMessage(int message) {
|
||||
ViewStationNearBinding viewStationNearBinding = this.binding;
|
||||
ViewStationNearBinding viewStationNearBinding2 = null;
|
||||
if (viewStationNearBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding = null;
|
||||
}
|
||||
viewStationNearBinding.permissionStatusTextView.setText(message);
|
||||
ViewStationNearBinding viewStationNearBinding3 = this.binding;
|
||||
if (viewStationNearBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding3 = null;
|
||||
}
|
||||
viewStationNearBinding3.permissionStatusTextView.setVisibility(0);
|
||||
ViewStationNearBinding viewStationNearBinding4 = this.binding;
|
||||
if (viewStationNearBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding4 = null;
|
||||
}
|
||||
viewStationNearBinding4.nearStationSubtitle.setVisibility(8);
|
||||
updateShowStationOption(8);
|
||||
ViewStationNearBinding viewStationNearBinding5 = this.binding;
|
||||
if (viewStationNearBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
viewStationNearBinding2 = viewStationNearBinding5;
|
||||
}
|
||||
viewStationNearBinding2.nearStationInfo.setVisibility(8);
|
||||
}
|
||||
|
||||
private final void updateArrivalsOption(TypedArray values) {
|
||||
if (values != null) {
|
||||
String string = values.getString(R.styleable.StationNearView_arrivalsTitleText);
|
||||
ViewStationNearBinding viewStationNearBinding = null;
|
||||
if (string != null) {
|
||||
StringUtils.Companion companion = StringUtils.INSTANCE;
|
||||
Context context = getContext();
|
||||
Intrinsics.checkNotNullExpressionValue(context, "getContext(...)");
|
||||
Intrinsics.checkNotNull(string);
|
||||
SpannableString textStyle = companion.textStyle(context, string, string, R.font.open_sans_semi_bold, getContext().getColor(R.color.white));
|
||||
ViewStationNearBinding viewStationNearBinding2 = this.binding;
|
||||
if (viewStationNearBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding2 = null;
|
||||
}
|
||||
viewStationNearBinding2.stationInfoArrivals.getStationOptionTitle().setText(textStyle);
|
||||
}
|
||||
int i = R.styleable.StationNearView_arrivalsTitleTextColor;
|
||||
Context context2 = getContext();
|
||||
int i4 = R.color.white;
|
||||
int color = values.getColor(i, context2.getColor(i4));
|
||||
ViewStationNearBinding viewStationNearBinding3 = this.binding;
|
||||
if (viewStationNearBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding3 = null;
|
||||
}
|
||||
viewStationNearBinding3.stationInfoArrivals.getStationOptionTitle().setTextColor(color);
|
||||
int dimensionPixelSize = values.getDimensionPixelSize(R.styleable.StationNearView_arrivalsTitleTextSize, (int) getContext().getResources().getDimension(R.dimen.medium_text_size));
|
||||
ViewStationNearBinding viewStationNearBinding4 = this.binding;
|
||||
if (viewStationNearBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding4 = null;
|
||||
}
|
||||
viewStationNearBinding4.stationInfoArrivals.getStationOptionTitle().setTextSize(0, dimensionPixelSize);
|
||||
String string2 = values.getString(R.styleable.StationNearView_arrivalsSubtitleText);
|
||||
if (string2 != null) {
|
||||
StringUtils.Companion companion2 = StringUtils.INSTANCE;
|
||||
Context context3 = getContext();
|
||||
Intrinsics.checkNotNullExpressionValue(context3, "getContext(...)");
|
||||
Intrinsics.checkNotNull(string2);
|
||||
SpannableString textStyle2 = companion2.textStyle(context3, string2, string2, R.font.open_sans_bold, getContext().getColor(i4));
|
||||
ViewStationNearBinding viewStationNearBinding5 = this.binding;
|
||||
if (viewStationNearBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding5 = null;
|
||||
}
|
||||
viewStationNearBinding5.stationInfoArrivals.getStationOptionSubtitle().setText(textStyle2);
|
||||
}
|
||||
int color2 = values.getColor(R.styleable.StationNearView_arrivalsSubtitleTextColor, getContext().getColor(i4));
|
||||
ViewStationNearBinding viewStationNearBinding6 = this.binding;
|
||||
if (viewStationNearBinding6 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding6 = null;
|
||||
}
|
||||
viewStationNearBinding6.stationInfoArrivals.getStationOptionSubtitle().setTextColor(color2);
|
||||
int dimensionPixelSize2 = values.getDimensionPixelSize(R.styleable.StationNearView_arrivalsSubtitleTextSize, (int) getContext().getResources().getDimension(R.dimen.big_text_size));
|
||||
ViewStationNearBinding viewStationNearBinding7 = this.binding;
|
||||
if (viewStationNearBinding7 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding7 = null;
|
||||
}
|
||||
viewStationNearBinding7.stationInfoArrivals.getStationOptionSubtitle().setTextSize(0, dimensionPixelSize2);
|
||||
ViewStationNearBinding viewStationNearBinding8 = this.binding;
|
||||
if (viewStationNearBinding8 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
viewStationNearBinding = viewStationNearBinding8;
|
||||
}
|
||||
viewStationNearBinding.stationInfoArrivals.setEnabled(values.getBoolean(R.styleable.StationNearView_arrivalsAvailable, false));
|
||||
}
|
||||
}
|
||||
|
||||
private final void updateCommercialOption(TypedArray values) {
|
||||
if (values != null) {
|
||||
String string = values.getString(R.styleable.StationNearView_commercialTitleText);
|
||||
ViewStationNearBinding viewStationNearBinding = null;
|
||||
if (string != null) {
|
||||
StringUtils.Companion companion = StringUtils.INSTANCE;
|
||||
Context context = getContext();
|
||||
Intrinsics.checkNotNullExpressionValue(context, "getContext(...)");
|
||||
Intrinsics.checkNotNull(string);
|
||||
SpannableString textStyle = companion.textStyle(context, string, string, R.font.open_sans_semi_bold, getContext().getColor(R.color.white));
|
||||
ViewStationNearBinding viewStationNearBinding2 = this.binding;
|
||||
if (viewStationNearBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding2 = null;
|
||||
}
|
||||
viewStationNearBinding2.stationInfoComercial.getStationOptionTitle().setText(textStyle);
|
||||
}
|
||||
int i = R.styleable.StationNearView_commercialTitleTextColor;
|
||||
Context context2 = getContext();
|
||||
int i4 = R.color.white;
|
||||
int color = values.getColor(i, context2.getColor(i4));
|
||||
ViewStationNearBinding viewStationNearBinding3 = this.binding;
|
||||
if (viewStationNearBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding3 = null;
|
||||
}
|
||||
viewStationNearBinding3.stationInfoComercial.getStationOptionTitle().setTextColor(color);
|
||||
int dimensionPixelSize = values.getDimensionPixelSize(R.styleable.StationNearView_commercialTitleTextSize, (int) getContext().getResources().getDimension(R.dimen.medium_text_size));
|
||||
ViewStationNearBinding viewStationNearBinding4 = this.binding;
|
||||
if (viewStationNearBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding4 = null;
|
||||
}
|
||||
viewStationNearBinding4.stationInfoComercial.getStationOptionTitle().setTextSize(0, dimensionPixelSize);
|
||||
String string2 = values.getString(R.styleable.StationNearView_commercialSubtitleText);
|
||||
if (string2 != null) {
|
||||
StringUtils.Companion companion2 = StringUtils.INSTANCE;
|
||||
Context context3 = getContext();
|
||||
Intrinsics.checkNotNullExpressionValue(context3, "getContext(...)");
|
||||
Intrinsics.checkNotNull(string2);
|
||||
SpannableString textStyle2 = companion2.textStyle(context3, string2, string2, R.font.open_sans_bold, getContext().getColor(i4));
|
||||
ViewStationNearBinding viewStationNearBinding5 = this.binding;
|
||||
if (viewStationNearBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding5 = null;
|
||||
}
|
||||
viewStationNearBinding5.stationInfoComercial.getStationOptionSubtitle().setText(textStyle2);
|
||||
}
|
||||
int color2 = values.getColor(R.styleable.StationNearView_commercialSubtitleTextColor, getContext().getColor(i4));
|
||||
ViewStationNearBinding viewStationNearBinding6 = this.binding;
|
||||
if (viewStationNearBinding6 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding6 = null;
|
||||
}
|
||||
viewStationNearBinding6.stationInfoComercial.getStationOptionSubtitle().setTextColor(color2);
|
||||
int dimensionPixelSize2 = values.getDimensionPixelSize(R.styleable.StationNearView_commercialSubtitleTextSize, (int) getContext().getResources().getDimension(R.dimen.big_text_size));
|
||||
ViewStationNearBinding viewStationNearBinding7 = this.binding;
|
||||
if (viewStationNearBinding7 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding7 = null;
|
||||
}
|
||||
viewStationNearBinding7.stationInfoComercial.getStationOptionSubtitle().setTextSize(0, dimensionPixelSize2);
|
||||
ViewStationNearBinding viewStationNearBinding8 = this.binding;
|
||||
if (viewStationNearBinding8 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
viewStationNearBinding = viewStationNearBinding8;
|
||||
}
|
||||
viewStationNearBinding.stationInfoComercial.setEnabled(values.getBoolean(R.styleable.StationNearView_commercialAvailable, false));
|
||||
}
|
||||
}
|
||||
|
||||
private final void updateDeparturesOption(TypedArray values) {
|
||||
if (values != null) {
|
||||
String string = values.getString(R.styleable.StationNearView_departuresTitleText);
|
||||
ViewStationNearBinding viewStationNearBinding = null;
|
||||
if (string != null) {
|
||||
StringUtils.Companion companion = StringUtils.INSTANCE;
|
||||
Context context = getContext();
|
||||
Intrinsics.checkNotNullExpressionValue(context, "getContext(...)");
|
||||
Intrinsics.checkNotNull(string);
|
||||
SpannableString textStyle = companion.textStyle(context, string, string, R.font.open_sans_semi_bold, getContext().getColor(R.color.white));
|
||||
ViewStationNearBinding viewStationNearBinding2 = this.binding;
|
||||
if (viewStationNearBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding2 = null;
|
||||
}
|
||||
viewStationNearBinding2.stationInfoDepartures.getStationOptionTitle().setText(textStyle);
|
||||
}
|
||||
int i = R.styleable.StationNearView_departuresTitleTextColor;
|
||||
Context context2 = getContext();
|
||||
int i4 = R.color.white;
|
||||
int color = values.getColor(i, context2.getColor(i4));
|
||||
ViewStationNearBinding viewStationNearBinding3 = this.binding;
|
||||
if (viewStationNearBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding3 = null;
|
||||
}
|
||||
viewStationNearBinding3.stationInfoDepartures.getStationOptionTitle().setTextColor(color);
|
||||
int dimensionPixelSize = values.getDimensionPixelSize(R.styleable.StationNearView_departuresTitleTextSize, (int) getContext().getResources().getDimension(R.dimen.medium_text_size));
|
||||
ViewStationNearBinding viewStationNearBinding4 = this.binding;
|
||||
if (viewStationNearBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding4 = null;
|
||||
}
|
||||
viewStationNearBinding4.stationInfoDepartures.getStationOptionTitle().setTextSize(0, dimensionPixelSize);
|
||||
String string2 = values.getString(R.styleable.StationNearView_departuresSubtitleText);
|
||||
if (string2 != null) {
|
||||
StringUtils.Companion companion2 = StringUtils.INSTANCE;
|
||||
Context context3 = getContext();
|
||||
Intrinsics.checkNotNullExpressionValue(context3, "getContext(...)");
|
||||
Intrinsics.checkNotNull(string2);
|
||||
SpannableString textStyle2 = companion2.textStyle(context3, string2, string2, R.font.open_sans_bold, getContext().getColor(i4));
|
||||
ViewStationNearBinding viewStationNearBinding5 = this.binding;
|
||||
if (viewStationNearBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding5 = null;
|
||||
}
|
||||
viewStationNearBinding5.stationInfoDepartures.getStationOptionSubtitle().setText(textStyle2);
|
||||
}
|
||||
int color2 = values.getColor(R.styleable.StationNearView_departuresSubtitleTextColor, getContext().getColor(i4));
|
||||
ViewStationNearBinding viewStationNearBinding6 = this.binding;
|
||||
if (viewStationNearBinding6 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding6 = null;
|
||||
}
|
||||
viewStationNearBinding6.stationInfoDepartures.getStationOptionSubtitle().setTextColor(color2);
|
||||
int dimensionPixelSize2 = values.getDimensionPixelSize(R.styleable.StationNearView_departuresSubtitleTextSize, (int) getContext().getResources().getDimension(R.dimen.big_text_size));
|
||||
ViewStationNearBinding viewStationNearBinding7 = this.binding;
|
||||
if (viewStationNearBinding7 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding7 = null;
|
||||
}
|
||||
viewStationNearBinding7.stationInfoDepartures.getStationOptionSubtitle().setTextSize(0, dimensionPixelSize2);
|
||||
ViewStationNearBinding viewStationNearBinding8 = this.binding;
|
||||
if (viewStationNearBinding8 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
viewStationNearBinding = viewStationNearBinding8;
|
||||
}
|
||||
viewStationNearBinding.stationInfoDepartures.setEnabled(values.getBoolean(R.styleable.StationNearView_departuresAvailable, false));
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressLint({"SetTextI18n"})
|
||||
private final void updateDistanceTime(Float distance, Float time) {
|
||||
int i;
|
||||
ViewStationNearBinding viewStationNearBinding = this.binding;
|
||||
if (viewStationNearBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding = null;
|
||||
}
|
||||
TextView textView = viewStationNearBinding.nearStationInfo;
|
||||
if (distance == null || time == null) {
|
||||
i = 8;
|
||||
} else {
|
||||
textView.setText(FloatExtensionsKt.toDistance(distance.floatValue()) + " - " + FloatExtensionsKt.toDuration(time.floatValue()));
|
||||
i = 0;
|
||||
}
|
||||
textView.setVisibility(i);
|
||||
}
|
||||
|
||||
private final void updateInfoOption(TypedArray values) {
|
||||
if (values != null) {
|
||||
String string = values.getString(R.styleable.StationNearView_infoTitleText);
|
||||
ViewStationNearBinding viewStationNearBinding = null;
|
||||
if (string != null) {
|
||||
ViewStationNearBinding viewStationNearBinding2 = this.binding;
|
||||
if (viewStationNearBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding2 = null;
|
||||
}
|
||||
viewStationNearBinding2.stationInfoDetails.getStationOptionTitle().setText(string);
|
||||
}
|
||||
int i = R.styleable.StationNearView_infoTitleTextColor;
|
||||
Context context = getContext();
|
||||
int i4 = R.color.white;
|
||||
int color = values.getColor(i, context.getColor(i4));
|
||||
ViewStationNearBinding viewStationNearBinding3 = this.binding;
|
||||
if (viewStationNearBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding3 = null;
|
||||
}
|
||||
viewStationNearBinding3.stationInfoDetails.getStationOptionTitle().setTextColor(color);
|
||||
int dimensionPixelSize = values.getDimensionPixelSize(R.styleable.StationNearView_infoTitleTextSize, (int) getContext().getResources().getDimension(R.dimen.big_text_size));
|
||||
ViewStationNearBinding viewStationNearBinding4 = this.binding;
|
||||
if (viewStationNearBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding4 = null;
|
||||
}
|
||||
viewStationNearBinding4.stationInfoDetails.getStationOptionTitle().setTextSize(0, dimensionPixelSize);
|
||||
String string2 = values.getString(R.styleable.StationNearView_infoSubtitleText);
|
||||
if (string2 != null) {
|
||||
ViewStationNearBinding viewStationNearBinding5 = this.binding;
|
||||
if (viewStationNearBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding5 = null;
|
||||
}
|
||||
viewStationNearBinding5.stationInfoDetails.getStationOptionSubtitle().setText(string2);
|
||||
}
|
||||
int color2 = values.getColor(R.styleable.StationNearView_infoSubtitleTextColor, getContext().getColor(i4));
|
||||
ViewStationNearBinding viewStationNearBinding6 = this.binding;
|
||||
if (viewStationNearBinding6 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding6 = null;
|
||||
}
|
||||
viewStationNearBinding6.stationInfoDetails.getStationOptionSubtitle().setTextColor(color2);
|
||||
int dimensionPixelSize2 = values.getDimensionPixelSize(R.styleable.StationNearView_infoSubtitleTextSize, (int) getContext().getResources().getDimension(R.dimen.medium_text_size));
|
||||
ViewStationNearBinding viewStationNearBinding7 = this.binding;
|
||||
if (viewStationNearBinding7 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding7 = null;
|
||||
}
|
||||
viewStationNearBinding7.stationInfoDetails.getStationOptionSubtitle().setTextSize(0, dimensionPixelSize2);
|
||||
ViewStationNearBinding viewStationNearBinding8 = this.binding;
|
||||
if (viewStationNearBinding8 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
viewStationNearBinding = viewStationNearBinding8;
|
||||
}
|
||||
viewStationNearBinding.stationInfoDetails.setEnabled(values.getBoolean(R.styleable.StationNearView_infoAvailable, false));
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void updateShowStationOption(int visibility) {
|
||||
ViewStationNearBinding viewStationNearBinding = this.binding;
|
||||
ViewStationNearBinding viewStationNearBinding2 = null;
|
||||
if (viewStationNearBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding = null;
|
||||
}
|
||||
viewStationNearBinding.stationInfoArrivals.setVisibility(visibility);
|
||||
ViewStationNearBinding viewStationNearBinding3 = this.binding;
|
||||
if (viewStationNearBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding3 = null;
|
||||
}
|
||||
viewStationNearBinding3.stationInfoDepartures.setVisibility(visibility);
|
||||
ViewStationNearBinding viewStationNearBinding4 = this.binding;
|
||||
if (viewStationNearBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding4 = null;
|
||||
}
|
||||
viewStationNearBinding4.stationInfoComercial.setVisibility(visibility);
|
||||
ViewStationNearBinding viewStationNearBinding5 = this.binding;
|
||||
if (viewStationNearBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
viewStationNearBinding2 = viewStationNearBinding5;
|
||||
}
|
||||
viewStationNearBinding2.stationInfoDetails.setVisibility(visibility);
|
||||
}
|
||||
|
||||
private final void updateShowStationOptions(StationViewEntity station) {
|
||||
ViewStationNearBinding viewStationNearBinding = this.binding;
|
||||
ViewStationNearBinding viewStationNearBinding2 = null;
|
||||
if (viewStationNearBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding = null;
|
||||
}
|
||||
viewStationNearBinding.nearStationInfo.setVisibility(station != null ? 0 : 8);
|
||||
ViewStationNearBinding viewStationNearBinding3 = this.binding;
|
||||
if (viewStationNearBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
viewStationNearBinding2 = viewStationNearBinding3;
|
||||
}
|
||||
viewStationNearBinding2.permissionStatusTextView.setVisibility(station != null ? 8 : 0);
|
||||
updateShowStationOption(station != null ? 0 : 8);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void updateStationTitle(String title) {
|
||||
ViewStationNearBinding viewStationNearBinding = this.binding;
|
||||
if (viewStationNearBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding = null;
|
||||
}
|
||||
viewStationNearBinding.nearStationSubtitle.setText(title);
|
||||
}
|
||||
|
||||
private final void updateTitle(String title) {
|
||||
ViewStationNearBinding viewStationNearBinding = this.binding;
|
||||
if (viewStationNearBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding = null;
|
||||
}
|
||||
viewStationNearBinding.nearStationTitle.setText(title);
|
||||
}
|
||||
|
||||
public final Function1<StationOptionViewEntity, Unit> getListener() {
|
||||
return this.listener;
|
||||
}
|
||||
|
||||
public final void setListener(Function1<? super StationOptionViewEntity, Unit> function1) {
|
||||
this.listener = function1;
|
||||
ViewStationNearBinding viewStationNearBinding = this.binding;
|
||||
ViewStationNearBinding viewStationNearBinding2 = null;
|
||||
if (viewStationNearBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding = null;
|
||||
}
|
||||
viewStationNearBinding.stationInfoDepartures.setListener(this.listener);
|
||||
ViewStationNearBinding viewStationNearBinding3 = this.binding;
|
||||
if (viewStationNearBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding3 = null;
|
||||
}
|
||||
viewStationNearBinding3.stationInfoArrivals.setListener(this.listener);
|
||||
ViewStationNearBinding viewStationNearBinding4 = this.binding;
|
||||
if (viewStationNearBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding4 = null;
|
||||
}
|
||||
viewStationNearBinding4.stationInfoDetails.setListener(this.listener);
|
||||
ViewStationNearBinding viewStationNearBinding5 = this.binding;
|
||||
if (viewStationNearBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
viewStationNearBinding2 = viewStationNearBinding5;
|
||||
}
|
||||
viewStationNearBinding2.stationInfoComercial.setListener(this.listener);
|
||||
}
|
||||
|
||||
public final void update(HomeFragmentBottomSheetViewState state, CoroutineScope scope) {
|
||||
Intrinsics.checkNotNullParameter(state, "state");
|
||||
Intrinsics.checkNotNullParameter(scope, "scope");
|
||||
if (state instanceof HomeFragmentBottomSheetViewState.NearestStationShown) {
|
||||
HomeFragmentBottomSheetViewState.NearestStationShown nearestStationShown = (HomeFragmentBottomSheetViewState.NearestStationShown) state;
|
||||
setStation(nearestStationShown.getNearestStation());
|
||||
showLoading(nearestStationShown.getShowLoading(), scope);
|
||||
showLocationPermissionStatus(nearestStationShown.getLocationStatus());
|
||||
return;
|
||||
}
|
||||
if (!(state instanceof HomeFragmentBottomSheetViewState.StationSelected)) {
|
||||
boolean z3 = state instanceof HomeFragmentBottomSheetViewState.Hidden;
|
||||
} else {
|
||||
setStation(((HomeFragmentBottomSheetViewState.StationSelected) state).getSelectedStation());
|
||||
hideLocationPermissionStatusMessage();
|
||||
}
|
||||
}
|
||||
|
||||
private final void updateStationTitle(TypedArray values) {
|
||||
String string;
|
||||
if (values == null || (string = values.getString(R.styleable.StationNearView_stationTitleText)) == null) {
|
||||
return;
|
||||
}
|
||||
updateStationTitle(string);
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public StationNearView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
initView(context, attributeSet);
|
||||
}
|
||||
|
||||
public /* synthetic */ StationNearView(Context context, AttributeSet attributeSet, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(context, (i & 2) != 0 ? null : attributeSet);
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public StationNearView(Context context, AttributeSet attributeSet, int i) {
|
||||
super(context, attributeSet, i);
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
initView(context, attributeSet);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,181 @@
|
||||
package com.adif.elcanomovil.uiHome.views;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Rect;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import androidx.recyclerview.widget.AbstractC0232n0;
|
||||
import androidx.recyclerview.widget.E0;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.adif.elcanomovil.uiHome.R;
|
||||
import com.adif.elcanomovil.uiHome.adapters.UserFavoritesAdapter;
|
||||
import com.adif.elcanomovil.uiHome.data.UserFavoriteVO;
|
||||
import com.adif.elcanomovil.uiHome.databinding.ViewUserFavoritesBinding;
|
||||
import com.google.android.gms.common.internal.ServiceSpecificExtraArgs;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.function.Predicate;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000P\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010 \n\u0002\b\u0006\u0018\u00002\u00020\u0001B\u000f\b\u0016\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004B\u001b\b\u0016\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\u0002\u0010\u0007B!\b\u0016\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\b\u0010\b\u001a\u0004\u0018\u00010\u0006\u0012\u0006\u0010\t\u001a\u00020\n¢\u0006\u0002\u0010\u000bJ\u000e\u0010\u001d\u001a\u00020\u00172\u0006\u0010\u001e\u001a\u00020\u0010J\u0014\u0010\u001f\u001a\u00020\u00172\f\u0010\u0012\u001a\b\u0012\u0004\u0012\u00020\u00100 J\b\u0010!\u001a\u00020\u0017H\u0002J\u001a\u0010\"\u001a\u00020\u00172\u0006\u0010\u0002\u001a\u00020\u00032\b\u0010\b\u001a\u0004\u0018\u00010\u0006H\u0002J\b\u0010#\u001a\u00020\u0017H\u0002J\u0006\u0010$\u001a\u00020\u0017J\u000e\u0010%\u001a\u00020\u00172\u0006\u0010\u001e\u001a\u00020\u0010R\u000e\u0010\f\u001a\u00020\rX\u0082.¢\u0006\u0002\n\u0000R>\u0010\u0012\u001a\u0012\u0012\u0004\u0012\u00020\u00100\u000fj\b\u0012\u0004\u0012\u00020\u0010`\u00112\u0016\u0010\u000e\u001a\u0012\u0012\u0004\u0012\u00020\u00100\u000fj\b\u0012\u0004\u0012\u00020\u0010`\u0011@BX\u0082\u000e¢\u0006\b\n\u0000\"\u0004\b\u0013\u0010\u0014R,\u0010\u0015\u001a\u0014\u0012\u0004\u0012\u00020\u0010\u0012\u0004\u0012\u00020\u0017\u0018\u00010\u0016j\u0002`\u0018X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0019\u0010\u001a\"\u0004\b\u001b\u0010\u001c¨\u0006&"}, d2 = {"Lcom/adif/elcanomovil/uiHome/views/UserFavoritesView;", "Landroidx/constraintlayout/widget/ConstraintLayout;", "context", "Landroid/content/Context;", "(Landroid/content/Context;)V", "attr", "Landroid/util/AttributeSet;", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "attrs", "defStyleAttr", "", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "binding", "Lcom/adif/elcanomovil/uiHome/databinding/ViewUserFavoritesBinding;", "value", "Ljava/util/ArrayList;", "Lcom/adif/elcanomovil/uiHome/data/UserFavoriteVO;", "Lkotlin/collections/ArrayList;", "favorites", "setFavorites", "(Ljava/util/ArrayList;)V", ServiceSpecificExtraArgs.CastExtraArgs.LISTENER, "Lkotlin/Function1;", "", "Lcom/adif/elcanomovil/uiHome/adapters/UserFavoriteListener;", "getListener", "()Lkotlin/jvm/functions/Function1;", "setListener", "(Lkotlin/jvm/functions/Function1;)V", "addFavorite", "favorite", "addFavorites", "", "configureViews", "initView", "notifyDataSetChanged", "removeAllFavorites", "removeFavorite", "ui-home_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nUserFavoritesView.kt\nKotlin\n*S Kotlin\n*F\n+ 1 UserFavoritesView.kt\ncom/adif/elcanomovil/uiHome/views/UserFavoritesView\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,105:1\n350#2,7:106\n*S KotlinDebug\n*F\n+ 1 UserFavoritesView.kt\ncom/adif/elcanomovil/uiHome/views/UserFavoritesView\n*L\n74#1:106,7\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class UserFavoritesView extends ConstraintLayout {
|
||||
private ViewUserFavoritesBinding binding;
|
||||
private ArrayList<UserFavoriteVO> favorites;
|
||||
private Function1<? super UserFavoriteVO, Unit> listener;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public UserFavoritesView(Context context) {
|
||||
super(context);
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
this.favorites = new ArrayList<>();
|
||||
initView(context, null);
|
||||
}
|
||||
|
||||
private final void configureViews() {
|
||||
ViewUserFavoritesBinding viewUserFavoritesBinding = this.binding;
|
||||
if (viewUserFavoritesBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewUserFavoritesBinding = null;
|
||||
}
|
||||
viewUserFavoritesBinding.recycleViewFavouriteStations.i(new AbstractC0232n0() { // from class: com.adif.elcanomovil.uiHome.views.UserFavoritesView$configureViews$1
|
||||
@Override // androidx.recyclerview.widget.AbstractC0232n0
|
||||
public void getItemOffsets(Rect outRect, View view, RecyclerView parent, E0 state) {
|
||||
Intrinsics.checkNotNullParameter(outRect, "outRect");
|
||||
Intrinsics.checkNotNullParameter(view, "view");
|
||||
Intrinsics.checkNotNullParameter(parent, "parent");
|
||||
Intrinsics.checkNotNullParameter(state, "state");
|
||||
super.getItemOffsets(outRect, view, parent, state);
|
||||
outRect.bottom = 16;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private final void initView(Context context, AttributeSet attrs) {
|
||||
View.inflate(context, R.layout.view_user_favorites, this);
|
||||
ViewUserFavoritesBinding bind = ViewUserFavoritesBinding.bind(this);
|
||||
Intrinsics.checkNotNullExpressionValue(bind, "bind(...)");
|
||||
this.binding = bind;
|
||||
configureViews();
|
||||
}
|
||||
|
||||
private final void notifyDataSetChanged() {
|
||||
ViewUserFavoritesBinding viewUserFavoritesBinding = this.binding;
|
||||
if (viewUserFavoritesBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewUserFavoritesBinding = null;
|
||||
}
|
||||
RecyclerView recyclerView = viewUserFavoritesBinding.recycleViewFavouriteStations;
|
||||
ArrayList<UserFavoriteVO> arrayList = this.favorites;
|
||||
Function1<? super UserFavoriteVO, Unit> function1 = this.listener;
|
||||
Context context = getContext();
|
||||
Intrinsics.checkNotNullExpressionValue(context, "getContext(...)");
|
||||
recyclerView.setAdapter(new UserFavoritesAdapter(arrayList, function1, context));
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final boolean removeFavorite$lambda$0(Function1 tmp0, Object obj) {
|
||||
Intrinsics.checkNotNullParameter(tmp0, "$tmp0");
|
||||
return ((Boolean) tmp0.invoke(obj)).booleanValue();
|
||||
}
|
||||
|
||||
private final void setFavorites(ArrayList<UserFavoriteVO> arrayList) {
|
||||
this.favorites = arrayList;
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
public final void addFavorite(UserFavoriteVO favorite) {
|
||||
Intrinsics.checkNotNullParameter(favorite, "favorite");
|
||||
this.favorites.add(favorite);
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
public final void addFavorites(List<UserFavoriteVO> favorites) {
|
||||
Intrinsics.checkNotNullParameter(favorites, "favorites");
|
||||
setFavorites(new ArrayList<>());
|
||||
this.favorites.addAll(favorites);
|
||||
ViewUserFavoritesBinding viewUserFavoritesBinding = this.binding;
|
||||
ViewUserFavoritesBinding viewUserFavoritesBinding2 = null;
|
||||
if (viewUserFavoritesBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewUserFavoritesBinding = null;
|
||||
}
|
||||
viewUserFavoritesBinding.recycleViewFavouriteStations.setVisibility(0);
|
||||
ViewUserFavoritesBinding viewUserFavoritesBinding3 = this.binding;
|
||||
if (viewUserFavoritesBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
viewUserFavoritesBinding2 = viewUserFavoritesBinding3;
|
||||
}
|
||||
viewUserFavoritesBinding2.viewFavouriteStationsEmpty.setVisibility(8);
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
public final Function1<UserFavoriteVO, Unit> getListener() {
|
||||
return this.listener;
|
||||
}
|
||||
|
||||
public final void removeAllFavorites() {
|
||||
setFavorites(new ArrayList<>());
|
||||
ViewUserFavoritesBinding viewUserFavoritesBinding = this.binding;
|
||||
ViewUserFavoritesBinding viewUserFavoritesBinding2 = null;
|
||||
if (viewUserFavoritesBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewUserFavoritesBinding = null;
|
||||
}
|
||||
viewUserFavoritesBinding.recycleViewFavouriteStations.setVisibility(8);
|
||||
ViewUserFavoritesBinding viewUserFavoritesBinding3 = this.binding;
|
||||
if (viewUserFavoritesBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
viewUserFavoritesBinding2 = viewUserFavoritesBinding3;
|
||||
}
|
||||
viewUserFavoritesBinding2.viewFavouriteStationsEmpty.setVisibility(0);
|
||||
}
|
||||
|
||||
public final void removeFavorite(UserFavoriteVO favorite) {
|
||||
Intrinsics.checkNotNullParameter(favorite, "favorite");
|
||||
ArrayList<UserFavoriteVO> arrayList = this.favorites;
|
||||
final I1.b bVar = new I1.b(favorite, 10);
|
||||
arrayList.removeIf(new Predicate() { // from class: com.adif.elcanomovil.uiHome.views.k
|
||||
@Override // java.util.function.Predicate
|
||||
public final boolean test(Object obj) {
|
||||
boolean removeFavorite$lambda$0;
|
||||
removeFavorite$lambda$0 = UserFavoritesView.removeFavorite$lambda$0(I1.b.this, obj);
|
||||
return removeFavorite$lambda$0;
|
||||
}
|
||||
});
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
public final void setListener(Function1<? super UserFavoriteVO, Unit> function1) {
|
||||
this.listener = function1;
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public UserFavoritesView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
this.favorites = new ArrayList<>();
|
||||
initView(context, attributeSet);
|
||||
}
|
||||
|
||||
public /* synthetic */ UserFavoritesView(Context context, AttributeSet attributeSet, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(context, (i & 2) != 0 ? null : attributeSet);
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public UserFavoritesView(Context context, AttributeSet attributeSet, int i) {
|
||||
super(context, attributeSet, i);
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
this.favorites = new ArrayList<>();
|
||||
initView(context, attributeSet);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.adif.elcanomovil.uiHome.views;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\b\n\u0000\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0082T¢\u0006\u0002\n\u0000¨\u0006\u0002"}, d2 = {"DIVIDER_HEIGHT", "", "ui-home_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class UserFavoritesViewKt {
|
||||
private static final int DIVIDER_HEIGHT = 16;
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.adif.elcanomovil.uiHome.views;
|
||||
|
||||
import com.adif.elcanomovil.commonViews.data.StationViewEntity;
|
||||
import com.google.android.gms.maps.model.LatLng;
|
||||
import java.util.ArrayList;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class a extends Lambda implements Function1 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ int f5110a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeMapView f5111b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public /* synthetic */ a(HomeMapView homeMapView, int i) {
|
||||
super(1);
|
||||
this.f5110a = i;
|
||||
this.f5111b = homeMapView;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
switch (this.f5110a) {
|
||||
case 0:
|
||||
StationViewEntity stationViewEntity = (StationViewEntity) obj;
|
||||
Function1<StationViewEntity, Unit> listener = this.f5111b.getListener();
|
||||
if (listener != null) {
|
||||
listener.invoke(stationViewEntity);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
case 1:
|
||||
ArrayList arrayList = (ArrayList) obj;
|
||||
Intrinsics.checkNotNull(arrayList);
|
||||
HomeMapView.access$addMarkers(this.f5111b, arrayList);
|
||||
return Unit.INSTANCE;
|
||||
case 2:
|
||||
LatLng latLng = (LatLng) obj;
|
||||
Intrinsics.checkNotNull(latLng);
|
||||
HomeMapView.access$moveMapCameraTo(this.f5111b, latLng, Float.valueOf(14.0f));
|
||||
return Unit.INSTANCE;
|
||||
default:
|
||||
HomeMapView.access$configureMapLocation(this.f5111b);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.adif.elcanomovil.uiHome.views;
|
||||
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class b extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5112a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeMapViewModel f5113b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public b(HomeMapViewModel homeMapViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5113b = homeMapViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new b(this.f5113b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((b) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object fetchUserHomeStation;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f5112a;
|
||||
if (i != 0) {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
return obj;
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
this.f5112a = 1;
|
||||
fetchUserHomeStation = this.f5113b.fetchUserHomeStation(this);
|
||||
return fetchUserHomeStation == coroutine_suspended ? coroutine_suspended : fetchUserHomeStation;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.adif.elcanomovil.uiHome.views;
|
||||
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class c extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5114a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeMapViewModel f5115b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public c(HomeMapViewModel homeMapViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5115b = homeMapViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new c(this.f5115b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((c) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object fetchUserWorkStation;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f5114a;
|
||||
if (i != 0) {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
return obj;
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
this.f5114a = 1;
|
||||
fetchUserWorkStation = this.f5115b.fetchUserWorkStation(this);
|
||||
return fetchUserWorkStation == coroutine_suspended ? coroutine_suspended : fetchUserWorkStation;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.adif.elcanomovil.uiHome.views;
|
||||
|
||||
import com.google.android.gms.maps.model.LatLngBounds;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class d extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public Object f5116a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public Object f5117b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public Object f5118c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public Object f5119d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public int f5120e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public /* synthetic */ Object f5121f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeMapViewModel f5122g;
|
||||
public final /* synthetic */ LatLngBounds h;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public d(HomeMapViewModel homeMapViewModel, LatLngBounds latLngBounds, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5122g = homeMapViewModel;
|
||||
this.h = latLngBounds;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
d dVar = new d(this.f5122g, this.h, continuation);
|
||||
dVar.f5121f = obj;
|
||||
return dVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((d) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:10:0x0128 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:20:0x0104 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:24:0x011d */
|
||||
/* JADX WARN: Removed duplicated region for block: B:25:0x0109 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:29:0x00db */
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r15) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 317
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiHome.views.d.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.adif.elcanomovil.uiHome.views;
|
||||
|
||||
import com.adif.elcanomovil.uiHome.mappers.StationViewEntityMapper;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class e extends ContinuationImpl {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public StationViewEntityMapper f5123a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f5124b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeMapViewModel f5125c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public int f5126d;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public e(HomeMapViewModel homeMapViewModel, Continuation continuation) {
|
||||
super(continuation);
|
||||
this.f5125c = homeMapViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object fetchUserHomeStation;
|
||||
this.f5124b = obj;
|
||||
this.f5126d |= IntCompanionObject.MIN_VALUE;
|
||||
fetchUserHomeStation = this.f5125c.fetchUserHomeStation(this);
|
||||
return fetchUserHomeStation;
|
||||
}
|
||||
}
|
||||
122
apk_decompiled/sources/com/adif/elcanomovil/uiHome/views/f.java
Normal file
122
apk_decompiled/sources/com/adif/elcanomovil/uiHome/views/f.java
Normal file
@@ -0,0 +1,122 @@
|
||||
package com.adif.elcanomovil.uiHome.views;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class f extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5127a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f5128b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeMapViewModel f5129c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public f(HomeMapViewModel homeMapViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5129c = homeMapViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
f fVar = new f(this.f5129c, continuation);
|
||||
fVar.f5128b = obj;
|
||||
return fVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((f) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:18:0x0057, code lost:
|
||||
|
||||
if (r7 == r0) goto L15;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:19:0x0059, code lost:
|
||||
|
||||
return r0;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:21:0x003d, code lost:
|
||||
|
||||
if (r7 == r0) goto L15;
|
||||
*/
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r7) {
|
||||
/*
|
||||
r6 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r6.f5127a
|
||||
com.adif.elcanomovil.uiHome.views.HomeMapViewModel r2 = r6.f5129c
|
||||
r3 = 0
|
||||
r4 = 2
|
||||
r5 = 1
|
||||
if (r1 == 0) goto L29
|
||||
if (r1 == r5) goto L21
|
||||
if (r1 != r4) goto L19
|
||||
java.lang.Object r6 = r6.f5128b
|
||||
kotlinx.coroutines.CoroutineScope r6 = (kotlinx.coroutines.CoroutineScope) r6
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
goto L5a
|
||||
L19:
|
||||
java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
|
||||
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r6.<init>(r7)
|
||||
throw r6
|
||||
L21:
|
||||
java.lang.Object r1 = r6.f5128b
|
||||
kotlinx.coroutines.CoroutineScope r1 = (kotlinx.coroutines.CoroutineScope) r1
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
goto L40
|
||||
L29:
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
java.lang.Object r7 = r6.f5128b
|
||||
r1 = r7
|
||||
kotlinx.coroutines.CoroutineScope r1 = (kotlinx.coroutines.CoroutineScope) r1
|
||||
com.adif.elcanomovil.domain.usecases.user.GetUserLastLocationUseCase r7 = com.adif.elcanomovil.uiHome.views.HomeMapViewModel.access$getGetUserLastLocationUseCase$p(r2)
|
||||
r6.f5128b = r1
|
||||
r6.f5127a = r5
|
||||
java.lang.Object r7 = r7.invoke(r6)
|
||||
if (r7 != r0) goto L40
|
||||
goto L59
|
||||
L40:
|
||||
kotlinx.coroutines.flow.Flow r7 = (kotlinx.coroutines.flow.Flow) r7
|
||||
kotlinx.coroutines.flow.Flow r7 = kotlinx.coroutines.flow.FlowKt.filterNotNull(r7)
|
||||
com.adif.elcanomovil.uiHome.u r5 = new com.adif.elcanomovil.uiHome.u
|
||||
r5.<init>(r2, r3)
|
||||
kotlinx.coroutines.flow.Flow r7 = kotlinx.coroutines.flow.FlowKt.m1659catch(r7, r5)
|
||||
r6.f5128b = r1
|
||||
r6.f5127a = r4
|
||||
java.lang.Object r7 = kotlinx.coroutines.flow.FlowKt.firstOrNull(r7, r6)
|
||||
if (r7 != r0) goto L5a
|
||||
L59:
|
||||
return r0
|
||||
L5a:
|
||||
android.location.Location r7 = (android.location.Location) r7
|
||||
if (r7 == 0) goto L6a
|
||||
com.google.android.gms.maps.model.LatLng r6 = com.adif.elcanomovil.extensions.LocationExtensionsKt.toLatLngTranslatedToSouth(r7)
|
||||
com.adif.elcanomovil.uiHome.views.HomeMapViewModel.access$notifyViewMoveCameraToLocation(r2, r6)
|
||||
com.adif.elcanomovil.uiHome.views.HomeMapViewModel.access$notifyUserPermissionEnabled(r2)
|
||||
kotlin.Unit r3 = kotlin.Unit.INSTANCE
|
||||
L6a:
|
||||
if (r3 != 0) goto L73
|
||||
com.google.android.gms.maps.model.LatLng r6 = com.adif.elcanomovil.uiHome.views.HomeMapViewModelKt.access$getDEFAULT_LOCATION$p()
|
||||
com.adif.elcanomovil.uiHome.views.HomeMapViewModel.access$notifyViewMoveCameraToLocation(r2, r6)
|
||||
L73:
|
||||
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
||||
return r6
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiHome.views.f.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.adif.elcanomovil.uiHome.views;
|
||||
|
||||
import com.adif.elcanomovil.uiHome.mappers.StationViewEntityMapper;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class g extends ContinuationImpl {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public StationViewEntityMapper f5130a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f5131b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeMapViewModel f5132c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public int f5133d;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public g(HomeMapViewModel homeMapViewModel, Continuation continuation) {
|
||||
super(continuation);
|
||||
this.f5132c = homeMapViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object fetchUserWorkStation;
|
||||
this.f5131b = obj;
|
||||
this.f5133d |= IntCompanionObject.MIN_VALUE;
|
||||
fetchUserWorkStation = this.f5132c.fetchUserWorkStation(this);
|
||||
return fetchUserWorkStation;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.adif.elcanomovil.uiHome.views;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class h extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeMapViewModel f5134a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public h(HomeMapViewModel homeMapViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5134a = homeMapViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new h(this.f5134a, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((h) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
ArrayList arrayList;
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
HomeMapViewModel homeMapViewModel = this.f5134a;
|
||||
arrayList = homeMapViewModel.stationsMarkers;
|
||||
homeMapViewModel.notifyViewStationsMarkersUpdated(arrayList);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.adif.elcanomovil.uiHome.views;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public abstract class i {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public static final HomeMapViewModel_HiltModules_KeyModule_ProvideFactory f5135a = new HomeMapViewModel_HiltModules_KeyModule_ProvideFactory();
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package com.adif.elcanomovil.uiHome.views;
|
||||
|
||||
import com.adif.elcanomovil.uiHome.R;
|
||||
import com.adif.elcanomovil.uiHome.databinding.ViewStationNearBinding;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.DelayKt;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class j extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5136a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ StationNearView f5137b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public j(StationNearView stationNearView, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5137b = stationNearView;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new j(this.f5137b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((j) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
ViewStationNearBinding viewStationNearBinding;
|
||||
ViewStationNearBinding viewStationNearBinding2;
|
||||
ViewStationNearBinding viewStationNearBinding3;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f5136a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
this.f5136a = 1;
|
||||
if (DelayKt.delay(500L, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
StationNearView stationNearView = this.f5137b;
|
||||
viewStationNearBinding = stationNearView.binding;
|
||||
ViewStationNearBinding viewStationNearBinding4 = null;
|
||||
if (viewStationNearBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding = null;
|
||||
}
|
||||
viewStationNearBinding.permissionStatusTextView.setVisibility(8);
|
||||
stationNearView.updateShowStationOption(8);
|
||||
viewStationNearBinding2 = stationNearView.binding;
|
||||
if (viewStationNearBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
viewStationNearBinding2 = null;
|
||||
}
|
||||
viewStationNearBinding2.nearStationInfo.setVisibility(8);
|
||||
viewStationNearBinding3 = stationNearView.binding;
|
||||
if (viewStationNearBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
viewStationNearBinding4 = viewStationNearBinding3;
|
||||
}
|
||||
viewStationNearBinding4.stationOptionsLoading.setVisibility(0);
|
||||
stationNearView.updateStationTitle(stationNearView.getRootView().getContext().getString(R.string.near_station_loading_title));
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
40
apk_decompiled/sources/com/adif/elcanomovil/uiHome/w.java
Normal file
40
apk_decompiled/sources/com/adif/elcanomovil/uiHome/w.java
Normal file
@@ -0,0 +1,40 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.uiHome.mappers.StationViewEntityMapper;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class w extends ContinuationImpl {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public HomeViewModel f5139a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public StationViewEntityMapper f5140b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public /* synthetic */ Object f5141c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeViewModel f5142d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public int f5143e;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public w(HomeViewModel homeViewModel, Continuation continuation) {
|
||||
super(continuation);
|
||||
this.f5142d = homeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object fetchWorkStation;
|
||||
this.f5141c = obj;
|
||||
this.f5143e |= IntCompanionObject.MIN_VALUE;
|
||||
fetchWorkStation = this.f5142d.fetchWorkStation(this);
|
||||
return fetchWorkStation;
|
||||
}
|
||||
}
|
||||
36
apk_decompiled/sources/com/adif/elcanomovil/uiHome/x.java
Normal file
36
apk_decompiled/sources/com/adif/elcanomovil/uiHome/x.java
Normal file
@@ -0,0 +1,36 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class x extends ContinuationImpl {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public String f5144a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f5145b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeViewModel f5146c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public int f5147d;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public x(HomeViewModel homeViewModel, Continuation continuation) {
|
||||
super(continuation);
|
||||
this.f5146c = homeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object handleTrainTap;
|
||||
this.f5145b = obj;
|
||||
this.f5147d |= IntCompanionObject.MIN_VALUE;
|
||||
handleTrainTap = this.f5146c.handleTrainTap(null, this);
|
||||
return handleTrainTap;
|
||||
}
|
||||
}
|
||||
118
apk_decompiled/sources/com/adif/elcanomovil/uiHome/y.java
Normal file
118
apk_decompiled/sources/com/adif/elcanomovil/uiHome/y.java
Normal file
@@ -0,0 +1,118 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import com.adif.elcanomovil.uiHome.HomeFragmentViewAction;
|
||||
import com.adif.elcanomovil.uiHome.mappers.StationViewEntityMapper;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class y extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public HomeViewModel f5148a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public StationViewEntityMapper f5149b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public int f5150c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeViewModel f5151d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeFragmentViewAction.HomeStationSet f5152e;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public y(HomeViewModel homeViewModel, HomeFragmentViewAction.HomeStationSet homeStationSet, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5151d = homeViewModel;
|
||||
this.f5152e = homeStationSet;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new y(this.f5151d, this.f5152e, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((y) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:20:0x0037, code lost:
|
||||
|
||||
if (r6.invoke(r1, r5) == r0) goto L15;
|
||||
*/
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0059 */
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r6) {
|
||||
/*
|
||||
r5 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r5.f5150c
|
||||
com.adif.elcanomovil.uiHome.HomeViewModel r2 = r5.f5151d
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r1 == 0) goto L24
|
||||
if (r1 == r4) goto L20
|
||||
if (r1 != r3) goto L18
|
||||
com.adif.elcanomovil.uiHome.mappers.StationViewEntityMapper r0 = r5.f5149b
|
||||
com.adif.elcanomovil.uiHome.HomeViewModel r5 = r5.f5148a
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L50
|
||||
L18:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L20:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L3a
|
||||
L24:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
com.adif.elcanomovil.domain.usecases.stations.SetHomeStationUseCase r6 = com.adif.elcanomovil.uiHome.HomeViewModel.access$getSetHomeStationUseCase$p(r2)
|
||||
com.adif.elcanomovil.uiHome.HomeFragmentViewAction$HomeStationSet r1 = r5.f5152e
|
||||
java.lang.String r1 = r1.getStationId()
|
||||
r5.f5150c = r4
|
||||
java.lang.Object r6 = r6.invoke(r1, r5)
|
||||
if (r6 != r0) goto L3a
|
||||
goto L4c
|
||||
L3a:
|
||||
com.adif.elcanomovil.uiHome.mappers.StationViewEntityMapper r6 = com.adif.elcanomovil.uiHome.mappers.StationViewEntityMapper.INSTANCE
|
||||
com.adif.elcanomovil.domain.usecases.stations.GetHomeStationUseCase r1 = com.adif.elcanomovil.uiHome.HomeViewModel.access$getGetHomeStationUseCase$p(r2)
|
||||
r5.f5148a = r2
|
||||
r5.f5149b = r6
|
||||
r5.f5150c = r3
|
||||
java.lang.Object r5 = r1.invoke(r5)
|
||||
if (r5 != r0) goto L4d
|
||||
L4c:
|
||||
return r0
|
||||
L4d:
|
||||
r0 = r6
|
||||
r6 = r5
|
||||
r5 = r2
|
||||
L50:
|
||||
com.adif.elcanomovil.domain.entities.station.Station r6 = (com.adif.elcanomovil.domain.entities.station.Station) r6
|
||||
com.adif.elcanomovil.commonViews.data.StationViewEntity r6 = r0.map(r6)
|
||||
if (r6 != 0) goto L59
|
||||
goto L5e
|
||||
L59:
|
||||
com.adif.elcanomovil.commonViews.data.StationViewEntity$Type r0 = com.adif.elcanomovil.commonViews.data.StationViewEntity.Type.HOME
|
||||
r6.setType(r0)
|
||||
L5e:
|
||||
com.adif.elcanomovil.uiHome.HomeViewModel.access$setHomeStation$p(r5, r6)
|
||||
com.adif.elcanomovil.uiHome.HomeViewModel.access$updateViewState(r2)
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiHome.y.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
42
apk_decompiled/sources/com/adif/elcanomovil/uiHome/z.java
Normal file
42
apk_decompiled/sources/com/adif/elcanomovil/uiHome/z.java
Normal file
@@ -0,0 +1,42 @@
|
||||
package com.adif.elcanomovil.uiHome;
|
||||
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class z extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ HomeViewModel f5153a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public z(HomeViewModel homeViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5153a = homeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new z(this.f5153a, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((z) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
HomeViewModel homeViewModel = this.f5153a;
|
||||
homeViewModel.notifyLocationAvailable();
|
||||
homeViewModel.updateViewState();
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user