Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.AvisaStationCategory;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.AvisaStationCategoryResponse;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.AvisaStationCategoryEntity;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@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\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006J\u000e\u0010\u0007\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\bJ\u000e\u0010\t\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\b¨\u0006\n"}, d2 = {"Lcom/adif/elcanomovil/repositories/avisa/AvisaStationCategoryMapper;", "", "()V", "entityToDomain", "Lcom/adif/elcanomovil/domain/entities/avisa/AvisaStationCategory;", "source", "Lcom/adif/elcanomovil/serviceStorage/model/avisa/AvisaStationCategoryEntity;", "responseToDomain", "Lcom/adif/elcanomovil/serviceNetworking/avisa/model/AvisaStationCategoryResponse;", "responseToEntity", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class AvisaStationCategoryMapper {
|
||||
public final AvisaStationCategory entityToDomain(AvisaStationCategoryEntity source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new AvisaStationCategory(source.getCatId(), source.getTitle());
|
||||
}
|
||||
|
||||
public final AvisaStationCategory responseToDomain(AvisaStationCategoryResponse source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new AvisaStationCategory(source.getCatId(), source.getTitle());
|
||||
}
|
||||
|
||||
public final AvisaStationCategoryEntity responseToEntity(AvisaStationCategoryResponse source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new AvisaStationCategoryEntity(source.getCatId(), source.getTitle());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.AvisaStation;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.AvisaStationCategory;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.AvisaStationResponse;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.AvisaStationCategoryEntity;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.AvisaStationEntity;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@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\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006J\u000e\u0010\u0007\u001a\u00020\b2\u0006\u0010\u0005\u001a\u00020\tJ\u000e\u0010\n\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u000b¨\u0006\f"}, d2 = {"Lcom/adif/elcanomovil/repositories/avisa/AvisaStationMapper;", "", "()V", "entityToDomain", "Lcom/adif/elcanomovil/domain/entities/avisa/AvisaStation;", "source", "Lcom/adif/elcanomovil/serviceStorage/model/avisa/AvisaStationEntity;", "responseToCategoryEntity", "Lcom/adif/elcanomovil/domain/entities/avisa/AvisaStationCategory;", "Lcom/adif/elcanomovil/serviceStorage/model/avisa/AvisaStationCategoryEntity;", "responseToEntity", "Lcom/adif/elcanomovil/serviceNetworking/avisa/model/AvisaStationResponse;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class AvisaStationMapper {
|
||||
public final AvisaStation entityToDomain(AvisaStationEntity source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new AvisaStation(source.getStId(), source.getName(), source.getCode(), source.getLatitude(), source.getLongitude());
|
||||
}
|
||||
|
||||
public final AvisaStationCategory responseToCategoryEntity(AvisaStationCategoryEntity source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new AvisaStationCategory(source.getCatId(), source.getTitle());
|
||||
}
|
||||
|
||||
public final AvisaStationEntity responseToEntity(AvisaStationResponse source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new AvisaStationEntity(source.getStId(), source.getName(), source.getCode(), source.getLatitude(), source.getLongitude());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.adif.elcanomovil.domain.repositories.avisa.AvisaLoginRepository;
|
||||
import com.adif.elcanomovil.serviceNetworking.ServicePaths;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.AvisaLoginService;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.AvisaLoginResponse;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
@Metadata(d1 = {"\u0000F\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u000b\u0018\u00002\u00020\u0001B\u001d\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007¢\u0006\u0002\u0010\bJ\u0010\u0010\f\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\u000fH\u0002J\u001a\u0010\u0010\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\r0\u00120\u0011H\u0096@¢\u0006\u0002\u0010\u0013J\u001a\u0010\u0014\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\r0\u00120\u0011H\u0096@¢\u0006\u0002\u0010\u0013JR\u0010\u0015\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\r0\u00120\u00112\u0006\u0010\u0016\u001a\u00020\u00172\u0006\u0010\u0018\u001a\u00020\u00172\u0006\u0010\u0019\u001a\u00020\u00172\u0006\u0010\u001a\u001a\u00020\u00172\u0006\u0010\u001b\u001a\u00020\u00172\u0006\u0010\u001c\u001a\u00020\u00172\u0006\u0010\u001d\u001a\u00020\u0017H\u0096@¢\u0006\u0002\u0010\u001eJ\u001a\u0010\u001f\u001a\u00020\r2\u0006\u0010\u0018\u001a\u00020\u00172\b\u0010\u001b\u001a\u0004\u0018\u00010\u0017H\u0002J\u0010\u0010 \u001a\u00020\r2\u0006\u0010!\u001a\u00020\u0017H\u0002R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\t\u001a\u00020\n8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\t\u0010\u000bR\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0007X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\""}, d2 = {"Lcom/adif/elcanomovil/repositories/avisa/DefaultAvisaLoginRepository;", "Lcom/adif/elcanomovil/domain/repositories/avisa/AvisaLoginRepository;", "avisaLoginService", "Lcom/adif/elcanomovil/serviceNetworking/avisa/AvisaLoginService;", "preferences", "Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;", "tokenMapper", "Lcom/adif/elcanomovil/repositories/avisa/TokenMapper;", "(Lcom/adif/elcanomovil/serviceNetworking/avisa/AvisaLoginService;Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;Lcom/adif/elcanomovil/repositories/avisa/TokenMapper;)V", "isRegistered", "", "()Z", "handleAvisaLoginResponse", "", "avisaLoginResponse", "Lcom/adif/elcanomovil/serviceNetworking/avisa/model/AvisaLoginResponse;", FirebaseAnalytics.Event.LOGIN, "Lkotlinx/coroutines/flow/Flow;", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "refreshToken", "register", "registrationToken", "", "userId", "subscriptionUserId", "deviceId", ServicePaths.AvisaLoginService.queryPassword, "osType", "osVersion", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "storeAvisaUser", "storeSubscriptionUserId", "subscriptionsUserId", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultAvisaLoginRepository implements AvisaLoginRepository {
|
||||
private final AvisaLoginService avisaLoginService;
|
||||
private final PreferenceStorage preferences;
|
||||
private final TokenMapper tokenMapper;
|
||||
|
||||
public DefaultAvisaLoginRepository(AvisaLoginService avisaLoginService, PreferenceStorage preferences, TokenMapper tokenMapper) {
|
||||
Intrinsics.checkNotNullParameter(avisaLoginService, "avisaLoginService");
|
||||
Intrinsics.checkNotNullParameter(preferences, "preferences");
|
||||
Intrinsics.checkNotNullParameter(tokenMapper, "tokenMapper");
|
||||
this.avisaLoginService = avisaLoginService;
|
||||
this.preferences = preferences;
|
||||
this.tokenMapper = tokenMapper;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void handleAvisaLoginResponse(AvisaLoginResponse avisaLoginResponse) {
|
||||
this.preferences.setAvisaToken(this.tokenMapper.map(avisaLoginResponse));
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void storeAvisaUser(String userId, String password) {
|
||||
this.preferences.setAvisaUserId(userId);
|
||||
if (password != null) {
|
||||
this.preferences.setAvisaPassword(password);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void storeSubscriptionUserId(String subscriptionsUserId) {
|
||||
this.preferences.setSubscriptionsUserId(subscriptionsUserId);
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.avisa.AvisaLoginRepository
|
||||
public boolean isRegistered() {
|
||||
return this.preferences.isRegistered();
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.avisa.AvisaLoginRepository
|
||||
public Object login(Continuation<? super Flow<AsyncResult<Unit>>> continuation) {
|
||||
return FlowKt.flow(new a(this, null));
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.avisa.AvisaLoginRepository
|
||||
public Object refreshToken(Continuation<? super Flow<AsyncResult<Unit>>> continuation) {
|
||||
return FlowKt.flow(new b(this, null));
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.avisa.AvisaLoginRepository
|
||||
public Object register(String str, String str2, String str3, String str4, String str5, String str6, String str7, Continuation<? super Flow<AsyncResult<Unit>>> continuation) {
|
||||
return FlowKt.flow(new c(this, str3, str, str2, str4, str5, str6, str7, null));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,192 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.AvisaStation;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u00050\u0004H\u008a@¨\u0006\u0006"}, d2 = {"<anonymous>", "", "ResultType", "RequestType", "Lkotlinx/coroutines/flow/FlowCollector;", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1", f = "DefaultAvisaStationsRepository.kt", i = {0, 1, 2, 3, 4, 4, 5}, l = {18, 19, 22, 47, 54, 55, 38}, m = "invokeSuspend", n = {"$this$flow", "$this$flow", "$this$flow", "$this$flow", "$this$flow", "stationResponse", "$this$flow"}, s = {"L$0", "L$0", "L$0", "L$0", "L$0", "L$1", "L$0"})
|
||||
@SourceDebugExtension({"SMAP\nNetworkBoundResource.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n+ 2 DefaultAvisaStationsRepository.kt\ncom/adif/elcanomovil/repositories/avisa/DefaultAvisaStationsRepository$fetch$2\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 4 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 5 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n+ 6 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt\n*L\n1#1,40:1\n39#2,2:41\n65#2:43\n48#2:44\n47#2,11:45\n58#2,2:59\n62#2,2:62\n52#2,2:69\n1549#3:56\n1620#3,2:57\n1622#3:61\n53#4:64\n55#4:68\n53#4:71\n55#4:75\n53#4:76\n55#4:80\n53#4:81\n55#4:85\n50#5:65\n55#5:67\n50#5:72\n55#5:74\n50#5:77\n55#5:79\n50#5:82\n55#5:84\n109#6:66\n109#6:73\n109#6:78\n109#6:83\n*S KotlinDebug\n*F\n+ 1 DefaultAvisaStationsRepository.kt\ncom/adif/elcanomovil/repositories/avisa/DefaultAvisaStationsRepository$fetch$2\n+ 2 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n57#1:56\n57#1:57,2\n57#1:61\n26#2:64\n26#2:68\n29#2:71\n29#2:75\n31#2:76\n31#2:80\n35#2:81\n35#2:85\n26#2:65\n26#2:67\n29#2:72\n29#2:74\n31#2:77\n31#2:79\n35#2:82\n35#2:84\n26#2:66\n29#2:73\n31#2:78\n35#2:83\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1 extends SuspendLambda implements Function2<FlowCollector<? super AsyncResult<? extends List<? extends AvisaStation>>>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ boolean $shouldFetch$inlined;
|
||||
private /* synthetic */ Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
final /* synthetic */ DefaultAvisaStationsRepository this$0;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001c\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@¢\u0006\u0002\u0010\u0006¨\u0006\u0007¸\u0006\n"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nSafeCollector.common.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1\n+ 2 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n*L\n1#1,115:1\n51#2,5:116\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1$2, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass2 implements Flow<AsyncResult<? extends List<? extends AvisaStation>>> {
|
||||
final /* synthetic */ Flow $this_unsafeTransform$inlined;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\b\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1$2", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2$2"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n1#1,222:1\n54#2:223\n29#3:224\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1$2$2, reason: invalid class name and collision with other inner class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class C00012<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1$2$2", f = "DefaultAvisaStationsRepository.kt", i = {}, l = {223}, m = "emit", n = {}, s = {})
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1$2$2$1, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return C00012.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public C00012(FlowCollector flowCollector) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(java.lang.Object r5, kotlin.coroutines.Continuation r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1.AnonymousClass2.C00012.AnonymousClass1
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1$2$2$1 r0 = (com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1.AnonymousClass2.C00012.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.label = r1
|
||||
goto L18
|
||||
L13:
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1$2$2$1 r0 = new com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1$2$2$1
|
||||
r0.<init>(r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L31
|
||||
if (r2 != r3) goto L29
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L45
|
||||
L29:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = r4.$this_unsafeFlow
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r6 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r5 = r6.success(r5)
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r4.emit(r5, r0)
|
||||
if (r4 != r1) goto L45
|
||||
return r1
|
||||
L45:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1.AnonymousClass2.C00012.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass2(Flow flow) {
|
||||
this.$this_unsafeTransform$inlined = flow;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super AsyncResult<? extends List<? extends AvisaStation>>> flowCollector, Continuation continuation) {
|
||||
Object collect = this.$this_unsafeTransform$inlined.collect(new C00012(flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1(Continuation continuation, DefaultAvisaStationsRepository defaultAvisaStationsRepository, boolean z3, DefaultAvisaStationsRepository defaultAvisaStationsRepository2, DefaultAvisaStationsRepository defaultAvisaStationsRepository3) {
|
||||
super(2, continuation);
|
||||
this.this$0 = defaultAvisaStationsRepository;
|
||||
this.$shouldFetch$inlined = z3;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
DefaultAvisaStationsRepository defaultAvisaStationsRepository = this.this$0;
|
||||
DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1 defaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1 = new DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1(continuation, defaultAvisaStationsRepository, this.$shouldFetch$inlined, defaultAvisaStationsRepository, defaultAvisaStationsRepository);
|
||||
defaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1.L$0 = obj;
|
||||
return defaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x01ae, code lost:
|
||||
|
||||
if (kotlinx.coroutines.flow.FlowKt.emitAll(r1, r5, r9) == r0) goto L60;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:49:0x00a9, code lost:
|
||||
|
||||
if (r10 == r0) goto L60;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:53:0x008f, code lost:
|
||||
|
||||
if (r10 != r0) goto L30;
|
||||
*/
|
||||
/* JADX WARN: Failed to find 'out' block for switch in B:3:0x0009. Please report as an issue. */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:23:0x011b A[Catch: all -> 0x0032, LOOP:0: B:21:0x0115->B:23:0x011b, LOOP_END, TryCatch #0 {all -> 0x0032, blocks: (B:19:0x002d, B:20:0x0100, B:21:0x0115, B:23:0x011b, B:25:0x012f), top: B:18:0x002d }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:27:0x013d */
|
||||
/* JADX WARN: Removed duplicated region for block: B:36:0x00fe */
|
||||
/* JADX WARN: Type inference failed for: r1v0, types: [int] */
|
||||
/* JADX WARN: Type inference failed for: r1v1 */
|
||||
/* JADX WARN: Type inference failed for: r1v2 */
|
||||
/* JADX WARN: Type inference failed for: r1v21 */
|
||||
/* JADX WARN: Type inference failed for: r1v26 */
|
||||
/* JADX WARN: Type inference failed for: r1v29 */
|
||||
/* JADX WARN: Type inference failed for: r1v32 */
|
||||
@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 r10) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 456
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(FlowCollector<? super AsyncResult<? extends List<? extends AvisaStation>>> flowCollector, Continuation<? super Unit> continuation) {
|
||||
return ((DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1) create(flowCollector, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,192 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.AvisaStationCategory;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u00050\u0004H\u008a@¨\u0006\u0006"}, d2 = {"<anonymous>", "", "ResultType", "RequestType", "Lkotlinx/coroutines/flow/FlowCollector;", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1", f = "DefaultAvisaStationsRepository.kt", i = {0, 1, 2, 3, 4, 4, 5}, l = {18, 19, 22, 47, 54, 55, 38}, m = "invokeSuspend", n = {"$this$flow", "$this$flow", "$this$flow", "$this$flow", "$this$flow", "stationCategoriesResponse", "$this$flow"}, s = {"L$0", "L$0", "L$0", "L$0", "L$0", "L$1", "L$0"})
|
||||
@SourceDebugExtension({"SMAP\nNetworkBoundResource.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n+ 2 DefaultAvisaStationsRepository.kt\ncom/adif/elcanomovil/repositories/avisa/DefaultAvisaStationsRepository$fetchStationCategories$2\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 4 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 5 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n+ 6 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt\n*L\n1#1,40:1\n74#2,2:41\n99#2:43\n83#2:44\n82#2,11:45\n93#2,2:59\n97#2:62\n87#2,2:68\n1549#3:56\n1620#3,2:57\n1622#3:61\n53#4:63\n55#4:67\n53#4:70\n55#4:74\n53#4:75\n55#4:79\n53#4:80\n55#4:84\n50#5:64\n55#5:66\n50#5:71\n55#5:73\n50#5:76\n55#5:78\n50#5:81\n55#5:83\n109#6:65\n109#6:72\n109#6:77\n109#6:82\n*S KotlinDebug\n*F\n+ 1 DefaultAvisaStationsRepository.kt\ncom/adif/elcanomovil/repositories/avisa/DefaultAvisaStationsRepository$fetchStationCategories$2\n+ 2 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n92#1:56\n92#1:57,2\n92#1:61\n26#2:63\n26#2:67\n29#2:70\n29#2:74\n31#2:75\n31#2:79\n35#2:80\n35#2:84\n26#2:64\n26#2:66\n29#2:71\n29#2:73\n31#2:76\n31#2:78\n35#2:81\n35#2:83\n26#2:65\n29#2:72\n31#2:77\n35#2:82\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1 extends SuspendLambda implements Function2<FlowCollector<? super AsyncResult<? extends List<? extends AvisaStationCategory>>>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ boolean $shouldFetch$inlined;
|
||||
private /* synthetic */ Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
final /* synthetic */ DefaultAvisaStationsRepository this$0;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001c\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@¢\u0006\u0002\u0010\u0006¨\u0006\u0007¸\u0006\n"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nSafeCollector.common.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1\n+ 2 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n*L\n1#1,115:1\n51#2,5:116\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1$2, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass2 implements Flow<AsyncResult<? extends List<? extends AvisaStationCategory>>> {
|
||||
final /* synthetic */ Flow $this_unsafeTransform$inlined;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\b\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1$2", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2$2"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n1#1,222:1\n54#2:223\n29#3:224\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1$2$2, reason: invalid class name and collision with other inner class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class C00032<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1$2$2", f = "DefaultAvisaStationsRepository.kt", i = {}, l = {223}, m = "emit", n = {}, s = {})
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1$2$2$1, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return C00032.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public C00032(FlowCollector flowCollector) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(java.lang.Object r5, kotlin.coroutines.Continuation r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1.AnonymousClass2.C00032.AnonymousClass1
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1$2$2$1 r0 = (com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1.AnonymousClass2.C00032.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.label = r1
|
||||
goto L18
|
||||
L13:
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1$2$2$1 r0 = new com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1$2$2$1
|
||||
r0.<init>(r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L31
|
||||
if (r2 != r3) goto L29
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L45
|
||||
L29:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = r4.$this_unsafeFlow
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r6 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r5 = r6.success(r5)
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r4.emit(r5, r0)
|
||||
if (r4 != r1) goto L45
|
||||
return r1
|
||||
L45:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1.AnonymousClass2.C00032.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass2(Flow flow) {
|
||||
this.$this_unsafeTransform$inlined = flow;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super AsyncResult<? extends List<? extends AvisaStationCategory>>> flowCollector, Continuation continuation) {
|
||||
Object collect = this.$this_unsafeTransform$inlined.collect(new C00032(flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1(Continuation continuation, DefaultAvisaStationsRepository defaultAvisaStationsRepository, boolean z3, DefaultAvisaStationsRepository defaultAvisaStationsRepository2, DefaultAvisaStationsRepository defaultAvisaStationsRepository3) {
|
||||
super(2, continuation);
|
||||
this.this$0 = defaultAvisaStationsRepository;
|
||||
this.$shouldFetch$inlined = z3;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
DefaultAvisaStationsRepository defaultAvisaStationsRepository = this.this$0;
|
||||
DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1 defaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1 = new DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1(continuation, defaultAvisaStationsRepository, this.$shouldFetch$inlined, defaultAvisaStationsRepository, defaultAvisaStationsRepository);
|
||||
defaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1.L$0 = obj;
|
||||
return defaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x019c, code lost:
|
||||
|
||||
if (kotlinx.coroutines.flow.FlowKt.emitAll(r1, r5, r9) == r0) goto L60;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:49:0x00a9, code lost:
|
||||
|
||||
if (r10 == r0) goto L60;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:53:0x008f, code lost:
|
||||
|
||||
if (r10 != r0) goto L30;
|
||||
*/
|
||||
/* JADX WARN: Failed to find 'out' block for switch in B:3:0x0009. Please report as an issue. */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:23:0x011b A[Catch: all -> 0x0032, LOOP:0: B:21:0x0115->B:23:0x011b, LOOP_END, TryCatch #0 {all -> 0x0032, blocks: (B:19:0x002d, B:20:0x0100, B:21:0x0115, B:23:0x011b, B:25:0x012f), top: B:18:0x002d }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:27:0x013d */
|
||||
/* JADX WARN: Removed duplicated region for block: B:36:0x00fe */
|
||||
/* JADX WARN: Type inference failed for: r1v0, types: [int] */
|
||||
/* JADX WARN: Type inference failed for: r1v1 */
|
||||
/* JADX WARN: Type inference failed for: r1v2 */
|
||||
/* JADX WARN: Type inference failed for: r1v21 */
|
||||
/* JADX WARN: Type inference failed for: r1v26 */
|
||||
/* JADX WARN: Type inference failed for: r1v29 */
|
||||
/* JADX WARN: Type inference failed for: r1v32 */
|
||||
@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 r10) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 438
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(FlowCollector<? super AsyncResult<? extends List<? extends AvisaStationCategory>>> flowCollector, Continuation<? super Unit> continuation) {
|
||||
return ((DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1) create(flowCollector, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,203 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.AvisaStationCategory;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u00050\u0004H\u008a@¨\u0006\u0006"}, d2 = {"<anonymous>", "", "ResultType", "RequestType", "Lkotlinx/coroutines/flow/FlowCollector;", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1", f = "DefaultAvisaStationsRepository.kt", i = {0, 1, 2, 3}, l = {18, 19, 22, 57, 38}, m = "invokeSuspend", n = {"$this$flow", "$this$flow", "$this$flow", "$this$flow"}, s = {"L$0", "L$0", "L$0", "L$0"})
|
||||
@SourceDebugExtension({"SMAP\nNetworkBoundResource.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n+ 2 DefaultAvisaStationsRepository.kt\ncom/adif/elcanomovil/repositories/avisa/DefaultAvisaStationsRepository$fetchStationCategories$4\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 4 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 5 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n+ 6 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt\n*L\n1#1,40:1\n109#2,4:41\n108#2,8:45\n139#2:53\n123#2:54\n122#2,15:55\n137#2:74\n108#2,8:75\n127#2,2:88\n108#2,8:90\n1549#3:70\n1620#3,3:71\n53#4:83\n55#4:87\n53#4:98\n55#4:102\n53#4:103\n55#4:107\n53#4:108\n55#4:112\n50#5:84\n55#5:86\n50#5:99\n55#5:101\n50#5:104\n55#5:106\n50#5:109\n55#5:111\n109#6:85\n109#6:100\n109#6:105\n109#6:110\n*S KotlinDebug\n*F\n+ 1 DefaultAvisaStationsRepository.kt\ncom/adif/elcanomovil/repositories/avisa/DefaultAvisaStationsRepository$fetchStationCategories$4\n+ 2 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n136#1:70\n136#1:71,3\n26#2:83\n26#2:87\n29#2:98\n29#2:102\n31#2:103\n31#2:107\n35#2:108\n35#2:112\n26#2:84\n26#2:86\n29#2:99\n29#2:101\n31#2:104\n31#2:106\n35#2:109\n35#2:111\n26#2:85\n29#2:100\n31#2:105\n35#2:110\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1 extends SuspendLambda implements Function2<FlowCollector<? super AsyncResult<? extends List<? extends AvisaStationCategory>>>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ String $stationId$inlined;
|
||||
final /* synthetic */ String $stationId$inlined$1;
|
||||
final /* synthetic */ String $stationId$inlined$2;
|
||||
final /* synthetic */ String $stationId$inlined$3;
|
||||
private /* synthetic */ Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
final /* synthetic */ DefaultAvisaStationsRepository this$0;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001c\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@¢\u0006\u0002\u0010\u0006¨\u0006\u0007¸\u0006\n"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nSafeCollector.common.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1\n+ 2 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n*L\n1#1,115:1\n51#2,5:116\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1$2, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass2 implements Flow<AsyncResult<? extends List<? extends AvisaStationCategory>>> {
|
||||
final /* synthetic */ Flow $this_unsafeTransform$inlined;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\b\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1$2", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2$2"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n1#1,222:1\n54#2:223\n29#3:224\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1$2$2, reason: invalid class name and collision with other inner class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class C00052<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1$2$2", f = "DefaultAvisaStationsRepository.kt", i = {}, l = {223}, m = "emit", n = {}, s = {})
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1$2$2$1, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return C00052.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public C00052(FlowCollector flowCollector) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(java.lang.Object r5, kotlin.coroutines.Continuation r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1.AnonymousClass2.C00052.AnonymousClass1
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1$2$2$1 r0 = (com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1.AnonymousClass2.C00052.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.label = r1
|
||||
goto L18
|
||||
L13:
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1$2$2$1 r0 = new com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1$2$2$1
|
||||
r0.<init>(r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L31
|
||||
if (r2 != r3) goto L29
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L45
|
||||
L29:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = r4.$this_unsafeFlow
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r6 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r5 = r6.success(r5)
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r4.emit(r5, r0)
|
||||
if (r4 != r1) goto L45
|
||||
return r1
|
||||
L45:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1.AnonymousClass2.C00052.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass2(Flow flow) {
|
||||
this.$this_unsafeTransform$inlined = flow;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super AsyncResult<? extends List<? extends AvisaStationCategory>>> flowCollector, Continuation continuation) {
|
||||
Object collect = this.$this_unsafeTransform$inlined.collect(new C00052(flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1(Continuation continuation, DefaultAvisaStationsRepository defaultAvisaStationsRepository, String str, DefaultAvisaStationsRepository defaultAvisaStationsRepository2, String str2, DefaultAvisaStationsRepository defaultAvisaStationsRepository3, String str3, DefaultAvisaStationsRepository defaultAvisaStationsRepository4, String str4) {
|
||||
super(2, continuation);
|
||||
this.this$0 = defaultAvisaStationsRepository;
|
||||
this.$stationId$inlined = str;
|
||||
this.$stationId$inlined$1 = str2;
|
||||
this.$stationId$inlined$2 = str3;
|
||||
this.$stationId$inlined$3 = str4;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
DefaultAvisaStationsRepository defaultAvisaStationsRepository = this.this$0;
|
||||
DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1 defaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1 = new DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1(continuation, defaultAvisaStationsRepository, this.$stationId$inlined, defaultAvisaStationsRepository, this.$stationId$inlined$1, defaultAvisaStationsRepository, this.$stationId$inlined$2, defaultAvisaStationsRepository, this.$stationId$inlined$3);
|
||||
defaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1.L$0 = obj;
|
||||
return defaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:30:0x020f, code lost:
|
||||
|
||||
if (kotlinx.coroutines.flow.FlowKt.emitAll((kotlinx.coroutines.flow.FlowCollector) r1, r3, r11) == r0) goto L68;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:46:0x00c1, code lost:
|
||||
|
||||
if (r12 == r0) goto L68;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:57:0x009e, code lost:
|
||||
|
||||
if (r12 == r0) goto L68;
|
||||
*/
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:19:0x0114 A[Catch: all -> 0x002f, TryCatch #0 {all -> 0x002f, blocks: (B:16:0x002a, B:17:0x0100, B:19:0x0114, B:20:0x012b, B:21:0x0140, B:23:0x0146, B:25:0x015a, B:27:0x016d, B:28:0x0183, B:33:0x017f, B:35:0x00c5, B:37:0x00d5, B:38:0x00db), top: B:2:0x000d }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:23:0x0146 A[Catch: all -> 0x002f, LOOP:0: B:21:0x0140->B:23:0x0146, LOOP_END, TryCatch #0 {all -> 0x002f, blocks: (B:16:0x002a, B:17:0x0100, B:19:0x0114, B:20:0x012b, B:21:0x0140, B:23:0x0146, B:25:0x015a, B:27:0x016d, B:28:0x0183, B:33:0x017f, B:35:0x00c5, B:37:0x00d5, B:38:0x00db), top: B:2:0x000d }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:27:0x016d A[Catch: all -> 0x002f, TryCatch #0 {all -> 0x002f, blocks: (B:16:0x002a, B:17:0x0100, B:19:0x0114, B:20:0x012b, B:21:0x0140, B:23:0x0146, B:25:0x015a, B:27:0x016d, B:28:0x0183, B:33:0x017f, B:35:0x00c5, B:37:0x00d5, B:38:0x00db), top: B:2:0x000d }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:33:0x017f A[Catch: all -> 0x002f, TryCatch #0 {all -> 0x002f, blocks: (B:16:0x002a, B:17:0x0100, B:19:0x0114, B:20:0x012b, B:21:0x0140, B:23:0x0146, B:25:0x015a, B:27:0x016d, B:28:0x0183, B:33:0x017f, B:35:0x00c5, B:37:0x00d5, B:38:0x00db), top: B:2:0x000d }] */
|
||||
/* JADX WARN: Type inference failed for: r1v18, types: [kotlinx.coroutines.flow.FlowCollector] */
|
||||
/* JADX WARN: Type inference failed for: r1v2, types: [kotlinx.coroutines.flow.FlowCollector] */
|
||||
/* JADX WARN: Type inference failed for: r1v21 */
|
||||
/* JADX WARN: Type inference failed for: r1v22 */
|
||||
/* JADX WARN: Type inference failed for: r1v23 */
|
||||
/* JADX WARN: Type inference failed for: r1v24 */
|
||||
/* JADX WARN: Type inference failed for: r1v25 */
|
||||
/* JADX WARN: Type inference failed for: r1v9, types: [java.lang.Object] */
|
||||
/* JADX WARN: Type inference failed for: r3v15, types: [kotlin.coroutines.jvm.internal.SuspendLambda, kotlin.jvm.functions.Function2] */
|
||||
/* JADX WARN: Type inference failed for: r3v24, types: [kotlin.coroutines.jvm.internal.SuspendLambda, kotlin.jvm.functions.Function2] */
|
||||
/* JADX WARN: Type inference failed for: r4v2, types: [kotlin.coroutines.jvm.internal.SuspendLambda, kotlin.jvm.functions.Function2] */
|
||||
/* JADX WARN: Type inference failed for: r9v1, types: [kotlin.coroutines.jvm.internal.SuspendLambda, kotlin.jvm.functions.Function2] */
|
||||
@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 r12) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 533
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(FlowCollector<? super AsyncResult<? extends List<? extends AvisaStationCategory>>> flowCollector, Continuation<? super Unit> continuation) {
|
||||
return ((DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1) create(flowCollector, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.AvisaStation;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.AvisaStationCategory;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.adif.elcanomovil.domain.repositories.avisa.AvisaStationsRepository;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.AvisaStationsService;
|
||||
import com.adif.elcanomovil.serviceStorage.database.AvisaStationDao;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import com.google.firebase.remoteconfig.RemoteConfigComponent;
|
||||
import d1.InterfaceC0307a;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import javax.inject.Inject;
|
||||
import javax.inject.Singleton;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.BuildersKt;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
|
||||
@Singleton
|
||||
@Metadata(d1 = {"\u0000f\n\u0002\u0018\u0002\n\u0002\u0018\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\u0002\b\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\b\n\u0002\u0010%\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B9\b\u0007\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0004\u0012\u0006\u0010\u0007\u001a\u00020\u0006\u0012\u0006\u0010\t\u001a\u00020\b\u0012\u0006\u0010\u000b\u001a\u00020\n\u0012\u0006\u0010\r\u001a\u00020\f¢\u0006\u0004\b\u000e\u0010\u000fJ*\u0010\u0016\u001a\u0014\u0012\u0010\u0012\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00150\u00140\u00130\u00122\u0006\u0010\u0011\u001a\u00020\u0010H\u0096@¢\u0006\u0004\b\u0016\u0010\u0017J*\u0010\u0019\u001a\u0014\u0012\u0010\u0012\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00180\u00140\u00130\u00122\u0006\u0010\u0011\u001a\u00020\u0010H\u0096@¢\u0006\u0004\b\u0019\u0010\u0017J*\u0010\u0019\u001a\u0014\u0012\u0010\u0012\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00180\u00140\u00130\u00122\u0006\u0010\u001b\u001a\u00020\u001aH\u0096@¢\u0006\u0004\b\u0019\u0010\u001cR\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u001dR\u0014\u0010\u0005\u001a\u00020\u00048\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0005\u0010\u001eR\u0014\u0010\u0007\u001a\u00020\u00068\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0007\u0010\u001fR\u0014\u0010\t\u001a\u00020\b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\t\u0010 R\u0014\u0010\u000b\u001a\u00020\n8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000b\u0010!R\u0014\u0010\r\u001a\u00020\f8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\r\u0010\"R&\u0010$\u001a\u0014\u0012\u0004\u0012\u00020\u001a\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00180\u00140#8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b$\u0010%R\u0014\u0010'\u001a\u00020&8\u0002X\u0082D¢\u0006\u0006\n\u0004\b'\u0010(¨\u0006)"}, d2 = {"Lcom/adif/elcanomovil/repositories/avisa/DefaultAvisaStationsRepository;", "Lcom/adif/elcanomovil/domain/repositories/avisa/AvisaStationsRepository;", "Lcom/adif/elcanomovil/serviceNetworking/avisa/AvisaStationsService;", "stationsService", "Lcom/adif/elcanomovil/serviceStorage/database/AvisaStationDao;", "stationsDao", "Lcom/adif/elcanomovil/repositories/avisa/AvisaStationMapper;", "avisaStationMapper", "Lcom/adif/elcanomovil/repositories/avisa/AvisaStationCategoryMapper;", "avisaStationCategoryMapper", "Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;", "preferenceStorage", "Ld1/a;", "appDispatcher", "<init>", "(Lcom/adif/elcanomovil/serviceNetworking/avisa/AvisaStationsService;Lcom/adif/elcanomovil/serviceStorage/database/AvisaStationDao;Lcom/adif/elcanomovil/repositories/avisa/AvisaStationMapper;Lcom/adif/elcanomovil/repositories/avisa/AvisaStationCategoryMapper;Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;Ld1/a;)V", "", "shouldFetch", "Lkotlinx/coroutines/flow/Flow;", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;", "", "Lcom/adif/elcanomovil/domain/entities/avisa/AvisaStation;", RemoteConfigComponent.FETCH_FILE_NAME, "(ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Lcom/adif/elcanomovil/domain/entities/avisa/AvisaStationCategory;", "fetchStationCategories", "", "stationId", "(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Lcom/adif/elcanomovil/serviceNetworking/avisa/AvisaStationsService;", "Lcom/adif/elcanomovil/serviceStorage/database/AvisaStationDao;", "Lcom/adif/elcanomovil/repositories/avisa/AvisaStationMapper;", "Lcom/adif/elcanomovil/repositories/avisa/AvisaStationCategoryMapper;", "Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;", "Ld1/a;", "", "categoriesCache", "Ljava/util/Map;", "", "CACHE_SIZE", "I", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultAvisaStationsRepository implements AvisaStationsRepository {
|
||||
private final int CACHE_SIZE;
|
||||
private final InterfaceC0307a appDispatcher;
|
||||
private final AvisaStationCategoryMapper avisaStationCategoryMapper;
|
||||
private final AvisaStationMapper avisaStationMapper;
|
||||
private final Map<String, List<AvisaStationCategory>> categoriesCache;
|
||||
private final PreferenceStorage preferenceStorage;
|
||||
private final AvisaStationDao stationsDao;
|
||||
private final AvisaStationsService stationsService;
|
||||
|
||||
@Inject
|
||||
public DefaultAvisaStationsRepository(AvisaStationsService stationsService, AvisaStationDao stationsDao, AvisaStationMapper avisaStationMapper, AvisaStationCategoryMapper avisaStationCategoryMapper, PreferenceStorage preferenceStorage, InterfaceC0307a appDispatcher) {
|
||||
Intrinsics.checkNotNullParameter(stationsService, "stationsService");
|
||||
Intrinsics.checkNotNullParameter(stationsDao, "stationsDao");
|
||||
Intrinsics.checkNotNullParameter(avisaStationMapper, "avisaStationMapper");
|
||||
Intrinsics.checkNotNullParameter(avisaStationCategoryMapper, "avisaStationCategoryMapper");
|
||||
Intrinsics.checkNotNullParameter(preferenceStorage, "preferenceStorage");
|
||||
Intrinsics.checkNotNullParameter(appDispatcher, "appDispatcher");
|
||||
this.stationsService = stationsService;
|
||||
this.stationsDao = stationsDao;
|
||||
this.avisaStationMapper = avisaStationMapper;
|
||||
this.avisaStationCategoryMapper = avisaStationCategoryMapper;
|
||||
this.preferenceStorage = preferenceStorage;
|
||||
this.appDispatcher = appDispatcher;
|
||||
this.CACHE_SIZE = 5;
|
||||
this.categoriesCache = new HashMap();
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.avisa.AvisaStationsRepository
|
||||
public Object fetch(boolean z3, Continuation<? super Flow<? extends AsyncResult<? extends List<AvisaStation>>>> continuation) {
|
||||
((d1.d) this.appDispatcher).getClass();
|
||||
return BuildersKt.withContext(Dispatchers.getIO(), new f(this, z3, null), continuation);
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.avisa.AvisaStationsRepository
|
||||
public Object fetchStationCategories(boolean z3, Continuation<? super Flow<? extends AsyncResult<? extends List<AvisaStationCategory>>>> continuation) {
|
||||
((d1.d) this.appDispatcher).getClass();
|
||||
return BuildersKt.withContext(Dispatchers.getIO(), new i(this, z3, null), continuation);
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.avisa.AvisaStationsRepository
|
||||
public Object fetchStationCategories(String str, Continuation<? super Flow<? extends AsyncResult<? extends List<AvisaStationCategory>>>> continuation) {
|
||||
((d1.d) this.appDispatcher).getClass();
|
||||
return BuildersKt.withContext(Dispatchers.getIO(), new l(this, str, null), continuation);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.AvisaStationsService;
|
||||
import com.adif.elcanomovil.serviceStorage.database.AvisaStationDao;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import d1.InterfaceC0307a;
|
||||
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
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultAvisaStationsRepository_Factory implements Factory<DefaultAvisaStationsRepository> {
|
||||
private final Provider<InterfaceC0307a> appDispatcherProvider;
|
||||
private final Provider<AvisaStationCategoryMapper> avisaStationCategoryMapperProvider;
|
||||
private final Provider<AvisaStationMapper> avisaStationMapperProvider;
|
||||
private final Provider<PreferenceStorage> preferenceStorageProvider;
|
||||
private final Provider<AvisaStationDao> stationsDaoProvider;
|
||||
private final Provider<AvisaStationsService> stationsServiceProvider;
|
||||
|
||||
public DefaultAvisaStationsRepository_Factory(Provider<AvisaStationsService> provider, Provider<AvisaStationDao> provider2, Provider<AvisaStationMapper> provider3, Provider<AvisaStationCategoryMapper> provider4, Provider<PreferenceStorage> provider5, Provider<InterfaceC0307a> provider6) {
|
||||
this.stationsServiceProvider = provider;
|
||||
this.stationsDaoProvider = provider2;
|
||||
this.avisaStationMapperProvider = provider3;
|
||||
this.avisaStationCategoryMapperProvider = provider4;
|
||||
this.preferenceStorageProvider = provider5;
|
||||
this.appDispatcherProvider = provider6;
|
||||
}
|
||||
|
||||
public static DefaultAvisaStationsRepository_Factory create(Provider<AvisaStationsService> provider, Provider<AvisaStationDao> provider2, Provider<AvisaStationMapper> provider3, Provider<AvisaStationCategoryMapper> provider4, Provider<PreferenceStorage> provider5, Provider<InterfaceC0307a> provider6) {
|
||||
return new DefaultAvisaStationsRepository_Factory(provider, provider2, provider3, provider4, provider5, provider6);
|
||||
}
|
||||
|
||||
public static DefaultAvisaStationsRepository newInstance(AvisaStationsService avisaStationsService, AvisaStationDao avisaStationDao, AvisaStationMapper avisaStationMapper, AvisaStationCategoryMapper avisaStationCategoryMapper, PreferenceStorage preferenceStorage, InterfaceC0307a interfaceC0307a) {
|
||||
return new DefaultAvisaStationsRepository(avisaStationsService, avisaStationDao, avisaStationMapper, avisaStationCategoryMapper, preferenceStorage, interfaceC0307a);
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public DefaultAvisaStationsRepository get() {
|
||||
return newInstance(this.stationsServiceProvider.get(), this.stationsDaoProvider.get(), this.avisaStationMapperProvider.get(), this.avisaStationCategoryMapperProvider.get(), this.preferenceStorageProvider.get(), this.appDispatcherProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,297 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceStation;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u00050\u0004H\u008a@¨\u0006\u0006"}, d2 = {"<anonymous>", "", "ResultType", "RequestType", "Lkotlinx/coroutines/flow/FlowCollector;", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1", f = "DefaultIncidenceRepository.kt", i = {0, 1, 2, 3, 4}, l = {18, 19, 22, 49, 59, 38}, m = "invokeSuspend", n = {"$this$flow", "$this$flow", "$this$flow", "$this$flow", "$this$flow"}, s = {"L$0", "L$0", "L$0", "L$0", "L$0"})
|
||||
@SourceDebugExtension({"SMAP\nNetworkBoundResource.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n+ 2 DefaultIncidenceRepository.kt\ncom/adif/elcanomovil/repositories/avisa/DefaultIncidenceRepository$incidenceDetails$2\n+ 3 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 4 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n+ 5 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt\n+ 6 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$2\n*L\n1#1,40:1\n98#2,2:41\n102#2,16:49\n53#3:43\n55#3:47\n53#3:65\n55#3:69\n55#3:71\n53#3:72\n55#3:76\n55#3:78\n53#3:79\n55#3:83\n55#3:85\n53#3:86\n55#3:90\n50#4:44\n55#4:46\n50#4:66\n55#4:68\n55#4:70\n50#4:73\n55#4:75\n55#4:77\n50#4:80\n55#4:82\n55#4:84\n50#4:87\n55#4:89\n109#5:45\n109#5:67\n109#5:74\n109#5:81\n109#5:88\n16#6:48\n*S KotlinDebug\n*F\n+ 1 DefaultIncidenceRepository.kt\ncom/adif/elcanomovil/repositories/avisa/DefaultIncidenceRepository$incidenceDetails$2\n+ 2 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n99#1:43\n99#1:47\n99#1:71\n99#1:78\n99#1:85\n99#1:44\n99#1:46\n99#1:70\n99#1:77\n99#1:84\n99#1:45\n26#2:65\n26#2:69\n29#2:72\n29#2:76\n31#2:79\n31#2:83\n35#2:86\n35#2:90\n26#2:66\n26#2:68\n29#2:73\n29#2:75\n31#2:80\n31#2:82\n35#2:87\n35#2:89\n26#2:67\n29#2:74\n31#2:81\n35#2:88\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1 extends SuspendLambda implements Function2<FlowCollector<? super AsyncResult<? extends IncidenceStation>>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ int $incidenceId$inlined;
|
||||
final /* synthetic */ int $incidenceId$inlined$1;
|
||||
private /* synthetic */ Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
final /* synthetic */ DefaultIncidenceRepository this$0;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001c\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@¢\u0006\u0002\u0010\u0006¨\u0006\u0007¸\u0006\n"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nSafeCollector.common.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1\n+ 2 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n*L\n1#1,115:1\n51#2,5:116\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$2, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass2 implements Flow<AsyncResult<? extends IncidenceStation>> {
|
||||
final /* synthetic */ Flow $this_unsafeTransform$inlined;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\b\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1$2", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2$2"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n1#1,222:1\n54#2:223\n29#3:224\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2, reason: invalid class name and collision with other inner class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class C00072<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2", f = "DefaultIncidenceRepository.kt", i = {}, l = {223}, m = "emit", n = {}, s = {})
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2$1, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return C00072.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public C00072(FlowCollector flowCollector) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(java.lang.Object r5, kotlin.coroutines.Continuation r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass2.C00072.AnonymousClass1
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2$1 r0 = (com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass2.C00072.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.label = r1
|
||||
goto L18
|
||||
L13:
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2$1 r0 = new com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2$1
|
||||
r0.<init>(r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L31
|
||||
if (r2 != r3) goto L29
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L45
|
||||
L29:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = r4.$this_unsafeFlow
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r6 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r5 = r6.success(r5)
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r4.emit(r5, r0)
|
||||
if (r4 != r1) goto L45
|
||||
return r1
|
||||
L45:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass2.C00072.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass2(Flow flow) {
|
||||
this.$this_unsafeTransform$inlined = flow;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super AsyncResult<? extends IncidenceStation>> flowCollector, Continuation continuation) {
|
||||
Object collect = this.$this_unsafeTransform$inlined.collect(new C00072(flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001c\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@¢\u0006\u0002\u0010\u0006¨\u0006\u0007¸\u0006\n"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nSafeCollector.common.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1\n+ 2 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n*L\n1#1,115:1\n51#2,5:116\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$4, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass4 implements Flow<AsyncResult<? extends IncidenceStation>> {
|
||||
final /* synthetic */ Flow $this_unsafeTransform$inlined;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\b\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1$2", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4$2"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n1#1,222:1\n54#2:223\n35#3:224\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass2<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2", f = "DefaultIncidenceRepository.kt", i = {}, l = {223}, m = "emit", n = {}, s = {})
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2$1, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return AnonymousClass2.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass2(FlowCollector flowCollector) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(java.lang.Object r5, kotlin.coroutines.Continuation r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass4.AnonymousClass2.AnonymousClass1
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2$1 r0 = (com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass4.AnonymousClass2.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.label = r1
|
||||
goto L18
|
||||
L13:
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2$1 r0 = new com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2$1
|
||||
r0.<init>(r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L31
|
||||
if (r2 != r3) goto L29
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L45
|
||||
L29:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = r4.$this_unsafeFlow
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r6 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r5 = r6.success(r5)
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r4.emit(r5, r0)
|
||||
if (r4 != r1) goto L45
|
||||
return r1
|
||||
L45:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass4.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass4(Flow flow) {
|
||||
this.$this_unsafeTransform$inlined = flow;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super AsyncResult<? extends IncidenceStation>> flowCollector, Continuation continuation) {
|
||||
Object collect = this.$this_unsafeTransform$inlined.collect(new AnonymousClass2(flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1(Continuation continuation, DefaultIncidenceRepository defaultIncidenceRepository, int i, DefaultIncidenceRepository defaultIncidenceRepository2, DefaultIncidenceRepository defaultIncidenceRepository3, int i4) {
|
||||
super(2, continuation);
|
||||
this.this$0 = defaultIncidenceRepository;
|
||||
this.$incidenceId$inlined = i;
|
||||
this.$incidenceId$inlined$1 = i4;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
DefaultIncidenceRepository defaultIncidenceRepository = this.this$0;
|
||||
DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1 defaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1 = new DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1(continuation, defaultIncidenceRepository, this.$incidenceId$inlined, defaultIncidenceRepository, defaultIncidenceRepository, this.$incidenceId$inlined$1);
|
||||
defaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1.L$0 = obj;
|
||||
return defaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x0108, code lost:
|
||||
|
||||
if (kotlinx.coroutines.flow.FlowKt.emitAll((kotlinx.coroutines.flow.FlowCollector) r1, r7, r6) == r0) goto L39;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:28:0x008e, code lost:
|
||||
|
||||
if (r7 == r0) goto L39;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:31:0x007b, code lost:
|
||||
|
||||
if (r7 != r0) goto L25;
|
||||
*/
|
||||
/* JADX WARN: Failed to find 'out' block for switch in B:3:0x0007. Please report as an issue. */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:21:0x00c9 */
|
||||
/* JADX WARN: Type inference failed for: r1v16, types: [java.lang.Object] */
|
||||
/* JADX WARN: Type inference failed for: r1v2, types: [kotlinx.coroutines.flow.FlowCollector] */
|
||||
/* JADX WARN: Type inference failed for: r1v21, types: [kotlinx.coroutines.flow.FlowCollector] */
|
||||
/* JADX WARN: Type inference failed for: r1v24 */
|
||||
/* JADX WARN: Type inference failed for: r1v25 */
|
||||
/* JADX WARN: Type inference failed for: r1v26 */
|
||||
/* JADX WARN: Type inference failed for: r1v27 */
|
||||
@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) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 288
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(FlowCollector<? super AsyncResult<? extends IncidenceStation>> flowCollector, Continuation<? super Unit> continuation) {
|
||||
return ((DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1) create(flowCollector, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,296 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceStation;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u00050\u0004H\u008a@¨\u0006\u0006"}, d2 = {"<anonymous>", "", "ResultType", "RequestType", "Lkotlinx/coroutines/flow/FlowCollector;", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1", f = "DefaultIncidenceRepository.kt", i = {0, 1, 2, 3, 4, 4, 5}, l = {18, 19, 22, 44, 45, 46, 38}, m = "invokeSuspend", n = {"$this$flow", "$this$flow", "$this$flow", "$this$flow", "$this$flow", "incidences", "$this$flow"}, s = {"L$0", "L$0", "L$0", "L$0", "L$0", "L$1", "L$0"})
|
||||
@SourceDebugExtension({"SMAP\nNetworkBoundResource.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n+ 2 DefaultIncidenceRepository.kt\ncom/adif/elcanomovil/repositories/avisa/DefaultIncidenceRepository$incidences$2\n+ 3 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$2\n+ 4 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 5 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 6 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n+ 7 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt\n*L\n1#1,40:1\n68#2,2:41\n76#2:44\n87#2,2:45\n90#2:51\n79#2,5:57\n16#3:43\n1549#4:47\n1620#4,3:48\n53#5:52\n55#5:56\n53#5:62\n55#5:66\n53#5:67\n55#5:71\n53#5:72\n55#5:76\n50#6:53\n55#6:55\n50#6:63\n55#6:65\n50#6:68\n55#6:70\n50#6:73\n55#6:75\n109#7:54\n109#7:64\n109#7:69\n109#7:74\n*S KotlinDebug\n*F\n+ 1 DefaultIncidenceRepository.kt\ncom/adif/elcanomovil/repositories/avisa/DefaultIncidenceRepository$incidences$2\n+ 2 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n88#1:47\n88#1:48,3\n26#2:52\n26#2:56\n29#2:62\n29#2:66\n31#2:67\n31#2:71\n35#2:72\n35#2:76\n26#2:53\n26#2:55\n29#2:63\n29#2:65\n31#2:68\n31#2:70\n35#2:73\n35#2:75\n26#2:54\n29#2:64\n31#2:69\n35#2:74\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1 extends SuspendLambda implements Function2<FlowCollector<? super AsyncResult<? extends List<? extends IncidenceStation>>>, Continuation<? super Unit>, Object> {
|
||||
private /* synthetic */ Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
final /* synthetic */ DefaultIncidenceRepository this$0;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001c\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@¢\u0006\u0002\u0010\u0006¨\u0006\u0007¸\u0006\n"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nSafeCollector.common.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1\n+ 2 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n*L\n1#1,115:1\n51#2,5:116\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$2, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass2 implements Flow<AsyncResult<? extends List<? extends IncidenceStation>>> {
|
||||
final /* synthetic */ Flow $this_unsafeTransform$inlined;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\b\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1$2", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2$2"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n1#1,222:1\n54#2:223\n29#3:224\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2, reason: invalid class name and collision with other inner class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class C00092<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2", f = "DefaultIncidenceRepository.kt", i = {}, l = {223}, m = "emit", n = {}, s = {})
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2$1, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return C00092.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public C00092(FlowCollector flowCollector) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(java.lang.Object r5, kotlin.coroutines.Continuation r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass2.C00092.AnonymousClass1
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2$1 r0 = (com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass2.C00092.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.label = r1
|
||||
goto L18
|
||||
L13:
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2$1 r0 = new com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$2$2$1
|
||||
r0.<init>(r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L31
|
||||
if (r2 != r3) goto L29
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L45
|
||||
L29:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = r4.$this_unsafeFlow
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r6 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r5 = r6.success(r5)
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r4.emit(r5, r0)
|
||||
if (r4 != r1) goto L45
|
||||
return r1
|
||||
L45:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass2.C00092.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass2(Flow flow) {
|
||||
this.$this_unsafeTransform$inlined = flow;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super AsyncResult<? extends List<? extends IncidenceStation>>> flowCollector, Continuation continuation) {
|
||||
Object collect = this.$this_unsafeTransform$inlined.collect(new C00092(flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001c\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@¢\u0006\u0002\u0010\u0006¨\u0006\u0007¸\u0006\n"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nSafeCollector.common.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1\n+ 2 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n*L\n1#1,115:1\n51#2,5:116\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$4, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass4 implements Flow<AsyncResult<? extends List<? extends IncidenceStation>>> {
|
||||
final /* synthetic */ Flow $this_unsafeTransform$inlined;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\b\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1$2", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$4$2"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n1#1,222:1\n54#2:223\n35#3:224\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass2<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2", f = "DefaultIncidenceRepository.kt", i = {}, l = {223}, m = "emit", n = {}, s = {})
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2$1, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return AnonymousClass2.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass2(FlowCollector flowCollector) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(java.lang.Object r5, kotlin.coroutines.Continuation r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass4.AnonymousClass2.AnonymousClass1
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2$1 r0 = (com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass4.AnonymousClass2.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.label = r1
|
||||
goto L18
|
||||
L13:
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2$1 r0 = new com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1$4$2$1
|
||||
r0.<init>(r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L31
|
||||
if (r2 != r3) goto L29
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L45
|
||||
L29:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = r4.$this_unsafeFlow
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r6 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r5 = r6.success(r5)
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r4.emit(r5, r0)
|
||||
if (r4 != r1) goto L45
|
||||
return r1
|
||||
L45:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1.AnonymousClass4.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass4(Flow flow) {
|
||||
this.$this_unsafeTransform$inlined = flow;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super AsyncResult<? extends List<? extends IncidenceStation>>> flowCollector, Continuation continuation) {
|
||||
Object collect = this.$this_unsafeTransform$inlined.collect(new AnonymousClass2(flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1(Continuation continuation, DefaultIncidenceRepository defaultIncidenceRepository, DefaultIncidenceRepository defaultIncidenceRepository2, DefaultIncidenceRepository defaultIncidenceRepository3) {
|
||||
super(2, continuation);
|
||||
this.this$0 = defaultIncidenceRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
DefaultIncidenceRepository defaultIncidenceRepository = this.this$0;
|
||||
DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1 defaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1 = new DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1(continuation, defaultIncidenceRepository, defaultIncidenceRepository, defaultIncidenceRepository);
|
||||
defaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1.L$0 = obj;
|
||||
return defaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x017c, code lost:
|
||||
|
||||
if (kotlinx.coroutines.flow.FlowKt.emitAll(r1, r5, r9) != r0) goto L58;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:47:0x00a2, code lost:
|
||||
|
||||
if (r1.emit(r10, r9) == r0) goto L57;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:50:0x008f, code lost:
|
||||
|
||||
if (r10 != r0) goto L30;
|
||||
*/
|
||||
/* JADX WARN: Failed to find 'out' block for switch in B:3:0x0009. Please report as an issue. */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:23:0x00f3 A[Catch: all -> 0x0032, LOOP:0: B:21:0x00ed->B:23:0x00f3, LOOP_END, TryCatch #0 {all -> 0x0032, blocks: (B:19:0x002d, B:20:0x00d8, B:21:0x00ed, B:23:0x00f3, B:25:0x0107), top: B:18:0x002d }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:27:0x0115 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:40:0x00d6 */
|
||||
/* JADX WARN: Type inference failed for: r1v0, types: [int] */
|
||||
/* JADX WARN: Type inference failed for: r1v1 */
|
||||
/* JADX WARN: Type inference failed for: r1v2 */
|
||||
/* JADX WARN: Type inference failed for: r1v21 */
|
||||
/* JADX WARN: Type inference failed for: r1v26 */
|
||||
/* JADX WARN: Type inference failed for: r1v29 */
|
||||
/* JADX WARN: Type inference failed for: r1v32 */
|
||||
@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 r10) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 406
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(FlowCollector<? super AsyncResult<? extends List<? extends IncidenceStation>>> flowCollector, Continuation<? super Unit> continuation) {
|
||||
return ((DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1) create(flowCollector, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import C.w;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceNotificationType;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidencePicture;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceStation;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.adif.elcanomovil.domain.repositories.avisa.IncidenceRepository;
|
||||
import com.adif.elcanomovil.serviceNetworking.ServicePaths;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.IncidenceService;
|
||||
import com.adif.elcanomovil.serviceStorage.database.IncidenceDao;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.AvisaToken;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import d1.InterfaceC0307a;
|
||||
import java.util.List;
|
||||
import javax.inject.Inject;
|
||||
import javax.inject.Singleton;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.StringCompanionObject;
|
||||
import kotlinx.coroutines.BuildersKt;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
@Singleton
|
||||
@Metadata(d1 = {"\u0000h\n\u0002\u0018\u0002\n\u0002\u0018\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\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0001\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u000b\b\u0007\u0018\u00002\u00020\u0001B9\b\u0007\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0004\u0012\u0006\u0010\u0007\u001a\u00020\u0006\u0012\u0006\u0010\t\u001a\u00020\b\u0012\u0006\u0010\u000b\u001a\u00020\n\u0012\u0006\u0010\r\u001a\u00020\f¢\u0006\u0004\b\u000e\u0010\u000fJJ\u0010\u001c\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u001b0\u001a0\u00192\u0006\u0010\u0011\u001a\u00020\u00102\u0006\u0010\u0012\u001a\u00020\u00102\u0006\u0010\u0014\u001a\u00020\u00132\u0006\u0010\u0015\u001a\u00020\u00102\f\u0010\u0018\u001a\b\u0012\u0004\u0012\u00020\u00170\u0016H\u0096@¢\u0006\u0004\b\u001c\u0010\u001dJ\"\u0010\u001f\u001a\u0014\u0012\u0010\u0012\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u001e0\u00160\u001a0\u0019H\u0096@¢\u0006\u0004\b\u001f\u0010 J$\u0010#\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u001e0\u001a0\u00192\u0006\u0010\"\u001a\u00020!H\u0096@¢\u0006\u0004\b#\u0010$R\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010%R\u0014\u0010\u0005\u001a\u00020\u00048\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0005\u0010&R\u0014\u0010\u0007\u001a\u00020\u00068\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0007\u0010'R\u0014\u0010\t\u001a\u00020\b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\t\u0010(R\u0014\u0010\r\u001a\u00020\f8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\r\u0010)R\u0014\u0010*\u001a\u00020\u00108\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b*\u0010+¨\u0006,"}, d2 = {"Lcom/adif/elcanomovil/repositories/avisa/DefaultIncidenceRepository;", "Lcom/adif/elcanomovil/domain/repositories/avisa/IncidenceRepository;", "Lcom/adif/elcanomovil/serviceNetworking/avisa/IncidenceService;", "incidenceService", "Lcom/adif/elcanomovil/serviceStorage/database/IncidenceDao;", "incidenceDao", "Lcom/adif/elcanomovil/repositories/avisa/IncidencePictureMapper;", "incidencePictureMapper", "Lcom/adif/elcanomovil/repositories/avisa/IncidenceMapper;", "incidenceMapper", "Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;", "preferenceStorage", "Ld1/a;", "appDispatcher", "<init>", "(Lcom/adif/elcanomovil/serviceNetworking/avisa/IncidenceService;Lcom/adif/elcanomovil/serviceStorage/database/IncidenceDao;Lcom/adif/elcanomovil/repositories/avisa/IncidencePictureMapper;Lcom/adif/elcanomovil/repositories/avisa/IncidenceMapper;Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;Ld1/a;)V", "", "categoryId", "description", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceNotificationType;", "notificationTypeId", "stationId", "", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidencePicture;", "listPictures", "Lkotlinx/coroutines/flow/Flow;", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;", "", "createIncidence", "(Ljava/lang/String;Ljava/lang/String;Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceNotificationType;Ljava/lang/String;Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceStation;", "incidences", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "", ServicePaths.IncidenceService.pathIncidenceId, "incidenceDetails", "(ILkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Lcom/adif/elcanomovil/serviceNetworking/avisa/IncidenceService;", "Lcom/adif/elcanomovil/serviceStorage/database/IncidenceDao;", "Lcom/adif/elcanomovil/repositories/avisa/IncidencePictureMapper;", "Lcom/adif/elcanomovil/repositories/avisa/IncidenceMapper;", "Ld1/a;", "header", "Ljava/lang/String;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultIncidenceRepository implements IncidenceRepository {
|
||||
private final InterfaceC0307a appDispatcher;
|
||||
private final String header;
|
||||
private final IncidenceDao incidenceDao;
|
||||
private final IncidenceMapper incidenceMapper;
|
||||
private final IncidencePictureMapper incidencePictureMapper;
|
||||
private final IncidenceService incidenceService;
|
||||
|
||||
@Inject
|
||||
public DefaultIncidenceRepository(IncidenceService incidenceService, IncidenceDao incidenceDao, IncidencePictureMapper incidencePictureMapper, IncidenceMapper incidenceMapper, PreferenceStorage preferenceStorage, InterfaceC0307a appDispatcher) {
|
||||
Intrinsics.checkNotNullParameter(incidenceService, "incidenceService");
|
||||
Intrinsics.checkNotNullParameter(incidenceDao, "incidenceDao");
|
||||
Intrinsics.checkNotNullParameter(incidencePictureMapper, "incidencePictureMapper");
|
||||
Intrinsics.checkNotNullParameter(incidenceMapper, "incidenceMapper");
|
||||
Intrinsics.checkNotNullParameter(preferenceStorage, "preferenceStorage");
|
||||
Intrinsics.checkNotNullParameter(appDispatcher, "appDispatcher");
|
||||
this.incidenceService = incidenceService;
|
||||
this.incidenceDao = incidenceDao;
|
||||
this.incidencePictureMapper = incidencePictureMapper;
|
||||
this.incidenceMapper = incidenceMapper;
|
||||
this.appDispatcher = appDispatcher;
|
||||
StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
|
||||
AvisaToken avisaToken = preferenceStorage.getAvisaToken();
|
||||
this.header = w.s(new Object[]{avisaToken != null ? avisaToken.getAccessToken() : null}, 1, "Bearer %s", "format(...)");
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.avisa.IncidenceRepository
|
||||
public Object createIncidence(String str, String str2, IncidenceNotificationType incidenceNotificationType, String str3, List<IncidencePicture> list, Continuation<? super Flow<AsyncResult>> continuation) {
|
||||
return FlowKt.flow(new n(this, str, str2, incidenceNotificationType, str3, list, null));
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.avisa.IncidenceRepository
|
||||
public Object incidenceDetails(int i, Continuation<? super Flow<AsyncResult<IncidenceStation>>> continuation) {
|
||||
((d1.d) this.appDispatcher).getClass();
|
||||
return BuildersKt.withContext(Dispatchers.getIO(), new o(this, i, null), continuation);
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.repositories.avisa.IncidenceRepository
|
||||
public Object incidences(Continuation<? super Flow<? extends AsyncResult<? extends List<IncidenceStation>>>> continuation) {
|
||||
((d1.d) this.appDispatcher).getClass();
|
||||
return BuildersKt.withContext(Dispatchers.getIO(), new r(this, null), continuation);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.IncidenceService;
|
||||
import com.adif.elcanomovil.serviceStorage.database.IncidenceDao;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import d1.InterfaceC0307a;
|
||||
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
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultIncidenceRepository_Factory implements Factory<DefaultIncidenceRepository> {
|
||||
private final Provider<InterfaceC0307a> appDispatcherProvider;
|
||||
private final Provider<IncidenceDao> incidenceDaoProvider;
|
||||
private final Provider<IncidenceMapper> incidenceMapperProvider;
|
||||
private final Provider<IncidencePictureMapper> incidencePictureMapperProvider;
|
||||
private final Provider<IncidenceService> incidenceServiceProvider;
|
||||
private final Provider<PreferenceStorage> preferenceStorageProvider;
|
||||
|
||||
public DefaultIncidenceRepository_Factory(Provider<IncidenceService> provider, Provider<IncidenceDao> provider2, Provider<IncidencePictureMapper> provider3, Provider<IncidenceMapper> provider4, Provider<PreferenceStorage> provider5, Provider<InterfaceC0307a> provider6) {
|
||||
this.incidenceServiceProvider = provider;
|
||||
this.incidenceDaoProvider = provider2;
|
||||
this.incidencePictureMapperProvider = provider3;
|
||||
this.incidenceMapperProvider = provider4;
|
||||
this.preferenceStorageProvider = provider5;
|
||||
this.appDispatcherProvider = provider6;
|
||||
}
|
||||
|
||||
public static DefaultIncidenceRepository_Factory create(Provider<IncidenceService> provider, Provider<IncidenceDao> provider2, Provider<IncidencePictureMapper> provider3, Provider<IncidenceMapper> provider4, Provider<PreferenceStorage> provider5, Provider<InterfaceC0307a> provider6) {
|
||||
return new DefaultIncidenceRepository_Factory(provider, provider2, provider3, provider4, provider5, provider6);
|
||||
}
|
||||
|
||||
public static DefaultIncidenceRepository newInstance(IncidenceService incidenceService, IncidenceDao incidenceDao, IncidencePictureMapper incidencePictureMapper, IncidenceMapper incidenceMapper, PreferenceStorage preferenceStorage, InterfaceC0307a interfaceC0307a) {
|
||||
return new DefaultIncidenceRepository(incidenceService, incidenceDao, incidencePictureMapper, incidenceMapper, preferenceStorage, interfaceC0307a);
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public DefaultIncidenceRepository get() {
|
||||
return newInstance(this.incidenceServiceProvider.get(), this.incidenceDaoProvider.get(), this.incidencePictureMapperProvider.get(), this.incidenceMapperProvider.get(), this.preferenceStorageProvider.get(), this.appDispatcherProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceComment;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.IncidenceCommentResponse;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.IncidencePictureResponse;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.IncidenceCommentEntity;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.IncidencePictureEntity;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006J\u000e\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\b¨\u0006\t"}, d2 = {"Lcom/adif/elcanomovil/repositories/avisa/IncidenceCommentMapper;", "", "()V", "entityToDomain", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceComment;", "source", "Lcom/adif/elcanomovil/serviceStorage/model/avisa/IncidenceCommentEntity;", "responseToEntity", "Lcom/adif/elcanomovil/serviceNetworking/avisa/model/IncidenceCommentResponse;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nIncidenceCommentMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 IncidenceCommentMapper.kt\ncom/adif/elcanomovil/repositories/avisa/IncidenceCommentMapper\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\n1549#3:37\n1620#3,3:38\n*S KotlinDebug\n*F\n+ 1 IncidenceCommentMapper.kt\ncom/adif/elcanomovil/repositories/avisa/IncidenceCommentMapper\n*L\n17#1:33\n17#1:34,3\n28#1:37\n28#1:38,3\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class IncidenceCommentMapper {
|
||||
public final IncidenceComment entityToDomain(IncidenceCommentEntity source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
Date createTime = source.getCreateTime();
|
||||
Date updatedTime = source.getUpdatedTime();
|
||||
String type = source.getType();
|
||||
String statusTypeId = source.getStatusTypeId();
|
||||
String description = source.getDescription();
|
||||
Integer incidenceId = source.getIncidenceId();
|
||||
List<IncidencePictureEntity> fixPhotos = source.getFixPhotos();
|
||||
ArrayList arrayList = new ArrayList(CollectionsKt.g(fixPhotos));
|
||||
Iterator<T> it = fixPhotos.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(new IncidencePictureMapper().entityToDomain((IncidencePictureEntity) it.next()));
|
||||
}
|
||||
return new IncidenceComment(createTime, updatedTime, type, statusTypeId, description, incidenceId, arrayList);
|
||||
}
|
||||
|
||||
public final IncidenceCommentEntity responseToEntity(IncidenceCommentResponse source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
Long createTime = source.getCreateTime();
|
||||
Date date = createTime != null ? new Date(createTime.longValue()) : null;
|
||||
Long updatedTime = source.getUpdatedTime();
|
||||
Date date2 = updatedTime != null ? new Date(updatedTime.longValue()) : null;
|
||||
String type = source.getType();
|
||||
String statusTypeId = source.getStatusTypeId();
|
||||
String description = source.getDescription();
|
||||
Integer incidenceId = source.getIncidenceId();
|
||||
List<IncidencePictureResponse> fixPhotos = source.getFixPhotos();
|
||||
ArrayList arrayList = new ArrayList(CollectionsKt.g(fixPhotos));
|
||||
Iterator<T> it = fixPhotos.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(new IncidencePictureMapper().responseToEntity((IncidencePictureResponse) it.next()));
|
||||
}
|
||||
return new IncidenceCommentEntity(0, date, date2, type, statusTypeId, description, incidenceId, arrayList, 1, null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.Incidence;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceStation;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.IncidenceCommentResponse;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.IncidencePictureResponse;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.IncidenceResponse;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.IncidenceCommentEntity;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.IncidenceEntity;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.IncidencePictureEntity;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.IncidenceStationEntity;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000@\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\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B%\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\t¢\u0006\u0002\u0010\nJ\u000e\u0010\u000b\u001a\u00020\f2\u0006\u0010\r\u001a\u00020\u000eJ\u000e\u0010\u000f\u001a\u00020\u00102\u0006\u0010\r\u001a\u00020\u0011J\u000e\u0010\u0012\u001a\u00020\u000e2\u0006\u0010\r\u001a\u00020\u0013R\u000e\u0010\b\u001a\u00020\tX\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0007X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0014"}, d2 = {"Lcom/adif/elcanomovil/repositories/avisa/IncidenceMapper;", "", "incidencePictureMapper", "Lcom/adif/elcanomovil/repositories/avisa/IncidencePictureMapper;", "incidenceCommentMapper", "Lcom/adif/elcanomovil/repositories/avisa/IncidenceCommentMapper;", "avisaStationMapper", "Lcom/adif/elcanomovil/repositories/avisa/AvisaStationMapper;", "avisaStationCategoryMapper", "Lcom/adif/elcanomovil/repositories/avisa/AvisaStationCategoryMapper;", "(Lcom/adif/elcanomovil/repositories/avisa/IncidencePictureMapper;Lcom/adif/elcanomovil/repositories/avisa/IncidenceCommentMapper;Lcom/adif/elcanomovil/repositories/avisa/AvisaStationMapper;Lcom/adif/elcanomovil/repositories/avisa/AvisaStationCategoryMapper;)V", "entityToDomain", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/Incidence;", "source", "Lcom/adif/elcanomovil/serviceStorage/model/avisa/IncidenceEntity;", "entityToDomainIncidenceStation", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceStation;", "Lcom/adif/elcanomovil/serviceStorage/model/avisa/IncidenceStationEntity;", "responseToEntity", "Lcom/adif/elcanomovil/serviceNetworking/avisa/model/IncidenceResponse;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nIncidenceMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 IncidenceMapper.kt\ncom/adif/elcanomovil/repositories/avisa/IncidenceMapper\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,55:1\n1549#2:56\n1620#2,3:57\n1549#2:60\n1620#2,3:61\n1549#2:65\n1620#2,3:66\n1549#2:69\n1620#2,3:70\n1#3:64\n*S KotlinDebug\n*F\n+ 1 IncidenceMapper.kt\ncom/adif/elcanomovil/repositories/avisa/IncidenceMapper\n*L\n28#1:56\n28#1:57,3\n29#1:60\n29#1:61,3\n44#1:65\n44#1:66,3\n45#1:69\n45#1:70,3\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class IncidenceMapper {
|
||||
private final AvisaStationCategoryMapper avisaStationCategoryMapper;
|
||||
private final AvisaStationMapper avisaStationMapper;
|
||||
private final IncidenceCommentMapper incidenceCommentMapper;
|
||||
private final IncidencePictureMapper incidencePictureMapper;
|
||||
|
||||
public IncidenceMapper(IncidencePictureMapper incidencePictureMapper, IncidenceCommentMapper incidenceCommentMapper, AvisaStationMapper avisaStationMapper, AvisaStationCategoryMapper avisaStationCategoryMapper) {
|
||||
Intrinsics.checkNotNullParameter(incidencePictureMapper, "incidencePictureMapper");
|
||||
Intrinsics.checkNotNullParameter(incidenceCommentMapper, "incidenceCommentMapper");
|
||||
Intrinsics.checkNotNullParameter(avisaStationMapper, "avisaStationMapper");
|
||||
Intrinsics.checkNotNullParameter(avisaStationCategoryMapper, "avisaStationCategoryMapper");
|
||||
this.incidencePictureMapper = incidencePictureMapper;
|
||||
this.incidenceCommentMapper = incidenceCommentMapper;
|
||||
this.avisaStationMapper = avisaStationMapper;
|
||||
this.avisaStationCategoryMapper = avisaStationCategoryMapper;
|
||||
}
|
||||
|
||||
public final Incidence entityToDomain(IncidenceEntity source) {
|
||||
ArrayList arrayList;
|
||||
ArrayList arrayList2;
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
int id = source.getId();
|
||||
String incidenceCode = source.getIncidenceCode();
|
||||
String stationId = source.getStationId();
|
||||
int statusTypeId = source.getStatusTypeId();
|
||||
String description = source.getDescription();
|
||||
int notificationTypeId = source.getNotificationTypeId();
|
||||
Date createdTime = source.getCreatedTime();
|
||||
Date estimatedDateTo = source.getEstimatedDateTo();
|
||||
Date solvedDate = source.getSolvedDate();
|
||||
String categoryId = source.getCategoryId();
|
||||
List<IncidencePictureEntity> photos = source.getPhotos();
|
||||
if (photos != null) {
|
||||
List<IncidencePictureEntity> list = photos;
|
||||
ArrayList arrayList3 = new ArrayList(CollectionsKt.g(list));
|
||||
Iterator<T> it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList3.add(this.incidencePictureMapper.entityToDomain((IncidencePictureEntity) it.next()));
|
||||
}
|
||||
arrayList = arrayList3;
|
||||
} else {
|
||||
arrayList = null;
|
||||
}
|
||||
List<IncidenceCommentEntity> comments = source.getComments();
|
||||
if (comments != null) {
|
||||
List<IncidenceCommentEntity> list2 = comments;
|
||||
ArrayList arrayList4 = new ArrayList(CollectionsKt.g(list2));
|
||||
Iterator<T> it2 = list2.iterator();
|
||||
while (it2.hasNext()) {
|
||||
arrayList4.add(this.incidenceCommentMapper.entityToDomain((IncidenceCommentEntity) it2.next()));
|
||||
}
|
||||
arrayList2 = arrayList4;
|
||||
} else {
|
||||
arrayList2 = null;
|
||||
}
|
||||
return new Incidence(id, incidenceCode, stationId, statusTypeId, description, notificationTypeId, createdTime, estimatedDateTo, solvedDate, categoryId, arrayList, arrayList2);
|
||||
}
|
||||
|
||||
public final IncidenceStation entityToDomainIncidenceStation(IncidenceStationEntity source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new IncidenceStation(entityToDomain(source.getIncidence()), this.avisaStationMapper.entityToDomain(source.getAvisaStation()), this.avisaStationCategoryMapper.entityToDomain(source.getCategoryAvisa()));
|
||||
}
|
||||
|
||||
public final IncidenceEntity responseToEntity(IncidenceResponse source) {
|
||||
ArrayList arrayList;
|
||||
ArrayList arrayList2;
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
int id = source.getId();
|
||||
String incidenceCode = source.getIncidenceCode();
|
||||
String stationId = source.getStationId();
|
||||
int statusTypeId = source.getStatusTypeId();
|
||||
String description = source.getDescription();
|
||||
int notificationTypeId = source.getNotificationTypeId();
|
||||
Date date = new Date(source.getCreatedTime());
|
||||
Long estimatedDateTo = source.getEstimatedDateTo();
|
||||
Date date2 = estimatedDateTo != null ? new Date(estimatedDateTo.longValue()) : null;
|
||||
Long solvedDate = source.getSolvedDate();
|
||||
Date date3 = solvedDate != null ? new Date(solvedDate.longValue()) : null;
|
||||
String categoryId = source.getCategoryId();
|
||||
List<IncidencePictureResponse> photos = source.getPhotos();
|
||||
if (photos != null) {
|
||||
List<IncidencePictureResponse> list = photos;
|
||||
ArrayList arrayList3 = new ArrayList(CollectionsKt.g(list));
|
||||
Iterator<T> it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList3.add(this.incidencePictureMapper.responseToEntity((IncidencePictureResponse) it.next()));
|
||||
}
|
||||
arrayList = arrayList3;
|
||||
} else {
|
||||
arrayList = null;
|
||||
}
|
||||
List<IncidenceCommentResponse> comments = source.getComments();
|
||||
if (comments != null) {
|
||||
List<IncidenceCommentResponse> list2 = comments;
|
||||
ArrayList arrayList4 = new ArrayList(CollectionsKt.g(list2));
|
||||
Iterator<T> it2 = list2.iterator();
|
||||
while (it2.hasNext()) {
|
||||
arrayList4.add(this.incidenceCommentMapper.responseToEntity((IncidenceCommentResponse) it2.next()));
|
||||
}
|
||||
arrayList2 = arrayList4;
|
||||
} else {
|
||||
arrayList2 = null;
|
||||
}
|
||||
return new IncidenceEntity(id, incidenceCode, stationId, statusTypeId, description, notificationTypeId, date, date2, date3, categoryId, arrayList, arrayList2);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidencePicture;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.IncidencePictureResponse;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.IncidenceRequestPicture;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.IncidencePictureEntity;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@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\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006J\u000e\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\bJ\u000e\u0010\t\u001a\u00020\b2\u0006\u0010\u0005\u001a\u00020\n¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/repositories/avisa/IncidencePictureMapper;", "", "()V", "domainToRequest", "Lcom/adif/elcanomovil/serviceNetworking/avisa/model/IncidenceRequestPicture;", "source", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidencePicture;", "entityToDomain", "Lcom/adif/elcanomovil/serviceStorage/model/avisa/IncidencePictureEntity;", "responseToEntity", "Lcom/adif/elcanomovil/serviceNetworking/avisa/model/IncidencePictureResponse;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class IncidencePictureMapper {
|
||||
public final IncidenceRequestPicture domainToRequest(IncidencePicture source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new IncidenceRequestPicture(source.getType(), source.getContent());
|
||||
}
|
||||
|
||||
public final IncidencePicture entityToDomain(IncidencePictureEntity source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new IncidencePicture(source.getType(), source.getContent(), source.getThumbnail(), source.getIncidenceId(), source.getPath());
|
||||
}
|
||||
|
||||
public final IncidencePictureEntity responseToEntity(IncidencePictureResponse source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new IncidencePictureEntity(0, source.getType(), source.getContent(), source.getThumbnail(), source.getIncidenceId(), source.getPath(), 1, null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.serviceNetworking.ServicePaths;
|
||||
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\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0006\b\u0086\u0081\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\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\b¨\u0006\t"}, d2 = {"Lcom/adif/elcanomovil/repositories/avisa/ServiceGrantType;", "", "value", "", "(Ljava/lang/String;ILjava/lang/String;)V", "getValue", "()Ljava/lang/String;", "PASSWORD", "TOKEN", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ServiceGrantType {
|
||||
private static final /* synthetic */ EnumEntries $ENTRIES;
|
||||
private static final /* synthetic */ ServiceGrantType[] $VALUES;
|
||||
public static final ServiceGrantType PASSWORD = new ServiceGrantType("PASSWORD", 0, ServicePaths.AvisaLoginService.queryPassword);
|
||||
public static final ServiceGrantType TOKEN = new ServiceGrantType("TOKEN", 1, ServicePaths.AvisaLoginService.queryRefreshToken);
|
||||
private final String value;
|
||||
|
||||
private static final /* synthetic */ ServiceGrantType[] $values() {
|
||||
return new ServiceGrantType[]{PASSWORD, TOKEN};
|
||||
}
|
||||
|
||||
static {
|
||||
ServiceGrantType[] $values = $values();
|
||||
$VALUES = $values;
|
||||
$ENTRIES = EnumEntriesKt.enumEntries($values);
|
||||
}
|
||||
|
||||
private ServiceGrantType(String str, int i, String str2) {
|
||||
this.value = str2;
|
||||
}
|
||||
|
||||
public static EnumEntries<ServiceGrantType> getEntries() {
|
||||
return $ENTRIES;
|
||||
}
|
||||
|
||||
public static ServiceGrantType valueOf(String str) {
|
||||
return (ServiceGrantType) Enum.valueOf(ServiceGrantType.class, str);
|
||||
}
|
||||
|
||||
public static ServiceGrantType[] values() {
|
||||
return (ServiceGrantType[]) $VALUES.clone();
|
||||
}
|
||||
|
||||
public final String getValue() {
|
||||
return this.value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.AvisaLoginResponse;
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.AvisaToken;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006¨\u0006\u0007"}, d2 = {"Lcom/adif/elcanomovil/repositories/avisa/TokenMapper;", "", "()V", "map", "Lcom/adif/elcanomovil/serviceStorage/model/avisa/AvisaToken;", "loginResponse", "Lcom/adif/elcanomovil/serviceNetworking/avisa/model/AvisaLoginResponse;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class TokenMapper {
|
||||
public final AvisaToken map(AvisaLoginResponse loginResponse) {
|
||||
Intrinsics.checkNotNullParameter(loginResponse, "loginResponse");
|
||||
return new AvisaToken(loginResponse.getAccessToken(), loginResponse.getTokenType(), loginResponse.getRefreshToken(), loginResponse.getExpiresIn(), loginResponse.getScope());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,197 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class a extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4575a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4576b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultAvisaLoginRepository f4577c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public a(DefaultAvisaLoginRepository defaultAvisaLoginRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4577c = defaultAvisaLoginRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
a aVar = new a(this.f4577c, continuation);
|
||||
aVar.f4576b = obj;
|
||||
return aVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((a) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't wrap try/catch for region: R(10:1|(1:(1:(3:(1:(1:7)(2:11|12))(3:13|14|15)|8|9)(6:22|23|24|25|26|27))(1:36))(1:50)|37|38|39|40|41|(3:43|26|27)|21|(1:(0))) */
|
||||
/* JADX WARN: Code restructure failed: missing block: B:20:0x00bd, code lost:
|
||||
|
||||
if (r2.emit(r14, r13) == r1) goto L43;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:28:0x00a1, code lost:
|
||||
|
||||
if (r5.emit(r14, r13) != r1) goto L44;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:45:0x00a7, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:46:0x00a8, code lost:
|
||||
|
||||
r2 = r15;
|
||||
r15 = r0;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:48:0x00ac, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:49:0x00ad, code lost:
|
||||
|
||||
r13 = r14;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:51:0x0061, code lost:
|
||||
|
||||
if (r15.emit(r0, r14) == r1) goto L43;
|
||||
*/
|
||||
@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) {
|
||||
/*
|
||||
r14 = this;
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r0 = r14.f4575a
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository r2 = r14.f4577c
|
||||
r3 = 4
|
||||
r4 = 3
|
||||
r5 = 2
|
||||
r6 = 1
|
||||
r7 = 0
|
||||
if (r0 == 0) goto L4c
|
||||
if (r0 == r6) goto L43
|
||||
if (r0 == r5) goto L33
|
||||
if (r0 == r4) goto L24
|
||||
if (r0 != r3) goto L1c
|
||||
kotlin.ResultKt.throwOnFailure(r15)
|
||||
goto Lc0
|
||||
L1c:
|
||||
java.lang.IllegalStateException r14 = new java.lang.IllegalStateException
|
||||
java.lang.String r15 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r14.<init>(r15)
|
||||
throw r14
|
||||
L24:
|
||||
java.lang.Object r0 = r14.f4576b
|
||||
r2 = r0
|
||||
kotlinx.coroutines.flow.FlowCollector r2 = (kotlinx.coroutines.flow.FlowCollector) r2
|
||||
kotlin.ResultKt.throwOnFailure(r15) // Catch: java.lang.Throwable -> L2e
|
||||
goto Lc0
|
||||
L2e:
|
||||
r0 = move-exception
|
||||
r15 = r0
|
||||
r13 = r14
|
||||
goto Laf
|
||||
L33:
|
||||
java.lang.Object r0 = r14.f4576b
|
||||
r5 = r0
|
||||
kotlinx.coroutines.flow.FlowCollector r5 = (kotlinx.coroutines.flow.FlowCollector) r5
|
||||
kotlin.ResultKt.throwOnFailure(r15) // Catch: java.lang.Throwable -> L3d
|
||||
r13 = r14
|
||||
goto L8e
|
||||
L3d:
|
||||
r0 = move-exception
|
||||
r15 = r0
|
||||
r13 = r14
|
||||
L40:
|
||||
r2 = r5
|
||||
goto Laf
|
||||
L43:
|
||||
java.lang.Object r0 = r14.f4576b
|
||||
kotlinx.coroutines.flow.FlowCollector r0 = (kotlinx.coroutines.flow.FlowCollector) r0
|
||||
kotlin.ResultKt.throwOnFailure(r15)
|
||||
r15 = r0
|
||||
goto L64
|
||||
L4c:
|
||||
kotlin.ResultKt.throwOnFailure(r15)
|
||||
java.lang.Object r15 = r14.f4576b
|
||||
kotlinx.coroutines.flow.FlowCollector r15 = (kotlinx.coroutines.flow.FlowCollector) r15
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r0 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r0 = r0.loading(r7)
|
||||
r14.f4576b = r15
|
||||
r14.f4575a = r6
|
||||
java.lang.Object r0 = r15.emit(r0, r14)
|
||||
if (r0 != r1) goto L64
|
||||
goto Lbf
|
||||
L64:
|
||||
com.adif.elcanomovil.serviceNetworking.avisa.AvisaLoginService r8 = com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$getAvisaLoginService$p(r2) // Catch: java.lang.Throwable -> Lac
|
||||
java.lang.String r9 = "Basic YXZpc3RhX2NsaWVudF9hbmRyb2lkOjh5WzZKNyFmSjwhXypmYXE1NyNnOSohNElwa2MjWC1BTg=="
|
||||
com.adif.elcanomovil.repositories.avisa.ServiceGrantType r0 = com.adif.elcanomovil.repositories.avisa.ServiceGrantType.PASSWORD // Catch: java.lang.Throwable -> Lac
|
||||
java.lang.String r10 = r0.getValue() // Catch: java.lang.Throwable -> Lac
|
||||
com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage r0 = com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$getPreferences$p(r2) // Catch: java.lang.Throwable -> Lac
|
||||
java.lang.String r11 = r0.getAvisaUserId() // Catch: java.lang.Throwable -> Lac
|
||||
com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage r0 = com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$getPreferences$p(r2) // Catch: java.lang.Throwable -> Lac
|
||||
java.lang.String r12 = r0.getAvisaPassword() // Catch: java.lang.Throwable -> Lac
|
||||
r14.f4576b = r15 // Catch: java.lang.Throwable -> Lac
|
||||
r14.f4575a = r5 // Catch: java.lang.Throwable -> Lac
|
||||
r13 = r14
|
||||
java.lang.Object r14 = r8.login(r9, r10, r11, r12, r13) // Catch: java.lang.Throwable -> La7
|
||||
if (r14 != r1) goto L8c
|
||||
goto Lbf
|
||||
L8c:
|
||||
r5 = r15
|
||||
r15 = r14
|
||||
L8e:
|
||||
com.adif.elcanomovil.serviceNetworking.avisa.model.AvisaLoginResponse r15 = (com.adif.elcanomovil.serviceNetworking.avisa.model.AvisaLoginResponse) r15 // Catch: java.lang.Throwable -> La4
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$handleAvisaLoginResponse(r2, r15) // Catch: java.lang.Throwable -> La4
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r14 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE // Catch: java.lang.Throwable -> La4
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r14 = r14.success(r7) // Catch: java.lang.Throwable -> La4
|
||||
r13.f4576b = r5 // Catch: java.lang.Throwable -> La4
|
||||
r13.f4575a = r4 // Catch: java.lang.Throwable -> La4
|
||||
java.lang.Object r14 = r5.emit(r14, r13) // Catch: java.lang.Throwable -> La4
|
||||
if (r14 != r1) goto Lc0
|
||||
goto Lbf
|
||||
La4:
|
||||
r0 = move-exception
|
||||
r15 = r0
|
||||
goto L40
|
||||
La7:
|
||||
r0 = move-exception
|
||||
La8:
|
||||
r14 = r0
|
||||
r2 = r15
|
||||
r15 = r14
|
||||
goto Laf
|
||||
Lac:
|
||||
r0 = move-exception
|
||||
r13 = r14
|
||||
goto La8
|
||||
Laf:
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r14 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r14 = r14.error(r15, r7)
|
||||
r13.f4576b = r7
|
||||
r13.f4575a = r3
|
||||
java.lang.Object r14 = r2.emit(r14, r13)
|
||||
if (r14 != r1) goto Lc0
|
||||
Lbf:
|
||||
return r1
|
||||
Lc0:
|
||||
kotlin.Unit r14 = kotlin.Unit.INSTANCE
|
||||
return r14
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.a.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,150 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class b extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4578a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4579b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultAvisaLoginRepository f4580c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public b(DefaultAvisaLoginRepository defaultAvisaLoginRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4580c = defaultAvisaLoginRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
b bVar = new b(this.f4580c, continuation);
|
||||
bVar.f4579b = obj;
|
||||
return bVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((b) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:19:0x0094, code lost:
|
||||
|
||||
if (r1.emit(r11, r10) != r0) goto L38;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:35:0x00a5, code lost:
|
||||
|
||||
if (r1.emit(r11, r10) != r0) goto L38;
|
||||
*/
|
||||
/* JADX WARN: Type inference failed for: r1v0, types: [int, kotlinx.coroutines.flow.FlowCollector] */
|
||||
@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 r11) {
|
||||
/*
|
||||
r10 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r10.f4578a
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository r2 = r10.f4580c
|
||||
r3 = 4
|
||||
r4 = 3
|
||||
r5 = 2
|
||||
r6 = 1
|
||||
r7 = 0
|
||||
if (r1 == 0) goto L3f
|
||||
if (r1 == r6) goto L37
|
||||
if (r1 == r5) goto L2f
|
||||
if (r1 == r4) goto L24
|
||||
if (r1 != r3) goto L1c
|
||||
kotlin.ResultKt.throwOnFailure(r11)
|
||||
goto La8
|
||||
L1c:
|
||||
java.lang.IllegalStateException r10 = new java.lang.IllegalStateException
|
||||
java.lang.String r11 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r10.<init>(r11)
|
||||
throw r10
|
||||
L24:
|
||||
java.lang.Object r1 = r10.f4579b
|
||||
kotlinx.coroutines.flow.FlowCollector r1 = (kotlinx.coroutines.flow.FlowCollector) r1
|
||||
kotlin.ResultKt.throwOnFailure(r11) // Catch: java.lang.Throwable -> L2d
|
||||
goto La8
|
||||
L2d:
|
||||
r11 = move-exception
|
||||
goto L97
|
||||
L2f:
|
||||
java.lang.Object r1 = r10.f4579b
|
||||
kotlinx.coroutines.flow.FlowCollector r1 = (kotlinx.coroutines.flow.FlowCollector) r1
|
||||
kotlin.ResultKt.throwOnFailure(r11) // Catch: java.lang.Throwable -> L2d
|
||||
goto L81
|
||||
L37:
|
||||
java.lang.Object r1 = r10.f4579b
|
||||
kotlinx.coroutines.flow.FlowCollector r1 = (kotlinx.coroutines.flow.FlowCollector) r1
|
||||
kotlin.ResultKt.throwOnFailure(r11)
|
||||
goto L58
|
||||
L3f:
|
||||
kotlin.ResultKt.throwOnFailure(r11)
|
||||
java.lang.Object r11 = r10.f4579b
|
||||
kotlinx.coroutines.flow.FlowCollector r11 = (kotlinx.coroutines.flow.FlowCollector) r11
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r1 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r1 = r1.loading(r7)
|
||||
r10.f4579b = r11
|
||||
r10.f4578a = r6
|
||||
java.lang.Object r1 = r11.emit(r1, r10)
|
||||
if (r1 != r0) goto L57
|
||||
goto La7
|
||||
L57:
|
||||
r1 = r11
|
||||
L58:
|
||||
com.adif.elcanomovil.serviceNetworking.avisa.AvisaLoginService r11 = com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$getAvisaLoginService$p(r2) // Catch: java.lang.Throwable -> L2d
|
||||
java.lang.String r6 = "Basic YXZpc3RhX2NsaWVudF9hbmRyb2lkOjh5WzZKNyFmSjwhXypmYXE1NyNnOSohNElwa2MjWC1BTg=="
|
||||
com.adif.elcanomovil.repositories.avisa.ServiceGrantType r8 = com.adif.elcanomovil.repositories.avisa.ServiceGrantType.TOKEN // Catch: java.lang.Throwable -> L2d
|
||||
java.lang.String r8 = r8.getValue() // Catch: java.lang.Throwable -> L2d
|
||||
com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage r9 = com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$getPreferences$p(r2) // Catch: java.lang.Throwable -> L2d
|
||||
com.adif.elcanomovil.serviceStorage.model.avisa.AvisaToken r9 = r9.getAvisaToken() // Catch: java.lang.Throwable -> L2d
|
||||
if (r9 == 0) goto L74
|
||||
java.lang.String r9 = r9.getRefreshToken() // Catch: java.lang.Throwable -> L2d
|
||||
if (r9 != 0) goto L76
|
||||
L74:
|
||||
java.lang.String r9 = ""
|
||||
L76:
|
||||
r10.f4579b = r1 // Catch: java.lang.Throwable -> L2d
|
||||
r10.f4578a = r5 // Catch: java.lang.Throwable -> L2d
|
||||
java.lang.Object r11 = r11.refreshToken(r6, r8, r9, r10) // Catch: java.lang.Throwable -> L2d
|
||||
if (r11 != r0) goto L81
|
||||
goto La7
|
||||
L81:
|
||||
com.adif.elcanomovil.serviceNetworking.avisa.model.AvisaLoginResponse r11 = (com.adif.elcanomovil.serviceNetworking.avisa.model.AvisaLoginResponse) r11 // Catch: java.lang.Throwable -> L2d
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$handleAvisaLoginResponse(r2, r11) // Catch: java.lang.Throwable -> L2d
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r11 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE // Catch: java.lang.Throwable -> L2d
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r11 = r11.success(r7) // Catch: java.lang.Throwable -> L2d
|
||||
r10.f4579b = r1 // Catch: java.lang.Throwable -> L2d
|
||||
r10.f4578a = r4 // Catch: java.lang.Throwable -> L2d
|
||||
java.lang.Object r10 = r1.emit(r11, r10) // Catch: java.lang.Throwable -> L2d
|
||||
if (r10 != r0) goto La8
|
||||
goto La7
|
||||
L97:
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r2 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r11 = r2.error(r11, r7)
|
||||
r10.f4579b = r7
|
||||
r10.f4578a = r3
|
||||
java.lang.Object r10 = r1.emit(r11, r10)
|
||||
if (r10 != r0) goto La8
|
||||
La7:
|
||||
return r0
|
||||
La8:
|
||||
kotlin.Unit r10 = kotlin.Unit.INSTANCE
|
||||
return r10
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.b.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,213 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class c extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4581a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4582b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultAvisaLoginRepository f4583c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4584d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4585e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4586f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4587g;
|
||||
public final /* synthetic */ String h;
|
||||
public final /* synthetic */ String i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4588j;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public c(DefaultAvisaLoginRepository defaultAvisaLoginRepository, String str, String str2, String str3, String str4, String str5, String str6, String str7, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4583c = defaultAvisaLoginRepository;
|
||||
this.f4584d = str;
|
||||
this.f4585e = str2;
|
||||
this.f4586f = str3;
|
||||
this.f4587g = str4;
|
||||
this.h = str5;
|
||||
this.i = str6;
|
||||
this.f4588j = str7;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
c cVar = new c(this.f4583c, this.f4584d, this.f4585e, this.f4586f, this.f4587g, this.h, this.i, this.f4588j, continuation);
|
||||
cVar.f4582b = obj;
|
||||
return cVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((c) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't wrap try/catch for region: R(9:1|(1:2)|(1:(1:(1:(1:(3:8|9|10)(2:12|13))(5:14|15|16|9|10))(5:18|19|20|21|22))(1:30))(1:39)|31|32|33|(2:35|22)|24|(1:(0))) */
|
||||
/* JADX WARN: Code restructure failed: missing block: B:23:0x00a1, code lost:
|
||||
|
||||
if (r0 != r2) goto L44;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:29:0x00b8, code lost:
|
||||
|
||||
if (r7.emit(r0, r18) == r2) goto L37;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:37:0x00a4, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:38:0x00a5, code lost:
|
||||
|
||||
r7 = r9;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:40:0x0062, code lost:
|
||||
|
||||
if (r0.emit(r11, r18) == r2) goto L37;
|
||||
*/
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Type inference failed for: r7v0 */
|
||||
/* JADX WARN: Type inference failed for: r7v1 */
|
||||
/* JADX WARN: Type inference failed for: r7v12 */
|
||||
/* JADX WARN: Type inference failed for: r7v13 */
|
||||
/* JADX WARN: Type inference failed for: r7v2, types: [kotlinx.coroutines.flow.FlowCollector] */
|
||||
/* JADX WARN: Type inference failed for: r7v3 */
|
||||
/* JADX WARN: Type inference failed for: r7v7 */
|
||||
/* JADX WARN: Type inference failed for: r7v8 */
|
||||
@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 r19) {
|
||||
/*
|
||||
r18 = this;
|
||||
r1 = r18
|
||||
java.lang.Object r2 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r0 = r1.f4581a
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository r3 = r1.f4583c
|
||||
java.lang.String r4 = r1.h
|
||||
java.lang.String r5 = r1.f4586f
|
||||
r6 = 4
|
||||
r7 = 3
|
||||
r8 = 2
|
||||
r9 = 1
|
||||
r10 = 0
|
||||
if (r0 == 0) goto L4d
|
||||
if (r0 == r9) goto L44
|
||||
if (r0 == r8) goto L37
|
||||
if (r0 == r7) goto L2a
|
||||
if (r0 != r6) goto L22
|
||||
kotlin.ResultKt.throwOnFailure(r19)
|
||||
goto Lbb
|
||||
L22:
|
||||
java.lang.IllegalStateException r0 = new java.lang.IllegalStateException
|
||||
java.lang.String r1 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r0.<init>(r1)
|
||||
throw r0
|
||||
L2a:
|
||||
java.lang.Object r0 = r1.f4582b
|
||||
r7 = r0
|
||||
kotlinx.coroutines.flow.FlowCollector r7 = (kotlinx.coroutines.flow.FlowCollector) r7
|
||||
kotlin.ResultKt.throwOnFailure(r19) // Catch: java.lang.Throwable -> L34
|
||||
goto Lbb
|
||||
L34:
|
||||
r0 = move-exception
|
||||
goto La6
|
||||
L37:
|
||||
java.lang.Object r0 = r1.f4582b
|
||||
r8 = r0
|
||||
kotlinx.coroutines.flow.FlowCollector r8 = (kotlinx.coroutines.flow.FlowCollector) r8
|
||||
kotlin.ResultKt.throwOnFailure(r19) // Catch: java.lang.Throwable -> L41
|
||||
r7 = r8
|
||||
goto L8f
|
||||
L41:
|
||||
r0 = move-exception
|
||||
r7 = r8
|
||||
goto La6
|
||||
L44:
|
||||
java.lang.Object r0 = r1.f4582b
|
||||
kotlinx.coroutines.flow.FlowCollector r0 = (kotlinx.coroutines.flow.FlowCollector) r0
|
||||
kotlin.ResultKt.throwOnFailure(r19)
|
||||
L4b:
|
||||
r9 = r0
|
||||
goto L65
|
||||
L4d:
|
||||
kotlin.ResultKt.throwOnFailure(r19)
|
||||
java.lang.Object r0 = r1.f4582b
|
||||
kotlinx.coroutines.flow.FlowCollector r0 = (kotlinx.coroutines.flow.FlowCollector) r0
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r11 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r11 = r11.loading(r10)
|
||||
r1.f4582b = r0
|
||||
r1.f4581a = r9
|
||||
java.lang.Object r9 = r0.emit(r11, r1)
|
||||
if (r9 != r2) goto L4b
|
||||
goto Lba
|
||||
L65:
|
||||
java.lang.String r0 = r1.f4584d // Catch: java.lang.Throwable -> La4
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$storeSubscriptionUserId(r3, r0) // Catch: java.lang.Throwable -> La4
|
||||
com.adif.elcanomovil.serviceNetworking.avisa.AvisaLoginService r0 = com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$getAvisaLoginService$p(r3) // Catch: java.lang.Throwable -> La4
|
||||
java.lang.String r11 = r1.f4585e // Catch: java.lang.Throwable -> La4
|
||||
com.adif.elcanomovil.serviceNetworking.avisa.model.AvisaRegistrationRequest r12 = new com.adif.elcanomovil.serviceNetworking.avisa.model.AvisaRegistrationRequest // Catch: java.lang.Throwable -> La4
|
||||
java.lang.String r13 = r1.f4586f // Catch: java.lang.Throwable -> La4
|
||||
java.lang.String r14 = r1.f4587g // Catch: java.lang.Throwable -> La4
|
||||
java.lang.String r15 = r1.h // Catch: java.lang.Throwable -> La4
|
||||
java.lang.String r6 = r1.i // Catch: java.lang.Throwable -> La4
|
||||
java.lang.String r7 = r1.f4588j // Catch: java.lang.Throwable -> La4
|
||||
r16 = r6
|
||||
r17 = r7
|
||||
r12.<init>(r13, r14, r15, r16, r17) // Catch: java.lang.Throwable -> La4
|
||||
r1.f4582b = r9 // Catch: java.lang.Throwable -> La4
|
||||
r1.f4581a = r8 // Catch: java.lang.Throwable -> La4
|
||||
java.lang.Object r0 = r0.register(r11, r12, r1) // Catch: java.lang.Throwable -> La4
|
||||
if (r0 != r2) goto L8e
|
||||
goto Lba
|
||||
L8e:
|
||||
r7 = r9
|
||||
L8f:
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$storeAvisaUser(r3, r5, r4) // Catch: java.lang.Throwable -> L34
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r0 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE // Catch: java.lang.Throwable -> L34
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r0 = r0.success(r10) // Catch: java.lang.Throwable -> L34
|
||||
r1.f4582b = r7 // Catch: java.lang.Throwable -> L34
|
||||
r6 = 3
|
||||
r1.f4581a = r6 // Catch: java.lang.Throwable -> L34
|
||||
java.lang.Object r0 = r7.emit(r0, r1) // Catch: java.lang.Throwable -> L34
|
||||
if (r0 != r2) goto Lbb
|
||||
goto Lba
|
||||
La4:
|
||||
r0 = move-exception
|
||||
r7 = r9
|
||||
La6:
|
||||
com.adif.elcanomovil.repositories.avisa.DefaultAvisaLoginRepository.access$storeAvisaUser(r3, r5, r4)
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r3 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r0 = r3.error(r0, r10)
|
||||
r1.f4582b = r10
|
||||
r3 = 4
|
||||
r1.f4581a = r3
|
||||
java.lang.Object r0 = r7.emit(r0, r1)
|
||||
if (r0 != r2) goto Lbb
|
||||
Lba:
|
||||
return r2
|
||||
Lbb:
|
||||
kotlin.Unit r0 = kotlin.Unit.INSTANCE
|
||||
return r0
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.c.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.AvisaStationEntity;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class d extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4589a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4590b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ List f4591c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultAvisaStationsRepository f4592d;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public d(List list, DefaultAvisaStationsRepository defaultAvisaStationsRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4591c = list;
|
||||
this.f4592d = defaultAvisaStationsRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
d dVar = new d(this.f4591c, this.f4592d, continuation);
|
||||
dVar.f4590b = obj;
|
||||
return dVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((d) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
int collectionSizeOrDefault;
|
||||
AvisaStationMapper avisaStationMapper;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4589a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
FlowCollector flowCollector = (FlowCollector) this.f4590b;
|
||||
List<AvisaStationEntity> list = this.f4591c;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
for (AvisaStationEntity avisaStationEntity : list) {
|
||||
avisaStationMapper = this.f4592d.avisaStationMapper;
|
||||
arrayList.add(avisaStationMapper.entityToDomain(avisaStationEntity));
|
||||
}
|
||||
this.f4589a = 1;
|
||||
if (flowCollector.emit(arrayList, 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,45 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
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 kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class e extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4593a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultAvisaStationsRepository f4594b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public e(DefaultAvisaStationsRepository defaultAvisaStationsRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4594b = defaultAvisaStationsRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
e eVar = new e(this.f4594b, continuation);
|
||||
eVar.f4593a = obj;
|
||||
return eVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((e) create((List) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
return FlowKt.flow(new d((List) this.f4593a, this.f4594b, null));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
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.FlowKt;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class f extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultAvisaStationsRepository f4595a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ boolean f4596b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public f(DefaultAvisaStationsRepository defaultAvisaStationsRepository, boolean z3, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4595a = defaultAvisaStationsRepository;
|
||||
this.f4596b = z3;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new f(this.f4595a, this.f4596b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((f) 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);
|
||||
DefaultAvisaStationsRepository defaultAvisaStationsRepository = this.f4595a;
|
||||
return FlowKt.flow(new DefaultAvisaStationsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1(null, defaultAvisaStationsRepository, this.f4596b, defaultAvisaStationsRepository, defaultAvisaStationsRepository));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.AvisaStationCategoryEntity;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class g extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4597a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4598b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ List f4599c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultAvisaStationsRepository f4600d;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public g(List list, DefaultAvisaStationsRepository defaultAvisaStationsRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4599c = list;
|
||||
this.f4600d = defaultAvisaStationsRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
g gVar = new g(this.f4599c, this.f4600d, continuation);
|
||||
gVar.f4598b = obj;
|
||||
return gVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((g) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
int collectionSizeOrDefault;
|
||||
AvisaStationCategoryMapper avisaStationCategoryMapper;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4597a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
FlowCollector flowCollector = (FlowCollector) this.f4598b;
|
||||
List<AvisaStationCategoryEntity> list = this.f4599c;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
for (AvisaStationCategoryEntity avisaStationCategoryEntity : list) {
|
||||
avisaStationCategoryMapper = this.f4600d.avisaStationCategoryMapper;
|
||||
arrayList.add(avisaStationCategoryMapper.entityToDomain(avisaStationCategoryEntity));
|
||||
}
|
||||
this.f4597a = 1;
|
||||
if (flowCollector.emit(arrayList, 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,45 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
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 kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class h extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4601a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultAvisaStationsRepository f4602b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public h(DefaultAvisaStationsRepository defaultAvisaStationsRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4602b = defaultAvisaStationsRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
h hVar = new h(this.f4602b, continuation);
|
||||
hVar.f4601a = obj;
|
||||
return hVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((h) create((List) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
return FlowKt.flow(new g((List) this.f4601a, this.f4602b, null));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
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.FlowKt;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class i extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultAvisaStationsRepository f4603a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ boolean f4604b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public i(DefaultAvisaStationsRepository defaultAvisaStationsRepository, boolean z3, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4603a = defaultAvisaStationsRepository;
|
||||
this.f4604b = z3;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new i(this.f4603a, this.f4604b, 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) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
DefaultAvisaStationsRepository defaultAvisaStationsRepository = this.f4603a;
|
||||
return FlowKt.flow(new DefaultAvisaStationsRepository$fetchStationCategories$2$invokeSuspend$$inlined$networkBoundResource$1(null, defaultAvisaStationsRepository, this.f4604b, defaultAvisaStationsRepository, defaultAvisaStationsRepository));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
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 kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class j extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4605a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4606b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ List f4607c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public j(List list, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4607c = list;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
j jVar = new j(this.f4607c, continuation);
|
||||
jVar.f4606b = obj;
|
||||
return jVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((j) create((FlowCollector) 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.f4605a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
FlowCollector flowCollector = (FlowCollector) this.f4606b;
|
||||
this.f4605a = 1;
|
||||
if (flowCollector.emit(this.f4607c, 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,37 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
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 kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class k extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4608a;
|
||||
|
||||
/* JADX WARN: Type inference failed for: r1v1, types: [kotlin.coroutines.Continuation, kotlin.coroutines.jvm.internal.SuspendLambda, com.adif.elcanomovil.repositories.avisa.k] */
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
?? suspendLambda = new SuspendLambda(2, continuation);
|
||||
suspendLambda.f4608a = obj;
|
||||
return suspendLambda;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((k) create((List) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
return FlowKt.flow(new j((List) this.f4608a, null));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
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.FlowKt;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class l extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultAvisaStationsRepository f4609a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4610b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public l(DefaultAvisaStationsRepository defaultAvisaStationsRepository, String str, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4609a = defaultAvisaStationsRepository;
|
||||
this.f4610b = str;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new l(this.f4609a, this.f4610b, 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) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
DefaultAvisaStationsRepository defaultAvisaStationsRepository = this.f4609a;
|
||||
String str = this.f4610b;
|
||||
return FlowKt.flow(new DefaultAvisaStationsRepository$fetchStationCategories$4$invokeSuspend$$inlined$networkBoundResource$1(null, defaultAvisaStationsRepository, str, defaultAvisaStationsRepository, str, defaultAvisaStationsRepository, str, defaultAvisaStationsRepository, str));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceNotificationType;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidencePicture;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.IncidenceService;
|
||||
import com.adif.elcanomovil.serviceNetworking.avisa.model.CreateIncidenceRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
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: classes.dex */
|
||||
public final class m extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4611a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultIncidenceRepository f4612b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4613c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4614d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ IncidenceNotificationType f4615e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4616f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final /* synthetic */ List f4617g;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public m(DefaultIncidenceRepository defaultIncidenceRepository, String str, String str2, IncidenceNotificationType incidenceNotificationType, String str3, List list, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4612b = defaultIncidenceRepository;
|
||||
this.f4613c = str;
|
||||
this.f4614d = str2;
|
||||
this.f4615e = incidenceNotificationType;
|
||||
this.f4616f = str3;
|
||||
this.f4617g = list;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new m(this.f4612b, this.f4613c, this.f4614d, this.f4615e, this.f4616f, this.f4617g, 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) {
|
||||
IncidenceService incidenceService;
|
||||
String str;
|
||||
int collectionSizeOrDefault;
|
||||
IncidencePictureMapper incidencePictureMapper;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4611a;
|
||||
if (i != 0) {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
return obj;
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
DefaultIncidenceRepository defaultIncidenceRepository = this.f4612b;
|
||||
incidenceService = defaultIncidenceRepository.incidenceService;
|
||||
str = defaultIncidenceRepository.header;
|
||||
String valueOf = String.valueOf(this.f4615e.getValue());
|
||||
List<IncidencePicture> list = this.f4617g;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
for (IncidencePicture incidencePicture : list) {
|
||||
incidencePictureMapper = defaultIncidenceRepository.incidencePictureMapper;
|
||||
arrayList.add(incidencePictureMapper.domainToRequest(incidencePicture));
|
||||
}
|
||||
CreateIncidenceRequest createIncidenceRequest = new CreateIncidenceRequest(this.f4613c, this.f4614d, valueOf, this.f4616f, arrayList);
|
||||
this.f4611a = 1;
|
||||
Object createIncidence = incidenceService.createIncidence(str, createIncidenceRequest, this);
|
||||
return createIncidence == coroutine_suspended ? coroutine_suspended : createIncidence;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceNotificationType;
|
||||
import java.util.List;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class n extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4618a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4619b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultIncidenceRepository f4620c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4621d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4622e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final /* synthetic */ IncidenceNotificationType f4623f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4624g;
|
||||
public final /* synthetic */ List h;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public n(DefaultIncidenceRepository defaultIncidenceRepository, String str, String str2, IncidenceNotificationType incidenceNotificationType, String str3, List list, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4620c = defaultIncidenceRepository;
|
||||
this.f4621d = str;
|
||||
this.f4622e = str2;
|
||||
this.f4623f = incidenceNotificationType;
|
||||
this.f4624g = str3;
|
||||
this.h = list;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
n nVar = new n(this.f4620c, this.f4621d, this.f4622e, this.f4623f, this.f4624g, this.h, continuation);
|
||||
nVar.f4619b = obj;
|
||||
return nVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((n) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't wrap try/catch for region: R(5:(1:(1:(3:8|9|10)(2:12|13))(1:14))(1:22)|15|16|9|10) */
|
||||
/* JADX WARN: Can't wrap try/catch for region: R(8:1|(1:(2:(5:(1:(1:(3:8|9|10)(2:12|13))(1:14))(1:22)|15|16|9|10)(6:23|24|25|26|27|(4:29|(2:31|21)|9|10)(1:32))|19)(1:36))(1:46)|37|38|39|40|(3:42|27|(0)(0))|21) */
|
||||
/* JADX WARN: Code restructure failed: missing block: B:18:0x0031, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:20:0x00da, code lost:
|
||||
|
||||
if (r4.emit(r0, r17) == r2) goto L45;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:33:0x00c7, code lost:
|
||||
|
||||
if (r6.emit(r0, r17) == r2) goto L45;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:44:0x00ca, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:45:0x00cb, code lost:
|
||||
|
||||
r4 = r7;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:47:0x0067, code lost:
|
||||
|
||||
if (r0.emit(r9, r17) == r2) goto L45;
|
||||
*/
|
||||
/* JADX WARN: Removed duplicated region for block: B:29:0x009f A[Catch: all -> 0x0045, TryCatch #1 {all -> 0x0045, blocks: (B:25:0x003f, B:27:0x0097, B:29:0x009f, B:32:0x00b0), top: B:24:0x003f }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:32:0x00b0 A[Catch: all -> 0x0045, TRY_LEAVE, TryCatch #1 {all -> 0x0045, blocks: (B:25:0x003f, B:27:0x0097, B:29:0x009f, B:32:0x00b0), top: B:24:0x003f }] */
|
||||
@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 r18) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 224
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.avisa.n.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
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.FlowKt;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class o extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultIncidenceRepository f4625a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ int f4626b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public o(DefaultIncidenceRepository defaultIncidenceRepository, int i, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4625a = defaultIncidenceRepository;
|
||||
this.f4626b = i;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new o(this.f4625a, this.f4626b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((o) 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);
|
||||
DefaultIncidenceRepository defaultIncidenceRepository = this.f4625a;
|
||||
int i = this.f4626b;
|
||||
return FlowKt.flow(new DefaultIncidenceRepository$incidenceDetails$2$invokeSuspend$$inlined$networkBoundResource$default$1(null, defaultIncidenceRepository, i, defaultIncidenceRepository, defaultIncidenceRepository, i));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
import com.adif.elcanomovil.serviceStorage.model.avisa.IncidenceStationEntity;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class p extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4627a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4628b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ List f4629c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultIncidenceRepository f4630d;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public p(List list, DefaultIncidenceRepository defaultIncidenceRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4629c = list;
|
||||
this.f4630d = defaultIncidenceRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
p pVar = new p(this.f4629c, this.f4630d, continuation);
|
||||
pVar.f4628b = obj;
|
||||
return pVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((p) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
int collectionSizeOrDefault;
|
||||
IncidenceMapper incidenceMapper;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4627a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
FlowCollector flowCollector = (FlowCollector) this.f4628b;
|
||||
List<IncidenceStationEntity> list = this.f4629c;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
for (IncidenceStationEntity incidenceStationEntity : list) {
|
||||
incidenceMapper = this.f4630d.incidenceMapper;
|
||||
arrayList.add(incidenceMapper.entityToDomainIncidenceStation(incidenceStationEntity));
|
||||
}
|
||||
this.f4627a = 1;
|
||||
if (flowCollector.emit(arrayList, 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,45 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
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 kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class q extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4631a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultIncidenceRepository f4632b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public q(DefaultIncidenceRepository defaultIncidenceRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4632b = defaultIncidenceRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
q qVar = new q(this.f4632b, continuation);
|
||||
qVar.f4631a = obj;
|
||||
return qVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((q) create((List) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
return FlowKt.flow(new p((List) this.f4631a, this.f4632b, null));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.adif.elcanomovil.repositories.avisa;
|
||||
|
||||
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.FlowKt;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class r extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultIncidenceRepository f4633a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public r(DefaultIncidenceRepository defaultIncidenceRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4633a = defaultIncidenceRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new r(this.f4633a, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((r) 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);
|
||||
DefaultIncidenceRepository defaultIncidenceRepository = this.f4633a;
|
||||
return FlowKt.flow(new DefaultIncidenceRepository$incidences$2$invokeSuspend$$inlined$networkBoundResource$default$1(null, defaultIncidenceRepository, defaultIncidenceRepository, defaultIncidenceRepository));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user