Primer paso de la investigacion. Se aportan el .apk, las carpetas con el apk extraido y el apk descompilado. El archivo API_DOCUMENTATION.md es un archivo donde se anotaran los descubrimientos del funcionamiento de la API, y los .py son scripts para probar la funcionalidad de la API con los métodos que vayamos encontrando. Finalmente, los archivos .js son scripts de Frida para extraer informacion de la APP durante la ejecucion.
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import com.adif.elcanomovil.uiStations.entities.ActivitiesTabViewData;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b6\u0018\u00002\u00020\u0001:\u0003\u0003\u0004\u0005B\u0007\b\u0004¢\u0006\u0002\u0010\u0002\u0082\u0001\u0003\u0006\u0007\b¨\u0006\t"}, d2 = {"Lcom/adif/elcanomovil/uiStations/main/ActivitiesTabViewDataWrapper;", "", "()V", "Data", "Error", "Loading", "Lcom/adif/elcanomovil/uiStations/main/ActivitiesTabViewDataWrapper$Data;", "Lcom/adif/elcanomovil/uiStations/main/ActivitiesTabViewDataWrapper$Error;", "Lcom/adif/elcanomovil/uiStations/main/ActivitiesTabViewDataWrapper$Loading;", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public abstract class ActivitiesTabViewDataWrapper {
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u00002\u00020\u0001B\u000f\u0012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0003¢\u0006\u0002\u0010\u0004R\u0013\u0010\u0002\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"Lcom/adif/elcanomovil/uiStations/main/ActivitiesTabViewDataWrapper$Data;", "Lcom/adif/elcanomovil/uiStations/main/ActivitiesTabViewDataWrapper;", "results", "Lcom/adif/elcanomovil/uiStations/entities/ActivitiesTabViewData;", "(Lcom/adif/elcanomovil/uiStations/entities/ActivitiesTabViewData;)V", "getResults", "()Lcom/adif/elcanomovil/uiStations/entities/ActivitiesTabViewData;", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class Data extends ActivitiesTabViewDataWrapper {
|
||||
private final ActivitiesTabViewData results;
|
||||
|
||||
public Data(ActivitiesTabViewData activitiesTabViewData) {
|
||||
super(null);
|
||||
this.results = activitiesTabViewData;
|
||||
}
|
||||
|
||||
public final ActivitiesTabViewData getResults() {
|
||||
return this.results;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\bÆ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002¨\u0006\u0003"}, d2 = {"Lcom/adif/elcanomovil/uiStations/main/ActivitiesTabViewDataWrapper$Error;", "Lcom/adif/elcanomovil/uiStations/main/ActivitiesTabViewDataWrapper;", "()V", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class Error extends ActivitiesTabViewDataWrapper {
|
||||
public static final Error INSTANCE = new Error();
|
||||
|
||||
private Error() {
|
||||
super(null);
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\bÆ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002¨\u0006\u0003"}, d2 = {"Lcom/adif/elcanomovil/uiStations/main/ActivitiesTabViewDataWrapper$Loading;", "Lcom/adif/elcanomovil/uiStations/main/ActivitiesTabViewDataWrapper;", "()V", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class Loading extends ActivitiesTabViewDataWrapper {
|
||||
public static final Loading INSTANCE = new Loading();
|
||||
|
||||
private Loading() {
|
||||
super(null);
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ ActivitiesTabViewDataWrapper(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
private ActivitiesTabViewDataWrapper() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import com.adif.elcanomovil.uiStations.entities.CommercialTabViewData;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b6\u0018\u00002\u00020\u0001:\u0003\u0003\u0004\u0005B\u0007\b\u0004¢\u0006\u0002\u0010\u0002\u0082\u0001\u0003\u0006\u0007\b¨\u0006\t"}, d2 = {"Lcom/adif/elcanomovil/uiStations/main/CommercialTabViewDataWrapper;", "", "()V", "Data", "Error", "Loading", "Lcom/adif/elcanomovil/uiStations/main/CommercialTabViewDataWrapper$Data;", "Lcom/adif/elcanomovil/uiStations/main/CommercialTabViewDataWrapper$Error;", "Lcom/adif/elcanomovil/uiStations/main/CommercialTabViewDataWrapper$Loading;", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public abstract class CommercialTabViewDataWrapper {
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u00002\u00020\u0001B\u000f\u0012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0003¢\u0006\u0002\u0010\u0004R\u0013\u0010\u0002\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"Lcom/adif/elcanomovil/uiStations/main/CommercialTabViewDataWrapper$Data;", "Lcom/adif/elcanomovil/uiStations/main/CommercialTabViewDataWrapper;", "results", "Lcom/adif/elcanomovil/uiStations/entities/CommercialTabViewData;", "(Lcom/adif/elcanomovil/uiStations/entities/CommercialTabViewData;)V", "getResults", "()Lcom/adif/elcanomovil/uiStations/entities/CommercialTabViewData;", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class Data extends CommercialTabViewDataWrapper {
|
||||
private final CommercialTabViewData results;
|
||||
|
||||
public Data(CommercialTabViewData commercialTabViewData) {
|
||||
super(null);
|
||||
this.results = commercialTabViewData;
|
||||
}
|
||||
|
||||
public final CommercialTabViewData getResults() {
|
||||
return this.results;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\bÆ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002¨\u0006\u0003"}, d2 = {"Lcom/adif/elcanomovil/uiStations/main/CommercialTabViewDataWrapper$Error;", "Lcom/adif/elcanomovil/uiStations/main/CommercialTabViewDataWrapper;", "()V", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class Error extends CommercialTabViewDataWrapper {
|
||||
public static final Error INSTANCE = new Error();
|
||||
|
||||
private Error() {
|
||||
super(null);
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\bÆ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002¨\u0006\u0003"}, d2 = {"Lcom/adif/elcanomovil/uiStations/main/CommercialTabViewDataWrapper$Loading;", "Lcom/adif/elcanomovil/uiStations/main/CommercialTabViewDataWrapper;", "()V", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class Loading extends CommercialTabViewDataWrapper {
|
||||
public static final Loading INSTANCE = new Loading();
|
||||
|
||||
private Loading() {
|
||||
super(null);
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ CommercialTabViewDataWrapper(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
private CommercialTabViewDataWrapper() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.ContextWrapper;
|
||||
import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import androidx.fragment.app.K;
|
||||
import androidx.lifecycle.y0;
|
||||
import dagger.hilt.android.flags.FragmentGetContextFix;
|
||||
import dagger.hilt.android.internal.lifecycle.DefaultViewModelFactories;
|
||||
import dagger.hilt.android.internal.managers.FragmentComponentManager;
|
||||
import dagger.hilt.internal.GeneratedComponentManagerHolder;
|
||||
import dagger.hilt.internal.Preconditions;
|
||||
import dagger.hilt.internal.UnsafeCasts;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public abstract class Hilt_StationsFragment extends K implements GeneratedComponentManagerHolder {
|
||||
private ContextWrapper componentContext;
|
||||
private volatile FragmentComponentManager componentManager;
|
||||
private final Object componentManagerLock;
|
||||
private boolean disableGetContextFix;
|
||||
private boolean injected;
|
||||
|
||||
public Hilt_StationsFragment() {
|
||||
this.componentManagerLock = new Object();
|
||||
this.injected = false;
|
||||
}
|
||||
|
||||
private void initializeComponentContext() {
|
||||
if (this.componentContext == null) {
|
||||
this.componentContext = FragmentComponentManager.createContextWrapper(super.getContext(), this);
|
||||
this.disableGetContextFix = FragmentGetContextFix.isFragmentGetContextFixDisabled(super.getContext());
|
||||
}
|
||||
}
|
||||
|
||||
public FragmentComponentManager createComponentManager() {
|
||||
return new FragmentComponentManager(this);
|
||||
}
|
||||
|
||||
@Override // dagger.hilt.internal.GeneratedComponentManager
|
||||
public final Object generatedComponent() {
|
||||
return componentManager().generatedComponent();
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public Context getContext() {
|
||||
if (super.getContext() == null && !this.disableGetContextFix) {
|
||||
return null;
|
||||
}
|
||||
initializeComponentContext();
|
||||
return this.componentContext;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K, androidx.lifecycle.InterfaceC0200v
|
||||
public y0 getDefaultViewModelProviderFactory() {
|
||||
return DefaultViewModelFactories.getFragmentFactory(this, super.getDefaultViewModelProviderFactory());
|
||||
}
|
||||
|
||||
public void inject() {
|
||||
if (this.injected) {
|
||||
return;
|
||||
}
|
||||
this.injected = true;
|
||||
((StationsFragment_GeneratedInjector) generatedComponent()).injectStationsFragment((StationsFragment) UnsafeCasts.unsafeCast(this));
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onAttach(Context context) {
|
||||
super.onAttach(context);
|
||||
initializeComponentContext();
|
||||
inject();
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public LayoutInflater onGetLayoutInflater(Bundle bundle) {
|
||||
LayoutInflater onGetLayoutInflater = super.onGetLayoutInflater(bundle);
|
||||
return onGetLayoutInflater.cloneInContext(FragmentComponentManager.createContextWrapper(onGetLayoutInflater, this));
|
||||
}
|
||||
|
||||
@Override // dagger.hilt.internal.GeneratedComponentManagerHolder
|
||||
public final FragmentComponentManager componentManager() {
|
||||
if (this.componentManager == null) {
|
||||
synchronized (this.componentManagerLock) {
|
||||
try {
|
||||
if (this.componentManager == null) {
|
||||
this.componentManager = createComponentManager();
|
||||
}
|
||||
} finally {
|
||||
}
|
||||
}
|
||||
}
|
||||
return this.componentManager;
|
||||
}
|
||||
|
||||
public Hilt_StationsFragment(int i) {
|
||||
super(i);
|
||||
this.componentManagerLock = new Object();
|
||||
this.injected = false;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onAttach(Activity activity) {
|
||||
super.onAttach(activity);
|
||||
ContextWrapper contextWrapper = this.componentContext;
|
||||
Preconditions.checkState(contextWrapper == null || FragmentComponentManager.findActivity(contextWrapper) == activity, "onAttach called multiple times with different Context! Hilt Fragments should not be retained.", new Object[0]);
|
||||
initializeComponentContext();
|
||||
inject();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.ContextWrapper;
|
||||
import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import androidx.fragment.app.K;
|
||||
import androidx.lifecycle.y0;
|
||||
import dagger.hilt.android.flags.FragmentGetContextFix;
|
||||
import dagger.hilt.android.internal.lifecycle.DefaultViewModelFactories;
|
||||
import dagger.hilt.android.internal.managers.FragmentComponentManager;
|
||||
import dagger.hilt.internal.GeneratedComponentManagerHolder;
|
||||
import dagger.hilt.internal.Preconditions;
|
||||
import dagger.hilt.internal.UnsafeCasts;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public abstract class Hilt_StationsPageActivitiesFragment extends K implements GeneratedComponentManagerHolder {
|
||||
private ContextWrapper componentContext;
|
||||
private volatile FragmentComponentManager componentManager;
|
||||
private final Object componentManagerLock;
|
||||
private boolean disableGetContextFix;
|
||||
private boolean injected;
|
||||
|
||||
public Hilt_StationsPageActivitiesFragment() {
|
||||
this.componentManagerLock = new Object();
|
||||
this.injected = false;
|
||||
}
|
||||
|
||||
private void initializeComponentContext() {
|
||||
if (this.componentContext == null) {
|
||||
this.componentContext = FragmentComponentManager.createContextWrapper(super.getContext(), this);
|
||||
this.disableGetContextFix = FragmentGetContextFix.isFragmentGetContextFixDisabled(super.getContext());
|
||||
}
|
||||
}
|
||||
|
||||
public FragmentComponentManager createComponentManager() {
|
||||
return new FragmentComponentManager(this);
|
||||
}
|
||||
|
||||
@Override // dagger.hilt.internal.GeneratedComponentManager
|
||||
public final Object generatedComponent() {
|
||||
return componentManager().generatedComponent();
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public Context getContext() {
|
||||
if (super.getContext() == null && !this.disableGetContextFix) {
|
||||
return null;
|
||||
}
|
||||
initializeComponentContext();
|
||||
return this.componentContext;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K, androidx.lifecycle.InterfaceC0200v
|
||||
public y0 getDefaultViewModelProviderFactory() {
|
||||
return DefaultViewModelFactories.getFragmentFactory(this, super.getDefaultViewModelProviderFactory());
|
||||
}
|
||||
|
||||
public void inject() {
|
||||
if (this.injected) {
|
||||
return;
|
||||
}
|
||||
this.injected = true;
|
||||
((StationsPageActivitiesFragment_GeneratedInjector) generatedComponent()).injectStationsPageActivitiesFragment((StationsPageActivitiesFragment) UnsafeCasts.unsafeCast(this));
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onAttach(Context context) {
|
||||
super.onAttach(context);
|
||||
initializeComponentContext();
|
||||
inject();
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public LayoutInflater onGetLayoutInflater(Bundle bundle) {
|
||||
LayoutInflater onGetLayoutInflater = super.onGetLayoutInflater(bundle);
|
||||
return onGetLayoutInflater.cloneInContext(FragmentComponentManager.createContextWrapper(onGetLayoutInflater, this));
|
||||
}
|
||||
|
||||
@Override // dagger.hilt.internal.GeneratedComponentManagerHolder
|
||||
public final FragmentComponentManager componentManager() {
|
||||
if (this.componentManager == null) {
|
||||
synchronized (this.componentManagerLock) {
|
||||
try {
|
||||
if (this.componentManager == null) {
|
||||
this.componentManager = createComponentManager();
|
||||
}
|
||||
} finally {
|
||||
}
|
||||
}
|
||||
}
|
||||
return this.componentManager;
|
||||
}
|
||||
|
||||
public Hilt_StationsPageActivitiesFragment(int i) {
|
||||
super(i);
|
||||
this.componentManagerLock = new Object();
|
||||
this.injected = false;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onAttach(Activity activity) {
|
||||
super.onAttach(activity);
|
||||
ContextWrapper contextWrapper = this.componentContext;
|
||||
Preconditions.checkState(contextWrapper == null || FragmentComponentManager.findActivity(contextWrapper) == activity, "onAttach called multiple times with different Context! Hilt Fragments should not be retained.", new Object[0]);
|
||||
initializeComponentContext();
|
||||
inject();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.ContextWrapper;
|
||||
import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import androidx.fragment.app.K;
|
||||
import androidx.lifecycle.y0;
|
||||
import dagger.hilt.android.flags.FragmentGetContextFix;
|
||||
import dagger.hilt.android.internal.lifecycle.DefaultViewModelFactories;
|
||||
import dagger.hilt.android.internal.managers.FragmentComponentManager;
|
||||
import dagger.hilt.internal.GeneratedComponentManagerHolder;
|
||||
import dagger.hilt.internal.Preconditions;
|
||||
import dagger.hilt.internal.UnsafeCasts;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public abstract class Hilt_StationsPageCommercialFragment extends K implements GeneratedComponentManagerHolder {
|
||||
private ContextWrapper componentContext;
|
||||
private volatile FragmentComponentManager componentManager;
|
||||
private final Object componentManagerLock;
|
||||
private boolean disableGetContextFix;
|
||||
private boolean injected;
|
||||
|
||||
public Hilt_StationsPageCommercialFragment() {
|
||||
this.componentManagerLock = new Object();
|
||||
this.injected = false;
|
||||
}
|
||||
|
||||
private void initializeComponentContext() {
|
||||
if (this.componentContext == null) {
|
||||
this.componentContext = FragmentComponentManager.createContextWrapper(super.getContext(), this);
|
||||
this.disableGetContextFix = FragmentGetContextFix.isFragmentGetContextFixDisabled(super.getContext());
|
||||
}
|
||||
}
|
||||
|
||||
public FragmentComponentManager createComponentManager() {
|
||||
return new FragmentComponentManager(this);
|
||||
}
|
||||
|
||||
@Override // dagger.hilt.internal.GeneratedComponentManager
|
||||
public final Object generatedComponent() {
|
||||
return componentManager().generatedComponent();
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public Context getContext() {
|
||||
if (super.getContext() == null && !this.disableGetContextFix) {
|
||||
return null;
|
||||
}
|
||||
initializeComponentContext();
|
||||
return this.componentContext;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K, androidx.lifecycle.InterfaceC0200v
|
||||
public y0 getDefaultViewModelProviderFactory() {
|
||||
return DefaultViewModelFactories.getFragmentFactory(this, super.getDefaultViewModelProviderFactory());
|
||||
}
|
||||
|
||||
public void inject() {
|
||||
if (this.injected) {
|
||||
return;
|
||||
}
|
||||
this.injected = true;
|
||||
((StationsPageCommercialFragment_GeneratedInjector) generatedComponent()).injectStationsPageCommercialFragment((StationsPageCommercialFragment) UnsafeCasts.unsafeCast(this));
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onAttach(Context context) {
|
||||
super.onAttach(context);
|
||||
initializeComponentContext();
|
||||
inject();
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public LayoutInflater onGetLayoutInflater(Bundle bundle) {
|
||||
LayoutInflater onGetLayoutInflater = super.onGetLayoutInflater(bundle);
|
||||
return onGetLayoutInflater.cloneInContext(FragmentComponentManager.createContextWrapper(onGetLayoutInflater, this));
|
||||
}
|
||||
|
||||
@Override // dagger.hilt.internal.GeneratedComponentManagerHolder
|
||||
public final FragmentComponentManager componentManager() {
|
||||
if (this.componentManager == null) {
|
||||
synchronized (this.componentManagerLock) {
|
||||
try {
|
||||
if (this.componentManager == null) {
|
||||
this.componentManager = createComponentManager();
|
||||
}
|
||||
} finally {
|
||||
}
|
||||
}
|
||||
}
|
||||
return this.componentManager;
|
||||
}
|
||||
|
||||
public Hilt_StationsPageCommercialFragment(int i) {
|
||||
super(i);
|
||||
this.componentManagerLock = new Object();
|
||||
this.injected = false;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onAttach(Activity activity) {
|
||||
super.onAttach(activity);
|
||||
ContextWrapper contextWrapper = this.componentContext;
|
||||
Preconditions.checkState(contextWrapper == null || FragmentComponentManager.findActivity(contextWrapper) == activity, "onAttach called multiple times with different Context! Hilt Fragments should not be retained.", new Object[0]);
|
||||
initializeComponentContext();
|
||||
inject();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.ContextWrapper;
|
||||
import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import androidx.fragment.app.K;
|
||||
import androidx.lifecycle.y0;
|
||||
import dagger.hilt.android.flags.FragmentGetContextFix;
|
||||
import dagger.hilt.android.internal.lifecycle.DefaultViewModelFactories;
|
||||
import dagger.hilt.android.internal.managers.FragmentComponentManager;
|
||||
import dagger.hilt.internal.GeneratedComponentManagerHolder;
|
||||
import dagger.hilt.internal.Preconditions;
|
||||
import dagger.hilt.internal.UnsafeCasts;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public abstract class Hilt_StationsPageServicesFragment extends K implements GeneratedComponentManagerHolder {
|
||||
private ContextWrapper componentContext;
|
||||
private volatile FragmentComponentManager componentManager;
|
||||
private final Object componentManagerLock;
|
||||
private boolean disableGetContextFix;
|
||||
private boolean injected;
|
||||
|
||||
public Hilt_StationsPageServicesFragment() {
|
||||
this.componentManagerLock = new Object();
|
||||
this.injected = false;
|
||||
}
|
||||
|
||||
private void initializeComponentContext() {
|
||||
if (this.componentContext == null) {
|
||||
this.componentContext = FragmentComponentManager.createContextWrapper(super.getContext(), this);
|
||||
this.disableGetContextFix = FragmentGetContextFix.isFragmentGetContextFixDisabled(super.getContext());
|
||||
}
|
||||
}
|
||||
|
||||
public FragmentComponentManager createComponentManager() {
|
||||
return new FragmentComponentManager(this);
|
||||
}
|
||||
|
||||
@Override // dagger.hilt.internal.GeneratedComponentManager
|
||||
public final Object generatedComponent() {
|
||||
return componentManager().generatedComponent();
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public Context getContext() {
|
||||
if (super.getContext() == null && !this.disableGetContextFix) {
|
||||
return null;
|
||||
}
|
||||
initializeComponentContext();
|
||||
return this.componentContext;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K, androidx.lifecycle.InterfaceC0200v
|
||||
public y0 getDefaultViewModelProviderFactory() {
|
||||
return DefaultViewModelFactories.getFragmentFactory(this, super.getDefaultViewModelProviderFactory());
|
||||
}
|
||||
|
||||
public void inject() {
|
||||
if (this.injected) {
|
||||
return;
|
||||
}
|
||||
this.injected = true;
|
||||
((StationsPageServicesFragment_GeneratedInjector) generatedComponent()).injectStationsPageServicesFragment((StationsPageServicesFragment) UnsafeCasts.unsafeCast(this));
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onAttach(Context context) {
|
||||
super.onAttach(context);
|
||||
initializeComponentContext();
|
||||
inject();
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public LayoutInflater onGetLayoutInflater(Bundle bundle) {
|
||||
LayoutInflater onGetLayoutInflater = super.onGetLayoutInflater(bundle);
|
||||
return onGetLayoutInflater.cloneInContext(FragmentComponentManager.createContextWrapper(onGetLayoutInflater, this));
|
||||
}
|
||||
|
||||
@Override // dagger.hilt.internal.GeneratedComponentManagerHolder
|
||||
public final FragmentComponentManager componentManager() {
|
||||
if (this.componentManager == null) {
|
||||
synchronized (this.componentManagerLock) {
|
||||
try {
|
||||
if (this.componentManager == null) {
|
||||
this.componentManager = createComponentManager();
|
||||
}
|
||||
} finally {
|
||||
}
|
||||
}
|
||||
}
|
||||
return this.componentManager;
|
||||
}
|
||||
|
||||
public Hilt_StationsPageServicesFragment(int i) {
|
||||
super(i);
|
||||
this.componentManagerLock = new Object();
|
||||
this.injected = false;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onAttach(Activity activity) {
|
||||
super.onAttach(activity);
|
||||
ContextWrapper contextWrapper = this.componentContext;
|
||||
Preconditions.checkState(contextWrapper == null || FragmentComponentManager.findActivity(contextWrapper) == activity, "onAttach called multiple times with different Context! Hilt Fragments should not be retained.", new Object[0]);
|
||||
initializeComponentContext();
|
||||
inject();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import android.R;
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.FrameLayout;
|
||||
import com.google.android.gms.maps.SupportMapFragment;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public class MyCustomMapFragment extends SupportMapFragment {
|
||||
private OnTouchListener mListener;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public interface OnTouchListener {
|
||||
void onTouch();
|
||||
}
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public class TouchableWrapper extends FrameLayout {
|
||||
public TouchableWrapper(Context context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
public boolean dispatchTouchEvent(MotionEvent motionEvent) {
|
||||
int action = motionEvent.getAction();
|
||||
if (action == 0 || action == 1) {
|
||||
MyCustomMapFragment.this.mListener.onTouch();
|
||||
}
|
||||
return super.dispatchTouchEvent(motionEvent);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.maps.SupportMapFragment, androidx.fragment.app.K
|
||||
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||||
View onCreateView = super.onCreateView(layoutInflater, viewGroup, bundle);
|
||||
TouchableWrapper touchableWrapper = new TouchableWrapper(getActivity());
|
||||
touchableWrapper.setBackgroundColor(getResources().getColor(R.color.transparent, null));
|
||||
((ViewGroup) onCreateView).addView(touchableWrapper, new ViewGroup.LayoutParams(-1, -1));
|
||||
return onCreateView;
|
||||
}
|
||||
|
||||
public void setListener(OnTouchListener onTouchListener) {
|
||||
this.mListener = onTouchListener;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import com.adif.elcanomovil.uiStations.entities.ServicesTabViewData;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b6\u0018\u00002\u00020\u0001:\u0003\u0003\u0004\u0005B\u0007\b\u0004¢\u0006\u0002\u0010\u0002\u0082\u0001\u0003\u0006\u0007\b¨\u0006\t"}, d2 = {"Lcom/adif/elcanomovil/uiStations/main/OneStationViewData;", "", "()V", "Data", "Error", "Loading", "Lcom/adif/elcanomovil/uiStations/main/OneStationViewData$Data;", "Lcom/adif/elcanomovil/uiStations/main/OneStationViewData$Error;", "Lcom/adif/elcanomovil/uiStations/main/OneStationViewData$Loading;", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public abstract class OneStationViewData {
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u00002\u00020\u0001B\u000f\u0012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0003¢\u0006\u0002\u0010\u0004R\u0013\u0010\u0002\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"Lcom/adif/elcanomovil/uiStations/main/OneStationViewData$Data;", "Lcom/adif/elcanomovil/uiStations/main/OneStationViewData;", "results", "Lcom/adif/elcanomovil/uiStations/entities/ServicesTabViewData;", "(Lcom/adif/elcanomovil/uiStations/entities/ServicesTabViewData;)V", "getResults", "()Lcom/adif/elcanomovil/uiStations/entities/ServicesTabViewData;", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class Data extends OneStationViewData {
|
||||
private final ServicesTabViewData results;
|
||||
|
||||
public Data(ServicesTabViewData servicesTabViewData) {
|
||||
super(null);
|
||||
this.results = servicesTabViewData;
|
||||
}
|
||||
|
||||
public final ServicesTabViewData getResults() {
|
||||
return this.results;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\bÆ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002¨\u0006\u0003"}, d2 = {"Lcom/adif/elcanomovil/uiStations/main/OneStationViewData$Error;", "Lcom/adif/elcanomovil/uiStations/main/OneStationViewData;", "()V", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class Error extends OneStationViewData {
|
||||
public static final Error INSTANCE = new Error();
|
||||
|
||||
private Error() {
|
||||
super(null);
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\bÆ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002¨\u0006\u0003"}, d2 = {"Lcom/adif/elcanomovil/uiStations/main/OneStationViewData$Loading;", "Lcom/adif/elcanomovil/uiStations/main/OneStationViewData;", "()V", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class Loading extends OneStationViewData {
|
||||
public static final Loading INSTANCE = new Loading();
|
||||
|
||||
private Loading() {
|
||||
super(null);
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ OneStationViewData(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
private OneStationViewData() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,206 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import androidx.fragment.app.K;
|
||||
import androidx.lifecycle.C0;
|
||||
import androidx.lifecycle.C0191l;
|
||||
import androidx.lifecycle.D0;
|
||||
import androidx.lifecycle.InterfaceC0200v;
|
||||
import androidx.lifecycle.J;
|
||||
import androidx.lifecycle.y0;
|
||||
import b1.InterfaceC0266a;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.NavArguments;
|
||||
import com.adif.elcanomovil.commonNavGraph.extensions.NavigationExtensionsKt;
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.NavigationHandler;
|
||||
import com.adif.elcanomovil.commonViews.extensions.LayoutTabKt;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
import com.adif.elcanomovil.uiStations.adapters.StationsViewPagerAdapter;
|
||||
import com.adif.elcanomovil.uiStations.databinding.FragmentStationsBinding;
|
||||
import com.google.android.material.tabs.TabLayout;
|
||||
import dagger.hilt.android.AndroidEntryPoint;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.LazyKt;
|
||||
import kotlin.LazyThreadSafetyMode;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import l0.C0435a;
|
||||
|
||||
@Metadata(d1 = {"\u0000B\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u0017\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004H\u0002¢\u0006\u0004\b\u0007\u0010\bJ\u0017\u0010\t\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004H\u0002¢\u0006\u0004\b\t\u0010\bJ\u0017\u0010\n\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004H\u0002¢\u0006\u0004\b\n\u0010\bJ\u0017\u0010\r\u001a\u00020\u00062\u0006\u0010\f\u001a\u00020\u000bH\u0002¢\u0006\u0004\b\r\u0010\u000eJ\u0019\u0010\u0011\u001a\u00020\u00062\b\u0010\u0010\u001a\u0004\u0018\u00010\u000fH\u0016¢\u0006\u0004\b\u0011\u0010\u0012J!\u0010\u0015\u001a\u00020\u00062\u0006\u0010\u0014\u001a\u00020\u00132\b\u0010\u0010\u001a\u0004\u0018\u00010\u000fH\u0016¢\u0006\u0004\b\u0015\u0010\u0016R\u001b\u0010\u001c\u001a\u00020\u00178BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u0018\u0010\u0019\u001a\u0004\b\u001a\u0010\u001bR\u0016\u0010\u001e\u001a\u00020\u001d8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\u001e\u0010\u001f¨\u0006 "}, d2 = {"Lcom/adif/elcanomovil/uiStations/main/StationsFragment;", "Landroidx/fragment/app/K;", "<init>", "()V", "Lcom/adif/elcanomovil/uiStations/databinding/FragmentStationsBinding;", "binding", "", "configureTabLayout", "(Lcom/adif/elcanomovil/uiStations/databinding/FragmentStationsBinding;)V", "configureViewObservers", "configureViewListeners", "", "station", "handleSelectedStation", "(Ljava/lang/String;)V", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "(Landroid/os/Bundle;)V", "Landroid/view/View;", "view", "onViewCreated", "(Landroid/view/View;Landroid/os/Bundle;)V", "Lcom/adif/elcanomovil/uiStations/main/StationsViewModel;", "viewModel$delegate", "Lkotlin/Lazy;", "getViewModel", "()Lcom/adif/elcanomovil/uiStations/main/StationsViewModel;", "viewModel", "Lcom/adif/elcanomovil/uiStations/adapters/StationsViewPagerAdapter;", "adapter", "Lcom/adif/elcanomovil/uiStations/adapters/StationsViewPagerAdapter;", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@AndroidEntryPoint
|
||||
@SourceDebugExtension({"SMAP\nStationsFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 StationsFragment.kt\ncom/adif/elcanomovil/uiStations/main/StationsFragment\n+ 2 FragmentViewModelLazy.kt\nandroidx/fragment/app/FragmentViewModelLazyKt\n*L\n1#1,115:1\n106#2,15:116\n*S KotlinDebug\n*F\n+ 1 StationsFragment.kt\ncom/adif/elcanomovil/uiStations/main/StationsFragment\n*L\n23#1:116,15\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsFragment extends Hilt_StationsFragment {
|
||||
private StationsViewPagerAdapter adapter;
|
||||
|
||||
/* renamed from: viewModel$delegate, reason: from kotlin metadata */
|
||||
private final Lazy viewModel;
|
||||
|
||||
public StationsFragment() {
|
||||
super(R.layout.fragment_stations);
|
||||
final Function0<K> function0 = new Function0<K>() { // from class: com.adif.elcanomovil.uiStations.main.StationsFragment$special$$inlined$viewModels$default$1
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final K invoke() {
|
||||
return K.this;
|
||||
}
|
||||
};
|
||||
final Lazy lazy = LazyKt.lazy(LazyThreadSafetyMode.NONE, (Function0) new Function0<D0>() { // from class: com.adif.elcanomovil.uiStations.main.StationsFragment$special$$inlined$viewModels$default$2
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final D0 invoke() {
|
||||
return (D0) Function0.this.invoke();
|
||||
}
|
||||
});
|
||||
final Function0 function02 = null;
|
||||
this.viewModel = m3.d.n(this, Reflection.getOrCreateKotlinClass(StationsViewModel.class), new Function0<C0>() { // from class: com.adif.elcanomovil.uiStations.main.StationsFragment$special$$inlined$viewModels$default$3
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final C0 invoke() {
|
||||
return ((D0) Lazy.this.getValue()).getViewModelStore();
|
||||
}
|
||||
}, new Function0<l0.c>() { // from class: com.adif.elcanomovil.uiStations.main.StationsFragment$special$$inlined$viewModels$default$4
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final l0.c invoke() {
|
||||
l0.c cVar;
|
||||
Function0 function03 = Function0.this;
|
||||
if (function03 != null && (cVar = (l0.c) function03.invoke()) != null) {
|
||||
return cVar;
|
||||
}
|
||||
D0 d02 = (D0) lazy.getValue();
|
||||
InterfaceC0200v interfaceC0200v = d02 instanceof InterfaceC0200v ? (InterfaceC0200v) d02 : null;
|
||||
return interfaceC0200v != null ? interfaceC0200v.getDefaultViewModelCreationExtras() : C0435a.f7312b;
|
||||
}
|
||||
}, new Function0<y0>() { // from class: com.adif.elcanomovil.uiStations.main.StationsFragment$special$$inlined$viewModels$default$5
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final y0 invoke() {
|
||||
y0 defaultViewModelProviderFactory;
|
||||
D0 d02 = (D0) lazy.getValue();
|
||||
InterfaceC0200v interfaceC0200v = d02 instanceof InterfaceC0200v ? (InterfaceC0200v) d02 : null;
|
||||
if (interfaceC0200v != null && (defaultViewModelProviderFactory = interfaceC0200v.getDefaultViewModelProviderFactory()) != null) {
|
||||
return defaultViewModelProviderFactory;
|
||||
}
|
||||
y0 defaultViewModelProviderFactory2 = K.this.getDefaultViewModelProviderFactory();
|
||||
Intrinsics.checkNotNullExpressionValue(defaultViewModelProviderFactory2, "defaultViewModelProviderFactory");
|
||||
return defaultViewModelProviderFactory2;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private final void configureTabLayout(FragmentStationsBinding binding) {
|
||||
StationsViewPagerAdapter stationsViewPagerAdapter = new StationsViewPagerAdapter(this);
|
||||
this.adapter = stationsViewPagerAdapter;
|
||||
binding.pager.setAdapter(stationsViewPagerAdapter);
|
||||
new H2.o(binding.tabLayout, binding.pager, new I2.k(this, 13)).a();
|
||||
binding.tabLayout.a(new H2.e() { // from class: com.adif.elcanomovil.uiStations.main.StationsFragment$configureTabLayout$2
|
||||
@Override // H2.d
|
||||
public void onTabReselected(H2.h tab) {
|
||||
StationsViewModel viewModel;
|
||||
if (tab != null) {
|
||||
StationsFragment stationsFragment = StationsFragment.this;
|
||||
LayoutTabKt.setTabTextStyle(tab, R.style.TabLayout_TextSelected);
|
||||
viewModel = stationsFragment.getViewModel();
|
||||
viewModel.handleTabSelected(tab.f705b);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // H2.d
|
||||
public void onTabSelected(H2.h tab) {
|
||||
StationsViewModel viewModel;
|
||||
if (tab != null) {
|
||||
StationsFragment stationsFragment = StationsFragment.this;
|
||||
LayoutTabKt.setTabTextStyle(tab, R.style.TabLayout_TextSelected);
|
||||
viewModel = stationsFragment.getViewModel();
|
||||
viewModel.handleTabSelected(tab.f705b);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // H2.d
|
||||
public void onTabUnselected(H2.h tab) {
|
||||
Intrinsics.checkNotNullParameter(tab, "tab");
|
||||
LayoutTabKt.setTabTextStyle(tab, R.style.TabLayout_Text);
|
||||
}
|
||||
});
|
||||
TabLayout tabLayout = binding.tabLayout;
|
||||
tabLayout.k(tabLayout.g(0), true);
|
||||
}
|
||||
|
||||
public static final void configureTabLayout$lambda$0(StationsFragment this$0, H2.h tab, int i) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
Intrinsics.checkNotNullParameter(tab, "tab");
|
||||
tab.a(i != 0 ? i != 1 ? this$0.getString(R.string.activities) : this$0.getString(R.string.commercial) : this$0.getString(R.string.services));
|
||||
}
|
||||
|
||||
private final void configureViewListeners(FragmentStationsBinding binding) {
|
||||
binding.stationsStationName.setOnClickListener(new D1.a(this, 16));
|
||||
}
|
||||
|
||||
public static final void configureViewListeners$lambda$2(StationsFragment this$0, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
this$0.getViewModel().handleSearchStationTap();
|
||||
}
|
||||
|
||||
private final void configureViewObservers(FragmentStationsBinding binding) {
|
||||
getViewModel().getViewData().e(getViewLifecycleOwner(), new C0191l(new a(binding, this)));
|
||||
InterfaceC0266a navigation = getViewModel().getNavigation();
|
||||
J viewLifecycleOwner = getViewLifecycleOwner();
|
||||
Intrinsics.checkNotNullExpressionValue(viewLifecycleOwner, "getViewLifecycleOwner(...)");
|
||||
((b1.f) navigation).a(viewLifecycleOwner, new NavigationHandler(this));
|
||||
InterfaceC0266a selectedTab = getViewModel().getSelectedTab();
|
||||
J viewLifecycleOwner2 = getViewLifecycleOwner();
|
||||
Intrinsics.checkNotNullExpressionValue(viewLifecycleOwner2, "getViewLifecycleOwner(...)");
|
||||
((b1.f) selectedTab).a(viewLifecycleOwner2, new I1.b(binding, 13));
|
||||
NavigationExtensionsKt.onDestinationResult(NavigationExtensionsKt.findRootNavController(this), NavArguments.StationSelectionType.STATION.toString(), this, new com.adif.elcanomovil.uiDepartures.main.c(1, this, StationsFragment.class, "handleSelectedStation", "handleSelectedStation(Ljava/lang/String;)V", 0, 11));
|
||||
}
|
||||
|
||||
public final StationsViewModel getViewModel() {
|
||||
return (StationsViewModel) this.viewModel.getValue();
|
||||
}
|
||||
|
||||
public final void handleSelectedStation(String station) {
|
||||
getViewModel().handleSelectedStation(station);
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
getViewModel().handleOnCreate();
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onViewCreated(View view, Bundle savedInstanceState) {
|
||||
Intrinsics.checkNotNullParameter(view, "view");
|
||||
super.onViewCreated(view, savedInstanceState);
|
||||
FragmentStationsBinding bind = FragmentStationsBinding.bind(view);
|
||||
Intrinsics.checkNotNullExpressionValue(bind, "bind(...)");
|
||||
configureTabLayout(bind);
|
||||
configureViewObservers(bind);
|
||||
configureViewListeners(bind);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.components.FragmentComponent;
|
||||
import dagger.hilt.codegen.OriginatingElement;
|
||||
import dagger.hilt.internal.GeneratedEntryPoint;
|
||||
|
||||
@OriginatingElement(topLevelClass = StationsFragment.class)
|
||||
@GeneratedEntryPoint
|
||||
@InstallIn({FragmentComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public interface StationsFragment_GeneratedInjector {
|
||||
void injectStationsFragment(StationsFragment stationsFragment);
|
||||
}
|
||||
@@ -0,0 +1,221 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import androidx.fragment.app.K;
|
||||
import androidx.lifecycle.C0;
|
||||
import androidx.lifecycle.C0191l;
|
||||
import androidx.lifecycle.D0;
|
||||
import androidx.lifecycle.InterfaceC0200v;
|
||||
import androidx.lifecycle.J;
|
||||
import androidx.lifecycle.y0;
|
||||
import androidx.recyclerview.widget.C0246x;
|
||||
import b1.InterfaceC0266a;
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.NavigationHandler;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
import com.adif.elcanomovil.uiStations.adapters.ActivitiesAdapter;
|
||||
import com.adif.elcanomovil.uiStations.databinding.FragmentStationsPageActivitiesBinding;
|
||||
import com.adif.elcanomovil.uiStations.entities.ActivitiesTabViewData;
|
||||
import com.adif.elcanomovil.uiStations.entities.Activity;
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import dagger.hilt.android.AndroidEntryPoint;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.LazyKt;
|
||||
import kotlin.LazyThreadSafetyMode;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import l0.C0435a;
|
||||
|
||||
@Metadata(d1 = {"\u0000X\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u000f\u0010\u0005\u001a\u00020\u0004H\u0002¢\u0006\u0004\b\u0005\u0010\u0003J\u0017\u0010\b\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u0006H\u0002¢\u0006\u0004\b\b\u0010\tJ\u0017\u0010\f\u001a\u00020\u00042\u0006\u0010\u000b\u001a\u00020\nH\u0002¢\u0006\u0004\b\f\u0010\rJ!\u0010\u0012\u001a\u00020\u00042\u0006\u0010\u000f\u001a\u00020\u000e2\b\u0010\u0011\u001a\u0004\u0018\u00010\u0010H\u0016¢\u0006\u0004\b\u0012\u0010\u0013R\u0016\u0010\u0015\u001a\u00020\u00148\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\u0015\u0010\u0016R\u001b\u0010\u001c\u001a\u00020\u00178BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u0018\u0010\u0019\u001a\u0004\b\u001a\u0010\u001bR3\u0010#\u001a!\u0012\u0013\u0012\u00110\u001e¢\u0006\f\b\u001f\u0012\b\b \u0012\u0004\b\b(!\u0012\u0004\u0012\u00020\u00040\u001dj\u0002`\"8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b#\u0010$¨\u0006%"}, d2 = {"Lcom/adif/elcanomovil/uiStations/main/StationsPageActivitiesFragment;", "Landroidx/fragment/app/K;", "<init>", "()V", "", "configureViewObservers", "Lcom/adif/elcanomovil/uiStations/entities/ActivitiesTabViewData;", "activitiesTabViewData", "updateResults", "(Lcom/adif/elcanomovil/uiStations/entities/ActivitiesTabViewData;)V", "", "isEmptyVisible", "updateVisibility", "(Z)V", "Landroid/view/View;", "view", "Landroid/os/Bundle;", "savedInstanceState", "onViewCreated", "(Landroid/view/View;Landroid/os/Bundle;)V", "Lcom/adif/elcanomovil/uiStations/databinding/FragmentStationsPageActivitiesBinding;", "binding", "Lcom/adif/elcanomovil/uiStations/databinding/FragmentStationsPageActivitiesBinding;", "Lcom/adif/elcanomovil/uiStations/main/StationsPageActivitiesViewModel;", "viewModel$delegate", "Lkotlin/Lazy;", "getViewModel", "()Lcom/adif/elcanomovil/uiStations/main/StationsPageActivitiesViewModel;", "viewModel", "Lkotlin/Function1;", "Lcom/adif/elcanomovil/uiStations/entities/Activity;", "Lkotlin/ParameterName;", AppMeasurementSdk.ConditionalUserProperty.NAME, "activitie", "Lcom/adif/elcanomovil/uiStations/adapters/OnActivityTap;", "onActivityTap", "Lkotlin/jvm/functions/Function1;", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@AndroidEntryPoint
|
||||
@SourceDebugExtension({"SMAP\nStationsPageActivitiesFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 StationsPageActivitiesFragment.kt\ncom/adif/elcanomovil/uiStations/main/StationsPageActivitiesFragment\n+ 2 FragmentViewModelLazy.kt\nandroidx/fragment/app/FragmentViewModelLazyKt\n*L\n1#1,112:1\n106#2,15:113\n*S KotlinDebug\n*F\n+ 1 StationsPageActivitiesFragment.kt\ncom/adif/elcanomovil/uiStations/main/StationsPageActivitiesFragment\n*L\n21#1:113,15\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsPageActivitiesFragment extends Hilt_StationsPageActivitiesFragment {
|
||||
private FragmentStationsPageActivitiesBinding binding;
|
||||
private final Function1<Activity, Unit> onActivityTap;
|
||||
|
||||
/* renamed from: viewModel$delegate, reason: from kotlin metadata */
|
||||
private final Lazy viewModel;
|
||||
|
||||
public StationsPageActivitiesFragment() {
|
||||
super(R.layout.fragment_stations_page_activities);
|
||||
final Function0<K> function0 = new Function0<K>() { // from class: com.adif.elcanomovil.uiStations.main.StationsPageActivitiesFragment$special$$inlined$viewModels$default$1
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final K invoke() {
|
||||
return K.this;
|
||||
}
|
||||
};
|
||||
final Lazy lazy = LazyKt.lazy(LazyThreadSafetyMode.NONE, (Function0) new Function0<D0>() { // from class: com.adif.elcanomovil.uiStations.main.StationsPageActivitiesFragment$special$$inlined$viewModels$default$2
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final D0 invoke() {
|
||||
return (D0) Function0.this.invoke();
|
||||
}
|
||||
});
|
||||
final Function0 function02 = null;
|
||||
this.viewModel = m3.d.n(this, Reflection.getOrCreateKotlinClass(StationsPageActivitiesViewModel.class), new Function0<C0>() { // from class: com.adif.elcanomovil.uiStations.main.StationsPageActivitiesFragment$special$$inlined$viewModels$default$3
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final C0 invoke() {
|
||||
return ((D0) Lazy.this.getValue()).getViewModelStore();
|
||||
}
|
||||
}, new Function0<l0.c>() { // from class: com.adif.elcanomovil.uiStations.main.StationsPageActivitiesFragment$special$$inlined$viewModels$default$4
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final l0.c invoke() {
|
||||
l0.c cVar;
|
||||
Function0 function03 = Function0.this;
|
||||
if (function03 != null && (cVar = (l0.c) function03.invoke()) != null) {
|
||||
return cVar;
|
||||
}
|
||||
D0 d02 = (D0) lazy.getValue();
|
||||
InterfaceC0200v interfaceC0200v = d02 instanceof InterfaceC0200v ? (InterfaceC0200v) d02 : null;
|
||||
return interfaceC0200v != null ? interfaceC0200v.getDefaultViewModelCreationExtras() : C0435a.f7312b;
|
||||
}
|
||||
}, new Function0<y0>() { // from class: com.adif.elcanomovil.uiStations.main.StationsPageActivitiesFragment$special$$inlined$viewModels$default$5
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final y0 invoke() {
|
||||
y0 defaultViewModelProviderFactory;
|
||||
D0 d02 = (D0) lazy.getValue();
|
||||
InterfaceC0200v interfaceC0200v = d02 instanceof InterfaceC0200v ? (InterfaceC0200v) d02 : null;
|
||||
if (interfaceC0200v != null && (defaultViewModelProviderFactory = interfaceC0200v.getDefaultViewModelProviderFactory()) != null) {
|
||||
return defaultViewModelProviderFactory;
|
||||
}
|
||||
y0 defaultViewModelProviderFactory2 = K.this.getDefaultViewModelProviderFactory();
|
||||
Intrinsics.checkNotNullExpressionValue(defaultViewModelProviderFactory2, "defaultViewModelProviderFactory");
|
||||
return defaultViewModelProviderFactory2;
|
||||
}
|
||||
});
|
||||
this.onActivityTap = new I1.b(this, 14);
|
||||
}
|
||||
|
||||
public static final /* synthetic */ FragmentStationsPageActivitiesBinding access$getBinding$p(StationsPageActivitiesFragment stationsPageActivitiesFragment) {
|
||||
return stationsPageActivitiesFragment.binding;
|
||||
}
|
||||
|
||||
public static final /* synthetic */ StationsPageActivitiesViewModel access$getViewModel(StationsPageActivitiesFragment stationsPageActivitiesFragment) {
|
||||
return stationsPageActivitiesFragment.getViewModel();
|
||||
}
|
||||
|
||||
public static final /* synthetic */ void access$updateResults(StationsPageActivitiesFragment stationsPageActivitiesFragment, ActivitiesTabViewData activitiesTabViewData) {
|
||||
stationsPageActivitiesFragment.updateResults(activitiesTabViewData);
|
||||
}
|
||||
|
||||
public static final /* synthetic */ void access$updateVisibility(StationsPageActivitiesFragment stationsPageActivitiesFragment, boolean z3) {
|
||||
stationsPageActivitiesFragment.updateVisibility(z3);
|
||||
}
|
||||
|
||||
private final void configureViewObservers() {
|
||||
getViewModel().getViewData().e(getViewLifecycleOwner(), new C0191l(new b(this)));
|
||||
InterfaceC0266a navigation = getViewModel().getNavigation();
|
||||
J viewLifecycleOwner = getViewLifecycleOwner();
|
||||
Intrinsics.checkNotNullExpressionValue(viewLifecycleOwner, "getViewLifecycleOwner(...)");
|
||||
((b1.f) navigation).a(viewLifecycleOwner, new NavigationHandler(this));
|
||||
}
|
||||
|
||||
public final StationsPageActivitiesViewModel getViewModel() {
|
||||
return (StationsPageActivitiesViewModel) this.viewModel.getValue();
|
||||
}
|
||||
|
||||
public final void updateResults(ActivitiesTabViewData activitiesTabViewData) {
|
||||
FragmentStationsPageActivitiesBinding fragmentStationsPageActivitiesBinding = this.binding;
|
||||
FragmentStationsPageActivitiesBinding fragmentStationsPageActivitiesBinding2 = null;
|
||||
if (fragmentStationsPageActivitiesBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageActivitiesBinding = null;
|
||||
}
|
||||
fragmentStationsPageActivitiesBinding.viewNotEmptyStation.setVisibility(0);
|
||||
ActivitiesAdapter activitiesAdapter = new ActivitiesAdapter(this.onActivityTap);
|
||||
FragmentStationsPageActivitiesBinding fragmentStationsPageActivitiesBinding3 = this.binding;
|
||||
if (fragmentStationsPageActivitiesBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageActivitiesBinding3 = null;
|
||||
}
|
||||
fragmentStationsPageActivitiesBinding3.rvActivities.setAdapter(activitiesAdapter);
|
||||
activitiesAdapter.update(activitiesTabViewData.getActivities());
|
||||
if (activitiesTabViewData.getActivities() == null || !(!r6.isEmpty())) {
|
||||
FragmentStationsPageActivitiesBinding fragmentStationsPageActivitiesBinding4 = this.binding;
|
||||
if (fragmentStationsPageActivitiesBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentStationsPageActivitiesBinding2 = fragmentStationsPageActivitiesBinding4;
|
||||
}
|
||||
fragmentStationsPageActivitiesBinding2.rvActivities.setVisibility(8);
|
||||
return;
|
||||
}
|
||||
FragmentStationsPageActivitiesBinding fragmentStationsPageActivitiesBinding5 = this.binding;
|
||||
if (fragmentStationsPageActivitiesBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentStationsPageActivitiesBinding2 = fragmentStationsPageActivitiesBinding5;
|
||||
}
|
||||
fragmentStationsPageActivitiesBinding2.rvActivities.setVisibility(0);
|
||||
}
|
||||
|
||||
public final void updateVisibility(boolean isEmptyVisible) {
|
||||
FragmentStationsPageActivitiesBinding fragmentStationsPageActivitiesBinding = this.binding;
|
||||
FragmentStationsPageActivitiesBinding fragmentStationsPageActivitiesBinding2 = null;
|
||||
if (fragmentStationsPageActivitiesBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageActivitiesBinding = null;
|
||||
}
|
||||
fragmentStationsPageActivitiesBinding.viewNotEmptyStation.setVisibility(isEmptyVisible ? 8 : 0);
|
||||
FragmentStationsPageActivitiesBinding fragmentStationsPageActivitiesBinding3 = this.binding;
|
||||
if (fragmentStationsPageActivitiesBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentStationsPageActivitiesBinding2 = fragmentStationsPageActivitiesBinding3;
|
||||
}
|
||||
fragmentStationsPageActivitiesBinding2.loadingEmptyOrErrorCommonView.setVisibility(isEmptyVisible ? 0 : 8);
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onViewCreated(View view, Bundle savedInstanceState) {
|
||||
Intrinsics.checkNotNullParameter(view, "view");
|
||||
super.onViewCreated(view, savedInstanceState);
|
||||
FragmentStationsPageActivitiesBinding bind = FragmentStationsPageActivitiesBinding.bind(view);
|
||||
Intrinsics.checkNotNullExpressionValue(bind, "bind(...)");
|
||||
this.binding = bind;
|
||||
C0246x c0246x = new C0246x(requireContext());
|
||||
Drawable drawable = D.h.getDrawable(requireContext(), R.drawable.hard_divider);
|
||||
if (drawable != null) {
|
||||
c0246x.f3928a = drawable;
|
||||
}
|
||||
FragmentStationsPageActivitiesBinding fragmentStationsPageActivitiesBinding = this.binding;
|
||||
if (fragmentStationsPageActivitiesBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageActivitiesBinding = null;
|
||||
}
|
||||
fragmentStationsPageActivitiesBinding.rvActivities.i(c0246x);
|
||||
configureViewObservers();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.components.FragmentComponent;
|
||||
import dagger.hilt.codegen.OriginatingElement;
|
||||
import dagger.hilt.internal.GeneratedEntryPoint;
|
||||
|
||||
@OriginatingElement(topLevelClass = StationsPageActivitiesFragment.class)
|
||||
@GeneratedEntryPoint
|
||||
@InstallIn({FragmentComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public interface StationsPageActivitiesFragment_GeneratedInjector {
|
||||
void injectStationsPageActivitiesFragment(StationsPageActivitiesFragment stationsPageActivitiesFragment);
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import androidx.lifecycle.Q;
|
||||
import androidx.lifecycle.q0;
|
||||
import androidx.lifecycle.w0;
|
||||
import b1.InterfaceC0266a;
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.Navigation;
|
||||
import com.adif.elcanomovil.domain.entities.station.RequestedStationInfo;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.adif.elcanomovil.domain.entities.utils.Status;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetCurrentOneStationUseCase;
|
||||
import com.adif.elcanomovil.main.BottomNavFragmentDirections;
|
||||
import com.adif.elcanomovil.uiStations.entities.Activity;
|
||||
import com.adif.elcanomovil.uiStations.main.ActivitiesTabViewDataWrapper;
|
||||
import com.adif.elcanomovil.uiStations.mappers.RequestedStationInfoMapper;
|
||||
import dagger.hilt.android.lifecycle.HiltViewModel;
|
||||
import java.util.List;
|
||||
import javax.inject.Inject;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlinx.coroutines.BuildersKt__Builders_commonKt;
|
||||
import kotlinx.coroutines.flow.MutableStateFlow;
|
||||
import kotlinx.coroutines.flow.StateFlowKt;
|
||||
|
||||
@HiltViewModel
|
||||
@Metadata(d1 = {"\u0000R\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0007\u0018\u00002\u00020\u0001B\u0011\b\u0007\u0012\u0006\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0004\u0010\u0005J\u001f\u0010\n\u001a\u00020\t2\u000e\u0010\b\u001a\n\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u0006H\u0002¢\u0006\u0004\b\n\u0010\u000bJ\u0015\u0010\u000e\u001a\u00020\t2\u0006\u0010\r\u001a\u00020\f¢\u0006\u0004\b\u000e\u0010\u000fR\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u0010R\u001c\u0010\u0013\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00120\u00118\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0013\u0010\u0014R\u001f\u0010\u0016\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00120\u00158\u0006¢\u0006\f\n\u0004\b\u0016\u0010\u0017\u001a\u0004\b\u0018\u0010\u0019R\u001a\u0010\u001c\u001a\b\u0012\u0004\u0012\u00020\u001b0\u001a8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u001c\u0010\u001dR\u001d\u0010\u001f\u001a\b\u0012\u0004\u0012\u00020\u001b0\u001e8\u0006¢\u0006\f\n\u0004\b\u001f\u0010 \u001a\u0004\b!\u0010\"¨\u0006#"}, d2 = {"Lcom/adif/elcanomovil/uiStations/main/StationsPageActivitiesViewModel;", "Landroidx/lifecycle/w0;", "Lcom/adif/elcanomovil/domain/usecases/stations/GetCurrentOneStationUseCase;", "getCurrentOneStationUseCase", "<init>", "(Lcom/adif/elcanomovil/domain/usecases/stations/GetCurrentOneStationUseCase;)V", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;", "Lcom/adif/elcanomovil/domain/entities/station/RequestedStationInfo;", "requestedStationInfo", "", "mapToViewData", "(Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;)V", "Lcom/adif/elcanomovil/uiStations/entities/Activity;", "activity", "onActivityTapped", "(Lcom/adif/elcanomovil/uiStations/entities/Activity;)V", "Lcom/adif/elcanomovil/domain/usecases/stations/GetCurrentOneStationUseCase;", "Lkotlinx/coroutines/flow/MutableStateFlow;", "Lcom/adif/elcanomovil/uiStations/main/ActivitiesTabViewDataWrapper;", "_viewData", "Lkotlinx/coroutines/flow/MutableStateFlow;", "Landroidx/lifecycle/Q;", "viewData", "Landroidx/lifecycle/Q;", "getViewData", "()Landroidx/lifecycle/Q;", "Lb1/f;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation;", "navigationFlow", "Lb1/f;", "Lb1/a;", "navigation", "Lb1/a;", "getNavigation", "()Lb1/a;", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nStationsPageActivitiesViewModel.kt\nKotlin\n*S Kotlin\n*F\n+ 1 StationsPageActivitiesViewModel.kt\ncom/adif/elcanomovil/uiStations/main/StationsPageActivitiesViewModel\n+ 2 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n*L\n1#1,88:1\n37#2,2:89\n37#2,2:91\n*S KotlinDebug\n*F\n+ 1 StationsPageActivitiesViewModel.kt\ncom/adif/elcanomovil/uiStations/main/StationsPageActivitiesViewModel\n*L\n69#1:89,2\n71#1:91,2\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsPageActivitiesViewModel extends w0 {
|
||||
private final MutableStateFlow<ActivitiesTabViewDataWrapper> _viewData;
|
||||
private final GetCurrentOneStationUseCase getCurrentOneStationUseCase;
|
||||
private final InterfaceC0266a navigation;
|
||||
private final b1.f navigationFlow;
|
||||
private final Q viewData;
|
||||
|
||||
@Inject
|
||||
public StationsPageActivitiesViewModel(GetCurrentOneStationUseCase getCurrentOneStationUseCase) {
|
||||
Intrinsics.checkNotNullParameter(getCurrentOneStationUseCase, "getCurrentOneStationUseCase");
|
||||
this.getCurrentOneStationUseCase = getCurrentOneStationUseCase;
|
||||
MutableStateFlow<ActivitiesTabViewDataWrapper> MutableStateFlow = StateFlowKt.MutableStateFlow(null);
|
||||
this._viewData = MutableStateFlow;
|
||||
this.viewData = q0.a(MutableStateFlow, null, 3);
|
||||
b1.f fVar = new b1.f();
|
||||
this.navigationFlow = fVar;
|
||||
this.navigation = fVar;
|
||||
BuildersKt__Builders_commonKt.launch$default(q0.j(this), null, null, new c(this, null), 3, null);
|
||||
}
|
||||
|
||||
public static final /* synthetic */ void access$mapToViewData(StationsPageActivitiesViewModel stationsPageActivitiesViewModel, AsyncResult asyncResult) {
|
||||
stationsPageActivitiesViewModel.mapToViewData(asyncResult);
|
||||
}
|
||||
|
||||
public final void mapToViewData(AsyncResult<RequestedStationInfo> requestedStationInfo) {
|
||||
if ((requestedStationInfo != null ? requestedStationInfo.getStatus() : null) == Status.ERROR) {
|
||||
this._viewData.setValue(ActivitiesTabViewDataWrapper.Error.INSTANCE);
|
||||
return;
|
||||
}
|
||||
if ((requestedStationInfo != null ? requestedStationInfo.getStatus() : null) == Status.LOADING) {
|
||||
this._viewData.setValue(ActivitiesTabViewDataWrapper.Loading.INSTANCE);
|
||||
} else {
|
||||
this._viewData.setValue(new ActivitiesTabViewDataWrapper.Data(RequestedStationInfoMapper.INSTANCE.mapToActivitiesTabViewData(requestedStationInfo != null ? requestedStationInfo.getData() : null)));
|
||||
}
|
||||
}
|
||||
|
||||
public final InterfaceC0266a getNavigation() {
|
||||
return this.navigation;
|
||||
}
|
||||
|
||||
public final Q getViewData() {
|
||||
return this.viewData;
|
||||
}
|
||||
|
||||
public final void onActivityTapped(Activity activity) {
|
||||
Intrinsics.checkNotNullParameter(activity, "activity");
|
||||
b1.f fVar = this.navigationFlow;
|
||||
BottomNavFragmentDirections.Companion companion = BottomNavFragmentDirections.INSTANCE;
|
||||
String logo = activity.getLogo();
|
||||
String name = activity.getName();
|
||||
String phone = activity.getPhone();
|
||||
String description = activity.getDescription();
|
||||
boolean accessible = activity.getAccessible();
|
||||
List<String> paymentWay = activity.getPaymentWay();
|
||||
String[] strArr = paymentWay != null ? (String[]) paymentWay.toArray(new String[0]) : null;
|
||||
String offer = activity.getOffer();
|
||||
List<String> correspondences = activity.getCorrespondences();
|
||||
fVar.b(new Navigation.RootDirection(companion.toStationsAlertDialog(logo, name, phone, description, accessible, strArr, offer, correspondences != null ? (String[]) correspondences.toArray(new String[0]) : null, activity.getWeb(), activity.getLocation(), activity.getAccessibleLabel(), activity.getOpeningHours(), activity.getAndroidLink()), null, 2, null));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetCurrentOneStationUseCase;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsPageActivitiesViewModel_Factory implements Factory<StationsPageActivitiesViewModel> {
|
||||
private final Provider<GetCurrentOneStationUseCase> getCurrentOneStationUseCaseProvider;
|
||||
|
||||
public StationsPageActivitiesViewModel_Factory(Provider<GetCurrentOneStationUseCase> provider) {
|
||||
this.getCurrentOneStationUseCaseProvider = provider;
|
||||
}
|
||||
|
||||
public static StationsPageActivitiesViewModel_Factory create(Provider<GetCurrentOneStationUseCase> provider) {
|
||||
return new StationsPageActivitiesViewModel_Factory(provider);
|
||||
}
|
||||
|
||||
public static StationsPageActivitiesViewModel newInstance(GetCurrentOneStationUseCase getCurrentOneStationUseCase) {
|
||||
return new StationsPageActivitiesViewModel(getCurrentOneStationUseCase);
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public StationsPageActivitiesViewModel get() {
|
||||
return newInstance(this.getCurrentOneStationUseCaseProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import androidx.lifecycle.w0;
|
||||
import dagger.Binds;
|
||||
import dagger.Module;
|
||||
import dagger.Provides;
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.components.ActivityRetainedComponent;
|
||||
import dagger.hilt.android.components.ViewModelComponent;
|
||||
import dagger.hilt.android.internal.lifecycle.HiltViewModelMap;
|
||||
import dagger.hilt.codegen.OriginatingElement;
|
||||
import dagger.multibindings.IntoMap;
|
||||
import dagger.multibindings.IntoSet;
|
||||
import dagger.multibindings.StringKey;
|
||||
|
||||
@OriginatingElement(topLevelClass = StationsPageActivitiesViewModel.class)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsPageActivitiesViewModel_HiltModules {
|
||||
|
||||
@Module
|
||||
@InstallIn({ViewModelComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public static abstract class BindsModule {
|
||||
private BindsModule() {
|
||||
}
|
||||
|
||||
@Binds
|
||||
@StringKey("com.adif.elcanomovil.uiStations.main.StationsPageActivitiesViewModel")
|
||||
@HiltViewModelMap
|
||||
@IntoMap
|
||||
public abstract w0 binds(StationsPageActivitiesViewModel stationsPageActivitiesViewModel);
|
||||
}
|
||||
|
||||
@Module
|
||||
@InstallIn({ActivityRetainedComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class KeyModule {
|
||||
private KeyModule() {
|
||||
}
|
||||
|
||||
@Provides
|
||||
@HiltViewModelMap.KeySet
|
||||
@IntoSet
|
||||
public static String provide() {
|
||||
return "com.adif.elcanomovil.uiStations.main.StationsPageActivitiesViewModel";
|
||||
}
|
||||
}
|
||||
|
||||
private StationsPageActivitiesViewModel_HiltModules() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import com.adif.elcanomovil.uiStations.main.StationsPageActivitiesViewModel_HiltModules;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.internal.lifecycle.HiltViewModelMap.KeySet"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsPageActivitiesViewModel_HiltModules_KeyModule_ProvideFactory implements Factory<String> {
|
||||
public static StationsPageActivitiesViewModel_HiltModules_KeyModule_ProvideFactory create() {
|
||||
return d.f5274a;
|
||||
}
|
||||
|
||||
public static String provide() {
|
||||
return (String) Preconditions.checkNotNullFromProvides(StationsPageActivitiesViewModel_HiltModules.KeyModule.provide());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public String get() {
|
||||
return provide();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,759 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import B0.B;
|
||||
import B0.C0023a;
|
||||
import android.os.Bundle;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import androidx.fragment.app.K;
|
||||
import androidx.lifecycle.C0;
|
||||
import androidx.lifecycle.C0191l;
|
||||
import androidx.lifecycle.D0;
|
||||
import androidx.lifecycle.InterfaceC0200v;
|
||||
import androidx.lifecycle.J;
|
||||
import androidx.lifecycle.y0;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import androidx.recyclerview.widget.u0;
|
||||
import b1.InterfaceC0266a;
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.NavigationHandler;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
import com.adif.elcanomovil.uiStations.adapters.CommercialAdapter;
|
||||
import com.adif.elcanomovil.uiStations.adapters.OfferAdapter;
|
||||
import com.adif.elcanomovil.uiStations.databinding.ExpandableItemStationsPageCommercialBinding;
|
||||
import com.adif.elcanomovil.uiStations.databinding.FragmentStationsPageComercialBinding;
|
||||
import com.adif.elcanomovil.uiStations.entities.CommercialTabViewData;
|
||||
import com.adif.elcanomovil.uiStations.entities.Services;
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import dagger.hilt.android.AndroidEntryPoint;
|
||||
import java.util.List;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.LazyKt;
|
||||
import kotlin.LazyThreadSafetyMode;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import l0.C0435a;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0080\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u00012\u00020\u0002B\u0007¢\u0006\u0004\b\u0003\u0010\u0004J\u000f\u0010\u0006\u001a\u00020\u0005H\u0002¢\u0006\u0004\b\u0006\u0010\u0004J\u0017\u0010\t\u001a\u00020\u00052\u0006\u0010\b\u001a\u00020\u0007H\u0002¢\u0006\u0004\b\t\u0010\nJ'\u0010\u0010\u001a\u00020\u00052\u0006\u0010\f\u001a\u00020\u000b2\u000e\u0010\u000f\u001a\n\u0012\u0004\u0012\u00020\u000e\u0018\u00010\rH\u0002¢\u0006\u0004\b\u0010\u0010\u0011J\u0017\u0010\u0014\u001a\u00020\u00052\u0006\u0010\u0013\u001a\u00020\u0012H\u0002¢\u0006\u0004\b\u0014\u0010\u0015J\u000f\u0010\u0016\u001a\u00020\u0005H\u0002¢\u0006\u0004\b\u0016\u0010\u0004J\u0017\u0010\u0017\u001a\u00020\u00052\u0006\u0010\f\u001a\u00020\u000bH\u0002¢\u0006\u0004\b\u0017\u0010\u0018J!\u0010\u001d\u001a\u00020\u00052\u0006\u0010\u001a\u001a\u00020\u00192\b\u0010\u001c\u001a\u0004\u0018\u00010\u001bH\u0016¢\u0006\u0004\b\u001d\u0010\u001eJ\u001f\u0010#\u001a\u00020\u00122\u0006\u0010 \u001a\u00020\u001f2\u0006\u0010\"\u001a\u00020!H\u0016¢\u0006\u0004\b#\u0010$J\u001f\u0010%\u001a\u00020\u00052\u0006\u0010 \u001a\u00020\u001f2\u0006\u0010\"\u001a\u00020!H\u0016¢\u0006\u0004\b%\u0010&J\u0017\u0010(\u001a\u00020\u00052\u0006\u0010'\u001a\u00020\u0012H\u0016¢\u0006\u0004\b(\u0010\u0015R\u0016\u0010*\u001a\u00020)8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b*\u0010+R\u001b\u00101\u001a\u00020,8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b-\u0010.\u001a\u0004\b/\u00100R3\u00107\u001a!\u0012\u0013\u0012\u00110\u000e¢\u0006\f\b3\u0012\b\b4\u0012\u0004\b\b(5\u0012\u0004\u0012\u00020\u000502j\u0002`68\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b7\u00108R\u0016\u0010:\u001a\u0002098\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b:\u0010;¨\u0006<"}, d2 = {"Lcom/adif/elcanomovil/uiStations/main/StationsPageCommercialFragment;", "Landroidx/fragment/app/K;", "Landroidx/recyclerview/widget/u0;", "<init>", "()V", "", "configureViewObservers", "Lcom/adif/elcanomovil/uiStations/entities/CommercialTabViewData;", "commercialTabViewData", "updateResults", "(Lcom/adif/elcanomovil/uiStations/entities/CommercialTabViewData;)V", "Lcom/adif/elcanomovil/uiStations/databinding/ExpandableItemStationsPageCommercialBinding;", "expandableItemStationsPageCommercialBinding", "", "Lcom/adif/elcanomovil/uiStations/entities/Services;", "services", "populateAndSetVisibilityOfSection", "(Lcom/adif/elcanomovil/uiStations/databinding/ExpandableItemStationsPageCommercialBinding;Ljava/util/List;)V", "", "isEmptyVisible", "updateVisibility", "(Z)V", "configureViewListeners", "setExpandableViewBehaviour", "(Lcom/adif/elcanomovil/uiStations/databinding/ExpandableItemStationsPageCommercialBinding;)V", "Landroid/view/View;", "view", "Landroid/os/Bundle;", "savedInstanceState", "onViewCreated", "(Landroid/view/View;Landroid/os/Bundle;)V", "Landroidx/recyclerview/widget/RecyclerView;", "rv", "Landroid/view/MotionEvent;", "e", "onInterceptTouchEvent", "(Landroidx/recyclerview/widget/RecyclerView;Landroid/view/MotionEvent;)Z", "onTouchEvent", "(Landroidx/recyclerview/widget/RecyclerView;Landroid/view/MotionEvent;)V", "disallowIntercept", "onRequestDisallowInterceptTouchEvent", "Lcom/adif/elcanomovil/uiStations/databinding/FragmentStationsPageComercialBinding;", "binding", "Lcom/adif/elcanomovil/uiStations/databinding/FragmentStationsPageComercialBinding;", "Lcom/adif/elcanomovil/uiStations/main/StationsPageCommercialViewModel;", "viewModel$delegate", "Lkotlin/Lazy;", "getViewModel", "()Lcom/adif/elcanomovil/uiStations/main/StationsPageCommercialViewModel;", "viewModel", "Lkotlin/Function1;", "Lkotlin/ParameterName;", AppMeasurementSdk.ConditionalUserProperty.NAME, "service", "Lcom/adif/elcanomovil/uiStations/adapters/OnCommercialTap;", "onCommercialTap", "Lkotlin/jvm/functions/Function1;", "", "lastX", "I", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@AndroidEntryPoint
|
||||
@SourceDebugExtension({"SMAP\nStationsPageCommercialFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 StationsPageCommercialFragment.kt\ncom/adif/elcanomovil/uiStations/main/StationsPageCommercialFragment\n+ 2 FragmentViewModelLazy.kt\nandroidx/fragment/app/FragmentViewModelLazyKt\n*L\n1#1,224:1\n106#2,15:225\n*S KotlinDebug\n*F\n+ 1 StationsPageCommercialFragment.kt\ncom/adif/elcanomovil/uiStations/main/StationsPageCommercialFragment\n*L\n30#1:225,15\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsPageCommercialFragment extends Hilt_StationsPageCommercialFragment implements u0 {
|
||||
private FragmentStationsPageComercialBinding binding;
|
||||
private int lastX;
|
||||
private final Function1<Services, Unit> onCommercialTap;
|
||||
|
||||
/* renamed from: viewModel$delegate, reason: from kotlin metadata */
|
||||
private final Lazy viewModel;
|
||||
|
||||
public StationsPageCommercialFragment() {
|
||||
super(R.layout.fragment_stations_page_comercial);
|
||||
final Function0<K> function0 = new Function0<K>() { // from class: com.adif.elcanomovil.uiStations.main.StationsPageCommercialFragment$special$$inlined$viewModels$default$1
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final K invoke() {
|
||||
return K.this;
|
||||
}
|
||||
};
|
||||
final Lazy lazy = LazyKt.lazy(LazyThreadSafetyMode.NONE, (Function0) new Function0<D0>() { // from class: com.adif.elcanomovil.uiStations.main.StationsPageCommercialFragment$special$$inlined$viewModels$default$2
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final D0 invoke() {
|
||||
return (D0) Function0.this.invoke();
|
||||
}
|
||||
});
|
||||
final Function0 function02 = null;
|
||||
this.viewModel = m3.d.n(this, Reflection.getOrCreateKotlinClass(StationsPageCommercialViewModel.class), new Function0<C0>() { // from class: com.adif.elcanomovil.uiStations.main.StationsPageCommercialFragment$special$$inlined$viewModels$default$3
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final C0 invoke() {
|
||||
return ((D0) Lazy.this.getValue()).getViewModelStore();
|
||||
}
|
||||
}, new Function0<l0.c>() { // from class: com.adif.elcanomovil.uiStations.main.StationsPageCommercialFragment$special$$inlined$viewModels$default$4
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final l0.c invoke() {
|
||||
l0.c cVar;
|
||||
Function0 function03 = Function0.this;
|
||||
if (function03 != null && (cVar = (l0.c) function03.invoke()) != null) {
|
||||
return cVar;
|
||||
}
|
||||
D0 d02 = (D0) lazy.getValue();
|
||||
InterfaceC0200v interfaceC0200v = d02 instanceof InterfaceC0200v ? (InterfaceC0200v) d02 : null;
|
||||
return interfaceC0200v != null ? interfaceC0200v.getDefaultViewModelCreationExtras() : C0435a.f7312b;
|
||||
}
|
||||
}, new Function0<y0>() { // from class: com.adif.elcanomovil.uiStations.main.StationsPageCommercialFragment$special$$inlined$viewModels$default$5
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final y0 invoke() {
|
||||
y0 defaultViewModelProviderFactory;
|
||||
D0 d02 = (D0) lazy.getValue();
|
||||
InterfaceC0200v interfaceC0200v = d02 instanceof InterfaceC0200v ? (InterfaceC0200v) d02 : null;
|
||||
if (interfaceC0200v != null && (defaultViewModelProviderFactory = interfaceC0200v.getDefaultViewModelProviderFactory()) != null) {
|
||||
return defaultViewModelProviderFactory;
|
||||
}
|
||||
y0 defaultViewModelProviderFactory2 = K.this.getDefaultViewModelProviderFactory();
|
||||
Intrinsics.checkNotNullExpressionValue(defaultViewModelProviderFactory2, "defaultViewModelProviderFactory");
|
||||
return defaultViewModelProviderFactory2;
|
||||
}
|
||||
});
|
||||
this.onCommercialTap = new I1.b(this, 15);
|
||||
}
|
||||
|
||||
public static final /* synthetic */ FragmentStationsPageComercialBinding access$getBinding$p(StationsPageCommercialFragment stationsPageCommercialFragment) {
|
||||
return stationsPageCommercialFragment.binding;
|
||||
}
|
||||
|
||||
public static final /* synthetic */ StationsPageCommercialViewModel access$getViewModel(StationsPageCommercialFragment stationsPageCommercialFragment) {
|
||||
return stationsPageCommercialFragment.getViewModel();
|
||||
}
|
||||
|
||||
public static final /* synthetic */ void access$updateResults(StationsPageCommercialFragment stationsPageCommercialFragment, CommercialTabViewData commercialTabViewData) {
|
||||
stationsPageCommercialFragment.updateResults(commercialTabViewData);
|
||||
}
|
||||
|
||||
public static final /* synthetic */ void access$updateVisibility(StationsPageCommercialFragment stationsPageCommercialFragment, boolean z3) {
|
||||
stationsPageCommercialFragment.updateVisibility(z3);
|
||||
}
|
||||
|
||||
private final void configureViewListeners() {
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding = this.binding;
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding2 = null;
|
||||
if (fragmentStationsPageComercialBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding = null;
|
||||
}
|
||||
final int i = 0;
|
||||
fragmentStationsPageComercialBinding.groceryStore.headerLayout.setOnClickListener(new View.OnClickListener(this) { // from class: com.adif.elcanomovil.uiStations.main.e
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsPageCommercialFragment f5276b;
|
||||
|
||||
{
|
||||
this.f5276b = this;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i4 = i;
|
||||
StationsPageCommercialFragment stationsPageCommercialFragment = this.f5276b;
|
||||
switch (i4) {
|
||||
case 0:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$0(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 1:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$1(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 2:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$2(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 3:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$3(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 4:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$4(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 5:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$5(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
default:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$6(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding3 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding3 = null;
|
||||
}
|
||||
final int i4 = 1;
|
||||
fragmentStationsPageComercialBinding3.leisure.headerLayout.setOnClickListener(new View.OnClickListener(this) { // from class: com.adif.elcanomovil.uiStations.main.e
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsPageCommercialFragment f5276b;
|
||||
|
||||
{
|
||||
this.f5276b = this;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i42 = i4;
|
||||
StationsPageCommercialFragment stationsPageCommercialFragment = this.f5276b;
|
||||
switch (i42) {
|
||||
case 0:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$0(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 1:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$1(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 2:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$2(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 3:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$3(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 4:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$4(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 5:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$5(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
default:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$6(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding4 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding4 = null;
|
||||
}
|
||||
final int i5 = 2;
|
||||
fragmentStationsPageComercialBinding4.others.headerLayout.setOnClickListener(new View.OnClickListener(this) { // from class: com.adif.elcanomovil.uiStations.main.e
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsPageCommercialFragment f5276b;
|
||||
|
||||
{
|
||||
this.f5276b = this;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i42 = i5;
|
||||
StationsPageCommercialFragment stationsPageCommercialFragment = this.f5276b;
|
||||
switch (i42) {
|
||||
case 0:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$0(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 1:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$1(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 2:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$2(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 3:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$3(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 4:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$4(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 5:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$5(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
default:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$6(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding5 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding5 = null;
|
||||
}
|
||||
final int i6 = 3;
|
||||
fragmentStationsPageComercialBinding5.rentACar.headerLayout.setOnClickListener(new View.OnClickListener(this) { // from class: com.adif.elcanomovil.uiStations.main.e
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsPageCommercialFragment f5276b;
|
||||
|
||||
{
|
||||
this.f5276b = this;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i42 = i6;
|
||||
StationsPageCommercialFragment stationsPageCommercialFragment = this.f5276b;
|
||||
switch (i42) {
|
||||
case 0:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$0(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 1:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$1(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 2:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$2(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 3:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$3(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 4:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$4(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 5:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$5(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
default:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$6(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding6 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding6 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding6 = null;
|
||||
}
|
||||
final int i7 = 4;
|
||||
fragmentStationsPageComercialBinding6.restaurant.headerLayout.setOnClickListener(new View.OnClickListener(this) { // from class: com.adif.elcanomovil.uiStations.main.e
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsPageCommercialFragment f5276b;
|
||||
|
||||
{
|
||||
this.f5276b = this;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i42 = i7;
|
||||
StationsPageCommercialFragment stationsPageCommercialFragment = this.f5276b;
|
||||
switch (i42) {
|
||||
case 0:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$0(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 1:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$1(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 2:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$2(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 3:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$3(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 4:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$4(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 5:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$5(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
default:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$6(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding7 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding7 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding7 = null;
|
||||
}
|
||||
final int i8 = 5;
|
||||
fragmentStationsPageComercialBinding7.shop.headerLayout.setOnClickListener(new View.OnClickListener(this) { // from class: com.adif.elcanomovil.uiStations.main.e
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsPageCommercialFragment f5276b;
|
||||
|
||||
{
|
||||
this.f5276b = this;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i42 = i8;
|
||||
StationsPageCommercialFragment stationsPageCommercialFragment = this.f5276b;
|
||||
switch (i42) {
|
||||
case 0:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$0(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 1:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$1(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 2:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$2(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 3:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$3(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 4:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$4(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 5:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$5(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
default:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$6(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding8 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding8 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentStationsPageComercialBinding2 = fragmentStationsPageComercialBinding8;
|
||||
}
|
||||
final int i9 = 6;
|
||||
fragmentStationsPageComercialBinding2.souvenir.headerLayout.setOnClickListener(new View.OnClickListener(this) { // from class: com.adif.elcanomovil.uiStations.main.e
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsPageCommercialFragment f5276b;
|
||||
|
||||
{
|
||||
this.f5276b = this;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i42 = i9;
|
||||
StationsPageCommercialFragment stationsPageCommercialFragment = this.f5276b;
|
||||
switch (i42) {
|
||||
case 0:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$0(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 1:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$1(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 2:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$2(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 3:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$3(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 4:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$4(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
case 5:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$5(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
default:
|
||||
StationsPageCommercialFragment.configureViewListeners$lambda$6(stationsPageCommercialFragment, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static final void configureViewListeners$lambda$0(StationsPageCommercialFragment this$0, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding = this$0.binding;
|
||||
if (fragmentStationsPageComercialBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding = null;
|
||||
}
|
||||
ExpandableItemStationsPageCommercialBinding groceryStore = fragmentStationsPageComercialBinding.groceryStore;
|
||||
Intrinsics.checkNotNullExpressionValue(groceryStore, "groceryStore");
|
||||
this$0.setExpandableViewBehaviour(groceryStore);
|
||||
}
|
||||
|
||||
public static final void configureViewListeners$lambda$1(StationsPageCommercialFragment this$0, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding = this$0.binding;
|
||||
if (fragmentStationsPageComercialBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding = null;
|
||||
}
|
||||
ExpandableItemStationsPageCommercialBinding leisure = fragmentStationsPageComercialBinding.leisure;
|
||||
Intrinsics.checkNotNullExpressionValue(leisure, "leisure");
|
||||
this$0.setExpandableViewBehaviour(leisure);
|
||||
}
|
||||
|
||||
public static final void configureViewListeners$lambda$2(StationsPageCommercialFragment this$0, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding = this$0.binding;
|
||||
if (fragmentStationsPageComercialBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding = null;
|
||||
}
|
||||
ExpandableItemStationsPageCommercialBinding others = fragmentStationsPageComercialBinding.others;
|
||||
Intrinsics.checkNotNullExpressionValue(others, "others");
|
||||
this$0.setExpandableViewBehaviour(others);
|
||||
}
|
||||
|
||||
public static final void configureViewListeners$lambda$3(StationsPageCommercialFragment this$0, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding = this$0.binding;
|
||||
if (fragmentStationsPageComercialBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding = null;
|
||||
}
|
||||
ExpandableItemStationsPageCommercialBinding rentACar = fragmentStationsPageComercialBinding.rentACar;
|
||||
Intrinsics.checkNotNullExpressionValue(rentACar, "rentACar");
|
||||
this$0.setExpandableViewBehaviour(rentACar);
|
||||
}
|
||||
|
||||
public static final void configureViewListeners$lambda$4(StationsPageCommercialFragment this$0, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding = this$0.binding;
|
||||
if (fragmentStationsPageComercialBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding = null;
|
||||
}
|
||||
ExpandableItemStationsPageCommercialBinding restaurant = fragmentStationsPageComercialBinding.restaurant;
|
||||
Intrinsics.checkNotNullExpressionValue(restaurant, "restaurant");
|
||||
this$0.setExpandableViewBehaviour(restaurant);
|
||||
}
|
||||
|
||||
public static final void configureViewListeners$lambda$5(StationsPageCommercialFragment this$0, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding = this$0.binding;
|
||||
if (fragmentStationsPageComercialBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding = null;
|
||||
}
|
||||
ExpandableItemStationsPageCommercialBinding shop = fragmentStationsPageComercialBinding.shop;
|
||||
Intrinsics.checkNotNullExpressionValue(shop, "shop");
|
||||
this$0.setExpandableViewBehaviour(shop);
|
||||
}
|
||||
|
||||
public static final void configureViewListeners$lambda$6(StationsPageCommercialFragment this$0, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding = this$0.binding;
|
||||
if (fragmentStationsPageComercialBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding = null;
|
||||
}
|
||||
ExpandableItemStationsPageCommercialBinding souvenir = fragmentStationsPageComercialBinding.souvenir;
|
||||
Intrinsics.checkNotNullExpressionValue(souvenir, "souvenir");
|
||||
this$0.setExpandableViewBehaviour(souvenir);
|
||||
}
|
||||
|
||||
private final void configureViewObservers() {
|
||||
getViewModel().getViewData().e(getViewLifecycleOwner(), new C0191l(new f(this)));
|
||||
InterfaceC0266a navigation = getViewModel().getNavigation();
|
||||
J viewLifecycleOwner = getViewLifecycleOwner();
|
||||
Intrinsics.checkNotNullExpressionValue(viewLifecycleOwner, "getViewLifecycleOwner(...)");
|
||||
((b1.f) navigation).a(viewLifecycleOwner, new NavigationHandler(this));
|
||||
}
|
||||
|
||||
public final StationsPageCommercialViewModel getViewModel() {
|
||||
return (StationsPageCommercialViewModel) this.viewModel.getValue();
|
||||
}
|
||||
|
||||
private final void populateAndSetVisibilityOfSection(ExpandableItemStationsPageCommercialBinding expandableItemStationsPageCommercialBinding, List<Services> services) {
|
||||
CommercialAdapter commercialAdapter = new CommercialAdapter(this.onCommercialTap);
|
||||
expandableItemStationsPageCommercialBinding.rv.setAdapter(commercialAdapter);
|
||||
commercialAdapter.update(services);
|
||||
if (services == null || !(!services.isEmpty())) {
|
||||
expandableItemStationsPageCommercialBinding.headerLayout.setVisibility(8);
|
||||
} else {
|
||||
expandableItemStationsPageCommercialBinding.headerLayout.setVisibility(0);
|
||||
}
|
||||
}
|
||||
|
||||
private final void setExpandableViewBehaviour(ExpandableItemStationsPageCommercialBinding expandableItemStationsPageCommercialBinding) {
|
||||
if (expandableItemStationsPageCommercialBinding.rv.getVisibility() == 8) {
|
||||
B.a(expandableItemStationsPageCommercialBinding.rv, new C0023a());
|
||||
expandableItemStationsPageCommercialBinding.rv.setVisibility(0);
|
||||
expandableItemStationsPageCommercialBinding.headerArrow.setImageResource(R.drawable.ic_arrow_list_up);
|
||||
} else {
|
||||
B.a(expandableItemStationsPageCommercialBinding.rv, new C0023a());
|
||||
expandableItemStationsPageCommercialBinding.rv.setVisibility(8);
|
||||
expandableItemStationsPageCommercialBinding.headerArrow.setImageResource(R.drawable.ic_arrow_list_down);
|
||||
}
|
||||
}
|
||||
|
||||
public final void updateResults(CommercialTabViewData commercialTabViewData) {
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding = this.binding;
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding2 = null;
|
||||
if (fragmentStationsPageComercialBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding = null;
|
||||
}
|
||||
fragmentStationsPageComercialBinding.viewNotEmptyStation.setVisibility(0);
|
||||
OfferAdapter offerAdapter = new OfferAdapter(this.onCommercialTap);
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding3 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding3 = null;
|
||||
}
|
||||
fragmentStationsPageComercialBinding3.rvOffers.setAdapter(offerAdapter);
|
||||
offerAdapter.update(commercialTabViewData.getOffers());
|
||||
if (commercialTabViewData.getOffers() == null || !(!r0.isEmpty())) {
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding4 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding4 = null;
|
||||
}
|
||||
fragmentStationsPageComercialBinding4.rvOffers.setVisibility(8);
|
||||
} else {
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding5 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding5 = null;
|
||||
}
|
||||
fragmentStationsPageComercialBinding5.rvOffers.setVisibility(0);
|
||||
}
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding6 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding6 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding6 = null;
|
||||
}
|
||||
ExpandableItemStationsPageCommercialBinding groceryStore = fragmentStationsPageComercialBinding6.groceryStore;
|
||||
Intrinsics.checkNotNullExpressionValue(groceryStore, "groceryStore");
|
||||
populateAndSetVisibilityOfSection(groceryStore, commercialTabViewData.getGroceryStore());
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding7 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding7 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding7 = null;
|
||||
}
|
||||
ExpandableItemStationsPageCommercialBinding leisure = fragmentStationsPageComercialBinding7.leisure;
|
||||
Intrinsics.checkNotNullExpressionValue(leisure, "leisure");
|
||||
populateAndSetVisibilityOfSection(leisure, commercialTabViewData.getLeisure());
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding8 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding8 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding8 = null;
|
||||
}
|
||||
ExpandableItemStationsPageCommercialBinding others = fragmentStationsPageComercialBinding8.others;
|
||||
Intrinsics.checkNotNullExpressionValue(others, "others");
|
||||
populateAndSetVisibilityOfSection(others, commercialTabViewData.getOthers());
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding9 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding9 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding9 = null;
|
||||
}
|
||||
ExpandableItemStationsPageCommercialBinding rentACar = fragmentStationsPageComercialBinding9.rentACar;
|
||||
Intrinsics.checkNotNullExpressionValue(rentACar, "rentACar");
|
||||
populateAndSetVisibilityOfSection(rentACar, commercialTabViewData.getRentACar());
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding10 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding10 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding10 = null;
|
||||
}
|
||||
ExpandableItemStationsPageCommercialBinding restaurant = fragmentStationsPageComercialBinding10.restaurant;
|
||||
Intrinsics.checkNotNullExpressionValue(restaurant, "restaurant");
|
||||
populateAndSetVisibilityOfSection(restaurant, commercialTabViewData.getRestaurant());
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding11 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding11 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding11 = null;
|
||||
}
|
||||
ExpandableItemStationsPageCommercialBinding shop = fragmentStationsPageComercialBinding11.shop;
|
||||
Intrinsics.checkNotNullExpressionValue(shop, "shop");
|
||||
populateAndSetVisibilityOfSection(shop, commercialTabViewData.getShop());
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding12 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding12 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentStationsPageComercialBinding2 = fragmentStationsPageComercialBinding12;
|
||||
}
|
||||
ExpandableItemStationsPageCommercialBinding souvenir = fragmentStationsPageComercialBinding2.souvenir;
|
||||
Intrinsics.checkNotNullExpressionValue(souvenir, "souvenir");
|
||||
populateAndSetVisibilityOfSection(souvenir, commercialTabViewData.getSouvenir());
|
||||
}
|
||||
|
||||
public final void updateVisibility(boolean isEmptyVisible) {
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding = this.binding;
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding2 = null;
|
||||
if (fragmentStationsPageComercialBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding = null;
|
||||
}
|
||||
fragmentStationsPageComercialBinding.viewNotEmptyStation.setVisibility(isEmptyVisible ? 8 : 0);
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding3 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentStationsPageComercialBinding2 = fragmentStationsPageComercialBinding3;
|
||||
}
|
||||
fragmentStationsPageComercialBinding2.loadingEmptyOrErrorCommonView.setVisibility(isEmptyVisible ? 0 : 8);
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.u0
|
||||
public boolean onInterceptTouchEvent(RecyclerView rv, MotionEvent e4) {
|
||||
Intrinsics.checkNotNullParameter(rv, "rv");
|
||||
Intrinsics.checkNotNullParameter(e4, "e");
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.u0
|
||||
public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) {
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.u0
|
||||
public void onTouchEvent(RecyclerView rv, MotionEvent e4) {
|
||||
Intrinsics.checkNotNullParameter(rv, "rv");
|
||||
Intrinsics.checkNotNullParameter(e4, "e");
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onViewCreated(View view, Bundle savedInstanceState) {
|
||||
Intrinsics.checkNotNullParameter(view, "view");
|
||||
super.onViewCreated(view, savedInstanceState);
|
||||
FragmentStationsPageComercialBinding bind = FragmentStationsPageComercialBinding.bind(view);
|
||||
Intrinsics.checkNotNullExpressionValue(bind, "bind(...)");
|
||||
this.binding = bind;
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding = null;
|
||||
if (bind == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
bind = null;
|
||||
}
|
||||
bind.rvOffers.j(this);
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding2 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding2 = null;
|
||||
}
|
||||
fragmentStationsPageComercialBinding2.groceryStore.headerText.setText(getString(R.string.grocery_store));
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding3 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding3 = null;
|
||||
}
|
||||
fragmentStationsPageComercialBinding3.leisure.headerText.setText(getString(R.string.leisure));
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding4 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding4 = null;
|
||||
}
|
||||
fragmentStationsPageComercialBinding4.others.headerText.setText(getString(R.string.others));
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding5 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding5 = null;
|
||||
}
|
||||
fragmentStationsPageComercialBinding5.rentACar.headerText.setText(getString(R.string.rent_a_car));
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding6 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding6 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding6 = null;
|
||||
}
|
||||
fragmentStationsPageComercialBinding6.restaurant.headerText.setText(getString(R.string.restaurants));
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding7 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding7 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageComercialBinding7 = null;
|
||||
}
|
||||
fragmentStationsPageComercialBinding7.shop.headerText.setText(getString(R.string.shops));
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding8 = this.binding;
|
||||
if (fragmentStationsPageComercialBinding8 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentStationsPageComercialBinding = fragmentStationsPageComercialBinding8;
|
||||
}
|
||||
fragmentStationsPageComercialBinding.souvenir.headerText.setText(getString(R.string.souvenirs));
|
||||
configureViewObservers();
|
||||
configureViewListeners();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0082T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0002\u001a\u00020\u0001X\u0082T¢\u0006\u0002\n\u0000¨\u0006\u0003"}, d2 = {StationsPageCommercialFragmentKt.EXTERNAL_MANAGEMENT, "", StationsPageCommercialFragmentKt.NOT, "ui-stations_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsPageCommercialFragmentKt {
|
||||
private static final String EXTERNAL_MANAGEMENT = "EXTERNAL_MANAGEMENT";
|
||||
private static final String NOT = "NOT";
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.components.FragmentComponent;
|
||||
import dagger.hilt.codegen.OriginatingElement;
|
||||
import dagger.hilt.internal.GeneratedEntryPoint;
|
||||
|
||||
@OriginatingElement(topLevelClass = StationsPageCommercialFragment.class)
|
||||
@GeneratedEntryPoint
|
||||
@InstallIn({FragmentComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public interface StationsPageCommercialFragment_GeneratedInjector {
|
||||
void injectStationsPageCommercialFragment(StationsPageCommercialFragment stationsPageCommercialFragment);
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import C.w;
|
||||
import androidx.lifecycle.Q;
|
||||
import androidx.lifecycle.q0;
|
||||
import androidx.lifecycle.w0;
|
||||
import b1.InterfaceC0266a;
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.Navigation;
|
||||
import com.adif.elcanomovil.domain.entities.station.Location;
|
||||
import com.adif.elcanomovil.domain.entities.station.RequestedStationInfo;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.adif.elcanomovil.domain.entities.utils.Status;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetCurrentOneStationUseCase;
|
||||
import com.adif.elcanomovil.main.BottomNavFragmentDirections;
|
||||
import com.adif.elcanomovil.uiStations.entities.Services;
|
||||
import com.adif.elcanomovil.uiStations.main.CommercialTabViewDataWrapper;
|
||||
import com.adif.elcanomovil.uiStations.mappers.RequestedStationInfoMapper;
|
||||
import dagger.hilt.android.lifecycle.HiltViewModel;
|
||||
import java.util.List;
|
||||
import javax.inject.Inject;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.jvm.internal.StringCompanionObject;
|
||||
import kotlinx.coroutines.BuildersKt__Builders_commonKt;
|
||||
import kotlinx.coroutines.flow.MutableStateFlow;
|
||||
import kotlinx.coroutines.flow.StateFlowKt;
|
||||
|
||||
@HiltViewModel
|
||||
@Metadata(d1 = {"\u0000R\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0007\u0018\u00002\u00020\u0001B\u0011\b\u0007\u0012\u0006\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0004\u0010\u0005J\u001f\u0010\n\u001a\u00020\t2\u000e\u0010\b\u001a\n\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u0006H\u0002¢\u0006\u0004\b\n\u0010\u000bJ\u0015\u0010\u000e\u001a\u00020\t2\u0006\u0010\r\u001a\u00020\f¢\u0006\u0004\b\u000e\u0010\u000fR\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u0010R\u001c\u0010\u0013\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00120\u00118\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0013\u0010\u0014R\u001f\u0010\u0016\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00120\u00158\u0006¢\u0006\f\n\u0004\b\u0016\u0010\u0017\u001a\u0004\b\u0018\u0010\u0019R\u001a\u0010\u001c\u001a\b\u0012\u0004\u0012\u00020\u001b0\u001a8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u001c\u0010\u001dR\u001d\u0010\u001f\u001a\b\u0012\u0004\u0012\u00020\u001b0\u001e8\u0006¢\u0006\f\n\u0004\b\u001f\u0010 \u001a\u0004\b!\u0010\"¨\u0006#"}, d2 = {"Lcom/adif/elcanomovil/uiStations/main/StationsPageCommercialViewModel;", "Landroidx/lifecycle/w0;", "Lcom/adif/elcanomovil/domain/usecases/stations/GetCurrentOneStationUseCase;", "getCurrentOneStationUseCase", "<init>", "(Lcom/adif/elcanomovil/domain/usecases/stations/GetCurrentOneStationUseCase;)V", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;", "Lcom/adif/elcanomovil/domain/entities/station/RequestedStationInfo;", "requestedStationInfo", "", "mapToViewData", "(Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;)V", "Lcom/adif/elcanomovil/uiStations/entities/Services;", "service", "onCommercialTapped", "(Lcom/adif/elcanomovil/uiStations/entities/Services;)V", "Lcom/adif/elcanomovil/domain/usecases/stations/GetCurrentOneStationUseCase;", "Lkotlinx/coroutines/flow/MutableStateFlow;", "Lcom/adif/elcanomovil/uiStations/main/CommercialTabViewDataWrapper;", "_viewData", "Lkotlinx/coroutines/flow/MutableStateFlow;", "Landroidx/lifecycle/Q;", "viewData", "Landroidx/lifecycle/Q;", "getViewData", "()Landroidx/lifecycle/Q;", "Lb1/f;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation;", "navigationFlow", "Lb1/f;", "Lb1/a;", "navigation", "Lb1/a;", "getNavigation", "()Lb1/a;", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nStationsPageCommercialViewModel.kt\nKotlin\n*S Kotlin\n*F\n+ 1 StationsPageCommercialViewModel.kt\ncom/adif/elcanomovil/uiStations/main/StationsPageCommercialViewModel\n+ 2 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,86:1\n37#2,2:87\n37#2,2:89\n1#3:91\n*S KotlinDebug\n*F\n+ 1 StationsPageCommercialViewModel.kt\ncom/adif/elcanomovil/uiStations/main/StationsPageCommercialViewModel\n*L\n67#1:87,2\n69#1:89,2\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsPageCommercialViewModel extends w0 {
|
||||
private final MutableStateFlow<CommercialTabViewDataWrapper> _viewData;
|
||||
private final GetCurrentOneStationUseCase getCurrentOneStationUseCase;
|
||||
private final InterfaceC0266a navigation;
|
||||
private final b1.f navigationFlow;
|
||||
private final Q viewData;
|
||||
|
||||
@Inject
|
||||
public StationsPageCommercialViewModel(GetCurrentOneStationUseCase getCurrentOneStationUseCase) {
|
||||
Intrinsics.checkNotNullParameter(getCurrentOneStationUseCase, "getCurrentOneStationUseCase");
|
||||
this.getCurrentOneStationUseCase = getCurrentOneStationUseCase;
|
||||
MutableStateFlow<CommercialTabViewDataWrapper> MutableStateFlow = StateFlowKt.MutableStateFlow(null);
|
||||
this._viewData = MutableStateFlow;
|
||||
this.viewData = q0.a(MutableStateFlow, null, 3);
|
||||
b1.f fVar = new b1.f();
|
||||
this.navigationFlow = fVar;
|
||||
this.navigation = fVar;
|
||||
BuildersKt__Builders_commonKt.launch$default(q0.j(this), null, null, new g(this, null), 3, null);
|
||||
}
|
||||
|
||||
public static final /* synthetic */ void access$mapToViewData(StationsPageCommercialViewModel stationsPageCommercialViewModel, AsyncResult asyncResult) {
|
||||
stationsPageCommercialViewModel.mapToViewData(asyncResult);
|
||||
}
|
||||
|
||||
public final void mapToViewData(AsyncResult<RequestedStationInfo> requestedStationInfo) {
|
||||
if ((requestedStationInfo != null ? requestedStationInfo.getStatus() : null) == Status.ERROR) {
|
||||
this._viewData.setValue(CommercialTabViewDataWrapper.Error.INSTANCE);
|
||||
return;
|
||||
}
|
||||
if ((requestedStationInfo != null ? requestedStationInfo.getStatus() : null) == Status.LOADING) {
|
||||
this._viewData.setValue(CommercialTabViewDataWrapper.Loading.INSTANCE);
|
||||
} else {
|
||||
this._viewData.setValue(new CommercialTabViewDataWrapper.Data(RequestedStationInfoMapper.INSTANCE.mapToCommercialTabViewData(requestedStationInfo != null ? requestedStationInfo.getData() : null)));
|
||||
}
|
||||
}
|
||||
|
||||
public final InterfaceC0266a getNavigation() {
|
||||
return this.navigation;
|
||||
}
|
||||
|
||||
public final Q getViewData() {
|
||||
return this.viewData;
|
||||
}
|
||||
|
||||
public final void onCommercialTapped(Services service) {
|
||||
String str;
|
||||
Intrinsics.checkNotNullParameter(service, "service");
|
||||
b1.f fVar = this.navigationFlow;
|
||||
BottomNavFragmentDirections.Companion companion = BottomNavFragmentDirections.INSTANCE;
|
||||
String logo = service.getLogo();
|
||||
String name = service.getName();
|
||||
String phone = service.getPhone();
|
||||
String description = service.getDescription();
|
||||
boolean accessible = service.getAccessible();
|
||||
List<String> paymentWay = service.getPaymentWay();
|
||||
String[] strArr = paymentWay != null ? (String[]) paymentWay.toArray(new String[0]) : null;
|
||||
String offerDescription = service.getOfferDescription();
|
||||
List<String> correspondences = service.getCorrespondences();
|
||||
String[] strArr2 = correspondences != null ? (String[]) correspondences.toArray(new String[0]) : null;
|
||||
String web = service.getWeb();
|
||||
Location location = service.getLocation();
|
||||
if (location != null) {
|
||||
StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
|
||||
str = w.s(new Object[]{location.getLatitude(), location.getLongitude()}, 2, "%s,%s", "format(...)");
|
||||
} else {
|
||||
str = null;
|
||||
}
|
||||
fVar.b(new Navigation.RootDirection(companion.toStationsAlertDialog(logo, name, phone, description, accessible, strArr, offerDescription, strArr2, web, str, service.getAccessibleLabel(), service.getOpeningHours(), service.getAndroidLink()), null, 2, null));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetCurrentOneStationUseCase;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsPageCommercialViewModel_Factory implements Factory<StationsPageCommercialViewModel> {
|
||||
private final Provider<GetCurrentOneStationUseCase> getCurrentOneStationUseCaseProvider;
|
||||
|
||||
public StationsPageCommercialViewModel_Factory(Provider<GetCurrentOneStationUseCase> provider) {
|
||||
this.getCurrentOneStationUseCaseProvider = provider;
|
||||
}
|
||||
|
||||
public static StationsPageCommercialViewModel_Factory create(Provider<GetCurrentOneStationUseCase> provider) {
|
||||
return new StationsPageCommercialViewModel_Factory(provider);
|
||||
}
|
||||
|
||||
public static StationsPageCommercialViewModel newInstance(GetCurrentOneStationUseCase getCurrentOneStationUseCase) {
|
||||
return new StationsPageCommercialViewModel(getCurrentOneStationUseCase);
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public StationsPageCommercialViewModel get() {
|
||||
return newInstance(this.getCurrentOneStationUseCaseProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import androidx.lifecycle.w0;
|
||||
import dagger.Binds;
|
||||
import dagger.Module;
|
||||
import dagger.Provides;
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.components.ActivityRetainedComponent;
|
||||
import dagger.hilt.android.components.ViewModelComponent;
|
||||
import dagger.hilt.android.internal.lifecycle.HiltViewModelMap;
|
||||
import dagger.hilt.codegen.OriginatingElement;
|
||||
import dagger.multibindings.IntoMap;
|
||||
import dagger.multibindings.IntoSet;
|
||||
import dagger.multibindings.StringKey;
|
||||
|
||||
@OriginatingElement(topLevelClass = StationsPageCommercialViewModel.class)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsPageCommercialViewModel_HiltModules {
|
||||
|
||||
@Module
|
||||
@InstallIn({ViewModelComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public static abstract class BindsModule {
|
||||
private BindsModule() {
|
||||
}
|
||||
|
||||
@Binds
|
||||
@StringKey("com.adif.elcanomovil.uiStations.main.StationsPageCommercialViewModel")
|
||||
@HiltViewModelMap
|
||||
@IntoMap
|
||||
public abstract w0 binds(StationsPageCommercialViewModel stationsPageCommercialViewModel);
|
||||
}
|
||||
|
||||
@Module
|
||||
@InstallIn({ActivityRetainedComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class KeyModule {
|
||||
private KeyModule() {
|
||||
}
|
||||
|
||||
@Provides
|
||||
@HiltViewModelMap.KeySet
|
||||
@IntoSet
|
||||
public static String provide() {
|
||||
return "com.adif.elcanomovil.uiStations.main.StationsPageCommercialViewModel";
|
||||
}
|
||||
}
|
||||
|
||||
private StationsPageCommercialViewModel_HiltModules() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import com.adif.elcanomovil.uiStations.main.StationsPageCommercialViewModel_HiltModules;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.internal.lifecycle.HiltViewModelMap.KeySet"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsPageCommercialViewModel_HiltModules_KeyModule_ProvideFactory implements Factory<String> {
|
||||
public static StationsPageCommercialViewModel_HiltModules_KeyModule_ProvideFactory create() {
|
||||
return h.f5280a;
|
||||
}
|
||||
|
||||
public static String provide() {
|
||||
return (String) Preconditions.checkNotNullFromProvides(StationsPageCommercialViewModel_HiltModules.KeyModule.provide());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public String get() {
|
||||
return provide();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,9 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0007\n\u0000\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0082T¢\u0006\u0002\n\u0000¨\u0006\u0002"}, d2 = {"DEFAULT_ZOOM", "", "ui-stations_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsPageServicesFragmentKt {
|
||||
private static final float DEFAULT_ZOOM = 14.0f;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.components.FragmentComponent;
|
||||
import dagger.hilt.codegen.OriginatingElement;
|
||||
import dagger.hilt.internal.GeneratedEntryPoint;
|
||||
|
||||
@OriginatingElement(topLevelClass = StationsPageServicesFragment.class)
|
||||
@GeneratedEntryPoint
|
||||
@InstallIn({FragmentComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public interface StationsPageServicesFragment_GeneratedInjector {
|
||||
void injectStationsPageServicesFragment(StationsPageServicesFragment stationsPageServicesFragment);
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,42 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import com.adif.elcanomovil.domain.usecases.favorites.GetStationIsFavoriteUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.favorites.RemoveFavoriteStationUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.favorites.SaveFavoriteStationUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetCurrentOneStationUseCase;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsPageServicesViewModel_Factory implements Factory<StationsPageServicesViewModel> {
|
||||
private final Provider<GetCurrentOneStationUseCase> getCurrentOneStationUseCaseProvider;
|
||||
private final Provider<GetStationIsFavoriteUseCase> getStationIsFavoriteUseCaseProvider;
|
||||
private final Provider<RemoveFavoriteStationUseCase> removeFavoriteStationUseCaseProvider;
|
||||
private final Provider<SaveFavoriteStationUseCase> saveFavoriteStationUseCaseProvider;
|
||||
|
||||
public StationsPageServicesViewModel_Factory(Provider<GetCurrentOneStationUseCase> provider, Provider<SaveFavoriteStationUseCase> provider2, Provider<GetStationIsFavoriteUseCase> provider3, Provider<RemoveFavoriteStationUseCase> provider4) {
|
||||
this.getCurrentOneStationUseCaseProvider = provider;
|
||||
this.saveFavoriteStationUseCaseProvider = provider2;
|
||||
this.getStationIsFavoriteUseCaseProvider = provider3;
|
||||
this.removeFavoriteStationUseCaseProvider = provider4;
|
||||
}
|
||||
|
||||
public static StationsPageServicesViewModel_Factory create(Provider<GetCurrentOneStationUseCase> provider, Provider<SaveFavoriteStationUseCase> provider2, Provider<GetStationIsFavoriteUseCase> provider3, Provider<RemoveFavoriteStationUseCase> provider4) {
|
||||
return new StationsPageServicesViewModel_Factory(provider, provider2, provider3, provider4);
|
||||
}
|
||||
|
||||
public static StationsPageServicesViewModel newInstance(GetCurrentOneStationUseCase getCurrentOneStationUseCase, SaveFavoriteStationUseCase saveFavoriteStationUseCase, GetStationIsFavoriteUseCase getStationIsFavoriteUseCase, RemoveFavoriteStationUseCase removeFavoriteStationUseCase) {
|
||||
return new StationsPageServicesViewModel(getCurrentOneStationUseCase, saveFavoriteStationUseCase, getStationIsFavoriteUseCase, removeFavoriteStationUseCase);
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public StationsPageServicesViewModel get() {
|
||||
return newInstance(this.getCurrentOneStationUseCaseProvider.get(), this.saveFavoriteStationUseCaseProvider.get(), this.getStationIsFavoriteUseCaseProvider.get(), this.removeFavoriteStationUseCaseProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import androidx.lifecycle.w0;
|
||||
import dagger.Binds;
|
||||
import dagger.Module;
|
||||
import dagger.Provides;
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.components.ActivityRetainedComponent;
|
||||
import dagger.hilt.android.components.ViewModelComponent;
|
||||
import dagger.hilt.android.internal.lifecycle.HiltViewModelMap;
|
||||
import dagger.hilt.codegen.OriginatingElement;
|
||||
import dagger.multibindings.IntoMap;
|
||||
import dagger.multibindings.IntoSet;
|
||||
import dagger.multibindings.StringKey;
|
||||
|
||||
@OriginatingElement(topLevelClass = StationsPageServicesViewModel.class)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsPageServicesViewModel_HiltModules {
|
||||
|
||||
@Module
|
||||
@InstallIn({ViewModelComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public static abstract class BindsModule {
|
||||
private BindsModule() {
|
||||
}
|
||||
|
||||
@Binds
|
||||
@StringKey("com.adif.elcanomovil.uiStations.main.StationsPageServicesViewModel")
|
||||
@HiltViewModelMap
|
||||
@IntoMap
|
||||
public abstract w0 binds(StationsPageServicesViewModel stationsPageServicesViewModel);
|
||||
}
|
||||
|
||||
@Module
|
||||
@InstallIn({ActivityRetainedComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class KeyModule {
|
||||
private KeyModule() {
|
||||
}
|
||||
|
||||
@Provides
|
||||
@HiltViewModelMap.KeySet
|
||||
@IntoSet
|
||||
public static String provide() {
|
||||
return "com.adif.elcanomovil.uiStations.main.StationsPageServicesViewModel";
|
||||
}
|
||||
}
|
||||
|
||||
private StationsPageServicesViewModel_HiltModules() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import com.adif.elcanomovil.uiStations.main.StationsPageServicesViewModel_HiltModules;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.internal.lifecycle.HiltViewModelMap.KeySet"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsPageServicesViewModel_HiltModules_KeyModule_ProvideFactory implements Factory<String> {
|
||||
public static StationsPageServicesViewModel_HiltModules_KeyModule_ProvideFactory create() {
|
||||
return o.f5293a;
|
||||
}
|
||||
|
||||
public static String provide() {
|
||||
return (String) Preconditions.checkNotNullFromProvides(StationsPageServicesViewModel_HiltModules.KeyModule.provide());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public String get() {
|
||||
return provide();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import androidx.lifecycle.Q;
|
||||
import androidx.lifecycle.q0;
|
||||
import androidx.lifecycle.w0;
|
||||
import b1.InterfaceC0266a;
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.Navigation;
|
||||
import com.adif.elcanomovil.domain.entities.StationServiceType;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetLastVisitedStationUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetOneStationUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetStationByIdUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.SetLastVisitedStationUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.tabs.TabDataHolder;
|
||||
import com.adif.elcanomovil.main.BottomNavFragmentDirections;
|
||||
import com.adif.elcanomovil.uiStations.entities.StationHeaderData;
|
||||
import dagger.hilt.android.lifecycle.HiltViewModel;
|
||||
import javax.inject.Inject;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.BuildersKt__Builders_commonKt;
|
||||
import kotlinx.coroutines.flow.MutableStateFlow;
|
||||
import kotlinx.coroutines.flow.StateFlowKt;
|
||||
|
||||
@HiltViewModel
|
||||
@Metadata(d1 = {"\u0000p\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\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0007\b\u0007\u0018\u00002\u00020\u0001B1\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¢\u0006\u0004\b\f\u0010\rJ\r\u0010\u000f\u001a\u00020\u000e¢\u0006\u0004\b\u000f\u0010\u0010J\r\u0010\u0011\u001a\u00020\u000e¢\u0006\u0004\b\u0011\u0010\u0010J\u0015\u0010\u0014\u001a\u00020\u000e2\u0006\u0010\u0013\u001a\u00020\u0012¢\u0006\u0004\b\u0014\u0010\u0015J\u0015\u0010\u0018\u001a\u00020\u000e2\u0006\u0010\u0017\u001a\u00020\u0016¢\u0006\u0004\b\u0018\u0010\u0019R\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u001aR\u0014\u0010\u0005\u001a\u00020\u00048\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0005\u0010\u001bR\u0014\u0010\u0007\u001a\u00020\u00068\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0007\u0010\u001cR\u0014\u0010\t\u001a\u00020\b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\t\u0010\u001dR\u0014\u0010\u000b\u001a\u00020\n8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000b\u0010\u001eR\u001a\u0010!\u001a\b\u0012\u0004\u0012\u00020 0\u001f8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b!\u0010\"R\u001a\u0010%\u001a\b\u0012\u0004\u0012\u00020$0#8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b%\u0010&R\u001a\u0010(\u001a\b\u0012\u0004\u0012\u00020'0#8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b(\u0010&R\u0016\u0010)\u001a\u00020'8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b)\u0010*R\u001d\u0010,\u001a\b\u0012\u0004\u0012\u00020 0+8\u0006¢\u0006\f\n\u0004\b,\u0010-\u001a\u0004\b.\u0010/R\u001d\u00101\u001a\b\u0012\u0004\u0012\u00020$008\u0006¢\u0006\f\n\u0004\b1\u00102\u001a\u0004\b3\u00104R\u001d\u00105\u001a\b\u0012\u0004\u0012\u00020'008\u0006¢\u0006\f\n\u0004\b5\u00102\u001a\u0004\b6\u00104¨\u00067"}, d2 = {"Lcom/adif/elcanomovil/uiStations/main/StationsViewModel;", "Landroidx/lifecycle/w0;", "Lcom/adif/elcanomovil/domain/usecases/stations/GetOneStationUseCase;", "getOneStationUseCase", "Lcom/adif/elcanomovil/domain/usecases/stations/GetStationByIdUseCase;", "getStationByIdUseCase", "Lcom/adif/elcanomovil/domain/usecases/stations/GetLastVisitedStationUseCase;", "getLastVisitedStationUseCase", "Lcom/adif/elcanomovil/domain/usecases/stations/SetLastVisitedStationUseCase;", "setLastVisitedStationUseCase", "Lcom/adif/elcanomovil/domain/usecases/tabs/TabDataHolder;", "tabDataHolder", "<init>", "(Lcom/adif/elcanomovil/domain/usecases/stations/GetOneStationUseCase;Lcom/adif/elcanomovil/domain/usecases/stations/GetStationByIdUseCase;Lcom/adif/elcanomovil/domain/usecases/stations/GetLastVisitedStationUseCase;Lcom/adif/elcanomovil/domain/usecases/stations/SetLastVisitedStationUseCase;Lcom/adif/elcanomovil/domain/usecases/tabs/TabDataHolder;)V", "", "handleOnCreate", "()V", "handleSearchStationTap", "", "stationCode", "handleSelectedStation", "(Ljava/lang/String;)V", "", "position", "handleTabSelected", "(I)V", "Lcom/adif/elcanomovil/domain/usecases/stations/GetOneStationUseCase;", "Lcom/adif/elcanomovil/domain/usecases/stations/GetStationByIdUseCase;", "Lcom/adif/elcanomovil/domain/usecases/stations/GetLastVisitedStationUseCase;", "Lcom/adif/elcanomovil/domain/usecases/stations/SetLastVisitedStationUseCase;", "Lcom/adif/elcanomovil/domain/usecases/tabs/TabDataHolder;", "Lkotlinx/coroutines/flow/MutableStateFlow;", "Lcom/adif/elcanomovil/uiStations/entities/StationHeaderData;", "viewDataFlow", "Lkotlinx/coroutines/flow/MutableStateFlow;", "Lb1/f;", "Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation;", "navigationFlow", "Lb1/f;", "Lcom/adif/elcanomovil/domain/entities/StationServiceType;", "selectedTabFlow", "currentTab", "Lcom/adif/elcanomovil/domain/entities/StationServiceType;", "Landroidx/lifecycle/Q;", "viewData", "Landroidx/lifecycle/Q;", "getViewData", "()Landroidx/lifecycle/Q;", "Lb1/a;", "navigation", "Lb1/a;", "getNavigation", "()Lb1/a;", "selectedTab", "getSelectedTab", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsViewModel extends w0 {
|
||||
private StationServiceType currentTab;
|
||||
private final GetLastVisitedStationUseCase getLastVisitedStationUseCase;
|
||||
private final GetOneStationUseCase getOneStationUseCase;
|
||||
private final GetStationByIdUseCase getStationByIdUseCase;
|
||||
private final InterfaceC0266a navigation;
|
||||
private final b1.f navigationFlow;
|
||||
private final InterfaceC0266a selectedTab;
|
||||
private final b1.f selectedTabFlow;
|
||||
private final SetLastVisitedStationUseCase setLastVisitedStationUseCase;
|
||||
private final TabDataHolder tabDataHolder;
|
||||
private final Q viewData;
|
||||
private final MutableStateFlow<StationHeaderData> viewDataFlow;
|
||||
|
||||
@Inject
|
||||
public StationsViewModel(GetOneStationUseCase getOneStationUseCase, GetStationByIdUseCase getStationByIdUseCase, GetLastVisitedStationUseCase getLastVisitedStationUseCase, SetLastVisitedStationUseCase setLastVisitedStationUseCase, TabDataHolder tabDataHolder) {
|
||||
Intrinsics.checkNotNullParameter(getOneStationUseCase, "getOneStationUseCase");
|
||||
Intrinsics.checkNotNullParameter(getStationByIdUseCase, "getStationByIdUseCase");
|
||||
Intrinsics.checkNotNullParameter(getLastVisitedStationUseCase, "getLastVisitedStationUseCase");
|
||||
Intrinsics.checkNotNullParameter(setLastVisitedStationUseCase, "setLastVisitedStationUseCase");
|
||||
Intrinsics.checkNotNullParameter(tabDataHolder, "tabDataHolder");
|
||||
this.getOneStationUseCase = getOneStationUseCase;
|
||||
this.getStationByIdUseCase = getStationByIdUseCase;
|
||||
this.getLastVisitedStationUseCase = getLastVisitedStationUseCase;
|
||||
this.setLastVisitedStationUseCase = setLastVisitedStationUseCase;
|
||||
this.tabDataHolder = tabDataHolder;
|
||||
MutableStateFlow<StationHeaderData> MutableStateFlow = StateFlowKt.MutableStateFlow(new StationHeaderData(null, null, null, 7, null));
|
||||
this.viewDataFlow = MutableStateFlow;
|
||||
b1.f fVar = new b1.f();
|
||||
this.navigationFlow = fVar;
|
||||
b1.f fVar2 = new b1.f();
|
||||
this.selectedTabFlow = fVar2;
|
||||
this.currentTab = StationServiceType.SERVICES;
|
||||
this.viewData = q0.a(MutableStateFlow, q0.j(this).f7787a, 2);
|
||||
this.navigation = fVar;
|
||||
this.selectedTab = fVar2;
|
||||
}
|
||||
|
||||
public final InterfaceC0266a getNavigation() {
|
||||
return this.navigation;
|
||||
}
|
||||
|
||||
public final InterfaceC0266a getSelectedTab() {
|
||||
return this.selectedTab;
|
||||
}
|
||||
|
||||
public final Q getViewData() {
|
||||
return this.viewData;
|
||||
}
|
||||
|
||||
public final void handleOnCreate() {
|
||||
TabDataHolder.TabData popIfAvailable = this.tabDataHolder.popIfAvailable();
|
||||
TabDataHolder.TabData.Stations stations = popIfAvailable instanceof TabDataHolder.TabData.Stations ? (TabDataHolder.TabData.Stations) popIfAvailable : null;
|
||||
if (stations == null) {
|
||||
BuildersKt__Builders_commonKt.launch$default(q0.j(this), null, null, new p(this, null), 3, null);
|
||||
} else {
|
||||
this.selectedTabFlow.b(stations.getType());
|
||||
handleSelectedStation(stations.getStation());
|
||||
}
|
||||
}
|
||||
|
||||
public final void handleSearchStationTap() {
|
||||
this.navigationFlow.b(new Navigation.RootDirection(BottomNavFragmentDirections.INSTANCE.toSelectStationFragment("STATION"), null, 2, null));
|
||||
}
|
||||
|
||||
public final void handleSelectedStation(String stationCode) {
|
||||
Intrinsics.checkNotNullParameter(stationCode, "stationCode");
|
||||
BuildersKt__Builders_commonKt.launch$default(q0.j(this), null, null, new q(this, stationCode, null), 3, null);
|
||||
}
|
||||
|
||||
public final void handleTabSelected(int position) {
|
||||
StationServiceType fromInt = StationServiceType.INSTANCE.fromInt(position);
|
||||
if (fromInt == null) {
|
||||
fromInt = StationServiceType.SERVICES;
|
||||
}
|
||||
this.currentTab = fromInt;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetLastVisitedStationUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetOneStationUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetStationByIdUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.SetLastVisitedStationUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.tabs.TabDataHolder;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsViewModel_Factory implements Factory<StationsViewModel> {
|
||||
private final Provider<GetLastVisitedStationUseCase> getLastVisitedStationUseCaseProvider;
|
||||
private final Provider<GetOneStationUseCase> getOneStationUseCaseProvider;
|
||||
private final Provider<GetStationByIdUseCase> getStationByIdUseCaseProvider;
|
||||
private final Provider<SetLastVisitedStationUseCase> setLastVisitedStationUseCaseProvider;
|
||||
private final Provider<TabDataHolder> tabDataHolderProvider;
|
||||
|
||||
public StationsViewModel_Factory(Provider<GetOneStationUseCase> provider, Provider<GetStationByIdUseCase> provider2, Provider<GetLastVisitedStationUseCase> provider3, Provider<SetLastVisitedStationUseCase> provider4, Provider<TabDataHolder> provider5) {
|
||||
this.getOneStationUseCaseProvider = provider;
|
||||
this.getStationByIdUseCaseProvider = provider2;
|
||||
this.getLastVisitedStationUseCaseProvider = provider3;
|
||||
this.setLastVisitedStationUseCaseProvider = provider4;
|
||||
this.tabDataHolderProvider = provider5;
|
||||
}
|
||||
|
||||
public static StationsViewModel_Factory create(Provider<GetOneStationUseCase> provider, Provider<GetStationByIdUseCase> provider2, Provider<GetLastVisitedStationUseCase> provider3, Provider<SetLastVisitedStationUseCase> provider4, Provider<TabDataHolder> provider5) {
|
||||
return new StationsViewModel_Factory(provider, provider2, provider3, provider4, provider5);
|
||||
}
|
||||
|
||||
public static StationsViewModel newInstance(GetOneStationUseCase getOneStationUseCase, GetStationByIdUseCase getStationByIdUseCase, GetLastVisitedStationUseCase getLastVisitedStationUseCase, SetLastVisitedStationUseCase setLastVisitedStationUseCase, TabDataHolder tabDataHolder) {
|
||||
return new StationsViewModel(getOneStationUseCase, getStationByIdUseCase, getLastVisitedStationUseCase, setLastVisitedStationUseCase, tabDataHolder);
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public StationsViewModel get() {
|
||||
return newInstance(this.getOneStationUseCaseProvider.get(), this.getStationByIdUseCaseProvider.get(), this.getLastVisitedStationUseCaseProvider.get(), this.setLastVisitedStationUseCaseProvider.get(), this.tabDataHolderProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import androidx.lifecycle.w0;
|
||||
import dagger.Binds;
|
||||
import dagger.Module;
|
||||
import dagger.Provides;
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.components.ActivityRetainedComponent;
|
||||
import dagger.hilt.android.components.ViewModelComponent;
|
||||
import dagger.hilt.android.internal.lifecycle.HiltViewModelMap;
|
||||
import dagger.hilt.codegen.OriginatingElement;
|
||||
import dagger.multibindings.IntoMap;
|
||||
import dagger.multibindings.IntoSet;
|
||||
import dagger.multibindings.StringKey;
|
||||
|
||||
@OriginatingElement(topLevelClass = StationsViewModel.class)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsViewModel_HiltModules {
|
||||
|
||||
@Module
|
||||
@InstallIn({ViewModelComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public static abstract class BindsModule {
|
||||
private BindsModule() {
|
||||
}
|
||||
|
||||
@Binds
|
||||
@StringKey("com.adif.elcanomovil.uiStations.main.StationsViewModel")
|
||||
@HiltViewModelMap
|
||||
@IntoMap
|
||||
public abstract w0 binds(StationsViewModel stationsViewModel);
|
||||
}
|
||||
|
||||
@Module
|
||||
@InstallIn({ActivityRetainedComponent.class})
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class KeyModule {
|
||||
private KeyModule() {
|
||||
}
|
||||
|
||||
@Provides
|
||||
@HiltViewModelMap.KeySet
|
||||
@IntoSet
|
||||
public static String provide() {
|
||||
return "com.adif.elcanomovil.uiStations.main.StationsViewModel";
|
||||
}
|
||||
}
|
||||
|
||||
private StationsViewModel_HiltModules() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import com.adif.elcanomovil.uiStations.main.StationsViewModel_HiltModules;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.internal.lifecycle.HiltViewModelMap.KeySet"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsViewModel_HiltModules_KeyModule_ProvideFactory implements Factory<String> {
|
||||
public static StationsViewModel_HiltModules_KeyModule_ProvideFactory create() {
|
||||
return r.f5301a;
|
||||
}
|
||||
|
||||
public static String provide() {
|
||||
return (String) Preconditions.checkNotNullFromProvides(StationsViewModel_HiltModules.KeyModule.provide());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public String get() {
|
||||
return provide();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import android.content.Context;
|
||||
import android.widget.TextView;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
import com.adif.elcanomovil.uiStations.databinding.FragmentStationsBinding;
|
||||
import com.adif.elcanomovil.uiStations.entities.StationHeaderData;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class a extends Lambda implements Function1 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ FragmentStationsBinding f5269a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsFragment f5270b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public a(FragmentStationsBinding fragmentStationsBinding, StationsFragment stationsFragment) {
|
||||
super(1);
|
||||
this.f5269a = fragmentStationsBinding;
|
||||
this.f5270b = stationsFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
StationHeaderData stationHeaderData = (StationHeaderData) obj;
|
||||
int length = stationHeaderData.getStationName().length();
|
||||
StationsFragment stationsFragment = this.f5270b;
|
||||
FragmentStationsBinding fragmentStationsBinding = this.f5269a;
|
||||
if (length == 0) {
|
||||
fragmentStationsBinding.stationsStationName.setTextColor(stationsFragment.requireContext().getColor(R.color.colorTextSecondaryGrey));
|
||||
TextView textView = fragmentStationsBinding.stationsStationName;
|
||||
Context context = stationsFragment.getContext();
|
||||
textView.setText(context != null ? context.getString(R.string.select_station) : null);
|
||||
} else {
|
||||
fragmentStationsBinding.stationsStationName.setTextColor(stationsFragment.requireContext().getColor(R.color.white));
|
||||
fragmentStationsBinding.stationsStationName.setText(stationHeaderData.getStationName());
|
||||
fragmentStationsBinding.stationsStationName.setContentDescription(stationHeaderData.getStationLongName());
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import com.adif.elcanomovil.commonViews.EmptyCirculationsState;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
import com.adif.elcanomovil.uiStations.databinding.FragmentStationsPageActivitiesBinding;
|
||||
import com.adif.elcanomovil.uiStations.entities.ActivitiesTabViewData;
|
||||
import com.adif.elcanomovil.uiStations.entities.Activity;
|
||||
import com.adif.elcanomovil.uiStations.main.ActivitiesTabViewDataWrapper;
|
||||
import java.util.List;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class b extends Lambda implements Function1 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsPageActivitiesFragment f5271a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public b(StationsPageActivitiesFragment stationsPageActivitiesFragment) {
|
||||
super(1);
|
||||
this.f5271a = stationsPageActivitiesFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
Unit unit;
|
||||
ActivitiesTabViewDataWrapper activitiesTabViewDataWrapper = (ActivitiesTabViewDataWrapper) obj;
|
||||
boolean z3 = activitiesTabViewDataWrapper instanceof ActivitiesTabViewDataWrapper.Data;
|
||||
StationsPageActivitiesFragment stationsPageActivitiesFragment = this.f5271a;
|
||||
FragmentStationsPageActivitiesBinding fragmentStationsPageActivitiesBinding = null;
|
||||
if (z3) {
|
||||
ActivitiesTabViewData results = ((ActivitiesTabViewDataWrapper.Data) activitiesTabViewDataWrapper).getResults();
|
||||
if (results != null) {
|
||||
List<Activity> activities = results.getActivities();
|
||||
if (activities == null || !activities.isEmpty()) {
|
||||
FragmentStationsPageActivitiesBinding access$getBinding$p = StationsPageActivitiesFragment.access$getBinding$p(stationsPageActivitiesFragment);
|
||||
if (access$getBinding$p == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
access$getBinding$p = null;
|
||||
}
|
||||
access$getBinding$p.loadingEmptyOrErrorCommonView.update(EmptyCirculationsState.EmptyDefault.INSTANCE);
|
||||
StationsPageActivitiesFragment.access$updateVisibility(stationsPageActivitiesFragment, false);
|
||||
StationsPageActivitiesFragment.access$updateResults(stationsPageActivitiesFragment, results);
|
||||
} else {
|
||||
FragmentStationsPageActivitiesBinding access$getBinding$p2 = StationsPageActivitiesFragment.access$getBinding$p(stationsPageActivitiesFragment);
|
||||
if (access$getBinding$p2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
access$getBinding$p2 = null;
|
||||
}
|
||||
access$getBinding$p2.loadingEmptyOrErrorCommonView.update(new EmptyCirculationsState.NoResults(0, R.string.not_activities_zone, 1, null));
|
||||
StationsPageActivitiesFragment.access$updateVisibility(stationsPageActivitiesFragment, true);
|
||||
}
|
||||
unit = Unit.INSTANCE;
|
||||
} else {
|
||||
unit = null;
|
||||
}
|
||||
if (unit == null) {
|
||||
FragmentStationsPageActivitiesBinding access$getBinding$p3 = StationsPageActivitiesFragment.access$getBinding$p(stationsPageActivitiesFragment);
|
||||
if (access$getBinding$p3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentStationsPageActivitiesBinding = access$getBinding$p3;
|
||||
}
|
||||
fragmentStationsPageActivitiesBinding.loadingEmptyOrErrorCommonView.update(new EmptyCirculationsState.NoResults(R.string.stations_no_results_title, R.string.stations_no_results_message));
|
||||
StationsPageActivitiesFragment.access$updateVisibility(stationsPageActivitiesFragment, true);
|
||||
}
|
||||
} else if (activitiesTabViewDataWrapper instanceof ActivitiesTabViewDataWrapper.Error) {
|
||||
FragmentStationsPageActivitiesBinding access$getBinding$p4 = StationsPageActivitiesFragment.access$getBinding$p(stationsPageActivitiesFragment);
|
||||
if (access$getBinding$p4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentStationsPageActivitiesBinding = access$getBinding$p4;
|
||||
}
|
||||
fragmentStationsPageActivitiesBinding.loadingEmptyOrErrorCommonView.update(EmptyCirculationsState.GenericError.INSTANCE);
|
||||
StationsPageActivitiesFragment.access$updateVisibility(stationsPageActivitiesFragment, true);
|
||||
} else if (activitiesTabViewDataWrapper instanceof ActivitiesTabViewDataWrapper.Loading) {
|
||||
FragmentStationsPageActivitiesBinding access$getBinding$p5 = StationsPageActivitiesFragment.access$getBinding$p(stationsPageActivitiesFragment);
|
||||
if (access$getBinding$p5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentStationsPageActivitiesBinding = access$getBinding$p5;
|
||||
}
|
||||
fragmentStationsPageActivitiesBinding.loadingEmptyOrErrorCommonView.update(EmptyCirculationsState.Loading.INSTANCE);
|
||||
StationsPageActivitiesFragment.access$updateVisibility(stationsPageActivitiesFragment, true);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.station.RequestedStationInfo;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetCurrentOneStationUseCase;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class c extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5272a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsPageActivitiesViewModel f5273b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public c(StationsPageActivitiesViewModel stationsPageActivitiesViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5273b = stationsPageActivitiesViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new c(this.f5273b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((c) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
GetCurrentOneStationUseCase getCurrentOneStationUseCase;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f5272a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
StationsPageActivitiesViewModel stationsPageActivitiesViewModel = this.f5273b;
|
||||
getCurrentOneStationUseCase = stationsPageActivitiesViewModel.getCurrentOneStationUseCase;
|
||||
Flow<AsyncResult<RequestedStationInfo>> invoke = getCurrentOneStationUseCase.invoke();
|
||||
C1.b bVar = new C1.b(stationsPageActivitiesViewModel, 13);
|
||||
this.f5272a = 1;
|
||||
if (invoke.collect(bVar, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public abstract class d {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public static final StationsPageActivitiesViewModel_HiltModules_KeyModule_ProvideFactory f5274a = new StationsPageActivitiesViewModel_HiltModules_KeyModule_ProvideFactory();
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import com.adif.elcanomovil.commonViews.EmptyCirculationsState;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
import com.adif.elcanomovil.uiStations.databinding.FragmentStationsPageComercialBinding;
|
||||
import com.adif.elcanomovil.uiStations.entities.CommercialTabViewData;
|
||||
import com.adif.elcanomovil.uiStations.main.CommercialTabViewDataWrapper;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class f extends Lambda implements Function1 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsPageCommercialFragment f5277a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public f(StationsPageCommercialFragment stationsPageCommercialFragment) {
|
||||
super(1);
|
||||
this.f5277a = stationsPageCommercialFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
Unit unit;
|
||||
CommercialTabViewDataWrapper commercialTabViewDataWrapper = (CommercialTabViewDataWrapper) obj;
|
||||
boolean z3 = commercialTabViewDataWrapper instanceof CommercialTabViewDataWrapper.Data;
|
||||
StationsPageCommercialFragment stationsPageCommercialFragment = this.f5277a;
|
||||
FragmentStationsPageComercialBinding fragmentStationsPageComercialBinding = null;
|
||||
if (z3) {
|
||||
CommercialTabViewData results = ((CommercialTabViewDataWrapper.Data) commercialTabViewDataWrapper).getResults();
|
||||
if (results != null) {
|
||||
String commercialZoneType = results.getCommercialZoneType();
|
||||
if (Intrinsics.areEqual(commercialZoneType, "EXTERNAL_MANAGEMENT")) {
|
||||
FragmentStationsPageComercialBinding access$getBinding$p = StationsPageCommercialFragment.access$getBinding$p(stationsPageCommercialFragment);
|
||||
if (access$getBinding$p == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
access$getBinding$p = null;
|
||||
}
|
||||
access$getBinding$p.loadingEmptyOrErrorCommonView.update(new EmptyCirculationsState.NoResults(0, R.string.external_management, 1, null));
|
||||
StationsPageCommercialFragment.access$updateVisibility(stationsPageCommercialFragment, true);
|
||||
} else if (Intrinsics.areEqual(commercialZoneType, "NOT")) {
|
||||
FragmentStationsPageComercialBinding access$getBinding$p2 = StationsPageCommercialFragment.access$getBinding$p(stationsPageCommercialFragment);
|
||||
if (access$getBinding$p2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
access$getBinding$p2 = null;
|
||||
}
|
||||
access$getBinding$p2.loadingEmptyOrErrorCommonView.update(new EmptyCirculationsState.NoResults(0, R.string.not_commercial_zone, 1, null));
|
||||
StationsPageCommercialFragment.access$updateVisibility(stationsPageCommercialFragment, true);
|
||||
} else {
|
||||
FragmentStationsPageComercialBinding access$getBinding$p3 = StationsPageCommercialFragment.access$getBinding$p(stationsPageCommercialFragment);
|
||||
if (access$getBinding$p3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
access$getBinding$p3 = null;
|
||||
}
|
||||
access$getBinding$p3.loadingEmptyOrErrorCommonView.update(EmptyCirculationsState.EmptyDefault.INSTANCE);
|
||||
StationsPageCommercialFragment.access$updateVisibility(stationsPageCommercialFragment, false);
|
||||
StationsPageCommercialFragment.access$updateResults(stationsPageCommercialFragment, results);
|
||||
}
|
||||
unit = Unit.INSTANCE;
|
||||
} else {
|
||||
unit = null;
|
||||
}
|
||||
if (unit == null) {
|
||||
FragmentStationsPageComercialBinding access$getBinding$p4 = StationsPageCommercialFragment.access$getBinding$p(stationsPageCommercialFragment);
|
||||
if (access$getBinding$p4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentStationsPageComercialBinding = access$getBinding$p4;
|
||||
}
|
||||
fragmentStationsPageComercialBinding.loadingEmptyOrErrorCommonView.update(new EmptyCirculationsState.NoResults(R.string.stations_no_results_title, R.string.stations_no_results_message));
|
||||
StationsPageCommercialFragment.access$updateVisibility(stationsPageCommercialFragment, true);
|
||||
}
|
||||
} else if (commercialTabViewDataWrapper instanceof CommercialTabViewDataWrapper.Error) {
|
||||
FragmentStationsPageComercialBinding access$getBinding$p5 = StationsPageCommercialFragment.access$getBinding$p(stationsPageCommercialFragment);
|
||||
if (access$getBinding$p5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentStationsPageComercialBinding = access$getBinding$p5;
|
||||
}
|
||||
fragmentStationsPageComercialBinding.loadingEmptyOrErrorCommonView.update(EmptyCirculationsState.GenericError.INSTANCE);
|
||||
StationsPageCommercialFragment.access$updateVisibility(stationsPageCommercialFragment, true);
|
||||
} else if (Intrinsics.areEqual(commercialTabViewDataWrapper, CommercialTabViewDataWrapper.Loading.INSTANCE)) {
|
||||
FragmentStationsPageComercialBinding access$getBinding$p6 = StationsPageCommercialFragment.access$getBinding$p(stationsPageCommercialFragment);
|
||||
if (access$getBinding$p6 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentStationsPageComercialBinding = access$getBinding$p6;
|
||||
}
|
||||
fragmentStationsPageComercialBinding.loadingEmptyOrErrorCommonView.update(EmptyCirculationsState.Loading.INSTANCE);
|
||||
StationsPageCommercialFragment.access$updateVisibility(stationsPageCommercialFragment, true);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.station.RequestedStationInfo;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetCurrentOneStationUseCase;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class g extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5278a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsPageCommercialViewModel f5279b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public g(StationsPageCommercialViewModel stationsPageCommercialViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5279b = stationsPageCommercialViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new g(this.f5279b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((g) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
GetCurrentOneStationUseCase getCurrentOneStationUseCase;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f5278a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
StationsPageCommercialViewModel stationsPageCommercialViewModel = this.f5279b;
|
||||
getCurrentOneStationUseCase = stationsPageCommercialViewModel.getCurrentOneStationUseCase;
|
||||
Flow<AsyncResult<RequestedStationInfo>> invoke = getCurrentOneStationUseCase.invoke();
|
||||
C1.b bVar = new C1.b(stationsPageCommercialViewModel, 14);
|
||||
this.f5278a = 1;
|
||||
if (invoke.collect(bVar, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public abstract class h {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public static final StationsPageCommercialViewModel_HiltModules_KeyModule_ProvideFactory f5280a = new StationsPageCommercialViewModel_HiltModules_KeyModule_ProvideFactory();
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final /* synthetic */ class i implements View.OnClickListener {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ int f5281a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsPageServicesFragment f5282b;
|
||||
|
||||
public /* synthetic */ i(StationsPageServicesFragment stationsPageServicesFragment, int i) {
|
||||
this.f5281a = i;
|
||||
this.f5282b = stationsPageServicesFragment;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i = this.f5281a;
|
||||
StationsPageServicesFragment stationsPageServicesFragment = this.f5282b;
|
||||
switch (i) {
|
||||
case 0:
|
||||
StationsPageServicesFragment.j(stationsPageServicesFragment, view);
|
||||
return;
|
||||
case 1:
|
||||
StationsPageServicesFragment.i(stationsPageServicesFragment, view);
|
||||
return;
|
||||
default:
|
||||
StationsPageServicesFragment.h(stationsPageServicesFragment, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import com.adif.elcanomovil.commonViews.EmptyCirculationsState;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
import com.adif.elcanomovil.uiStations.databinding.FragmentStationsPageServicesBinding;
|
||||
import com.adif.elcanomovil.uiStations.entities.ServicesTabViewData;
|
||||
import com.adif.elcanomovil.uiStations.main.OneStationViewData;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class j extends Lambda implements Function1 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsPageServicesFragment f5283a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public j(StationsPageServicesFragment stationsPageServicesFragment) {
|
||||
super(1);
|
||||
this.f5283a = stationsPageServicesFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
FragmentStationsPageServicesBinding fragmentStationsPageServicesBinding;
|
||||
FragmentStationsPageServicesBinding fragmentStationsPageServicesBinding2;
|
||||
FragmentStationsPageServicesBinding fragmentStationsPageServicesBinding3;
|
||||
Unit unit;
|
||||
FragmentStationsPageServicesBinding fragmentStationsPageServicesBinding4;
|
||||
FragmentStationsPageServicesBinding fragmentStationsPageServicesBinding5;
|
||||
OneStationViewData oneStationViewData = (OneStationViewData) obj;
|
||||
StationsPageServicesFragment stationsPageServicesFragment = this.f5283a;
|
||||
fragmentStationsPageServicesBinding = stationsPageServicesFragment.binding;
|
||||
FragmentStationsPageServicesBinding fragmentStationsPageServicesBinding6 = null;
|
||||
if (fragmentStationsPageServicesBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageServicesBinding = null;
|
||||
}
|
||||
fragmentStationsPageServicesBinding.viewNotEmptyStation.setVisibility(0);
|
||||
if (oneStationViewData instanceof OneStationViewData.Data) {
|
||||
ServicesTabViewData results = ((OneStationViewData.Data) oneStationViewData).getResults();
|
||||
if (results != null) {
|
||||
stationsPageServicesFragment.updateResults(results);
|
||||
fragmentStationsPageServicesBinding5 = stationsPageServicesFragment.binding;
|
||||
if (fragmentStationsPageServicesBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageServicesBinding5 = null;
|
||||
}
|
||||
fragmentStationsPageServicesBinding5.loadingEmptyOrErrorCommonView.update(EmptyCirculationsState.EmptyDefault.INSTANCE);
|
||||
stationsPageServicesFragment.updateVisibility(false);
|
||||
unit = Unit.INSTANCE;
|
||||
} else {
|
||||
unit = null;
|
||||
}
|
||||
if (unit == null) {
|
||||
fragmentStationsPageServicesBinding4 = stationsPageServicesFragment.binding;
|
||||
if (fragmentStationsPageServicesBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentStationsPageServicesBinding6 = fragmentStationsPageServicesBinding4;
|
||||
}
|
||||
fragmentStationsPageServicesBinding6.loadingEmptyOrErrorCommonView.update(new EmptyCirculationsState.NoResults(R.string.stations_no_results_title, R.string.stations_no_results_message));
|
||||
stationsPageServicesFragment.updateVisibility(true);
|
||||
}
|
||||
} else if (oneStationViewData instanceof OneStationViewData.Error) {
|
||||
fragmentStationsPageServicesBinding3 = stationsPageServicesFragment.binding;
|
||||
if (fragmentStationsPageServicesBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentStationsPageServicesBinding6 = fragmentStationsPageServicesBinding3;
|
||||
}
|
||||
fragmentStationsPageServicesBinding6.loadingEmptyOrErrorCommonView.update(EmptyCirculationsState.GenericError.INSTANCE);
|
||||
stationsPageServicesFragment.updateVisibility(true);
|
||||
} else if (Intrinsics.areEqual(oneStationViewData, OneStationViewData.Loading.INSTANCE)) {
|
||||
fragmentStationsPageServicesBinding2 = stationsPageServicesFragment.binding;
|
||||
if (fragmentStationsPageServicesBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentStationsPageServicesBinding6 = fragmentStationsPageServicesBinding2;
|
||||
}
|
||||
fragmentStationsPageServicesBinding6.loadingEmptyOrErrorCommonView.update(EmptyCirculationsState.Loading.INSTANCE);
|
||||
stationsPageServicesFragment.updateVisibility(true);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import android.content.Context;
|
||||
import android.widget.ImageView;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
import com.adif.elcanomovil.uiStations.databinding.FragmentStationsPageServicesBinding;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class k extends Lambda implements Function1 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsPageServicesFragment f5284a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public k(StationsPageServicesFragment stationsPageServicesFragment) {
|
||||
super(1);
|
||||
this.f5284a = stationsPageServicesFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
FragmentStationsPageServicesBinding fragmentStationsPageServicesBinding;
|
||||
FragmentStationsPageServicesBinding fragmentStationsPageServicesBinding2;
|
||||
FragmentStationsPageServicesBinding fragmentStationsPageServicesBinding3;
|
||||
FragmentStationsPageServicesBinding fragmentStationsPageServicesBinding4;
|
||||
boolean areEqual = Intrinsics.areEqual((Boolean) obj, Boolean.TRUE);
|
||||
StationsPageServicesFragment stationsPageServicesFragment = this.f5284a;
|
||||
if (areEqual) {
|
||||
fragmentStationsPageServicesBinding3 = stationsPageServicesFragment.binding;
|
||||
if (fragmentStationsPageServicesBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageServicesBinding3 = null;
|
||||
}
|
||||
fragmentStationsPageServicesBinding3.addFavourite.setImageResource(R.drawable.ic_favourite_on);
|
||||
fragmentStationsPageServicesBinding4 = stationsPageServicesFragment.binding;
|
||||
if (fragmentStationsPageServicesBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageServicesBinding4 = null;
|
||||
}
|
||||
ImageView imageView = fragmentStationsPageServicesBinding4.addFavourite;
|
||||
Context context = stationsPageServicesFragment.getContext();
|
||||
imageView.setContentDescription(context != null ? context.getString(R.string.content_description_icon_favorite_remove) : null);
|
||||
} else {
|
||||
fragmentStationsPageServicesBinding = stationsPageServicesFragment.binding;
|
||||
if (fragmentStationsPageServicesBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageServicesBinding = null;
|
||||
}
|
||||
fragmentStationsPageServicesBinding.addFavourite.setImageResource(R.drawable.ic_favourite_off);
|
||||
fragmentStationsPageServicesBinding2 = stationsPageServicesFragment.binding;
|
||||
if (fragmentStationsPageServicesBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentStationsPageServicesBinding2 = null;
|
||||
}
|
||||
ImageView imageView2 = fragmentStationsPageServicesBinding2.addFavourite;
|
||||
Context context2 = stationsPageServicesFragment.getContext();
|
||||
imageView2.setContentDescription(context2 != null ? context2.getString(R.string.content_description_icon_favorite) : null);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.station.RequestedStationInfo;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetCurrentOneStationUseCase;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class l extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5285a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsPageServicesViewModel f5286b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public l(StationsPageServicesViewModel stationsPageServicesViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5286b = stationsPageServicesViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new l(this.f5286b, 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) {
|
||||
GetCurrentOneStationUseCase getCurrentOneStationUseCase;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f5285a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
StationsPageServicesViewModel stationsPageServicesViewModel = this.f5286b;
|
||||
getCurrentOneStationUseCase = stationsPageServicesViewModel.getCurrentOneStationUseCase;
|
||||
Flow<AsyncResult<RequestedStationInfo>> invoke = getCurrentOneStationUseCase.invoke();
|
||||
C1.b bVar = new C1.b(stationsPageServicesViewModel, 15);
|
||||
this.f5285a = 1;
|
||||
if (invoke.collect(bVar, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class m extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public StationsPageServicesViewModel f5287a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public int f5288b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsPageServicesViewModel f5289c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public m(StationsPageServicesViewModel stationsPageServicesViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5289c = stationsPageServicesViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new m(this.f5289c, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((m) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:17:0x0050, code lost:
|
||||
|
||||
if (com.adif.elcanomovil.domain.usecases.favorites.RemoveFavoriteStationUseCase.invoke$default(r0, r1, r3, null, null, r13, 12, null) == r11) goto L20;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:18:0x0053, code lost:
|
||||
|
||||
r0 = r12;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:19:0x0078, code lost:
|
||||
|
||||
return r11;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:21:0x0076, code lost:
|
||||
|
||||
if (com.adif.elcanomovil.domain.usecases.favorites.SaveFavoriteStationUseCase.invoke$default(r3, r1, r2, r3, null, null, r4, null, r13, 88, null) == r11) goto L20;
|
||||
*/
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r14) {
|
||||
/*
|
||||
r13 = this;
|
||||
java.lang.Object r11 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r0 = r13.f5288b
|
||||
r1 = 2
|
||||
r2 = 1
|
||||
if (r0 == 0) goto L1d
|
||||
if (r0 == r2) goto L17
|
||||
if (r0 != r1) goto Lf
|
||||
goto L17
|
||||
Lf:
|
||||
java.lang.IllegalStateException r0 = new java.lang.IllegalStateException
|
||||
java.lang.String r1 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r0.<init>(r1)
|
||||
throw r0
|
||||
L17:
|
||||
com.adif.elcanomovil.uiStations.main.StationsPageServicesViewModel r0 = r13.f5287a
|
||||
kotlin.ResultKt.throwOnFailure(r14)
|
||||
goto L79
|
||||
L1d:
|
||||
kotlin.ResultKt.throwOnFailure(r14)
|
||||
com.adif.elcanomovil.uiStations.main.StationsPageServicesViewModel r12 = r13.f5289c
|
||||
r0 = r1
|
||||
java.lang.String r1 = com.adif.elcanomovil.uiStations.main.StationsPageServicesViewModel.access$getCurrentStationCode$p(r12)
|
||||
if (r1 == 0) goto L7c
|
||||
androidx.lifecycle.Q r3 = r12.getIsFavourite()
|
||||
java.lang.Object r3 = r3.d()
|
||||
java.lang.Boolean r4 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r2)
|
||||
boolean r3 = kotlin.jvm.internal.Intrinsics.areEqual(r3, r4)
|
||||
if (r3 == 0) goto L55
|
||||
com.adif.elcanomovil.domain.usecases.favorites.RemoveFavoriteStationUseCase r0 = com.adif.elcanomovil.uiStations.main.StationsPageServicesViewModel.access$getRemoveFavoriteStationUseCase$p(r12)
|
||||
com.adif.elcanomovil.domain.entities.DataType r3 = com.adif.elcanomovil.domain.entities.DataType.INFO
|
||||
r13.f5287a = r12
|
||||
r13.f5288b = r2
|
||||
r6 = 12
|
||||
r7 = 0
|
||||
r2 = r3
|
||||
r3 = 0
|
||||
r4 = 0
|
||||
r5 = r13
|
||||
java.lang.Object r0 = com.adif.elcanomovil.domain.usecases.favorites.RemoveFavoriteStationUseCase.invoke$default(r0, r1, r2, r3, r4, r5, r6, r7)
|
||||
if (r0 != r11) goto L53
|
||||
goto L78
|
||||
L53:
|
||||
r0 = r12
|
||||
goto L79
|
||||
L55:
|
||||
com.adif.elcanomovil.domain.usecases.favorites.SaveFavoriteStationUseCase r3 = com.adif.elcanomovil.uiStations.main.StationsPageServicesViewModel.access$getSaveFavoriteStationUseCase$p(r12)
|
||||
r4 = r2
|
||||
java.lang.String r2 = com.adif.elcanomovil.uiStations.main.StationsPageServicesViewModel.access$getCurrentStationName$p(r12)
|
||||
r6 = r3
|
||||
com.adif.elcanomovil.domain.entities.DataType r3 = com.adif.elcanomovil.domain.entities.DataType.INFO
|
||||
java.lang.Boolean r4 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r4)
|
||||
r13.f5287a = r12
|
||||
r13.f5288b = r0
|
||||
r9 = 88
|
||||
r10 = 0
|
||||
r0 = r6
|
||||
r6 = r4
|
||||
r4 = 0
|
||||
r5 = 0
|
||||
r7 = 0
|
||||
r8 = r13
|
||||
java.lang.Object r0 = com.adif.elcanomovil.domain.usecases.favorites.SaveFavoriteStationUseCase.invoke$default(r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, r10)
|
||||
if (r0 != r11) goto L53
|
||||
L78:
|
||||
return r11
|
||||
L79:
|
||||
com.adif.elcanomovil.uiStations.main.StationsPageServicesViewModel.access$refreshIsFavourite(r0)
|
||||
L7c:
|
||||
kotlin.Unit r0 = kotlin.Unit.INSTANCE
|
||||
return r0
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiStations.main.m.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.DataType;
|
||||
import com.adif.elcanomovil.domain.usecases.favorites.GetStationIsFavoriteUseCase;
|
||||
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.MutableStateFlow;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class n extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public MutableStateFlow f5290a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public int f5291b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsPageServicesViewModel f5292c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public n(StationsPageServicesViewModel stationsPageServicesViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5292c = stationsPageServicesViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new n(this.f5292c, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((n) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
String str;
|
||||
MutableStateFlow mutableStateFlow;
|
||||
GetStationIsFavoriteUseCase getStationIsFavoriteUseCase;
|
||||
MutableStateFlow mutableStateFlow2;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f5291b;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
StationsPageServicesViewModel stationsPageServicesViewModel = this.f5292c;
|
||||
str = stationsPageServicesViewModel.currentStationCode;
|
||||
if (str != null) {
|
||||
mutableStateFlow = stationsPageServicesViewModel._isFavourite;
|
||||
getStationIsFavoriteUseCase = stationsPageServicesViewModel.getStationIsFavoriteUseCase;
|
||||
DataType dataType = DataType.INFO;
|
||||
this.f5290a = mutableStateFlow;
|
||||
this.f5291b = 1;
|
||||
obj = getStationIsFavoriteUseCase.invoke(str, null, dataType, true, this);
|
||||
if (obj == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
mutableStateFlow2 = mutableStateFlow;
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
mutableStateFlow2 = this.f5290a;
|
||||
ResultKt.throwOnFailure(obj);
|
||||
mutableStateFlow2.setValue(obj);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public abstract class o {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public static final StationsPageServicesViewModel_HiltModules_KeyModule_ProvideFactory f5293a = new StationsPageServicesViewModel_HiltModules_KeyModule_ProvideFactory();
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import com.adif.elcanomovil.domain.usecases.stations.GetLastVisitedStationUseCase;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.text.StringsKt;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class p extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5294a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsViewModel f5295b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public p(StationsViewModel stationsViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5295b = stationsViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new p(this.f5295b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((p) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
GetLastVisitedStationUseCase getLastVisitedStationUseCase;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f5294a;
|
||||
StationsViewModel stationsViewModel = this.f5295b;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
getLastVisitedStationUseCase = stationsViewModel.getLastVisitedStationUseCase;
|
||||
this.f5294a = 1;
|
||||
obj = getLastVisitedStationUseCase.invoke(this);
|
||||
if (obj == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
String str = (String) obj;
|
||||
if (!StringsKt.isBlank(str)) {
|
||||
stationsViewModel.handleSelectedStation(str);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class q extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public String f5296a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public String f5297b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public int f5298c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsViewModel f5299d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ String f5300e;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public q(StationsViewModel stationsViewModel, String str, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5299d = stationsViewModel;
|
||||
this.f5300e = str;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new q(this.f5299d, this.f5300e, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((q) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:33:0x003e, code lost:
|
||||
|
||||
if (r8 == r0) goto L27;
|
||||
*/
|
||||
/* JADX WARN: Removed duplicated region for block: B:11:0x0082 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:21:0x0075 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:9:0x007f */
|
||||
@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 r8) {
|
||||
/*
|
||||
r7 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r7.f5298c
|
||||
com.adif.elcanomovil.uiStations.main.StationsViewModel r2 = r7.f5299d
|
||||
r3 = 3
|
||||
r4 = 2
|
||||
r5 = 1
|
||||
java.lang.String r6 = r7.f5300e
|
||||
if (r1 == 0) goto L31
|
||||
if (r1 == r5) goto L2d
|
||||
if (r1 == r4) goto L25
|
||||
if (r1 != r3) goto L1d
|
||||
java.lang.String r0 = r7.f5297b
|
||||
java.lang.String r7 = r7.f5296a
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
goto L77
|
||||
L1d:
|
||||
java.lang.IllegalStateException r7 = new java.lang.IllegalStateException
|
||||
java.lang.String r8 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r7.<init>(r8)
|
||||
throw r7
|
||||
L25:
|
||||
java.lang.String r1 = r7.f5297b
|
||||
java.lang.String r4 = r7.f5296a
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
goto L64
|
||||
L2d:
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
goto L41
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
com.adif.elcanomovil.domain.usecases.stations.GetStationByIdUseCase r8 = com.adif.elcanomovil.uiStations.main.StationsViewModel.access$getGetStationByIdUseCase$p(r2)
|
||||
r7.f5298c = r5
|
||||
java.lang.Object r8 = r8.invoke(r6, r7)
|
||||
if (r8 != r0) goto L41
|
||||
goto L74
|
||||
L41:
|
||||
com.adif.elcanomovil.domain.entities.station.Station r8 = (com.adif.elcanomovil.domain.entities.station.Station) r8
|
||||
r1 = 0
|
||||
if (r8 == 0) goto L4b
|
||||
java.lang.String r5 = r8.getShortName()
|
||||
goto L4c
|
||||
L4b:
|
||||
r5 = r1
|
||||
L4c:
|
||||
if (r8 == 0) goto L52
|
||||
java.lang.String r1 = r8.getLongName()
|
||||
L52:
|
||||
com.adif.elcanomovil.domain.usecases.stations.GetOneStationUseCase r8 = com.adif.elcanomovil.uiStations.main.StationsViewModel.access$getGetOneStationUseCase$p(r2)
|
||||
r7.f5296a = r5
|
||||
r7.f5297b = r1
|
||||
r7.f5298c = r4
|
||||
java.lang.Object r8 = r8.invoke(r6, r7)
|
||||
if (r8 != r0) goto L63
|
||||
goto L74
|
||||
L63:
|
||||
r4 = r5
|
||||
L64:
|
||||
com.adif.elcanomovil.domain.usecases.stations.SetLastVisitedStationUseCase r8 = com.adif.elcanomovil.uiStations.main.StationsViewModel.access$getSetLastVisitedStationUseCase$p(r2)
|
||||
r7.f5296a = r4
|
||||
r7.f5297b = r1
|
||||
r7.f5298c = r3
|
||||
java.lang.Object r7 = r8.invoke(r6, r7)
|
||||
if (r7 != r0) goto L75
|
||||
L74:
|
||||
return r0
|
||||
L75:
|
||||
r0 = r1
|
||||
r7 = r4
|
||||
L77:
|
||||
kotlinx.coroutines.flow.MutableStateFlow r8 = com.adif.elcanomovil.uiStations.main.StationsViewModel.access$getViewDataFlow$p(r2)
|
||||
com.adif.elcanomovil.uiStations.entities.StationHeaderData r1 = new com.adif.elcanomovil.uiStations.entities.StationHeaderData
|
||||
if (r7 != 0) goto L80
|
||||
r7 = r6
|
||||
L80:
|
||||
if (r0 != 0) goto L83
|
||||
r0 = r6
|
||||
L83:
|
||||
r1.<init>(r6, r7, r0)
|
||||
r8.setValue(r1)
|
||||
kotlin.Unit r7 = kotlin.Unit.INSTANCE
|
||||
return r7
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiStations.main.q.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.adif.elcanomovil.uiStations.main;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public abstract class r {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public static final StationsViewModel_HiltModules_KeyModule_ProvideFactory f5301a = new StationsViewModel_HiltModules_KeyModule_ProvideFactory();
|
||||
}
|
||||
Reference in New Issue
Block a user