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

import androidx.compose.foundation.lazy.LazyItemScope;
import androidx.compose.runtime.Composer;
import androidx.compose.runtime.ComposerKt;
import java.util.List;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function4;
import kotlin.jvm.internal.Intrinsics;

/* JADX INFO: compiled from: NearbyScreen.kt */
/* JADX INFO: loaded from: classes2.dex */
@Metadata(k = 3, mv = {2, 1, 0}, xi = 48)
final class NearbyScreenKt$NearbyScreen$7$4$5$1$1 implements Function4<LazyItemScope, Integer, Composer, Integer, Unit> {
    final /* synthetic */ Function1<String, Unit> $onStopDetail;
    final /* synthetic */ List<ParadaConDistancia> $paradasCercanas;

    /* JADX WARN: Multi-variable type inference failed */
    NearbyScreenKt$NearbyScreen$7$4$5$1$1(List<ParadaConDistancia> list, Function1<? super String, Unit> function1) {
        this.$paradasCercanas = list;
        this.$onStopDetail = function1;
    }

    @Override // kotlin.jvm.functions.Function4
    public /* bridge */ /* synthetic */ Unit invoke(LazyItemScope lazyItemScope, Integer num, Composer composer, Integer num2) {
        invoke(lazyItemScope, num.intValue(), composer, num2.intValue());
        return Unit.INSTANCE;
    }

    public final void invoke(LazyItemScope items, int i, Composer composer, int i2) {
        Intrinsics.checkNotNullParameter(items, "$this$items");
        if ((i2 & 48) == 0) {
            i2 |= composer.changed(i) ? 32 : 16;
        }
        if ((i2 & 145) == 144 && composer.getSkipping()) {
            composer.skipToGroupEnd();
            return;
        }
        if (ComposerKt.isTraceInProgress()) {
            ComposerKt.traceEventStart(1088372756, i2, -1, "com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreen.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous> (NearbyScreen.kt:288)");
        }
        final ParadaConDistancia paradaConDistancia = this.$paradasCercanas.get(i);
        composer.startReplaceGroup(-1633490746);
        boolean zChanged = composer.changed(this.$onStopDetail) | composer.changedInstance(paradaConDistancia);
        final Function1<String, Unit> function1 = this.$onStopDetail;
        Object objRememberedValue = composer.rememberedValue();
        if (zChanged || objRememberedValue == Composer.INSTANCE.getEmpty()) {
            objRememberedValue = new Function0() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$NearbyScreen$7$4$5$1$1$$ExternalSyntheticLambda0
                @Override // kotlin.jvm.functions.Function0
                public final Object invoke() {
                    return NearbyScreenKt$NearbyScreen$7$4$5$1$1.invoke$lambda$1$lambda$0(function1, paradaConDistancia);
                }
            };
            composer.updateRememberedValue(objRememberedValue);
        }
        composer.endReplaceGroup();
        NearbyScreenKt.ParadaItem(paradaConDistancia, (Function0) objRememberedValue, composer, 0);
        if (ComposerKt.isTraceInProgress()) {
            ComposerKt.traceEventEnd();
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit invoke$lambda$1$lambda$0(Function1 function1, ParadaConDistancia paradaConDistancia) {
        function1.invoke(String.valueOf(paradaConDistancia.getParada().getId()));
        return Unit.INSTANCE;
    }
}