package com.sistemasolton.itranvias.home.presentation.nearby;

import androidx.compose.foundation.BackgroundKt;
import androidx.compose.foundation.ClickableKt;
import androidx.compose.foundation.layout.Arrangement;
import androidx.compose.foundation.layout.BoxKt;
import androidx.compose.foundation.layout.BoxScopeInstance;
import androidx.compose.foundation.layout.ColumnKt;
import androidx.compose.foundation.layout.ColumnScope;
import androidx.compose.foundation.layout.ColumnScopeInstance;
import androidx.compose.foundation.layout.PaddingKt;
import androidx.compose.foundation.layout.RowKt;
import androidx.compose.foundation.layout.RowScope;
import androidx.compose.foundation.layout.RowScopeInstance;
import androidx.compose.foundation.layout.SizeKt;
import androidx.compose.foundation.layout.SpacerKt;
import androidx.compose.foundation.lazy.LazyDslKt;
import androidx.compose.foundation.lazy.LazyListScope;
import androidx.compose.foundation.shape.RoundedCornerShape;
import androidx.compose.foundation.shape.RoundedCornerShapeKt;
import androidx.compose.material.icons.Icons;
import androidx.compose.material.icons.filled.FullscreenExitKt;
import androidx.compose.material.icons.filled.FullscreenKt;
import androidx.compose.material3.ButtonKt;
import androidx.compose.material3.FloatingActionButtonKt;
import androidx.compose.material3.IconKt;
import androidx.compose.material3.MaterialTheme;
import androidx.compose.material3.TextKt;
import androidx.compose.runtime.Applier;
import androidx.compose.runtime.ComposablesKt;
import androidx.compose.runtime.Composer;
import androidx.compose.runtime.ComposerKt;
import androidx.compose.runtime.CompositionLocalMap;
import androidx.compose.runtime.EffectsKt;
import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.RecomposeScopeImplKt;
import androidx.compose.runtime.ScopeUpdateScope;
import androidx.compose.runtime.SnapshotStateKt__SnapshotStateKt;
import androidx.compose.runtime.Updater;
import androidx.compose.runtime.internal.ComposableLambdaKt;
import androidx.compose.ui.Alignment;
import androidx.compose.ui.ComposedModifierKt;
import androidx.compose.ui.Modifier;
import androidx.compose.ui.draw.ClipKt;
import androidx.compose.ui.graphics.Color;
import androidx.compose.ui.graphics.ColorKt;
import androidx.compose.ui.layout.MeasurePolicy;
import androidx.compose.ui.node.ComposeUiNode;
import androidx.compose.ui.semantics.Role;
import androidx.compose.ui.semantics.SemanticsModifierKt;
import androidx.compose.ui.semantics.SemanticsPropertiesKt;
import androidx.compose.ui.semantics.SemanticsPropertyReceiver;
import androidx.compose.ui.text.TextLayoutResult;
import androidx.compose.ui.text.TextStyle;
import androidx.compose.ui.text.font.FontFamily;
import androidx.compose.ui.text.font.FontStyle;
import androidx.compose.ui.text.font.FontWeight;
import androidx.compose.ui.text.style.TextAlign;
import androidx.compose.ui.text.style.TextDecoration;
import androidx.compose.ui.unit.Dp;
import androidx.compose.ui.unit.TextUnitKt;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelStoreOwner;
import androidx.lifecycle.viewmodel.compose.LocalViewModelStoreOwner;
import androidx.profileinstaller.ProfileVerifier;
import com.sistemasolton.itranvias.core.presentation.ConnectionErrorScreenKt;
import com.sistemasolton.itranvias.core.presentation.LoadingScreenKt;
import com.sistemasolton.itranvias.home.data.remote.dto.infodto.InfoDto;
import com.sistemasolton.itranvias.home.data.remote.dto.infodto.LineaDto;
import com.sistemasolton.itranvias.home.data.remote.dto.infodto.ParadaDto;
import com.sistemasolton.itranvias.home.data.remote.dto.infodto.RutaDto;
import com.sistemasolton.itranvias.home.data.remote.dto.nearbystopdto.NearbyStopsDto;
import com.sistemasolton.itranvias.home.data.remote.dto.nearbystopdto.PosGpsItem;
import com.sistemasolton.itranvias.home.presentation.lines.LinesScreenKt;
import com.sistemasolton.itranvias.home.presentation.nearby.LocationState;
import dev.jordond.compass.geolocation.Geolocator;
import dev.jordond.compass.geolocation.MobileGeolocatorKt;
import itranvias.composeapp.generated.resources.Res;
import itranvias.composeapp.generated.resources.String0_commonMainKt;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.collections.CollectionsKt;
import kotlin.collections.MapsKt;
import kotlin.comparisons.ComparisonsKt;
import kotlin.coroutines.Continuation;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import kotlin.ranges.RangesKt;
import kotlinx.coroutines.CoroutineScope;
import org.jetbrains.compose.resources.StringResourcesKt;
import org.koin.compose.KoinApplicationKt;
import org.koin.viewmodel.CreationExtrasExtKt;
import org.koin.viewmodel.GetViewModelKt;

/* JADX INFO: compiled from: NearbyScreen.kt */
/* JADX INFO: loaded from: classes2.dex */
@Metadata(d1 = {"\u0000V\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u0006\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\u001a!\u0010\u0000\u001a\u00020\u00012\u0012\u0010\u0002\u001a\u000e\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00010\u0003H\u0007¢\u0006\u0002\u0010\u0005\u001a.\u0010\u0006\u001a\u00020\u00072\u0012\u0010\b\u001a\u000e\u0012\u0004\u0012\u00020\u0007\u0012\u0004\u0012\u00020\u00070\t2\u0012\u0010\n\u001a\u000e\u0012\u0004\u0012\u00020\u0007\u0012\u0004\u0012\u00020\u00070\t\u001a\n\u0010\u000b\u001a\u00020\u0007*\u00020\u0007\u001a#\u0010\f\u001a\u00020\u00012\u0006\u0010\r\u001a\u00020\u000e2\f\u0010\u000f\u001a\b\u0012\u0004\u0012\u00020\u00010\u0010H\u0007¢\u0006\u0002\u0010\u0011\u001a\u001c\u0010\u0012\u001a\b\u0012\u0004\u0012\u00020\u000e0\u00132\u0006\u0010\u0014\u001a\u00020\u00152\u0006\u0010\u0016\u001a\u00020\u0017\u001a\r\u0010\u0018\u001a\u00020\u0019H\u0007¢\u0006\u0002\u0010\u001a¨\u0006\u001b²\u0006\n\u0010\u001c\u001a\u00020\u001dX\u008a\u008e\u0002²\u0006\u0018\u0010\u001e\u001a\u0010\u0012\u0004\u0012\u00020\u0007\u0012\u0004\u0012\u00020\u0007\u0018\u00010\tX\u008a\u008e\u0002²\u0006\n\u0010\u001f\u001a\u00020 X\u008a\u008e\u0002"}, d2 = {"NearbyScreen", "", "onStopDetail", "Lkotlin/Function1;", "", "(Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;I)V", "distanceBetween", "", "from", "Lkotlin/Pair;", "to", "toRadians", "ParadaItem", "paradaConDistancia", "Lcom/sistemasolton/itranvias/home/presentation/nearby/ParadaConDistancia;", "onClick", "Lkotlin/Function0;", "(Lcom/sistemasolton/itranvias/home/presentation/nearby/ParadaConDistancia;Lkotlin/jvm/functions/Function0;Landroidx/compose/runtime/Composer;I)V", "getParadasCercanas", "", "info", "Lcom/sistemasolton/itranvias/home/data/remote/dto/infodto/InfoDto;", "nearby", "Lcom/sistemasolton/itranvias/home/data/remote/dto/nearbystopdto/NearbyStopsDto;", "rememberSettingsController", "Lcom/sistemasolton/itranvias/home/presentation/nearby/SettingsState;", "(Landroidx/compose/runtime/Composer;I)Lcom/sistemasolton/itranvias/home/presentation/nearby/SettingsState;", "composeApp_release", "locationState", "Lcom/sistemasolton/itranvias/home/presentation/nearby/LocationState;", "lastFetchCoords", "expanded", ""}, k = 2, mv = {2, 1, 0}, xi = 48)
public final class NearbyScreenKt {
    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit NearbyScreen$lambda$44(Function1 function1, int i, Composer composer, int i2) {
        NearbyScreen(function1, composer, RecomposeScopeImplKt.updateChangedFlags(i | 1));
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit ParadaItem$lambda$57(ParadaConDistancia paradaConDistancia, Function0 function0, int i, Composer composer, int i2) {
        ParadaItem(paradaConDistancia, function0, composer, RecomposeScopeImplKt.updateChangedFlags(i | 1));
        return Unit.INSTANCE;
    }

    public static final double toRadians(double d) {
        return (d * 3.141592653589793d) / 180.0d;
    }

    /* JADX WARN: Type inference failed for: r9v31 */
    /* JADX WARN: Type inference failed for: r9v6 */
    /* JADX WARN: Type inference failed for: r9v7, types: [boolean, int] */
    /* JADX WARN: Type inference fix 'apply assigned field type' failed
    java.lang.UnsupportedOperationException: ArgType.getObject(), call class: class jadx.core.dex.instructions.args.ArgType$PrimitiveArg
    	at jadx.core.dex.instructions.args.ArgType.getObject(ArgType.java:593)
    	at jadx.core.dex.attributes.nodes.ClassTypeVarsAttr.getTypeVarsMapFor(ClassTypeVarsAttr.java:35)
    	at jadx.core.dex.nodes.utils.TypeUtils.replaceClassGenerics(TypeUtils.java:177)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.insertExplicitUseCast(FixTypesVisitor.java:397)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.tryFieldTypeWithNewCasts(FixTypesVisitor.java:359)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.applyFieldType(FixTypesVisitor.java:309)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.visit(FixTypesVisitor.java:94)
     */
    public static final void NearbyScreen(final Function1<? super String, Unit> onStopDetail, Composer composer, final int i) {
        int i2;
        List<ParadaConDistancia> listEmptyList;
        ?? r9;
        Modifier modifierSemantics$default;
        int i3;
        Intrinsics.checkNotNullParameter(onStopDetail, "onStopDetail");
        Composer composerStartRestartGroup = composer.startRestartGroup(-1900117714);
        if ((i & 6) == 0) {
            i2 = (composerStartRestartGroup.changedInstance(onStopDetail) ? 4 : 2) | i;
        } else {
            i2 = i;
        }
        if ((i2 & 3) != 2 || !composerStartRestartGroup.getSkipping()) {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(-1900117714, i2, -1, "com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreen (NearbyScreen.kt:76)");
            }
            composerStartRestartGroup.startReplaceGroup(-924953623);
            ViewModelStoreOwner current = LocalViewModelStoreOwner.INSTANCE.getCurrent(composerStartRestartGroup, LocalViewModelStoreOwner.$stable);
            if (current == null) {
                throw new IllegalStateException("No ViewModelStoreOwner was provided via LocalViewModelStoreOwner".toString());
            }
            ViewModel viewModelResolveViewModel = GetViewModelKt.resolveViewModel(Reflection.getOrCreateKotlinClass(NearbyViewModel.class), current.getViewModelStore(), null, CreationExtrasExtKt.defaultExtras(current), null, KoinApplicationKt.currentKoinScope(composerStartRestartGroup, 0), null);
            composerStartRestartGroup.endReplaceGroup();
            final NearbyViewModel nearbyViewModel = (NearbyViewModel) viewModelResolveViewModel;
            NearbyState state = nearbyViewModel.getState();
            final SettingsState settingsStateRememberSettingsController = rememberSettingsController(composerStartRestartGroup, 0);
            composerStartRestartGroup.startReplaceGroup(1849434622);
            Object objRememberedValue = composerStartRestartGroup.rememberedValue();
            if (objRememberedValue == Composer.INSTANCE.getEmpty()) {
                objRememberedValue = MobileGeolocatorKt.mobile$default(Geolocator.INSTANCE, null, null, 3, null);
                composerStartRestartGroup.updateRememberedValue(objRememberedValue);
            }
            Geolocator geolocator = (Geolocator) objRememberedValue;
            composerStartRestartGroup.endReplaceGroup();
            composerStartRestartGroup.startReplaceGroup(1849434622);
            Object objRememberedValue2 = composerStartRestartGroup.rememberedValue();
            if (objRememberedValue2 == Composer.INSTANCE.getEmpty()) {
                objRememberedValue2 = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(LocationState.Loading.INSTANCE, null, 2, null);
                composerStartRestartGroup.updateRememberedValue(objRememberedValue2);
            }
            MutableState mutableState = (MutableState) objRememberedValue2;
            composerStartRestartGroup.endReplaceGroup();
            composerStartRestartGroup.startReplaceGroup(1849434622);
            Object objRememberedValue3 = composerStartRestartGroup.rememberedValue();
            if (objRememberedValue3 == Composer.INSTANCE.getEmpty()) {
                objRememberedValue3 = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(null, null, 2, null);
                composerStartRestartGroup.updateRememberedValue(objRememberedValue3);
            }
            MutableState mutableState2 = (MutableState) objRememberedValue3;
            composerStartRestartGroup.endReplaceGroup();
            String strStringResource = StringResourcesKt.stringResource(String0_commonMainKt.getLocation_not_supported(Res.string.INSTANCE), composerStartRestartGroup, 0);
            String strStringResource2 = StringResourcesKt.stringResource(String0_commonMainKt.getLocation_not_found(Res.string.INSTANCE), composerStartRestartGroup, 0);
            String strStringResource3 = StringResourcesKt.stringResource(String0_commonMainKt.getPermission_denied(Res.string.INSTANCE), composerStartRestartGroup, 0);
            String strStringResource4 = StringResourcesKt.stringResource(String0_commonMainKt.getGeolocation_failed(Res.string.INSTANCE), composerStartRestartGroup, 0);
            Unit unit = Unit.INSTANCE;
            composerStartRestartGroup.startReplaceGroup(-1224400529);
            boolean zChangedInstance = composerStartRestartGroup.changedInstance(geolocator) | composerStartRestartGroup.changed(strStringResource) | composerStartRestartGroup.changed(strStringResource2) | composerStartRestartGroup.changed(strStringResource3) | composerStartRestartGroup.changed(strStringResource4);
            NearbyScreenKt$NearbyScreen$1$1 nearbyScreenKt$NearbyScreen$1$1RememberedValue = composerStartRestartGroup.rememberedValue();
            if (zChangedInstance || nearbyScreenKt$NearbyScreen$1$1RememberedValue == Composer.INSTANCE.getEmpty()) {
                nearbyScreenKt$NearbyScreen$1$1RememberedValue = new NearbyScreenKt$NearbyScreen$1$1(geolocator, strStringResource, strStringResource2, strStringResource3, strStringResource4, mutableState, mutableState2, 50, null);
                composerStartRestartGroup.updateRememberedValue(nearbyScreenKt$NearbyScreen$1$1RememberedValue);
            }
            composerStartRestartGroup.endReplaceGroup();
            EffectsKt.LaunchedEffect(unit, (Function2<? super CoroutineScope, ? super Continuation<? super Unit>, ? extends Object>) nearbyScreenKt$NearbyScreen$1$1RememberedValue, composerStartRestartGroup, 6);
            final LocationState locationStateNearbyScreen$lambda$2 = NearbyScreen$lambda$2(mutableState);
            int i4 = i2;
            if (locationStateNearbyScreen$lambda$2 instanceof LocationState.Loading) {
                composerStartRestartGroup.startReplaceGroup(1264689011);
                Modifier modifierM257backgroundbw27NRU$default = BackgroundKt.m257backgroundbw27NRU$default(SizeKt.fillMaxSize$default(Modifier.INSTANCE, 0.0f, 1, null), MaterialTheme.INSTANCE.getColorScheme(composerStartRestartGroup, MaterialTheme.$stable).getBackground(), null, 2, null);
                composerStartRestartGroup.startReplaceGroup(1849434622);
                Object objRememberedValue4 = composerStartRestartGroup.rememberedValue();
                if (objRememberedValue4 == Composer.INSTANCE.getEmpty()) {
                    objRememberedValue4 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$$ExternalSyntheticLambda11
                        @Override // kotlin.jvm.functions.Function1
                        public final Object invoke(Object obj) {
                            return NearbyScreenKt.NearbyScreen$lambda$9$lambda$8((SemanticsPropertyReceiver) obj);
                        }
                    };
                    composerStartRestartGroup.updateRememberedValue(objRememberedValue4);
                }
                composerStartRestartGroup.endReplaceGroup();
                Modifier modifierSemantics$default2 = SemanticsModifierKt.semantics$default(modifierM257backgroundbw27NRU$default, false, (Function1) objRememberedValue4, 1, null);
                Alignment center = Alignment.INSTANCE.getCenter();
                ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 1042775818, "CC(Box)N(modifier,contentAlignment,propagateMinConstraints,content)71@3424L131:Box.kt#2w3rfo");
                MeasurePolicy measurePolicyMaybeCachedBoxMeasurePolicy = BoxKt.maybeCachedBoxMeasurePolicy(center, false);
                ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -1159599143, "CC(Layout)P(!1,2)80@3267L27,83@3433L360:Layout.kt#80mrfh");
                int iHashCode = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composerStartRestartGroup, 0));
                CompositionLocalMap currentCompositionLocalMap = composerStartRestartGroup.getCurrentCompositionLocalMap();
                Modifier modifierMaterializeModifier = ComposedModifierKt.materializeModifier(composerStartRestartGroup, modifierSemantics$default2);
                Function0<ComposeUiNode> constructor = ComposeUiNode.INSTANCE.getConstructor();
                ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -553112988, "CC(ReusableComposeNode)N(factory,update,content)399@15590L9:Composables.kt#9igjgp");
                if (!(composerStartRestartGroup.getApplier() instanceof Applier)) {
                    ComposablesKt.invalidApplier();
                }
                composerStartRestartGroup.startReusableNode();
                if (composerStartRestartGroup.getInserting()) {
                    composerStartRestartGroup.createNode(constructor);
                } else {
                    composerStartRestartGroup.useNode();
                }
                Composer composerM3820constructorimpl = Updater.m3820constructorimpl(composerStartRestartGroup);
                Updater.m3827setimpl(composerM3820constructorimpl, measurePolicyMaybeCachedBoxMeasurePolicy, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
                Updater.m3827setimpl(composerM3820constructorimpl, currentCompositionLocalMap, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
                Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
                if (composerM3820constructorimpl.getInserting() || !Intrinsics.areEqual(composerM3820constructorimpl.rememberedValue(), Integer.valueOf(iHashCode))) {
                    composerM3820constructorimpl.updateRememberedValue(Integer.valueOf(iHashCode));
                    composerM3820constructorimpl.apply(Integer.valueOf(iHashCode), setCompositeKeyHash);
                }
                Updater.m3827setimpl(composerM3820constructorimpl, modifierMaterializeModifier, ComposeUiNode.INSTANCE.getSetModifier());
                ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 1833054614, "C72@3469L9:Box.kt#2w3rfo");
                BoxScopeInstance boxScopeInstance = BoxScopeInstance.INSTANCE;
                LoadingScreenKt.LoadingScreen(composerStartRestartGroup, 0);
                ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                composerStartRestartGroup.endNode();
                ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                composerStartRestartGroup.endReplaceGroup();
            } else if (locationStateNearbyScreen$lambda$2 instanceof LocationState.Error) {
                composerStartRestartGroup.startReplaceGroup(1265168550);
                Modifier modifierM257backgroundbw27NRU$default2 = BackgroundKt.m257backgroundbw27NRU$default(SizeKt.fillMaxSize$default(Modifier.INSTANCE, 0.0f, 1, null), MaterialTheme.INSTANCE.getColorScheme(composerStartRestartGroup, MaterialTheme.$stable).getBackground(), null, 2, null);
                composerStartRestartGroup.startReplaceGroup(5004770);
                boolean zChangedInstance2 = composerStartRestartGroup.changedInstance(locationStateNearbyScreen$lambda$2);
                Object objRememberedValue5 = composerStartRestartGroup.rememberedValue();
                if (zChangedInstance2 || objRememberedValue5 == Composer.INSTANCE.getEmpty()) {
                    objRememberedValue5 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$$ExternalSyntheticLambda15
                        @Override // kotlin.jvm.functions.Function1
                        public final Object invoke(Object obj) {
                            return NearbyScreenKt.NearbyScreen$lambda$12$lambda$11(locationStateNearbyScreen$lambda$2, (SemanticsPropertyReceiver) obj);
                        }
                    };
                    composerStartRestartGroup.updateRememberedValue(objRememberedValue5);
                }
                composerStartRestartGroup.endReplaceGroup();
                Modifier modifierSemantics$default3 = SemanticsModifierKt.semantics$default(modifierM257backgroundbw27NRU$default2, false, (Function1) objRememberedValue5, 1, null);
                Alignment center2 = Alignment.INSTANCE.getCenter();
                ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 1042775818, "CC(Box)N(modifier,contentAlignment,propagateMinConstraints,content)71@3424L131:Box.kt#2w3rfo");
                MeasurePolicy measurePolicyMaybeCachedBoxMeasurePolicy2 = BoxKt.maybeCachedBoxMeasurePolicy(center2, false);
                ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -1159599143, "CC(Layout)P(!1,2)80@3267L27,83@3433L360:Layout.kt#80mrfh");
                int iHashCode2 = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composerStartRestartGroup, 0));
                CompositionLocalMap currentCompositionLocalMap2 = composerStartRestartGroup.getCurrentCompositionLocalMap();
                Modifier modifierMaterializeModifier2 = ComposedModifierKt.materializeModifier(composerStartRestartGroup, modifierSemantics$default3);
                Function0<ComposeUiNode> constructor2 = ComposeUiNode.INSTANCE.getConstructor();
                ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -553112988, "CC(ReusableComposeNode)N(factory,update,content)399@15590L9:Composables.kt#9igjgp");
                if (!(composerStartRestartGroup.getApplier() instanceof Applier)) {
                    ComposablesKt.invalidApplier();
                }
                composerStartRestartGroup.startReusableNode();
                if (composerStartRestartGroup.getInserting()) {
                    composerStartRestartGroup.createNode(constructor2);
                } else {
                    composerStartRestartGroup.useNode();
                }
                Composer composerM3820constructorimpl2 = Updater.m3820constructorimpl(composerStartRestartGroup);
                Updater.m3827setimpl(composerM3820constructorimpl2, measurePolicyMaybeCachedBoxMeasurePolicy2, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
                Updater.m3827setimpl(composerM3820constructorimpl2, currentCompositionLocalMap2, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
                Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash2 = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
                if (composerM3820constructorimpl2.getInserting() || !Intrinsics.areEqual(composerM3820constructorimpl2.rememberedValue(), Integer.valueOf(iHashCode2))) {
                    composerM3820constructorimpl2.updateRememberedValue(Integer.valueOf(iHashCode2));
                    composerM3820constructorimpl2.apply(Integer.valueOf(iHashCode2), setCompositeKeyHash2);
                }
                Updater.m3827setimpl(composerM3820constructorimpl2, modifierMaterializeModifier2, ComposeUiNode.INSTANCE.getSetModifier());
                ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 1833054614, "C72@3469L9:Box.kt#2w3rfo");
                BoxScopeInstance boxScopeInstance2 = BoxScopeInstance.INSTANCE;
                Alignment.Horizontal centerHorizontally = Alignment.INSTANCE.getCenterHorizontally();
                ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 1341605231, "CC(Column)N(modifier,verticalArrangement,horizontalAlignment,content)87@4443L61,88@4509L134:Column.kt#2w3rfo");
                Modifier.Companion companion = Modifier.INSTANCE;
                MeasurePolicy measurePolicyColumnMeasurePolicy = ColumnKt.columnMeasurePolicy(Arrangement.INSTANCE.getTop(), centerHorizontally, composerStartRestartGroup, 48);
                ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -1159599143, "CC(Layout)P(!1,2)80@3267L27,83@3433L360:Layout.kt#80mrfh");
                int iHashCode3 = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composerStartRestartGroup, 0));
                CompositionLocalMap currentCompositionLocalMap3 = composerStartRestartGroup.getCurrentCompositionLocalMap();
                Modifier modifierMaterializeModifier3 = ComposedModifierKt.materializeModifier(composerStartRestartGroup, companion);
                Function0<ComposeUiNode> constructor3 = ComposeUiNode.INSTANCE.getConstructor();
                ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -553112988, "CC(ReusableComposeNode)N(factory,update,content)399@15590L9:Composables.kt#9igjgp");
                if (!(composerStartRestartGroup.getApplier() instanceof Applier)) {
                    ComposablesKt.invalidApplier();
                }
                composerStartRestartGroup.startReusableNode();
                if (composerStartRestartGroup.getInserting()) {
                    composerStartRestartGroup.createNode(constructor3);
                } else {
                    composerStartRestartGroup.useNode();
                }
                Composer composerM3820constructorimpl3 = Updater.m3820constructorimpl(composerStartRestartGroup);
                Updater.m3827setimpl(composerM3820constructorimpl3, measurePolicyColumnMeasurePolicy, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
                Updater.m3827setimpl(composerM3820constructorimpl3, currentCompositionLocalMap3, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
                Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash3 = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
                if (composerM3820constructorimpl3.getInserting() || !Intrinsics.areEqual(composerM3820constructorimpl3.rememberedValue(), Integer.valueOf(iHashCode3))) {
                    composerM3820constructorimpl3.updateRememberedValue(Integer.valueOf(iHashCode3));
                    composerM3820constructorimpl3.apply(Integer.valueOf(iHashCode3), setCompositeKeyHash3);
                }
                Updater.m3827setimpl(composerM3820constructorimpl3, modifierMaterializeModifier3, ComposeUiNode.INSTANCE.getSetModifier());
                ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 2093002350, "C89@4557L9:Column.kt#2w3rfo");
                ColumnScopeInstance columnScopeInstance = ColumnScopeInstance.INSTANCE;
                LocationState.Error error = (LocationState.Error) locationStateNearbyScreen$lambda$2;
                TextKt.m2803Text4IGK_g(error.getMessage(), PaddingKt.m832padding3ABfNKs(Modifier.INSTANCE, Dp.m7215constructorimpl(16)), Color.INSTANCE.m4535getRed0d7_KjU(), 0L, (FontStyle) null, (FontWeight) null, (FontFamily) null, 0L, (TextDecoration) null, TextAlign.m7092boximpl(TextAlign.INSTANCE.m7099getCentere0LSkKk()), 0L, 0, false, 0, 0, (Function1<? super TextLayoutResult, Unit>) null, (TextStyle) null, composerStartRestartGroup, 432, 0, 130552);
                composerStartRestartGroup.startReplaceGroup(-639679415);
                if (Intrinsics.areEqual(error.getMessage(), strStringResource3)) {
                    SpacerKt.Spacer(SizeKt.m870height3ABfNKs(Modifier.INSTANCE, Dp.m7215constructorimpl(8)), composerStartRestartGroup, 6);
                    composerStartRestartGroup.startReplaceGroup(5004770);
                    boolean zChanged = composerStartRestartGroup.changed(settingsStateRememberSettingsController);
                    Object objRememberedValue6 = composerStartRestartGroup.rememberedValue();
                    if (zChanged || objRememberedValue6 == Composer.INSTANCE.getEmpty()) {
                        objRememberedValue6 = new Function0() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$$ExternalSyntheticLambda16
                            @Override // kotlin.jvm.functions.Function0
                            public final Object invoke() {
                                return NearbyScreenKt.NearbyScreen$lambda$18$lambda$17$lambda$14$lambda$13(settingsStateRememberSettingsController);
                            }
                        };
                        composerStartRestartGroup.updateRememberedValue(objRememberedValue6);
                    }
                    Function0 function0 = (Function0) objRememberedValue6;
                    composerStartRestartGroup.endReplaceGroup();
                    Modifier.Companion companion2 = Modifier.INSTANCE;
                    composerStartRestartGroup.startReplaceGroup(1849434622);
                    Object objRememberedValue7 = composerStartRestartGroup.rememberedValue();
                    if (objRememberedValue7 == Composer.INSTANCE.getEmpty()) {
                        objRememberedValue7 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$$ExternalSyntheticLambda1
                            @Override // kotlin.jvm.functions.Function1
                            public final Object invoke(Object obj) {
                                return NearbyScreenKt.NearbyScreen$lambda$18$lambda$17$lambda$16$lambda$15((SemanticsPropertyReceiver) obj);
                            }
                        };
                        composerStartRestartGroup.updateRememberedValue(objRememberedValue7);
                    }
                    composerStartRestartGroup.endReplaceGroup();
                    ButtonKt.Button(function0, SemanticsModifierKt.semantics$default(companion2, false, (Function1) objRememberedValue7, 1, null), false, null, null, null, null, null, null, ComposableSingletons$NearbyScreenKt.INSTANCE.getLambda$514376406$composeApp_release(), composerStartRestartGroup, 805306368, 508);
                }
                composerStartRestartGroup.endReplaceGroup();
                ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                composerStartRestartGroup.endNode();
                ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                composerStartRestartGroup.endNode();
                ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                composerStartRestartGroup.endReplaceGroup();
            } else {
                if (!(locationStateNearbyScreen$lambda$2 instanceof LocationState.Success)) {
                    composerStartRestartGroup.startReplaceGroup(-651935656);
                    composerStartRestartGroup.endReplaceGroup();
                    throw new NoWhenBranchMatchedException();
                }
                composerStartRestartGroup.startReplaceGroup(1266742389);
                final Pair<Double, Double> coordinates = ((LocationState.Success) locationStateNearbyScreen$lambda$2).getCoordinates();
                composerStartRestartGroup.startReplaceGroup(-1633490746);
                boolean zChangedInstance3 = composerStartRestartGroup.changedInstance(nearbyViewModel) | composerStartRestartGroup.changed(coordinates);
                NearbyScreenKt$NearbyScreen$6$1 nearbyScreenKt$NearbyScreen$6$1RememberedValue = composerStartRestartGroup.rememberedValue();
                if (zChangedInstance3 || nearbyScreenKt$NearbyScreen$6$1RememberedValue == Composer.INSTANCE.getEmpty()) {
                    nearbyScreenKt$NearbyScreen$6$1RememberedValue = new NearbyScreenKt$NearbyScreen$6$1(nearbyViewModel, coordinates, null);
                    composerStartRestartGroup.updateRememberedValue(nearbyScreenKt$NearbyScreen$6$1RememberedValue);
                }
                composerStartRestartGroup.endReplaceGroup();
                EffectsKt.LaunchedEffect(coordinates, (Function2<? super CoroutineScope, ? super Continuation<? super Unit>, ? extends Object>) nearbyScreenKt$NearbyScreen$6$1RememberedValue, composerStartRestartGroup, 0);
                InfoDto infoDto = state.getInfoDto();
                NearbyStopsDto nearbyStopsDto = state.getNearbyStopsDto();
                composerStartRestartGroup.startReplaceGroup(-1633490746);
                boolean zChanged2 = composerStartRestartGroup.changed(infoDto) | composerStartRestartGroup.changed(nearbyStopsDto);
                Object objRememberedValue8 = composerStartRestartGroup.rememberedValue();
                if (zChanged2 || objRememberedValue8 == Composer.INSTANCE.getEmpty()) {
                    if (state.getInfoDto() != null && state.getNearbyStopsDto() != null) {
                        listEmptyList = getParadasCercanas(state.getInfoDto(), state.getNearbyStopsDto());
                    } else {
                        listEmptyList = CollectionsKt.emptyList();
                    }
                    objRememberedValue8 = listEmptyList;
                    composerStartRestartGroup.updateRememberedValue(objRememberedValue8);
                }
                final List list = (List) objRememberedValue8;
                composerStartRestartGroup.endReplaceGroup();
                composerStartRestartGroup.startReplaceGroup(1849434622);
                Object objRememberedValue9 = composerStartRestartGroup.rememberedValue();
                if (objRememberedValue9 == Composer.INSTANCE.getEmpty()) {
                    objRememberedValue9 = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(false, null, 2, null);
                    composerStartRestartGroup.updateRememberedValue(objRememberedValue9);
                }
                final MutableState mutableState3 = (MutableState) objRememberedValue9;
                composerStartRestartGroup.endReplaceGroup();
                Modifier modifierFillMaxSize$default = SizeKt.fillMaxSize$default(Modifier.INSTANCE, 0.0f, 1, null);
                ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 1341605231, "CC(Column)N(modifier,verticalArrangement,horizontalAlignment,content)87@4443L61,88@4509L134:Column.kt#2w3rfo");
                MeasurePolicy measurePolicyColumnMeasurePolicy2 = ColumnKt.columnMeasurePolicy(Arrangement.INSTANCE.getTop(), Alignment.INSTANCE.getStart(), composerStartRestartGroup, 0);
                ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -1159599143, "CC(Layout)P(!1,2)80@3267L27,83@3433L360:Layout.kt#80mrfh");
                int iHashCode4 = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composerStartRestartGroup, 0));
                CompositionLocalMap currentCompositionLocalMap4 = composerStartRestartGroup.getCurrentCompositionLocalMap();
                Modifier modifierMaterializeModifier4 = ComposedModifierKt.materializeModifier(composerStartRestartGroup, modifierFillMaxSize$default);
                Function0<ComposeUiNode> constructor4 = ComposeUiNode.INSTANCE.getConstructor();
                ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -553112988, "CC(ReusableComposeNode)N(factory,update,content)399@15590L9:Composables.kt#9igjgp");
                if (!(composerStartRestartGroup.getApplier() instanceof Applier)) {
                    ComposablesKt.invalidApplier();
                }
                composerStartRestartGroup.startReusableNode();
                if (composerStartRestartGroup.getInserting()) {
                    composerStartRestartGroup.createNode(constructor4);
                } else {
                    composerStartRestartGroup.useNode();
                }
                Composer composerM3820constructorimpl4 = Updater.m3820constructorimpl(composerStartRestartGroup);
                Updater.m3827setimpl(composerM3820constructorimpl4, measurePolicyColumnMeasurePolicy2, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
                Updater.m3827setimpl(composerM3820constructorimpl4, currentCompositionLocalMap4, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
                Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash4 = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
                if (composerM3820constructorimpl4.getInserting() || !Intrinsics.areEqual(composerM3820constructorimpl4.rememberedValue(), Integer.valueOf(iHashCode4))) {
                    composerM3820constructorimpl4.updateRememberedValue(Integer.valueOf(iHashCode4));
                    composerM3820constructorimpl4.apply(Integer.valueOf(iHashCode4), setCompositeKeyHash4);
                }
                Updater.m3827setimpl(composerM3820constructorimpl4, modifierMaterializeModifier4, ComposeUiNode.INSTANCE.getSetModifier());
                ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 2093002350, "C89@4557L9:Column.kt#2w3rfo");
                ColumnScopeInstance columnScopeInstance2 = ColumnScopeInstance.INSTANCE;
                if (NearbyScreen$lambda$22(mutableState3)) {
                    composerStartRestartGroup.startReplaceGroup(116549573);
                    Modifier modifierM257backgroundbw27NRU$default3 = BackgroundKt.m257backgroundbw27NRU$default(SizeKt.fillMaxSize$default(Modifier.INSTANCE, 0.0f, 1, null), MaterialTheme.INSTANCE.getColorScheme(composerStartRestartGroup, MaterialTheme.$stable).getBackground(), null, 2, null);
                    composerStartRestartGroup.startReplaceGroup(1849434622);
                    Object objRememberedValue10 = composerStartRestartGroup.rememberedValue();
                    if (objRememberedValue10 == Composer.INSTANCE.getEmpty()) {
                        objRememberedValue10 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$$ExternalSyntheticLambda2
                            @Override // kotlin.jvm.functions.Function1
                            public final Object invoke(Object obj) {
                                return NearbyScreenKt.NearbyScreen$lambda$43$lambda$25$lambda$24((SemanticsPropertyReceiver) obj);
                            }
                        };
                        composerStartRestartGroup.updateRememberedValue(objRememberedValue10);
                    }
                    composerStartRestartGroup.endReplaceGroup();
                    modifierSemantics$default = SemanticsModifierKt.semantics$default(modifierM257backgroundbw27NRU$default3, false, (Function1) objRememberedValue10, 1, null);
                    composerStartRestartGroup.endReplaceGroup();
                    i3 = 1042775818;
                    r9 = 0;
                } else {
                    composerStartRestartGroup.startReplaceGroup(116902198);
                    float f = 16;
                    Modifier modifierM257backgroundbw27NRU$default4 = BackgroundKt.m257backgroundbw27NRU$default(ClipKt.clip(PaddingKt.m832padding3ABfNKs(SizeKt.fillMaxWidth$default(ColumnScope.weight$default(columnScopeInstance2, Modifier.INSTANCE, 1.0f, false, 2, null), 0.0f, 1, null), Dp.m7215constructorimpl(f)), RoundedCornerShapeKt.m1197RoundedCornerShape0680j_4(Dp.m7215constructorimpl(f))), MaterialTheme.INSTANCE.getColorScheme(composerStartRestartGroup, MaterialTheme.$stable).getSurface(), null, 2, null);
                    composerStartRestartGroup.startReplaceGroup(1849434622);
                    Object objRememberedValue11 = composerStartRestartGroup.rememberedValue();
                    if (objRememberedValue11 == Composer.INSTANCE.getEmpty()) {
                        objRememberedValue11 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$$ExternalSyntheticLambda3
                            @Override // kotlin.jvm.functions.Function1
                            public final Object invoke(Object obj) {
                                return NearbyScreenKt.NearbyScreen$lambda$43$lambda$27$lambda$26((SemanticsPropertyReceiver) obj);
                            }
                        };
                        composerStartRestartGroup.updateRememberedValue(objRememberedValue11);
                    }
                    composerStartRestartGroup.endReplaceGroup();
                    r9 = 0;
                    modifierSemantics$default = SemanticsModifierKt.semantics$default(modifierM257backgroundbw27NRU$default4, false, (Function1) objRememberedValue11, 1, null);
                    composerStartRestartGroup.endReplaceGroup();
                    i3 = 1042775818;
                }
                ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, i3, "CC(Box)N(modifier,contentAlignment,propagateMinConstraints,content)71@3424L131:Box.kt#2w3rfo");
                MeasurePolicy measurePolicyMaybeCachedBoxMeasurePolicy3 = BoxKt.maybeCachedBoxMeasurePolicy(Alignment.INSTANCE.getTopStart(), r9);
                ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -1159599143, "CC(Layout)P(!1,2)80@3267L27,83@3433L360:Layout.kt#80mrfh");
                int iHashCode5 = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composerStartRestartGroup, r9));
                CompositionLocalMap currentCompositionLocalMap5 = composerStartRestartGroup.getCurrentCompositionLocalMap();
                Modifier modifierMaterializeModifier5 = ComposedModifierKt.materializeModifier(composerStartRestartGroup, modifierSemantics$default);
                Function0<ComposeUiNode> constructor5 = ComposeUiNode.INSTANCE.getConstructor();
                ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -553112988, "CC(ReusableComposeNode)N(factory,update,content)399@15590L9:Composables.kt#9igjgp");
                if (!(composerStartRestartGroup.getApplier() instanceof Applier)) {
                    ComposablesKt.invalidApplier();
                }
                composerStartRestartGroup.startReusableNode();
                if (composerStartRestartGroup.getInserting()) {
                    composerStartRestartGroup.createNode(constructor5);
                } else {
                    composerStartRestartGroup.useNode();
                }
                Composer composerM3820constructorimpl5 = Updater.m3820constructorimpl(composerStartRestartGroup);
                Updater.m3827setimpl(composerM3820constructorimpl5, measurePolicyMaybeCachedBoxMeasurePolicy3, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
                Updater.m3827setimpl(composerM3820constructorimpl5, currentCompositionLocalMap5, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
                Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash5 = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
                if (composerM3820constructorimpl5.getInserting() || !Intrinsics.areEqual(composerM3820constructorimpl5.rememberedValue(), Integer.valueOf(iHashCode5))) {
                    composerM3820constructorimpl5.updateRememberedValue(Integer.valueOf(iHashCode5));
                    composerM3820constructorimpl5.apply(Integer.valueOf(iHashCode5), setCompositeKeyHash5);
                }
                Updater.m3827setimpl(composerM3820constructorimpl5, modifierMaterializeModifier5, ComposeUiNode.INSTANCE.getSetModifier());
                ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 1833054614, "C72@3469L9:Box.kt#2w3rfo");
                BoxScopeInstance boxScopeInstance3 = BoxScopeInstance.INSTANCE;
                NearbyScreen_androidKt.GoogleMaps(coordinates.getFirst(), coordinates.getSecond(), list, composerStartRestartGroup, 0);
                Modifier modifierM832padding3ABfNKs = PaddingKt.m832padding3ABfNKs(boxScopeInstance3.align(Modifier.INSTANCE, Alignment.INSTANCE.getTopEnd()), Dp.m7215constructorimpl(12));
                composerStartRestartGroup.startReplaceGroup(5004770);
                Object objRememberedValue12 = composerStartRestartGroup.rememberedValue();
                if (objRememberedValue12 == Composer.INSTANCE.getEmpty()) {
                    objRememberedValue12 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$$ExternalSyntheticLambda4
                        @Override // kotlin.jvm.functions.Function1
                        public final Object invoke(Object obj) {
                            return NearbyScreenKt.NearbyScreen$lambda$43$lambda$32$lambda$29$lambda$28(mutableState3, (SemanticsPropertyReceiver) obj);
                        }
                    };
                    composerStartRestartGroup.updateRememberedValue(objRememberedValue12);
                }
                composerStartRestartGroup.endReplaceGroup();
                Modifier modifierSemantics$default4 = SemanticsModifierKt.semantics$default(modifierM832padding3ABfNKs, false, (Function1) objRememberedValue12, 1, null);
                long jColor = ColorKt.Color(4293652975L);
                long jM4527getBlack0d7_KjU = Color.INSTANCE.m4527getBlack0d7_KjU();
                RoundedCornerShape RoundedCornerShape = RoundedCornerShapeKt.RoundedCornerShape(25);
                composerStartRestartGroup.startReplaceGroup(5004770);
                Object objRememberedValue13 = composerStartRestartGroup.rememberedValue();
                if (objRememberedValue13 == Composer.INSTANCE.getEmpty()) {
                    objRememberedValue13 = new Function0() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$$ExternalSyntheticLambda5
                        @Override // kotlin.jvm.functions.Function0
                        public final Object invoke() {
                            return NearbyScreenKt.NearbyScreen$lambda$43$lambda$32$lambda$31$lambda$30(mutableState3);
                        }
                    };
                    composerStartRestartGroup.updateRememberedValue(objRememberedValue13);
                }
                composerStartRestartGroup.endReplaceGroup();
                FloatingActionButtonKt.m2235FloatingActionButtonXz6DiA((Function0) objRememberedValue13, modifierSemantics$default4, RoundedCornerShape, jColor, jM4527getBlack0d7_KjU, null, null, ComposableLambdaKt.rememberComposableLambda(424112876, true, new Function2<Composer, Integer, Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$NearbyScreen$7$3$3
                    @Override // kotlin.jvm.functions.Function2
                    public /* bridge */ /* synthetic */ Unit invoke(Composer composer2, Integer num) {
                        invoke(composer2, num.intValue());
                        return Unit.INSTANCE;
                    }

                    public final void invoke(Composer composer2, int i5) {
                        if ((i5 & 3) == 2 && composer2.getSkipping()) {
                            composer2.skipToGroupEnd();
                            return;
                        }
                        if (ComposerKt.isTraceInProgress()) {
                            ComposerKt.traceEventStart(424112876, i5, -1, "com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreen.<anonymous>.<anonymous>.<anonymous> (NearbyScreen.kt:235)");
                        }
                        IconKt.m2260Iconww6aTOc(NearbyScreenKt.NearbyScreen$lambda$22(mutableState3) ? FullscreenExitKt.getFullscreenExit(Icons.INSTANCE.getDefault()) : FullscreenKt.getFullscreen(Icons.INSTANCE.getDefault()), (String) null, (Modifier) null, 0L, composer2, 48, 12);
                        if (ComposerKt.isTraceInProgress()) {
                            ComposerKt.traceEventEnd();
                        }
                    }
                }, composerStartRestartGroup, 54), composerStartRestartGroup, 12610566, 96);
                ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                composerStartRestartGroup.endNode();
                ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                composerStartRestartGroup.startReplaceGroup(1527852718);
                if (!NearbyScreen$lambda$22(mutableState3)) {
                    final String strStringResource5 = StringResourcesKt.stringResource(String0_commonMainKt.getNo_nearby_stops(Res.string.INSTANCE), composerStartRestartGroup, 0);
                    Modifier modifierM257backgroundbw27NRU$default5 = BackgroundKt.m257backgroundbw27NRU$default(SizeKt.fillMaxWidth$default(ColumnScope.weight$default(columnScopeInstance2, Modifier.INSTANCE, 1.0f, false, 2, null), 0.0f, 1, null), MaterialTheme.INSTANCE.getColorScheme(composerStartRestartGroup, MaterialTheme.$stable).getBackground(), null, 2, null);
                    ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 1341605231, "CC(Column)N(modifier,verticalArrangement,horizontalAlignment,content)87@4443L61,88@4509L134:Column.kt#2w3rfo");
                    MeasurePolicy measurePolicyColumnMeasurePolicy3 = ColumnKt.columnMeasurePolicy(Arrangement.INSTANCE.getTop(), Alignment.INSTANCE.getStart(), composerStartRestartGroup, 0);
                    ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -1159599143, "CC(Layout)P(!1,2)80@3267L27,83@3433L360:Layout.kt#80mrfh");
                    int iHashCode6 = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composerStartRestartGroup, 0));
                    CompositionLocalMap currentCompositionLocalMap6 = composerStartRestartGroup.getCurrentCompositionLocalMap();
                    Modifier modifierMaterializeModifier6 = ComposedModifierKt.materializeModifier(composerStartRestartGroup, modifierM257backgroundbw27NRU$default5);
                    Function0<ComposeUiNode> constructor6 = ComposeUiNode.INSTANCE.getConstructor();
                    ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -553112988, "CC(ReusableComposeNode)N(factory,update,content)399@15590L9:Composables.kt#9igjgp");
                    if (!(composerStartRestartGroup.getApplier() instanceof Applier)) {
                        ComposablesKt.invalidApplier();
                    }
                    composerStartRestartGroup.startReusableNode();
                    if (composerStartRestartGroup.getInserting()) {
                        composerStartRestartGroup.createNode(constructor6);
                    } else {
                        composerStartRestartGroup.useNode();
                    }
                    Composer composerM3820constructorimpl6 = Updater.m3820constructorimpl(composerStartRestartGroup);
                    Updater.m3827setimpl(composerM3820constructorimpl6, measurePolicyColumnMeasurePolicy3, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
                    Updater.m3827setimpl(composerM3820constructorimpl6, currentCompositionLocalMap6, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
                    Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash6 = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
                    if (composerM3820constructorimpl6.getInserting() || !Intrinsics.areEqual(composerM3820constructorimpl6.rememberedValue(), Integer.valueOf(iHashCode6))) {
                        composerM3820constructorimpl6.updateRememberedValue(Integer.valueOf(iHashCode6));
                        composerM3820constructorimpl6.apply(Integer.valueOf(iHashCode6), setCompositeKeyHash6);
                    }
                    Updater.m3827setimpl(composerM3820constructorimpl6, modifierMaterializeModifier6, ComposeUiNode.INSTANCE.getSetModifier());
                    ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 2093002350, "C89@4557L9:Column.kt#2w3rfo");
                    ColumnScopeInstance columnScopeInstance3 = ColumnScopeInstance.INSTANCE;
                    if (state.isLoading()) {
                        composerStartRestartGroup.startReplaceGroup(-175784508);
                        LoadingScreenKt.LoadingScreen(composerStartRestartGroup, 0);
                        composerStartRestartGroup.endReplaceGroup();
                    } else if (!state.isError()) {
                        if (list.isEmpty()) {
                            composerStartRestartGroup.startReplaceGroup(-175775075);
                            Modifier modifierFillMaxSize$default2 = SizeKt.fillMaxSize$default(Modifier.INSTANCE, 0.0f, 1, null);
                            composerStartRestartGroup.startReplaceGroup(5004770);
                            boolean zChanged3 = composerStartRestartGroup.changed(strStringResource5);
                            Object objRememberedValue14 = composerStartRestartGroup.rememberedValue();
                            if (zChanged3 || objRememberedValue14 == Composer.INSTANCE.getEmpty()) {
                                objRememberedValue14 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$$ExternalSyntheticLambda7
                                    @Override // kotlin.jvm.functions.Function1
                                    public final Object invoke(Object obj) {
                                        return NearbyScreenKt.NearbyScreen$lambda$43$lambda$42$lambda$36$lambda$35(strStringResource5, (SemanticsPropertyReceiver) obj);
                                    }
                                };
                                composerStartRestartGroup.updateRememberedValue(objRememberedValue14);
                            }
                            composerStartRestartGroup.endReplaceGroup();
                            Modifier modifierSemantics$default5 = SemanticsModifierKt.semantics$default(modifierFillMaxSize$default2, false, (Function1) objRememberedValue14, 1, null);
                            Alignment center3 = Alignment.INSTANCE.getCenter();
                            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 1042775818, "CC(Box)N(modifier,contentAlignment,propagateMinConstraints,content)71@3424L131:Box.kt#2w3rfo");
                            MeasurePolicy measurePolicyMaybeCachedBoxMeasurePolicy4 = BoxKt.maybeCachedBoxMeasurePolicy(center3, false);
                            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -1159599143, "CC(Layout)P(!1,2)80@3267L27,83@3433L360:Layout.kt#80mrfh");
                            int iHashCode7 = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composerStartRestartGroup, 0));
                            CompositionLocalMap currentCompositionLocalMap7 = composerStartRestartGroup.getCurrentCompositionLocalMap();
                            Modifier modifierMaterializeModifier7 = ComposedModifierKt.materializeModifier(composerStartRestartGroup, modifierSemantics$default5);
                            Function0<ComposeUiNode> constructor7 = ComposeUiNode.INSTANCE.getConstructor();
                            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -553112988, "CC(ReusableComposeNode)N(factory,update,content)399@15590L9:Composables.kt#9igjgp");
                            if (!(composerStartRestartGroup.getApplier() instanceof Applier)) {
                                ComposablesKt.invalidApplier();
                            }
                            composerStartRestartGroup.startReusableNode();
                            if (composerStartRestartGroup.getInserting()) {
                                composerStartRestartGroup.createNode(constructor7);
                            } else {
                                composerStartRestartGroup.useNode();
                            }
                            Composer composerM3820constructorimpl7 = Updater.m3820constructorimpl(composerStartRestartGroup);
                            Updater.m3827setimpl(composerM3820constructorimpl7, measurePolicyMaybeCachedBoxMeasurePolicy4, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
                            Updater.m3827setimpl(composerM3820constructorimpl7, currentCompositionLocalMap7, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
                            Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash7 = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
                            if (composerM3820constructorimpl7.getInserting() || !Intrinsics.areEqual(composerM3820constructorimpl7.rememberedValue(), Integer.valueOf(iHashCode7))) {
                                composerM3820constructorimpl7.updateRememberedValue(Integer.valueOf(iHashCode7));
                                composerM3820constructorimpl7.apply(Integer.valueOf(iHashCode7), setCompositeKeyHash7);
                            }
                            Updater.m3827setimpl(composerM3820constructorimpl7, modifierMaterializeModifier7, ComposeUiNode.INSTANCE.getSetModifier());
                            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 1833054614, "C72@3469L9:Box.kt#2w3rfo");
                            BoxScopeInstance boxScopeInstance4 = BoxScopeInstance.INSTANCE;
                            TextKt.m2803Text4IGK_g(strStringResource5, PaddingKt.m832padding3ABfNKs(SizeKt.fillMaxWidth$default(Modifier.INSTANCE, 0.0f, 1, null), Dp.m7215constructorimpl(16)), Color.m4500copywmQWz5c$default(MaterialTheme.INSTANCE.getColorScheme(composerStartRestartGroup, MaterialTheme.$stable).getOnSurface(), 0.6f, 0.0f, 0.0f, 0.0f, 14, null), 0L, (FontStyle) null, (FontWeight) null, (FontFamily) null, 0L, (TextDecoration) null, TextAlign.m7092boximpl(TextAlign.INSTANCE.m7099getCentere0LSkKk()), 0L, 0, false, 0, 0, (Function1<? super TextLayoutResult, Unit>) null, (TextStyle) null, composerStartRestartGroup, 48, 0, 130552);
                            ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                            composerStartRestartGroup.endNode();
                            ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                            ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                            ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                            composerStartRestartGroup.endReplaceGroup();
                        } else {
                            composerStartRestartGroup.startReplaceGroup(-175745878);
                            float f2 = 16;
                            Modifier modifierM836paddingqDBjuR0$default = PaddingKt.m836paddingqDBjuR0$default(BackgroundKt.m257backgroundbw27NRU$default(SizeKt.fillMaxSize$default(Modifier.INSTANCE, 0.0f, 1, null), MaterialTheme.INSTANCE.getColorScheme(composerStartRestartGroup, MaterialTheme.$stable).getBackground(), null, 2, null), Dp.m7215constructorimpl(f2), 0.0f, Dp.m7215constructorimpl(f2), Dp.m7215constructorimpl(f2), 2, null);
                            composerStartRestartGroup.startReplaceGroup(1849434622);
                            Object objRememberedValue15 = composerStartRestartGroup.rememberedValue();
                            if (objRememberedValue15 == Composer.INSTANCE.getEmpty()) {
                                objRememberedValue15 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$$ExternalSyntheticLambda12
                                    @Override // kotlin.jvm.functions.Function1
                                    public final Object invoke(Object obj) {
                                        return NearbyScreenKt.NearbyScreen$lambda$43$lambda$42$lambda$39$lambda$38((SemanticsPropertyReceiver) obj);
                                    }
                                };
                                composerStartRestartGroup.updateRememberedValue(objRememberedValue15);
                            }
                            composerStartRestartGroup.endReplaceGroup();
                            Modifier modifierSemantics$default6 = SemanticsModifierKt.semantics$default(modifierM836paddingqDBjuR0$default, false, (Function1) objRememberedValue15, 1, null);
                            composerStartRestartGroup.startReplaceGroup(-1633490746);
                            boolean zChangedInstance4 = composerStartRestartGroup.changedInstance(list) | ((i4 & 14) == 4);
                            Object objRememberedValue16 = composerStartRestartGroup.rememberedValue();
                            if (zChangedInstance4 || objRememberedValue16 == Composer.INSTANCE.getEmpty()) {
                                objRememberedValue16 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$$ExternalSyntheticLambda13
                                    @Override // kotlin.jvm.functions.Function1
                                    public final Object invoke(Object obj) {
                                        return NearbyScreenKt.NearbyScreen$lambda$43$lambda$42$lambda$41$lambda$40(list, onStopDetail, (LazyListScope) obj);
                                    }
                                };
                                composerStartRestartGroup.updateRememberedValue(objRememberedValue16);
                            }
                            composerStartRestartGroup.endReplaceGroup();
                            LazyDslKt.LazyColumn(modifierSemantics$default6, null, null, false, null, null, null, false, null, (Function1) objRememberedValue16, composerStartRestartGroup, 0, 510);
                            composerStartRestartGroup.endReplaceGroup();
                        }
                    } else {
                        composerStartRestartGroup.startReplaceGroup(-175782392);
                        composerStartRestartGroup.startReplaceGroup(-1633490746);
                        boolean zChangedInstance5 = composerStartRestartGroup.changedInstance(nearbyViewModel) | composerStartRestartGroup.changed(coordinates);
                        Object objRememberedValue17 = composerStartRestartGroup.rememberedValue();
                        if (zChangedInstance5 || objRememberedValue17 == Composer.INSTANCE.getEmpty()) {
                            objRememberedValue17 = new Function0() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$$ExternalSyntheticLambda6
                                @Override // kotlin.jvm.functions.Function0
                                public final Object invoke() {
                                    return NearbyScreenKt.NearbyScreen$lambda$43$lambda$42$lambda$34$lambda$33(nearbyViewModel, coordinates);
                                }
                            };
                            composerStartRestartGroup.updateRememberedValue(objRememberedValue17);
                        }
                        composerStartRestartGroup.endReplaceGroup();
                        ConnectionErrorScreenKt.ConnectionErrorScreen(null, (Function0) objRememberedValue17, composerStartRestartGroup, 0, 1);
                        composerStartRestartGroup.endReplaceGroup();
                    }
                    ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                    composerStartRestartGroup.endNode();
                    ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                    ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                    ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                }
                composerStartRestartGroup.endReplaceGroup();
                ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                composerStartRestartGroup.endNode();
                ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
                composerStartRestartGroup.endReplaceGroup();
            }
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        } else {
            composerStartRestartGroup.skipToGroupEnd();
        }
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new Function2() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$$ExternalSyntheticLambda14
                @Override // kotlin.jvm.functions.Function2
                public final Object invoke(Object obj, Object obj2) {
                    return NearbyScreenKt.NearbyScreen$lambda$44(onStopDetail, i, (Composer) obj, ((Integer) obj2).intValue());
                }
            });
        }
    }

    private static final LocationState NearbyScreen$lambda$2(MutableState<LocationState> mutableState) {
        return mutableState.getValue();
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Pair<Double, Double> NearbyScreen$lambda$5(MutableState<Pair<Double, Double>> mutableState) {
        return mutableState.getValue();
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit NearbyScreen$lambda$9$lambda$8(SemanticsPropertyReceiver semantics) {
        Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
        SemanticsPropertiesKt.setContentDescription(semantics, "Obteniendo tu ubicación actual");
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit NearbyScreen$lambda$12$lambda$11(LocationState locationState, SemanticsPropertyReceiver semantics) {
        Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
        SemanticsPropertiesKt.setContentDescription(semantics, "Error de ubicación: " + ((LocationState.Error) locationState).getMessage());
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit NearbyScreen$lambda$18$lambda$17$lambda$14$lambda$13(SettingsState settingsState) {
        settingsState.open();
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit NearbyScreen$lambda$18$lambda$17$lambda$16$lambda$15(SemanticsPropertyReceiver semantics) {
        Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
        SemanticsPropertiesKt.setContentDescription(semantics, "Abrir configuración para permitir ubicación");
        SemanticsPropertiesKt.m6444setRolekuIjeqM(semantics, Role.INSTANCE.m6425getButtono7Vup1c());
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final boolean NearbyScreen$lambda$22(MutableState<Boolean> mutableState) {
        return mutableState.getValue().booleanValue();
    }

    private static final void NearbyScreen$lambda$23(MutableState<Boolean> mutableState, boolean z) {
        mutableState.setValue(Boolean.valueOf(z));
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit NearbyScreen$lambda$43$lambda$25$lambda$24(SemanticsPropertyReceiver semantics) {
        Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
        SemanticsPropertiesKt.setContentDescription(semantics, "Mapa de Google mostrando paradas cercanas");
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit NearbyScreen$lambda$43$lambda$27$lambda$26(SemanticsPropertyReceiver semantics) {
        Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
        SemanticsPropertiesKt.setContentDescription(semantics, "Mapa de Google mostrando paradas cercanas");
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit NearbyScreen$lambda$43$lambda$32$lambda$31$lambda$30(MutableState mutableState) {
        NearbyScreen$lambda$23(mutableState, !NearbyScreen$lambda$22(mutableState));
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit NearbyScreen$lambda$43$lambda$32$lambda$29$lambda$28(MutableState mutableState, SemanticsPropertyReceiver semantics) {
        Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
        SemanticsPropertiesKt.setContentDescription(semantics, NearbyScreen$lambda$22(mutableState) ? "Contraer mapa" : "Expandir mapa a pantalla completa");
        SemanticsPropertiesKt.m6444setRolekuIjeqM(semantics, Role.INSTANCE.m6425getButtono7Vup1c());
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit NearbyScreen$lambda$43$lambda$42$lambda$34$lambda$33(NearbyViewModel nearbyViewModel, Pair pair) {
        nearbyViewModel.loadInfoAndNearbyStops(((Number) pair.getFirst()).doubleValue(), ((Number) pair.getSecond()).doubleValue());
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit NearbyScreen$lambda$43$lambda$42$lambda$36$lambda$35(String str, SemanticsPropertyReceiver semantics) {
        Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
        SemanticsPropertiesKt.setContentDescription(semantics, str);
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit NearbyScreen$lambda$43$lambda$42$lambda$39$lambda$38(SemanticsPropertyReceiver semantics) {
        Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
        SemanticsPropertiesKt.setContentDescription(semantics, "Lista de paradas cercanas ordenadas por distancia");
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit NearbyScreen$lambda$43$lambda$42$lambda$41$lambda$40(List list, Function1 function1, LazyListScope LazyColumn) {
        Intrinsics.checkNotNullParameter(LazyColumn, "$this$LazyColumn");
        LazyListScope.items$default(LazyColumn, list.size(), null, null, ComposableLambdaKt.composableLambdaInstance(1088372756, true, new NearbyScreenKt$NearbyScreen$7$4$5$1$1(list, function1)), 6, null);
        return Unit.INSTANCE;
    }

    public static final double distanceBetween(Pair<Double, Double> from, Pair<Double, Double> to) {
        Intrinsics.checkNotNullParameter(from, "from");
        Intrinsics.checkNotNullParameter(to, "to");
        double radians = toRadians(from.getFirst().doubleValue());
        double radians2 = toRadians(from.getSecond().doubleValue());
        double radians3 = toRadians(to.getFirst().doubleValue());
        double radians4 = toRadians(to.getSecond().doubleValue()) - radians2;
        double d = 2;
        double dPow = Math.pow(Math.sin((radians3 - radians) / d), 2.0d) + (Math.cos(radians) * Math.cos(radians3) * Math.pow(Math.sin(radians4 / d), 2.0d));
        return d * Math.atan2(Math.sqrt(dPow), Math.sqrt(((double) 1) - dPow)) * 6371000.0d;
    }

    public static final void ParadaItem(final ParadaConDistancia paradaConDistancia, final Function0<Unit> onClick, Composer composer, final int i) {
        final String str;
        Composer composer2;
        Intrinsics.checkNotNullParameter(paradaConDistancia, "paradaConDistancia");
        Intrinsics.checkNotNullParameter(onClick, "onClick");
        Composer composerStartRestartGroup = composer.startRestartGroup(540111455);
        int i2 = (i & 6) == 0 ? (composerStartRestartGroup.changedInstance(paradaConDistancia) ? 4 : 2) | i : i;
        if ((i & 48) == 0) {
            i2 |= composerStartRestartGroup.changedInstance(onClick) ? 32 : 16;
        }
        if ((i2 & 19) != 18 || !composerStartRestartGroup.getSkipping()) {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(540111455, i2, -1, "com.sistemasolton.itranvias.home.presentation.nearby.ParadaItem (NearbyScreen.kt:333)");
            }
            final ParadaDto parada = paradaConDistancia.getParada();
            final int distancia = paradaConDistancia.getDistancia();
            List<LineaDto> lineasConectadas = paradaConDistancia.getLineasConectadas();
            long redTranvias = com.sistemasolton.itranvias.ui.theme.ColorKt.getRedTranvias();
            Color.m4500copywmQWz5c$default(com.sistemasolton.itranvias.ui.theme.ColorKt.getRedTranvias(), 0.1f, 0.0f, 0.0f, 0.0f, 14, null);
            List<LineaDto> list = lineasConectadas;
            composerStartRestartGroup.startReplaceGroup(1849434622);
            Object objRememberedValue = composerStartRestartGroup.rememberedValue();
            if (objRememberedValue == Composer.INSTANCE.getEmpty()) {
                objRememberedValue = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$$ExternalSyntheticLambda0
                    @Override // kotlin.jvm.functions.Function1
                    public final Object invoke(Object obj) {
                        return NearbyScreenKt.ParadaItem$lambda$46$lambda$45((LineaDto) obj);
                    }
                };
                composerStartRestartGroup.updateRememberedValue(objRememberedValue);
            }
            composerStartRestartGroup.endReplaceGroup();
            String strJoinToString$default = CollectionsKt.joinToString$default(list, str, null, null, 0, null, (Function1) objRememberedValue, 30, null);
            if (!lineasConectadas.isEmpty()) {
                str = " Conexiones con líneas: " + strJoinToString$default + ".";
            } else {
                str = "";
            }
            float f = 4;
            Modifier modifierM834paddingVpY3zN4$default = PaddingKt.m834paddingVpY3zN4$default(SizeKt.fillMaxWidth$default(Modifier.INSTANCE, 0.0f, 1, null), 0.0f, Dp.m7215constructorimpl(f), 1, null);
            composerStartRestartGroup.startReplaceGroup(5004770);
            boolean z = (i2 & 112) == 32;
            Object objRememberedValue2 = composerStartRestartGroup.rememberedValue();
            if (z || objRememberedValue2 == Composer.INSTANCE.getEmpty()) {
                objRememberedValue2 = new Function0() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$$ExternalSyntheticLambda8
                    @Override // kotlin.jvm.functions.Function0
                    public final Object invoke() {
                        return NearbyScreenKt.ParadaItem$lambda$48$lambda$47(onClick);
                    }
                };
                composerStartRestartGroup.updateRememberedValue(objRememberedValue2);
            }
            composerStartRestartGroup.endReplaceGroup();
            float f2 = 8;
            float f3 = 12;
            Modifier modifierM832padding3ABfNKs = PaddingKt.m832padding3ABfNKs(BackgroundKt.m256backgroundbw27NRU(ClickableKt.m298clickableoSLSa3U$default(modifierM834paddingVpY3zN4$default, false, null, null, null, (Function0) objRememberedValue2, 15, null), MaterialTheme.INSTANCE.getColorScheme(composerStartRestartGroup, MaterialTheme.$stable).getSurface(), RoundedCornerShapeKt.m1197RoundedCornerShape0680j_4(Dp.m7215constructorimpl(f2))), Dp.m7215constructorimpl(f3));
            composerStartRestartGroup.startReplaceGroup(-1746271574);
            boolean zChangedInstance = composerStartRestartGroup.changedInstance(parada) | composerStartRestartGroup.changed(distancia) | composerStartRestartGroup.changed(str);
            Object objRememberedValue3 = composerStartRestartGroup.rememberedValue();
            if (zChangedInstance || objRememberedValue3 == Composer.INSTANCE.getEmpty()) {
                objRememberedValue3 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$$ExternalSyntheticLambda9
                    @Override // kotlin.jvm.functions.Function1
                    public final Object invoke(Object obj) {
                        return NearbyScreenKt.ParadaItem$lambda$50$lambda$49(parada, distancia, str, (SemanticsPropertyReceiver) obj);
                    }
                };
                composerStartRestartGroup.updateRememberedValue(objRememberedValue3);
            }
            composerStartRestartGroup.endReplaceGroup();
            Modifier modifierClearAndSetSemantics = SemanticsModifierKt.clearAndSetSemantics(modifierM832padding3ABfNKs, (Function1) objRememberedValue3);
            Alignment.Vertical centerVertically = Alignment.INSTANCE.getCenterVertically();
            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 844473419, "CC(Row)N(modifier,horizontalArrangement,verticalAlignment,content)99@5125L58,100@5188L131:Row.kt#2w3rfo");
            MeasurePolicy measurePolicyRowMeasurePolicy = RowKt.rowMeasurePolicy(Arrangement.INSTANCE.getStart(), centerVertically, composerStartRestartGroup, 48);
            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -1159599143, "CC(Layout)P(!1,2)80@3267L27,83@3433L360:Layout.kt#80mrfh");
            int iHashCode = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composerStartRestartGroup, 0));
            CompositionLocalMap currentCompositionLocalMap = composerStartRestartGroup.getCurrentCompositionLocalMap();
            Modifier modifierMaterializeModifier = ComposedModifierKt.materializeModifier(composerStartRestartGroup, modifierClearAndSetSemantics);
            Function0<ComposeUiNode> constructor = ComposeUiNode.INSTANCE.getConstructor();
            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -553112988, "CC(ReusableComposeNode)N(factory,update,content)399@15590L9:Composables.kt#9igjgp");
            if (!(composerStartRestartGroup.getApplier() instanceof Applier)) {
                ComposablesKt.invalidApplier();
            }
            composerStartRestartGroup.startReusableNode();
            if (composerStartRestartGroup.getInserting()) {
                composerStartRestartGroup.createNode(constructor);
            } else {
                composerStartRestartGroup.useNode();
            }
            Composer composerM3820constructorimpl = Updater.m3820constructorimpl(composerStartRestartGroup);
            Updater.m3827setimpl(composerM3820constructorimpl, measurePolicyRowMeasurePolicy, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
            Updater.m3827setimpl(composerM3820constructorimpl, currentCompositionLocalMap, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
            Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
            if (composerM3820constructorimpl.getInserting() || !Intrinsics.areEqual(composerM3820constructorimpl.rememberedValue(), Integer.valueOf(iHashCode))) {
                composerM3820constructorimpl.updateRememberedValue(Integer.valueOf(iHashCode));
                composerM3820constructorimpl.apply(Integer.valueOf(iHashCode), setCompositeKeyHash);
            }
            Updater.m3827setimpl(composerM3820constructorimpl, modifierMaterializeModifier, ComposeUiNode.INSTANCE.getSetModifier());
            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 1456264949, "C101@5233L9:Row.kt#2w3rfo");
            RowScopeInstance rowScopeInstance = RowScopeInstance.INSTANCE;
            Modifier modifierM256backgroundbw27NRU = BackgroundKt.m256backgroundbw27NRU(SizeKt.m884size3ABfNKs(Modifier.INSTANCE, Dp.m7215constructorimpl(48)), redTranvias, RoundedCornerShapeKt.m1197RoundedCornerShape0680j_4(Dp.m7215constructorimpl(f2)));
            Alignment center = Alignment.INSTANCE.getCenter();
            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 1042775818, "CC(Box)N(modifier,contentAlignment,propagateMinConstraints,content)71@3424L131:Box.kt#2w3rfo");
            MeasurePolicy measurePolicyMaybeCachedBoxMeasurePolicy = BoxKt.maybeCachedBoxMeasurePolicy(center, false);
            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -1159599143, "CC(Layout)P(!1,2)80@3267L27,83@3433L360:Layout.kt#80mrfh");
            int iHashCode2 = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composerStartRestartGroup, 0));
            CompositionLocalMap currentCompositionLocalMap2 = composerStartRestartGroup.getCurrentCompositionLocalMap();
            Modifier modifierMaterializeModifier2 = ComposedModifierKt.materializeModifier(composerStartRestartGroup, modifierM256backgroundbw27NRU);
            Function0<ComposeUiNode> constructor2 = ComposeUiNode.INSTANCE.getConstructor();
            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -553112988, "CC(ReusableComposeNode)N(factory,update,content)399@15590L9:Composables.kt#9igjgp");
            if (!(composerStartRestartGroup.getApplier() instanceof Applier)) {
                ComposablesKt.invalidApplier();
            }
            composerStartRestartGroup.startReusableNode();
            if (composerStartRestartGroup.getInserting()) {
                composerStartRestartGroup.createNode(constructor2);
            } else {
                composerStartRestartGroup.useNode();
            }
            Composer composerM3820constructorimpl2 = Updater.m3820constructorimpl(composerStartRestartGroup);
            Updater.m3827setimpl(composerM3820constructorimpl2, measurePolicyMaybeCachedBoxMeasurePolicy, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
            Updater.m3827setimpl(composerM3820constructorimpl2, currentCompositionLocalMap2, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
            Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash2 = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
            if (composerM3820constructorimpl2.getInserting() || !Intrinsics.areEqual(composerM3820constructorimpl2.rememberedValue(), Integer.valueOf(iHashCode2))) {
                composerM3820constructorimpl2.updateRememberedValue(Integer.valueOf(iHashCode2));
                composerM3820constructorimpl2.apply(Integer.valueOf(iHashCode2), setCompositeKeyHash2);
            }
            Updater.m3827setimpl(composerM3820constructorimpl2, modifierMaterializeModifier2, ComposeUiNode.INSTANCE.getSetModifier());
            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 1833054614, "C72@3469L9:Box.kt#2w3rfo");
            BoxScopeInstance boxScopeInstance = BoxScopeInstance.INSTANCE;
            String str2 = "CC(Box)N(modifier,contentAlignment,propagateMinConstraints,content)71@3424L131:Box.kt#2w3rfo";
            TextKt.m2803Text4IGK_g(String.valueOf(parada.getId()), (Modifier) null, Color.INSTANCE.m4538getWhite0d7_KjU(), 0L, (FontStyle) null, FontWeight.INSTANCE.getBold(), (FontFamily) null, 0L, (TextDecoration) null, (TextAlign) null, 0L, 0, false, 0, 0, (Function1<? super TextLayoutResult, Unit>) null, (TextStyle) null, composerStartRestartGroup, 196992, 0, 131034);
            ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
            composerStartRestartGroup.endNode();
            ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
            ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
            ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
            SpacerKt.Spacer(SizeKt.m889width3ABfNKs(Modifier.INSTANCE, Dp.m7215constructorimpl(f3)), composerStartRestartGroup, 6);
            Modifier modifierWeight$default = RowScope.weight$default(rowScopeInstance, Modifier.INSTANCE, 1.0f, false, 2, null);
            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 1341605231, "CC(Column)N(modifier,verticalArrangement,horizontalAlignment,content)87@4443L61,88@4509L134:Column.kt#2w3rfo");
            MeasurePolicy measurePolicyColumnMeasurePolicy = ColumnKt.columnMeasurePolicy(Arrangement.INSTANCE.getTop(), Alignment.INSTANCE.getStart(), composerStartRestartGroup, 0);
            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -1159599143, "CC(Layout)P(!1,2)80@3267L27,83@3433L360:Layout.kt#80mrfh");
            int iHashCode3 = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composerStartRestartGroup, 0));
            CompositionLocalMap currentCompositionLocalMap3 = composerStartRestartGroup.getCurrentCompositionLocalMap();
            Modifier modifierMaterializeModifier3 = ComposedModifierKt.materializeModifier(composerStartRestartGroup, modifierWeight$default);
            Function0<ComposeUiNode> constructor3 = ComposeUiNode.INSTANCE.getConstructor();
            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -553112988, "CC(ReusableComposeNode)N(factory,update,content)399@15590L9:Composables.kt#9igjgp");
            if (!(composerStartRestartGroup.getApplier() instanceof Applier)) {
                ComposablesKt.invalidApplier();
            }
            composerStartRestartGroup.startReusableNode();
            if (composerStartRestartGroup.getInserting()) {
                composerStartRestartGroup.createNode(constructor3);
            } else {
                composerStartRestartGroup.useNode();
            }
            Composer composerM3820constructorimpl3 = Updater.m3820constructorimpl(composerStartRestartGroup);
            Updater.m3827setimpl(composerM3820constructorimpl3, measurePolicyColumnMeasurePolicy, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
            Updater.m3827setimpl(composerM3820constructorimpl3, currentCompositionLocalMap3, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
            Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash3 = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
            if (composerM3820constructorimpl3.getInserting() || !Intrinsics.areEqual(composerM3820constructorimpl3.rememberedValue(), Integer.valueOf(iHashCode3))) {
                composerM3820constructorimpl3.updateRememberedValue(Integer.valueOf(iHashCode3));
                composerM3820constructorimpl3.apply(Integer.valueOf(iHashCode3), setCompositeKeyHash3);
            }
            Updater.m3827setimpl(composerM3820constructorimpl3, modifierMaterializeModifier3, ComposeUiNode.INSTANCE.getSetModifier());
            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 2093002350, "C89@4557L9:Column.kt#2w3rfo");
            ColumnScopeInstance columnScopeInstance = ColumnScopeInstance.INSTANCE;
            TextKt.m2803Text4IGK_g(parada.getNombre(), (Modifier) null, MaterialTheme.INSTANCE.getColorScheme(composerStartRestartGroup, MaterialTheme.$stable).getOnSurface(), 0L, (FontStyle) null, FontWeight.INSTANCE.getSemiBold(), (FontFamily) null, 0L, (TextDecoration) null, (TextAlign) null, 0L, 0, false, 0, 0, (Function1<? super TextLayoutResult, Unit>) null, (TextStyle) null, composerStartRestartGroup, ProfileVerifier.CompilationStatus.RESULT_CODE_ERROR_CANT_WRITE_PROFILE_VERIFICATION_RESULT_CACHE_FILE, 0, 131034);
            TextKt.m2803Text4IGK_g(distancia + " m", (Modifier) null, Color.INSTANCE.m4531getGray0d7_KjU(), 0L, (FontStyle) null, FontWeight.INSTANCE.getNormal(), (FontFamily) null, 0L, (TextDecoration) null, (TextAlign) null, 0L, 0, false, 0, 0, (Function1<? super TextLayoutResult, Unit>) null, (TextStyle) null, composerStartRestartGroup, 196992, 0, 131034);
            Composer composer3 = composerStartRestartGroup;
            SpacerKt.Spacer(SizeKt.m870height3ABfNKs(Modifier.INSTANCE, Dp.m7215constructorimpl(f)), composer3, 6);
            ComposerKt.sourceInformationMarkerStart(composer3, 844473419, "CC(Row)N(modifier,horizontalArrangement,verticalAlignment,content)99@5125L58,100@5188L131:Row.kt#2w3rfo");
            Modifier.Companion companion = Modifier.INSTANCE;
            MeasurePolicy measurePolicyRowMeasurePolicy2 = RowKt.rowMeasurePolicy(Arrangement.INSTANCE.getStart(), Alignment.INSTANCE.getTop(), composer3, 0);
            String str3 = "CC(Layout)P(!1,2)80@3267L27,83@3433L360:Layout.kt#80mrfh";
            ComposerKt.sourceInformationMarkerStart(composer3, -1159599143, str3);
            int iHashCode4 = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composer3, 0));
            CompositionLocalMap currentCompositionLocalMap4 = composer3.getCurrentCompositionLocalMap();
            Modifier modifierMaterializeModifier4 = ComposedModifierKt.materializeModifier(composer3, companion);
            Function0<ComposeUiNode> constructor4 = ComposeUiNode.INSTANCE.getConstructor();
            ComposerKt.sourceInformationMarkerStart(composer3, -553112988, "CC(ReusableComposeNode)N(factory,update,content)399@15590L9:Composables.kt#9igjgp");
            if (!(composer3.getApplier() instanceof Applier)) {
                ComposablesKt.invalidApplier();
            }
            composer3.startReusableNode();
            if (composer3.getInserting()) {
                composer3.createNode(constructor4);
            } else {
                composer3.useNode();
            }
            Composer composerM3820constructorimpl4 = Updater.m3820constructorimpl(composer3);
            Updater.m3827setimpl(composerM3820constructorimpl4, measurePolicyRowMeasurePolicy2, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
            Updater.m3827setimpl(composerM3820constructorimpl4, currentCompositionLocalMap4, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
            Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash4 = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
            if (composerM3820constructorimpl4.getInserting() || !Intrinsics.areEqual(composerM3820constructorimpl4.rememberedValue(), Integer.valueOf(iHashCode4))) {
                composerM3820constructorimpl4.updateRememberedValue(Integer.valueOf(iHashCode4));
                composerM3820constructorimpl4.apply(Integer.valueOf(iHashCode4), setCompositeKeyHash4);
            }
            Updater.m3827setimpl(composerM3820constructorimpl4, modifierMaterializeModifier4, ComposeUiNode.INSTANCE.getSetModifier());
            ComposerKt.sourceInformationMarkerStart(composer3, 1456264949, "C101@5233L9:Row.kt#2w3rfo");
            RowScopeInstance rowScopeInstance2 = RowScopeInstance.INSTANCE;
            composer3.startReplaceGroup(1491968117);
            for (LineaDto lineaDto : list) {
                Modifier modifierM832padding3ABfNKs2 = PaddingKt.m832padding3ABfNKs(BackgroundKt.m256backgroundbw27NRU(Modifier.INSTANCE, LinesScreenKt.parseColorSafely(lineaDto.getColor()), RoundedCornerShapeKt.RoundedCornerShape(16)), Dp.m7215constructorimpl(2));
                Alignment center2 = Alignment.INSTANCE.getCenter();
                String str4 = str2;
                ComposerKt.sourceInformationMarkerStart(composer3, 1042775818, str4);
                MeasurePolicy measurePolicyMaybeCachedBoxMeasurePolicy2 = BoxKt.maybeCachedBoxMeasurePolicy(center2, false);
                ComposerKt.sourceInformationMarkerStart(composer3, -1159599143, str3);
                int iHashCode5 = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composer3, 0));
                CompositionLocalMap currentCompositionLocalMap5 = composer3.getCurrentCompositionLocalMap();
                Modifier modifierMaterializeModifier5 = ComposedModifierKt.materializeModifier(composer3, modifierM832padding3ABfNKs2);
                Function0<ComposeUiNode> constructor5 = ComposeUiNode.INSTANCE.getConstructor();
                String str5 = str3;
                ComposerKt.sourceInformationMarkerStart(composer3, -553112988, "CC(ReusableComposeNode)N(factory,update,content)399@15590L9:Composables.kt#9igjgp");
                if (!(composer3.getApplier() instanceof Applier)) {
                    ComposablesKt.invalidApplier();
                }
                composer3.startReusableNode();
                if (composer3.getInserting()) {
                    composer3.createNode(constructor5);
                } else {
                    composer3.useNode();
                }
                Composer composerM3820constructorimpl5 = Updater.m3820constructorimpl(composer3);
                Updater.m3827setimpl(composerM3820constructorimpl5, measurePolicyMaybeCachedBoxMeasurePolicy2, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
                Updater.m3827setimpl(composerM3820constructorimpl5, currentCompositionLocalMap5, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
                Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash5 = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
                if (composerM3820constructorimpl5.getInserting() || !Intrinsics.areEqual(composerM3820constructorimpl5.rememberedValue(), Integer.valueOf(iHashCode5))) {
                    composerM3820constructorimpl5.updateRememberedValue(Integer.valueOf(iHashCode5));
                    composerM3820constructorimpl5.apply(Integer.valueOf(iHashCode5), setCompositeKeyHash5);
                }
                Updater.m3827setimpl(composerM3820constructorimpl5, modifierMaterializeModifier5, ComposeUiNode.INSTANCE.getSetModifier());
                ComposerKt.sourceInformationMarkerStart(composer3, 1833054614, "C72@3469L9:Box.kt#2w3rfo");
                BoxScopeInstance boxScopeInstance2 = BoxScopeInstance.INSTANCE;
                Composer composer4 = composer3;
                TextKt.m2803Text4IGK_g(lineaDto.getLinComer(), (Modifier) null, Color.INSTANCE.m4538getWhite0d7_KjU(), TextUnitKt.getSp(12), (FontStyle) null, FontWeight.INSTANCE.getBold(), (FontFamily) null, 0L, (TextDecoration) null, TextAlign.m7092boximpl(TextAlign.INSTANCE.m7099getCentere0LSkKk()), 0L, 0, false, 1, 0, (Function1<? super TextLayoutResult, Unit>) null, MaterialTheme.INSTANCE.getTypography(composer3, MaterialTheme.$stable).getLabelSmall(), composer4, 200064, 3072, 56786);
                ComposerKt.sourceInformationMarkerEnd(composer4);
                composer4.endNode();
                ComposerKt.sourceInformationMarkerEnd(composer4);
                ComposerKt.sourceInformationMarkerEnd(composer4);
                ComposerKt.sourceInformationMarkerEnd(composer4);
                str2 = str4;
                str3 = str5;
                composer3 = composer4;
            }
            composer2 = composer3;
            composer2.endReplaceGroup();
            ComposerKt.sourceInformationMarkerEnd(composer2);
            composer2.endNode();
            ComposerKt.sourceInformationMarkerEnd(composer2);
            ComposerKt.sourceInformationMarkerEnd(composer2);
            ComposerKt.sourceInformationMarkerEnd(composer2);
            ComposerKt.sourceInformationMarkerEnd(composer2);
            composer2.endNode();
            ComposerKt.sourceInformationMarkerEnd(composer2);
            ComposerKt.sourceInformationMarkerEnd(composer2);
            ComposerKt.sourceInformationMarkerEnd(composer2);
            ComposerKt.sourceInformationMarkerEnd(composer2);
            composer2.endNode();
            ComposerKt.sourceInformationMarkerEnd(composer2);
            ComposerKt.sourceInformationMarkerEnd(composer2);
            ComposerKt.sourceInformationMarkerEnd(composer2);
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        } else {
            composerStartRestartGroup.skipToGroupEnd();
            composer2 = composerStartRestartGroup;
        }
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composer2.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new Function2() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$$ExternalSyntheticLambda10
                @Override // kotlin.jvm.functions.Function2
                public final Object invoke(Object obj, Object obj2) {
                    return NearbyScreenKt.ParadaItem$lambda$57(paradaConDistancia, onClick, i, (Composer) obj, ((Integer) obj2).intValue());
                }
            });
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final CharSequence ParadaItem$lambda$46$lambda$45(LineaDto it) {
        Intrinsics.checkNotNullParameter(it, "it");
        return LinesScreenKt.formatLineNameForAccessibility(it.getLinComer());
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit ParadaItem$lambda$48$lambda$47(Function0 function0) {
        function0.invoke();
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit ParadaItem$lambda$50$lambda$49(ParadaDto paradaDto, int i, String str, SemanticsPropertyReceiver clearAndSetSemantics) {
        Intrinsics.checkNotNullParameter(clearAndSetSemantics, "$this$clearAndSetSemantics");
        SemanticsPropertiesKt.setContentDescription(clearAndSetSemantics, "Parada cercana " + paradaDto.getNombre() + ", número " + paradaDto.getId() + ", a " + i + " metros." + str + " Toca para ver detalles.");
        SemanticsPropertiesKt.m6444setRolekuIjeqM(clearAndSetSemantics, Role.INSTANCE.m6425getButtono7Vup1c());
        return Unit.INSTANCE;
    }

    public static final List<ParadaConDistancia> getParadasCercanas(InfoDto info, NearbyStopsDto nearby) {
        ParadaConDistancia paradaConDistancia;
        Intrinsics.checkNotNullParameter(info, "info");
        Intrinsics.checkNotNullParameter(nearby, "nearby");
        List<ParadaDto> paradas = info.getITranvias().getActualizacion().getParadas();
        LinkedHashMap linkedHashMap = new LinkedHashMap(RangesKt.coerceAtLeast(MapsKt.mapCapacity(CollectionsKt.collectionSizeOrDefault(paradas, 10)), 16));
        for (Object obj : paradas) {
            linkedHashMap.put(Integer.valueOf(((ParadaDto) obj).getId()), obj);
        }
        List<LineaDto> lineas = info.getITranvias().getActualizacion().getLineas();
        List<PosGpsItem> posgps = nearby.getPosgps();
        ArrayList arrayList = new ArrayList();
        for (PosGpsItem posGpsItem : posgps) {
            ParadaDto paradaDto = (ParadaDto) linkedHashMap.get(Integer.valueOf(posGpsItem.getParada()));
            if (paradaDto != null) {
                ArrayList arrayList2 = new ArrayList();
                for (Object obj2 : lineas) {
                    List<RutaDto> rutas = ((LineaDto) obj2).getRutas();
                    if (!(rutas instanceof Collection) || !rutas.isEmpty()) {
                        Iterator<T> it = rutas.iterator();
                        while (true) {
                            if (!it.hasNext()) {
                                break;
                            }
                            if (((RutaDto) it.next()).getParadas().contains(Integer.valueOf(paradaDto.getId()))) {
                                arrayList2.add(obj2);
                                break;
                            }
                        }
                    }
                }
                paradaConDistancia = new ParadaConDistancia(paradaDto, posGpsItem.getDistancia(), arrayList2);
            } else {
                paradaConDistancia = null;
            }
            if (paradaConDistancia != null) {
                arrayList.add(paradaConDistancia);
            }
        }
        return CollectionsKt.sortedWith(arrayList, new Comparator() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$getParadasCercanas$$inlined$sortedBy$1
            /* JADX WARN: Multi-variable type inference failed */
            @Override // java.util.Comparator
            public final int compare(T t, T t2) {
                return ComparisonsKt.compareValues(Integer.valueOf(((ParadaConDistancia) t).getDistancia()), Integer.valueOf(((ParadaConDistancia) t2).getDistancia()));
            }
        });
    }

    public static final SettingsState rememberSettingsController(Composer composer, int i) {
        composer.startReplaceGroup(-1854200642);
        if (ComposerKt.isTraceInProgress()) {
            ComposerKt.traceEventStart(-1854200642, i, -1, "com.sistemasolton.itranvias.home.presentation.nearby.rememberSettingsController (NearbyScreen.kt:455)");
        }
        composer.startReplaceGroup(1849434622);
        Object objRememberedValue = composer.rememberedValue();
        if (objRememberedValue == Composer.INSTANCE.getEmpty()) {
            objRememberedValue = new SettingsState();
            composer.updateRememberedValue(objRememberedValue);
        }
        SettingsState settingsState = (SettingsState) objRememberedValue;
        composer.endReplaceGroup();
        NearbyScreen_androidKt.SettingsController(settingsState, composer, 6);
        if (ComposerKt.isTraceInProgress()) {
            ComposerKt.traceEventEnd();
        }
        composer.endReplaceGroup();
        return settingsState;
    }
}