Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package com.adif.elcanomovil.uiStations;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class BuildConfig {
|
||||
public static final String BUILD_TYPE = "release";
|
||||
public static final boolean DEBUG = false;
|
||||
public static final String FLAVOR = "proNon_corporate";
|
||||
public static final String FLAVOR_is_corporate = "non_corporate";
|
||||
public static final String FLAVOR_version = "pro";
|
||||
public static final String LIBRARY_PACKAGE_NAME = "com.adif.elcanomovil.uiStations";
|
||||
}
|
||||
8465
apk_decompiled/sources/com/adif/elcanomovil/uiStations/R.java
Normal file
8465
apk_decompiled/sources/com/adif/elcanomovil/uiStations/R.java
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,61 @@
|
||||
package com.adif.elcanomovil.uiStations.adapters;
|
||||
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import androidx.recyclerview.widget.AbstractC0220h0;
|
||||
import androidx.recyclerview.widget.I0;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
import com.adif.elcanomovil.uiStations.entities.Activity;
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000>\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\f\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B.\u0012%\u0010\n\u001a!\u0012\u0013\u0012\u00110\u0004¢\u0006\f\b\u0005\u0012\b\b\u0006\u0012\u0004\b\b(\u0007\u0012\u0004\u0012\u00020\b0\u0003j\u0002`\t¢\u0006\u0004\b\u000b\u0010\fJ\u001d\u0010\u000f\u001a\u00020\b2\u000e\u0010\u000e\u001a\n\u0012\u0004\u0012\u00020\u0004\u0018\u00010\r¢\u0006\u0004\b\u000f\u0010\u0010J\u001f\u0010\u0015\u001a\u00020\u00022\u0006\u0010\u0012\u001a\u00020\u00112\u0006\u0010\u0014\u001a\u00020\u0013H\u0016¢\u0006\u0004\b\u0015\u0010\u0016J\u000f\u0010\u0017\u001a\u00020\u0013H\u0016¢\u0006\u0004\b\u0017\u0010\u0018J\u001f\u0010\u001b\u001a\u00020\b2\u0006\u0010\u0019\u001a\u00020\u00022\u0006\u0010\u001a\u001a\u00020\u0013H\u0016¢\u0006\u0004\b\u001b\u0010\u001cR3\u0010\n\u001a!\u0012\u0013\u0012\u00110\u0004¢\u0006\f\b\u0005\u0012\b\b\u0006\u0012\u0004\b\b(\u0007\u0012\u0004\u0012\u00020\b0\u0003j\u0002`\t8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\n\u0010\u001dR\u001c\u0010\u000e\u001a\b\u0012\u0004\u0012\u00020\u00040\r8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u000e\u0010\u001e¨\u0006\u001f"}, d2 = {"Lcom/adif/elcanomovil/uiStations/adapters/ActivitiesAdapter;", "Landroidx/recyclerview/widget/h0;", "Landroidx/recyclerview/widget/I0;", "Lkotlin/Function1;", "Lcom/adif/elcanomovil/uiStations/entities/Activity;", "Lkotlin/ParameterName;", AppMeasurementSdk.ConditionalUserProperty.NAME, "activitie", "", "Lcom/adif/elcanomovil/uiStations/adapters/OnActivityTap;", "onActivityTap", "<init>", "(Lkotlin/jvm/functions/Function1;)V", "", FirebaseAnalytics.Param.ITEMS, "update", "(Ljava/util/List;)V", "Landroid/view/ViewGroup;", "parent", "", "viewType", "onCreateViewHolder", "(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/I0;", "getItemCount", "()I", "holder", "position", "onBindViewHolder", "(Landroidx/recyclerview/widget/I0;I)V", "Lkotlin/jvm/functions/Function1;", "Ljava/util/List;", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class ActivitiesAdapter extends AbstractC0220h0 {
|
||||
private List<Activity> items;
|
||||
private final Function1<Activity, Unit> onActivityTap;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public ActivitiesAdapter(Function1<? super Activity, Unit> onActivityTap) {
|
||||
Intrinsics.checkNotNullParameter(onActivityTap, "onActivityTap");
|
||||
this.onActivityTap = onActivityTap;
|
||||
this.items = new ArrayList();
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public int getItemCount() {
|
||||
return this.items.size();
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public void onBindViewHolder(I0 holder, int position) {
|
||||
Intrinsics.checkNotNullParameter(holder, "holder");
|
||||
if (holder instanceof ActivityViewHolder) {
|
||||
((ActivityViewHolder) holder).bind(this.items.get(position), this.onActivityTap);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public I0 onCreateViewHolder(ViewGroup parent, int viewType) {
|
||||
Intrinsics.checkNotNullParameter(parent, "parent");
|
||||
View inflate = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_stations_page_activities, parent, false);
|
||||
Intrinsics.checkNotNull(inflate);
|
||||
return new ActivityViewHolder(inflate);
|
||||
}
|
||||
|
||||
public final void update(List<Activity> items) {
|
||||
if (items != null) {
|
||||
this.items = CollectionsKt.toMutableList((Collection) items);
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.adif.elcanomovil.uiStations.adapters;
|
||||
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000*@\u0010\u0000\"\u001d\u0012\u0013\u0012\u00110\u0002¢\u0006\f\b\u0003\u0012\b\b\u0004\u0012\u0004\b\b(\u0005\u0012\u0004\u0012\u00020\u00060\u00012\u001d\u0012\u0013\u0012\u00110\u0002¢\u0006\f\b\u0003\u0012\b\b\u0004\u0012\u0004\b\b(\u0005\u0012\u0004\u0012\u00020\u00060\u0001¨\u0006\u0007"}, d2 = {"OnActivityTap", "Lkotlin/Function1;", "Lcom/adif/elcanomovil/uiStations/entities/Activity;", "Lkotlin/ParameterName;", AppMeasurementSdk.ConditionalUserProperty.NAME, "activitie", "", "ui-stations_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class ActivitiesAdapterKt {
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
package com.adif.elcanomovil.uiStations.adapters;
|
||||
|
||||
import G2.l;
|
||||
import I0.a;
|
||||
import I0.h;
|
||||
import I0.p;
|
||||
import S0.i;
|
||||
import android.view.View;
|
||||
import androidx.appcompat.widget.AppCompatImageView;
|
||||
import androidx.recyclerview.widget.I0;
|
||||
import com.adif.elcanomovil.uiStations.databinding.ItemStationsPageActivitiesBinding;
|
||||
import com.adif.elcanomovil.uiStations.entities.Activity;
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u000f\u0012\u0006\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0004\u0010\u0005J<\u0010\u000f\u001a\u00020\f2\u0006\u0010\u0007\u001a\u00020\u00062%\u0010\u000e\u001a!\u0012\u0013\u0012\u00110\u0006¢\u0006\f\b\t\u0012\b\b\n\u0012\u0004\b\b(\u000b\u0012\u0004\u0012\u00020\f0\bj\u0002`\r¢\u0006\u0004\b\u000f\u0010\u0010R\u0014\u0010\u0012\u001a\u00020\u00118\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0012\u0010\u0013¨\u0006\u0014"}, d2 = {"Lcom/adif/elcanomovil/uiStations/adapters/ActivityViewHolder;", "Landroidx/recyclerview/widget/I0;", "Landroid/view/View;", "itemView", "<init>", "(Landroid/view/View;)V", "Lcom/adif/elcanomovil/uiStations/entities/Activity;", "item", "Lkotlin/Function1;", "Lkotlin/ParameterName;", AppMeasurementSdk.ConditionalUserProperty.NAME, "activitie", "", "Lcom/adif/elcanomovil/uiStations/adapters/OnActivityTap;", "onActivityTap", "bind", "(Lcom/adif/elcanomovil/uiStations/entities/Activity;Lkotlin/jvm/functions/Function1;)V", "Lcom/adif/elcanomovil/uiStations/databinding/ItemStationsPageActivitiesBinding;", "itemBinding", "Lcom/adif/elcanomovil/uiStations/databinding/ItemStationsPageActivitiesBinding;", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nActivitiesAdapter.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ActivitiesAdapter.kt\ncom/adif/elcanomovil/uiStations/adapters/ActivityViewHolder\n+ 2 Extensions.kt\ncoil/-SingletonExtensions\n*L\n1#1,61:1\n54#2,3:62\n24#2:65\n59#2,6:66\n*S KotlinDebug\n*F\n+ 1 ActivitiesAdapter.kt\ncom/adif/elcanomovil/uiStations/adapters/ActivityViewHolder\n*L\n52#1:62,3\n52#1:65\n52#1:66,6\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class ActivityViewHolder extends I0 {
|
||||
private final ItemStationsPageActivitiesBinding itemBinding;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public ActivityViewHolder(View itemView) {
|
||||
super(itemView);
|
||||
Intrinsics.checkNotNullParameter(itemView, "itemView");
|
||||
ItemStationsPageActivitiesBinding bind = ItemStationsPageActivitiesBinding.bind(itemView);
|
||||
Intrinsics.checkNotNullExpressionValue(bind, "bind(...)");
|
||||
this.itemBinding = bind;
|
||||
}
|
||||
|
||||
public static final void bind$lambda$0(Function1 onActivityTap, Activity item, View view) {
|
||||
Intrinsics.checkNotNullParameter(onActivityTap, "$onActivityTap");
|
||||
Intrinsics.checkNotNullParameter(item, "$item");
|
||||
onActivityTap.invoke(item);
|
||||
}
|
||||
|
||||
public final void bind(Activity item, Function1<? super Activity, Unit> onActivityTap) {
|
||||
Intrinsics.checkNotNullParameter(item, "item");
|
||||
Intrinsics.checkNotNullParameter(onActivityTap, "onActivityTap");
|
||||
this.itemBinding.layout.setOnClickListener(new l(1, onActivityTap, item));
|
||||
AppCompatImageView serviceIcon = this.itemBinding.serviceIcon;
|
||||
Intrinsics.checkNotNullExpressionValue(serviceIcon, "serviceIcon");
|
||||
String logo = item.getLogo();
|
||||
h a2 = a.a(serviceIcon.getContext());
|
||||
i iVar = new i(serviceIcon.getContext());
|
||||
iVar.f1464c = logo;
|
||||
iVar.c(serviceIcon);
|
||||
((p) a2).b(iVar.a());
|
||||
this.itemBinding.name.setText(item.getName());
|
||||
this.itemBinding.description.setText(item.getDescription());
|
||||
this.itemBinding.date.setText(item.getOpeningHours());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.adif.elcanomovil.uiStations.adapters;
|
||||
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import androidx.recyclerview.widget.AbstractC0220h0;
|
||||
import androidx.recyclerview.widget.I0;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
import com.adif.elcanomovil.uiStations.entities.Services;
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000>\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\f\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B.\u0012%\u0010\n\u001a!\u0012\u0013\u0012\u00110\u0004¢\u0006\f\b\u0005\u0012\b\b\u0006\u0012\u0004\b\b(\u0007\u0012\u0004\u0012\u00020\b0\u0003j\u0002`\t¢\u0006\u0004\b\u000b\u0010\fJ\u001d\u0010\u000f\u001a\u00020\b2\u000e\u0010\u000e\u001a\n\u0012\u0004\u0012\u00020\u0004\u0018\u00010\r¢\u0006\u0004\b\u000f\u0010\u0010J\u001f\u0010\u0015\u001a\u00020\u00022\u0006\u0010\u0012\u001a\u00020\u00112\u0006\u0010\u0014\u001a\u00020\u0013H\u0016¢\u0006\u0004\b\u0015\u0010\u0016J\u000f\u0010\u0017\u001a\u00020\u0013H\u0016¢\u0006\u0004\b\u0017\u0010\u0018J\u001f\u0010\u001b\u001a\u00020\b2\u0006\u0010\u0019\u001a\u00020\u00022\u0006\u0010\u001a\u001a\u00020\u0013H\u0016¢\u0006\u0004\b\u001b\u0010\u001cR3\u0010\n\u001a!\u0012\u0013\u0012\u00110\u0004¢\u0006\f\b\u0005\u0012\b\b\u0006\u0012\u0004\b\b(\u0007\u0012\u0004\u0012\u00020\b0\u0003j\u0002`\t8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\n\u0010\u001dR\u001c\u0010\u000e\u001a\b\u0012\u0004\u0012\u00020\u00040\r8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u000e\u0010\u001e¨\u0006\u001f"}, d2 = {"Lcom/adif/elcanomovil/uiStations/adapters/CommercialAdapter;", "Landroidx/recyclerview/widget/h0;", "Landroidx/recyclerview/widget/I0;", "Lkotlin/Function1;", "Lcom/adif/elcanomovil/uiStations/entities/Services;", "Lkotlin/ParameterName;", AppMeasurementSdk.ConditionalUserProperty.NAME, "service", "", "Lcom/adif/elcanomovil/uiStations/adapters/OnCommercialTap;", "onCommercialTap", "<init>", "(Lkotlin/jvm/functions/Function1;)V", "", FirebaseAnalytics.Param.ITEMS, "update", "(Ljava/util/List;)V", "Landroid/view/ViewGroup;", "parent", "", "viewType", "onCreateViewHolder", "(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/I0;", "getItemCount", "()I", "holder", "position", "onBindViewHolder", "(Landroidx/recyclerview/widget/I0;I)V", "Lkotlin/jvm/functions/Function1;", "Ljava/util/List;", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class CommercialAdapter extends AbstractC0220h0 {
|
||||
private List<Services> items;
|
||||
private final Function1<Services, Unit> onCommercialTap;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public CommercialAdapter(Function1<? super Services, Unit> onCommercialTap) {
|
||||
Intrinsics.checkNotNullParameter(onCommercialTap, "onCommercialTap");
|
||||
this.onCommercialTap = onCommercialTap;
|
||||
this.items = new ArrayList();
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public int getItemCount() {
|
||||
return this.items.size();
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public void onBindViewHolder(I0 holder, int position) {
|
||||
Intrinsics.checkNotNullParameter(holder, "holder");
|
||||
if (holder instanceof CommercialViewHolder) {
|
||||
((CommercialViewHolder) holder).bind(this.items.get(position), this.onCommercialTap, position);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public I0 onCreateViewHolder(ViewGroup parent, int viewType) {
|
||||
Intrinsics.checkNotNullParameter(parent, "parent");
|
||||
View inflate = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_stations_page_commercial, parent, false);
|
||||
Intrinsics.checkNotNull(inflate);
|
||||
return new CommercialViewHolder(inflate);
|
||||
}
|
||||
|
||||
public final void update(List<Services> items) {
|
||||
if (items != null) {
|
||||
this.items = items;
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.adif.elcanomovil.uiStations.adapters;
|
||||
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000*@\u0010\u0000\"\u001d\u0012\u0013\u0012\u00110\u0002¢\u0006\f\b\u0003\u0012\b\b\u0004\u0012\u0004\b\b(\u0005\u0012\u0004\u0012\u00020\u00060\u00012\u001d\u0012\u0013\u0012\u00110\u0002¢\u0006\f\b\u0003\u0012\b\b\u0004\u0012\u0004\b\b(\u0005\u0012\u0004\u0012\u00020\u00060\u0001¨\u0006\u0007"}, d2 = {"OnCommercialTap", "Lkotlin/Function1;", "Lcom/adif/elcanomovil/uiStations/entities/Services;", "Lkotlin/ParameterName;", AppMeasurementSdk.ConditionalUserProperty.NAME, "service", "", "ui-stations_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class CommercialAdapterKt {
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.adif.elcanomovil.uiStations.adapters;
|
||||
|
||||
import I0.h;
|
||||
import I0.p;
|
||||
import L1.a;
|
||||
import S0.i;
|
||||
import android.view.View;
|
||||
import androidx.appcompat.widget.AppCompatImageView;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import androidx.recyclerview.widget.I0;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
import com.adif.elcanomovil.uiStations.databinding.ItemStationsPageCommercialBinding;
|
||||
import com.adif.elcanomovil.uiStations.entities.Services;
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.text.StringsKt;
|
||||
|
||||
@Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u000f\u0012\u0006\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0004\u0010\u0005JD\u0010\u0011\u001a\u00020\f2\u0006\u0010\u0007\u001a\u00020\u00062%\u0010\u000e\u001a!\u0012\u0013\u0012\u00110\u0006¢\u0006\f\b\t\u0012\b\b\n\u0012\u0004\b\b(\u000b\u0012\u0004\u0012\u00020\f0\bj\u0002`\r2\u0006\u0010\u0010\u001a\u00020\u000f¢\u0006\u0004\b\u0011\u0010\u0012R\u0014\u0010\u0014\u001a\u00020\u00138\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0014\u0010\u0015¨\u0006\u0016"}, d2 = {"Lcom/adif/elcanomovil/uiStations/adapters/CommercialViewHolder;", "Landroidx/recyclerview/widget/I0;", "Landroid/view/View;", "itemView", "<init>", "(Landroid/view/View;)V", "Lcom/adif/elcanomovil/uiStations/entities/Services;", "item", "Lkotlin/Function1;", "Lkotlin/ParameterName;", AppMeasurementSdk.ConditionalUserProperty.NAME, "service", "", "Lcom/adif/elcanomovil/uiStations/adapters/OnServiceTap;", "onServiceTap", "", "position", "bind", "(Lcom/adif/elcanomovil/uiStations/entities/Services;Lkotlin/jvm/functions/Function1;I)V", "Lcom/adif/elcanomovil/uiStations/databinding/ItemStationsPageCommercialBinding;", "itemBinding", "Lcom/adif/elcanomovil/uiStations/databinding/ItemStationsPageCommercialBinding;", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nCommercialAdapter.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CommercialAdapter.kt\ncom/adif/elcanomovil/uiStations/adapters/CommercialViewHolder\n+ 2 Extensions.kt\ncoil/-SingletonExtensions\n*L\n1#1,68:1\n54#2,3:69\n24#2:72\n59#2,6:73\n*S KotlinDebug\n*F\n+ 1 CommercialAdapter.kt\ncom/adif/elcanomovil/uiStations/adapters/CommercialViewHolder\n*L\n58#1:69,3\n58#1:72\n58#1:73,6\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class CommercialViewHolder extends I0 {
|
||||
private final ItemStationsPageCommercialBinding itemBinding;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public CommercialViewHolder(View itemView) {
|
||||
super(itemView);
|
||||
Intrinsics.checkNotNullParameter(itemView, "itemView");
|
||||
ItemStationsPageCommercialBinding bind = ItemStationsPageCommercialBinding.bind(itemView);
|
||||
Intrinsics.checkNotNullExpressionValue(bind, "bind(...)");
|
||||
this.itemBinding = bind;
|
||||
}
|
||||
|
||||
public static final void bind$lambda$1$lambda$0(Function1 onServiceTap, Services item, View view) {
|
||||
Intrinsics.checkNotNullParameter(onServiceTap, "$onServiceTap");
|
||||
Intrinsics.checkNotNullParameter(item, "$item");
|
||||
onServiceTap.invoke(item);
|
||||
}
|
||||
|
||||
public final void bind(Services item, Function1<? super Services, Unit> onServiceTap, int position) {
|
||||
Intrinsics.checkNotNullParameter(item, "item");
|
||||
Intrinsics.checkNotNullParameter(onServiceTap, "onServiceTap");
|
||||
ConstraintLayout constraintLayout = this.itemBinding.layout;
|
||||
constraintLayout.setOnClickListener(new a(item, onServiceTap, 0));
|
||||
constraintLayout.setBackgroundResource(position % 2 == 0 ? R.color.black : R.color.darkLight);
|
||||
AppCompatImageView serviceIcon = this.itemBinding.serviceIcon;
|
||||
Intrinsics.checkNotNullExpressionValue(serviceIcon, "serviceIcon");
|
||||
String logo = item.getLogo();
|
||||
h a2 = I0.a.a(serviceIcon.getContext());
|
||||
i iVar = new i(serviceIcon.getContext());
|
||||
iVar.f1464c = logo;
|
||||
iVar.c(serviceIcon);
|
||||
((p) a2).b(iVar.a());
|
||||
this.itemBinding.name.setText(item.getName());
|
||||
this.itemBinding.type.setText(item.getDescription());
|
||||
AppCompatImageView appCompatImageView = this.itemBinding.offerIcon;
|
||||
String offerName = item.getOfferName();
|
||||
appCompatImageView.setVisibility((offerName == null || !(StringsKt.isBlank(offerName) ^ true)) ? 8 : 0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.adif.elcanomovil.uiStations.adapters;
|
||||
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import androidx.recyclerview.widget.AbstractC0220h0;
|
||||
import androidx.recyclerview.widget.I0;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
import com.adif.elcanomovil.uiStations.entities.Services;
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000>\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\f\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B.\u0012%\u0010\n\u001a!\u0012\u0013\u0012\u00110\u0004¢\u0006\f\b\u0005\u0012\b\b\u0006\u0012\u0004\b\b(\u0007\u0012\u0004\u0012\u00020\b0\u0003j\u0002`\t¢\u0006\u0004\b\u000b\u0010\fJ\u001d\u0010\u000f\u001a\u00020\b2\u000e\u0010\u000e\u001a\n\u0012\u0004\u0012\u00020\u0004\u0018\u00010\r¢\u0006\u0004\b\u000f\u0010\u0010J\u001f\u0010\u0015\u001a\u00020\u00022\u0006\u0010\u0012\u001a\u00020\u00112\u0006\u0010\u0014\u001a\u00020\u0013H\u0016¢\u0006\u0004\b\u0015\u0010\u0016J\u000f\u0010\u0017\u001a\u00020\u0013H\u0016¢\u0006\u0004\b\u0017\u0010\u0018J\u001f\u0010\u001b\u001a\u00020\b2\u0006\u0010\u0019\u001a\u00020\u00022\u0006\u0010\u001a\u001a\u00020\u0013H\u0016¢\u0006\u0004\b\u001b\u0010\u001cR3\u0010\n\u001a!\u0012\u0013\u0012\u00110\u0004¢\u0006\f\b\u0005\u0012\b\b\u0006\u0012\u0004\b\b(\u0007\u0012\u0004\u0012\u00020\b0\u0003j\u0002`\t8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\n\u0010\u001dR\u001c\u0010\u000e\u001a\b\u0012\u0004\u0012\u00020\u00040\r8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u000e\u0010\u001e¨\u0006\u001f"}, d2 = {"Lcom/adif/elcanomovil/uiStations/adapters/OfferAdapter;", "Landroidx/recyclerview/widget/h0;", "Landroidx/recyclerview/widget/I0;", "Lkotlin/Function1;", "Lcom/adif/elcanomovil/uiStations/entities/Services;", "Lkotlin/ParameterName;", AppMeasurementSdk.ConditionalUserProperty.NAME, "service", "", "Lcom/adif/elcanomovil/uiStations/adapters/OnOfferTap;", "onOfferTap", "<init>", "(Lkotlin/jvm/functions/Function1;)V", "", FirebaseAnalytics.Param.ITEMS, "update", "(Ljava/util/List;)V", "Landroid/view/ViewGroup;", "parent", "", "viewType", "onCreateViewHolder", "(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/I0;", "getItemCount", "()I", "holder", "position", "onBindViewHolder", "(Landroidx/recyclerview/widget/I0;I)V", "Lkotlin/jvm/functions/Function1;", "Ljava/util/List;", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class OfferAdapter extends AbstractC0220h0 {
|
||||
private List<Services> items;
|
||||
private final Function1<Services, Unit> onOfferTap;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public OfferAdapter(Function1<? super Services, Unit> onOfferTap) {
|
||||
Intrinsics.checkNotNullParameter(onOfferTap, "onOfferTap");
|
||||
this.onOfferTap = onOfferTap;
|
||||
this.items = new ArrayList();
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public int getItemCount() {
|
||||
return this.items.size();
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public void onBindViewHolder(I0 holder, int position) {
|
||||
Intrinsics.checkNotNullParameter(holder, "holder");
|
||||
if (holder instanceof OfferViewHolder) {
|
||||
((OfferViewHolder) holder).bind(this.items.get(position), this.onOfferTap, position);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public I0 onCreateViewHolder(ViewGroup parent, int viewType) {
|
||||
Intrinsics.checkNotNullParameter(parent, "parent");
|
||||
View inflate = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_stations_page_commercial_offer, parent, false);
|
||||
Intrinsics.checkNotNull(inflate);
|
||||
return new OfferViewHolder(inflate);
|
||||
}
|
||||
|
||||
public final void update(List<Services> items) {
|
||||
if (items != null) {
|
||||
this.items = items;
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.adif.elcanomovil.uiStations.adapters;
|
||||
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000*@\u0010\u0000\"\u001d\u0012\u0013\u0012\u00110\u0002¢\u0006\f\b\u0003\u0012\b\b\u0004\u0012\u0004\b\b(\u0005\u0012\u0004\u0012\u00020\u00060\u00012\u001d\u0012\u0013\u0012\u00110\u0002¢\u0006\f\b\u0003\u0012\b\b\u0004\u0012\u0004\b\b(\u0005\u0012\u0004\u0012\u00020\u00060\u0001¨\u0006\u0007"}, d2 = {"OnOfferTap", "Lkotlin/Function1;", "Lcom/adif/elcanomovil/uiStations/entities/Services;", "Lkotlin/ParameterName;", AppMeasurementSdk.ConditionalUserProperty.NAME, "service", "", "ui-stations_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class OfferAdapterKt {
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
package com.adif.elcanomovil.uiStations.adapters;
|
||||
|
||||
import I0.h;
|
||||
import I0.p;
|
||||
import L1.a;
|
||||
import S0.i;
|
||||
import android.view.View;
|
||||
import androidx.appcompat.widget.AppCompatImageView;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import androidx.recyclerview.widget.I0;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
import com.adif.elcanomovil.uiStations.databinding.ItemStationsPageCommercialOfferBinding;
|
||||
import com.adif.elcanomovil.uiStations.entities.Services;
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u000f\u0012\u0006\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0004\u0010\u0005JD\u0010\u0011\u001a\u00020\f2\u0006\u0010\u0007\u001a\u00020\u00062%\u0010\u000e\u001a!\u0012\u0013\u0012\u00110\u0006¢\u0006\f\b\t\u0012\b\b\n\u0012\u0004\b\b(\u000b\u0012\u0004\u0012\u00020\f0\bj\u0002`\r2\u0006\u0010\u0010\u001a\u00020\u000f¢\u0006\u0004\b\u0011\u0010\u0012R\u0014\u0010\u0014\u001a\u00020\u00138\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0014\u0010\u0015¨\u0006\u0016"}, d2 = {"Lcom/adif/elcanomovil/uiStations/adapters/OfferViewHolder;", "Landroidx/recyclerview/widget/I0;", "Landroid/view/View;", "itemView", "<init>", "(Landroid/view/View;)V", "Lcom/adif/elcanomovil/uiStations/entities/Services;", "item", "Lkotlin/Function1;", "Lkotlin/ParameterName;", AppMeasurementSdk.ConditionalUserProperty.NAME, "service", "", "Lcom/adif/elcanomovil/uiStations/adapters/OnServiceTap;", "onServiceTap", "", "position", "bind", "(Lcom/adif/elcanomovil/uiStations/entities/Services;Lkotlin/jvm/functions/Function1;I)V", "Lcom/adif/elcanomovil/uiStations/databinding/ItemStationsPageCommercialOfferBinding;", "itemBinding", "Lcom/adif/elcanomovil/uiStations/databinding/ItemStationsPageCommercialOfferBinding;", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nOfferAdapter.kt\nKotlin\n*S Kotlin\n*F\n+ 1 OfferAdapter.kt\ncom/adif/elcanomovil/uiStations/adapters/OfferViewHolder\n+ 2 Extensions.kt\ncoil/-SingletonExtensions\n*L\n1#1,64:1\n54#2,3:65\n24#2:68\n59#2,6:69\n*S KotlinDebug\n*F\n+ 1 OfferAdapter.kt\ncom/adif/elcanomovil/uiStations/adapters/OfferViewHolder\n*L\n57#1:65,3\n57#1:68\n57#1:69,6\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class OfferViewHolder extends I0 {
|
||||
private final ItemStationsPageCommercialOfferBinding itemBinding;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public OfferViewHolder(View itemView) {
|
||||
super(itemView);
|
||||
Intrinsics.checkNotNullParameter(itemView, "itemView");
|
||||
ItemStationsPageCommercialOfferBinding bind = ItemStationsPageCommercialOfferBinding.bind(itemView);
|
||||
Intrinsics.checkNotNullExpressionValue(bind, "bind(...)");
|
||||
this.itemBinding = bind;
|
||||
}
|
||||
|
||||
public static final void bind$lambda$1$lambda$0(Function1 onServiceTap, Services item, View view) {
|
||||
Intrinsics.checkNotNullParameter(onServiceTap, "$onServiceTap");
|
||||
Intrinsics.checkNotNullParameter(item, "$item");
|
||||
onServiceTap.invoke(item);
|
||||
}
|
||||
|
||||
public final void bind(Services item, Function1<? super Services, Unit> onServiceTap, int position) {
|
||||
Intrinsics.checkNotNullParameter(item, "item");
|
||||
Intrinsics.checkNotNullParameter(onServiceTap, "onServiceTap");
|
||||
ConstraintLayout constraintLayout = this.itemBinding.layout;
|
||||
constraintLayout.setOnClickListener(new a(item, onServiceTap, 1));
|
||||
constraintLayout.setBackgroundResource(position % 2 == 0 ? R.color.black : R.color.darkLight);
|
||||
AppCompatImageView icon = this.itemBinding.icon;
|
||||
Intrinsics.checkNotNullExpressionValue(icon, "icon");
|
||||
String offerLogo = item.getOfferLogo();
|
||||
h a2 = I0.a.a(icon.getContext());
|
||||
i iVar = new i(icon.getContext());
|
||||
iVar.f1464c = offerLogo;
|
||||
iVar.c(icon);
|
||||
((p) a2).b(iVar.a());
|
||||
this.itemBinding.description.setText(item.getOfferName());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.adif.elcanomovil.uiStations.adapters;
|
||||
|
||||
import I0.h;
|
||||
import I0.p;
|
||||
import L1.a;
|
||||
import S0.i;
|
||||
import android.view.View;
|
||||
import android.widget.ImageButton;
|
||||
import androidx.recyclerview.widget.I0;
|
||||
import com.adif.elcanomovil.uiStations.databinding.ItemStationsPageServicesBinding;
|
||||
import com.adif.elcanomovil.uiStations.entities.Services;
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.text.StringsKt;
|
||||
|
||||
@Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u000f\u0012\u0006\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0004\u0010\u0005J<\u0010\u000f\u001a\u00020\f2\u0006\u0010\u0007\u001a\u00020\u00062%\u0010\u000e\u001a!\u0012\u0013\u0012\u00110\u0006¢\u0006\f\b\t\u0012\b\b\n\u0012\u0004\b\b(\u000b\u0012\u0004\u0012\u00020\f0\bj\u0002`\r¢\u0006\u0004\b\u000f\u0010\u0010R\u0014\u0010\u0012\u001a\u00020\u00118\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0012\u0010\u0013¨\u0006\u0014"}, d2 = {"Lcom/adif/elcanomovil/uiStations/adapters/OneStationViewHolder;", "Landroidx/recyclerview/widget/I0;", "Landroid/view/View;", "itemView", "<init>", "(Landroid/view/View;)V", "Lcom/adif/elcanomovil/uiStations/entities/Services;", "item", "Lkotlin/Function1;", "Lkotlin/ParameterName;", AppMeasurementSdk.ConditionalUserProperty.NAME, "service", "", "Lcom/adif/elcanomovil/uiStations/adapters/OnServiceTap;", "onServiceTap", "bind", "(Lcom/adif/elcanomovil/uiStations/entities/Services;Lkotlin/jvm/functions/Function1;)V", "Lcom/adif/elcanomovil/uiStations/databinding/ItemStationsPageServicesBinding;", "itemBinding", "Lcom/adif/elcanomovil/uiStations/databinding/ItemStationsPageServicesBinding;", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nServiceAdapter.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ServiceAdapter.kt\ncom/adif/elcanomovil/uiStations/adapters/OneStationViewHolder\n+ 2 Extensions.kt\ncoil/-SingletonExtensions\n*L\n1#1,63:1\n54#2,3:64\n24#2:67\n59#2,6:68\n*S KotlinDebug\n*F\n+ 1 ServiceAdapter.kt\ncom/adif/elcanomovil/uiStations/adapters/OneStationViewHolder\n*L\n58#1:64,3\n58#1:67\n58#1:68,6\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class OneStationViewHolder extends I0 {
|
||||
private final ItemStationsPageServicesBinding itemBinding;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public OneStationViewHolder(View itemView) {
|
||||
super(itemView);
|
||||
Intrinsics.checkNotNullParameter(itemView, "itemView");
|
||||
ItemStationsPageServicesBinding bind = ItemStationsPageServicesBinding.bind(itemView);
|
||||
Intrinsics.checkNotNullExpressionValue(bind, "bind(...)");
|
||||
this.itemBinding = bind;
|
||||
}
|
||||
|
||||
public static final void bind$lambda$0(Function1 onServiceTap, Services item, View view) {
|
||||
Intrinsics.checkNotNullParameter(onServiceTap, "$onServiceTap");
|
||||
Intrinsics.checkNotNullParameter(item, "$item");
|
||||
onServiceTap.invoke(item);
|
||||
}
|
||||
|
||||
public final void bind(Services item, Function1<? super Services, Unit> onServiceTap) {
|
||||
Intrinsics.checkNotNullParameter(item, "item");
|
||||
Intrinsics.checkNotNullParameter(onServiceTap, "onServiceTap");
|
||||
this.itemBinding.button.setOnClickListener(new a(item, onServiceTap, 2));
|
||||
this.itemBinding.button.setContentDescription(item.getName());
|
||||
String logo = item.getLogo();
|
||||
if (logo == null || StringsKt.isBlank(logo)) {
|
||||
this.itemBinding.name.setText(item.getName());
|
||||
this.itemBinding.name.setVisibility(0);
|
||||
return;
|
||||
}
|
||||
this.itemBinding.name.setVisibility(8);
|
||||
this.itemBinding.icon.setVisibility(0);
|
||||
ImageButton icon = this.itemBinding.icon;
|
||||
Intrinsics.checkNotNullExpressionValue(icon, "icon");
|
||||
String logo2 = item.getLogo();
|
||||
h a2 = I0.a.a(icon.getContext());
|
||||
i iVar = new i(icon.getContext());
|
||||
iVar.f1464c = logo2;
|
||||
iVar.c(icon);
|
||||
((p) a2).b(iVar.a());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.adif.elcanomovil.uiStations.adapters;
|
||||
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import androidx.recyclerview.widget.AbstractC0220h0;
|
||||
import androidx.recyclerview.widget.I0;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
import com.adif.elcanomovil.uiStations.entities.Services;
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000>\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\f\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B.\u0012%\u0010\n\u001a!\u0012\u0013\u0012\u00110\u0004¢\u0006\f\b\u0005\u0012\b\b\u0006\u0012\u0004\b\b(\u0007\u0012\u0004\u0012\u00020\b0\u0003j\u0002`\t¢\u0006\u0004\b\u000b\u0010\fJ\u001d\u0010\u000f\u001a\u00020\b2\u000e\u0010\u000e\u001a\n\u0012\u0004\u0012\u00020\u0004\u0018\u00010\r¢\u0006\u0004\b\u000f\u0010\u0010J\u001f\u0010\u0015\u001a\u00020\u00022\u0006\u0010\u0012\u001a\u00020\u00112\u0006\u0010\u0014\u001a\u00020\u0013H\u0016¢\u0006\u0004\b\u0015\u0010\u0016J\u000f\u0010\u0017\u001a\u00020\u0013H\u0016¢\u0006\u0004\b\u0017\u0010\u0018J\u001f\u0010\u001b\u001a\u00020\b2\u0006\u0010\u0019\u001a\u00020\u00022\u0006\u0010\u001a\u001a\u00020\u0013H\u0016¢\u0006\u0004\b\u001b\u0010\u001cR3\u0010\n\u001a!\u0012\u0013\u0012\u00110\u0004¢\u0006\f\b\u0005\u0012\b\b\u0006\u0012\u0004\b\b(\u0007\u0012\u0004\u0012\u00020\b0\u0003j\u0002`\t8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\n\u0010\u001dR\u001c\u0010\u000e\u001a\b\u0012\u0004\u0012\u00020\u00040\r8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u000e\u0010\u001e¨\u0006\u001f"}, d2 = {"Lcom/adif/elcanomovil/uiStations/adapters/ServiceAdapter;", "Landroidx/recyclerview/widget/h0;", "Landroidx/recyclerview/widget/I0;", "Lkotlin/Function1;", "Lcom/adif/elcanomovil/uiStations/entities/Services;", "Lkotlin/ParameterName;", AppMeasurementSdk.ConditionalUserProperty.NAME, "service", "", "Lcom/adif/elcanomovil/uiStations/adapters/OnServiceTap;", "onServiceTap", "<init>", "(Lkotlin/jvm/functions/Function1;)V", "", FirebaseAnalytics.Param.ITEMS, "update", "(Ljava/util/List;)V", "Landroid/view/ViewGroup;", "parent", "", "viewType", "onCreateViewHolder", "(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/I0;", "getItemCount", "()I", "holder", "position", "onBindViewHolder", "(Landroidx/recyclerview/widget/I0;I)V", "Lkotlin/jvm/functions/Function1;", "Ljava/util/List;", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class ServiceAdapter extends AbstractC0220h0 {
|
||||
private List<Services> items;
|
||||
private final Function1<Services, Unit> onServiceTap;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public ServiceAdapter(Function1<? super Services, Unit> onServiceTap) {
|
||||
Intrinsics.checkNotNullParameter(onServiceTap, "onServiceTap");
|
||||
this.onServiceTap = onServiceTap;
|
||||
this.items = new ArrayList();
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public int getItemCount() {
|
||||
return this.items.size();
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public void onBindViewHolder(I0 holder, int position) {
|
||||
Intrinsics.checkNotNullParameter(holder, "holder");
|
||||
if (holder instanceof OneStationViewHolder) {
|
||||
((OneStationViewHolder) holder).bind(this.items.get(position), this.onServiceTap);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public I0 onCreateViewHolder(ViewGroup parent, int viewType) {
|
||||
Intrinsics.checkNotNullParameter(parent, "parent");
|
||||
View inflate = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_stations_page_services, parent, false);
|
||||
Intrinsics.checkNotNull(inflate);
|
||||
return new OneStationViewHolder(inflate);
|
||||
}
|
||||
|
||||
public final void update(List<Services> items) {
|
||||
if (items != null) {
|
||||
this.items = items;
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.adif.elcanomovil.uiStations.adapters;
|
||||
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000*@\u0010\u0000\"\u001d\u0012\u0013\u0012\u00110\u0002¢\u0006\f\b\u0003\u0012\b\b\u0004\u0012\u0004\b\b(\u0005\u0012\u0004\u0012\u00020\u00060\u00012\u001d\u0012\u0013\u0012\u00110\u0002¢\u0006\f\b\u0003\u0012\b\b\u0004\u0012\u0004\b\b(\u0005\u0012\u0004\u0012\u00020\u00060\u0001¨\u0006\u0007"}, d2 = {"OnServiceTap", "Lkotlin/Function1;", "Lcom/adif/elcanomovil/uiStations/entities/Services;", "Lkotlin/ParameterName;", AppMeasurementSdk.ConditionalUserProperty.NAME, "service", "", "ui-stations_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class ServiceAdapterKt {
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.adif.elcanomovil.uiStations.adapters;
|
||||
|
||||
import androidx.fragment.app.K;
|
||||
import androidx.viewpager2.adapter.f;
|
||||
import com.adif.elcanomovil.uiStations.main.StationsPageActivitiesFragment;
|
||||
import com.adif.elcanomovil.uiStations.main.StationsPageCommercialFragment;
|
||||
import com.adif.elcanomovil.uiStations.main.StationsPageServicesFragment;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0006\u0018\u00002\u00020\u0001B\u000f\u0012\u0006\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0004\u0010\u0005J\u000f\u0010\u0007\u001a\u00020\u0006H\u0016¢\u0006\u0004\b\u0007\u0010\bJ\u0017\u0010\n\u001a\u00020\u00022\u0006\u0010\t\u001a\u00020\u0006H\u0016¢\u0006\u0004\b\n\u0010\u000b¨\u0006\f"}, d2 = {"Lcom/adif/elcanomovil/uiStations/adapters/StationsViewPagerAdapter;", "Landroidx/viewpager2/adapter/f;", "Landroidx/fragment/app/K;", "fragment", "<init>", "(Landroidx/fragment/app/K;)V", "", "getItemCount", "()I", "position", "createFragment", "(I)Landroidx/fragment/app/K;", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsViewPagerAdapter extends f {
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public StationsViewPagerAdapter(K fragment) {
|
||||
super(fragment);
|
||||
Intrinsics.checkNotNullParameter(fragment, "fragment");
|
||||
}
|
||||
|
||||
@Override // androidx.viewpager2.adapter.f
|
||||
public K createFragment(int position) {
|
||||
return position != 0 ? position != 1 ? new StationsPageActivitiesFragment() : new StationsPageCommercialFragment() : new StationsPageServicesFragment();
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public int getItemCount() {
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package com.adif.elcanomovil.uiStations.databinding;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
import androidx.appcompat.widget.LinearLayoutCompat;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class ExpandableItemStationsPageCommercialBinding {
|
||||
public final ImageView headerArrow;
|
||||
public final ConstraintLayout headerLayout;
|
||||
public final TextView headerText;
|
||||
private final LinearLayoutCompat rootView;
|
||||
public final RecyclerView rv;
|
||||
|
||||
private ExpandableItemStationsPageCommercialBinding(LinearLayoutCompat linearLayoutCompat, ImageView imageView, ConstraintLayout constraintLayout, TextView textView, RecyclerView recyclerView) {
|
||||
this.rootView = linearLayoutCompat;
|
||||
this.headerArrow = imageView;
|
||||
this.headerLayout = constraintLayout;
|
||||
this.headerText = textView;
|
||||
this.rv = recyclerView;
|
||||
}
|
||||
|
||||
public static ExpandableItemStationsPageCommercialBinding bind(View view) {
|
||||
int i = R.id.header_arrow;
|
||||
ImageView imageView = (ImageView) AbstractC0105a.t(view, i);
|
||||
if (imageView != null) {
|
||||
i = R.id.header_layout;
|
||||
ConstraintLayout constraintLayout = (ConstraintLayout) AbstractC0105a.t(view, i);
|
||||
if (constraintLayout != null) {
|
||||
i = R.id.header_text;
|
||||
TextView textView = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView != null) {
|
||||
i = R.id.rv;
|
||||
RecyclerView recyclerView = (RecyclerView) AbstractC0105a.t(view, i);
|
||||
if (recyclerView != null) {
|
||||
return new ExpandableItemStationsPageCommercialBinding((LinearLayoutCompat) view, imageView, constraintLayout, textView, recyclerView);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
|
||||
}
|
||||
|
||||
public static ExpandableItemStationsPageCommercialBinding inflate(LayoutInflater layoutInflater) {
|
||||
return inflate(layoutInflater, null, false);
|
||||
}
|
||||
|
||||
public static ExpandableItemStationsPageCommercialBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z3) {
|
||||
View inflate = layoutInflater.inflate(R.layout.expandable_item_stations_page_commercial, viewGroup, false);
|
||||
if (z3) {
|
||||
viewGroup.addView(inflate);
|
||||
}
|
||||
return bind(inflate);
|
||||
}
|
||||
|
||||
public LinearLayoutCompat getRoot() {
|
||||
return this.rootView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package com.adif.elcanomovil.uiStations.databinding;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import androidx.viewpager2.widget.ViewPager2;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
import com.google.android.material.tabs.TabLayout;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class FragmentStationsBinding {
|
||||
public final ViewPager2 pager;
|
||||
private final ConstraintLayout rootView;
|
||||
public final ImageView search;
|
||||
public final View separator;
|
||||
public final TextView stationsStationName;
|
||||
public final TabLayout tabLayout;
|
||||
|
||||
private FragmentStationsBinding(ConstraintLayout constraintLayout, ViewPager2 viewPager2, ImageView imageView, View view, TextView textView, TabLayout tabLayout) {
|
||||
this.rootView = constraintLayout;
|
||||
this.pager = viewPager2;
|
||||
this.search = imageView;
|
||||
this.separator = view;
|
||||
this.stationsStationName = textView;
|
||||
this.tabLayout = tabLayout;
|
||||
}
|
||||
|
||||
public static FragmentStationsBinding bind(View view) {
|
||||
View t2;
|
||||
int i = R.id.pager;
|
||||
ViewPager2 viewPager2 = (ViewPager2) AbstractC0105a.t(view, i);
|
||||
if (viewPager2 != null) {
|
||||
i = R.id.search;
|
||||
ImageView imageView = (ImageView) AbstractC0105a.t(view, i);
|
||||
if (imageView != null && (t2 = AbstractC0105a.t(view, (i = R.id.separator))) != null) {
|
||||
i = R.id.stations_station_name;
|
||||
TextView textView = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView != null) {
|
||||
i = R.id.tab_layout;
|
||||
TabLayout tabLayout = (TabLayout) AbstractC0105a.t(view, i);
|
||||
if (tabLayout != null) {
|
||||
return new FragmentStationsBinding((ConstraintLayout) view, viewPager2, imageView, t2, textView, tabLayout);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
|
||||
}
|
||||
|
||||
public static FragmentStationsBinding inflate(LayoutInflater layoutInflater) {
|
||||
return inflate(layoutInflater, null, false);
|
||||
}
|
||||
|
||||
public static FragmentStationsBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z3) {
|
||||
View inflate = layoutInflater.inflate(R.layout.fragment_stations, viewGroup, false);
|
||||
if (z3) {
|
||||
viewGroup.addView(inflate);
|
||||
}
|
||||
return bind(inflate);
|
||||
}
|
||||
|
||||
public ConstraintLayout getRoot() {
|
||||
return this.rootView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.adif.elcanomovil.uiStations.databinding;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import androidx.appcompat.widget.LinearLayoutCompat;
|
||||
import androidx.core.widget.NestedScrollView;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.adif.elcanomovil.commonViews.EmptyCirculationsView;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class FragmentStationsPageActivitiesBinding {
|
||||
public final EmptyCirculationsView loadingEmptyOrErrorCommonView;
|
||||
private final NestedScrollView rootView;
|
||||
public final RecyclerView rvActivities;
|
||||
public final LinearLayoutCompat viewNotEmptyStation;
|
||||
|
||||
private FragmentStationsPageActivitiesBinding(NestedScrollView nestedScrollView, EmptyCirculationsView emptyCirculationsView, RecyclerView recyclerView, LinearLayoutCompat linearLayoutCompat) {
|
||||
this.rootView = nestedScrollView;
|
||||
this.loadingEmptyOrErrorCommonView = emptyCirculationsView;
|
||||
this.rvActivities = recyclerView;
|
||||
this.viewNotEmptyStation = linearLayoutCompat;
|
||||
}
|
||||
|
||||
public static FragmentStationsPageActivitiesBinding bind(View view) {
|
||||
int i = R.id.loading_empty_or_error_common_view;
|
||||
EmptyCirculationsView emptyCirculationsView = (EmptyCirculationsView) AbstractC0105a.t(view, i);
|
||||
if (emptyCirculationsView != null) {
|
||||
i = R.id.rv_activities;
|
||||
RecyclerView recyclerView = (RecyclerView) AbstractC0105a.t(view, i);
|
||||
if (recyclerView != null) {
|
||||
i = R.id.view_not_empty_station;
|
||||
LinearLayoutCompat linearLayoutCompat = (LinearLayoutCompat) AbstractC0105a.t(view, i);
|
||||
if (linearLayoutCompat != null) {
|
||||
return new FragmentStationsPageActivitiesBinding((NestedScrollView) view, emptyCirculationsView, recyclerView, linearLayoutCompat);
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
|
||||
}
|
||||
|
||||
public static FragmentStationsPageActivitiesBinding inflate(LayoutInflater layoutInflater) {
|
||||
return inflate(layoutInflater, null, false);
|
||||
}
|
||||
|
||||
public static FragmentStationsPageActivitiesBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z3) {
|
||||
View inflate = layoutInflater.inflate(R.layout.fragment_stations_page_activities, viewGroup, false);
|
||||
if (z3) {
|
||||
viewGroup.addView(inflate);
|
||||
}
|
||||
return bind(inflate);
|
||||
}
|
||||
|
||||
public NestedScrollView getRoot() {
|
||||
return this.rootView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
package com.adif.elcanomovil.uiStations.databinding;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import androidx.appcompat.widget.LinearLayoutCompat;
|
||||
import androidx.core.widget.NestedScrollView;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.adif.elcanomovil.commonViews.EmptyCirculationsView;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class FragmentStationsPageComercialBinding {
|
||||
public final ExpandableItemStationsPageCommercialBinding groceryStore;
|
||||
public final ExpandableItemStationsPageCommercialBinding leisure;
|
||||
public final EmptyCirculationsView loadingEmptyOrErrorCommonView;
|
||||
public final ExpandableItemStationsPageCommercialBinding others;
|
||||
public final ExpandableItemStationsPageCommercialBinding rentACar;
|
||||
public final ExpandableItemStationsPageCommercialBinding restaurant;
|
||||
private final NestedScrollView rootView;
|
||||
public final RecyclerView rvOffers;
|
||||
public final ExpandableItemStationsPageCommercialBinding shop;
|
||||
public final ExpandableItemStationsPageCommercialBinding souvenir;
|
||||
public final LinearLayoutCompat viewNotEmptyStation;
|
||||
|
||||
private FragmentStationsPageComercialBinding(NestedScrollView nestedScrollView, ExpandableItemStationsPageCommercialBinding expandableItemStationsPageCommercialBinding, ExpandableItemStationsPageCommercialBinding expandableItemStationsPageCommercialBinding2, EmptyCirculationsView emptyCirculationsView, ExpandableItemStationsPageCommercialBinding expandableItemStationsPageCommercialBinding3, ExpandableItemStationsPageCommercialBinding expandableItemStationsPageCommercialBinding4, ExpandableItemStationsPageCommercialBinding expandableItemStationsPageCommercialBinding5, RecyclerView recyclerView, ExpandableItemStationsPageCommercialBinding expandableItemStationsPageCommercialBinding6, ExpandableItemStationsPageCommercialBinding expandableItemStationsPageCommercialBinding7, LinearLayoutCompat linearLayoutCompat) {
|
||||
this.rootView = nestedScrollView;
|
||||
this.groceryStore = expandableItemStationsPageCommercialBinding;
|
||||
this.leisure = expandableItemStationsPageCommercialBinding2;
|
||||
this.loadingEmptyOrErrorCommonView = emptyCirculationsView;
|
||||
this.others = expandableItemStationsPageCommercialBinding3;
|
||||
this.rentACar = expandableItemStationsPageCommercialBinding4;
|
||||
this.restaurant = expandableItemStationsPageCommercialBinding5;
|
||||
this.rvOffers = recyclerView;
|
||||
this.shop = expandableItemStationsPageCommercialBinding6;
|
||||
this.souvenir = expandableItemStationsPageCommercialBinding7;
|
||||
this.viewNotEmptyStation = linearLayoutCompat;
|
||||
}
|
||||
|
||||
public static FragmentStationsPageComercialBinding bind(View view) {
|
||||
View t2;
|
||||
View t4;
|
||||
int i = R.id.grocery_store;
|
||||
View t5 = AbstractC0105a.t(view, i);
|
||||
if (t5 != null) {
|
||||
ExpandableItemStationsPageCommercialBinding bind = ExpandableItemStationsPageCommercialBinding.bind(t5);
|
||||
i = R.id.leisure;
|
||||
View t6 = AbstractC0105a.t(view, i);
|
||||
if (t6 != null) {
|
||||
ExpandableItemStationsPageCommercialBinding bind2 = ExpandableItemStationsPageCommercialBinding.bind(t6);
|
||||
i = R.id.loading_empty_or_error_common_view;
|
||||
EmptyCirculationsView emptyCirculationsView = (EmptyCirculationsView) AbstractC0105a.t(view, i);
|
||||
if (emptyCirculationsView != null && (t2 = AbstractC0105a.t(view, (i = R.id.others))) != null) {
|
||||
ExpandableItemStationsPageCommercialBinding bind3 = ExpandableItemStationsPageCommercialBinding.bind(t2);
|
||||
i = R.id.rent_a_car;
|
||||
View t7 = AbstractC0105a.t(view, i);
|
||||
if (t7 != null) {
|
||||
ExpandableItemStationsPageCommercialBinding bind4 = ExpandableItemStationsPageCommercialBinding.bind(t7);
|
||||
i = R.id.restaurant;
|
||||
View t8 = AbstractC0105a.t(view, i);
|
||||
if (t8 != null) {
|
||||
ExpandableItemStationsPageCommercialBinding bind5 = ExpandableItemStationsPageCommercialBinding.bind(t8);
|
||||
i = R.id.rv_offers;
|
||||
RecyclerView recyclerView = (RecyclerView) AbstractC0105a.t(view, i);
|
||||
if (recyclerView != null && (t4 = AbstractC0105a.t(view, (i = R.id.shop))) != null) {
|
||||
ExpandableItemStationsPageCommercialBinding bind6 = ExpandableItemStationsPageCommercialBinding.bind(t4);
|
||||
i = R.id.souvenir;
|
||||
View t9 = AbstractC0105a.t(view, i);
|
||||
if (t9 != null) {
|
||||
ExpandableItemStationsPageCommercialBinding bind7 = ExpandableItemStationsPageCommercialBinding.bind(t9);
|
||||
i = R.id.view_not_empty_station;
|
||||
LinearLayoutCompat linearLayoutCompat = (LinearLayoutCompat) AbstractC0105a.t(view, i);
|
||||
if (linearLayoutCompat != null) {
|
||||
return new FragmentStationsPageComercialBinding((NestedScrollView) view, bind, bind2, emptyCirculationsView, bind3, bind4, bind5, recyclerView, bind6, bind7, linearLayoutCompat);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
|
||||
}
|
||||
|
||||
public static FragmentStationsPageComercialBinding inflate(LayoutInflater layoutInflater) {
|
||||
return inflate(layoutInflater, null, false);
|
||||
}
|
||||
|
||||
public static FragmentStationsPageComercialBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z3) {
|
||||
View inflate = layoutInflater.inflate(R.layout.fragment_stations_page_comercial, viewGroup, false);
|
||||
if (z3) {
|
||||
viewGroup.addView(inflate);
|
||||
}
|
||||
return bind(inflate);
|
||||
}
|
||||
|
||||
public NestedScrollView getRoot() {
|
||||
return this.rootView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,168 @@
|
||||
package com.adif.elcanomovil.uiStations.databinding;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import androidx.core.widget.NestedScrollView;
|
||||
import androidx.fragment.app.FragmentContainerView;
|
||||
import com.adif.elcanomovil.commonViews.EmptyCirculationsView;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class FragmentStationsPageServicesBinding {
|
||||
public final ServiceBinding accessibility;
|
||||
public final ImageView addFavourite;
|
||||
public final ImageView avisa;
|
||||
public final ConstraintLayout banner;
|
||||
public final TextView bannerDescription;
|
||||
public final ImageView bannerImage;
|
||||
public final TextView bannerTitle;
|
||||
public final ImageView centerCameraMap;
|
||||
public final ServiceBinding ecomiles;
|
||||
public final ServiceBinding intermodality;
|
||||
public final LinearLayout linearLayout;
|
||||
public final EmptyCirculationsView loadingEmptyOrErrorCommonView;
|
||||
public final TextView location;
|
||||
public final LinearLayout locationLayout;
|
||||
public final FragmentContainerView map;
|
||||
public final NestedScrollView nestedScroll;
|
||||
public final TextView openingHours;
|
||||
public final LinearLayout openingHoursLayout;
|
||||
private final ConstraintLayout rootView;
|
||||
public final ServiceBinding stationServices;
|
||||
public final TextView title;
|
||||
public final LinearLayout viewNotEmptyStation;
|
||||
|
||||
private FragmentStationsPageServicesBinding(ConstraintLayout constraintLayout, ServiceBinding serviceBinding, ImageView imageView, ImageView imageView2, ConstraintLayout constraintLayout2, TextView textView, ImageView imageView3, TextView textView2, ImageView imageView4, ServiceBinding serviceBinding2, ServiceBinding serviceBinding3, LinearLayout linearLayout, EmptyCirculationsView emptyCirculationsView, TextView textView3, LinearLayout linearLayout2, FragmentContainerView fragmentContainerView, NestedScrollView nestedScrollView, TextView textView4, LinearLayout linearLayout3, ServiceBinding serviceBinding4, TextView textView5, LinearLayout linearLayout4) {
|
||||
this.rootView = constraintLayout;
|
||||
this.accessibility = serviceBinding;
|
||||
this.addFavourite = imageView;
|
||||
this.avisa = imageView2;
|
||||
this.banner = constraintLayout2;
|
||||
this.bannerDescription = textView;
|
||||
this.bannerImage = imageView3;
|
||||
this.bannerTitle = textView2;
|
||||
this.centerCameraMap = imageView4;
|
||||
this.ecomiles = serviceBinding2;
|
||||
this.intermodality = serviceBinding3;
|
||||
this.linearLayout = linearLayout;
|
||||
this.loadingEmptyOrErrorCommonView = emptyCirculationsView;
|
||||
this.location = textView3;
|
||||
this.locationLayout = linearLayout2;
|
||||
this.map = fragmentContainerView;
|
||||
this.nestedScroll = nestedScrollView;
|
||||
this.openingHours = textView4;
|
||||
this.openingHoursLayout = linearLayout3;
|
||||
this.stationServices = serviceBinding4;
|
||||
this.title = textView5;
|
||||
this.viewNotEmptyStation = linearLayout4;
|
||||
}
|
||||
|
||||
public static FragmentStationsPageServicesBinding bind(View view) {
|
||||
View t2;
|
||||
View t4;
|
||||
int i = R.id.accessibility;
|
||||
View t5 = AbstractC0105a.t(view, i);
|
||||
if (t5 != null) {
|
||||
ServiceBinding bind = ServiceBinding.bind(t5);
|
||||
i = R.id.add_favourite;
|
||||
ImageView imageView = (ImageView) AbstractC0105a.t(view, i);
|
||||
if (imageView != null) {
|
||||
i = R.id.avisa;
|
||||
ImageView imageView2 = (ImageView) AbstractC0105a.t(view, i);
|
||||
if (imageView2 != null) {
|
||||
i = R.id.banner;
|
||||
ConstraintLayout constraintLayout = (ConstraintLayout) AbstractC0105a.t(view, i);
|
||||
if (constraintLayout != null) {
|
||||
i = R.id.banner_description;
|
||||
TextView textView = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView != null) {
|
||||
i = R.id.banner_image;
|
||||
ImageView imageView3 = (ImageView) AbstractC0105a.t(view, i);
|
||||
if (imageView3 != null) {
|
||||
i = R.id.banner_title;
|
||||
TextView textView2 = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView2 != null) {
|
||||
i = R.id.center_camera_map;
|
||||
ImageView imageView4 = (ImageView) AbstractC0105a.t(view, i);
|
||||
if (imageView4 != null && (t2 = AbstractC0105a.t(view, (i = R.id.ecomiles))) != null) {
|
||||
ServiceBinding bind2 = ServiceBinding.bind(t2);
|
||||
i = R.id.intermodality;
|
||||
View t6 = AbstractC0105a.t(view, i);
|
||||
if (t6 != null) {
|
||||
ServiceBinding bind3 = ServiceBinding.bind(t6);
|
||||
i = R.id.linearLayout;
|
||||
LinearLayout linearLayout = (LinearLayout) AbstractC0105a.t(view, i);
|
||||
if (linearLayout != null) {
|
||||
i = R.id.loading_empty_or_error_common_view;
|
||||
EmptyCirculationsView emptyCirculationsView = (EmptyCirculationsView) AbstractC0105a.t(view, i);
|
||||
if (emptyCirculationsView != null) {
|
||||
i = R.id.location;
|
||||
TextView textView3 = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView3 != null) {
|
||||
i = R.id.location_layout;
|
||||
LinearLayout linearLayout2 = (LinearLayout) AbstractC0105a.t(view, i);
|
||||
if (linearLayout2 != null) {
|
||||
i = R.id.map;
|
||||
FragmentContainerView fragmentContainerView = (FragmentContainerView) AbstractC0105a.t(view, i);
|
||||
if (fragmentContainerView != null) {
|
||||
i = R.id.nested_scroll;
|
||||
NestedScrollView nestedScrollView = (NestedScrollView) AbstractC0105a.t(view, i);
|
||||
if (nestedScrollView != null) {
|
||||
i = R.id.opening_hours;
|
||||
TextView textView4 = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView4 != null) {
|
||||
i = R.id.opening_hours_layout;
|
||||
LinearLayout linearLayout3 = (LinearLayout) AbstractC0105a.t(view, i);
|
||||
if (linearLayout3 != null && (t4 = AbstractC0105a.t(view, (i = R.id.station_services))) != null) {
|
||||
ServiceBinding bind4 = ServiceBinding.bind(t4);
|
||||
i = R.id.title;
|
||||
TextView textView5 = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView5 != null) {
|
||||
i = R.id.view_not_empty_station;
|
||||
LinearLayout linearLayout4 = (LinearLayout) AbstractC0105a.t(view, i);
|
||||
if (linearLayout4 != null) {
|
||||
return new FragmentStationsPageServicesBinding((ConstraintLayout) view, bind, imageView, imageView2, constraintLayout, textView, imageView3, textView2, imageView4, bind2, bind3, linearLayout, emptyCirculationsView, textView3, linearLayout2, fragmentContainerView, nestedScrollView, textView4, linearLayout3, bind4, textView5, linearLayout4);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
|
||||
}
|
||||
|
||||
public static FragmentStationsPageServicesBinding inflate(LayoutInflater layoutInflater) {
|
||||
return inflate(layoutInflater, null, false);
|
||||
}
|
||||
|
||||
public static FragmentStationsPageServicesBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z3) {
|
||||
View inflate = layoutInflater.inflate(R.layout.fragment_stations_page_services, viewGroup, false);
|
||||
if (z3) {
|
||||
viewGroup.addView(inflate);
|
||||
}
|
||||
return bind(inflate);
|
||||
}
|
||||
|
||||
public ConstraintLayout getRoot() {
|
||||
return this.rootView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
package com.adif.elcanomovil.uiStations.databinding;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.TextView;
|
||||
import androidx.appcompat.widget.AppCompatImageView;
|
||||
import androidx.appcompat.widget.LinearLayoutCompat;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import androidx.constraintlayout.widget.Guideline;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class ItemStationsPageActivitiesBinding {
|
||||
public final TextView arrowLink;
|
||||
public final TextView date;
|
||||
public final TextView description;
|
||||
public final Guideline guideline;
|
||||
public final ConstraintLayout layout;
|
||||
public final LinearLayoutCompat linearLayoutCompat;
|
||||
public final TextView name;
|
||||
private final ConstraintLayout rootView;
|
||||
public final AppCompatImageView serviceIcon;
|
||||
|
||||
private ItemStationsPageActivitiesBinding(ConstraintLayout constraintLayout, TextView textView, TextView textView2, TextView textView3, Guideline guideline, ConstraintLayout constraintLayout2, LinearLayoutCompat linearLayoutCompat, TextView textView4, AppCompatImageView appCompatImageView) {
|
||||
this.rootView = constraintLayout;
|
||||
this.arrowLink = textView;
|
||||
this.date = textView2;
|
||||
this.description = textView3;
|
||||
this.guideline = guideline;
|
||||
this.layout = constraintLayout2;
|
||||
this.linearLayoutCompat = linearLayoutCompat;
|
||||
this.name = textView4;
|
||||
this.serviceIcon = appCompatImageView;
|
||||
}
|
||||
|
||||
public static ItemStationsPageActivitiesBinding bind(View view) {
|
||||
int i = R.id.arrow_link;
|
||||
TextView textView = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView != null) {
|
||||
i = R.id.date;
|
||||
TextView textView2 = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView2 != null) {
|
||||
i = R.id.description;
|
||||
TextView textView3 = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView3 != null) {
|
||||
i = R.id.guideline;
|
||||
Guideline guideline = (Guideline) AbstractC0105a.t(view, i);
|
||||
if (guideline != null) {
|
||||
ConstraintLayout constraintLayout = (ConstraintLayout) view;
|
||||
i = R.id.linearLayoutCompat;
|
||||
LinearLayoutCompat linearLayoutCompat = (LinearLayoutCompat) AbstractC0105a.t(view, i);
|
||||
if (linearLayoutCompat != null) {
|
||||
i = R.id.name;
|
||||
TextView textView4 = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView4 != null) {
|
||||
i = R.id.service_icon;
|
||||
AppCompatImageView appCompatImageView = (AppCompatImageView) AbstractC0105a.t(view, i);
|
||||
if (appCompatImageView != null) {
|
||||
return new ItemStationsPageActivitiesBinding(constraintLayout, textView, textView2, textView3, guideline, constraintLayout, linearLayoutCompat, textView4, appCompatImageView);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
|
||||
}
|
||||
|
||||
public static ItemStationsPageActivitiesBinding inflate(LayoutInflater layoutInflater) {
|
||||
return inflate(layoutInflater, null, false);
|
||||
}
|
||||
|
||||
public static ItemStationsPageActivitiesBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z3) {
|
||||
View inflate = layoutInflater.inflate(R.layout.item_stations_page_activities, viewGroup, false);
|
||||
if (z3) {
|
||||
viewGroup.addView(inflate);
|
||||
}
|
||||
return bind(inflate);
|
||||
}
|
||||
|
||||
public ConstraintLayout getRoot() {
|
||||
return this.rootView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
package com.adif.elcanomovil.uiStations.databinding;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.TextView;
|
||||
import androidx.appcompat.widget.AppCompatImageView;
|
||||
import androidx.appcompat.widget.LinearLayoutCompat;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class ItemStationsPageCommercialBinding {
|
||||
public final ConstraintLayout layout;
|
||||
public final LinearLayoutCompat linearLayoutCompat;
|
||||
public final TextView name;
|
||||
public final AppCompatImageView offerIcon;
|
||||
private final ConstraintLayout rootView;
|
||||
public final AppCompatImageView serviceIcon;
|
||||
public final TextView type;
|
||||
|
||||
private ItemStationsPageCommercialBinding(ConstraintLayout constraintLayout, ConstraintLayout constraintLayout2, LinearLayoutCompat linearLayoutCompat, TextView textView, AppCompatImageView appCompatImageView, AppCompatImageView appCompatImageView2, TextView textView2) {
|
||||
this.rootView = constraintLayout;
|
||||
this.layout = constraintLayout2;
|
||||
this.linearLayoutCompat = linearLayoutCompat;
|
||||
this.name = textView;
|
||||
this.offerIcon = appCompatImageView;
|
||||
this.serviceIcon = appCompatImageView2;
|
||||
this.type = textView2;
|
||||
}
|
||||
|
||||
public static ItemStationsPageCommercialBinding bind(View view) {
|
||||
ConstraintLayout constraintLayout = (ConstraintLayout) view;
|
||||
int i = R.id.linearLayoutCompat;
|
||||
LinearLayoutCompat linearLayoutCompat = (LinearLayoutCompat) AbstractC0105a.t(view, i);
|
||||
if (linearLayoutCompat != null) {
|
||||
i = R.id.name;
|
||||
TextView textView = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView != null) {
|
||||
i = R.id.offer_icon;
|
||||
AppCompatImageView appCompatImageView = (AppCompatImageView) AbstractC0105a.t(view, i);
|
||||
if (appCompatImageView != null) {
|
||||
i = R.id.service_icon;
|
||||
AppCompatImageView appCompatImageView2 = (AppCompatImageView) AbstractC0105a.t(view, i);
|
||||
if (appCompatImageView2 != null) {
|
||||
i = R.id.type;
|
||||
TextView textView2 = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView2 != null) {
|
||||
return new ItemStationsPageCommercialBinding(constraintLayout, constraintLayout, linearLayoutCompat, textView, appCompatImageView, appCompatImageView2, textView2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
|
||||
}
|
||||
|
||||
public static ItemStationsPageCommercialBinding inflate(LayoutInflater layoutInflater) {
|
||||
return inflate(layoutInflater, null, false);
|
||||
}
|
||||
|
||||
public static ItemStationsPageCommercialBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z3) {
|
||||
View inflate = layoutInflater.inflate(R.layout.item_stations_page_commercial, viewGroup, false);
|
||||
if (z3) {
|
||||
viewGroup.addView(inflate);
|
||||
}
|
||||
return bind(inflate);
|
||||
}
|
||||
|
||||
public ConstraintLayout getRoot() {
|
||||
return this.rootView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.adif.elcanomovil.uiStations.databinding;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.TextView;
|
||||
import androidx.appcompat.widget.AppCompatImageView;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class ItemStationsPageCommercialOfferBinding {
|
||||
public final AppCompatImageView appCompatImageView;
|
||||
public final TextView description;
|
||||
public final AppCompatImageView icon;
|
||||
public final ConstraintLayout layout;
|
||||
private final ConstraintLayout rootView;
|
||||
|
||||
private ItemStationsPageCommercialOfferBinding(ConstraintLayout constraintLayout, AppCompatImageView appCompatImageView, TextView textView, AppCompatImageView appCompatImageView2, ConstraintLayout constraintLayout2) {
|
||||
this.rootView = constraintLayout;
|
||||
this.appCompatImageView = appCompatImageView;
|
||||
this.description = textView;
|
||||
this.icon = appCompatImageView2;
|
||||
this.layout = constraintLayout2;
|
||||
}
|
||||
|
||||
public static ItemStationsPageCommercialOfferBinding bind(View view) {
|
||||
int i = R.id.appCompatImageView;
|
||||
AppCompatImageView appCompatImageView = (AppCompatImageView) AbstractC0105a.t(view, i);
|
||||
if (appCompatImageView != null) {
|
||||
i = R.id.description;
|
||||
TextView textView = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView != null) {
|
||||
i = R.id.icon;
|
||||
AppCompatImageView appCompatImageView2 = (AppCompatImageView) AbstractC0105a.t(view, i);
|
||||
if (appCompatImageView2 != null) {
|
||||
ConstraintLayout constraintLayout = (ConstraintLayout) view;
|
||||
return new ItemStationsPageCommercialOfferBinding(constraintLayout, appCompatImageView, textView, appCompatImageView2, constraintLayout);
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
|
||||
}
|
||||
|
||||
public static ItemStationsPageCommercialOfferBinding inflate(LayoutInflater layoutInflater) {
|
||||
return inflate(layoutInflater, null, false);
|
||||
}
|
||||
|
||||
public static ItemStationsPageCommercialOfferBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z3) {
|
||||
View inflate = layoutInflater.inflate(R.layout.item_stations_page_commercial_offer, viewGroup, false);
|
||||
if (z3) {
|
||||
viewGroup.addView(inflate);
|
||||
}
|
||||
return bind(inflate);
|
||||
}
|
||||
|
||||
public ConstraintLayout getRoot() {
|
||||
return this.rootView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.adif.elcanomovil.uiStations.databinding;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Button;
|
||||
import android.widget.ImageButton;
|
||||
import android.widget.TextView;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class ItemStationsPageServicesBinding {
|
||||
public final Button button;
|
||||
public final ImageButton icon;
|
||||
public final ConstraintLayout itemLayout;
|
||||
public final TextView name;
|
||||
private final ConstraintLayout rootView;
|
||||
|
||||
private ItemStationsPageServicesBinding(ConstraintLayout constraintLayout, Button button, ImageButton imageButton, ConstraintLayout constraintLayout2, TextView textView) {
|
||||
this.rootView = constraintLayout;
|
||||
this.button = button;
|
||||
this.icon = imageButton;
|
||||
this.itemLayout = constraintLayout2;
|
||||
this.name = textView;
|
||||
}
|
||||
|
||||
public static ItemStationsPageServicesBinding bind(View view) {
|
||||
int i = R.id.button;
|
||||
Button button = (Button) AbstractC0105a.t(view, i);
|
||||
if (button != null) {
|
||||
i = R.id.icon;
|
||||
ImageButton imageButton = (ImageButton) AbstractC0105a.t(view, i);
|
||||
if (imageButton != null) {
|
||||
ConstraintLayout constraintLayout = (ConstraintLayout) view;
|
||||
i = R.id.name;
|
||||
TextView textView = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView != null) {
|
||||
return new ItemStationsPageServicesBinding(constraintLayout, button, imageButton, constraintLayout, textView);
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
|
||||
}
|
||||
|
||||
public static ItemStationsPageServicesBinding inflate(LayoutInflater layoutInflater) {
|
||||
return inflate(layoutInflater, null, false);
|
||||
}
|
||||
|
||||
public static ItemStationsPageServicesBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z3) {
|
||||
View inflate = layoutInflater.inflate(R.layout.item_stations_page_services, viewGroup, false);
|
||||
if (z3) {
|
||||
viewGroup.addView(inflate);
|
||||
}
|
||||
return bind(inflate);
|
||||
}
|
||||
|
||||
public ConstraintLayout getRoot() {
|
||||
return this.rootView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.adif.elcanomovil.uiStations.databinding;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class ServiceBinding {
|
||||
public final LinearLayout layout;
|
||||
private final LinearLayout rootView;
|
||||
public final RecyclerView rv;
|
||||
public final TextView title;
|
||||
|
||||
private ServiceBinding(LinearLayout linearLayout, LinearLayout linearLayout2, RecyclerView recyclerView, TextView textView) {
|
||||
this.rootView = linearLayout;
|
||||
this.layout = linearLayout2;
|
||||
this.rv = recyclerView;
|
||||
this.title = textView;
|
||||
}
|
||||
|
||||
public static ServiceBinding bind(View view) {
|
||||
LinearLayout linearLayout = (LinearLayout) view;
|
||||
int i = R.id.rv;
|
||||
RecyclerView recyclerView = (RecyclerView) AbstractC0105a.t(view, i);
|
||||
if (recyclerView != null) {
|
||||
i = R.id.title;
|
||||
TextView textView = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView != null) {
|
||||
return new ServiceBinding(linearLayout, linearLayout, recyclerView, textView);
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
|
||||
}
|
||||
|
||||
public static ServiceBinding inflate(LayoutInflater layoutInflater) {
|
||||
return inflate(layoutInflater, null, false);
|
||||
}
|
||||
|
||||
public static ServiceBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z3) {
|
||||
View inflate = layoutInflater.inflate(R.layout.service, viewGroup, false);
|
||||
if (z3) {
|
||||
viewGroup.addView(inflate);
|
||||
}
|
||||
return bind(inflate);
|
||||
}
|
||||
|
||||
public LinearLayout getRoot() {
|
||||
return this.rootView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.adif.elcanomovil.uiStations.entities;
|
||||
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0086\b\u0018\u00002\u00020\u0001B\u0015\u0012\u000e\u0010\u0002\u001a\n\u0012\u0004\u0012\u00020\u0004\u0018\u00010\u0003¢\u0006\u0002\u0010\u0005J\u0011\u0010\b\u001a\n\u0012\u0004\u0012\u00020\u0004\u0018\u00010\u0003HÆ\u0003J\u001b\u0010\t\u001a\u00020\u00002\u0010\b\u0002\u0010\u0002\u001a\n\u0012\u0004\u0012\u00020\u0004\u0018\u00010\u0003HÆ\u0001J\u0013\u0010\n\u001a\u00020\u000b2\b\u0010\f\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\r\u001a\u00020\u000eHÖ\u0001J\t\u0010\u000f\u001a\u00020\u0010HÖ\u0001R\u0019\u0010\u0002\u001a\n\u0012\u0004\u0012\u00020\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007¨\u0006\u0011"}, d2 = {"Lcom/adif/elcanomovil/uiStations/entities/ActivitiesTabViewData;", "", "activities", "", "Lcom/adif/elcanomovil/uiStations/entities/Activity;", "(Ljava/util/List;)V", "getActivities", "()Ljava/util/List;", "component1", "copy", "equals", "", "other", "hashCode", "", "toString", "", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final /* data */ class ActivitiesTabViewData {
|
||||
private final List<Activity> activities;
|
||||
|
||||
public ActivitiesTabViewData(List<Activity> list) {
|
||||
this.activities = list;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public static /* synthetic */ ActivitiesTabViewData copy$default(ActivitiesTabViewData activitiesTabViewData, List list, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
list = activitiesTabViewData.activities;
|
||||
}
|
||||
return activitiesTabViewData.copy(list);
|
||||
}
|
||||
|
||||
public final List<Activity> component1() {
|
||||
return this.activities;
|
||||
}
|
||||
|
||||
public final ActivitiesTabViewData copy(List<Activity> activities) {
|
||||
return new ActivitiesTabViewData(activities);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
return (other instanceof ActivitiesTabViewData) && Intrinsics.areEqual(this.activities, ((ActivitiesTabViewData) other).activities);
|
||||
}
|
||||
|
||||
public final List<Activity> getActivities() {
|
||||
return this.activities;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
List<Activity> list = this.activities;
|
||||
if (list == null) {
|
||||
return 0;
|
||||
}
|
||||
return list.hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return a.o(new StringBuilder("ActivitiesTabViewData(activities="), this.activities, ')');
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,199 @@
|
||||
package com.adif.elcanomovil.uiStations.entities;
|
||||
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u001e\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001B\u008f\u0001\u0012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0003\u0012\u000e\u0010\u0004\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005\u0012\u000e\u0010\u0007\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005\u0012\u000e\u0010\b\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005\u0012\u000e\u0010\t\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005\u0012\u000e\u0010\n\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005\u0012\u000e\u0010\u000b\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005\u0012\u000e\u0010\f\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005\u0012\u000e\u0010\r\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005¢\u0006\u0002\u0010\u000eJ\u000b\u0010\u001a\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u0011\u0010\u001b\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005HÆ\u0003J\u0011\u0010\u001c\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005HÆ\u0003J\u0011\u0010\u001d\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005HÆ\u0003J\u0011\u0010\u001e\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005HÆ\u0003J\u0011\u0010\u001f\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005HÆ\u0003J\u0011\u0010 \u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005HÆ\u0003J\u0011\u0010!\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005HÆ\u0003J\u0011\u0010\"\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005HÆ\u0003J¥\u0001\u0010#\u001a\u00020\u00002\n\b\u0002\u0010\u0002\u001a\u0004\u0018\u00010\u00032\u0010\b\u0002\u0010\u0004\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u00052\u0010\b\u0002\u0010\u0007\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u00052\u0010\b\u0002\u0010\b\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u00052\u0010\b\u0002\u0010\t\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u00052\u0010\b\u0002\u0010\n\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u00052\u0010\b\u0002\u0010\u000b\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u00052\u0010\b\u0002\u0010\f\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u00052\u0010\b\u0002\u0010\r\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005HÆ\u0001J\u0013\u0010$\u001a\u00020%2\b\u0010&\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010'\u001a\u00020(HÖ\u0001J\t\u0010)\u001a\u00020\u0003HÖ\u0001R\u0013\u0010\u0002\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u0010R\u0019\u0010\u0007\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0011\u0010\u0012R\u0019\u0010\b\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0012R\u0019\u0010\u0004\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0014\u0010\u0012R\u0019\u0010\t\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0015\u0010\u0012R\u0019\u0010\n\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0016\u0010\u0012R\u0019\u0010\u000b\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u0012R\u0019\u0010\f\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0018\u0010\u0012R\u0019\u0010\r\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0019\u0010\u0012¨\u0006*"}, d2 = {"Lcom/adif/elcanomovil/uiStations/entities/CommercialTabViewData;", "", "commercialZoneType", "", "offers", "", "Lcom/adif/elcanomovil/uiStations/entities/Services;", "groceryStore", "leisure", "others", "rentACar", "restaurant", "shop", "souvenir", "(Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;)V", "getCommercialZoneType", "()Ljava/lang/String;", "getGroceryStore", "()Ljava/util/List;", "getLeisure", "getOffers", "getOthers", "getRentACar", "getRestaurant", "getShop", "getSouvenir", "component1", "component2", "component3", "component4", "component5", "component6", "component7", "component8", "component9", "copy", "equals", "", "other", "hashCode", "", "toString", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final /* data */ class CommercialTabViewData {
|
||||
private final String commercialZoneType;
|
||||
private final List<Services> groceryStore;
|
||||
private final List<Services> leisure;
|
||||
private final List<Services> offers;
|
||||
private final List<Services> others;
|
||||
private final List<Services> rentACar;
|
||||
private final List<Services> restaurant;
|
||||
private final List<Services> shop;
|
||||
private final List<Services> souvenir;
|
||||
|
||||
public CommercialTabViewData(String str, List<Services> list, List<Services> list2, List<Services> list3, List<Services> list4, List<Services> list5, List<Services> list6, List<Services> list7, List<Services> list8) {
|
||||
this.commercialZoneType = str;
|
||||
this.offers = list;
|
||||
this.groceryStore = list2;
|
||||
this.leisure = list3;
|
||||
this.others = list4;
|
||||
this.rentACar = list5;
|
||||
this.restaurant = list6;
|
||||
this.shop = list7;
|
||||
this.souvenir = list8;
|
||||
}
|
||||
|
||||
public static /* synthetic */ CommercialTabViewData copy$default(CommercialTabViewData commercialTabViewData, String str, List list, List list2, List list3, List list4, List list5, List list6, List list7, List list8, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str = commercialTabViewData.commercialZoneType;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
list = commercialTabViewData.offers;
|
||||
}
|
||||
if ((i & 4) != 0) {
|
||||
list2 = commercialTabViewData.groceryStore;
|
||||
}
|
||||
if ((i & 8) != 0) {
|
||||
list3 = commercialTabViewData.leisure;
|
||||
}
|
||||
if ((i & 16) != 0) {
|
||||
list4 = commercialTabViewData.others;
|
||||
}
|
||||
if ((i & 32) != 0) {
|
||||
list5 = commercialTabViewData.rentACar;
|
||||
}
|
||||
if ((i & 64) != 0) {
|
||||
list6 = commercialTabViewData.restaurant;
|
||||
}
|
||||
if ((i & 128) != 0) {
|
||||
list7 = commercialTabViewData.shop;
|
||||
}
|
||||
if ((i & 256) != 0) {
|
||||
list8 = commercialTabViewData.souvenir;
|
||||
}
|
||||
List list9 = list7;
|
||||
List list10 = list8;
|
||||
List list11 = list5;
|
||||
List list12 = list6;
|
||||
List list13 = list4;
|
||||
List list14 = list2;
|
||||
return commercialTabViewData.copy(str, list, list14, list3, list13, list11, list12, list9, list10);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final String getCommercialZoneType() {
|
||||
return this.commercialZoneType;
|
||||
}
|
||||
|
||||
public final List<Services> component2() {
|
||||
return this.offers;
|
||||
}
|
||||
|
||||
public final List<Services> component3() {
|
||||
return this.groceryStore;
|
||||
}
|
||||
|
||||
public final List<Services> component4() {
|
||||
return this.leisure;
|
||||
}
|
||||
|
||||
public final List<Services> component5() {
|
||||
return this.others;
|
||||
}
|
||||
|
||||
public final List<Services> component6() {
|
||||
return this.rentACar;
|
||||
}
|
||||
|
||||
public final List<Services> component7() {
|
||||
return this.restaurant;
|
||||
}
|
||||
|
||||
public final List<Services> component8() {
|
||||
return this.shop;
|
||||
}
|
||||
|
||||
public final List<Services> component9() {
|
||||
return this.souvenir;
|
||||
}
|
||||
|
||||
public final CommercialTabViewData copy(String commercialZoneType, List<Services> offers, List<Services> groceryStore, List<Services> leisure, List<Services> others, List<Services> rentACar, List<Services> restaurant, List<Services> shop, List<Services> souvenir) {
|
||||
return new CommercialTabViewData(commercialZoneType, offers, groceryStore, leisure, others, rentACar, restaurant, shop, souvenir);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof CommercialTabViewData)) {
|
||||
return false;
|
||||
}
|
||||
CommercialTabViewData commercialTabViewData = (CommercialTabViewData) other;
|
||||
return Intrinsics.areEqual(this.commercialZoneType, commercialTabViewData.commercialZoneType) && Intrinsics.areEqual(this.offers, commercialTabViewData.offers) && Intrinsics.areEqual(this.groceryStore, commercialTabViewData.groceryStore) && Intrinsics.areEqual(this.leisure, commercialTabViewData.leisure) && Intrinsics.areEqual(this.others, commercialTabViewData.others) && Intrinsics.areEqual(this.rentACar, commercialTabViewData.rentACar) && Intrinsics.areEqual(this.restaurant, commercialTabViewData.restaurant) && Intrinsics.areEqual(this.shop, commercialTabViewData.shop) && Intrinsics.areEqual(this.souvenir, commercialTabViewData.souvenir);
|
||||
}
|
||||
|
||||
public final String getCommercialZoneType() {
|
||||
return this.commercialZoneType;
|
||||
}
|
||||
|
||||
public final List<Services> getGroceryStore() {
|
||||
return this.groceryStore;
|
||||
}
|
||||
|
||||
public final List<Services> getLeisure() {
|
||||
return this.leisure;
|
||||
}
|
||||
|
||||
public final List<Services> getOffers() {
|
||||
return this.offers;
|
||||
}
|
||||
|
||||
public final List<Services> getOthers() {
|
||||
return this.others;
|
||||
}
|
||||
|
||||
public final List<Services> getRentACar() {
|
||||
return this.rentACar;
|
||||
}
|
||||
|
||||
public final List<Services> getRestaurant() {
|
||||
return this.restaurant;
|
||||
}
|
||||
|
||||
public final List<Services> getShop() {
|
||||
return this.shop;
|
||||
}
|
||||
|
||||
public final List<Services> getSouvenir() {
|
||||
return this.souvenir;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
String str = this.commercialZoneType;
|
||||
int hashCode = (str == null ? 0 : str.hashCode()) * 31;
|
||||
List<Services> list = this.offers;
|
||||
int hashCode2 = (hashCode + (list == null ? 0 : list.hashCode())) * 31;
|
||||
List<Services> list2 = this.groceryStore;
|
||||
int hashCode3 = (hashCode2 + (list2 == null ? 0 : list2.hashCode())) * 31;
|
||||
List<Services> list3 = this.leisure;
|
||||
int hashCode4 = (hashCode3 + (list3 == null ? 0 : list3.hashCode())) * 31;
|
||||
List<Services> list4 = this.others;
|
||||
int hashCode5 = (hashCode4 + (list4 == null ? 0 : list4.hashCode())) * 31;
|
||||
List<Services> list5 = this.rentACar;
|
||||
int hashCode6 = (hashCode5 + (list5 == null ? 0 : list5.hashCode())) * 31;
|
||||
List<Services> list6 = this.restaurant;
|
||||
int hashCode7 = (hashCode6 + (list6 == null ? 0 : list6.hashCode())) * 31;
|
||||
List<Services> list7 = this.shop;
|
||||
int hashCode8 = (hashCode7 + (list7 == null ? 0 : list7.hashCode())) * 31;
|
||||
List<Services> list8 = this.souvenir;
|
||||
return hashCode8 + (list8 != null ? list8.hashCode() : 0);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("CommercialTabViewData(commercialZoneType=");
|
||||
sb.append(this.commercialZoneType);
|
||||
sb.append(", offers=");
|
||||
sb.append(this.offers);
|
||||
sb.append(", groceryStore=");
|
||||
sb.append(this.groceryStore);
|
||||
sb.append(", leisure=");
|
||||
sb.append(this.leisure);
|
||||
sb.append(", others=");
|
||||
sb.append(this.others);
|
||||
sb.append(", rentACar=");
|
||||
sb.append(this.rentACar);
|
||||
sb.append(", restaurant=");
|
||||
sb.append(this.restaurant);
|
||||
sb.append(", shop=");
|
||||
sb.append(this.shop);
|
||||
sb.append(", souvenir=");
|
||||
return a.o(sb, this.souvenir, ')');
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,102 @@
|
||||
package com.adif.elcanomovil.uiStations.entities;
|
||||
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\f\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001B#\u0012\b\b\u0002\u0010\u0002\u001a\u00020\u0003\u0012\b\b\u0002\u0010\u0004\u001a\u00020\u0003\u0012\b\b\u0002\u0010\u0005\u001a\u00020\u0003¢\u0006\u0002\u0010\u0006J\t\u0010\u000b\u001a\u00020\u0003HÆ\u0003J\t\u0010\f\u001a\u00020\u0003HÆ\u0003J\t\u0010\r\u001a\u00020\u0003HÆ\u0003J'\u0010\u000e\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00032\b\b\u0002\u0010\u0005\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\u000f\u001a\u00020\u00102\b\u0010\u0011\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u0012\u001a\u00020\u0013HÖ\u0001J\t\u0010\u0014\u001a\u00020\u0003HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0011\u0010\u0005\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\bR\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\b¨\u0006\u0015"}, d2 = {"Lcom/adif/elcanomovil/uiStations/entities/StationHeaderData;", "", "stationCode", "", "stationName", "stationLongName", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "getStationCode", "()Ljava/lang/String;", "getStationLongName", "getStationName", "component1", "component2", "component3", "copy", "equals", "", "other", "hashCode", "", "toString", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final /* data */ class StationHeaderData {
|
||||
private final String stationCode;
|
||||
private final String stationLongName;
|
||||
private final String stationName;
|
||||
|
||||
public StationHeaderData() {
|
||||
this(null, null, null, 7, null);
|
||||
}
|
||||
|
||||
public static /* synthetic */ StationHeaderData copy$default(StationHeaderData stationHeaderData, String str, String str2, String str3, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str = stationHeaderData.stationCode;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
str2 = stationHeaderData.stationName;
|
||||
}
|
||||
if ((i & 4) != 0) {
|
||||
str3 = stationHeaderData.stationLongName;
|
||||
}
|
||||
return stationHeaderData.copy(str, str2, str3);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final String getStationCode() {
|
||||
return this.stationCode;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final String getStationName() {
|
||||
return this.stationName;
|
||||
}
|
||||
|
||||
/* renamed from: component3, reason: from getter */
|
||||
public final String getStationLongName() {
|
||||
return this.stationLongName;
|
||||
}
|
||||
|
||||
public final StationHeaderData copy(String stationCode, String stationName, String stationLongName) {
|
||||
Intrinsics.checkNotNullParameter(stationCode, "stationCode");
|
||||
Intrinsics.checkNotNullParameter(stationName, "stationName");
|
||||
Intrinsics.checkNotNullParameter(stationLongName, "stationLongName");
|
||||
return new StationHeaderData(stationCode, stationName, stationLongName);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof StationHeaderData)) {
|
||||
return false;
|
||||
}
|
||||
StationHeaderData stationHeaderData = (StationHeaderData) other;
|
||||
return Intrinsics.areEqual(this.stationCode, stationHeaderData.stationCode) && Intrinsics.areEqual(this.stationName, stationHeaderData.stationName) && Intrinsics.areEqual(this.stationLongName, stationHeaderData.stationLongName);
|
||||
}
|
||||
|
||||
public final String getStationCode() {
|
||||
return this.stationCode;
|
||||
}
|
||||
|
||||
public final String getStationLongName() {
|
||||
return this.stationLongName;
|
||||
}
|
||||
|
||||
public final String getStationName() {
|
||||
return this.stationName;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.stationLongName.hashCode() + a.d(this.stationName, this.stationCode.hashCode() * 31, 31);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("StationHeaderData(stationCode=");
|
||||
sb.append(this.stationCode);
|
||||
sb.append(", stationName=");
|
||||
sb.append(this.stationName);
|
||||
sb.append(", stationLongName=");
|
||||
return a.n(sb, this.stationLongName, ')');
|
||||
}
|
||||
|
||||
public StationHeaderData(String stationCode, String stationName, String stationLongName) {
|
||||
Intrinsics.checkNotNullParameter(stationCode, "stationCode");
|
||||
Intrinsics.checkNotNullParameter(stationName, "stationName");
|
||||
Intrinsics.checkNotNullParameter(stationLongName, "stationLongName");
|
||||
this.stationCode = stationCode;
|
||||
this.stationName = stationName;
|
||||
this.stationLongName = stationLongName;
|
||||
}
|
||||
|
||||
public /* synthetic */ StationHeaderData(String str, String str2, String str3, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this((i & 1) != 0 ? "" : str, (i & 2) != 0 ? "" : str2, (i & 4) != 0 ? "" : str3);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.adif.elcanomovil.uiStations.entities;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
import com.adif.elcanomovil.resources.ResourcesUtils;
|
||||
import com.adif.elcanomovil.uiStations.R;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptor;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0006\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u001f\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\b\b\u0002\u0010\u0005\u001a\u00020\u0006¢\u0006\u0002\u0010\u0007J\u0010\u0010\u000b\u001a\u0004\u0018\u00010\f2\u0006\u0010\r\u001a\u00020\u000eR\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\tR\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\t¨\u0006\u000f"}, d2 = {"Lcom/adif/elcanomovil/uiStations/entities/StationMarker;", "", "latitude", "", "longitude", "icon", "", "(DDI)V", "getLatitude", "()D", "getLongitude", "markerIcon", "Lcom/google/android/gms/maps/model/BitmapDescriptor;", "context", "Landroid/content/Context;", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nStationMarker.kt\nKotlin\n*S Kotlin\n*F\n+ 1 StationMarker.kt\ncom/adif/elcanomovil/uiStations/entities/StationMarker\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,20:1\n1#2:21\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationMarker {
|
||||
private final int icon;
|
||||
private final double latitude;
|
||||
private final double longitude;
|
||||
|
||||
public StationMarker(double d4, double d5, int i) {
|
||||
this.latitude = d4;
|
||||
this.longitude = d5;
|
||||
this.icon = i;
|
||||
}
|
||||
|
||||
public final double getLatitude() {
|
||||
return this.latitude;
|
||||
}
|
||||
|
||||
public final double getLongitude() {
|
||||
return this.longitude;
|
||||
}
|
||||
|
||||
public final BitmapDescriptor markerIcon(Context context) {
|
||||
BitmapDescriptor fromBitmap;
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
Bitmap vectorToBitmap = ResourcesUtils.INSTANCE.vectorToBitmap(context, this.icon);
|
||||
if (vectorToBitmap == null || (fromBitmap = BitmapDescriptorFactory.fromBitmap(vectorToBitmap)) == null) {
|
||||
return null;
|
||||
}
|
||||
return fromBitmap;
|
||||
}
|
||||
|
||||
public /* synthetic */ StationMarker(double d4, double d5, int i, int i4, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(d4, d5, (i4 & 4) != 0 ? R.drawable.ic_marker_selected : i);
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
package com.adif.elcanomovil.uiStations.mappers;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.station.Accessible;
|
||||
import com.adif.elcanomovil.domain.entities.station.Banner;
|
||||
import com.adif.elcanomovil.domain.entities.station.ExtendedStationInfo;
|
||||
import com.adif.elcanomovil.domain.entities.station.Locator;
|
||||
import com.adif.elcanomovil.domain.entities.station.OpeningHours;
|
||||
import com.adif.elcanomovil.domain.entities.station.RequestedStationInfo;
|
||||
import com.adif.elcanomovil.domain.entities.station.StationCommercialServices;
|
||||
import com.adif.elcanomovil.domain.entities.station.StationInfo;
|
||||
import com.adif.elcanomovil.domain.entities.station.StationServices;
|
||||
import com.adif.elcanomovil.domain.entities.station.StationTransportServices;
|
||||
import com.adif.elcanomovil.uiStations.entities.ActivitiesTabViewData;
|
||||
import com.adif.elcanomovil.uiStations.entities.Activity;
|
||||
import com.adif.elcanomovil.uiStations.entities.CommercialTabViewData;
|
||||
import com.adif.elcanomovil.uiStations.entities.Services;
|
||||
import com.adif.elcanomovil.uiStations.entities.ServicesTabViewData;
|
||||
import com.adif.elcanomovil.uiStations.entities.StationMarker;
|
||||
import com.google.firebase.messaging.Constants;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\bÆ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0012\u0010\u0003\u001a\u0004\u0018\u00010\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006J\u0012\u0010\u0007\u001a\u0004\u0018\u00010\b2\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006J\u0012\u0010\t\u001a\u0004\u0018\u00010\n2\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/uiStations/mappers/RequestedStationInfoMapper;", "", "()V", "mapToActivitiesTabViewData", "Lcom/adif/elcanomovil/uiStations/entities/ActivitiesTabViewData;", Constants.MessagePayloadKeys.FROM, "Lcom/adif/elcanomovil/domain/entities/station/RequestedStationInfo;", "mapToCommercialTabViewData", "Lcom/adif/elcanomovil/uiStations/entities/CommercialTabViewData;", "mapToServicesTabViewData", "Lcom/adif/elcanomovil/uiStations/entities/ServicesTabViewData;", "ui-stations_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nRequestedStationInfoMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RequestedStationInfoMapper.kt\ncom/adif/elcanomovil/uiStations/mappers/RequestedStationInfoMapper\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,291:1\n1549#2:292\n1620#2,3:293\n*S KotlinDebug\n*F\n+ 1 RequestedStationInfoMapper.kt\ncom/adif/elcanomovil/uiStations/mappers/RequestedStationInfoMapper\n*L\n54#1:292\n54#1:293,3\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class RequestedStationInfoMapper {
|
||||
public static final RequestedStationInfoMapper INSTANCE = new RequestedStationInfoMapper();
|
||||
|
||||
private RequestedStationInfoMapper() {
|
||||
}
|
||||
|
||||
public final ActivitiesTabViewData mapToActivitiesTabViewData(RequestedStationInfo from) {
|
||||
int collectionSizeOrDefault;
|
||||
Boolean accessible;
|
||||
ArrayList arrayList = null;
|
||||
if (from == null) {
|
||||
return null;
|
||||
}
|
||||
List<StationCommercialServices> stationActivities = from.getStationActivities();
|
||||
if (stationActivities != null) {
|
||||
List<StationCommercialServices> list = stationActivities;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault);
|
||||
for (StationCommercialServices stationCommercialServices : list) {
|
||||
String logo = stationCommercialServices.getLogo();
|
||||
String name = stationCommercialServices.getName();
|
||||
String phoneNumber = stationCommercialServices.getPhoneNumber();
|
||||
String description = stationCommercialServices.getDescription();
|
||||
Accessible accessible2 = stationCommercialServices.getAccessible();
|
||||
boolean booleanValue = (accessible2 == null || (accessible = accessible2.getAccessible()) == null) ? false : accessible.booleanValue();
|
||||
List<String> paymentWay = stationCommercialServices.getPaymentWay();
|
||||
String web = stationCommercialServices.getWeb();
|
||||
Locator locator = stationCommercialServices.getLocator();
|
||||
String description2 = locator != null ? locator.getDescription() : null;
|
||||
Accessible accessible3 = stationCommercialServices.getAccessible();
|
||||
String description3 = accessible3 != null ? accessible3.getDescription() : null;
|
||||
OpeningHours openingHours = stationCommercialServices.getOpeningHours();
|
||||
arrayList2.add(new Activity(logo, name, phoneNumber, description, booleanValue, paymentWay, null, null, web, description2, description3, openingHours != null ? openingHours.getShortText() : null, stationCommercialServices.getAndroidLink()));
|
||||
}
|
||||
arrayList = arrayList2;
|
||||
}
|
||||
return new ActivitiesTabViewData(arrayList);
|
||||
}
|
||||
|
||||
public final CommercialTabViewData mapToCommercialTabViewData(RequestedStationInfo from) {
|
||||
if (from == null) {
|
||||
return null;
|
||||
}
|
||||
StationInfo stationInfo = from.getStationInfo();
|
||||
String commercialZoneType = stationInfo != null ? stationInfo.getCommercialZoneType() : null;
|
||||
List<StationCommercialServices> stationCommercialServices = from.getStationCommercialServices();
|
||||
List<Services> offers = stationCommercialServices != null ? RequestedStationInfoMapperKt.getOffers(stationCommercialServices) : null;
|
||||
List<StationCommercialServices> stationCommercialServices2 = from.getStationCommercialServices();
|
||||
List<Services> groceryStore = stationCommercialServices2 != null ? RequestedStationInfoMapperKt.toGroceryStore(stationCommercialServices2) : null;
|
||||
List<StationCommercialServices> stationCommercialServices3 = from.getStationCommercialServices();
|
||||
List<Services> leisure = stationCommercialServices3 != null ? RequestedStationInfoMapperKt.toLeisure(stationCommercialServices3) : null;
|
||||
List<StationCommercialServices> stationCommercialServices4 = from.getStationCommercialServices();
|
||||
List<Services> others = stationCommercialServices4 != null ? RequestedStationInfoMapperKt.toOthers(stationCommercialServices4) : null;
|
||||
List<StationCommercialServices> stationCommercialServices5 = from.getStationCommercialServices();
|
||||
List<Services> rentACar = stationCommercialServices5 != null ? RequestedStationInfoMapperKt.toRentACar(stationCommercialServices5) : null;
|
||||
List<StationCommercialServices> stationCommercialServices6 = from.getStationCommercialServices();
|
||||
List<Services> restaurant = stationCommercialServices6 != null ? RequestedStationInfoMapperKt.toRestaurant(stationCommercialServices6) : null;
|
||||
List<StationCommercialServices> stationCommercialServices7 = from.getStationCommercialServices();
|
||||
List<Services> shop = stationCommercialServices7 != null ? RequestedStationInfoMapperKt.toShop(stationCommercialServices7) : null;
|
||||
List<StationCommercialServices> stationCommercialServices8 = from.getStationCommercialServices();
|
||||
return new CommercialTabViewData(commercialZoneType, offers, groceryStore, leisure, others, rentACar, restaurant, shop, stationCommercialServices8 != null ? RequestedStationInfoMapperKt.toSouvenir(stationCommercialServices8) : null);
|
||||
}
|
||||
|
||||
public final ServicesTabViewData mapToServicesTabViewData(RequestedStationInfo from) {
|
||||
Locator locator;
|
||||
OpeningHours openingHours;
|
||||
if (from == null) {
|
||||
return null;
|
||||
}
|
||||
List<StationTransportServices> stationTransportServices = from.getStationTransportServices();
|
||||
List<Services> ecomiles = stationTransportServices != null ? RequestedStationInfoMapperKt.toEcomiles(stationTransportServices) : null;
|
||||
List<StationTransportServices> stationTransportServices2 = from.getStationTransportServices();
|
||||
List<Services> intermodality = stationTransportServices2 != null ? RequestedStationInfoMapperKt.toIntermodality(stationTransportServices2) : null;
|
||||
List<StationServices> stationServices = from.getStationServices();
|
||||
List<Services> accessibility = stationServices != null ? RequestedStationInfoMapperKt.toAccessibility(stationServices) : null;
|
||||
List<StationServices> stationServices2 = from.getStationServices();
|
||||
List<Services> stationServicesView = stationServices2 != null ? RequestedStationInfoMapperKt.toStationServicesView(stationServices2) : null;
|
||||
StationMarker stationMarker = RequestedStationInfoMapperKt.getStationMarker(from);
|
||||
boolean isAvisaStation = RequestedStationInfoMapperKt.getIsAvisaStation(from);
|
||||
ExtendedStationInfo extendedStationInfo = from.getExtendedStationInfo();
|
||||
String shortText = (extendedStationInfo == null || (openingHours = extendedStationInfo.getOpeningHours()) == null) ? null : openingHours.getShortText();
|
||||
ExtendedStationInfo extendedStationInfo2 = from.getExtendedStationInfo();
|
||||
String description = (extendedStationInfo2 == null || (locator = extendedStationInfo2.getLocator()) == null) ? null : locator.getDescription();
|
||||
Banner banner = from.getBanner();
|
||||
String bannerURI = banner != null ? banner.getBannerURI() : null;
|
||||
Banner banner2 = from.getBanner();
|
||||
String bannerTitle = banner2 != null ? banner2.getBannerTitle() : null;
|
||||
Banner banner3 = from.getBanner();
|
||||
return new ServicesTabViewData(ecomiles, intermodality, accessibility, stationServicesView, stationMarker, false, isAvisaStation, shortText, description, bannerURI, bannerTitle, banner3 != null ? banner3.getBannerDescription() : null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,407 @@
|
||||
package com.adif.elcanomovil.uiStations.mappers;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.station.Accessible;
|
||||
import com.adif.elcanomovil.domain.entities.station.Correspondence;
|
||||
import com.adif.elcanomovil.domain.entities.station.Location;
|
||||
import com.adif.elcanomovil.domain.entities.station.Locator;
|
||||
import com.adif.elcanomovil.domain.entities.station.Offer;
|
||||
import com.adif.elcanomovil.domain.entities.station.OpeningHours;
|
||||
import com.adif.elcanomovil.domain.entities.station.RequestedStationInfo;
|
||||
import com.adif.elcanomovil.domain.entities.station.StationCommercialServices;
|
||||
import com.adif.elcanomovil.domain.entities.station.StationInfo;
|
||||
import com.adif.elcanomovil.domain.entities.station.StationServices;
|
||||
import com.adif.elcanomovil.domain.entities.station.StationTransportServices;
|
||||
import com.adif.elcanomovil.uiStations.entities.Services;
|
||||
import com.adif.elcanomovil.uiStations.entities.StationMarker;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Comparator;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.comparisons.ComparisonsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u00006\n\u0000\n\u0002\u0010\u000e\n\u0002\b\n\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\f\u001a\n\u0010\u000b\u001a\u00020\f*\u00020\r\u001a\u0016\u0010\u000e\u001a\b\u0012\u0004\u0012\u00020\u00100\u000f*\b\u0012\u0004\u0012\u00020\u00110\u000f\u001a\n\u0010\u0012\u001a\u00020\u0013*\u00020\r\u001a\u0016\u0010\u0014\u001a\b\u0012\u0004\u0012\u00020\u00100\u000f*\b\u0012\u0004\u0012\u00020\u00150\u000f\u001a\u0016\u0010\u0016\u001a\b\u0012\u0004\u0012\u00020\u00100\u000f*\b\u0012\u0004\u0012\u00020\u00170\u000f\u001a\u0016\u0010\u0018\u001a\b\u0012\u0004\u0012\u00020\u00100\u000f*\b\u0012\u0004\u0012\u00020\u00110\u000f\u001a\u0016\u0010\u0019\u001a\b\u0012\u0004\u0012\u00020\u00100\u000f*\b\u0012\u0004\u0012\u00020\u00170\u000f\u001a\u0016\u0010\u001a\u001a\b\u0012\u0004\u0012\u00020\u00100\u000f*\b\u0012\u0004\u0012\u00020\u00110\u000f\u001a\u0016\u0010\u001b\u001a\b\u0012\u0004\u0012\u00020\u00100\u000f*\b\u0012\u0004\u0012\u00020\u00110\u000f\u001a\u0016\u0010\u001c\u001a\b\u0012\u0004\u0012\u00020\u00100\u000f*\b\u0012\u0004\u0012\u00020\u00110\u000f\u001a\u0016\u0010\u001d\u001a\b\u0012\u0004\u0012\u00020\u00100\u000f*\b\u0012\u0004\u0012\u00020\u00110\u000f\u001a\u0016\u0010\u001e\u001a\b\u0012\u0004\u0012\u00020\u00100\u000f*\b\u0012\u0004\u0012\u00020\u00110\u000f\u001a\u0016\u0010\u001f\u001a\b\u0012\u0004\u0012\u00020\u00100\u000f*\b\u0012\u0004\u0012\u00020\u00110\u000f\u001a\u0016\u0010 \u001a\b\u0012\u0004\u0012\u00020\u00100\u000f*\b\u0012\u0004\u0012\u00020\u00150\u000f\u001a\u001e\u0010!\u001a\b\u0012\u0004\u0012\u00020\u00100\u000f*\b\u0012\u0004\u0012\u00020\u00110\u000f2\u0006\u0010\"\u001a\u00020\u0001\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0086T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0002\u001a\u00020\u0001X\u0086T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0003\u001a\u00020\u0001X\u0086T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0004\u001a\u00020\u0001X\u0086T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0005\u001a\u00020\u0001X\u0086T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0006\u001a\u00020\u0001X\u0086T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0007\u001a\u00020\u0001X\u0086T¢\u0006\u0002\n\u0000\"\u000e\u0010\b\u001a\u00020\u0001X\u0086T¢\u0006\u0002\n\u0000\"\u000e\u0010\t\u001a\u00020\u0001X\u0086T¢\u0006\u0002\n\u0000\"\u000e\u0010\n\u001a\u00020\u0001X\u0086T¢\u0006\u0002\n\u0000¨\u0006#"}, d2 = {RequestedStationInfoMapperKt.ACCESS, "", RequestedStationInfoMapperKt.AVISA, RequestedStationInfoMapperKt.E_SHARING, RequestedStationInfoMapperKt.GROCERY_STORE, RequestedStationInfoMapperKt.LEISURE, RequestedStationInfoMapperKt.OTHERS, RequestedStationInfoMapperKt.RENT_A_CAR, RequestedStationInfoMapperKt.RESTAURANT, RequestedStationInfoMapperKt.SHOP, RequestedStationInfoMapperKt.SOUVENIR, "getIsAvisaStation", "", "Lcom/adif/elcanomovil/domain/entities/station/RequestedStationInfo;", "getOffers", "", "Lcom/adif/elcanomovil/uiStations/entities/Services;", "Lcom/adif/elcanomovil/domain/entities/station/StationCommercialServices;", "getStationMarker", "Lcom/adif/elcanomovil/uiStations/entities/StationMarker;", "toAccessibility", "Lcom/adif/elcanomovil/domain/entities/station/StationServices;", "toEcomiles", "Lcom/adif/elcanomovil/domain/entities/station/StationTransportServices;", "toGroceryStore", "toIntermodality", "toLeisure", "toOthers", "toRentACar", "toRestaurant", "toShop", "toSouvenir", "toStationServicesView", "toType", "serviceType", "ui-stations_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nRequestedStationInfoMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RequestedStationInfoMapper.kt\ncom/adif/elcanomovil/uiStations/mappers/RequestedStationInfoMapperKt\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,291:1\n766#2:292\n857#2,2:293\n1045#2:295\n1549#2:296\n1620#2,2:297\n1603#2,9:299\n1855#2:308\n1856#2:310\n1612#2:311\n1622#2:312\n766#2:313\n857#2,2:314\n1045#2:316\n1549#2:317\n1620#2,2:318\n1603#2,9:320\n1855#2:329\n1856#2:331\n1612#2:332\n1622#2:333\n766#2:334\n857#2,2:335\n1045#2:337\n1549#2:338\n1620#2,3:339\n766#2:342\n857#2,2:343\n1045#2:345\n1549#2:346\n1620#2,3:347\n1747#2,3:350\n766#2:353\n857#2,2:354\n1045#2:356\n1549#2:357\n1620#2,2:358\n1855#2,2:360\n1622#2:362\n766#2:363\n857#2,2:364\n1045#2:366\n1549#2:367\n1620#2,3:368\n1#3:309\n1#3:330\n*S KotlinDebug\n*F\n+ 1 RequestedStationInfoMapper.kt\ncom/adif/elcanomovil/uiStations/mappers/RequestedStationInfoMapperKt\n*L\n78#1:292\n78#1:293,2\n81#1:295\n84#1:296\n84#1:297,2\n95#1:299,9\n95#1:308\n95#1:310\n95#1:311\n84#1:312\n106#1:313\n106#1:314,2\n109#1:316\n112#1:317\n112#1:318,2\n123#1:320,9\n123#1:329\n123#1:331\n123#1:332\n112#1:333\n134#1:334\n134#1:335,2\n137#1:337\n140#1:338\n140#1:339,3\n162#1:342\n162#1:343,2\n165#1:345\n168#1:346\n168#1:347,3\n197#1:350,3\n204#1:353\n204#1:354,2\n207#1:356\n210#1:357\n210#1:358,2\n211#1:360,2\n210#1:362\n266#1:363\n266#1:364,2\n269#1:366\n272#1:367\n272#1:368,3\n95#1:309\n123#1:330\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class RequestedStationInfoMapperKt {
|
||||
public static final String ACCESS = "ACCESS";
|
||||
public static final String AVISA = "AVISA";
|
||||
public static final String E_SHARING = "E_SHARING";
|
||||
public static final String GROCERY_STORE = "GROCERY_STORE";
|
||||
public static final String LEISURE = "LEISURE";
|
||||
public static final String OTHERS = "OTHERS";
|
||||
public static final String RENT_A_CAR = "RENT_A_CAR";
|
||||
public static final String RESTAURANT = "RESTAURANT";
|
||||
public static final String SHOP = "SHOP";
|
||||
public static final String SOUVENIR = "SOUVENIR";
|
||||
|
||||
public static final boolean getIsAvisaStation(RequestedStationInfo requestedStationInfo) {
|
||||
Intrinsics.checkNotNullParameter(requestedStationInfo, "<this>");
|
||||
List<StationServices> stationServices = requestedStationInfo.getStationServices();
|
||||
if (stationServices != null) {
|
||||
List<StationServices> list = stationServices;
|
||||
if (!(list instanceof Collection) || !list.isEmpty()) {
|
||||
Iterator<T> it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
if (Intrinsics.areEqual(((StationServices) it.next()).getServiceType(), AVISA)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static final List<Services> getOffers(List<StationCommercialServices> list) {
|
||||
int collectionSizeOrDefault;
|
||||
Boolean accessible;
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
ArrayList arrayList = new ArrayList();
|
||||
ArrayList arrayList2 = new ArrayList();
|
||||
for (Object obj : list) {
|
||||
if (((StationCommercialServices) obj).getOffers() != null && (!r4.isEmpty())) {
|
||||
arrayList2.add(obj);
|
||||
}
|
||||
}
|
||||
List<StationCommercialServices> sortedWith = CollectionsKt.sortedWith(arrayList2, new Comparator() { // from class: com.adif.elcanomovil.uiStations.mappers.RequestedStationInfoMapperKt$getOffers$$inlined$sortedBy$1
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // java.util.Comparator
|
||||
public final int compare(T t2, T t4) {
|
||||
return ComparisonsKt.compareValues(((StationCommercialServices) t2).getName(), ((StationCommercialServices) t4).getName());
|
||||
}
|
||||
});
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(sortedWith, 10);
|
||||
ArrayList arrayList3 = new ArrayList(collectionSizeOrDefault);
|
||||
for (StationCommercialServices stationCommercialServices : sortedWith) {
|
||||
List<Offer> offers = stationCommercialServices.getOffers();
|
||||
Unit unit = null;
|
||||
if (offers != null) {
|
||||
for (Offer offer : offers) {
|
||||
String logo = stationCommercialServices.getLogo();
|
||||
String name = stationCommercialServices.getName();
|
||||
String phoneNumber = stationCommercialServices.getPhoneNumber();
|
||||
String description = stationCommercialServices.getDescription();
|
||||
Accessible accessible2 = stationCommercialServices.getAccessible();
|
||||
boolean booleanValue = (accessible2 == null || (accessible = accessible2.getAccessible()) == null) ? false : accessible.booleanValue();
|
||||
List<String> paymentWay = stationCommercialServices.getPaymentWay();
|
||||
String name2 = offer.getName();
|
||||
String description2 = offer.getDescription();
|
||||
String logo2 = offer.getLogo();
|
||||
String web = stationCommercialServices.getWeb();
|
||||
Locator locator = stationCommercialServices.getLocator();
|
||||
Location location = locator != null ? locator.getLocation() : null;
|
||||
Accessible accessible3 = stationCommercialServices.getAccessible();
|
||||
String description3 = accessible3 != null ? accessible3.getDescription() : null;
|
||||
OpeningHours openingHours = stationCommercialServices.getOpeningHours();
|
||||
arrayList.add(new Services(logo, name, phoneNumber, description, booleanValue, paymentWay, name2, description2, logo2, null, web, location, description3, openingHours != null ? openingHours.getShortText() : null, stationCommercialServices.getAndroidLink()));
|
||||
}
|
||||
unit = Unit.INSTANCE;
|
||||
}
|
||||
arrayList3.add(unit);
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
public static final StationMarker getStationMarker(RequestedStationInfo requestedStationInfo) {
|
||||
Location location;
|
||||
Location location2;
|
||||
Intrinsics.checkNotNullParameter(requestedStationInfo, "<this>");
|
||||
StationInfo stationInfo = requestedStationInfo.getStationInfo();
|
||||
Double d4 = null;
|
||||
Double latitude = (stationInfo == null || (location2 = stationInfo.getLocation()) == null) ? null : location2.getLatitude();
|
||||
Intrinsics.checkNotNull(latitude);
|
||||
double doubleValue = latitude.doubleValue();
|
||||
StationInfo stationInfo2 = requestedStationInfo.getStationInfo();
|
||||
if (stationInfo2 != null && (location = stationInfo2.getLocation()) != null) {
|
||||
d4 = location.getLongitude();
|
||||
}
|
||||
Intrinsics.checkNotNull(d4);
|
||||
return new StationMarker(doubleValue, d4.doubleValue(), 0, 4, null);
|
||||
}
|
||||
|
||||
public static final List<Services> toAccessibility(List<StationServices> list) {
|
||||
int collectionSizeOrDefault;
|
||||
Boolean accessible;
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : list) {
|
||||
if (Intrinsics.areEqual(((StationServices) obj).getServiceType(), ACCESS)) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
List<StationServices> sortedWith = CollectionsKt.sortedWith(arrayList, new Comparator() { // from class: com.adif.elcanomovil.uiStations.mappers.RequestedStationInfoMapperKt$toAccessibility$$inlined$sortedBy$1
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // java.util.Comparator
|
||||
public final int compare(T t2, T t4) {
|
||||
return ComparisonsKt.compareValues(((StationServices) t2).getName(), ((StationServices) t4).getName());
|
||||
}
|
||||
});
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(sortedWith, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault);
|
||||
for (StationServices stationServices : sortedWith) {
|
||||
String logo = stationServices.getLogo();
|
||||
String name = stationServices.getName();
|
||||
String phoneNumber = stationServices.getPhoneNumber();
|
||||
String description = stationServices.getDescription();
|
||||
Accessible accessible2 = stationServices.getAccessible();
|
||||
boolean booleanValue = (accessible2 == null || (accessible = accessible2.getAccessible()) == null) ? false : accessible.booleanValue();
|
||||
String web = stationServices.getWeb();
|
||||
Locator locator = stationServices.getLocator();
|
||||
String str = null;
|
||||
Location location = locator != null ? locator.getLocation() : null;
|
||||
Accessible accessible3 = stationServices.getAccessible();
|
||||
String description2 = accessible3 != null ? accessible3.getDescription() : null;
|
||||
OpeningHours openingHours = stationServices.getOpeningHours();
|
||||
if (openingHours != null) {
|
||||
str = openingHours.getShortText();
|
||||
}
|
||||
arrayList2.add(new Services(logo, name, phoneNumber, description, booleanValue, null, null, null, null, null, web, location, description2, str, stationServices.getAndroidLink()));
|
||||
}
|
||||
return arrayList2;
|
||||
}
|
||||
|
||||
public static final List<Services> toEcomiles(List<StationTransportServices> list) {
|
||||
int collectionSizeOrDefault;
|
||||
ArrayList arrayList;
|
||||
Boolean accessible;
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
ArrayList arrayList2 = new ArrayList();
|
||||
for (Object obj : list) {
|
||||
if (Intrinsics.areEqual(((StationTransportServices) obj).getServiceType(), E_SHARING)) {
|
||||
arrayList2.add(obj);
|
||||
}
|
||||
}
|
||||
List<StationTransportServices> sortedWith = CollectionsKt.sortedWith(arrayList2, new Comparator() { // from class: com.adif.elcanomovil.uiStations.mappers.RequestedStationInfoMapperKt$toEcomiles$$inlined$sortedBy$1
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // java.util.Comparator
|
||||
public final int compare(T t2, T t4) {
|
||||
return ComparisonsKt.compareValues(((StationTransportServices) t2).getName(), ((StationTransportServices) t4).getName());
|
||||
}
|
||||
});
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(sortedWith, 10);
|
||||
ArrayList arrayList3 = new ArrayList(collectionSizeOrDefault);
|
||||
for (StationTransportServices stationTransportServices : sortedWith) {
|
||||
String logo = stationTransportServices.getLogo();
|
||||
String name = stationTransportServices.getName();
|
||||
String phoneNumber = stationTransportServices.getPhoneNumber();
|
||||
String description = stationTransportServices.getDescription();
|
||||
Accessible accessible2 = stationTransportServices.getAccessible();
|
||||
boolean booleanValue = (accessible2 == null || (accessible = accessible2.getAccessible()) == null) ? false : accessible.booleanValue();
|
||||
List<Correspondence> correspondences = stationTransportServices.getCorrespondences();
|
||||
String str = null;
|
||||
if (correspondences != null) {
|
||||
ArrayList arrayList4 = new ArrayList();
|
||||
Iterator<T> it = correspondences.iterator();
|
||||
while (it.hasNext()) {
|
||||
String logo2 = ((Correspondence) it.next()).getLogo();
|
||||
if (logo2 != null) {
|
||||
arrayList4.add(logo2);
|
||||
}
|
||||
}
|
||||
arrayList = arrayList4;
|
||||
} else {
|
||||
arrayList = null;
|
||||
}
|
||||
String web = stationTransportServices.getWeb();
|
||||
Locator locator = stationTransportServices.getLocator();
|
||||
Location location = locator != null ? locator.getLocation() : null;
|
||||
Accessible accessible3 = stationTransportServices.getAccessible();
|
||||
String description2 = accessible3 != null ? accessible3.getDescription() : null;
|
||||
OpeningHours openingHours = stationTransportServices.getOpeningHours();
|
||||
if (openingHours != null) {
|
||||
str = openingHours.getShortText();
|
||||
}
|
||||
arrayList3.add(new Services(logo, name, phoneNumber, description, booleanValue, null, null, null, null, arrayList, web, location, description2, str, stationTransportServices.getAndroidLink()));
|
||||
}
|
||||
return arrayList3;
|
||||
}
|
||||
|
||||
public static final List<Services> toGroceryStore(List<StationCommercialServices> list) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
return toType(list, GROCERY_STORE);
|
||||
}
|
||||
|
||||
public static final List<Services> toIntermodality(List<StationTransportServices> list) {
|
||||
int collectionSizeOrDefault;
|
||||
ArrayList arrayList;
|
||||
Boolean accessible;
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
ArrayList arrayList2 = new ArrayList();
|
||||
for (Object obj : list) {
|
||||
if (!Intrinsics.areEqual(((StationTransportServices) obj).getServiceType(), E_SHARING)) {
|
||||
arrayList2.add(obj);
|
||||
}
|
||||
}
|
||||
List<StationTransportServices> sortedWith = CollectionsKt.sortedWith(arrayList2, new Comparator() { // from class: com.adif.elcanomovil.uiStations.mappers.RequestedStationInfoMapperKt$toIntermodality$$inlined$sortedBy$1
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // java.util.Comparator
|
||||
public final int compare(T t2, T t4) {
|
||||
return ComparisonsKt.compareValues(((StationTransportServices) t2).getName(), ((StationTransportServices) t4).getName());
|
||||
}
|
||||
});
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(sortedWith, 10);
|
||||
ArrayList arrayList3 = new ArrayList(collectionSizeOrDefault);
|
||||
for (StationTransportServices stationTransportServices : sortedWith) {
|
||||
String logo = stationTransportServices.getLogo();
|
||||
String name = stationTransportServices.getName();
|
||||
String phoneNumber = stationTransportServices.getPhoneNumber();
|
||||
String description = stationTransportServices.getDescription();
|
||||
Accessible accessible2 = stationTransportServices.getAccessible();
|
||||
boolean booleanValue = (accessible2 == null || (accessible = accessible2.getAccessible()) == null) ? false : accessible.booleanValue();
|
||||
List<Correspondence> correspondences = stationTransportServices.getCorrespondences();
|
||||
String str = null;
|
||||
if (correspondences != null) {
|
||||
ArrayList arrayList4 = new ArrayList();
|
||||
Iterator<T> it = correspondences.iterator();
|
||||
while (it.hasNext()) {
|
||||
String logo2 = ((Correspondence) it.next()).getLogo();
|
||||
if (logo2 != null) {
|
||||
arrayList4.add(logo2);
|
||||
}
|
||||
}
|
||||
arrayList = arrayList4;
|
||||
} else {
|
||||
arrayList = null;
|
||||
}
|
||||
String web = stationTransportServices.getWeb();
|
||||
Locator locator = stationTransportServices.getLocator();
|
||||
Location location = locator != null ? locator.getLocation() : null;
|
||||
Accessible accessible3 = stationTransportServices.getAccessible();
|
||||
String description2 = accessible3 != null ? accessible3.getDescription() : null;
|
||||
OpeningHours openingHours = stationTransportServices.getOpeningHours();
|
||||
if (openingHours != null) {
|
||||
str = openingHours.getShortText();
|
||||
}
|
||||
arrayList3.add(new Services(logo, name, phoneNumber, description, booleanValue, null, null, null, null, arrayList, web, location, description2, str, stationTransportServices.getAndroidLink()));
|
||||
}
|
||||
return arrayList3;
|
||||
}
|
||||
|
||||
public static final List<Services> toLeisure(List<StationCommercialServices> list) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
return toType(list, LEISURE);
|
||||
}
|
||||
|
||||
public static final List<Services> toOthers(List<StationCommercialServices> list) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
return toType(list, OTHERS);
|
||||
}
|
||||
|
||||
public static final List<Services> toRentACar(List<StationCommercialServices> list) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
return toType(list, RENT_A_CAR);
|
||||
}
|
||||
|
||||
public static final List<Services> toRestaurant(List<StationCommercialServices> list) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
return toType(list, RESTAURANT);
|
||||
}
|
||||
|
||||
public static final List<Services> toShop(List<StationCommercialServices> list) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
return toType(list, SHOP);
|
||||
}
|
||||
|
||||
public static final List<Services> toSouvenir(List<StationCommercialServices> list) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
return toType(list, SOUVENIR);
|
||||
}
|
||||
|
||||
public static final List<Services> toStationServicesView(List<StationServices> list) {
|
||||
int collectionSizeOrDefault;
|
||||
Boolean accessible;
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : list) {
|
||||
if (!Intrinsics.areEqual(((StationServices) obj).getServiceType(), ACCESS)) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
List<StationServices> sortedWith = CollectionsKt.sortedWith(arrayList, new Comparator() { // from class: com.adif.elcanomovil.uiStations.mappers.RequestedStationInfoMapperKt$toStationServicesView$$inlined$sortedBy$1
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // java.util.Comparator
|
||||
public final int compare(T t2, T t4) {
|
||||
return ComparisonsKt.compareValues(((StationServices) t2).getName(), ((StationServices) t4).getName());
|
||||
}
|
||||
});
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(sortedWith, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault);
|
||||
for (StationServices stationServices : sortedWith) {
|
||||
String logo = stationServices.getLogo();
|
||||
String name = stationServices.getName();
|
||||
String phoneNumber = stationServices.getPhoneNumber();
|
||||
String description = stationServices.getDescription();
|
||||
Accessible accessible2 = stationServices.getAccessible();
|
||||
boolean booleanValue = (accessible2 == null || (accessible = accessible2.getAccessible()) == null) ? false : accessible.booleanValue();
|
||||
String web = stationServices.getWeb();
|
||||
Locator locator = stationServices.getLocator();
|
||||
String str = null;
|
||||
Location location = locator != null ? locator.getLocation() : null;
|
||||
Accessible accessible3 = stationServices.getAccessible();
|
||||
String description2 = accessible3 != null ? accessible3.getDescription() : null;
|
||||
OpeningHours openingHours = stationServices.getOpeningHours();
|
||||
if (openingHours != null) {
|
||||
str = openingHours.getShortText();
|
||||
}
|
||||
arrayList2.add(new Services(logo, name, phoneNumber, description, booleanValue, null, null, null, null, null, web, location, description2, str, stationServices.getAndroidLink()));
|
||||
}
|
||||
return arrayList2;
|
||||
}
|
||||
|
||||
public static final List<Services> toType(List<StationCommercialServices> list, String serviceType) {
|
||||
int collectionSizeOrDefault;
|
||||
List<Offer> offers;
|
||||
Offer offer;
|
||||
List<Offer> offers2;
|
||||
Offer offer2;
|
||||
Boolean accessible;
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
Intrinsics.checkNotNullParameter(serviceType, "serviceType");
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : list) {
|
||||
if (Intrinsics.areEqual(((StationCommercialServices) obj).getServiceType(), serviceType)) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
List<StationCommercialServices> sortedWith = CollectionsKt.sortedWith(arrayList, new Comparator() { // from class: com.adif.elcanomovil.uiStations.mappers.RequestedStationInfoMapperKt$toType$$inlined$sortedBy$1
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // java.util.Comparator
|
||||
public final int compare(T t2, T t4) {
|
||||
return ComparisonsKt.compareValues(((StationCommercialServices) t2).getName(), ((StationCommercialServices) t4).getName());
|
||||
}
|
||||
});
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(sortedWith, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault);
|
||||
for (StationCommercialServices stationCommercialServices : sortedWith) {
|
||||
String logo = stationCommercialServices.getLogo();
|
||||
String name = stationCommercialServices.getName();
|
||||
String phoneNumber = stationCommercialServices.getPhoneNumber();
|
||||
String description = stationCommercialServices.getDescription();
|
||||
Accessible accessible2 = stationCommercialServices.getAccessible();
|
||||
boolean booleanValue = (accessible2 == null || (accessible = accessible2.getAccessible()) == null) ? false : accessible.booleanValue();
|
||||
List<String> paymentWay = stationCommercialServices.getPaymentWay();
|
||||
List<Offer> offers3 = stationCommercialServices.getOffers();
|
||||
String str = null;
|
||||
String description2 = (offers3 == null || !(offers3.isEmpty() ^ true) || (offers2 = stationCommercialServices.getOffers()) == null || (offer2 = offers2.get(0)) == null) ? null : offer2.getDescription();
|
||||
List<Offer> offers4 = stationCommercialServices.getOffers();
|
||||
String description3 = (offers4 == null || !(offers4.isEmpty() ^ true) || (offers = stationCommercialServices.getOffers()) == null || (offer = offers.get(0)) == null) ? null : offer.getDescription();
|
||||
String web = stationCommercialServices.getWeb();
|
||||
Locator locator = stationCommercialServices.getLocator();
|
||||
Location location = locator != null ? locator.getLocation() : null;
|
||||
Accessible accessible3 = stationCommercialServices.getAccessible();
|
||||
String description4 = accessible3 != null ? accessible3.getDescription() : null;
|
||||
OpeningHours openingHours = stationCommercialServices.getOpeningHours();
|
||||
if (openingHours != null) {
|
||||
str = openingHours.getShortText();
|
||||
}
|
||||
arrayList2.add(new Services(logo, name, phoneNumber, description, booleanValue, paymentWay, description2, description3, null, null, web, location, description4, str, stationCommercialServices.getAndroidLink()));
|
||||
}
|
||||
return arrayList2;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user