Primer paso de la investigacion. Se aportan el .apk, las carpetas con el apk extraido y el apk descompilado. El archivo API_DOCUMENTATION.md es un archivo donde se anotaran los descubrimientos del funcionamiento de la API, y los .py son scripts para probar la funcionalidad de la API con los métodos que vayamos encontrando. Finalmente, los archivos .js son scripts de Frida para extraer informacion de la APP durante la ejecucion.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.authenticator;
|
||||
|
||||
import com.google.android.gms.common.internal.ServiceSpecificExtraArgs;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\bf\u0018\u00002\u00020\u0001J\u001c\u0010\u0002\u001a\u00020\u00032\u0012\u0010\u0004\u001a\u000e\u0012\u0004\u0012\u00020\u0003\u0018\u00010\u0005j\u0002`\u0006H&¨\u0006\u0007"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/authenticator/AuthenticationProvider;", "", "handleAuthentication", "", ServiceSpecificExtraArgs.CastExtraArgs.LISTENER, "Lkotlin/Function0;", "Lcom/adif/elcanomovil/uiAvisa/components/authenticator/AuthenticationListener;", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public interface AuthenticationProvider {
|
||||
void handleAuthentication(Function0<Unit> listener);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.authenticator;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\f\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000*\u001a\u0010\u0000\"\n\u0012\u0004\u0012\u00020\u0002\u0018\u00010\u00012\n\u0012\u0004\u0012\u00020\u0002\u0018\u00010\u0001¨\u0006\u0003"}, d2 = {"AuthenticationListener", "Lkotlin/Function0;", "", "ui-avisa_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class AuthenticationProviderKt {
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.authenticator;
|
||||
|
||||
import C1.e;
|
||||
import com.adif.elcanomovil.domain.usecases.avisa.user.LoginAvisaUserUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.avisa.user.RefreshAvisaUserUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.avisa.user.RegisterAvisaUserUseCase;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import com.google.android.gms.common.internal.ServiceSpecificExtraArgs;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.BuildersKt__Builders_commonKt;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
import kotlinx.coroutines.GlobalScope;
|
||||
|
||||
@Metadata(d1 = {"\u0000:\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\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B%\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\t¢\u0006\u0002\u0010\nJ\u001c\u0010\r\u001a\u00020\u000e2\u0012\u0010\u000f\u001a\u000e\u0012\u0004\u0012\u00020\u000e\u0018\u00010\u0010j\u0002`\u0011H\u0016R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u000b\u001a\u00020\fX\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0007X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\b\u001a\u00020\tX\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0012"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/authenticator/DefaultAuthenticationProvider;", "Lcom/adif/elcanomovil/uiAvisa/components/authenticator/AuthenticationProvider;", "registerAvisaUserUseCase", "Lcom/adif/elcanomovil/domain/usecases/avisa/user/RegisterAvisaUserUseCase;", "loginAvisaUserUseCase", "Lcom/adif/elcanomovil/domain/usecases/avisa/user/LoginAvisaUserUseCase;", "preferenceStorage", "Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;", "refreshAvisaUserUseCase", "Lcom/adif/elcanomovil/domain/usecases/avisa/user/RefreshAvisaUserUseCase;", "(Lcom/adif/elcanomovil/domain/usecases/avisa/user/RegisterAvisaUserUseCase;Lcom/adif/elcanomovil/domain/usecases/avisa/user/LoginAvisaUserUseCase;Lcom/adif/elcanomovil/serviceStorage/preferences/PreferenceStorage;Lcom/adif/elcanomovil/domain/usecases/avisa/user/RefreshAvisaUserUseCase;)V", "oneTry", "", "handleAuthentication", "", ServiceSpecificExtraArgs.CastExtraArgs.LISTENER, "Lkotlin/Function0;", "Lcom/adif/elcanomovil/uiAvisa/components/authenticator/AuthenticationListener;", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultAuthenticationProvider implements AuthenticationProvider {
|
||||
private final LoginAvisaUserUseCase loginAvisaUserUseCase;
|
||||
private boolean oneTry;
|
||||
private final PreferenceStorage preferenceStorage;
|
||||
private final RefreshAvisaUserUseCase refreshAvisaUserUseCase;
|
||||
private final RegisterAvisaUserUseCase registerAvisaUserUseCase;
|
||||
|
||||
public DefaultAuthenticationProvider(RegisterAvisaUserUseCase registerAvisaUserUseCase, LoginAvisaUserUseCase loginAvisaUserUseCase, PreferenceStorage preferenceStorage, RefreshAvisaUserUseCase refreshAvisaUserUseCase) {
|
||||
Intrinsics.checkNotNullParameter(registerAvisaUserUseCase, "registerAvisaUserUseCase");
|
||||
Intrinsics.checkNotNullParameter(loginAvisaUserUseCase, "loginAvisaUserUseCase");
|
||||
Intrinsics.checkNotNullParameter(preferenceStorage, "preferenceStorage");
|
||||
Intrinsics.checkNotNullParameter(refreshAvisaUserUseCase, "refreshAvisaUserUseCase");
|
||||
this.registerAvisaUserUseCase = registerAvisaUserUseCase;
|
||||
this.loginAvisaUserUseCase = loginAvisaUserUseCase;
|
||||
this.preferenceStorage = preferenceStorage;
|
||||
this.refreshAvisaUserUseCase = refreshAvisaUserUseCase;
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.uiAvisa.components.authenticator.AuthenticationProvider
|
||||
public void handleAuthentication(Function0<Unit> listener) {
|
||||
BuildersKt__Builders_commonKt.launch$default(GlobalScope.INSTANCE, Dispatchers.getIO(), null, new e(this, listener, null), 2, null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
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: classes.dex */
|
||||
public abstract class Hilt_NewIssueFragment extends K implements GeneratedComponentManagerHolder {
|
||||
private ContextWrapper componentContext;
|
||||
private volatile FragmentComponentManager componentManager;
|
||||
private final Object componentManagerLock;
|
||||
private boolean disableGetContextFix;
|
||||
private boolean injected;
|
||||
|
||||
public Hilt_NewIssueFragment() {
|
||||
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;
|
||||
((NewIssueFragment_GeneratedInjector) generatedComponent()).injectNewIssueFragment((NewIssueFragment) 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_NewIssueFragment(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,243 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import android.net.Uri;
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.Navigation;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b6\u0018\u00002\u00020\u0001:\u0007\u0003\u0004\u0005\u0006\u0007\b\tB\u0007\b\u0004¢\u0006\u0002\u0010\u0002\u0082\u0001\u0007\n\u000b\f\r\u000e\u000f\u0010¨\u0006\u0011"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo;", "", "()V", "AskForCameraPermission", "EditPicture", "NavigateUp", "PickImageFromCamera", "PickImageFromGallery", "PickPicture", "RegularNavigation", "Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo$AskForCameraPermission;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo$EditPicture;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo$NavigateUp;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo$PickImageFromCamera;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo$PickImageFromGallery;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo$PickPicture;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo$RegularNavigation;", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class NavigateTo {
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\bÆ\n\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0013\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006HÖ\u0003J\t\u0010\u0007\u001a\u00020\bHÖ\u0001J\t\u0010\t\u001a\u00020\nHÖ\u0001¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo$AskForCameraPermission;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo;", "()V", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final /* data */ class AskForCameraPermission extends NavigateTo {
|
||||
public static final AskForCameraPermission INSTANCE = new AskForCameraPermission();
|
||||
|
||||
private AskForCameraPermission() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return this == other || (other instanceof AskForCameraPermission);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return -72677138;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "AskForCameraPermission";
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\t\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0003\b\u0086\b\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\t\u0010\u000b\u001a\u00020\u0003HÆ\u0003J\t\u0010\f\u001a\u00020\u0005HÆ\u0003J\u001d\u0010\r\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u0005HÆ\u0001J\u0013\u0010\u000e\u001a\u00020\u000f2\b\u0010\u0010\u001a\u0004\u0018\u00010\u0011HÖ\u0003J\t\u0010\u0012\u001a\u00020\u0003HÖ\u0001J\t\u0010\u0013\u001a\u00020\u0005HÖ\u0001R\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\n¨\u0006\u0014"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo$EditPicture;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo;", "position", "", "pictureContent", "", "(ILjava/lang/String;)V", "getPictureContent", "()Ljava/lang/String;", "getPosition", "()I", "component1", "component2", "copy", "equals", "", "other", "", "hashCode", "toString", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final /* data */ class EditPicture extends NavigateTo {
|
||||
private final String pictureContent;
|
||||
private final int position;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public EditPicture(int i, String pictureContent) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(pictureContent, "pictureContent");
|
||||
this.position = i;
|
||||
this.pictureContent = pictureContent;
|
||||
}
|
||||
|
||||
public static /* synthetic */ EditPicture copy$default(EditPicture editPicture, int i, String str, int i4, Object obj) {
|
||||
if ((i4 & 1) != 0) {
|
||||
i = editPicture.position;
|
||||
}
|
||||
if ((i4 & 2) != 0) {
|
||||
str = editPicture.pictureContent;
|
||||
}
|
||||
return editPicture.copy(i, str);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final int getPosition() {
|
||||
return this.position;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final String getPictureContent() {
|
||||
return this.pictureContent;
|
||||
}
|
||||
|
||||
public final EditPicture copy(int position, String pictureContent) {
|
||||
Intrinsics.checkNotNullParameter(pictureContent, "pictureContent");
|
||||
return new EditPicture(position, pictureContent);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof EditPicture)) {
|
||||
return false;
|
||||
}
|
||||
EditPicture editPicture = (EditPicture) other;
|
||||
return this.position == editPicture.position && Intrinsics.areEqual(this.pictureContent, editPicture.pictureContent);
|
||||
}
|
||||
|
||||
public final String getPictureContent() {
|
||||
return this.pictureContent;
|
||||
}
|
||||
|
||||
public final int getPosition() {
|
||||
return this.position;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.pictureContent.hashCode() + (Integer.hashCode(this.position) * 31);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("EditPicture(position=");
|
||||
sb.append(this.position);
|
||||
sb.append(", pictureContent=");
|
||||
return com.google.android.gms.measurement.internal.a.n(sb, this.pictureContent, ')');
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\bÆ\n\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0013\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006HÖ\u0003J\t\u0010\u0007\u001a\u00020\bHÖ\u0001J\t\u0010\t\u001a\u00020\nHÖ\u0001¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo$NavigateUp;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo;", "()V", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final /* data */ class NavigateUp extends NavigateTo {
|
||||
public static final NavigateUp INSTANCE = new NavigateUp();
|
||||
|
||||
private NavigateUp() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return this == other || (other instanceof NavigateUp);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return 1764021590;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "NavigateUp";
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0086\b\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\t\u0010\u0007\u001a\u00020\u0003HÆ\u0003J\u0013\u0010\b\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\t\u001a\u00020\n2\b\u0010\u000b\u001a\u0004\u0018\u00010\fHÖ\u0003J\t\u0010\r\u001a\u00020\u000eHÖ\u0001J\t\u0010\u000f\u001a\u00020\u0010HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0011"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo$PickImageFromCamera;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo;", "imageUri", "Landroid/net/Uri;", "(Landroid/net/Uri;)V", "getImageUri", "()Landroid/net/Uri;", "component1", "copy", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final /* data */ class PickImageFromCamera extends NavigateTo {
|
||||
private final Uri imageUri;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public PickImageFromCamera(Uri imageUri) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(imageUri, "imageUri");
|
||||
this.imageUri = imageUri;
|
||||
}
|
||||
|
||||
public static /* synthetic */ PickImageFromCamera copy$default(PickImageFromCamera pickImageFromCamera, Uri uri, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
uri = pickImageFromCamera.imageUri;
|
||||
}
|
||||
return pickImageFromCamera.copy(uri);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final Uri getImageUri() {
|
||||
return this.imageUri;
|
||||
}
|
||||
|
||||
public final PickImageFromCamera copy(Uri imageUri) {
|
||||
Intrinsics.checkNotNullParameter(imageUri, "imageUri");
|
||||
return new PickImageFromCamera(imageUri);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
return (other instanceof PickImageFromCamera) && Intrinsics.areEqual(this.imageUri, ((PickImageFromCamera) other).imageUri);
|
||||
}
|
||||
|
||||
public final Uri getImageUri() {
|
||||
return this.imageUri;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.imageUri.hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "PickImageFromCamera(imageUri=" + this.imageUri + ')';
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\bÆ\n\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0013\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006HÖ\u0003J\t\u0010\u0007\u001a\u00020\bHÖ\u0001J\t\u0010\t\u001a\u00020\nHÖ\u0001¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo$PickImageFromGallery;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo;", "()V", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final /* data */ class PickImageFromGallery extends NavigateTo {
|
||||
public static final PickImageFromGallery INSTANCE = new PickImageFromGallery();
|
||||
|
||||
private PickImageFromGallery() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return this == other || (other instanceof PickImageFromGallery);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return 1944391448;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "PickImageFromGallery";
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\bÆ\n\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0013\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006HÖ\u0003J\t\u0010\u0007\u001a\u00020\bHÖ\u0001J\t\u0010\t\u001a\u00020\nHÖ\u0001¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo$PickPicture;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo;", "()V", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final /* data */ class PickPicture extends NavigateTo {
|
||||
public static final PickPicture INSTANCE = new PickPicture();
|
||||
|
||||
private PickPicture() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return this == other || (other instanceof PickPicture);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return -1572336269;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "PickPicture";
|
||||
}
|
||||
}
|
||||
|
||||
@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\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo$RegularNavigation;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NavigateTo;", "navigation", "Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation;", "(Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation;)V", "getNavigation", "()Lcom/adif/elcanomovil/commonNavGraph/navigation/Navigation;", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final class RegularNavigation extends NavigateTo {
|
||||
private final Navigation navigation;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public RegularNavigation(Navigation navigation) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(navigation, "navigation");
|
||||
this.navigation = navigation;
|
||||
}
|
||||
|
||||
public final Navigation getNavigation() {
|
||||
return this.navigation;
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ NavigateTo(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
private NavigateTo() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.utils.Status;
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final /* synthetic */ class NewIssueFragment$bindViewModel$10$WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[Status.values().length];
|
||||
try {
|
||||
iArr[Status.SUCCESS.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[Status.ERROR.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[Status.LOADING.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.utils.Status;
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final /* synthetic */ class NewIssueFragment$bindViewModel$11$WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[Status.values().length];
|
||||
try {
|
||||
iArr[Status.LOADING.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[Status.SUCCESS.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[Status.ERROR.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.utils.Status;
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final /* synthetic */ class NewIssueFragment$bindViewModel$12$WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[Status.values().length];
|
||||
try {
|
||||
iArr[Status.LOADING.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[Status.SUCCESS.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[Status.ERROR.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,653 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.text.Editable;
|
||||
import android.text.TextWatcher;
|
||||
import android.util.Base64;
|
||||
import android.view.View;
|
||||
import android.widget.AdapterView;
|
||||
import android.widget.ArrayAdapter;
|
||||
import android.widget.CompoundButton;
|
||||
import android.widget.ListAdapter;
|
||||
import androidx.fragment.app.C0146f0;
|
||||
import androidx.fragment.app.K;
|
||||
import androidx.lifecycle.C0;
|
||||
import androidx.lifecycle.D0;
|
||||
import androidx.lifecycle.InterfaceC0200v;
|
||||
import androidx.lifecycle.J;
|
||||
import androidx.lifecycle.q0;
|
||||
import androidx.lifecycle.y0;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertAction;
|
||||
import com.adif.elcanomovil.commonNavGraph.extensions.NavigationExtensionsKt;
|
||||
import com.adif.elcanomovil.commonViews.data.InfoHeaderData;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.AvisaStation;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.AvisaStationCategory;
|
||||
import com.adif.elcanomovil.uiAvisa.R;
|
||||
import com.adif.elcanomovil.uiAvisa.components.create.NewIssueViewAction;
|
||||
import com.adif.elcanomovil.uiAvisa.databinding.BottomSheetCategoriesBinding;
|
||||
import com.adif.elcanomovil.uiAvisa.databinding.FragmentAvisaNewBinding;
|
||||
import com.adif.elcanomovil.uiAvisa.databinding.PictureBottomSheetBinding;
|
||||
import com.adif.elcanomovil.uiAvisa.databinding.PopupFullscreenPictureBinding;
|
||||
import com.adif.elcanomovil.uiAvisa.utils.ui.BottomSheetListView;
|
||||
import com.adif.elcanomovil.uiAvisa.utils.ui.FullScreenPicturePopupWindow;
|
||||
import com.adif.elcanomovil.uiAvisa.utils.ui.PictureGridView;
|
||||
import com.google.firebase.messaging.Constants;
|
||||
import d.AbstractC0294c;
|
||||
import dagger.hilt.android.AndroidEntryPoint;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Comparator;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import kotlin.Deprecated;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.LazyKt;
|
||||
import kotlin.LazyThreadSafetyMode;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.comparisons.ComparisonsKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.FunctionReferenceImpl;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlinx.coroutines.BuildersKt__Builders_commonKt;
|
||||
import l0.C0435a;
|
||||
|
||||
@Metadata(d1 = {"\u0000l\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0002\b\b\n\u0002\u0010\u000b\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0010\u0011\n\u0002\b\u0005\b\u0007\u0018\u0000 >2\u00020\u0001:\u0001>B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J!\u0010\t\u001a\u00020\b2\u0006\u0010\u0005\u001a\u00020\u00042\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006H\u0016¢\u0006\u0004\b\t\u0010\nJ)\u0010\u0010\u001a\u00020\b2\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\r\u001a\u00020\u000b2\b\u0010\u000f\u001a\u0004\u0018\u00010\u000eH\u0017¢\u0006\u0004\b\u0010\u0010\u0011J\u000f\u0010\u0012\u001a\u00020\bH\u0002¢\u0006\u0004\b\u0012\u0010\u0003J\u001f\u0010\u0016\u001a\u00020\b2\u0006\u0010\u0013\u001a\u00020\u000b2\u0006\u0010\u0015\u001a\u00020\u0014H\u0002¢\u0006\u0004\b\u0016\u0010\u0017J\u000f\u0010\u0018\u001a\u00020\bH\u0002¢\u0006\u0004\b\u0018\u0010\u0003J\u000f\u0010\u0019\u001a\u00020\bH\u0002¢\u0006\u0004\b\u0019\u0010\u0003J\u0017\u0010\u001b\u001a\u00020\b2\u0006\u0010\u001a\u001a\u00020\u0014H\u0002¢\u0006\u0004\b\u001b\u0010\u001cJ\u0017\u0010\u001f\u001a\u00020\b2\u0006\u0010\u001e\u001a\u00020\u001dH\u0002¢\u0006\u0004\b\u001f\u0010 J\u0017\u0010\"\u001a\u00020\b2\u0006\u0010!\u001a\u00020\u000bH\u0002¢\u0006\u0004\b\"\u0010#J\u000f\u0010$\u001a\u00020\bH\u0002¢\u0006\u0004\b$\u0010\u0003J\u000f\u0010%\u001a\u00020\bH\u0002¢\u0006\u0004\b%\u0010\u0003J\u0017\u0010(\u001a\u00020\b2\u0006\u0010'\u001a\u00020&H\u0002¢\u0006\u0004\b(\u0010)J\u0017\u0010,\u001a\u00020\b2\u0006\u0010+\u001a\u00020*H\u0002¢\u0006\u0004\b,\u0010-J\u0017\u0010/\u001a\u00020\b2\u0006\u0010.\u001a\u00020*H\u0002¢\u0006\u0004\b/\u0010-R\u0016\u00101\u001a\u0002008\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b1\u00102R\u001b\u00108\u001a\u0002038BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b4\u00105\u001a\u0004\b6\u00107R.\u0010<\u001a\u001c\u0012\u0018\u0012\u0016\u0012\u0004\u0012\u00020\u0014 ;*\n\u0012\u0004\u0012\u00020\u0014\u0018\u00010:0:098\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b<\u0010=¨\u0006?"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueFragment;", "Landroidx/fragment/app/K;", "<init>", "()V", "Landroid/view/View;", "view", "Landroid/os/Bundle;", "savedInstanceState", "", "onViewCreated", "(Landroid/view/View;Landroid/os/Bundle;)V", "", "requestCode", "resultCode", "Landroid/content/Intent;", Constants.ScionAnalytics.MessageType.DATA_MESSAGE, "onActivityResult", "(IILandroid/content/Intent;)V", "bindViewModel", "position", "", "pictureContent", "editPicture", "(ILjava/lang/String;)V", "promptCategoriesDialog", "promptStationsDialog", "stationId", "requestCategories", "(Ljava/lang/String;)V", "", "isChecked", "createIssue", "(Z)V", "value", "showProgress", "(I)V", "promptPickPictureDialog", "selectImageInAlbum", "Landroid/net/Uri;", "photoURI", "takePhoto", "(Landroid/net/Uri;)V", "Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertAction$Style;", "_action", "creationInfoDialogDismissed", "(Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertAction$Style;)V", "action", "handlePreMandatoryUpdateAlertResult", "Lcom/adif/elcanomovil/uiAvisa/databinding/FragmentAvisaNewBinding;", "binding", "Lcom/adif/elcanomovil/uiAvisa/databinding/FragmentAvisaNewBinding;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewModel;", "viewModel$delegate", "Lkotlin/Lazy;", "getViewModel", "()Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewModel;", "viewModel", "Ld/c;", "", "kotlin.jvm.PlatformType", "requestCameraPermissions", "Ld/c;", "Companion", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@AndroidEntryPoint
|
||||
@SourceDebugExtension({"SMAP\nNewIssueFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NewIssueFragment.kt\ncom/adif/elcanomovil/uiAvisa/components/create/NewIssueFragment\n+ 2 FragmentViewModelLazy.kt\nandroidx/fragment/app/FragmentViewModelLazyKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,378:1\n106#2,15:379\n1045#3:394\n1549#3:395\n1620#3,3:396\n1045#3:399\n1549#3:400\n1620#3,3:401\n*S KotlinDebug\n*F\n+ 1 NewIssueFragment.kt\ncom/adif/elcanomovil/uiAvisa/components/create/NewIssueFragment\n*L\n45#1:379,15\n276#1:394\n280#1:395\n280#1:396,3\n298#1:399\n304#1:400\n304#1:401,3\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class NewIssueFragment extends Hilt_NewIssueFragment {
|
||||
private static final int REQUEST_SELECT_IMAGE_IN_ALBUM = 101;
|
||||
private static final int REQUEST_TAKE_PHOTO = 100;
|
||||
private FragmentAvisaNewBinding binding;
|
||||
private final AbstractC0294c requestCameraPermissions;
|
||||
|
||||
/* renamed from: viewModel$delegate, reason: from kotlin metadata */
|
||||
private final Lazy viewModel;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[AlertAction.Style.values().length];
|
||||
try {
|
||||
iArr[AlertAction.Style.POSITIVE.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[AlertAction.Style.NEGATIVE.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[AlertAction.Style.NEUTRAL.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
|
||||
public NewIssueFragment() {
|
||||
super(R.layout.fragment_avisa_new);
|
||||
final Function0<K> function0 = new Function0<K>() { // from class: com.adif.elcanomovil.uiAvisa.components.create.NewIssueFragment$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.uiAvisa.components.create.NewIssueFragment$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(NewIssueViewModel.class), new Function0<C0>() { // from class: com.adif.elcanomovil.uiAvisa.components.create.NewIssueFragment$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.uiAvisa.components.create.NewIssueFragment$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.uiAvisa.components.create.NewIssueFragment$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;
|
||||
}
|
||||
});
|
||||
AbstractC0294c registerForActivityResult = registerForActivityResult(new C0146f0(1), new I2.k(this, 9));
|
||||
Intrinsics.checkNotNullExpressionValue(registerForActivityResult, "registerForActivityResult(...)");
|
||||
this.requestCameraPermissions = registerForActivityResult;
|
||||
}
|
||||
|
||||
private final void bindViewModel() {
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding = this.binding;
|
||||
if (fragmentAvisaNewBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaNewBinding = null;
|
||||
}
|
||||
final int i = 0;
|
||||
fragmentAvisaNewBinding.createIssueButton.setOnClickListener(new View.OnClickListener(this) { // from class: com.adif.elcanomovil.uiAvisa.components.create.c
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueFragment f4833b;
|
||||
|
||||
{
|
||||
this.f4833b = this;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i4 = i;
|
||||
NewIssueFragment newIssueFragment = this.f4833b;
|
||||
switch (i4) {
|
||||
case 0:
|
||||
NewIssueFragment.bindViewModel$lambda$1(newIssueFragment, view);
|
||||
return;
|
||||
case 1:
|
||||
NewIssueFragment.bindViewModel$lambda$2(newIssueFragment, view);
|
||||
return;
|
||||
default:
|
||||
NewIssueFragment.bindViewModel$lambda$3(newIssueFragment, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding2 = this.binding;
|
||||
if (fragmentAvisaNewBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaNewBinding2 = null;
|
||||
}
|
||||
final int i4 = 1;
|
||||
fragmentAvisaNewBinding2.createIssueStation.setOnClickListener(new View.OnClickListener(this) { // from class: com.adif.elcanomovil.uiAvisa.components.create.c
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueFragment f4833b;
|
||||
|
||||
{
|
||||
this.f4833b = this;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i42 = i4;
|
||||
NewIssueFragment newIssueFragment = this.f4833b;
|
||||
switch (i42) {
|
||||
case 0:
|
||||
NewIssueFragment.bindViewModel$lambda$1(newIssueFragment, view);
|
||||
return;
|
||||
case 1:
|
||||
NewIssueFragment.bindViewModel$lambda$2(newIssueFragment, view);
|
||||
return;
|
||||
default:
|
||||
NewIssueFragment.bindViewModel$lambda$3(newIssueFragment, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding3 = this.binding;
|
||||
if (fragmentAvisaNewBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaNewBinding3 = null;
|
||||
}
|
||||
final int i5 = 2;
|
||||
fragmentAvisaNewBinding3.createIssueCategory.setOnClickListener(new View.OnClickListener(this) { // from class: com.adif.elcanomovil.uiAvisa.components.create.c
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueFragment f4833b;
|
||||
|
||||
{
|
||||
this.f4833b = this;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i42 = i5;
|
||||
NewIssueFragment newIssueFragment = this.f4833b;
|
||||
switch (i42) {
|
||||
case 0:
|
||||
NewIssueFragment.bindViewModel$lambda$1(newIssueFragment, view);
|
||||
return;
|
||||
case 1:
|
||||
NewIssueFragment.bindViewModel$lambda$2(newIssueFragment, view);
|
||||
return;
|
||||
default:
|
||||
NewIssueFragment.bindViewModel$lambda$3(newIssueFragment, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding4 = this.binding;
|
||||
if (fragmentAvisaNewBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaNewBinding4 = null;
|
||||
}
|
||||
fragmentAvisaNewBinding4.createIssueSwitch.setOnCheckedChangeListener(new O1.a(this, 1));
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding5 = this.binding;
|
||||
if (fragmentAvisaNewBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaNewBinding5 = null;
|
||||
}
|
||||
fragmentAvisaNewBinding5.createIssueDescription.addTextChangedListener(new TextWatcher() { // from class: com.adif.elcanomovil.uiAvisa.components.create.NewIssueFragment$bindViewModel$5
|
||||
@Override // android.text.TextWatcher
|
||||
public void afterTextChanged(Editable p02) {
|
||||
}
|
||||
|
||||
@Override // android.text.TextWatcher
|
||||
public void beforeTextChanged(CharSequence p02, int p12, int p22, int p3) {
|
||||
}
|
||||
|
||||
@Override // android.text.TextWatcher
|
||||
public void onTextChanged(CharSequence p02, int p12, int p22, int p3) {
|
||||
NewIssueViewModel viewModel;
|
||||
viewModel = NewIssueFragment.this.getViewModel();
|
||||
viewModel.setIssueDescription(String.valueOf(p02));
|
||||
}
|
||||
});
|
||||
J viewLifecycleOwner = getViewLifecycleOwner();
|
||||
Intrinsics.checkNotNullExpressionValue(viewLifecycleOwner, "getViewLifecycleOwner(...)");
|
||||
BuildersKt__Builders_commonKt.launch$default(q0.h(viewLifecycleOwner), null, null, new i(this, null), 3, null);
|
||||
getViewModel().selectedCategory().e(getViewLifecycleOwner(), new l(0, new d(this, 4)));
|
||||
getViewModel().selectedStation().e(getViewLifecycleOwner(), new l(0, new d(this, 5)));
|
||||
getViewModel().canContinue().e(getViewLifecycleOwner(), new l(0, new d(this, 6)));
|
||||
getViewModel().getListCategories().e(getViewLifecycleOwner(), new l(0, new d(this, 0)));
|
||||
getViewModel().getAvisaStationList().e(getViewLifecycleOwner(), new l(0, new d(this, 1)));
|
||||
getViewModel().getResultCreateIncidence().e(getViewLifecycleOwner(), new l(0, new d(this, 2)));
|
||||
getViewModel().bitmap().e(getViewLifecycleOwner(), new l(0, new d(this, 3)));
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding6 = this.binding;
|
||||
if (fragmentAvisaNewBinding6 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaNewBinding6 = null;
|
||||
}
|
||||
fragmentAvisaNewBinding6.createIssueGrid.setCallback(new PictureGridView.OnPictureGridInteractionListener() { // from class: com.adif.elcanomovil.uiAvisa.components.create.NewIssueFragment$bindViewModel$14
|
||||
@Override // com.adif.elcanomovil.uiAvisa.utils.ui.PictureGridView.OnPictureGridInteractionListener
|
||||
public void onPictureInteraction(Bitmap bitmap) {
|
||||
PictureGridView.OnPictureGridInteractionListener.DefaultImpls.onPictureInteraction(this, bitmap);
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.uiAvisa.utils.ui.PictureGridView.OnPictureGridInteractionListener
|
||||
public void onPictureInteraction(int position) {
|
||||
NewIssueViewModel viewModel;
|
||||
viewModel = NewIssueFragment.this.getViewModel();
|
||||
viewModel.pictureGridInteraction(position);
|
||||
}
|
||||
});
|
||||
J viewLifecycleOwner2 = getViewLifecycleOwner();
|
||||
Intrinsics.checkNotNullExpressionValue(viewLifecycleOwner2, "getViewLifecycleOwner(...)");
|
||||
BuildersKt__Builders_commonKt.launch$default(q0.h(viewLifecycleOwner2), null, null, new f(this, null), 3, null);
|
||||
}
|
||||
|
||||
public static final void bindViewModel$lambda$1(NewIssueFragment this$0, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
this$0.getViewModel().onViewAction(NewIssueViewAction.CreateIncidence.INSTANCE);
|
||||
}
|
||||
|
||||
public static final void bindViewModel$lambda$2(NewIssueFragment this$0, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
this$0.promptStationsDialog();
|
||||
}
|
||||
|
||||
public static final void bindViewModel$lambda$3(NewIssueFragment this$0, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
this$0.promptCategoriesDialog();
|
||||
}
|
||||
|
||||
public static final void bindViewModel$lambda$4(NewIssueFragment this$0, CompoundButton compoundButton, boolean z3) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
this$0.getViewModel().onViewAction(new NewIssueViewAction.SetNotificationsEnabled(z3));
|
||||
}
|
||||
|
||||
private final void createIssue(boolean isChecked) {
|
||||
showProgress(0);
|
||||
getViewModel().createIssue(isChecked);
|
||||
}
|
||||
|
||||
public final void creationInfoDialogDismissed(AlertAction.Style _action) {
|
||||
getViewModel().onViewAction(NewIssueViewAction.CreationInfoDialogDismissed.INSTANCE);
|
||||
}
|
||||
|
||||
public final void editPicture(int position, String pictureContent) {
|
||||
Context requireContext = requireContext();
|
||||
Intrinsics.checkNotNullExpressionValue(requireContext, "requireContext(...)");
|
||||
Intrinsics.checkNotNullParameter(pictureContent, "base64String");
|
||||
byte[] decode = Base64.decode(pictureContent, 0);
|
||||
Bitmap decodeByteArray = BitmapFactory.decodeByteArray(decode, 0, decode.length);
|
||||
Intrinsics.checkNotNullExpressionValue(decodeByteArray, "decodeByteArray(...)");
|
||||
PopupFullscreenPictureBinding inflate = PopupFullscreenPictureBinding.inflate(getLayoutInflater());
|
||||
Intrinsics.checkNotNullExpressionValue(inflate, "inflate(...)");
|
||||
new FullScreenPicturePopupWindow(requireContext, decodeByteArray, position, true, inflate, -1, -1, new FullScreenPicturePopupWindow.OnFullScreenPicturePopupListener() { // from class: com.adif.elcanomovil.uiAvisa.components.create.NewIssueFragment$editPicture$pw$1
|
||||
@Override // com.adif.elcanomovil.uiAvisa.utils.ui.FullScreenPicturePopupWindow.OnFullScreenPicturePopupListener
|
||||
public void onDeleteEvent(int position2) {
|
||||
NewIssueViewModel viewModel;
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding;
|
||||
viewModel = NewIssueFragment.this.getViewModel();
|
||||
viewModel.removePicture(position2);
|
||||
fragmentAvisaNewBinding = NewIssueFragment.this.binding;
|
||||
if (fragmentAvisaNewBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaNewBinding = null;
|
||||
}
|
||||
fragmentAvisaNewBinding.createIssueGrid.deleteImage(position2);
|
||||
}
|
||||
}).showAtLocation(getView(), 17, 0, 0);
|
||||
}
|
||||
|
||||
public final NewIssueViewModel getViewModel() {
|
||||
return (NewIssueViewModel) this.viewModel.getValue();
|
||||
}
|
||||
|
||||
public final void handlePreMandatoryUpdateAlertResult(AlertAction.Style action) {
|
||||
if (WhenMappings.$EnumSwitchMapping$0[action.ordinal()] != 1) {
|
||||
return;
|
||||
}
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding = this.binding;
|
||||
if (fragmentAvisaNewBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaNewBinding = null;
|
||||
}
|
||||
createIssue(fragmentAvisaNewBinding.createIssueSwitch.isChecked());
|
||||
}
|
||||
|
||||
private final void promptCategoriesDialog() {
|
||||
int collectionSizeOrDefault;
|
||||
Context context = getContext();
|
||||
if (context == null) {
|
||||
return;
|
||||
}
|
||||
o2.e eVar = new o2.e(context);
|
||||
BottomSheetCategoriesBinding inflate = BottomSheetCategoriesBinding.inflate(getLayoutInflater());
|
||||
Intrinsics.checkNotNullExpressionValue(inflate, "inflate(...)");
|
||||
List sortedWith = CollectionsKt.sortedWith(getViewModel().categories(), new Comparator() { // from class: com.adif.elcanomovil.uiAvisa.components.create.NewIssueFragment$promptCategoriesDialog$$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(((AvisaStationCategory) t2).getTitle(), ((AvisaStationCategory) t4).getTitle());
|
||||
}
|
||||
});
|
||||
BottomSheetListView bottomSheetListView = inflate.listViewBtmSheet;
|
||||
int i = R.layout.item_station_category_list;
|
||||
int i4 = R.id.stationCategoryTitle;
|
||||
List list = sortedWith;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(((AvisaStationCategory) it.next()).getTitle());
|
||||
}
|
||||
bottomSheetListView.setAdapter((ListAdapter) new ArrayAdapter(context, i, i4, arrayList));
|
||||
inflate.listViewBtmSheet.setOnItemClickListener(new a(this, sortedWith, eVar, 0));
|
||||
eVar.setContentView(inflate.getRoot());
|
||||
eVar.show();
|
||||
}
|
||||
|
||||
public static final void promptCategoriesDialog$lambda$7(NewIssueFragment this$0, List list, o2.e dialog, AdapterView adapterView, View view, int i, long j4) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
Intrinsics.checkNotNullParameter(list, "$list");
|
||||
Intrinsics.checkNotNullParameter(dialog, "$dialog");
|
||||
this$0.getViewModel().setCategory((AvisaStationCategory) list.get(i));
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding = this$0.binding;
|
||||
if (fragmentAvisaNewBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaNewBinding = null;
|
||||
}
|
||||
fragmentAvisaNewBinding.categoryButton.setTextColor(this$0.getResources().getColor(R.color.white));
|
||||
dialog.dismiss();
|
||||
}
|
||||
|
||||
public final void promptPickPictureDialog() {
|
||||
Context context = getContext();
|
||||
if (context != null) {
|
||||
final o2.e eVar = new o2.e(context);
|
||||
PictureBottomSheetBinding inflate = PictureBottomSheetBinding.inflate(getLayoutInflater());
|
||||
Intrinsics.checkNotNullExpressionValue(inflate, "inflate(...)");
|
||||
final int i = 0;
|
||||
inflate.bottomSheetGallery.setOnClickListener(new View.OnClickListener(this) { // from class: com.adif.elcanomovil.uiAvisa.components.create.b
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueFragment f4830b;
|
||||
|
||||
{
|
||||
this.f4830b = this;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
switch (i) {
|
||||
case 0:
|
||||
NewIssueFragment.promptPickPictureDialog$lambda$13$lambda$11(this.f4830b, eVar, view);
|
||||
return;
|
||||
default:
|
||||
NewIssueFragment.promptPickPictureDialog$lambda$13$lambda$12(this.f4830b, eVar, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
final int i4 = 1;
|
||||
inflate.bottomSheetCamera.setOnClickListener(new View.OnClickListener(this) { // from class: com.adif.elcanomovil.uiAvisa.components.create.b
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueFragment f4830b;
|
||||
|
||||
{
|
||||
this.f4830b = this;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
switch (i4) {
|
||||
case 0:
|
||||
NewIssueFragment.promptPickPictureDialog$lambda$13$lambda$11(this.f4830b, eVar, view);
|
||||
return;
|
||||
default:
|
||||
NewIssueFragment.promptPickPictureDialog$lambda$13$lambda$12(this.f4830b, eVar, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
eVar.setContentView(inflate.getRoot());
|
||||
eVar.show();
|
||||
}
|
||||
}
|
||||
|
||||
public static final void promptPickPictureDialog$lambda$13$lambda$11(NewIssueFragment this$0, o2.e dialog, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
Intrinsics.checkNotNullParameter(dialog, "$dialog");
|
||||
this$0.getViewModel().onViewAction(NewIssueViewAction.PickImageFromGalleryViewAction.INSTANCE);
|
||||
dialog.dismiss();
|
||||
}
|
||||
|
||||
public static final void promptPickPictureDialog$lambda$13$lambda$12(NewIssueFragment this$0, o2.e dialog, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
Intrinsics.checkNotNullParameter(dialog, "$dialog");
|
||||
this$0.getViewModel().onViewAction(NewIssueViewAction.PickImageFromCameraViewAction.INSTANCE);
|
||||
dialog.dismiss();
|
||||
}
|
||||
|
||||
private final void promptStationsDialog() {
|
||||
int collectionSizeOrDefault;
|
||||
Context context = getContext();
|
||||
if (context == null) {
|
||||
return;
|
||||
}
|
||||
o2.e eVar = new o2.e(context);
|
||||
BottomSheetCategoriesBinding inflate = BottomSheetCategoriesBinding.inflate(getLayoutInflater());
|
||||
Intrinsics.checkNotNullExpressionValue(inflate, "inflate(...)");
|
||||
List sortedWith = CollectionsKt.sortedWith(getViewModel().avisaStations(), new Comparator() { // from class: com.adif.elcanomovil.uiAvisa.components.create.NewIssueFragment$promptStationsDialog$$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(((AvisaStation) t2).getName(), ((AvisaStation) t4).getName());
|
||||
}
|
||||
});
|
||||
BottomSheetListView bottomSheetListView = inflate.listViewBtmSheet;
|
||||
int i = R.layout.item_stations_list;
|
||||
int i4 = R.id.stationOptionTitle;
|
||||
List list = sortedWith;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(((AvisaStation) it.next()).getName());
|
||||
}
|
||||
bottomSheetListView.setAdapter((ListAdapter) new ArrayAdapter(context, i, i4, arrayList));
|
||||
inflate.listViewBtmSheet.setOnItemClickListener(new a(this, sortedWith, eVar, 1));
|
||||
eVar.setContentView(inflate.getRoot());
|
||||
eVar.show();
|
||||
}
|
||||
|
||||
public static final void promptStationsDialog$lambda$10(NewIssueFragment this$0, List list, o2.e dialog, AdapterView adapterView, View view, int i, long j4) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
Intrinsics.checkNotNullParameter(list, "$list");
|
||||
Intrinsics.checkNotNullParameter(dialog, "$dialog");
|
||||
this$0.getViewModel().setStation((AvisaStation) list.get(i));
|
||||
dialog.dismiss();
|
||||
}
|
||||
|
||||
public static final void requestCameraPermissions$lambda$0(NewIssueFragment this$0, Map permissions) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
Intrinsics.checkNotNullParameter(permissions, "permissions");
|
||||
if (Intrinsics.areEqual(permissions.get("android.permission.CAMERA"), Boolean.TRUE)) {
|
||||
this$0.getViewModel().onViewAction(NewIssueViewAction.CameraPermissionGranted.INSTANCE);
|
||||
}
|
||||
}
|
||||
|
||||
public final void requestCategories(String stationId) {
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding = this.binding;
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding2 = null;
|
||||
if (fragmentAvisaNewBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaNewBinding = null;
|
||||
}
|
||||
fragmentAvisaNewBinding.createIssueCategory.setEnabled(false);
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding3 = this.binding;
|
||||
if (fragmentAvisaNewBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaNewBinding2 = fragmentAvisaNewBinding3;
|
||||
}
|
||||
fragmentAvisaNewBinding2.categoryButton.setEnabled(false);
|
||||
getViewModel().fetchCategories(stationId);
|
||||
}
|
||||
|
||||
public final void selectImageInAlbum() {
|
||||
Intent intent = new Intent("android.intent.action.GET_CONTENT");
|
||||
intent.setType("image/*");
|
||||
startActivityForResult(intent, 101);
|
||||
}
|
||||
|
||||
public final void showProgress(int value) {
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding = this.binding;
|
||||
if (fragmentAvisaNewBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaNewBinding = null;
|
||||
}
|
||||
fragmentAvisaNewBinding.loadingViewContainer.setVisibility(value);
|
||||
}
|
||||
|
||||
public final void takePhoto(Uri photoURI) {
|
||||
Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
|
||||
intent.putExtra("output", photoURI);
|
||||
startActivityForResult(intent, 100);
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
@Deprecated(message = "Deprecated in Java")
|
||||
public void onActivityResult(int requestCode, int resultCode, Intent r4) {
|
||||
if (resultCode == -1) {
|
||||
if (requestCode == 100) {
|
||||
getViewModel().onViewAction(NewIssueViewAction.CameraPictureTaken.INSTANCE);
|
||||
} else {
|
||||
if (requestCode != 101) {
|
||||
return;
|
||||
}
|
||||
getViewModel().addBitmapFrom(r4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r0v10, types: [kotlin.jvm.internal.FunctionReferenceImpl, kotlin.jvm.functions.Function1] */
|
||||
/* JADX WARN: Type inference failed for: r0v9, types: [kotlin.jvm.internal.FunctionReferenceImpl, kotlin.jvm.functions.Function1] */
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onViewCreated(View view, Bundle savedInstanceState) {
|
||||
Intrinsics.checkNotNullParameter(view, "view");
|
||||
super.onViewCreated(view, savedInstanceState);
|
||||
FragmentAvisaNewBinding bind = FragmentAvisaNewBinding.bind(view);
|
||||
Intrinsics.checkNotNullExpressionValue(bind, "bind(...)");
|
||||
this.binding = bind;
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding = null;
|
||||
if (bind == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
bind = null;
|
||||
}
|
||||
bind.headerAvisaIssue.updateHeaderInfo(new InfoHeaderData(getString(R.string.avisa_new_issue_screen_title), Integer.valueOf(R.drawable.ic_arrow_back), null, 4, null));
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding2 = this.binding;
|
||||
if (fragmentAvisaNewBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaNewBinding2 = null;
|
||||
}
|
||||
fragmentAvisaNewBinding2.headerAvisaIssue.setOnBackActionListener(new d(this, 7));
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding3 = this.binding;
|
||||
if (fragmentAvisaNewBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaNewBinding = fragmentAvisaNewBinding3;
|
||||
}
|
||||
fragmentAvisaNewBinding.headerAvisaIssue.setOnCloseActionListener(new d(this, 8));
|
||||
bindViewModel();
|
||||
NavigationExtensionsKt.onDestinationResult(NavigationExtensionsKt.findRootNavController(this), NewIssueViewModelKt.AVISA_CREATE_ISSUE, this, new FunctionReferenceImpl(1, this, NewIssueFragment.class, "creationInfoDialogDismissed", "creationInfoDialogDismissed(Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertAction$Style;)V", 0));
|
||||
NavigationExtensionsKt.onDestinationResult(NavigationExtensionsKt.findRootNavController(this), NewIssueViewModelKt.AVISA_PRE_CREATE_ISSUE, this, new FunctionReferenceImpl(1, this, NewIssueFragment.class, "handlePreMandatoryUpdateAlertResult", "handlePreMandatoryUpdateAlertResult(Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertAction$Style;)V", 0));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import com.adif.elcanomovil.commonNavGraph.MainNavigationDirections;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertActions;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertType;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.Filters;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.StationObservationArg;
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import o0.F;
|
||||
|
||||
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0005\u0018\u0000 \u00042\u00020\u0001:\u0002\u0005\u0004B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0006"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueFragmentDirections;", "", "<init>", "()V", "Companion", "com/adif/elcanomovil/uiAvisa/components/create/m", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class NewIssueFragmentDirections {
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE = new Companion(null);
|
||||
|
||||
@Metadata(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0011\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0013\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J=\u0010\u000f\u001a\u00020\u000e2\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0006\u001a\u00020\u00042\u0006\u0010\b\u001a\u00020\u00072\u0006\u0010\t\u001a\u00020\u00072\u0006\u0010\u000b\u001a\u00020\n2\u0006\u0010\r\u001a\u00020\f¢\u0006\u0004\b\u000f\u0010\u0010J=\u0010\u0011\u001a\u00020\u000e2\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0006\u001a\u00020\u00042\u0006\u0010\b\u001a\u00020\u00072\u0006\u0010\t\u001a\u00020\u00072\u0006\u0010\u000b\u001a\u00020\n2\u0006\u0010\r\u001a\u00020\f¢\u0006\u0004\b\u0011\u0010\u0010J#\u0010\u0015\u001a\u00020\u000e2\u0006\u0010\u0012\u001a\u00020\u00072\f\u0010\u0014\u001a\b\u0012\u0004\u0012\u00020\u00070\u0013¢\u0006\u0004\b\u0015\u0010\u0016J\u001d\u0010\u0018\u001a\u00020\u000e2\u0006\u0010\u0012\u001a\u00020\u00072\u0006\u0010\u0014\u001a\u00020\u0017¢\u0006\u0004\b\u0018\u0010\u0019J\u0015\u0010\u001b\u001a\u00020\u000e2\u0006\u0010\u001a\u001a\u00020\u0007¢\u0006\u0004\b\u001b\u0010\u001cJ\u001d\u0010\u001e\u001a\u00020\u000e2\u0006\u0010\u0012\u001a\u00020\u00072\u0006\u0010\u0014\u001a\u00020\u001d¢\u0006\u0004\b\u001e\u0010\u001fJ\u0099\u0001\u0010-\u001a\u00020\u000e2\b\u0010 \u001a\u0004\u0018\u00010\u00072\b\u0010!\u001a\u0004\u0018\u00010\u00072\b\u0010\"\u001a\u0004\u0018\u00010\u00072\b\u0010#\u001a\u0004\u0018\u00010\u00072\u0006\u0010$\u001a\u00020\u00042\u000e\u0010%\u001a\n\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u00132\b\u0010&\u001a\u0004\u0018\u00010\u00072\u000e\u0010'\u001a\n\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u00132\b\u0010(\u001a\u0004\u0018\u00010\u00072\b\u0010)\u001a\u0004\u0018\u00010\u00072\b\u0010*\u001a\u0004\u0018\u00010\u00072\b\u0010+\u001a\u0004\u0018\u00010\u00072\b\u0010,\u001a\u0004\u0018\u00010\u0007¢\u0006\u0004\b-\u0010.J\u0015\u0010/\u001a\u00020\u000e2\u0006\u0010\u0012\u001a\u00020\u0007¢\u0006\u0004\b/\u0010\u001c¨\u00060"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueFragmentDirections$Companion;", "", "<init>", "()V", "", "blockOnback", "isCancelable", "", "title", "message", "Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertActions;", "actions", "Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertType;", "type", "Lo0/F;", "actionGlobalAlertDialog", "(ZZLjava/lang/String;Ljava/lang/String;Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertActions;Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertType;)Lo0/F;", "toAlertDialog", "key", "", "values", "toSelectableBottomSheet", "(Ljava/lang/String;[Ljava/lang/String;)Lo0/F;", "Lcom/adif/elcanomovil/commonNavGraph/arguments/StationObservationArg;", "toStationObservationsBottomSheet", "(Ljava/lang/String;Lcom/adif/elcanomovil/commonNavGraph/arguments/StationObservationArg;)Lo0/F;", "observation", "toTrainObservationBottomSheet", "(Ljava/lang/String;)Lo0/F;", "Lcom/adif/elcanomovil/commonNavGraph/arguments/Filters;", "toFilterListBottomSheet", "(Ljava/lang/String;Lcom/adif/elcanomovil/commonNavGraph/arguments/Filters;)Lo0/F;", "logo", AppMeasurementSdk.ConditionalUserProperty.NAME, "phone", "description", "accessible", "paymentWay", "offer", "correspondences", "web", FirebaseAnalytics.Param.LOCATION, "accessibleLabel", "openingHours", "playStore", "toStationsAlertDialog", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lo0/F;", "toSelectStationFragment", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
public final F actionGlobalAlertDialog(boolean blockOnback, boolean isCancelable, String title, String message, AlertActions actions, AlertType type) {
|
||||
Intrinsics.checkNotNullParameter(title, "title");
|
||||
Intrinsics.checkNotNullParameter(message, "message");
|
||||
Intrinsics.checkNotNullParameter(actions, "actions");
|
||||
Intrinsics.checkNotNullParameter(type, "type");
|
||||
return new m(blockOnback, isCancelable, title, message, actions, type);
|
||||
}
|
||||
|
||||
public final F toAlertDialog(boolean blockOnback, boolean isCancelable, String title, String message, AlertActions actions, AlertType type) {
|
||||
Intrinsics.checkNotNullParameter(title, "title");
|
||||
Intrinsics.checkNotNullParameter(message, "message");
|
||||
Intrinsics.checkNotNullParameter(actions, "actions");
|
||||
Intrinsics.checkNotNullParameter(type, "type");
|
||||
return MainNavigationDirections.INSTANCE.toAlertDialog(blockOnback, isCancelable, title, message, actions, type);
|
||||
}
|
||||
|
||||
public final F toFilterListBottomSheet(String key, Filters values) {
|
||||
Intrinsics.checkNotNullParameter(key, "key");
|
||||
Intrinsics.checkNotNullParameter(values, "values");
|
||||
return MainNavigationDirections.INSTANCE.toFilterListBottomSheet(key, values);
|
||||
}
|
||||
|
||||
public final F toSelectStationFragment(String key) {
|
||||
Intrinsics.checkNotNullParameter(key, "key");
|
||||
return MainNavigationDirections.INSTANCE.toSelectStationFragment(key);
|
||||
}
|
||||
|
||||
public final F toSelectableBottomSheet(String key, String[] values) {
|
||||
Intrinsics.checkNotNullParameter(key, "key");
|
||||
Intrinsics.checkNotNullParameter(values, "values");
|
||||
return MainNavigationDirections.INSTANCE.toSelectableBottomSheet(key, values);
|
||||
}
|
||||
|
||||
public final F toStationObservationsBottomSheet(String key, StationObservationArg values) {
|
||||
Intrinsics.checkNotNullParameter(key, "key");
|
||||
Intrinsics.checkNotNullParameter(values, "values");
|
||||
return MainNavigationDirections.INSTANCE.toStationObservationsBottomSheet(key, values);
|
||||
}
|
||||
|
||||
public final F toStationsAlertDialog(String logo, String name, String phone, String description, boolean accessible, String[] paymentWay, String offer, String[] correspondences, String web, String location, String accessibleLabel, String openingHours, String playStore) {
|
||||
return MainNavigationDirections.INSTANCE.toStationsAlertDialog(logo, name, phone, description, accessible, paymentWay, offer, correspondences, web, location, accessibleLabel, openingHours, playStore);
|
||||
}
|
||||
|
||||
public final F toTrainObservationBottomSheet(String observation) {
|
||||
Intrinsics.checkNotNullParameter(observation, "observation");
|
||||
return MainNavigationDirections.INSTANCE.toTrainObservationBottomSheet(observation);
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
private NewIssueFragmentDirections() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.components.FragmentComponent;
|
||||
import dagger.hilt.codegen.OriginatingElement;
|
||||
import dagger.hilt.internal.GeneratedEntryPoint;
|
||||
|
||||
@OriginatingElement(topLevelClass = NewIssueFragment.class)
|
||||
@GeneratedEntryPoint
|
||||
@InstallIn({FragmentComponent.class})
|
||||
/* loaded from: classes.dex */
|
||||
public interface NewIssueFragment_GeneratedInjector {
|
||||
void injectNewIssueFragment(NewIssueFragment newIssueFragment);
|
||||
}
|
||||
@@ -0,0 +1,194 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
|
||||
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b6\u0018\u00002\u00020\u0001:\u0007\u0003\u0004\u0005\u0006\u0007\b\tB\u0007\b\u0004¢\u0006\u0002\u0010\u0002\u0082\u0001\u0007\n\u000b\f\r\u000e\u000f\u0010¨\u0006\u0011"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction;", "", "()V", "CameraPermissionGranted", "CameraPictureTaken", "CreateIncidence", "CreationInfoDialogDismissed", "PickImageFromCameraViewAction", "PickImageFromGalleryViewAction", "SetNotificationsEnabled", "Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction$CameraPermissionGranted;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction$CameraPictureTaken;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction$CreateIncidence;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction$CreationInfoDialogDismissed;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction$PickImageFromCameraViewAction;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction$PickImageFromGalleryViewAction;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction$SetNotificationsEnabled;", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class NewIssueViewAction {
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\bÆ\n\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0013\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006HÖ\u0003J\t\u0010\u0007\u001a\u00020\bHÖ\u0001J\t\u0010\t\u001a\u00020\nHÖ\u0001¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction$CameraPermissionGranted;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction;", "()V", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final /* data */ class CameraPermissionGranted extends NewIssueViewAction {
|
||||
public static final CameraPermissionGranted INSTANCE = new CameraPermissionGranted();
|
||||
|
||||
private CameraPermissionGranted() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return this == other || (other instanceof CameraPermissionGranted);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return 917204357;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "CameraPermissionGranted";
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\bÆ\n\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0013\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006HÖ\u0003J\t\u0010\u0007\u001a\u00020\bHÖ\u0001J\t\u0010\t\u001a\u00020\nHÖ\u0001¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction$CameraPictureTaken;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction;", "()V", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final /* data */ class CameraPictureTaken extends NewIssueViewAction {
|
||||
public static final CameraPictureTaken INSTANCE = new CameraPictureTaken();
|
||||
|
||||
private CameraPictureTaken() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return this == other || (other instanceof CameraPictureTaken);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return 1397942064;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "CameraPictureTaken";
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\bÆ\n\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0013\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006HÖ\u0003J\t\u0010\u0007\u001a\u00020\bHÖ\u0001J\t\u0010\t\u001a\u00020\nHÖ\u0001¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction$CreateIncidence;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction;", "()V", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final /* data */ class CreateIncidence extends NewIssueViewAction {
|
||||
public static final CreateIncidence INSTANCE = new CreateIncidence();
|
||||
|
||||
private CreateIncidence() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return this == other || (other instanceof CreateIncidence);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return 1248443494;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "CreateIncidence";
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\bÆ\n\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0013\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006HÖ\u0003J\t\u0010\u0007\u001a\u00020\bHÖ\u0001J\t\u0010\t\u001a\u00020\nHÖ\u0001¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction$CreationInfoDialogDismissed;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction;", "()V", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final /* data */ class CreationInfoDialogDismissed extends NewIssueViewAction {
|
||||
public static final CreationInfoDialogDismissed INSTANCE = new CreationInfoDialogDismissed();
|
||||
|
||||
private CreationInfoDialogDismissed() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return this == other || (other instanceof CreationInfoDialogDismissed);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return -16518766;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "CreationInfoDialogDismissed";
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\bÆ\n\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0013\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006HÖ\u0003J\t\u0010\u0007\u001a\u00020\bHÖ\u0001J\t\u0010\t\u001a\u00020\nHÖ\u0001¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction$PickImageFromCameraViewAction;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction;", "()V", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final /* data */ class PickImageFromCameraViewAction extends NewIssueViewAction {
|
||||
public static final PickImageFromCameraViewAction INSTANCE = new PickImageFromCameraViewAction();
|
||||
|
||||
private PickImageFromCameraViewAction() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return this == other || (other instanceof PickImageFromCameraViewAction);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return -126888798;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "PickImageFromCameraViewAction";
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\bÆ\n\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0013\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006HÖ\u0003J\t\u0010\u0007\u001a\u00020\bHÖ\u0001J\t\u0010\t\u001a\u00020\nHÖ\u0001¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction$PickImageFromGalleryViewAction;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction;", "()V", "equals", "", "other", "", "hashCode", "", "toString", "", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final /* data */ class PickImageFromGalleryViewAction extends NewIssueViewAction {
|
||||
public static final PickImageFromGalleryViewAction INSTANCE = new PickImageFromGalleryViewAction();
|
||||
|
||||
private PickImageFromGalleryViewAction() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return this == other || (other instanceof PickImageFromGalleryViewAction);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return -1137005557;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "PickImageFromGalleryViewAction";
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0007\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0086\b\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\t\u0010\u0007\u001a\u00020\u0003HÆ\u0003J\u0013\u0010\b\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\t\u001a\u00020\u00032\b\u0010\n\u001a\u0004\u0018\u00010\u000bHÖ\u0003J\t\u0010\f\u001a\u00020\rHÖ\u0001J\t\u0010\u000e\u001a\u00020\u000fHÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0010"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction$SetNotificationsEnabled;", "Lcom/adif/elcanomovil/uiAvisa/components/create/NewIssueViewAction;", "enabled", "", "(Z)V", "getEnabled", "()Z", "component1", "copy", "equals", "other", "", "hashCode", "", "toString", "", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final /* data */ class SetNotificationsEnabled extends NewIssueViewAction {
|
||||
private final boolean enabled;
|
||||
|
||||
public SetNotificationsEnabled(boolean z3) {
|
||||
super(null);
|
||||
this.enabled = z3;
|
||||
}
|
||||
|
||||
public static /* synthetic */ SetNotificationsEnabled copy$default(SetNotificationsEnabled setNotificationsEnabled, boolean z3, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
z3 = setNotificationsEnabled.enabled;
|
||||
}
|
||||
return setNotificationsEnabled.copy(z3);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final boolean getEnabled() {
|
||||
return this.enabled;
|
||||
}
|
||||
|
||||
public final SetNotificationsEnabled copy(boolean enabled) {
|
||||
return new SetNotificationsEnabled(enabled);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
return (other instanceof SetNotificationsEnabled) && this.enabled == ((SetNotificationsEnabled) other).enabled;
|
||||
}
|
||||
|
||||
public final boolean getEnabled() {
|
||||
return this.enabled;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return Boolean.hashCode(this.enabled);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "SetNotificationsEnabled(enabled=" + this.enabled + ')';
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ NewIssueViewAction(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
private NewIssueViewAction() {
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,11 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0080T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0002\u001a\u00020\u0001X\u0080T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0003\u001a\u00020\u0001X\u0080T¢\u0006\u0002\n\u0000¨\u0006\u0004"}, d2 = {"AVISA_CREATE_ISSUE", "", "AVISA_CREATE_ISSUE_WITHOUT_ACTION", "AVISA_PRE_CREATE_ISSUE", "ui-avisa_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class NewIssueViewModelKt {
|
||||
public static final String AVISA_CREATE_ISSUE = "create_avisa_issue";
|
||||
public static final String AVISA_CREATE_ISSUE_WITHOUT_ACTION = "create_avisa_issue_without_issue";
|
||||
public static final String AVISA_PRE_CREATE_ISSUE = "pre_create_avisa_issue";
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import android.content.Context;
|
||||
import c1.C0283c;
|
||||
import c1.C0284d;
|
||||
import com.adif.elcanomovil.domain.usecases.avisa.incidence.CreateIncidenceUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.avisa.station.GetAvisaStationCategoriesUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.avisa.station.GetAvisaStationsUseCase;
|
||||
import d1.InterfaceC0307a;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.qualifiers.ApplicationContext"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class NewIssueViewModel_Factory implements Factory<NewIssueViewModel> {
|
||||
private final Provider<InterfaceC0307a> appDispatcherProvider;
|
||||
private final Provider<Context> contextProvider;
|
||||
private final Provider<CreateIncidenceUseCase> createIncidenceUseCaseProvider;
|
||||
private final Provider<d1.e> fileUtilsProvider;
|
||||
private final Provider<GetAvisaStationCategoriesUseCase> getAvisaStationCategoriesUseCaseProvider;
|
||||
private final Provider<GetAvisaStationsUseCase> getStationsUseCaseProvider;
|
||||
private final Provider<C0283c> notificationsPermissionRequesterProvider;
|
||||
private final Provider<C0284d> permissionHelperProvider;
|
||||
|
||||
public NewIssueViewModel_Factory(Provider<CreateIncidenceUseCase> provider, Provider<GetAvisaStationsUseCase> provider2, Provider<GetAvisaStationCategoriesUseCase> provider3, Provider<Context> provider4, Provider<C0284d> provider5, Provider<InterfaceC0307a> provider6, Provider<d1.e> provider7, Provider<C0283c> provider8) {
|
||||
this.createIncidenceUseCaseProvider = provider;
|
||||
this.getStationsUseCaseProvider = provider2;
|
||||
this.getAvisaStationCategoriesUseCaseProvider = provider3;
|
||||
this.contextProvider = provider4;
|
||||
this.permissionHelperProvider = provider5;
|
||||
this.appDispatcherProvider = provider6;
|
||||
this.fileUtilsProvider = provider7;
|
||||
this.notificationsPermissionRequesterProvider = provider8;
|
||||
}
|
||||
|
||||
public static NewIssueViewModel_Factory create(Provider<CreateIncidenceUseCase> provider, Provider<GetAvisaStationsUseCase> provider2, Provider<GetAvisaStationCategoriesUseCase> provider3, Provider<Context> provider4, Provider<C0284d> provider5, Provider<InterfaceC0307a> provider6, Provider<d1.e> provider7, Provider<C0283c> provider8) {
|
||||
return new NewIssueViewModel_Factory(provider, provider2, provider3, provider4, provider5, provider6, provider7, provider8);
|
||||
}
|
||||
|
||||
public static NewIssueViewModel newInstance(CreateIncidenceUseCase createIncidenceUseCase, GetAvisaStationsUseCase getAvisaStationsUseCase, GetAvisaStationCategoriesUseCase getAvisaStationCategoriesUseCase, Context context, C0284d c0284d, InterfaceC0307a interfaceC0307a, d1.e eVar, C0283c c0283c) {
|
||||
return new NewIssueViewModel(createIncidenceUseCase, getAvisaStationsUseCase, getAvisaStationCategoriesUseCase, context, c0284d, interfaceC0307a, eVar, c0283c);
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public NewIssueViewModel get() {
|
||||
return newInstance(this.createIncidenceUseCaseProvider.get(), this.getStationsUseCaseProvider.get(), this.getAvisaStationCategoriesUseCaseProvider.get(), this.contextProvider.get(), this.permissionHelperProvider.get(), this.appDispatcherProvider.get(), this.fileUtilsProvider.get(), this.notificationsPermissionRequesterProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
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 = NewIssueViewModel.class)
|
||||
/* loaded from: classes.dex */
|
||||
public final class NewIssueViewModel_HiltModules {
|
||||
|
||||
@Module
|
||||
@InstallIn({ViewModelComponent.class})
|
||||
/* loaded from: classes.dex */
|
||||
public static abstract class BindsModule {
|
||||
private BindsModule() {
|
||||
}
|
||||
|
||||
@Binds
|
||||
@StringKey("com.adif.elcanomovil.uiAvisa.components.create.NewIssueViewModel")
|
||||
@HiltViewModelMap
|
||||
@IntoMap
|
||||
public abstract w0 binds(NewIssueViewModel newIssueViewModel);
|
||||
}
|
||||
|
||||
@Module
|
||||
@InstallIn({ActivityRetainedComponent.class})
|
||||
/* loaded from: classes.dex */
|
||||
public static final class KeyModule {
|
||||
private KeyModule() {
|
||||
}
|
||||
|
||||
@Provides
|
||||
@HiltViewModelMap.KeySet
|
||||
@IntoSet
|
||||
public static String provide() {
|
||||
return "com.adif.elcanomovil.uiAvisa.components.create.NewIssueViewModel";
|
||||
}
|
||||
}
|
||||
|
||||
private NewIssueViewModel_HiltModules() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import com.adif.elcanomovil.uiAvisa.components.create.NewIssueViewModel_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: classes.dex */
|
||||
public final class NewIssueViewModel_HiltModules_KeyModule_ProvideFactory implements Factory<String> {
|
||||
public static NewIssueViewModel_HiltModules_KeyModule_ProvideFactory create() {
|
||||
return z.f4876a;
|
||||
}
|
||||
|
||||
public static String provide() {
|
||||
return (String) Preconditions.checkNotNullFromProvides(NewIssueViewModel_HiltModules.KeyModule.provide());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public String get() {
|
||||
return provide();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import android.view.View;
|
||||
import android.widget.AdapterView;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final /* synthetic */ class a implements AdapterView.OnItemClickListener {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ int f4825a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueFragment f4826b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ List f4827c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ o2.e f4828d;
|
||||
|
||||
public /* synthetic */ a(NewIssueFragment newIssueFragment, List list, o2.e eVar, int i) {
|
||||
this.f4825a = i;
|
||||
this.f4826b = newIssueFragment;
|
||||
this.f4827c = list;
|
||||
this.f4828d = eVar;
|
||||
}
|
||||
|
||||
@Override // android.widget.AdapterView.OnItemClickListener
|
||||
public final void onItemClick(AdapterView adapterView, View view, int i, long j4) {
|
||||
switch (this.f4825a) {
|
||||
case 0:
|
||||
NewIssueFragment.promptCategoriesDialog$lambda$7(this.f4826b, this.f4827c, this.f4828d, adapterView, view, i, j4);
|
||||
return;
|
||||
default:
|
||||
NewIssueFragment.promptStationsDialog$lambda$10(this.f4826b, this.f4827c, this.f4828d, adapterView, view, i, j4);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,207 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import android.graphics.Bitmap;
|
||||
import com.adif.elcanomovil.commonViews.ButtonsEvents;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.AvisaStation;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.AvisaStationCategory;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.adif.elcanomovil.uiAvisa.databinding.FragmentAvisaNewBinding;
|
||||
import java.util.List;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class d extends Lambda implements Function1 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ int f4834a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueFragment f4835b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public /* synthetic */ d(NewIssueFragment newIssueFragment, int i) {
|
||||
super(1);
|
||||
this.f4834a = i;
|
||||
this.f4835b = newIssueFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding;
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding2;
|
||||
NewIssueViewModel viewModel;
|
||||
NewIssueViewModel viewModel2;
|
||||
NewIssueViewModel viewModel3;
|
||||
NewIssueViewModel viewModel4;
|
||||
NewIssueViewModel viewModel5;
|
||||
NewIssueViewModel viewModel6;
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding3;
|
||||
Unit unit;
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding4;
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding5;
|
||||
Unit unit2;
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding6;
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding7;
|
||||
Unit unit3;
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding8;
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding9;
|
||||
switch (this.f4834a) {
|
||||
case 0:
|
||||
AsyncResult asyncResult = (AsyncResult) obj;
|
||||
int i = NewIssueFragment$bindViewModel$10$WhenMappings.$EnumSwitchMapping$0[asyncResult.getStatus().ordinal()];
|
||||
NewIssueFragment newIssueFragment = this.f4835b;
|
||||
if (i == 1) {
|
||||
fragmentAvisaNewBinding = newIssueFragment.binding;
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding10 = null;
|
||||
if (fragmentAvisaNewBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaNewBinding = null;
|
||||
}
|
||||
fragmentAvisaNewBinding.createIssueCategory.setEnabled(true);
|
||||
fragmentAvisaNewBinding2 = newIssueFragment.binding;
|
||||
if (fragmentAvisaNewBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaNewBinding10 = fragmentAvisaNewBinding2;
|
||||
}
|
||||
fragmentAvisaNewBinding10.categoryButton.setEnabled(true);
|
||||
List<AvisaStationCategory> list = (List) asyncResult.getData();
|
||||
if (list != null) {
|
||||
viewModel = newIssueFragment.getViewModel();
|
||||
viewModel.setCategories(list);
|
||||
}
|
||||
} else if (i == 2) {
|
||||
viewModel2 = newIssueFragment.getViewModel();
|
||||
viewModel2.showErrorDialog();
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
case 1:
|
||||
if (NewIssueFragment$bindViewModel$11$WhenMappings.$EnumSwitchMapping$0[((AsyncResult) obj).getStatus().ordinal()] == 3) {
|
||||
viewModel3 = this.f4835b.getViewModel();
|
||||
viewModel3.showErrorDialog();
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
case 2:
|
||||
AsyncResult asyncResult2 = (AsyncResult) obj;
|
||||
if (asyncResult2 != null) {
|
||||
int i4 = NewIssueFragment$bindViewModel$12$WhenMappings.$EnumSwitchMapping$0[asyncResult2.getStatus().ordinal()];
|
||||
if (i4 != 1) {
|
||||
NewIssueFragment newIssueFragment2 = this.f4835b;
|
||||
if (i4 == 2) {
|
||||
newIssueFragment2.showProgress(8);
|
||||
System.out.println((Object) "issue created");
|
||||
viewModel4 = newIssueFragment2.getViewModel();
|
||||
viewModel4.issueCreated();
|
||||
} else if (i4 != 3) {
|
||||
System.out.println((Object) "Unknown error");
|
||||
viewModel6 = newIssueFragment2.getViewModel();
|
||||
viewModel6.showErrorDialog();
|
||||
} else {
|
||||
newIssueFragment2.showProgress(8);
|
||||
System.out.println(asyncResult2.getThrowable());
|
||||
viewModel5 = newIssueFragment2.getViewModel();
|
||||
viewModel5.showErrorDialog();
|
||||
}
|
||||
}
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
case 3:
|
||||
List<Bitmap> list2 = (List) obj;
|
||||
if (list2 != null) {
|
||||
fragmentAvisaNewBinding3 = this.f4835b.binding;
|
||||
if (fragmentAvisaNewBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaNewBinding3 = null;
|
||||
}
|
||||
fragmentAvisaNewBinding3.createIssueGrid.setImages(list2);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
case 4:
|
||||
AvisaStationCategory avisaStationCategory = (AvisaStationCategory) obj;
|
||||
NewIssueFragment newIssueFragment3 = this.f4835b;
|
||||
if (avisaStationCategory != null) {
|
||||
fragmentAvisaNewBinding5 = newIssueFragment3.binding;
|
||||
if (fragmentAvisaNewBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaNewBinding5 = null;
|
||||
}
|
||||
fragmentAvisaNewBinding5.createIssueCategory.setText(avisaStationCategory.getTitle());
|
||||
unit = Unit.INSTANCE;
|
||||
} else {
|
||||
unit = null;
|
||||
}
|
||||
if (unit == null) {
|
||||
fragmentAvisaNewBinding4 = newIssueFragment3.binding;
|
||||
if (fragmentAvisaNewBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaNewBinding4 = null;
|
||||
}
|
||||
fragmentAvisaNewBinding4.createIssueCategory.setText((CharSequence) null);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
case 5:
|
||||
AvisaStation avisaStation = (AvisaStation) obj;
|
||||
NewIssueFragment newIssueFragment4 = this.f4835b;
|
||||
if (avisaStation != null) {
|
||||
fragmentAvisaNewBinding7 = newIssueFragment4.binding;
|
||||
if (fragmentAvisaNewBinding7 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaNewBinding7 = null;
|
||||
}
|
||||
fragmentAvisaNewBinding7.createIssueStation.setText(avisaStation.getName());
|
||||
newIssueFragment4.requestCategories(avisaStation.getStId());
|
||||
unit2 = Unit.INSTANCE;
|
||||
} else {
|
||||
unit2 = null;
|
||||
}
|
||||
if (unit2 == null) {
|
||||
fragmentAvisaNewBinding6 = newIssueFragment4.binding;
|
||||
if (fragmentAvisaNewBinding6 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaNewBinding6 = null;
|
||||
}
|
||||
fragmentAvisaNewBinding6.createIssueStation.setText((CharSequence) null);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
case 6:
|
||||
Boolean bool = (Boolean) obj;
|
||||
NewIssueFragment newIssueFragment5 = this.f4835b;
|
||||
FragmentAvisaNewBinding fragmentAvisaNewBinding11 = null;
|
||||
if (bool != null) {
|
||||
boolean booleanValue = bool.booleanValue();
|
||||
fragmentAvisaNewBinding9 = newIssueFragment5.binding;
|
||||
if (fragmentAvisaNewBinding9 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaNewBinding9 = null;
|
||||
}
|
||||
fragmentAvisaNewBinding9.createIssueButton.setEnabled(booleanValue);
|
||||
unit3 = Unit.INSTANCE;
|
||||
} else {
|
||||
unit3 = null;
|
||||
}
|
||||
if (unit3 == null) {
|
||||
fragmentAvisaNewBinding8 = newIssueFragment5.binding;
|
||||
if (fragmentAvisaNewBinding8 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaNewBinding11 = fragmentAvisaNewBinding8;
|
||||
}
|
||||
fragmentAvisaNewBinding11.createIssueButton.setEnabled(false);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
case 7:
|
||||
ButtonsEvents it = (ButtonsEvents) obj;
|
||||
Intrinsics.checkNotNullParameter(it, "it");
|
||||
this.f4835b.requireActivity().onBackPressed();
|
||||
return Unit.INSTANCE;
|
||||
default:
|
||||
ButtonsEvents it2 = (ButtonsEvents) obj;
|
||||
Intrinsics.checkNotNullParameter(it2, "it");
|
||||
this.f4835b.requireActivity().onBackPressed();
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
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: classes.dex */
|
||||
public final class e extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4836a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueFragment f4837b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public e(NewIssueFragment newIssueFragment, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4837b = newIssueFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new e(this.f4837b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((e) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
NewIssueViewModel viewModel;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4836a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
NewIssueFragment newIssueFragment = this.f4837b;
|
||||
viewModel = newIssueFragment.getViewModel();
|
||||
Flow<Integer> messages = viewModel.getMessages();
|
||||
C1.b bVar = new C1.b(newIssueFragment, 7);
|
||||
this.f4836a = 1;
|
||||
if (messages.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,61 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import androidx.lifecycle.C;
|
||||
import androidx.lifecycle.q0;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class f extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4838a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueFragment f4839b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public f(NewIssueFragment newIssueFragment, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4839b = newIssueFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new f(this.f4839b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((f) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4838a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
NewIssueFragment newIssueFragment = this.f4839b;
|
||||
C lifecycle = newIssueFragment.getLifecycle();
|
||||
Intrinsics.checkNotNullExpressionValue(lifecycle, "<get-lifecycle>(...)");
|
||||
e eVar = new e(newIssueFragment, null);
|
||||
this.f4838a = 1;
|
||||
if (q0.l(lifecycle, eVar, 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,160 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import a.AbstractC0106b;
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.NavigationHandler;
|
||||
import com.adif.elcanomovil.uiAvisa.components.create.NavigateTo;
|
||||
import d.AbstractC0294c;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import kotlin.TuplesKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.ArraysKt;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
import o0.AbstractC0544v;
|
||||
import o0.C0522B;
|
||||
import o0.C0523C;
|
||||
import o0.D;
|
||||
import o0.E;
|
||||
import o0.H;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class g implements FlowCollector {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueFragment f4840a;
|
||||
|
||||
public g(NewIssueFragment newIssueFragment) {
|
||||
this.f4840a = newIssueFragment;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
public final Object emit(Object obj, Continuation continuation) {
|
||||
Intent intent;
|
||||
AbstractC0294c abstractC0294c;
|
||||
NavigateTo navigateTo = (NavigateTo) obj;
|
||||
boolean z3 = navigateTo instanceof NavigateTo.RegularNavigation;
|
||||
NewIssueFragment newIssueFragment = this.f4840a;
|
||||
if (z3) {
|
||||
new NavigationHandler(newIssueFragment).invoke2(((NavigateTo.RegularNavigation) navigateTo).getNavigation());
|
||||
} else if (navigateTo instanceof NavigateTo.EditPicture) {
|
||||
NavigateTo.EditPicture editPicture = (NavigateTo.EditPicture) navigateTo;
|
||||
newIssueFragment.editPicture(editPicture.getPosition(), editPicture.getPictureContent());
|
||||
} else if (Intrinsics.areEqual(navigateTo, NavigateTo.PickPicture.INSTANCE)) {
|
||||
newIssueFragment.promptPickPictureDialog();
|
||||
} else if (navigateTo instanceof NavigateTo.PickImageFromCamera) {
|
||||
newIssueFragment.takePhoto(((NavigateTo.PickImageFromCamera) navigateTo).getImageUri());
|
||||
} else if (Intrinsics.areEqual(navigateTo, NavigateTo.PickImageFromGallery.INSTANCE)) {
|
||||
newIssueFragment.selectImageInAlbum();
|
||||
} else if (Intrinsics.areEqual(navigateTo, NavigateTo.AskForCameraPermission.INSTANCE)) {
|
||||
abstractC0294c = newIssueFragment.requestCameraPermissions;
|
||||
abstractC0294c.a(new String[]{"android.permission.CAMERA"});
|
||||
} else if (Intrinsics.areEqual(navigateTo, NavigateTo.NavigateUp.INSTANCE)) {
|
||||
AbstractC0544v n4 = m3.l.n(newIssueFragment);
|
||||
if (n4.h() == 1) {
|
||||
Activity activity = n4.f8049b;
|
||||
Bundle extras = (activity == null || (intent = activity.getIntent()) == null) ? null : intent.getExtras();
|
||||
if ((extras != null ? extras.getIntArray("android-support-nav:controller:deepLinkIds") : null) == null) {
|
||||
E g4 = n4.g();
|
||||
Intrinsics.checkNotNull(g4);
|
||||
int i = g4.h;
|
||||
H h = g4.f7921b;
|
||||
while (true) {
|
||||
if (h == null) {
|
||||
break;
|
||||
}
|
||||
if (h.f7932l != i) {
|
||||
Bundle bundle = new Bundle();
|
||||
if (activity != null) {
|
||||
Intrinsics.checkNotNull(activity);
|
||||
if (activity.getIntent() != null) {
|
||||
Intrinsics.checkNotNull(activity);
|
||||
if (activity.getIntent().getData() != null) {
|
||||
Intrinsics.checkNotNull(activity);
|
||||
bundle.putParcelable("android-support-nav:controller:deepLinkIntent", activity.getIntent());
|
||||
H h4 = n4.f8050c;
|
||||
Intrinsics.checkNotNull(h4);
|
||||
Intrinsics.checkNotNull(activity);
|
||||
Intent intent2 = activity.getIntent();
|
||||
Intrinsics.checkNotNullExpressionValue(intent2, "activity!!.intent");
|
||||
D g5 = h4.g(new C0523C(intent2));
|
||||
if (g5 != null) {
|
||||
bundle.putAll(g5.f7914a.b(g5.f7915b));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
A.j jVar = new A.j(n4);
|
||||
int i4 = h.h;
|
||||
ArrayList arrayList = (ArrayList) jVar.f29c;
|
||||
arrayList.clear();
|
||||
arrayList.add(new C0522B(i4, null));
|
||||
if (((H) jVar.f30d) != null) {
|
||||
jVar.r();
|
||||
}
|
||||
((Intent) jVar.f28b).putExtra("android-support-nav:controller:deepLinkExtras", bundle);
|
||||
jVar.b().b();
|
||||
if (activity != null) {
|
||||
activity.finish();
|
||||
}
|
||||
} else {
|
||||
i = h.h;
|
||||
h = h.f7921b;
|
||||
}
|
||||
}
|
||||
} else if (n4.f8053f) {
|
||||
Intrinsics.checkNotNull(activity);
|
||||
Intent intent3 = activity.getIntent();
|
||||
Bundle extras2 = intent3.getExtras();
|
||||
Intrinsics.checkNotNull(extras2);
|
||||
int[] intArray = extras2.getIntArray("android-support-nav:controller:deepLinkIds");
|
||||
Intrinsics.checkNotNull(intArray);
|
||||
List<Integer> mutableList = ArraysKt.toMutableList(intArray);
|
||||
ArrayList parcelableArrayList = extras2.getParcelableArrayList("android-support-nav:controller:deepLinkArgs");
|
||||
int intValue = ((Number) CollectionsKt.removeLast(mutableList)).intValue();
|
||||
if (parcelableArrayList != null) {
|
||||
}
|
||||
if (!mutableList.isEmpty()) {
|
||||
E e4 = AbstractC0544v.e(n4.i(), intValue);
|
||||
if (e4 instanceof H) {
|
||||
int i5 = H.f7930n;
|
||||
intValue = AbstractC0106b.h((H) e4).h;
|
||||
}
|
||||
E g6 = n4.g();
|
||||
if (g6 != null && intValue == g6.h) {
|
||||
A.j jVar2 = new A.j(n4);
|
||||
Bundle b4 = AbstractC0106b.b(TuplesKt.to("android-support-nav:controller:deepLinkIntent", intent3));
|
||||
Bundle bundle2 = extras2.getBundle("android-support-nav:controller:deepLinkExtras");
|
||||
if (bundle2 != null) {
|
||||
b4.putAll(bundle2);
|
||||
}
|
||||
((Intent) jVar2.f28b).putExtra("android-support-nav:controller:deepLinkExtras", b4);
|
||||
int i6 = 0;
|
||||
for (Object obj2 : mutableList) {
|
||||
int i7 = i6 + 1;
|
||||
if (i6 < 0) {
|
||||
CollectionsKt.throwIndexOverflow();
|
||||
}
|
||||
((ArrayList) jVar2.f29c).add(new C0522B(((Number) obj2).intValue(), parcelableArrayList != null ? (Bundle) parcelableArrayList.get(i6) : null));
|
||||
if (((H) jVar2.f30d) != null) {
|
||||
jVar2.r();
|
||||
}
|
||||
i6 = i7;
|
||||
}
|
||||
jVar2.b().b();
|
||||
activity.finish();
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
n4.q();
|
||||
}
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
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: classes.dex */
|
||||
public final class h extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4841a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueFragment f4842b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public h(NewIssueFragment newIssueFragment, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4842b = newIssueFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new h(this.f4842b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((h) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
NewIssueViewModel viewModel;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4841a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
NewIssueFragment newIssueFragment = this.f4842b;
|
||||
viewModel = newIssueFragment.getViewModel();
|
||||
Flow<NavigateTo> navigation = viewModel.getNavigation();
|
||||
g gVar = new g(newIssueFragment);
|
||||
this.f4841a = 1;
|
||||
if (navigation.collect(gVar, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import androidx.lifecycle.J;
|
||||
import androidx.lifecycle.q0;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class i extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4843a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueFragment f4844b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public i(NewIssueFragment newIssueFragment, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4844b = newIssueFragment;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new i(this.f4844b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((i) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4843a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
NewIssueFragment newIssueFragment = this.f4844b;
|
||||
J viewLifecycleOwner = newIssueFragment.getViewLifecycleOwner();
|
||||
Intrinsics.checkNotNullExpressionValue(viewLifecycleOwner, "getViewLifecycleOwner(...)");
|
||||
h hVar = new h(newIssueFragment, null);
|
||||
this.f4843a = 1;
|
||||
Object l4 = q0.l(viewLifecycleOwner.getLifecycle(), hVar, this);
|
||||
if (l4 != IntrinsicsKt.getCOROUTINE_SUSPENDED()) {
|
||||
l4 = Unit.INSTANCE;
|
||||
}
|
||||
if (l4 == 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,18 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertAction;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.FunctionReferenceImpl;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final /* synthetic */ class j extends FunctionReferenceImpl implements Function1 {
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
AlertAction.Style p02 = (AlertAction.Style) obj;
|
||||
Intrinsics.checkNotNullParameter(p02, "p0");
|
||||
((NewIssueFragment) this.receiver).creationInfoDialogDismissed(p02);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertAction;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.FunctionReferenceImpl;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final /* synthetic */ class k extends FunctionReferenceImpl implements Function1 {
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
AlertAction.Style p02 = (AlertAction.Style) obj;
|
||||
Intrinsics.checkNotNullParameter(p02, "p0");
|
||||
((NewIssueFragment) this.receiver).handlePreMandatoryUpdateAlertResult(p02);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,166 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import androidx.lifecycle.Y;
|
||||
import kotlin.Function;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.FunctionAdapter;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final /* synthetic */ class l implements Y, FunctionAdapter {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ int f4845a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ Lambda f4846b;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public l(int i, Function1 function) {
|
||||
this.f4845a = i;
|
||||
switch (i) {
|
||||
case 1:
|
||||
Intrinsics.checkNotNullParameter(function, "function");
|
||||
this.f4846b = (Lambda) function;
|
||||
return;
|
||||
case 2:
|
||||
Intrinsics.checkNotNullParameter(function, "function");
|
||||
this.f4846b = (Lambda) function;
|
||||
return;
|
||||
case 3:
|
||||
Intrinsics.checkNotNullParameter(function, "function");
|
||||
this.f4846b = (Lambda) function;
|
||||
return;
|
||||
case 4:
|
||||
Intrinsics.checkNotNullParameter(function, "function");
|
||||
this.f4846b = (Lambda) function;
|
||||
return;
|
||||
case 5:
|
||||
Intrinsics.checkNotNullParameter(function, "function");
|
||||
this.f4846b = (Lambda) function;
|
||||
return;
|
||||
case 6:
|
||||
Intrinsics.checkNotNullParameter(function, "function");
|
||||
this.f4846b = (Lambda) function;
|
||||
return;
|
||||
default:
|
||||
Intrinsics.checkNotNullParameter(function, "function");
|
||||
this.f4846b = (Lambda) function;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
public final boolean equals(Object obj) {
|
||||
switch (this.f4845a) {
|
||||
case 0:
|
||||
if (!(obj instanceof Y) || !(obj instanceof FunctionAdapter)) {
|
||||
return false;
|
||||
}
|
||||
return Intrinsics.areEqual(this.f4846b, ((FunctionAdapter) obj).getFunctionDelegate());
|
||||
case 1:
|
||||
if (!(obj instanceof Y) || !(obj instanceof FunctionAdapter)) {
|
||||
return false;
|
||||
}
|
||||
return Intrinsics.areEqual(this.f4846b, ((FunctionAdapter) obj).getFunctionDelegate());
|
||||
case 2:
|
||||
if (!(obj instanceof Y) || !(obj instanceof FunctionAdapter)) {
|
||||
return false;
|
||||
}
|
||||
return Intrinsics.areEqual(this.f4846b, ((FunctionAdapter) obj).getFunctionDelegate());
|
||||
case 3:
|
||||
if (!(obj instanceof Y) || !(obj instanceof FunctionAdapter)) {
|
||||
return false;
|
||||
}
|
||||
return Intrinsics.areEqual(this.f4846b, ((FunctionAdapter) obj).getFunctionDelegate());
|
||||
case 4:
|
||||
if (!(obj instanceof Y) || !(obj instanceof FunctionAdapter)) {
|
||||
return false;
|
||||
}
|
||||
return Intrinsics.areEqual(this.f4846b, ((FunctionAdapter) obj).getFunctionDelegate());
|
||||
case 5:
|
||||
if (!(obj instanceof Y) || !(obj instanceof FunctionAdapter)) {
|
||||
return false;
|
||||
}
|
||||
return Intrinsics.areEqual(this.f4846b, ((FunctionAdapter) obj).getFunctionDelegate());
|
||||
default:
|
||||
if (!(obj instanceof Y) || !(obj instanceof FunctionAdapter)) {
|
||||
return false;
|
||||
}
|
||||
return Intrinsics.areEqual(this.f4846b, ((FunctionAdapter) obj).getFunctionDelegate());
|
||||
}
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.FunctionAdapter
|
||||
public final Function getFunctionDelegate() {
|
||||
switch (this.f4845a) {
|
||||
case 0:
|
||||
return this.f4846b;
|
||||
case 1:
|
||||
return this.f4846b;
|
||||
case 2:
|
||||
return this.f4846b;
|
||||
case 3:
|
||||
return this.f4846b;
|
||||
case 4:
|
||||
return this.f4846b;
|
||||
case 5:
|
||||
return this.f4846b;
|
||||
default:
|
||||
return this.f4846b;
|
||||
}
|
||||
}
|
||||
|
||||
public final int hashCode() {
|
||||
switch (this.f4845a) {
|
||||
case 0:
|
||||
return this.f4846b.hashCode();
|
||||
case 1:
|
||||
return this.f4846b.hashCode();
|
||||
case 2:
|
||||
return this.f4846b.hashCode();
|
||||
case 3:
|
||||
return this.f4846b.hashCode();
|
||||
case 4:
|
||||
return this.f4846b.hashCode();
|
||||
case 5:
|
||||
return this.f4846b.hashCode();
|
||||
default:
|
||||
return this.f4846b.hashCode();
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r1v1, types: [kotlin.jvm.functions.Function1, kotlin.jvm.internal.Lambda] */
|
||||
/* JADX WARN: Type inference failed for: r1v2, types: [kotlin.jvm.functions.Function1, kotlin.jvm.internal.Lambda] */
|
||||
/* JADX WARN: Type inference failed for: r1v3, types: [kotlin.jvm.functions.Function1, kotlin.jvm.internal.Lambda] */
|
||||
/* JADX WARN: Type inference failed for: r1v4, types: [kotlin.jvm.functions.Function1, kotlin.jvm.internal.Lambda] */
|
||||
/* JADX WARN: Type inference failed for: r1v5, types: [kotlin.jvm.functions.Function1, kotlin.jvm.internal.Lambda] */
|
||||
/* JADX WARN: Type inference failed for: r1v6, types: [kotlin.jvm.functions.Function1, kotlin.jvm.internal.Lambda] */
|
||||
/* JADX WARN: Type inference failed for: r1v7, types: [kotlin.jvm.functions.Function1, kotlin.jvm.internal.Lambda] */
|
||||
@Override // androidx.lifecycle.Y
|
||||
public final /* synthetic */ void onChanged(Object obj) {
|
||||
switch (this.f4845a) {
|
||||
case 0:
|
||||
this.f4846b.invoke(obj);
|
||||
return;
|
||||
case 1:
|
||||
this.f4846b.invoke(obj);
|
||||
return;
|
||||
case 2:
|
||||
this.f4846b.invoke(obj);
|
||||
return;
|
||||
case 3:
|
||||
this.f4846b.invoke(obj);
|
||||
return;
|
||||
case 4:
|
||||
this.f4846b.invoke(obj);
|
||||
return;
|
||||
case 5:
|
||||
this.f4846b.invoke(obj);
|
||||
return;
|
||||
default:
|
||||
this.f4846b.invoke(obj);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcelable;
|
||||
import com.adif.elcanomovil.commonNavGraph.R;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertActions;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertType;
|
||||
import java.io.Serializable;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import o0.F;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class m implements F {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final boolean f4847a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final boolean f4848b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final String f4849c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final String f4850d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final AlertActions f4851e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final AlertType f4852f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final int f4853g;
|
||||
|
||||
public m(boolean z3, boolean z4, String title, String message, AlertActions actions, AlertType type) {
|
||||
Intrinsics.checkNotNullParameter(title, "title");
|
||||
Intrinsics.checkNotNullParameter(message, "message");
|
||||
Intrinsics.checkNotNullParameter(actions, "actions");
|
||||
Intrinsics.checkNotNullParameter(type, "type");
|
||||
this.f4847a = z3;
|
||||
this.f4848b = z4;
|
||||
this.f4849c = title;
|
||||
this.f4850d = message;
|
||||
this.f4851e = actions;
|
||||
this.f4852f = type;
|
||||
this.f4853g = R.id.action_global_alertDialog;
|
||||
}
|
||||
|
||||
public final boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof m)) {
|
||||
return false;
|
||||
}
|
||||
m mVar = (m) obj;
|
||||
return this.f4847a == mVar.f4847a && this.f4848b == mVar.f4848b && Intrinsics.areEqual(this.f4849c, mVar.f4849c) && Intrinsics.areEqual(this.f4850d, mVar.f4850d) && Intrinsics.areEqual(this.f4851e, mVar.f4851e) && this.f4852f == mVar.f4852f;
|
||||
}
|
||||
|
||||
@Override // o0.F
|
||||
public final int getActionId() {
|
||||
return this.f4853g;
|
||||
}
|
||||
|
||||
@Override // o0.F
|
||||
public final Bundle getArguments() {
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putBoolean("blockOnback", this.f4847a);
|
||||
bundle.putBoolean("isCancelable", this.f4848b);
|
||||
bundle.putString("title", this.f4849c);
|
||||
bundle.putString("message", this.f4850d);
|
||||
boolean isAssignableFrom = Parcelable.class.isAssignableFrom(AlertActions.class);
|
||||
Serializable serializable = this.f4851e;
|
||||
if (isAssignableFrom) {
|
||||
Intrinsics.checkNotNull(serializable, "null cannot be cast to non-null type android.os.Parcelable");
|
||||
bundle.putParcelable("actions", (Parcelable) serializable);
|
||||
} else {
|
||||
if (!Serializable.class.isAssignableFrom(AlertActions.class)) {
|
||||
throw new UnsupportedOperationException(AlertActions.class.getName().concat(" must implement Parcelable or Serializable or must be an Enum."));
|
||||
}
|
||||
Intrinsics.checkNotNull(serializable, "null cannot be cast to non-null type java.io.Serializable");
|
||||
bundle.putSerializable("actions", serializable);
|
||||
}
|
||||
boolean isAssignableFrom2 = Parcelable.class.isAssignableFrom(AlertType.class);
|
||||
Serializable serializable2 = this.f4852f;
|
||||
if (isAssignableFrom2) {
|
||||
Intrinsics.checkNotNull(serializable2, "null cannot be cast to non-null type android.os.Parcelable");
|
||||
bundle.putParcelable("type", (Parcelable) serializable2);
|
||||
return bundle;
|
||||
}
|
||||
if (!Serializable.class.isAssignableFrom(AlertType.class)) {
|
||||
throw new UnsupportedOperationException(AlertType.class.getName().concat(" must implement Parcelable or Serializable or must be an Enum."));
|
||||
}
|
||||
Intrinsics.checkNotNull(serializable2, "null cannot be cast to non-null type java.io.Serializable");
|
||||
bundle.putSerializable("type", serializable2);
|
||||
return bundle;
|
||||
}
|
||||
|
||||
public final int hashCode() {
|
||||
return this.f4852f.hashCode() + ((this.f4851e.hashCode() + com.google.android.gms.measurement.internal.a.d(this.f4850d, com.google.android.gms.measurement.internal.a.d(this.f4849c, C.w.c(Boolean.hashCode(this.f4847a) * 31, 31, this.f4848b), 31), 31)) * 31);
|
||||
}
|
||||
|
||||
public final String toString() {
|
||||
return "ActionGlobalAlertDialog(blockOnback=" + this.f4847a + ", isCancelable=" + this.f4848b + ", title=" + this.f4849c + ", message=" + this.f4850d + ", actions=" + this.f4851e + ", type=" + this.f4852f + ')';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import android.media.MediaScannerConnection;
|
||||
import android.net.Uri;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final /* synthetic */ class n implements MediaScannerConnection.OnScanCompletedListener {
|
||||
@Override // android.media.MediaScannerConnection.OnScanCompletedListener
|
||||
public final void onScanCompleted(String str, Uri uri) {
|
||||
NewIssueViewModel.galleryAddPic$lambda$8(str, uri);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import androidx.lifecycle.W;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.adif.elcanomovil.domain.entities.utils.Status;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.TypeIntrinsics;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class o implements FlowCollector {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ int f4854a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueViewModel f4855b;
|
||||
|
||||
public /* synthetic */ o(NewIssueViewModel newIssueViewModel, int i) {
|
||||
this.f4854a = i;
|
||||
this.f4855b = newIssueViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
public final Object emit(Object obj, Continuation continuation) {
|
||||
W w3;
|
||||
W w4;
|
||||
W w5;
|
||||
switch (this.f4854a) {
|
||||
case 0:
|
||||
w3 = this.f4855b._resultCreateIncidence;
|
||||
w3.k((AsyncResult) obj);
|
||||
return Unit.INSTANCE;
|
||||
case 1:
|
||||
w4 = this.f4855b._listCategories;
|
||||
w4.k((AsyncResult) obj);
|
||||
return Unit.INSTANCE;
|
||||
default:
|
||||
AsyncResult asyncResult = (AsyncResult) obj;
|
||||
NewIssueViewModel newIssueViewModel = this.f4855b;
|
||||
w5 = newIssueViewModel._avisaStationList;
|
||||
w5.k(asyncResult);
|
||||
if (asyncResult.getStatus() == Status.SUCCESS) {
|
||||
Object data = asyncResult.getData();
|
||||
Intrinsics.checkNotNull(data, "null cannot be cast to non-null type kotlin.collections.MutableList<com.adif.elcanomovil.domain.entities.avisa.AvisaStation>");
|
||||
newIssueViewModel.avistaStations = TypeIntrinsics.asMutableList(data);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceNotificationType;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class p extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4856a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueViewModel f4857b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ IncidenceNotificationType f4858c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public p(NewIssueViewModel newIssueViewModel, IncidenceNotificationType incidenceNotificationType, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4857b = newIssueViewModel;
|
||||
this.f4858c = incidenceNotificationType;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new p(this.f4857b, this.f4858c, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((p) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:13:0x007e, code lost:
|
||||
|
||||
if (((kotlinx.coroutines.flow.Flow) r12).collect(r11, r10) == r0) goto L15;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x0080, code lost:
|
||||
|
||||
return r0;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:16:0x006d, code lost:
|
||||
|
||||
if (r12 == r0) goto L15;
|
||||
*/
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r12) {
|
||||
/*
|
||||
r11 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r11.f4856a
|
||||
com.adif.elcanomovil.uiAvisa.components.create.NewIssueViewModel r2 = r11.f4857b
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r1 == 0) goto L21
|
||||
if (r1 == r4) goto L1c
|
||||
if (r1 != r3) goto L14
|
||||
kotlin.ResultKt.throwOnFailure(r12)
|
||||
goto L81
|
||||
L14:
|
||||
java.lang.IllegalStateException r11 = new java.lang.IllegalStateException
|
||||
java.lang.String r12 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r11.<init>(r12)
|
||||
throw r11
|
||||
L1c:
|
||||
kotlin.ResultKt.throwOnFailure(r12)
|
||||
r10 = r11
|
||||
goto L70
|
||||
L21:
|
||||
kotlin.ResultKt.throwOnFailure(r12)
|
||||
r12 = r4
|
||||
com.adif.elcanomovil.domain.usecases.avisa.incidence.CreateIncidenceUseCase r4 = com.adif.elcanomovil.uiAvisa.components.create.NewIssueViewModel.access$getCreateIncidenceUseCase$p(r2)
|
||||
androidx.lifecycle.X r1 = com.adif.elcanomovil.uiAvisa.components.create.NewIssueViewModel.access$getSelectedCategory$p(r2)
|
||||
java.lang.Object r1 = r1.d()
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNull(r1)
|
||||
com.adif.elcanomovil.domain.entities.avisa.AvisaStationCategory r1 = (com.adif.elcanomovil.domain.entities.avisa.AvisaStationCategory) r1
|
||||
java.lang.String r5 = r1.getCatId()
|
||||
java.lang.StringBuilder r1 = new java.lang.StringBuilder
|
||||
r1.<init>()
|
||||
java.lang.String r6 = com.adif.elcanomovil.uiAvisa.components.create.NewIssueViewModel.access$getIssueDescription$p(r2)
|
||||
r1.append(r6)
|
||||
r6 = 10
|
||||
r1.append(r6)
|
||||
java.lang.String r6 = r1.toString()
|
||||
androidx.lifecycle.X r1 = com.adif.elcanomovil.uiAvisa.components.create.NewIssueViewModel.access$getSelectedStation$p(r2)
|
||||
java.lang.Object r1 = r1.d()
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNull(r1)
|
||||
com.adif.elcanomovil.domain.entities.avisa.AvisaStation r1 = (com.adif.elcanomovil.domain.entities.avisa.AvisaStation) r1
|
||||
java.lang.String r8 = r1.getStId()
|
||||
java.util.List r9 = com.adif.elcanomovil.uiAvisa.components.create.NewIssueViewModel.access$getPictures$p(r2)
|
||||
r11.f4856a = r12
|
||||
com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceNotificationType r7 = r11.f4858c
|
||||
r10 = r11
|
||||
java.lang.Object r12 = r4.invoke(r5, r6, r7, r8, r9, r10)
|
||||
if (r12 != r0) goto L70
|
||||
goto L80
|
||||
L70:
|
||||
kotlinx.coroutines.flow.Flow r12 = (kotlinx.coroutines.flow.Flow) r12
|
||||
com.adif.elcanomovil.uiAvisa.components.create.o r11 = new com.adif.elcanomovil.uiAvisa.components.create.o
|
||||
r1 = 0
|
||||
r11.<init>(r2, r1)
|
||||
r10.f4856a = r3
|
||||
java.lang.Object r11 = r12.collect(r11, r10)
|
||||
if (r11 != r0) goto L81
|
||||
L80:
|
||||
return r0
|
||||
L81:
|
||||
kotlin.Unit r11 = kotlin.Unit.INSTANCE
|
||||
return r11
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiAvisa.components.create.p.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceNotificationType;
|
||||
import d1.InterfaceC0307a;
|
||||
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.BuildersKt;
|
||||
import kotlinx.coroutines.CoroutineDispatcher;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class q extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4859a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ boolean f4860b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueViewModel f4861c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public q(boolean z3, NewIssueViewModel newIssueViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4860b = z3;
|
||||
this.f4861c = newIssueViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new q(this.f4860b, this.f4861c, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((q) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
InterfaceC0307a interfaceC0307a;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4859a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
IncidenceNotificationType incidenceNotificationType = this.f4860b ? IncidenceNotificationType.NOTIFICATION_TYPE_PUSH_NOTIFICATION : IncidenceNotificationType.NOT_USED;
|
||||
NewIssueViewModel newIssueViewModel = this.f4861c;
|
||||
interfaceC0307a = newIssueViewModel.appDispatcher;
|
||||
((d1.d) interfaceC0307a).getClass();
|
||||
CoroutineDispatcher io = Dispatchers.getIO();
|
||||
p pVar = new p(newIssueViewModel, incidenceNotificationType, null);
|
||||
this.f4859a = 1;
|
||||
if (BuildersKt.withContext(io, pVar, 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,100 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class r extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4862a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueViewModel f4863b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4864c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public r(NewIssueViewModel newIssueViewModel, String str, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4863b = newIssueViewModel;
|
||||
this.f4864c = str;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new r(this.f4863b, this.f4864c, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((r) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:13:0x0040, code lost:
|
||||
|
||||
if (((kotlinx.coroutines.flow.Flow) r6).collect(r1, r5) == r0) goto L15;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x0042, code lost:
|
||||
|
||||
return r0;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:16:0x002f, code lost:
|
||||
|
||||
if (r6 == r0) goto L15;
|
||||
*/
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r6) {
|
||||
/*
|
||||
r5 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r5.f4862a
|
||||
com.adif.elcanomovil.uiAvisa.components.create.NewIssueViewModel r2 = r5.f4863b
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r1 == 0) goto L20
|
||||
if (r1 == r4) goto L1c
|
||||
if (r1 != r3) goto L14
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L43
|
||||
L14:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L1c:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L32
|
||||
L20:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
com.adif.elcanomovil.domain.usecases.avisa.station.GetAvisaStationCategoriesUseCase r6 = com.adif.elcanomovil.uiAvisa.components.create.NewIssueViewModel.access$getGetAvisaStationCategoriesUseCase$p(r2)
|
||||
r5.f4862a = r4
|
||||
java.lang.String r1 = r5.f4864c
|
||||
java.lang.Object r6 = r6.invoke(r1, r5)
|
||||
if (r6 != r0) goto L32
|
||||
goto L42
|
||||
L32:
|
||||
kotlinx.coroutines.flow.Flow r6 = (kotlinx.coroutines.flow.Flow) r6
|
||||
com.adif.elcanomovil.uiAvisa.components.create.o r1 = new com.adif.elcanomovil.uiAvisa.components.create.o
|
||||
r4 = 1
|
||||
r1.<init>(r2, r4)
|
||||
r5.f4862a = r3
|
||||
java.lang.Object r5 = r6.collect(r1, r5)
|
||||
if (r5 != r0) goto L43
|
||||
L42:
|
||||
return r0
|
||||
L43:
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiAvisa.components.create.r.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import d1.InterfaceC0307a;
|
||||
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.BuildersKt;
|
||||
import kotlinx.coroutines.CoroutineDispatcher;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class s extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4865a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueViewModel f4866b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4867c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public s(NewIssueViewModel newIssueViewModel, String str, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4866b = newIssueViewModel;
|
||||
this.f4867c = str;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new s(this.f4866b, this.f4867c, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((s) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
InterfaceC0307a interfaceC0307a;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4865a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
NewIssueViewModel newIssueViewModel = this.f4866b;
|
||||
interfaceC0307a = newIssueViewModel.appDispatcher;
|
||||
((d1.d) interfaceC0307a).getClass();
|
||||
CoroutineDispatcher io = Dispatchers.getIO();
|
||||
r rVar = new r(newIssueViewModel, this.f4867c, null);
|
||||
this.f4865a = 1;
|
||||
if (BuildersKt.withContext(io, rVar, 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,95 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class t extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4868a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueViewModel f4869b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public t(NewIssueViewModel newIssueViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4869b = newIssueViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new t(this.f4869b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((t) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:13:0x003e, code lost:
|
||||
|
||||
if (((kotlinx.coroutines.flow.Flow) r6).collect(r1, r5) == r0) goto L15;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x0040, code lost:
|
||||
|
||||
return r0;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:16:0x002d, code lost:
|
||||
|
||||
if (r6 == r0) goto L15;
|
||||
*/
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r6) {
|
||||
/*
|
||||
r5 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r5.f4868a
|
||||
com.adif.elcanomovil.uiAvisa.components.create.NewIssueViewModel r2 = r5.f4869b
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r1 == 0) goto L20
|
||||
if (r1 == r4) goto L1c
|
||||
if (r1 != r3) goto L14
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L41
|
||||
L14:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L1c:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L30
|
||||
L20:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
com.adif.elcanomovil.domain.usecases.avisa.station.GetAvisaStationsUseCase r6 = com.adif.elcanomovil.uiAvisa.components.create.NewIssueViewModel.access$getGetStationsUseCase$p(r2)
|
||||
r5.f4868a = r4
|
||||
java.lang.Object r6 = r6.invoke(r5)
|
||||
if (r6 != r0) goto L30
|
||||
goto L40
|
||||
L30:
|
||||
kotlinx.coroutines.flow.Flow r6 = (kotlinx.coroutines.flow.Flow) r6
|
||||
com.adif.elcanomovil.uiAvisa.components.create.o r1 = new com.adif.elcanomovil.uiAvisa.components.create.o
|
||||
r4 = 2
|
||||
r1.<init>(r2, r4)
|
||||
r5.f4868a = r3
|
||||
java.lang.Object r5 = r6.collect(r1, r5)
|
||||
if (r5 != r0) goto L41
|
||||
L40:
|
||||
return r0
|
||||
L41:
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiAvisa.components.create.t.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import d1.InterfaceC0307a;
|
||||
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.BuildersKt;
|
||||
import kotlinx.coroutines.CoroutineDispatcher;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class u extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4870a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueViewModel f4871b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public u(NewIssueViewModel newIssueViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4871b = newIssueViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new u(this.f4871b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((u) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
InterfaceC0307a interfaceC0307a;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4870a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
NewIssueViewModel newIssueViewModel = this.f4871b;
|
||||
interfaceC0307a = newIssueViewModel.appDispatcher;
|
||||
((d1.d) interfaceC0307a).getClass();
|
||||
CoroutineDispatcher io = Dispatchers.getIO();
|
||||
t tVar = new t(newIssueViewModel, null);
|
||||
this.f4870a = 1;
|
||||
if (BuildersKt.withContext(io, tVar, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertAction;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertActions;
|
||||
import com.adif.elcanomovil.uiAvisa.R;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class v extends Lambda implements Function0 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueViewModel f4872a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public v(NewIssueViewModel newIssueViewModel) {
|
||||
super(0);
|
||||
this.f4872a = newIssueViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Object invoke() {
|
||||
Context context;
|
||||
Context context2;
|
||||
NewIssueViewModel newIssueViewModel = this.f4872a;
|
||||
context = newIssueViewModel.context;
|
||||
String string = context.getString(R.string.dialog_action_accept);
|
||||
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
|
||||
AlertAction alertAction = new AlertAction(string, AlertAction.Style.POSITIVE);
|
||||
context2 = newIssueViewModel.context;
|
||||
String string2 = context2.getString(R.string.create_issue_confirmation_negative);
|
||||
Intrinsics.checkNotNullExpressionValue(string2, "getString(...)");
|
||||
return new AlertActions(NewIssueViewModelKt.AVISA_PRE_CREATE_ISSUE, alertAction, new AlertAction(string2, AlertAction.Style.NEGATIVE));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertAction;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertActions;
|
||||
import com.adif.elcanomovil.uiAvisa.R;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class w extends Lambda implements Function0 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueViewModel f4873a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public w(NewIssueViewModel newIssueViewModel) {
|
||||
super(0);
|
||||
this.f4873a = newIssueViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Object invoke() {
|
||||
Context context;
|
||||
context = this.f4873a.context;
|
||||
String string = context.getString(R.string.stations_avisa_dialog_positive_return);
|
||||
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
|
||||
return new AlertActions(NewIssueViewModelKt.AVISA_CREATE_ISSUE, new AlertAction(string, AlertAction.Style.POSITIVE));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertAction;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertActions;
|
||||
import com.adif.elcanomovil.uiAvisa.R;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class x extends Lambda implements Function0 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueViewModel f4874a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public x(NewIssueViewModel newIssueViewModel) {
|
||||
super(0);
|
||||
this.f4874a = newIssueViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Object invoke() {
|
||||
Context context;
|
||||
context = this.f4874a.context;
|
||||
String string = context.getString(R.string.create_issue_confirmation_positive);
|
||||
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
|
||||
return new AlertActions(NewIssueViewModelKt.AVISA_CREATE_ISSUE_WITHOUT_ACTION, new AlertAction(string, AlertAction.Style.POSITIVE));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
import com.adif.elcanomovil.uiAvisa.components.create.NavigateTo;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
import kotlinx.coroutines.channels.Channel;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class y extends Lambda implements Function1 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ NewIssueViewModel f4875a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public y(NewIssueViewModel newIssueViewModel) {
|
||||
super(1);
|
||||
this.f4875a = newIssueViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
Channel channel;
|
||||
((Boolean) obj).booleanValue();
|
||||
channel = this.f4875a._navigation;
|
||||
channel.mo1630trySendJP2dKIU(NavigateTo.NavigateUp.INSTANCE);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.create;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class z {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public static final NewIssueViewModel_HiltModules_KeyModule_ProvideFactory f4876a = new NewIssueViewModel_HiltModules_KeyModule_ProvideFactory();
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.details;
|
||||
|
||||
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: classes.dex */
|
||||
public abstract class Hilt_IssueDetailsFragment extends K implements GeneratedComponentManagerHolder {
|
||||
private ContextWrapper componentContext;
|
||||
private volatile FragmentComponentManager componentManager;
|
||||
private final Object componentManagerLock;
|
||||
private boolean disableGetContextFix;
|
||||
private boolean injected;
|
||||
|
||||
public Hilt_IssueDetailsFragment() {
|
||||
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;
|
||||
((IssueDetailsFragment_GeneratedInjector) generatedComponent()).injectIssueDetailsFragment((IssueDetailsFragment) 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_IssueDetailsFragment(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,676 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.details;
|
||||
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Bundle;
|
||||
import android.text.Html;
|
||||
import android.text.SpannableStringBuilder;
|
||||
import android.text.TextUtils;
|
||||
import android.view.View;
|
||||
import android.widget.TextView;
|
||||
import androidx.fragment.app.K;
|
||||
import androidx.lifecycle.C0;
|
||||
import androidx.lifecycle.D0;
|
||||
import androidx.lifecycle.InterfaceC0200v;
|
||||
import androidx.lifecycle.Y;
|
||||
import androidx.lifecycle.y0;
|
||||
import com.adif.elcanomovil.commonViews.data.InfoHeaderData;
|
||||
import com.adif.elcanomovil.commonViews.loading.LoadingDialogFragment;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceStation;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.adif.elcanomovil.domain.entities.utils.Status;
|
||||
import com.adif.elcanomovil.uiAvisa.R;
|
||||
import com.adif.elcanomovil.uiAvisa.databinding.FragmentAvisaDetailsBinding;
|
||||
import com.adif.elcanomovil.uiAvisa.databinding.PopupFullscreenPictureBinding;
|
||||
import com.adif.elcanomovil.uiAvisa.utils.ui.FullScreenPicturePopupWindow;
|
||||
import com.adif.elcanomovil.uiAvisa.utils.ui.PictureGridView;
|
||||
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.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlinx.coroutines.ExperimentalCoroutinesApi;
|
||||
import l0.C0435a;
|
||||
import o0.C0531h;
|
||||
|
||||
@Metadata(d1 = {"\u0000\\\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\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\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u00012\u00020\u0002B\u0007¢\u0006\u0004\b\u0003\u0010\u0004J!\u0010\n\u001a\u00020\t2\b\u0010\u0006\u001a\u0004\u0018\u00010\u00052\u0006\u0010\b\u001a\u00020\u0007H\u0002¢\u0006\u0004\b\n\u0010\u000bJ\u0017\u0010\u000e\u001a\u00020\t2\u0006\u0010\r\u001a\u00020\fH\u0002¢\u0006\u0004\b\u000e\u0010\u000fJ!\u0010\u0012\u001a\u00020\t2\u0006\u0010\b\u001a\u00020\u00072\b\u0010\u0011\u001a\u0004\u0018\u00010\u0010H\u0016¢\u0006\u0004\b\u0012\u0010\u0013J\u0017\u0010\u0016\u001a\u00020\t2\u0006\u0010\u0015\u001a\u00020\u0014H\u0016¢\u0006\u0004\b\u0016\u0010\u0017R\u0016\u0010\u0019\u001a\u00020\u00188\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\u0019\u0010\u001aR\u001b\u0010 \u001a\u00020\u001b8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u001c\u0010\u001d\u001a\u0004\b\u001e\u0010\u001fR\u001b\u0010&\u001a\u00020!8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\"\u0010#\u001a\u0004\b$\u0010%R\u0016\u0010'\u001a\u00020\f8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b'\u0010(R\u0016\u0010)\u001a\u00020\f8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b)\u0010(R\u0018\u0010+\u001a\u0004\u0018\u00010*8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b+\u0010,¨\u0006-"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/details/IssueDetailsFragment;", "Landroidx/fragment/app/K;", "Lcom/adif/elcanomovil/uiAvisa/utils/ui/PictureGridView$OnPictureGridInteractionListener;", "<init>", "()V", "", "issueId", "Landroid/view/View;", "view", "", "bindViewModel", "(Ljava/lang/Integer;Landroid/view/View;)V", "", "isLoading", "loading", "(Z)V", "Landroid/os/Bundle;", "savedInstanceState", "onViewCreated", "(Landroid/view/View;Landroid/os/Bundle;)V", "Landroid/graphics/Bitmap;", "bitmap", "onPictureInteraction", "(Landroid/graphics/Bitmap;)V", "Lcom/adif/elcanomovil/uiAvisa/databinding/FragmentAvisaDetailsBinding;", "binding", "Lcom/adif/elcanomovil/uiAvisa/databinding/FragmentAvisaDetailsBinding;", "Lcom/adif/elcanomovil/uiAvisa/components/details/IssueDetailsViewModel;", "viewModel$delegate", "Lkotlin/Lazy;", "getViewModel", "()Lcom/adif/elcanomovil/uiAvisa/components/details/IssueDetailsViewModel;", "viewModel", "Lcom/adif/elcanomovil/uiAvisa/components/details/IssueDetailsFragmentArgs;", "args$delegate", "Lo0/h;", "getArgs", "()Lcom/adif/elcanomovil/uiAvisa/components/details/IssueDetailsFragmentArgs;", "args", "initialDataAvailable", "Z", "commentsExpanded", "Lcom/adif/elcanomovil/commonViews/loading/LoadingDialogFragment;", "loadingDialogFragment", "Lcom/adif/elcanomovil/commonViews/loading/LoadingDialogFragment;", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@AndroidEntryPoint
|
||||
@SourceDebugExtension({"SMAP\nIssueDetailsFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 IssueDetailsFragment.kt\ncom/adif/elcanomovil/uiAvisa/components/details/IssueDetailsFragment\n+ 2 FragmentViewModelLazy.kt\nandroidx/fragment/app/FragmentViewModelLazyKt\n+ 3 FragmentNavArgsLazy.kt\nandroidx/navigation/fragment/FragmentNavArgsLazyKt\n*L\n1#1,290:1\n106#2,15:291\n42#3,3:306\n*S KotlinDebug\n*F\n+ 1 IssueDetailsFragment.kt\ncom/adif/elcanomovil/uiAvisa/components/details/IssueDetailsFragment\n*L\n35#1:291,15\n36#1:306,3\n*E\n"})
|
||||
@ExperimentalCoroutinesApi
|
||||
/* loaded from: classes.dex */
|
||||
public final class IssueDetailsFragment extends Hilt_IssueDetailsFragment implements PictureGridView.OnPictureGridInteractionListener {
|
||||
|
||||
/* renamed from: args$delegate, reason: from kotlin metadata */
|
||||
private final C0531h args;
|
||||
private FragmentAvisaDetailsBinding binding;
|
||||
private boolean commentsExpanded;
|
||||
private boolean initialDataAvailable;
|
||||
private LoadingDialogFragment loadingDialogFragment;
|
||||
|
||||
/* renamed from: viewModel$delegate, reason: from kotlin metadata */
|
||||
private final Lazy viewModel;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[Status.values().length];
|
||||
try {
|
||||
iArr[Status.SUCCESS.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[Status.ERROR.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[Status.LOADING.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
|
||||
public IssueDetailsFragment() {
|
||||
super(R.layout.fragment_avisa_details);
|
||||
final Function0<K> function0 = new Function0<K>() { // from class: com.adif.elcanomovil.uiAvisa.components.details.IssueDetailsFragment$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.uiAvisa.components.details.IssueDetailsFragment$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(IssueDetailsViewModel.class), new Function0<C0>() { // from class: com.adif.elcanomovil.uiAvisa.components.details.IssueDetailsFragment$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.uiAvisa.components.details.IssueDetailsFragment$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.uiAvisa.components.details.IssueDetailsFragment$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.args = new C0531h(Reflection.getOrCreateKotlinClass(IssueDetailsFragmentArgs.class), new Function0<Bundle>() { // from class: com.adif.elcanomovil.uiAvisa.components.details.IssueDetailsFragment$special$$inlined$navArgs$1
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Bundle invoke() {
|
||||
Bundle arguments = K.this.getArguments();
|
||||
if (arguments != null) {
|
||||
return arguments;
|
||||
}
|
||||
throw new IllegalStateException("Fragment " + K.this + " has null arguments");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private final void bindViewModel(Integer issueId, final View view) {
|
||||
if (issueId == null) {
|
||||
return;
|
||||
}
|
||||
getViewModel().getIssueDetail(issueId.intValue());
|
||||
final int i = 0;
|
||||
getViewModel().getUserDetailIncidences().e(getViewLifecycleOwner(), new Y(this) { // from class: com.adif.elcanomovil.uiAvisa.components.details.a
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ IssueDetailsFragment f4878b;
|
||||
|
||||
{
|
||||
this.f4878b = this;
|
||||
}
|
||||
|
||||
@Override // androidx.lifecycle.Y
|
||||
public final void onChanged(Object obj) {
|
||||
int i4 = i;
|
||||
IssueDetailsFragment issueDetailsFragment = this.f4878b;
|
||||
switch (i4) {
|
||||
case 0:
|
||||
IssueDetailsFragment.bindViewModel$lambda$5(issueDetailsFragment, (AsyncResult) obj);
|
||||
return;
|
||||
case 1:
|
||||
IssueDetailsFragment.bindViewModel$lambda$7(issueDetailsFragment, (List) obj);
|
||||
return;
|
||||
default:
|
||||
IssueDetailsFragment.bindViewModel$lambda$9(issueDetailsFragment, (List) obj);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
final int i4 = 1;
|
||||
getViewModel().getUserPicturesLiveData().e(getViewLifecycleOwner(), new Y(this) { // from class: com.adif.elcanomovil.uiAvisa.components.details.a
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ IssueDetailsFragment f4878b;
|
||||
|
||||
{
|
||||
this.f4878b = this;
|
||||
}
|
||||
|
||||
@Override // androidx.lifecycle.Y
|
||||
public final void onChanged(Object obj) {
|
||||
int i42 = i4;
|
||||
IssueDetailsFragment issueDetailsFragment = this.f4878b;
|
||||
switch (i42) {
|
||||
case 0:
|
||||
IssueDetailsFragment.bindViewModel$lambda$5(issueDetailsFragment, (AsyncResult) obj);
|
||||
return;
|
||||
case 1:
|
||||
IssueDetailsFragment.bindViewModel$lambda$7(issueDetailsFragment, (List) obj);
|
||||
return;
|
||||
default:
|
||||
IssueDetailsFragment.bindViewModel$lambda$9(issueDetailsFragment, (List) obj);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
final int i5 = 2;
|
||||
getViewModel().getSystemPicturesLiveData().e(getViewLifecycleOwner(), new Y(this) { // from class: com.adif.elcanomovil.uiAvisa.components.details.a
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ IssueDetailsFragment f4878b;
|
||||
|
||||
{
|
||||
this.f4878b = this;
|
||||
}
|
||||
|
||||
@Override // androidx.lifecycle.Y
|
||||
public final void onChanged(Object obj) {
|
||||
int i42 = i5;
|
||||
IssueDetailsFragment issueDetailsFragment = this.f4878b;
|
||||
switch (i42) {
|
||||
case 0:
|
||||
IssueDetailsFragment.bindViewModel$lambda$5(issueDetailsFragment, (AsyncResult) obj);
|
||||
return;
|
||||
case 1:
|
||||
IssueDetailsFragment.bindViewModel$lambda$7(issueDetailsFragment, (List) obj);
|
||||
return;
|
||||
default:
|
||||
IssueDetailsFragment.bindViewModel$lambda$9(issueDetailsFragment, (List) obj);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
getViewModel().isDataLoaded().e(getViewLifecycleOwner(), new Y(this) { // from class: com.adif.elcanomovil.uiAvisa.components.details.b
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ IssueDetailsFragment f4880b;
|
||||
|
||||
{
|
||||
this.f4880b = this;
|
||||
}
|
||||
|
||||
@Override // androidx.lifecycle.Y
|
||||
public final void onChanged(Object obj) {
|
||||
IssueDetailsFragment.bindViewModel$lambda$12(view, this.f4880b, (Boolean) obj);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static final void bindViewModel$lambda$12(View view, IssueDetailsFragment this$0, Boolean bool) {
|
||||
Intrinsics.checkNotNullParameter(view, "$view");
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
if (bool == null || !bool.booleanValue()) {
|
||||
return;
|
||||
}
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding = this$0.binding;
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding2 = null;
|
||||
if (fragmentAvisaDetailsBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding = null;
|
||||
}
|
||||
TextView textView = fragmentAvisaDetailsBinding.issueDetailsStatus;
|
||||
SpannableStringBuilder estimatedFixingDate = this$0.getViewModel().getEstimatedFixingDate();
|
||||
TextView.BufferType bufferType = TextView.BufferType.SPANNABLE;
|
||||
textView.setText(estimatedFixingDate, bufferType);
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding3 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding3 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding3.issueDetailsLocation.setText(this$0.getViewModel().getStationName());
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding4 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding4 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding4.issueDetailsCategory.setText(this$0.getViewModel().getCategoryName());
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding5 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding5 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding5.issueDetailsNotifications.setText(this$0.getViewModel().getNotificationStatusText());
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding6 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding6 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding6 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding6.issueDetailsNotifications.setTextColor(this$0.getViewModel().getNotificationStatusTextColour());
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding7 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding7 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding7 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding7.issueDetailsNotificationsIcon.setImageResource(this$0.getViewModel().getNotificationDrawable());
|
||||
if (this$0.getViewModel().getEstimatedFixingDateVisibility()) {
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding8 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding8 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding8 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding8.issueDetailsFixingTitle.setVisibility(0);
|
||||
} else {
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding9 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding9 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding9 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding9.issueDetailsFixingTitle.setVisibility(4);
|
||||
}
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding10 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding10 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding10 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding10.issueDetailsDescription.setText(this$0.getViewModel().getDescriptionText(), bufferType);
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding11 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding11 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding11 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding11.issueDetailsFixingTitle.setText(this$0.getViewModel().getStatusText(), bufferType);
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding12 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding12 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding12 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding12.issueDetailsStatus.setBackgroundColor(D.h.getColor(view.getContext(), this$0.getViewModel().getStatusBackgroundColour()));
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding13 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding13 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding13 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding13.issueDetailsStatus.setTextColor(D.h.getColor(view.getContext(), this$0.getViewModel().getStatusTextColour()));
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding14 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding14 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding14 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding14.issueDetailsComments.setText(Html.fromHtml(this$0.getViewModel().getCommentsText(), 0));
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding15 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding15 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding15 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding15.issueDetailsComments.setTextColor(this$0.getViewModel().getCommentsColour());
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding16 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding16 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding16 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding16.issueDetailsCommentsTitle.setCompoundDrawablesWithIntrinsicBounds(0, 0, this$0.getViewModel().getCommentsDrawable(), 0);
|
||||
if (!this$0.getViewModel().getCommentsEmpty()) {
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding17 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding17 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding17 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding17.issueDetailsCommentsHolder.setOnClickListener(new D1.a(this$0, 11));
|
||||
}
|
||||
if (this$0.getViewModel().getFromDatabase() && this$0.getViewModel().getCommentsEmpty()) {
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding18 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding18 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding18 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding18.issueDetailsComments.setText(this$0.getString(R.string.issue_loading_comments));
|
||||
}
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding19 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding19 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding19 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding19.issueUserPictures.setCallback(this$0);
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding20 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding20 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaDetailsBinding2 = fragmentAvisaDetailsBinding20;
|
||||
}
|
||||
fragmentAvisaDetailsBinding2.issueSystemPictures.setCallback(this$0);
|
||||
}
|
||||
|
||||
public static final void bindViewModel$lambda$12$lambda$11$lambda$10(IssueDetailsFragment this$0, View view) {
|
||||
ObjectAnimator ofInt;
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding = null;
|
||||
}
|
||||
TextView issueDetailsComments = fragmentAvisaDetailsBinding.issueDetailsComments;
|
||||
Intrinsics.checkNotNullExpressionValue(issueDetailsComments, "issueDetailsComments");
|
||||
if (this$0.commentsExpanded) {
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding2 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding2 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding2.issueDetailsCommentsTitle.setCompoundDrawablesWithIntrinsicBounds((Drawable) null, (Drawable) null, D.h.getDrawable(this$0.requireContext(), R.drawable.ic_dropdown_open), (Drawable) null);
|
||||
issueDetailsComments.setMaxLines(4);
|
||||
issueDetailsComments.setEllipsize(TextUtils.TruncateAt.END);
|
||||
ofInt = ObjectAnimator.ofInt(issueDetailsComments, "maxLines", 4);
|
||||
Intrinsics.checkNotNullExpressionValue(ofInt, "ofInt(...)");
|
||||
} else {
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding3 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding3 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding3.issueDetailsCommentsTitle.setCompoundDrawablesWithIntrinsicBounds((Drawable) null, (Drawable) null, D.h.getDrawable(this$0.requireContext(), R.drawable.ic_dropdown_closed), (Drawable) null);
|
||||
issueDetailsComments.setMaxLines(Integer.MAX_VALUE);
|
||||
issueDetailsComments.setEllipsize(null);
|
||||
ofInt = ObjectAnimator.ofInt(issueDetailsComments, "maxLines", Integer.MAX_VALUE);
|
||||
Intrinsics.checkNotNullExpressionValue(ofInt, "ofInt(...)");
|
||||
}
|
||||
this$0.commentsExpanded = !this$0.commentsExpanded;
|
||||
ofInt.setDuration(200L).start();
|
||||
}
|
||||
|
||||
public static final void bindViewModel$lambda$5(IssueDetailsFragment this$0, AsyncResult asyncResult) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding = null;
|
||||
Unit unit = null;
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding2 = null;
|
||||
Status status = asyncResult != null ? asyncResult.getStatus() : null;
|
||||
int i = status == null ? -1 : WhenMappings.$EnumSwitchMapping$0[status.ordinal()];
|
||||
if (i == 1) {
|
||||
this$0.loading(false);
|
||||
IncidenceStation incidenceStation = (IncidenceStation) asyncResult.getData();
|
||||
if (incidenceStation != null) {
|
||||
String string = this$0.getString(R.string.avisa_issue_screen_title, incidenceStation.getIncidence().getIncidenceCode());
|
||||
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding3 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaDetailsBinding = fragmentAvisaDetailsBinding3;
|
||||
}
|
||||
fragmentAvisaDetailsBinding.headerAvisaDetailIssue.updateHeaderInfo(new InfoHeaderData(string, Integer.valueOf(R.drawable.ic_arrow_back), null, 4, null));
|
||||
this$0.getViewModel().populateView(incidenceStation, false);
|
||||
Unit unit2 = Unit.INSTANCE;
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (i != 2) {
|
||||
if (i != 3) {
|
||||
return;
|
||||
}
|
||||
IncidenceStation incidenceStation2 = (IncidenceStation) asyncResult.getData();
|
||||
if (incidenceStation2 != null) {
|
||||
this$0.loading(false);
|
||||
this$0.initialDataAvailable = true;
|
||||
IssueDetailsViewModel.populateView$default(this$0.getViewModel(), incidenceStation2, false, 2, null);
|
||||
unit = Unit.INSTANCE;
|
||||
}
|
||||
if (unit == null) {
|
||||
this$0.loading(true);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding4 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding4 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding4.issueSystemPictures.setLoading(false);
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding5 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding5 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding5.issueUserPictures.setLoading(false);
|
||||
if (this$0.getViewModel().getCommentsEmpty()) {
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding6 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding6 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaDetailsBinding2 = fragmentAvisaDetailsBinding6;
|
||||
}
|
||||
fragmentAvisaDetailsBinding2.issueDetailsComments.setText(this$0.getString(R.string.issue_no_comments));
|
||||
}
|
||||
if (this$0.getContext() != null) {
|
||||
this$0.getViewModel().showErrorDialog();
|
||||
}
|
||||
}
|
||||
|
||||
public static final void bindViewModel$lambda$7(IssueDetailsFragment this$0, List list) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
if (list != null) {
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding = null;
|
||||
if (!this$0.getViewModel().getFromDatabase() && list.isEmpty()) {
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding2 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaDetailsBinding = fragmentAvisaDetailsBinding2;
|
||||
}
|
||||
fragmentAvisaDetailsBinding.issueUserPictures.setLoading(false);
|
||||
return;
|
||||
}
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding3 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding3 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding3.issueUserPictures.setImages(list);
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding4 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding4 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding4.issueUserPictures.invalidate();
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding5 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding5 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding5.issueUserPictures.requestLayout();
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding6 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding6 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding6 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding6.scrollView.invalidate();
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding7 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding7 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaDetailsBinding = fragmentAvisaDetailsBinding7;
|
||||
}
|
||||
fragmentAvisaDetailsBinding.scrollView.requestLayout();
|
||||
}
|
||||
}
|
||||
|
||||
public static final void bindViewModel$lambda$9(IssueDetailsFragment this$0, List list) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
if (list != null) {
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding = null;
|
||||
if (!this$0.getViewModel().getFromDatabase() && list.isEmpty()) {
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding2 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding2 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding2.issueSystemPictures.setLoading(false);
|
||||
}
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding3 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding3 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding3.issueSystemPictures.setImages(list);
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding4 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding4 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding4.issueSystemPictures.invalidate();
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding5 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding5 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding5.issueSystemPictures.requestLayout();
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding6 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding6 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding6 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding6.issueSystemPictures.invalidateViews();
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding7 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding7 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaDetailsBinding7 = null;
|
||||
}
|
||||
fragmentAvisaDetailsBinding7.scrollView.invalidate();
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding8 = this$0.binding;
|
||||
if (fragmentAvisaDetailsBinding8 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaDetailsBinding = fragmentAvisaDetailsBinding8;
|
||||
}
|
||||
fragmentAvisaDetailsBinding.scrollView.requestLayout();
|
||||
}
|
||||
}
|
||||
|
||||
private final IssueDetailsFragmentArgs getArgs() {
|
||||
return (IssueDetailsFragmentArgs) this.args.getValue();
|
||||
}
|
||||
|
||||
private final IssueDetailsViewModel getViewModel() {
|
||||
return (IssueDetailsViewModel) this.viewModel.getValue();
|
||||
}
|
||||
|
||||
private final void loading(boolean isLoading) {
|
||||
if (isLoading) {
|
||||
LoadingDialogFragment loadingDialogFragment = this.loadingDialogFragment;
|
||||
if (loadingDialogFragment != null) {
|
||||
loadingDialogFragment.show(getParentFragmentManager(), (String) null);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
LoadingDialogFragment loadingDialogFragment2 = this.loadingDialogFragment;
|
||||
if (loadingDialogFragment2 != null) {
|
||||
loadingDialogFragment2.dismiss();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.uiAvisa.utils.ui.PictureGridView.OnPictureGridInteractionListener
|
||||
public void onPictureInteraction(int i) {
|
||||
PictureGridView.OnPictureGridInteractionListener.DefaultImpls.onPictureInteraction(this, i);
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onViewCreated(View view, Bundle savedInstanceState) {
|
||||
Intrinsics.checkNotNullParameter(view, "view");
|
||||
super.onViewCreated(view, savedInstanceState);
|
||||
FragmentAvisaDetailsBinding bind = FragmentAvisaDetailsBinding.bind(view);
|
||||
Intrinsics.checkNotNullExpressionValue(bind, "bind(...)");
|
||||
this.binding = bind;
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding = null;
|
||||
if (bind == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
bind = null;
|
||||
}
|
||||
bind.headerAvisaDetailIssue.updateHeaderInfo(new InfoHeaderData(getString(R.string.avisa_issue_screen_title, ""), Integer.valueOf(R.drawable.ic_arrow_back), null, 4, null));
|
||||
FragmentAvisaDetailsBinding fragmentAvisaDetailsBinding2 = this.binding;
|
||||
if (fragmentAvisaDetailsBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaDetailsBinding = fragmentAvisaDetailsBinding2;
|
||||
}
|
||||
fragmentAvisaDetailsBinding.headerAvisaDetailIssue.setOnBackActionListener(new I1.b(this, 6));
|
||||
this.loadingDialogFragment = new LoadingDialogFragment();
|
||||
bindViewModel(Integer.valueOf(getArgs().getArgIdIncidence()), view);
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.uiAvisa.utils.ui.PictureGridView.OnPictureGridInteractionListener
|
||||
public void onPictureInteraction(Bitmap bitmap) {
|
||||
Intrinsics.checkNotNullParameter(bitmap, "bitmap");
|
||||
Context requireContext = requireContext();
|
||||
Intrinsics.checkNotNullExpressionValue(requireContext, "requireContext(...)");
|
||||
PopupFullscreenPictureBinding inflate = PopupFullscreenPictureBinding.inflate(getLayoutInflater());
|
||||
Intrinsics.checkNotNullExpressionValue(inflate, "inflate(...)");
|
||||
new FullScreenPicturePopupWindow(requireContext, bitmap, -1, false, inflate, -1, -1, null, 128, null).showAtLocation(getView(), 17, 0, 0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.details;
|
||||
|
||||
import C.w;
|
||||
import android.os.Bundle;
|
||||
import androidx.lifecycle.n0;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.NavArguments;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.JvmStatic;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import o0.InterfaceC0530g;
|
||||
|
||||
@Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0006\b\u0086\b\u0018\u0000 \u001b2\u00020\u0001:\u0001\u001bB\u000f\u0012\u0006\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0004\u0010\u0005J\r\u0010\u0007\u001a\u00020\u0006¢\u0006\u0004\b\u0007\u0010\bJ\r\u0010\n\u001a\u00020\t¢\u0006\u0004\b\n\u0010\u000bJ\u0010\u0010\f\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\f\u0010\rJ\u001a\u0010\u000e\u001a\u00020\u00002\b\b\u0002\u0010\u0003\u001a\u00020\u0002HÆ\u0001¢\u0006\u0004\b\u000e\u0010\u000fJ\u0010\u0010\u0011\u001a\u00020\u0010HÖ\u0001¢\u0006\u0004\b\u0011\u0010\u0012J\u0010\u0010\u0013\u001a\u00020\u0002HÖ\u0001¢\u0006\u0004\b\u0013\u0010\rJ\u001a\u0010\u0017\u001a\u00020\u00162\b\u0010\u0015\u001a\u0004\u0018\u00010\u0014HÖ\u0003¢\u0006\u0004\b\u0017\u0010\u0018R\u0017\u0010\u0003\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u0003\u0010\u0019\u001a\u0004\b\u001a\u0010\r¨\u0006\u001c"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/details/IssueDetailsFragmentArgs;", "Lo0/g;", "", "argIdIncidence", "<init>", "(I)V", "Landroid/os/Bundle;", "toBundle", "()Landroid/os/Bundle;", "Landroidx/lifecycle/n0;", "toSavedStateHandle", "()Landroidx/lifecycle/n0;", "component1", "()I", "copy", "(I)Lcom/adif/elcanomovil/uiAvisa/components/details/IssueDetailsFragmentArgs;", "", "toString", "()Ljava/lang/String;", "hashCode", "", "other", "", "equals", "(Ljava/lang/Object;)Z", "I", "getArgIdIncidence", "Companion", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final /* data */ class IssueDetailsFragmentArgs implements InterfaceC0530g {
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE = new Companion(null);
|
||||
private final int argIdIncidence;
|
||||
|
||||
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\u0017\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004H\u0007¢\u0006\u0004\b\u0007\u0010\bJ\u0017\u0010\u000b\u001a\u00020\u00062\u0006\u0010\n\u001a\u00020\tH\u0007¢\u0006\u0004\b\u000b\u0010\f¨\u0006\r"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/details/IssueDetailsFragmentArgs$Companion;", "", "<init>", "()V", "Landroid/os/Bundle;", "bundle", "Lcom/adif/elcanomovil/uiAvisa/components/details/IssueDetailsFragmentArgs;", "fromBundle", "(Landroid/os/Bundle;)Lcom/adif/elcanomovil/uiAvisa/components/details/IssueDetailsFragmentArgs;", "Landroidx/lifecycle/n0;", "savedStateHandle", "fromSavedStateHandle", "(Landroidx/lifecycle/n0;)Lcom/adif/elcanomovil/uiAvisa/components/details/IssueDetailsFragmentArgs;", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
public final IssueDetailsFragmentArgs fromBundle(Bundle bundle) {
|
||||
Intrinsics.checkNotNullParameter(bundle, "bundle");
|
||||
bundle.setClassLoader(IssueDetailsFragmentArgs.class.getClassLoader());
|
||||
if (bundle.containsKey(NavArguments.ARG_AVISA_INCIDENCE_ID)) {
|
||||
return new IssueDetailsFragmentArgs(bundle.getInt(NavArguments.ARG_AVISA_INCIDENCE_ID));
|
||||
}
|
||||
throw new IllegalArgumentException("Required argument \"arg_idIncidence\" is missing and does not have an android:defaultValue");
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
public final IssueDetailsFragmentArgs fromSavedStateHandle(n0 savedStateHandle) {
|
||||
Intrinsics.checkNotNullParameter(savedStateHandle, "savedStateHandle");
|
||||
if (!savedStateHandle.b(NavArguments.ARG_AVISA_INCIDENCE_ID)) {
|
||||
throw new IllegalArgumentException("Required argument \"arg_idIncidence\" is missing and does not have an android:defaultValue");
|
||||
}
|
||||
Integer num = (Integer) savedStateHandle.c(NavArguments.ARG_AVISA_INCIDENCE_ID);
|
||||
if (num != null) {
|
||||
return new IssueDetailsFragmentArgs(num.intValue());
|
||||
}
|
||||
throw new IllegalArgumentException("Argument \"arg_idIncidence\" of type integer does not support null values");
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
public IssueDetailsFragmentArgs(int i) {
|
||||
this.argIdIncidence = i;
|
||||
}
|
||||
|
||||
public static /* synthetic */ IssueDetailsFragmentArgs copy$default(IssueDetailsFragmentArgs issueDetailsFragmentArgs, int i, int i4, Object obj) {
|
||||
if ((i4 & 1) != 0) {
|
||||
i = issueDetailsFragmentArgs.argIdIncidence;
|
||||
}
|
||||
return issueDetailsFragmentArgs.copy(i);
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
public static final IssueDetailsFragmentArgs fromBundle(Bundle bundle) {
|
||||
return INSTANCE.fromBundle(bundle);
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
public static final IssueDetailsFragmentArgs fromSavedStateHandle(n0 n0Var) {
|
||||
return INSTANCE.fromSavedStateHandle(n0Var);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final int getArgIdIncidence() {
|
||||
return this.argIdIncidence;
|
||||
}
|
||||
|
||||
public final IssueDetailsFragmentArgs copy(int argIdIncidence) {
|
||||
return new IssueDetailsFragmentArgs(argIdIncidence);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
return (other instanceof IssueDetailsFragmentArgs) && this.argIdIncidence == ((IssueDetailsFragmentArgs) other).argIdIncidence;
|
||||
}
|
||||
|
||||
public final int getArgIdIncidence() {
|
||||
return this.argIdIncidence;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return Integer.hashCode(this.argIdIncidence);
|
||||
}
|
||||
|
||||
public final Bundle toBundle() {
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putInt(NavArguments.ARG_AVISA_INCIDENCE_ID, this.argIdIncidence);
|
||||
return bundle;
|
||||
}
|
||||
|
||||
public final n0 toSavedStateHandle() {
|
||||
n0 n0Var = new n0();
|
||||
n0Var.d(Integer.valueOf(this.argIdIncidence), NavArguments.ARG_AVISA_INCIDENCE_ID);
|
||||
return n0Var;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return w.p(new StringBuilder("IssueDetailsFragmentArgs(argIdIncidence="), this.argIdIncidence, ')');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.details;
|
||||
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.components.FragmentComponent;
|
||||
import dagger.hilt.codegen.OriginatingElement;
|
||||
import dagger.hilt.internal.GeneratedEntryPoint;
|
||||
|
||||
@OriginatingElement(topLevelClass = IssueDetailsFragment.class)
|
||||
@GeneratedEntryPoint
|
||||
@InstallIn({FragmentComponent.class})
|
||||
/* loaded from: classes.dex */
|
||||
public interface IssueDetailsFragment_GeneratedInjector {
|
||||
void injectIssueDetailsFragment(IssueDetailsFragment issueDetailsFragment);
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,9 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.details;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0080T¢\u0006\u0002\n\u0000¨\u0006\u0002"}, d2 = {"AVISA_GENERIC_ERROR", "", "ui-avisa_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class IssueDetailsViewModelKt {
|
||||
public static final String AVISA_GENERIC_ERROR = "generic_avisa_error";
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.details;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.domain.usecases.avisa.incidence.GetIncidenceDetailsUseCase;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.qualifiers.ApplicationContext"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class IssueDetailsViewModel_Factory implements Factory<IssueDetailsViewModel> {
|
||||
private final Provider<Context> contextProvider;
|
||||
private final Provider<GetIncidenceDetailsUseCase> getIncidenceDetailsUseCaseProvider;
|
||||
|
||||
public IssueDetailsViewModel_Factory(Provider<GetIncidenceDetailsUseCase> provider, Provider<Context> provider2) {
|
||||
this.getIncidenceDetailsUseCaseProvider = provider;
|
||||
this.contextProvider = provider2;
|
||||
}
|
||||
|
||||
public static IssueDetailsViewModel_Factory create(Provider<GetIncidenceDetailsUseCase> provider, Provider<Context> provider2) {
|
||||
return new IssueDetailsViewModel_Factory(provider, provider2);
|
||||
}
|
||||
|
||||
public static IssueDetailsViewModel newInstance(GetIncidenceDetailsUseCase getIncidenceDetailsUseCase, Context context) {
|
||||
return new IssueDetailsViewModel(getIncidenceDetailsUseCase, context);
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public IssueDetailsViewModel get() {
|
||||
return newInstance(this.getIncidenceDetailsUseCaseProvider.get(), this.contextProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.details;
|
||||
|
||||
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 = IssueDetailsViewModel.class)
|
||||
/* loaded from: classes.dex */
|
||||
public final class IssueDetailsViewModel_HiltModules {
|
||||
|
||||
@Module
|
||||
@InstallIn({ViewModelComponent.class})
|
||||
/* loaded from: classes.dex */
|
||||
public static abstract class BindsModule {
|
||||
private BindsModule() {
|
||||
}
|
||||
|
||||
@Binds
|
||||
@StringKey("com.adif.elcanomovil.uiAvisa.components.details.IssueDetailsViewModel")
|
||||
@HiltViewModelMap
|
||||
@IntoMap
|
||||
public abstract w0 binds(IssueDetailsViewModel issueDetailsViewModel);
|
||||
}
|
||||
|
||||
@Module
|
||||
@InstallIn({ActivityRetainedComponent.class})
|
||||
/* loaded from: classes.dex */
|
||||
public static final class KeyModule {
|
||||
private KeyModule() {
|
||||
}
|
||||
|
||||
@Provides
|
||||
@HiltViewModelMap.KeySet
|
||||
@IntoSet
|
||||
public static String provide() {
|
||||
return "com.adif.elcanomovil.uiAvisa.components.details.IssueDetailsViewModel";
|
||||
}
|
||||
}
|
||||
|
||||
private IssueDetailsViewModel_HiltModules() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.details;
|
||||
|
||||
import com.adif.elcanomovil.uiAvisa.components.details.IssueDetailsViewModel_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: classes.dex */
|
||||
public final class IssueDetailsViewModel_HiltModules_KeyModule_ProvideFactory implements Factory<String> {
|
||||
public static IssueDetailsViewModel_HiltModules_KeyModule_ProvideFactory create() {
|
||||
return h.f4895a;
|
||||
}
|
||||
|
||||
public static String provide() {
|
||||
return (String) Preconditions.checkNotNullFromProvides(IssueDetailsViewModel_HiltModules.KeyModule.provide());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public String get() {
|
||||
return provide();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.details;
|
||||
|
||||
import G2.l;
|
||||
import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
import android.media.ThumbnailUtils;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ImageView;
|
||||
import androidx.recyclerview.widget.AbstractC0220h0;
|
||||
import androidx.recyclerview.widget.I0;
|
||||
import com.adif.elcanomovil.uiAvisa.R;
|
||||
import com.google.android.gms.common.internal.ServiceSpecificExtraArgs;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.CompletableJob;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.CoroutineScopeKt;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
import kotlinx.coroutines.Job;
|
||||
import kotlinx.coroutines.JobKt__JobKt;
|
||||
|
||||
@Metadata(d1 = {"\u0000>\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0007\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010!\n\u0002\b\u0005\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0002\u001d\u001eB\u000f\u0012\u0006\u0010\u0004\u001a\u00020\u0003¢\u0006\u0004\b\u0005\u0010\u0006J\u001f\u0010\u000b\u001a\u00020\u00022\u0006\u0010\b\u001a\u00020\u00072\u0006\u0010\n\u001a\u00020\tH\u0016¢\u0006\u0004\b\u000b\u0010\fJ\u000f\u0010\r\u001a\u00020\tH\u0016¢\u0006\u0004\b\r\u0010\u000eJ\u001f\u0010\u0012\u001a\u00020\u00112\u0006\u0010\u000f\u001a\u00020\u00022\u0006\u0010\u0010\u001a\u00020\tH\u0016¢\u0006\u0004\b\u0012\u0010\u0013J\u001b\u0010\u0017\u001a\u00020\u00112\f\u0010\u0016\u001a\b\u0012\u0004\u0012\u00020\u00150\u0014¢\u0006\u0004\b\u0017\u0010\u0018R\u0014\u0010\u0004\u001a\u00020\u00038\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0004\u0010\u0019R\u001a\u0010\u001b\u001a\b\u0012\u0004\u0012\u00020\u00150\u001a8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u001b\u0010\u001c¨\u0006\u001f"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/details/PicturesAdapter;", "Landroidx/recyclerview/widget/h0;", "Lcom/adif/elcanomovil/uiAvisa/components/details/PicturesAdapter$PictureViewHolder;", "Lcom/adif/elcanomovil/uiAvisa/components/details/PicturesAdapter$OnPictureGridFragmentInteractionListener;", ServiceSpecificExtraArgs.CastExtraArgs.LISTENER, "<init>", "(Lcom/adif/elcanomovil/uiAvisa/components/details/PicturesAdapter$OnPictureGridFragmentInteractionListener;)V", "Landroid/view/ViewGroup;", "parent", "", "viewType", "onCreateViewHolder", "(Landroid/view/ViewGroup;I)Lcom/adif/elcanomovil/uiAvisa/components/details/PicturesAdapter$PictureViewHolder;", "getItemCount", "()I", "holder", "position", "", "onBindViewHolder", "(Lcom/adif/elcanomovil/uiAvisa/components/details/PicturesAdapter$PictureViewHolder;I)V", "", "Landroid/graphics/Bitmap;", "pictures", "updatePictures", "(Ljava/util/List;)V", "Lcom/adif/elcanomovil/uiAvisa/components/details/PicturesAdapter$OnPictureGridFragmentInteractionListener;", "", "pictureList", "Ljava/util/List;", "OnPictureGridFragmentInteractionListener", "PictureViewHolder", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class PicturesAdapter extends AbstractC0220h0 {
|
||||
private final OnPictureGridFragmentInteractionListener listener;
|
||||
private final List<Bitmap> pictureList;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\b\n\u0000\bf\u0018\u00002\u00020\u0001J\u0010\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H&¨\u0006\u0006"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/details/PicturesAdapter$OnPictureGridFragmentInteractionListener;", "", "onPictureInteraction", "", "bitmap", "", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public interface OnPictureGridFragmentInteractionListener {
|
||||
void onPictureInteraction(int bitmap);
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\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\r\u0010\u0007\u001a\u00020\u0006¢\u0006\u0004\b\u0007\u0010\bR\"\u0010\n\u001a\u00020\t8\u0006@\u0006X\u0086.¢\u0006\u0012\n\u0004\b\n\u0010\u000b\u001a\u0004\b\f\u0010\r\"\u0004\b\u000e\u0010\u000fR\u0014\u0010\u0011\u001a\u00020\u00108\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0011\u0010\u0012¨\u0006\u0013"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/details/PicturesAdapter$PictureViewHolder;", "Landroidx/recyclerview/widget/I0;", "Landroid/view/View;", "itemView", "<init>", "(Landroid/view/View;)V", "", "populateView", "()V", "Landroid/graphics/Bitmap;", "item", "Landroid/graphics/Bitmap;", "getItem", "()Landroid/graphics/Bitmap;", "setItem", "(Landroid/graphics/Bitmap;)V", "Lkotlinx/coroutines/CoroutineScope;", "scope", "Lkotlinx/coroutines/CoroutineScope;", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final class PictureViewHolder extends I0 {
|
||||
public Bitmap item;
|
||||
private final CoroutineScope scope;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public PictureViewHolder(View itemView) {
|
||||
super(itemView);
|
||||
CompletableJob Job$default;
|
||||
Intrinsics.checkNotNullParameter(itemView, "itemView");
|
||||
Job$default = JobKt__JobKt.Job$default((Job) null, 1, (Object) null);
|
||||
this.scope = CoroutineScopeKt.CoroutineScope(Job$default.plus(Dispatchers.getDefault()));
|
||||
}
|
||||
|
||||
public final Bitmap getItem() {
|
||||
Bitmap bitmap = this.item;
|
||||
if (bitmap != null) {
|
||||
return bitmap;
|
||||
}
|
||||
Intrinsics.throwUninitializedPropertyAccessException("item");
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void populateView() {
|
||||
Context context = this.itemView.getContext();
|
||||
Intrinsics.checkNotNullExpressionValue(context, "getContext(...)");
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
int i = (int) (90 * context.getResources().getDisplayMetrics().density);
|
||||
Context context2 = this.itemView.getContext();
|
||||
Intrinsics.checkNotNullExpressionValue(context2, "getContext(...)");
|
||||
Intrinsics.checkNotNullParameter(context2, "context");
|
||||
Bitmap extractThumbnail = ThumbnailUtils.extractThumbnail(getItem(), i, (int) (90 * context2.getResources().getDisplayMetrics().density));
|
||||
View view = this.itemView;
|
||||
Intrinsics.checkNotNull(view, "null cannot be cast to non-null type android.widget.ImageView");
|
||||
((ImageView) view).setImageBitmap(extractThumbnail);
|
||||
}
|
||||
|
||||
public final void setItem(Bitmap bitmap) {
|
||||
Intrinsics.checkNotNullParameter(bitmap, "<set-?>");
|
||||
this.item = bitmap;
|
||||
}
|
||||
}
|
||||
|
||||
public PicturesAdapter(OnPictureGridFragmentInteractionListener listener) {
|
||||
Intrinsics.checkNotNullParameter(listener, "listener");
|
||||
this.listener = listener;
|
||||
this.pictureList = new ArrayList();
|
||||
}
|
||||
|
||||
public static final void onBindViewHolder$lambda$0(PicturesAdapter this$0, PictureViewHolder holder, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
Intrinsics.checkNotNullParameter(holder, "$holder");
|
||||
this$0.listener.onPictureInteraction(holder.getAdapterPosition());
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public int getItemCount() {
|
||||
return this.pictureList.size();
|
||||
}
|
||||
|
||||
public final void updatePictures(List<Bitmap> pictures) {
|
||||
Intrinsics.checkNotNullParameter(pictures, "pictures");
|
||||
this.pictureList.clear();
|
||||
this.pictureList.addAll(pictures);
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public void onBindViewHolder(PictureViewHolder holder, int position) {
|
||||
Intrinsics.checkNotNullParameter(holder, "holder");
|
||||
holder.setItem(this.pictureList.get(position));
|
||||
holder.itemView.setOnClickListener(new l(3, this, holder));
|
||||
holder.populateView();
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public PictureViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
|
||||
Intrinsics.checkNotNullParameter(parent, "parent");
|
||||
View inflate = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_picture_list, parent, false);
|
||||
Intrinsics.checkNotNullExpressionValue(inflate, "inflate(...)");
|
||||
return new PictureViewHolder(inflate);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.details;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class c extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4881a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ IssueDetailsViewModel f4882b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ int f4883c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public c(IssueDetailsViewModel issueDetailsViewModel, int i, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4882b = issueDetailsViewModel;
|
||||
this.f4883c = i;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new c(this.f4882b, this.f4883c, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((c) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:13:0x0041, code lost:
|
||||
|
||||
if (((kotlinx.coroutines.flow.Flow) r6).collect(r1, r5) == r0) goto L15;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x0043, code lost:
|
||||
|
||||
return r0;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:16:0x002f, code lost:
|
||||
|
||||
if (r6 == r0) goto L15;
|
||||
*/
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r6) {
|
||||
/*
|
||||
r5 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r5.f4881a
|
||||
com.adif.elcanomovil.uiAvisa.components.details.IssueDetailsViewModel r2 = r5.f4882b
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r1 == 0) goto L20
|
||||
if (r1 == r4) goto L1c
|
||||
if (r1 != r3) goto L14
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L44
|
||||
L14:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L1c:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L32
|
||||
L20:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
com.adif.elcanomovil.domain.usecases.avisa.incidence.GetIncidenceDetailsUseCase r6 = com.adif.elcanomovil.uiAvisa.components.details.IssueDetailsViewModel.access$getGetIncidenceDetailsUseCase$p(r2)
|
||||
r5.f4881a = r4
|
||||
int r1 = r5.f4883c
|
||||
java.lang.Object r6 = r6.invoke(r1, r5)
|
||||
if (r6 != r0) goto L32
|
||||
goto L43
|
||||
L32:
|
||||
kotlinx.coroutines.flow.Flow r6 = (kotlinx.coroutines.flow.Flow) r6
|
||||
C1.b r1 = new C1.b
|
||||
r4 = 8
|
||||
r1.<init>(r2, r4)
|
||||
r5.f4881a = r3
|
||||
java.lang.Object r5 = r6.collect(r1, r5)
|
||||
if (r5 != r0) goto L44
|
||||
L43:
|
||||
return r0
|
||||
L44:
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiAvisa.components.details.c.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.details;
|
||||
|
||||
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.BuildersKt;
|
||||
import kotlinx.coroutines.CoroutineDispatcher;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class d extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4884a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ IssueDetailsViewModel f4885b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ int f4886c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public d(IssueDetailsViewModel issueDetailsViewModel, int i, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4885b = issueDetailsViewModel;
|
||||
this.f4886c = i;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new d(this.f4885b, this.f4886c, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((d) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4884a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
CoroutineDispatcher io = Dispatchers.getIO();
|
||||
c cVar = new c(this.f4885b, this.f4886c, null);
|
||||
this.f4884a = 1;
|
||||
if (BuildersKt.withContext(io, cVar, 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,31 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.details;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertAction;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertActions;
|
||||
import com.adif.elcanomovil.uiAvisa.R;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class e extends Lambda implements Function0 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ IssueDetailsViewModel f4887a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public e(IssueDetailsViewModel issueDetailsViewModel) {
|
||||
super(0);
|
||||
this.f4887a = issueDetailsViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Object invoke() {
|
||||
Context context;
|
||||
context = this.f4887a.context;
|
||||
String string = context.getString(R.string.stations_avisa_dialog_positive);
|
||||
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
|
||||
return new AlertActions(IssueDetailsViewModelKt.AVISA_GENERIC_ERROR, new AlertAction(string, AlertAction.Style.POSITIVE));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.details;
|
||||
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.util.Base64;
|
||||
import androidx.lifecycle.X;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidencePicture;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class f extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ List f4888a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ boolean f4889b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ IssueDetailsViewModel f4890c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public f(List list, boolean z3, IssueDetailsViewModel issueDetailsViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4888a = list;
|
||||
this.f4889b = z3;
|
||||
this.f4890c = issueDetailsViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new f(this.f4888a, this.f4889b, this.f4890c, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((f) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
X x3;
|
||||
X x4;
|
||||
X x5;
|
||||
int collectionSizeOrDefault;
|
||||
Bitmap bitmap;
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
ArrayList arrayList = null;
|
||||
List list = this.f4888a;
|
||||
if (list != null) {
|
||||
List list2 = list;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = list2.iterator();
|
||||
while (it.hasNext()) {
|
||||
String base64String = ((IncidencePicture) it.next()).getContent();
|
||||
if (base64String != null) {
|
||||
Intrinsics.checkNotNullParameter(base64String, "base64String");
|
||||
byte[] decode = Base64.decode(base64String, 0);
|
||||
bitmap = BitmapFactory.decodeByteArray(decode, 0, decode.length);
|
||||
Intrinsics.checkNotNullExpressionValue(bitmap, "decodeByteArray(...)");
|
||||
} else {
|
||||
bitmap = null;
|
||||
}
|
||||
arrayList2.add(bitmap);
|
||||
}
|
||||
arrayList = arrayList2;
|
||||
}
|
||||
IssueDetailsViewModel issueDetailsViewModel = this.f4890c;
|
||||
if (this.f4889b) {
|
||||
if (arrayList == null || arrayList.isEmpty()) {
|
||||
x4 = issueDetailsViewModel.systemPicturesLiveData;
|
||||
x4.k(CollectionsKt.emptyList());
|
||||
} else {
|
||||
x5 = issueDetailsViewModel.systemPicturesLiveData;
|
||||
x5.k(arrayList);
|
||||
}
|
||||
} else if (arrayList != null && !arrayList.isEmpty()) {
|
||||
x3 = issueDetailsViewModel.userPicturesLiveData;
|
||||
x3.k(arrayList);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.details;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.BuildersKt;
|
||||
import kotlinx.coroutines.CoroutineDispatcher;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class g extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4891a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ List f4892b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ boolean f4893c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ IssueDetailsViewModel f4894d;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public g(List list, boolean z3, IssueDetailsViewModel issueDetailsViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4892b = list;
|
||||
this.f4893c = z3;
|
||||
this.f4894d = issueDetailsViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new g(this.f4892b, this.f4893c, this.f4894d, 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) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4891a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
CoroutineDispatcher io = Dispatchers.getIO();
|
||||
f fVar = new f(this.f4892b, this.f4893c, this.f4894d, null);
|
||||
this.f4891a = 1;
|
||||
if (BuildersKt.withContext(io, fVar, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.details;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class h {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public static final IssueDetailsViewModel_HiltModules_KeyModule_ProvideFactory f4895a = new IssueDetailsViewModel_HiltModules_KeyModule_ProvideFactory();
|
||||
}
|
||||
@@ -0,0 +1,502 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import androidx.fragment.app.K;
|
||||
import androidx.fragment.app.P;
|
||||
import androidx.lifecycle.C0;
|
||||
import androidx.lifecycle.D0;
|
||||
import androidx.lifecycle.InterfaceC0200v;
|
||||
import androidx.lifecycle.J;
|
||||
import androidx.lifecycle.y0;
|
||||
import androidx.recyclerview.widget.AbstractC0220h0;
|
||||
import androidx.recyclerview.widget.C0246x;
|
||||
import b1.InterfaceC0266a;
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.NavigationHandler;
|
||||
import com.adif.elcanomovil.commonViews.data.InfoData;
|
||||
import com.adif.elcanomovil.commonViews.data.InfoHeaderData;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.Incidence;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceStation;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.adif.elcanomovil.domain.entities.utils.Status;
|
||||
import com.adif.elcanomovil.uiAvisa.R;
|
||||
import com.adif.elcanomovil.uiAvisa.components.home.IssuesAdapter;
|
||||
import com.adif.elcanomovil.uiAvisa.databinding.FragmentAvisaHomeBinding;
|
||||
import dagger.hilt.android.AndroidEntryPoint;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Comparator;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.LazyKt;
|
||||
import kotlin.LazyThreadSafetyMode;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.comparisons.ComparisonsKt;
|
||||
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 = {"\u0000F\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\b\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\u000f\u0010\u0007\u001a\u00020\u0005H\u0002¢\u0006\u0004\b\u0007\u0010\u0004J\u000f\u0010\b\u001a\u00020\u0005H\u0002¢\u0006\u0004\b\b\u0010\u0004J\u0017\u0010\u000b\u001a\u00020\u00052\u0006\u0010\n\u001a\u00020\tH\u0002¢\u0006\u0004\b\u000b\u0010\fJ!\u0010\u000f\u001a\u00020\u00052\u0006\u0010\r\u001a\u00020\t2\b\b\u0002\u0010\u000e\u001a\u00020\tH\u0002¢\u0006\u0004\b\u000f\u0010\u0010J!\u0010\u0015\u001a\u00020\u00052\u0006\u0010\u0012\u001a\u00020\u00112\b\u0010\u0014\u001a\u0004\u0018\u00010\u0013H\u0016¢\u0006\u0004\b\u0015\u0010\u0016J\u0017\u0010\u0019\u001a\u00020\u00052\u0006\u0010\u0018\u001a\u00020\u0017H\u0016¢\u0006\u0004\b\u0019\u0010\u001aR\u0016\u0010\u001c\u001a\u00020\u001b8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\u001c\u0010\u001dR\u001b\u0010#\u001a\u00020\u001e8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u001f\u0010 \u001a\u0004\b!\u0010\"R\u0016\u0010$\u001a\u00020\t8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b$\u0010%¨\u0006&"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/home/AvisaHomeFragment;", "Landroidx/fragment/app/K;", "Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$OnIssueListFragmentInteractionListener;", "<init>", "()V", "", "bindViewModel", "getIncidences", "subscribeToIncidences", "", "isLoading", "loading", "(Z)V", "isVisible", "fromFailure", "emptyStatus", "(ZZ)V", "Landroid/view/View;", "view", "Landroid/os/Bundle;", "savedInstanceState", "onViewCreated", "(Landroid/view/View;Landroid/os/Bundle;)V", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/Incidence;", "issue", "onIssueInteraction", "(Lcom/adif/elcanomovil/domain/entities/avisa/incidence/Incidence;)V", "Lcom/adif/elcanomovil/uiAvisa/databinding/FragmentAvisaHomeBinding;", "binding", "Lcom/adif/elcanomovil/uiAvisa/databinding/FragmentAvisaHomeBinding;", "Lcom/adif/elcanomovil/uiAvisa/components/home/AvisaHomeViewModel;", "viewModel$delegate", "Lkotlin/Lazy;", "getViewModel", "()Lcom/adif/elcanomovil/uiAvisa/components/home/AvisaHomeViewModel;", "viewModel", "initialDataAvailable", "Z", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@AndroidEntryPoint
|
||||
@SourceDebugExtension({"SMAP\nAvisaHomeFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AvisaHomeFragment.kt\ncom/adif/elcanomovil/uiAvisa/components/home/AvisaHomeFragment\n+ 2 FragmentViewModelLazy.kt\nandroidx/fragment/app/FragmentViewModelLazyKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,209:1\n106#2,15:210\n1045#3:225\n1549#3:226\n1620#3,3:227\n*S KotlinDebug\n*F\n+ 1 AvisaHomeFragment.kt\ncom/adif/elcanomovil/uiAvisa/components/home/AvisaHomeFragment\n*L\n26#1:210,15\n124#1:225\n126#1:226\n126#1:227,3\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class AvisaHomeFragment extends Hilt_AvisaHomeFragment implements IssuesAdapter.OnIssueListFragmentInteractionListener {
|
||||
private FragmentAvisaHomeBinding binding;
|
||||
private boolean initialDataAvailable;
|
||||
|
||||
/* renamed from: viewModel$delegate, reason: from kotlin metadata */
|
||||
private final Lazy viewModel;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[Status.values().length];
|
||||
try {
|
||||
iArr[Status.SUCCESS.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[Status.ERROR.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[Status.LOADING.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
|
||||
public AvisaHomeFragment() {
|
||||
super(R.layout.fragment_avisa_home);
|
||||
final Function0<K> function0 = new Function0<K>() { // from class: com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeFragment$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.uiAvisa.components.home.AvisaHomeFragment$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(AvisaHomeViewModel.class), new Function0<C0>() { // from class: com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeFragment$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.uiAvisa.components.home.AvisaHomeFragment$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.uiAvisa.components.home.AvisaHomeFragment$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 bindViewModel() {
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding = this.binding;
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding2 = null;
|
||||
if (fragmentAvisaHomeBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding = null;
|
||||
}
|
||||
final int i = 0;
|
||||
((Button) fragmentAvisaHomeBinding.emptyView.findViewById(R.id.action_button_retry)).setOnClickListener(new View.OnClickListener(this) { // from class: com.adif.elcanomovil.uiAvisa.components.home.b
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeFragment f4899b;
|
||||
|
||||
{
|
||||
this.f4899b = this;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i4 = i;
|
||||
AvisaHomeFragment avisaHomeFragment = this.f4899b;
|
||||
switch (i4) {
|
||||
case 0:
|
||||
AvisaHomeFragment.bindViewModel$lambda$0(avisaHomeFragment, view);
|
||||
return;
|
||||
default:
|
||||
AvisaHomeFragment.bindViewModel$lambda$3(avisaHomeFragment, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
getViewModel().getStationsList().e(getViewLifecycleOwner(), new a(this, 1));
|
||||
InterfaceC0266a navigation = getViewModel().getNavigation();
|
||||
J viewLifecycleOwner = getViewLifecycleOwner();
|
||||
Intrinsics.checkNotNullExpressionValue(viewLifecycleOwner, "getViewLifecycleOwner(...)");
|
||||
((b1.f) navigation).a(viewLifecycleOwner, new NavigationHandler(this));
|
||||
C0246x c0246x = new C0246x(requireContext());
|
||||
Drawable drawable = D.h.getDrawable(requireContext(), R.drawable.divider);
|
||||
if (drawable != null) {
|
||||
c0246x.f3928a = drawable;
|
||||
}
|
||||
P requireActivity = requireActivity();
|
||||
Intrinsics.checkNotNullExpressionValue(requireActivity, "requireActivity(...)");
|
||||
IssuesAdapter issuesAdapter = new IssuesAdapter(this, requireActivity);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding3 = this.binding;
|
||||
if (fragmentAvisaHomeBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding3 = null;
|
||||
}
|
||||
fragmentAvisaHomeBinding3.issuesRecyclerview.setAdapter(issuesAdapter);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding4 = this.binding;
|
||||
if (fragmentAvisaHomeBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding4 = null;
|
||||
}
|
||||
fragmentAvisaHomeBinding4.issuesRecyclerview.i(c0246x);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding5 = this.binding;
|
||||
if (fragmentAvisaHomeBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaHomeBinding2 = fragmentAvisaHomeBinding5;
|
||||
}
|
||||
final int i4 = 1;
|
||||
fragmentAvisaHomeBinding2.fab.setOnClickListener(new View.OnClickListener(this) { // from class: com.adif.elcanomovil.uiAvisa.components.home.b
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeFragment f4899b;
|
||||
|
||||
{
|
||||
this.f4899b = this;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i42 = i4;
|
||||
AvisaHomeFragment avisaHomeFragment = this.f4899b;
|
||||
switch (i42) {
|
||||
case 0:
|
||||
AvisaHomeFragment.bindViewModel$lambda$0(avisaHomeFragment, view);
|
||||
return;
|
||||
default:
|
||||
AvisaHomeFragment.bindViewModel$lambda$3(avisaHomeFragment, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
getViewModel().canContinue().e(getViewLifecycleOwner(), new a(this, 2));
|
||||
loading(true);
|
||||
}
|
||||
|
||||
public static final void bindViewModel$lambda$0(AvisaHomeFragment this$0, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
if (Intrinsics.areEqual(this$0.getViewModel().canContinue().d(), Boolean.TRUE)) {
|
||||
this$0.getIncidences();
|
||||
return;
|
||||
}
|
||||
this$0.loading(true);
|
||||
emptyStatus$default(this$0, false, false, 2, null);
|
||||
this$0.getViewModel().retryAuth();
|
||||
}
|
||||
|
||||
public static final void bindViewModel$lambda$1(AvisaHomeFragment this$0, List list) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
if (list.isEmpty()) {
|
||||
this$0.loading(false);
|
||||
this$0.emptyStatus(true, true);
|
||||
}
|
||||
}
|
||||
|
||||
public static final void bindViewModel$lambda$3(AvisaHomeFragment this$0, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
this$0.getViewModel().navigateToCreateIncidence();
|
||||
}
|
||||
|
||||
public static final void bindViewModel$lambda$4(AvisaHomeFragment this$0, Boolean bool) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
if (Intrinsics.areEqual(bool, Boolean.TRUE)) {
|
||||
this$0.getIncidences();
|
||||
}
|
||||
}
|
||||
|
||||
private final void emptyStatus(boolean isVisible, boolean fromFailure) {
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding = null;
|
||||
if (!isVisible) {
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding2 = this.binding;
|
||||
if (fragmentAvisaHomeBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding2 = null;
|
||||
}
|
||||
fragmentAvisaHomeBinding2.issuesRecyclerview.setVisibility(0);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding3 = this.binding;
|
||||
if (fragmentAvisaHomeBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaHomeBinding = fragmentAvisaHomeBinding3;
|
||||
}
|
||||
fragmentAvisaHomeBinding.emptyView.setVisibility(8);
|
||||
return;
|
||||
}
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding4 = this.binding;
|
||||
if (fragmentAvisaHomeBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding4 = null;
|
||||
}
|
||||
fragmentAvisaHomeBinding4.issuesRecyclerview.setVisibility(8);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding5 = this.binding;
|
||||
if (fragmentAvisaHomeBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding5 = null;
|
||||
}
|
||||
fragmentAvisaHomeBinding5.emptyView.setVisibility(0);
|
||||
InfoData infoData = new InfoData(null, null, null, 7, null);
|
||||
if (fromFailure) {
|
||||
infoData.setTitle(getString(R.string.generic_error_title));
|
||||
infoData.setMsg(getString(R.string.generic_error_message));
|
||||
infoData.setImage(Integer.valueOf(R.drawable.ic_result_error));
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding6 = this.binding;
|
||||
if (fragmentAvisaHomeBinding6 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding6 = null;
|
||||
}
|
||||
((Button) fragmentAvisaHomeBinding6.emptyView.findViewById(R.id.action_button_retry)).setVisibility(0);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding7 = this.binding;
|
||||
if (fragmentAvisaHomeBinding7 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding7 = null;
|
||||
}
|
||||
fragmentAvisaHomeBinding7.fab.setVisibility(4);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding8 = this.binding;
|
||||
if (fragmentAvisaHomeBinding8 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaHomeBinding = fragmentAvisaHomeBinding8;
|
||||
}
|
||||
fragmentAvisaHomeBinding.emptyView.configureView(infoData);
|
||||
return;
|
||||
}
|
||||
infoData.setTitle(getString(R.string.avisa_empty_title));
|
||||
infoData.setMsg(getString(R.string.avisa_empty_message, getString(R.string.action_button_new)));
|
||||
infoData.setImage(Integer.valueOf(R.drawable.ic_result_empty));
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding9 = this.binding;
|
||||
if (fragmentAvisaHomeBinding9 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding9 = null;
|
||||
}
|
||||
((Button) fragmentAvisaHomeBinding9.emptyView.findViewById(R.id.action_button_retry)).setVisibility(8);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding10 = this.binding;
|
||||
if (fragmentAvisaHomeBinding10 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding10 = null;
|
||||
}
|
||||
fragmentAvisaHomeBinding10.fab.setVisibility(0);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding11 = this.binding;
|
||||
if (fragmentAvisaHomeBinding11 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaHomeBinding = fragmentAvisaHomeBinding11;
|
||||
}
|
||||
fragmentAvisaHomeBinding.emptyView.configureView(infoData);
|
||||
}
|
||||
|
||||
public static /* synthetic */ void emptyStatus$default(AvisaHomeFragment avisaHomeFragment, boolean z3, boolean z4, int i, Object obj) {
|
||||
if ((i & 2) != 0) {
|
||||
z4 = false;
|
||||
}
|
||||
avisaHomeFragment.emptyStatus(z3, z4);
|
||||
}
|
||||
|
||||
private final void getIncidences() {
|
||||
getViewModel().fetchIncidences();
|
||||
subscribeToIncidences();
|
||||
}
|
||||
|
||||
private final AvisaHomeViewModel getViewModel() {
|
||||
return (AvisaHomeViewModel) this.viewModel.getValue();
|
||||
}
|
||||
|
||||
private final void loading(boolean isLoading) {
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding = null;
|
||||
if (!isLoading) {
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding2 = this.binding;
|
||||
if (fragmentAvisaHomeBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaHomeBinding = fragmentAvisaHomeBinding2;
|
||||
}
|
||||
fragmentAvisaHomeBinding.loadingViewContainer.setVisibility(8);
|
||||
return;
|
||||
}
|
||||
if (this.initialDataAvailable) {
|
||||
return;
|
||||
}
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding3 = this.binding;
|
||||
if (fragmentAvisaHomeBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding3 = null;
|
||||
}
|
||||
fragmentAvisaHomeBinding3.loadingViewContainer.setVisibility(0);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding4 = this.binding;
|
||||
if (fragmentAvisaHomeBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaHomeBinding = fragmentAvisaHomeBinding4;
|
||||
}
|
||||
fragmentAvisaHomeBinding.fab.setVisibility(4);
|
||||
}
|
||||
|
||||
private final void subscribeToIncidences() {
|
||||
getViewModel().getUserListIncidences().e(getViewLifecycleOwner(), new a(this, 0));
|
||||
}
|
||||
|
||||
public static final void subscribeToIncidences$lambda$9(AvisaHomeFragment this$0, AsyncResult asyncResult) {
|
||||
Unit unit;
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
int i = WhenMappings.$EnumSwitchMapping$0[asyncResult.getStatus().ordinal()];
|
||||
if (i != 1) {
|
||||
if (i != 2) {
|
||||
if (i != 3) {
|
||||
return;
|
||||
}
|
||||
this$0.loading(true);
|
||||
return;
|
||||
} else if (!this$0.initialDataAvailable) {
|
||||
emptyStatus$default(this$0, true, false, 2, null);
|
||||
this$0.loading(false);
|
||||
return;
|
||||
} else {
|
||||
if (this$0.getContext() != null) {
|
||||
this$0.getViewModel().showErrorDialog();
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
this$0.loading(false);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding = this$0.binding;
|
||||
if (fragmentAvisaHomeBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding = null;
|
||||
}
|
||||
fragmentAvisaHomeBinding.fab.setVisibility(0);
|
||||
List list = (List) asyncResult.getData();
|
||||
if (list == null) {
|
||||
unit = null;
|
||||
} else {
|
||||
if (list.isEmpty()) {
|
||||
emptyStatus$default(this$0, true, false, 2, null);
|
||||
return;
|
||||
}
|
||||
List list2 = list;
|
||||
List<IncidenceStation> reversed = CollectionsKt.reversed(CollectionsKt.sortedWith(list2, new Comparator() { // from class: com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeFragment$subscribeToIncidences$lambda$9$lambda$7$$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(((IncidenceStation) t2).getIncidence().getCreatedTime(), ((IncidenceStation) t4).getIncidence().getCreatedTime());
|
||||
}
|
||||
}));
|
||||
emptyStatus$default(this$0, false, false, 2, null);
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = list2.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(((IncidenceStation) it.next()).getIncidence());
|
||||
}
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding2 = this$0.binding;
|
||||
if (fragmentAvisaHomeBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding2 = null;
|
||||
}
|
||||
AbstractC0220h0 adapter = fragmentAvisaHomeBinding2.issuesRecyclerview.getAdapter();
|
||||
Intrinsics.checkNotNull(adapter, "null cannot be cast to non-null type com.adif.elcanomovil.uiAvisa.components.home.IssuesAdapter");
|
||||
((IssuesAdapter) adapter).updateIssues(reversed, true);
|
||||
unit = Unit.INSTANCE;
|
||||
}
|
||||
if (unit == null) {
|
||||
emptyStatus$default(this$0, true, false, 2, null);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.uiAvisa.components.home.IssuesAdapter.OnIssueListFragmentInteractionListener
|
||||
public void onIssueInteraction(Incidence issue) {
|
||||
Intrinsics.checkNotNullParameter(issue, "issue");
|
||||
getViewModel().navigateToIncidenceDetails(issue);
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onViewCreated(View view, Bundle savedInstanceState) {
|
||||
Intrinsics.checkNotNullParameter(view, "view");
|
||||
super.onViewCreated(view, savedInstanceState);
|
||||
FragmentAvisaHomeBinding bind = FragmentAvisaHomeBinding.bind(view);
|
||||
Intrinsics.checkNotNullExpressionValue(bind, "bind(...)");
|
||||
this.binding = bind;
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding = null;
|
||||
if (bind == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
bind = null;
|
||||
}
|
||||
bind.headerAvisaHome.updateHeaderInfo(new InfoHeaderData(getString(R.string.avisa_home_view_title), Integer.valueOf(R.drawable.ic_arrow_back), null, 4, null));
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding2 = this.binding;
|
||||
if (fragmentAvisaHomeBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaHomeBinding = fragmentAvisaHomeBinding2;
|
||||
}
|
||||
fragmentAvisaHomeBinding.headerAvisaHome.setOnBackActionListener(new I1.b(this, 7));
|
||||
bindViewModel();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import o0.F;
|
||||
|
||||
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0005\u0018\u0000 \u00042\u00020\u0001:\u0002\u0004\u0005B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0006"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/home/AvisaHomeFragmentDirections;", "", "<init>", "()V", "Companion", "com/adif/elcanomovil/uiAvisa/components/home/c", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class AvisaHomeFragmentDirections {
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE = new Companion(null);
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\u0015\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004¢\u0006\u0004\b\u0007\u0010\b¨\u0006\t"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/home/AvisaHomeFragmentDirections$Companion;", "", "<init>", "()V", "", "argIdIncidence", "Lo0/F;", "toIssueDetailsFragment", "(I)Lo0/F;", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
public final F toIssueDetailsFragment(int argIdIncidence) {
|
||||
return new c(argIdIncidence);
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
private AvisaHomeFragmentDirections() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.components.FragmentComponent;
|
||||
import dagger.hilt.codegen.OriginatingElement;
|
||||
import dagger.hilt.internal.GeneratedEntryPoint;
|
||||
|
||||
@OriginatingElement(topLevelClass = AvisaHomeFragment.class)
|
||||
@GeneratedEntryPoint
|
||||
@InstallIn({FragmentComponent.class})
|
||||
/* loaded from: classes.dex */
|
||||
public interface AvisaHomeFragment_GeneratedInjector {
|
||||
void injectAvisaHomeFragment(AvisaHomeFragment avisaHomeFragment);
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,45 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.domain.usecases.avisa.incidence.GetIncidencesUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.avisa.station.GetAvisaStationCategoriesUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.avisa.station.GetAvisaStationsUseCase;
|
||||
import com.adif.elcanomovil.uiAvisa.components.authenticator.AuthenticationProvider;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.qualifiers.ApplicationContext"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class AvisaHomeViewModel_Factory implements Factory<AvisaHomeViewModel> {
|
||||
private final Provider<AuthenticationProvider> authProvider;
|
||||
private final Provider<Context> contextProvider;
|
||||
private final Provider<GetAvisaStationCategoriesUseCase> getAvisaStationCategoriesUseCaseProvider;
|
||||
private final Provider<GetIncidencesUseCase> getIncidencesUseCaseProvider;
|
||||
private final Provider<GetAvisaStationsUseCase> getStationsUseCaseProvider;
|
||||
|
||||
public AvisaHomeViewModel_Factory(Provider<GetIncidencesUseCase> provider, Provider<GetAvisaStationsUseCase> provider2, Provider<GetAvisaStationCategoriesUseCase> provider3, Provider<AuthenticationProvider> provider4, Provider<Context> provider5) {
|
||||
this.getIncidencesUseCaseProvider = provider;
|
||||
this.getStationsUseCaseProvider = provider2;
|
||||
this.getAvisaStationCategoriesUseCaseProvider = provider3;
|
||||
this.authProvider = provider4;
|
||||
this.contextProvider = provider5;
|
||||
}
|
||||
|
||||
public static AvisaHomeViewModel_Factory create(Provider<GetIncidencesUseCase> provider, Provider<GetAvisaStationsUseCase> provider2, Provider<GetAvisaStationCategoriesUseCase> provider3, Provider<AuthenticationProvider> provider4, Provider<Context> provider5) {
|
||||
return new AvisaHomeViewModel_Factory(provider, provider2, provider3, provider4, provider5);
|
||||
}
|
||||
|
||||
public static AvisaHomeViewModel newInstance(GetIncidencesUseCase getIncidencesUseCase, GetAvisaStationsUseCase getAvisaStationsUseCase, GetAvisaStationCategoriesUseCase getAvisaStationCategoriesUseCase, AuthenticationProvider authenticationProvider, Context context) {
|
||||
return new AvisaHomeViewModel(getIncidencesUseCase, getAvisaStationsUseCase, getAvisaStationCategoriesUseCase, authenticationProvider, context);
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public AvisaHomeViewModel get() {
|
||||
return newInstance(this.getIncidencesUseCaseProvider.get(), this.getStationsUseCaseProvider.get(), this.getAvisaStationCategoriesUseCaseProvider.get(), this.authProvider.get(), this.contextProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
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 = AvisaHomeViewModel.class)
|
||||
/* loaded from: classes.dex */
|
||||
public final class AvisaHomeViewModel_HiltModules {
|
||||
|
||||
@Module
|
||||
@InstallIn({ViewModelComponent.class})
|
||||
/* loaded from: classes.dex */
|
||||
public static abstract class BindsModule {
|
||||
private BindsModule() {
|
||||
}
|
||||
|
||||
@Binds
|
||||
@StringKey("com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeViewModel")
|
||||
@HiltViewModelMap
|
||||
@IntoMap
|
||||
public abstract w0 binds(AvisaHomeViewModel avisaHomeViewModel);
|
||||
}
|
||||
|
||||
@Module
|
||||
@InstallIn({ActivityRetainedComponent.class})
|
||||
/* loaded from: classes.dex */
|
||||
public static final class KeyModule {
|
||||
private KeyModule() {
|
||||
}
|
||||
|
||||
@Provides
|
||||
@HiltViewModelMap.KeySet
|
||||
@IntoSet
|
||||
public static String provide() {
|
||||
return "com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeViewModel";
|
||||
}
|
||||
}
|
||||
|
||||
private AvisaHomeViewModel_HiltModules() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeViewModel_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: classes.dex */
|
||||
public final class AvisaHomeViewModel_HiltModules_KeyModule_ProvideFactory implements Factory<String> {
|
||||
public static AvisaHomeViewModel_HiltModules_KeyModule_ProvideFactory create() {
|
||||
return n.f4919a;
|
||||
}
|
||||
|
||||
public static String provide() {
|
||||
return (String) Preconditions.checkNotNullFromProvides(AvisaHomeViewModel_HiltModules.KeyModule.provide());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public String get() {
|
||||
return provide();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import android.view.animation.AlphaAnimation;
|
||||
import android.view.animation.Animation;
|
||||
import androidx.fragment.app.K;
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0016\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J)\u0010\n\u001a\u0004\u0018\u00010\t2\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u00062\u0006\u0010\b\u001a\u00020\u0004H\u0016¢\u0006\u0004\b\n\u0010\u000bR\"\u0010\f\u001a\u00020\u00068\u0016@\u0016X\u0096\u000e¢\u0006\u0012\n\u0004\b\f\u0010\r\u001a\u0004\b\u000e\u0010\u000f\"\u0004\b\u0010\u0010\u0011R\u0014\u0010\u0013\u001a\u00020\u00128\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0013\u0010\u0014¨\u0006\u0015"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/home/ChildFragment;", "Landroidx/fragment/app/K;", "<init>", "()V", "", "transit", "", "enter", "nextAnim", "Landroid/view/animation/Animation;", "onCreateAnimation", "(IZI)Landroid/view/animation/Animation;", "shouldFadeView", "Z", "getShouldFadeView", "()Z", "setShouldFadeView", "(Z)V", "Landroid/view/animation/AlphaAnimation;", "dummyAnimation", "Landroid/view/animation/AlphaAnimation;", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public class ChildFragment extends K {
|
||||
private final AlphaAnimation dummyAnimation;
|
||||
private boolean shouldFadeView;
|
||||
|
||||
public ChildFragment() {
|
||||
AlphaAnimation alphaAnimation = new AlphaAnimation(1.0f, 1.0f);
|
||||
alphaAnimation.setDuration(1000L);
|
||||
this.dummyAnimation = alphaAnimation;
|
||||
}
|
||||
|
||||
public boolean getShouldFadeView() {
|
||||
return this.shouldFadeView;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public Animation onCreateAnimation(int transit, boolean enter, int nextAnim) {
|
||||
return (!getShouldFadeView() || enter || getParentFragment() == null) ? super.onCreateAnimation(transit, enter, nextAnim) : this.dummyAnimation;
|
||||
}
|
||||
|
||||
public void setShouldFadeView(boolean z3) {
|
||||
this.shouldFadeView = z3;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
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: classes.dex */
|
||||
public abstract class Hilt_AvisaHomeFragment extends K implements GeneratedComponentManagerHolder {
|
||||
private ContextWrapper componentContext;
|
||||
private volatile FragmentComponentManager componentManager;
|
||||
private final Object componentManagerLock;
|
||||
private boolean disableGetContextFix;
|
||||
private boolean injected;
|
||||
|
||||
public Hilt_AvisaHomeFragment() {
|
||||
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;
|
||||
((AvisaHomeFragment_GeneratedInjector) generatedComponent()).injectAvisaHomeFragment((AvisaHomeFragment) 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_AvisaHomeFragment(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,241 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.TextView;
|
||||
import androidx.recyclerview.widget.AbstractC0220h0;
|
||||
import androidx.recyclerview.widget.I0;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.Incidence;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceStation;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceStatus;
|
||||
import com.adif.elcanomovil.uiAvisa.R;
|
||||
import com.adif.elcanomovil.uiAvisa.databinding.ItemIssueListBinding;
|
||||
import com.adif.elcanomovil.uiAvisa.utils.adapter.IncidenceHelper;
|
||||
import com.google.android.gms.common.internal.ServiceSpecificExtraArgs;
|
||||
import d1.C0309c;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\b\n\u0002\u0010!\n\u0002\b\u0005\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0002\"#B\u0017\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0006\u001a\u00020\u0005¢\u0006\u0004\b\u0007\u0010\bJ\u001f\u0010\r\u001a\u00020\u00022\u0006\u0010\n\u001a\u00020\t2\u0006\u0010\f\u001a\u00020\u000bH\u0016¢\u0006\u0004\b\r\u0010\u000eJ\u000f\u0010\u000f\u001a\u00020\u000bH\u0016¢\u0006\u0004\b\u000f\u0010\u0010J%\u0010\u0017\u001a\u00020\u00162\f\u0010\u0013\u001a\b\u0012\u0004\u0012\u00020\u00120\u00112\b\b\u0002\u0010\u0015\u001a\u00020\u0014¢\u0006\u0004\b\u0017\u0010\u0018J\u001f\u0010\u001b\u001a\u00020\u00162\u0006\u0010\u0019\u001a\u00020\u00022\u0006\u0010\u001a\u001a\u00020\u000bH\u0016¢\u0006\u0004\b\u001b\u0010\u001cR\u0014\u0010\u0004\u001a\u00020\u00038\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0004\u0010\u001dR\u0014\u0010\u0006\u001a\u00020\u00058\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0006\u0010\u001eR\u001a\u0010 \u001a\b\u0012\u0004\u0012\u00020\u00120\u001f8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b \u0010!¨\u0006$"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter;", "Landroidx/recyclerview/widget/h0;", "Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$IssueViewHolder;", "Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$OnIssueListFragmentInteractionListener;", ServiceSpecificExtraArgs.CastExtraArgs.LISTENER, "Landroid/app/Activity;", "context", "<init>", "(Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$OnIssueListFragmentInteractionListener;Landroid/app/Activity;)V", "Landroid/view/ViewGroup;", "parent", "", "viewType", "onCreateViewHolder", "(Landroid/view/ViewGroup;I)Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$IssueViewHolder;", "getItemCount", "()I", "", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceStation;", "issues", "", "replacing", "", "updateIssues", "(Ljava/util/List;Z)V", "holder", "position", "onBindViewHolder", "(Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$IssueViewHolder;I)V", "Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$OnIssueListFragmentInteractionListener;", "Landroid/app/Activity;", "", "issuesList", "Ljava/util/List;", "IssueViewHolder", "OnIssueListFragmentInteractionListener", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class IssuesAdapter extends AbstractC0220h0 {
|
||||
private final Activity context;
|
||||
private final List<IncidenceStation> issuesList;
|
||||
private final OnIssueListFragmentInteractionListener listener;
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\n\u0018\u00002\u00020\u0001B\u000f\u0012\u0006\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0004\u0010\u0005J\u000f\u0010\u0007\u001a\u00020\u0006H\u0002¢\u0006\u0004\b\u0007\u0010\bJ\u001d\u0010\r\u001a\u00020\u00062\u0006\u0010\n\u001a\u00020\t2\u0006\u0010\f\u001a\u00020\u000b¢\u0006\u0004\b\r\u0010\u000eR\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u000fR\"\u0010\n\u001a\u00020\t8\u0006@\u0006X\u0086.¢\u0006\u0012\n\u0004\b\n\u0010\u0010\u001a\u0004\b\u0011\u0010\u0012\"\u0004\b\u0013\u0010\u0014¨\u0006\u0015"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$IssueViewHolder;", "Landroidx/recyclerview/widget/I0;", "Lcom/adif/elcanomovil/uiAvisa/databinding/ItemIssueListBinding;", "binding", "<init>", "(Lcom/adif/elcanomovil/uiAvisa/databinding/ItemIssueListBinding;)V", "", "populateView", "()V", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceStation;", "item", "Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$OnIssueListFragmentInteractionListener;", ServiceSpecificExtraArgs.CastExtraArgs.LISTENER, "bind", "(Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceStation;Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$OnIssueListFragmentInteractionListener;)V", "Lcom/adif/elcanomovil/uiAvisa/databinding/ItemIssueListBinding;", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceStation;", "getItem", "()Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceStation;", "setItem", "(Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceStation;)V", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final class IssueViewHolder extends I0 {
|
||||
private final ItemIssueListBinding binding;
|
||||
public IncidenceStation item;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[IncidenceStatus.values().length];
|
||||
try {
|
||||
iArr[IncidenceStatus.STATUS_TYPE_IN_PROGRESS.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[IncidenceStatus.STATUS_TYPE_SOLVED.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public IssueViewHolder(ItemIssueListBinding binding) {
|
||||
super(binding.getRoot());
|
||||
Intrinsics.checkNotNullParameter(binding, "binding");
|
||||
this.binding = binding;
|
||||
}
|
||||
|
||||
public static final void bind$lambda$0(OnIssueListFragmentInteractionListener listener, IncidenceStation item, View view) {
|
||||
Intrinsics.checkNotNullParameter(listener, "$listener");
|
||||
Intrinsics.checkNotNullParameter(item, "$item");
|
||||
listener.onIssueInteraction(item.getIncidence());
|
||||
}
|
||||
|
||||
private final void populateView() {
|
||||
Unit unit;
|
||||
String str;
|
||||
this.binding.itemId.setText(getItem().getIncidence().getIncidenceCode());
|
||||
this.binding.itemStation.setText(getItem().getAvisaStation().getName());
|
||||
TextView textView = this.binding.itemDescriptionDate;
|
||||
StringBuilder sb = new StringBuilder();
|
||||
Lazy lazy = C0309c.f6168a;
|
||||
sb.append(m3.d.o().format(getItem().getIncidence().getCreatedTime()));
|
||||
sb.append('.');
|
||||
textView.setText(sb.toString());
|
||||
this.binding.itemDescription.setText(getItem().getIncidence().getDescription());
|
||||
IncidenceStatus invoke = IncidenceStatus.INSTANCE.invoke(getItem().getIncidence().getStatusTypeId());
|
||||
int i = invoke == null ? -1 : WhenMappings.$EnumSwitchMapping$0[invoke.ordinal()];
|
||||
Unit unit2 = null;
|
||||
String str2 = null;
|
||||
Unit unit3 = null;
|
||||
if (i == 1) {
|
||||
Date estimatedDateTo = getItem().getIncidence().getEstimatedDateTo();
|
||||
if (estimatedDateTo != null) {
|
||||
this.binding.itemFixingTitle.setText(this.itemView.getContext().getString(R.string.avisa_issue_estimated_date) + ' ' + m3.d.o().format(estimatedDateTo));
|
||||
unit2 = Unit.INSTANCE;
|
||||
}
|
||||
if (unit2 == null) {
|
||||
this.binding.itemFixingTitle.setText(this.itemView.getContext().getString(R.string.avisa_issue_estimated_date));
|
||||
}
|
||||
TextView textView2 = this.binding.itemStatus;
|
||||
IncidenceHelper.Companion companion = IncidenceHelper.INSTANCE;
|
||||
Context context = this.itemView.getContext();
|
||||
Intrinsics.checkNotNullExpressionValue(context, "getContext(...)");
|
||||
textView2.setText(companion.getStringResource(context, invoke));
|
||||
this.binding.itemFixingTitle.setVisibility(0);
|
||||
this.binding.itemStatus.setBackgroundColor(D.h.getColor(this.itemView.getContext(), R.color.colour_issue_ongoing));
|
||||
this.binding.itemStatus.setTextColor(D.h.getColor(this.itemView.getContext(), R.color.white));
|
||||
return;
|
||||
}
|
||||
if (i == 2) {
|
||||
this.binding.itemFixingTitle.setVisibility(4);
|
||||
this.binding.itemStatus.setBackgroundColor(D.h.getColor(this.itemView.getContext(), R.color.colour_issue_solved));
|
||||
this.binding.itemStatus.setTextColor(D.h.getColor(this.itemView.getContext(), R.color.white));
|
||||
Date solvedDate = getItem().getIncidence().getSolvedDate();
|
||||
if (solvedDate != null) {
|
||||
StringBuilder sb2 = new StringBuilder();
|
||||
IncidenceHelper.Companion companion2 = IncidenceHelper.INSTANCE;
|
||||
Context context2 = this.itemView.getContext();
|
||||
Intrinsics.checkNotNullExpressionValue(context2, "getContext(...)");
|
||||
sb2.append(companion2.getStringResource(context2, invoke));
|
||||
sb2.append('\n');
|
||||
sb2.append(m3.d.o().format(solvedDate));
|
||||
this.binding.itemStatus.setText(sb2.toString());
|
||||
unit3 = Unit.INSTANCE;
|
||||
}
|
||||
if (unit3 == null) {
|
||||
TextView textView3 = this.binding.itemStatus;
|
||||
IncidenceHelper.Companion companion3 = IncidenceHelper.INSTANCE;
|
||||
Context context3 = this.itemView.getContext();
|
||||
Intrinsics.checkNotNullExpressionValue(context3, "getContext(...)");
|
||||
textView3.setText(companion3.getStringResource(context3, invoke));
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
this.binding.itemFixingTitle.setVisibility(4);
|
||||
this.binding.itemStatus.setBackgroundColor(D.h.getColor(this.itemView.getContext(), R.color.colour_issue_canceled));
|
||||
this.binding.itemStatus.setTextColor(D.h.getColor(this.itemView.getContext(), R.color.white));
|
||||
Date solvedDate2 = getItem().getIncidence().getSolvedDate();
|
||||
if (solvedDate2 != null) {
|
||||
StringBuilder sb3 = new StringBuilder();
|
||||
if (invoke != null) {
|
||||
IncidenceHelper.Companion companion4 = IncidenceHelper.INSTANCE;
|
||||
Context context4 = this.itemView.getContext();
|
||||
Intrinsics.checkNotNullExpressionValue(context4, "getContext(...)");
|
||||
str = companion4.getStringResource(context4, invoke);
|
||||
} else {
|
||||
str = null;
|
||||
}
|
||||
sb3.append(str);
|
||||
sb3.append('\n');
|
||||
sb3.append(m3.d.o().format(solvedDate2));
|
||||
this.binding.itemStatus.setText(sb3.toString());
|
||||
unit = Unit.INSTANCE;
|
||||
} else {
|
||||
unit = null;
|
||||
}
|
||||
if (unit == null) {
|
||||
TextView textView4 = this.binding.itemStatus;
|
||||
if (invoke != null) {
|
||||
IncidenceHelper.Companion companion5 = IncidenceHelper.INSTANCE;
|
||||
Context context5 = this.itemView.getContext();
|
||||
Intrinsics.checkNotNullExpressionValue(context5, "getContext(...)");
|
||||
str2 = companion5.getStringResource(context5, invoke);
|
||||
}
|
||||
textView4.setText(str2);
|
||||
}
|
||||
}
|
||||
|
||||
public final void bind(IncidenceStation item, OnIssueListFragmentInteractionListener r4) {
|
||||
Intrinsics.checkNotNullParameter(item, "item");
|
||||
Intrinsics.checkNotNullParameter(r4, "listener");
|
||||
setItem(item);
|
||||
populateView();
|
||||
this.itemView.setOnClickListener(new G2.l(4, r4, item));
|
||||
}
|
||||
|
||||
public final IncidenceStation getItem() {
|
||||
IncidenceStation incidenceStation = this.item;
|
||||
if (incidenceStation != null) {
|
||||
return incidenceStation;
|
||||
}
|
||||
Intrinsics.throwUninitializedPropertyAccessException("item");
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void setItem(IncidenceStation incidenceStation) {
|
||||
Intrinsics.checkNotNullParameter(incidenceStation, "<set-?>");
|
||||
this.item = incidenceStation;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\bf\u0018\u00002\u00020\u0001J\u0010\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H&¨\u0006\u0006"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$OnIssueListFragmentInteractionListener;", "", "onIssueInteraction", "", "issue", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/Incidence;", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public interface OnIssueListFragmentInteractionListener {
|
||||
void onIssueInteraction(Incidence issue);
|
||||
}
|
||||
|
||||
public IssuesAdapter(OnIssueListFragmentInteractionListener listener, Activity context) {
|
||||
Intrinsics.checkNotNullParameter(listener, "listener");
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
this.listener = listener;
|
||||
this.context = context;
|
||||
this.issuesList = new ArrayList();
|
||||
}
|
||||
|
||||
public static /* synthetic */ void updateIssues$default(IssuesAdapter issuesAdapter, List list, boolean z3, int i, Object obj) {
|
||||
if ((i & 2) != 0) {
|
||||
z3 = false;
|
||||
}
|
||||
issuesAdapter.updateIssues(list, z3);
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public int getItemCount() {
|
||||
return this.issuesList.size();
|
||||
}
|
||||
|
||||
public final void updateIssues(List<IncidenceStation> issues, boolean replacing) {
|
||||
Intrinsics.checkNotNullParameter(issues, "issues");
|
||||
if (replacing) {
|
||||
this.issuesList.clear();
|
||||
this.issuesList.addAll(issues);
|
||||
} else {
|
||||
this.issuesList.addAll(issues);
|
||||
}
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public void onBindViewHolder(IssueViewHolder holder, int position) {
|
||||
Intrinsics.checkNotNullParameter(holder, "holder");
|
||||
holder.bind(this.issuesList.get(position), this.listener);
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public IssueViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
|
||||
Intrinsics.checkNotNullParameter(parent, "parent");
|
||||
ItemIssueListBinding inflate = ItemIssueListBinding.inflate(LayoutInflater.from(this.context), parent, false);
|
||||
Intrinsics.checkNotNullExpressionValue(inflate, "inflate(...)");
|
||||
return new IssueViewHolder(inflate);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import androidx.lifecycle.Y;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final /* synthetic */ class a implements Y {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ int f4896a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeFragment f4897b;
|
||||
|
||||
public /* synthetic */ a(AvisaHomeFragment avisaHomeFragment, int i) {
|
||||
this.f4896a = i;
|
||||
this.f4897b = avisaHomeFragment;
|
||||
}
|
||||
|
||||
@Override // androidx.lifecycle.Y
|
||||
public final void onChanged(Object obj) {
|
||||
int i = this.f4896a;
|
||||
AvisaHomeFragment avisaHomeFragment = this.f4897b;
|
||||
switch (i) {
|
||||
case 0:
|
||||
AvisaHomeFragment.g(avisaHomeFragment, (AsyncResult) obj);
|
||||
return;
|
||||
case 1:
|
||||
AvisaHomeFragment.j(avisaHomeFragment, (List) obj);
|
||||
return;
|
||||
default:
|
||||
AvisaHomeFragment.h(avisaHomeFragment, (Boolean) obj);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import C.w;
|
||||
import android.os.Bundle;
|
||||
import com.adif.elcanomovil.commonNavGraph.R;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.NavArguments;
|
||||
import o0.F;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class c implements F {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final int f4900a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final int f4901b = R.id.to_issueDetailsFragment;
|
||||
|
||||
public c(int i) {
|
||||
this.f4900a = i;
|
||||
}
|
||||
|
||||
public final boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
return (obj instanceof c) && this.f4900a == ((c) obj).f4900a;
|
||||
}
|
||||
|
||||
@Override // o0.F
|
||||
public final int getActionId() {
|
||||
return this.f4901b;
|
||||
}
|
||||
|
||||
@Override // o0.F
|
||||
public final Bundle getArguments() {
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putInt(NavArguments.ARG_AVISA_INCIDENCE_ID, this.f4900a);
|
||||
return bundle;
|
||||
}
|
||||
|
||||
public final int hashCode() {
|
||||
return Integer.hashCode(this.f4900a);
|
||||
}
|
||||
|
||||
public final String toString() {
|
||||
return w.p(new StringBuilder("ToIssueDetailsFragment(argIdIncidence="), this.f4900a, ')');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.adif.elcanomovil.domain.entities.utils.Status;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class d implements FlowCollector {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public static final d f4902a = new Object();
|
||||
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
public final Object emit(Object obj, Continuation continuation) {
|
||||
AsyncResult asyncResult = (AsyncResult) obj;
|
||||
if (asyncResult.getStatus() != Status.SUCCESS && asyncResult.getStatus() == Status.ERROR) {
|
||||
Intrinsics.checkNotNullParameter("FAIL Load Categoories", "message");
|
||||
t3.c.f8551a.e("FAIL Load Categoories", new Object[0]);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class e extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4903a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeViewModel f4904b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public e(AvisaHomeViewModel avisaHomeViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4904b = avisaHomeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new e(this.f4904b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((e) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:13:0x003a, code lost:
|
||||
|
||||
if (((kotlinx.coroutines.flow.Flow) r5).collect(r1, r4) == r0) goto L15;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x003c, code lost:
|
||||
|
||||
return r0;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:16:0x002d, code lost:
|
||||
|
||||
if (r5 == r0) goto L15;
|
||||
*/
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r5) {
|
||||
/*
|
||||
r4 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r4.f4903a
|
||||
r2 = 2
|
||||
r3 = 1
|
||||
if (r1 == 0) goto L1e
|
||||
if (r1 == r3) goto L1a
|
||||
if (r1 != r2) goto L12
|
||||
kotlin.ResultKt.throwOnFailure(r5)
|
||||
goto L3d
|
||||
L12:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L1a:
|
||||
kotlin.ResultKt.throwOnFailure(r5)
|
||||
goto L30
|
||||
L1e:
|
||||
kotlin.ResultKt.throwOnFailure(r5)
|
||||
com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeViewModel r5 = r4.f4904b
|
||||
com.adif.elcanomovil.domain.usecases.avisa.station.GetAvisaStationCategoriesUseCase r5 = com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeViewModel.access$getGetAvisaStationCategoriesUseCase$p(r5)
|
||||
r4.f4903a = r3
|
||||
java.lang.Object r5 = r5.invoke(r4)
|
||||
if (r5 != r0) goto L30
|
||||
goto L3c
|
||||
L30:
|
||||
kotlinx.coroutines.flow.Flow r5 = (kotlinx.coroutines.flow.Flow) r5
|
||||
com.adif.elcanomovil.uiAvisa.components.home.d r1 = com.adif.elcanomovil.uiAvisa.components.home.d.f4902a
|
||||
r4.f4903a = r2
|
||||
java.lang.Object r4 = r5.collect(r1, r4)
|
||||
if (r4 != r0) goto L3d
|
||||
L3c:
|
||||
return r0
|
||||
L3d:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiAvisa.components.home.e.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
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.BuildersKt;
|
||||
import kotlinx.coroutines.CoroutineDispatcher;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class f extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4905a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeViewModel f4906b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public f(AvisaHomeViewModel avisaHomeViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4906b = avisaHomeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new f(this.f4906b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((f) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4905a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
CoroutineDispatcher io = Dispatchers.getIO();
|
||||
e eVar = new e(this.f4906b, null);
|
||||
this.f4905a = 1;
|
||||
if (BuildersKt.withContext(io, eVar, 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,63 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import androidx.lifecycle.W;
|
||||
import androidx.lifecycle.X;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.adif.elcanomovil.domain.entities.utils.Status;
|
||||
import java.util.List;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.Boxing;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class g implements FlowCollector {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ int f4907a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeViewModel f4908b;
|
||||
|
||||
public /* synthetic */ g(AvisaHomeViewModel avisaHomeViewModel, int i) {
|
||||
this.f4907a = i;
|
||||
this.f4908b = avisaHomeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
public final Object emit(Object obj, Continuation continuation) {
|
||||
W w3;
|
||||
W w4;
|
||||
X x3;
|
||||
W w5;
|
||||
X x4;
|
||||
switch (this.f4907a) {
|
||||
case 0:
|
||||
w3 = this.f4908b._userListIncidences;
|
||||
w3.k((AsyncResult) obj);
|
||||
return Unit.INSTANCE;
|
||||
default:
|
||||
AsyncResult asyncResult = (AsyncResult) obj;
|
||||
Status status = asyncResult.getStatus();
|
||||
Status status2 = Status.SUCCESS;
|
||||
AvisaHomeViewModel avisaHomeViewModel = this.f4908b;
|
||||
if (status == status2) {
|
||||
w5 = avisaHomeViewModel._stationsList;
|
||||
List list = (List) asyncResult.getData();
|
||||
if (list == null) {
|
||||
list = CollectionsKt.emptyList();
|
||||
}
|
||||
w5.k(list);
|
||||
x4 = avisaHomeViewModel.canContinue;
|
||||
x4.k(Boxing.boxBoolean(true));
|
||||
} else if (asyncResult.getStatus() == Status.ERROR) {
|
||||
w4 = avisaHomeViewModel._stationsList;
|
||||
w4.k(CollectionsKt.emptyList());
|
||||
x3 = avisaHomeViewModel.canContinue;
|
||||
x3.k(Boxing.boxBoolean(false));
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class h extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4909a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeViewModel f4910b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public h(AvisaHomeViewModel avisaHomeViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4910b = avisaHomeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new h(this.f4910b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((h) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:13:0x003e, code lost:
|
||||
|
||||
if (((kotlinx.coroutines.flow.Flow) r6).collect(r1, r5) == r0) goto L15;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x0040, code lost:
|
||||
|
||||
return r0;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:16:0x002d, code lost:
|
||||
|
||||
if (r6 == r0) goto L15;
|
||||
*/
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r6) {
|
||||
/*
|
||||
r5 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r5.f4909a
|
||||
com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeViewModel r2 = r5.f4910b
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r1 == 0) goto L20
|
||||
if (r1 == r4) goto L1c
|
||||
if (r1 != r3) goto L14
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L41
|
||||
L14:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L1c:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L30
|
||||
L20:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
com.adif.elcanomovil.domain.usecases.avisa.incidence.GetIncidencesUseCase r6 = com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeViewModel.access$getGetIncidencesUseCase$p(r2)
|
||||
r5.f4909a = r4
|
||||
java.lang.Object r6 = r6.invoke(r5)
|
||||
if (r6 != r0) goto L30
|
||||
goto L40
|
||||
L30:
|
||||
kotlinx.coroutines.flow.Flow r6 = (kotlinx.coroutines.flow.Flow) r6
|
||||
com.adif.elcanomovil.uiAvisa.components.home.g r1 = new com.adif.elcanomovil.uiAvisa.components.home.g
|
||||
r4 = 0
|
||||
r1.<init>(r2, r4)
|
||||
r5.f4909a = r3
|
||||
java.lang.Object r5 = r6.collect(r1, r5)
|
||||
if (r5 != r0) goto L41
|
||||
L40:
|
||||
return r0
|
||||
L41:
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiAvisa.components.home.h.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
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.BuildersKt;
|
||||
import kotlinx.coroutines.CoroutineDispatcher;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class i extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4911a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeViewModel f4912b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public i(AvisaHomeViewModel avisaHomeViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4912b = avisaHomeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new i(this.f4912b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((i) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4911a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
CoroutineDispatcher io = Dispatchers.getIO();
|
||||
h hVar = new h(this.f4912b, null);
|
||||
this.f4911a = 1;
|
||||
if (BuildersKt.withContext(io, hVar, 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,95 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class j extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4913a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeViewModel f4914b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public j(AvisaHomeViewModel avisaHomeViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4914b = avisaHomeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new j(this.f4914b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((j) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:13:0x003e, code lost:
|
||||
|
||||
if (((kotlinx.coroutines.flow.Flow) r6).collect(r1, r5) == r0) goto L15;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x0040, code lost:
|
||||
|
||||
return r0;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:16:0x002d, code lost:
|
||||
|
||||
if (r6 == r0) goto L15;
|
||||
*/
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r6) {
|
||||
/*
|
||||
r5 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r5.f4913a
|
||||
com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeViewModel r2 = r5.f4914b
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r1 == 0) goto L20
|
||||
if (r1 == r4) goto L1c
|
||||
if (r1 != r3) goto L14
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L41
|
||||
L14:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L1c:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L30
|
||||
L20:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
com.adif.elcanomovil.domain.usecases.avisa.station.GetAvisaStationsUseCase r6 = com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeViewModel.access$getGetStationsUseCase$p(r2)
|
||||
r5.f4913a = r4
|
||||
java.lang.Object r6 = r6.invoke(r5)
|
||||
if (r6 != r0) goto L30
|
||||
goto L40
|
||||
L30:
|
||||
kotlinx.coroutines.flow.Flow r6 = (kotlinx.coroutines.flow.Flow) r6
|
||||
com.adif.elcanomovil.uiAvisa.components.home.g r1 = new com.adif.elcanomovil.uiAvisa.components.home.g
|
||||
r4 = 1
|
||||
r1.<init>(r2, r4)
|
||||
r5.f4913a = r3
|
||||
java.lang.Object r5 = r6.collect(r1, r5)
|
||||
if (r5 != r0) goto L41
|
||||
L40:
|
||||
return r0
|
||||
L41:
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiAvisa.components.home.j.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
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.BuildersKt;
|
||||
import kotlinx.coroutines.CoroutineDispatcher;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class k extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4915a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeViewModel f4916b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public k(AvisaHomeViewModel avisaHomeViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4916b = avisaHomeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new k(this.f4916b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((k) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4915a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
CoroutineDispatcher io = Dispatchers.getIO();
|
||||
j jVar = new j(this.f4916b, null);
|
||||
this.f4915a = 1;
|
||||
if (BuildersKt.withContext(io, jVar, 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,32 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertAction;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertActions;
|
||||
import com.adif.elcanomovil.uiAvisa.R;
|
||||
import com.adif.elcanomovil.uiAvisa.components.details.IssueDetailsViewModelKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class l extends Lambda implements Function0 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeViewModel f4917a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public l(AvisaHomeViewModel avisaHomeViewModel) {
|
||||
super(0);
|
||||
this.f4917a = avisaHomeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Object invoke() {
|
||||
Context context;
|
||||
context = this.f4917a.context;
|
||||
String string = context.getString(R.string.stations_avisa_dialog_positive);
|
||||
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
|
||||
return new AlertActions(IssueDetailsViewModelKt.AVISA_GENERIC_ERROR, new AlertAction(string, AlertAction.Style.POSITIVE));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import com.adif.elcanomovil.uiAvisa.components.authenticator.AuthenticationProvider;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class m extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeViewModel f4918a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public m(AvisaHomeViewModel avisaHomeViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4918a = avisaHomeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new m(this.f4918a, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((m) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
AuthenticationProvider authenticationProvider;
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
AvisaHomeViewModel avisaHomeViewModel = this.f4918a;
|
||||
authenticationProvider = avisaHomeViewModel.authProvider;
|
||||
authenticationProvider.handleAuthentication(new J0.e(avisaHomeViewModel, 7));
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class n {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public static final AvisaHomeViewModel_HiltModules_KeyModule_ProvideFactory f4919a = new AvisaHomeViewModel_HiltModules_KeyModule_ProvideFactory();
|
||||
}
|
||||
Reference in New Issue
Block a user