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

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.ColumnScopeInstance;
import androidx.compose.foundation.layout.PaddingKt;
import androidx.compose.foundation.layout.PaddingValues;
import androidx.compose.foundation.layout.RowScope;
import androidx.compose.foundation.layout.SizeKt;
import androidx.compose.foundation.lazy.LazyItemScope;
import androidx.compose.foundation.lazy.LazyListScope;
import androidx.compose.foundation.shape.RoundedCornerShape;
import androidx.compose.foundation.shape.RoundedCornerShapeKt;
import androidx.compose.material3.AppBarKt;
import androidx.compose.material3.ButtonKt;
import androidx.compose.material3.IconButtonKt;
import androidx.compose.material3.MaterialTheme;
import androidx.compose.material3.ScaffoldKt;
import androidx.compose.material3.TextKt;
import androidx.compose.material3.TopAppBarDefaults;
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.MutableState;
import androidx.compose.runtime.ProvidableCompositionLocal;
import androidx.compose.runtime.RecomposeScopeImplKt;
import androidx.compose.runtime.ScopeUpdateScope;
import androidx.compose.runtime.Updater;
import androidx.compose.runtime.internal.ComposableLambda;
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.geometry.Size;
import androidx.compose.ui.graphics.Color;
import androidx.compose.ui.layout.LayoutCoordinates;
import androidx.compose.ui.layout.MeasurePolicy;
import androidx.compose.ui.node.ComposeUiNode;
import androidx.compose.ui.platform.CompositionLocalsKt;
import androidx.compose.ui.platform.UriHandler;
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.IntSizeKt;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelStoreOwner;
import androidx.lifecycle.viewmodel.compose.LocalViewModelStoreOwner;
import androidx.profileinstaller.ProfileVerifier;
import com.google.android.gms.actions.SearchIntents;
import com.sistemasolton.itranvias.home.data.remote.Prediction;
import com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt;
import com.sistemasolton.itranvias.ui.theme.ColorKt;
import itranvias.composeapp.generated.resources.Res;
import itranvias.composeapp.generated.resources.String0_commonMainKt;
import itranvias.composeapp.generated.resources.String1_commonMainKt;
import java.util.List;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.functions.Function3;
import kotlin.jvm.functions.Function4;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import kotlin.text.StringsKt;
import org.jetbrains.compose.resources.StringResourcesKt;
import org.koin.compose.KoinApplicationKt;
import org.koin.viewmodel.CreationExtrasExtKt;
import org.koin.viewmodel.GetViewModelKt;
import org.slf4j.Marker;

/* JADX INFO: compiled from: RouteCalculationScreen.kt */
/* JADX INFO: loaded from: classes2.dex */
@Metadata(d1 = {"\u00004\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\u001a\u001b\u0010\u0000\u001a\u00020\u00012\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00010\u0003H\u0007¢\u0006\u0002\u0010\u0004\u001ag\u0010\u0005\u001a\u00020\u00012\u0006\u0010\u0006\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\u00072\f\u0010\t\u001a\b\u0012\u0004\u0012\u00020\u000b0\n2\u0012\u0010\f\u001a\u000e\u0012\u0004\u0012\u00020\u0007\u0012\u0004\u0012\u00020\u00010\r2\u0012\u0010\u000e\u001a\u000e\u0012\u0004\u0012\u00020\u000b\u0012\u0004\u0012\u00020\u00010\r2\b\b\u0002\u0010\u000f\u001a\u00020\u00072\b\b\u0002\u0010\u0010\u001a\u00020\u0007H\u0007¢\u0006\u0002\u0010\u0011¨\u0006\u0012²\u0006\n\u0010\u0013\u001a\u00020\u0014X\u008a\u008e\u0002²\u0006\n\u0010\u0015\u001a\u00020\u0016X\u008a\u008e\u0002"}, d2 = {"RouteCalculationScreen", "", "onBackPressed", "Lkotlin/Function0;", "(Lkotlin/jvm/functions/Function0;Landroidx/compose/runtime/Composer;I)V", "AutoCompleteTextField", "label", "", SearchIntents.EXTRA_QUERY, "predictions", "", "Lcom/sistemasolton/itranvias/home/data/remote/Prediction;", "onQueryChanged", "Lkotlin/Function1;", "onSelect", "fieldContentDescription", "predictionListContentDescription", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Ljava/lang/String;Ljava/lang/String;Landroidx/compose/runtime/Composer;II)V", "composeApp_release", "expanded", "", "textFieldSize", "Landroidx/compose/ui/geometry/Size;"}, k = 2, mv = {2, 1, 0}, xi = 48)
public final class RouteCalculationScreenKt {
    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit AutoCompleteTextField$lambda$30(String str, String str2, List list, Function1 function1, Function1 function12, String str3, String str4, int i, int i2, Composer composer, int i3) {
        AutoCompleteTextField(str, str2, list, function1, function12, str3, str4, composer, RecomposeScopeImplKt.updateChangedFlags(i | 1), i2);
        return Unit.INSTANCE;
    }

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

    public static final void RouteCalculationScreen(final Function0<Unit> onBackPressed, Composer composer, final int i) {
        int i2;
        Composer composer2;
        Intrinsics.checkNotNullParameter(onBackPressed, "onBackPressed");
        Composer composerStartRestartGroup = composer.startRestartGroup(365461644);
        if ((i & 6) == 0) {
            i2 = (composerStartRestartGroup.changedInstance(onBackPressed) ? 4 : 2) | i;
        } else {
            i2 = i;
        }
        if ((i2 & 3) != 2 || !composerStartRestartGroup.getSkipping()) {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(365461644, i2, -1, "com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreen (RouteCalculationScreen.kt:46)");
            }
            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(RouteCalculationViewModel.class), current.getViewModelStore(), null, CreationExtrasExtKt.defaultExtras(current), null, KoinApplicationKt.currentKoinScope(composerStartRestartGroup, 0), null);
            composerStartRestartGroup.endReplaceGroup();
            RouteCalculationViewModel routeCalculationViewModel = (RouteCalculationViewModel) viewModelResolveViewModel;
            RouteCalculationState state = routeCalculationViewModel.getState();
            ProvidableCompositionLocal<UriHandler> localUriHandler = CompositionLocalsKt.getLocalUriHandler();
            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 2023513938, "CC(<get-current>):CompositionLocal.kt#9igjgp");
            Object objConsume = composerStartRestartGroup.consume(localUriHandler);
            ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
            ComposableLambda composableLambdaRememberComposableLambda = ComposableLambdaKt.rememberComposableLambda(-1305300912, true, new AnonymousClass1(onBackPressed), composerStartRestartGroup, 54);
            ComposableLambda composableLambdaRememberComposableLambda2 = ComposableLambdaKt.rememberComposableLambda(1989791067, true, new AnonymousClass2(state, routeCalculationViewModel, (UriHandler) objConsume), composerStartRestartGroup, 54);
            composer2 = composerStartRestartGroup;
            ScaffoldKt.m2518ScaffoldTvnljyQ(null, composableLambdaRememberComposableLambda, null, null, null, 0, 0L, 0L, null, composableLambdaRememberComposableLambda2, composerStartRestartGroup, 805306416, 509);
            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.routecalculation.RouteCalculationScreenKt$$ExternalSyntheticLambda0
                @Override // kotlin.jvm.functions.Function2
                public final Object invoke(Object obj, Object obj2) {
                    return RouteCalculationScreenKt.RouteCalculationScreen$lambda$0(onBackPressed, i, (Composer) obj, ((Integer) obj2).intValue());
                }
            });
        }
    }

    /* JADX INFO: renamed from: com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt$RouteCalculationScreen$1, reason: invalid class name */
    /* JADX INFO: compiled from: RouteCalculationScreen.kt */
    @Metadata(k = 3, mv = {2, 1, 0}, xi = 48)
    static final class AnonymousClass1 implements Function2<Composer, Integer, Unit> {
        final /* synthetic */ Function0<Unit> $onBackPressed;

        AnonymousClass1(Function0<Unit> function0) {
            this.$onBackPressed = function0;
        }

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

        public final void invoke(Composer composer, int i) {
            if ((i & 3) == 2 && composer.getSkipping()) {
                composer.skipToGroupEnd();
                return;
            }
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(-1305300912, i, -1, "com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreen.<anonymous> (RouteCalculationScreen.kt:53)");
            }
            final String strStringResource = StringResourcesKt.stringResource(String0_commonMainKt.getCalculo_ruta(Res.string.INSTANCE), composer, 0);
            String strStringResource2 = StringResourcesKt.stringResource(String1_commonMainKt.getVolver(Res.string.INSTANCE), composer, 0);
            Modifier.Companion companion = Modifier.INSTANCE;
            composer.startReplaceGroup(5004770);
            boolean zChanged = composer.changed(strStringResource);
            Object objRememberedValue = composer.rememberedValue();
            if (zChanged || objRememberedValue == Composer.INSTANCE.getEmpty()) {
                objRememberedValue = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt$RouteCalculationScreen$1$$ExternalSyntheticLambda0
                    @Override // kotlin.jvm.functions.Function1
                    public final Object invoke(Object obj) {
                        return RouteCalculationScreenKt.AnonymousClass1.invoke$lambda$1$lambda$0(strStringResource, (SemanticsPropertyReceiver) obj);
                    }
                };
                composer.updateRememberedValue(objRememberedValue);
            }
            composer.endReplaceGroup();
            AppBarKt.m1882TopAppBarGHTll3U(ComposableLambdaKt.rememberComposableLambda(-1950391540, true, new AnonymousClass2(strStringResource), composer, 54), SemanticsModifierKt.semantics$default(companion, false, (Function1) objRememberedValue, 1, null), ComposableLambdaKt.rememberComposableLambda(414073930, true, new AnonymousClass3(this.$onBackPressed, strStringResource2), composer, 54), null, 0.0f, null, TopAppBarDefaults.INSTANCE.m2974topAppBarColorszjMxDiM(MaterialTheme.INSTANCE.getColorScheme(composer, MaterialTheme.$stable).getInversePrimary(), 0L, 0L, 0L, 0L, composer, TopAppBarDefaults.$stable << 15, 30), null, composer, 390, 184);
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        }

        /* JADX INFO: Access modifiers changed from: private */
        public static final Unit invoke$lambda$1$lambda$0(String str, SemanticsPropertyReceiver semantics) {
            Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
            SemanticsPropertiesKt.heading(semantics);
            SemanticsPropertiesKt.setContentDescription(semantics, str);
            return Unit.INSTANCE;
        }

        /* JADX INFO: renamed from: com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt$RouteCalculationScreen$1$2, reason: invalid class name */
        /* JADX INFO: compiled from: RouteCalculationScreen.kt */
        @Metadata(k = 3, mv = {2, 1, 0}, xi = 48)
        static final class AnonymousClass2 implements Function2<Composer, Integer, Unit> {
            final /* synthetic */ String $titleText;

            AnonymousClass2(String str) {
                this.$titleText = str;
            }

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

            public final void invoke(Composer composer, int i) {
                if ((i & 3) == 2 && composer.getSkipping()) {
                    composer.skipToGroupEnd();
                    return;
                }
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventStart(-1950391540, i, -1, "com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreen.<anonymous>.<anonymous> (RouteCalculationScreen.kt:63)");
                }
                long whiteTranvias = ColorKt.getWhiteTranvias();
                Modifier.Companion companion = Modifier.INSTANCE;
                composer.startReplaceGroup(1849434622);
                Object objRememberedValue = composer.rememberedValue();
                if (objRememberedValue == Composer.INSTANCE.getEmpty()) {
                    objRememberedValue = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt$RouteCalculationScreen$1$2$$ExternalSyntheticLambda0
                        @Override // kotlin.jvm.functions.Function1
                        public final Object invoke(Object obj) {
                            return RouteCalculationScreenKt.AnonymousClass1.AnonymousClass2.invoke$lambda$1$lambda$0((SemanticsPropertyReceiver) obj);
                        }
                    };
                    composer.updateRememberedValue(objRememberedValue);
                }
                composer.endReplaceGroup();
                TextKt.m2803Text4IGK_g(this.$titleText, SemanticsModifierKt.semantics$default(companion, false, (Function1) objRememberedValue, 1, null), whiteTranvias, 0L, (FontStyle) null, (FontWeight) null, (FontFamily) null, 0L, (TextDecoration) null, (TextAlign) null, 0L, 0, false, 0, 0, (Function1<? super TextLayoutResult, Unit>) null, (TextStyle) null, composer, 384, 0, 131064);
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventEnd();
                }
            }

            /* JADX INFO: Access modifiers changed from: private */
            public static final Unit invoke$lambda$1$lambda$0(SemanticsPropertyReceiver semantics) {
                Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
                SemanticsPropertiesKt.heading(semantics);
                return Unit.INSTANCE;
            }
        }

        /* JADX INFO: renamed from: com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt$RouteCalculationScreen$1$3, reason: invalid class name */
        /* JADX INFO: compiled from: RouteCalculationScreen.kt */
        @Metadata(k = 3, mv = {2, 1, 0}, xi = 48)
        static final class AnonymousClass3 implements Function2<Composer, Integer, Unit> {
            final /* synthetic */ String $backText;
            final /* synthetic */ Function0<Unit> $onBackPressed;

            AnonymousClass3(Function0<Unit> function0, String str) {
                this.$onBackPressed = function0;
                this.$backText = str;
            }

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

            public final void invoke(Composer composer, int i) {
                if ((i & 3) == 2 && composer.getSkipping()) {
                    composer.skipToGroupEnd();
                    return;
                }
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventStart(414073930, i, -1, "com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreen.<anonymous>.<anonymous> (RouteCalculationScreen.kt:70)");
                }
                Function0<Unit> function0 = this.$onBackPressed;
                Modifier.Companion companion = Modifier.INSTANCE;
                composer.startReplaceGroup(5004770);
                boolean zChanged = composer.changed(this.$backText);
                final String str = this.$backText;
                Object objRememberedValue = composer.rememberedValue();
                if (zChanged || objRememberedValue == Composer.INSTANCE.getEmpty()) {
                    objRememberedValue = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt$RouteCalculationScreen$1$3$$ExternalSyntheticLambda0
                        @Override // kotlin.jvm.functions.Function1
                        public final Object invoke(Object obj) {
                            return RouteCalculationScreenKt.AnonymousClass1.AnonymousClass3.invoke$lambda$1$lambda$0(str, (SemanticsPropertyReceiver) obj);
                        }
                    };
                    composer.updateRememberedValue(objRememberedValue);
                }
                composer.endReplaceGroup();
                IconButtonKt.IconButton(function0, SemanticsModifierKt.semantics$default(companion, false, (Function1) objRememberedValue, 1, null), false, null, null, ComposableSingletons$RouteCalculationScreenKt.INSTANCE.m7993getLambda$1661044659$composeApp_release(), composer, ProfileVerifier.CompilationStatus.RESULT_CODE_ERROR_CANT_WRITE_PROFILE_VERIFICATION_RESULT_CACHE_FILE, 28);
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventEnd();
                }
            }

            /* JADX INFO: Access modifiers changed from: private */
            public static final Unit invoke$lambda$1$lambda$0(String str, SemanticsPropertyReceiver semantics) {
                Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
                SemanticsPropertiesKt.m6444setRolekuIjeqM(semantics, Role.INSTANCE.m6425getButtono7Vup1c());
                SemanticsPropertiesKt.setContentDescription(semantics, str);
                return Unit.INSTANCE;
            }
        }
    }

    /* JADX INFO: renamed from: com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt$RouteCalculationScreen$2, reason: invalid class name */
    /* JADX INFO: compiled from: RouteCalculationScreen.kt */
    @Metadata(k = 3, mv = {2, 1, 0}, xi = 48)
    static final class AnonymousClass2 implements Function3<PaddingValues, Composer, Integer, Unit> {
        final /* synthetic */ RouteCalculationState $state;
        final /* synthetic */ UriHandler $uriHandler;
        final /* synthetic */ RouteCalculationViewModel $viewModel;

        AnonymousClass2(RouteCalculationState routeCalculationState, RouteCalculationViewModel routeCalculationViewModel, UriHandler uriHandler) {
            this.$state = routeCalculationState;
            this.$viewModel = routeCalculationViewModel;
            this.$uriHandler = uriHandler;
        }

        @Override // kotlin.jvm.functions.Function3
        public /* bridge */ /* synthetic */ Unit invoke(PaddingValues paddingValues, Composer composer, Integer num) {
            invoke(paddingValues, composer, num.intValue());
            return Unit.INSTANCE;
        }

        /* JADX INFO: Access modifiers changed from: private */
        public static final Unit invoke$lambda$12$lambda$1$lambda$0(RouteCalculationViewModel routeCalculationViewModel, String it) {
            Intrinsics.checkNotNullParameter(it, "it");
            routeCalculationViewModel.onOriginQueryChanged(it);
            return Unit.INSTANCE;
        }

        /* JADX INFO: Access modifiers changed from: private */
        public static final Unit invoke$lambda$12$lambda$3$lambda$2(RouteCalculationViewModel routeCalculationViewModel, Prediction it) {
            Intrinsics.checkNotNullParameter(it, "it");
            routeCalculationViewModel.onOriginSelected(it.getDescription());
            return Unit.INSTANCE;
        }

        /* JADX INFO: Access modifiers changed from: private */
        public static final Unit invoke$lambda$12$lambda$5$lambda$4(RouteCalculationViewModel routeCalculationViewModel, String it) {
            Intrinsics.checkNotNullParameter(it, "it");
            routeCalculationViewModel.onDestinationQueryChanged(it);
            return Unit.INSTANCE;
        }

        /* JADX INFO: Access modifiers changed from: private */
        public static final Unit invoke$lambda$12$lambda$7$lambda$6(RouteCalculationViewModel routeCalculationViewModel, Prediction it) {
            Intrinsics.checkNotNullParameter(it, "it");
            routeCalculationViewModel.onDestinationSelected(it.getDescription());
            return Unit.INSTANCE;
        }

        /* JADX INFO: Access modifiers changed from: private */
        public static final Unit invoke$lambda$12$lambda$11$lambda$10(RouteCalculationState routeCalculationState, UriHandler uriHandler) {
            String strReplace$default;
            String strReplace$default2;
            String selectedOrigin = routeCalculationState.getSelectedOrigin();
            if (selectedOrigin == null || (strReplace$default = StringsKt.replace$default(selectedOrigin, " ", Marker.ANY_NON_NULL_MARKER, false, 4, (Object) null)) == null) {
                return Unit.INSTANCE;
            }
            String selectedDestination = routeCalculationState.getSelectedDestination();
            if (selectedDestination == null || (strReplace$default2 = StringsKt.replace$default(selectedDestination, " ", Marker.ANY_NON_NULL_MARKER, false, 4, (Object) null)) == null) {
                return Unit.INSTANCE;
            }
            uriHandler.openUri("https://www.google.com/maps/dir/?api=1&origin=" + strReplace$default + "&destination=" + strReplace$default2 + "&travelmode=transit");
            return Unit.INSTANCE;
        }

        /* JADX INFO: Access modifiers changed from: private */
        public static final Unit invoke$lambda$12$lambda$9$lambda$8(String str, SemanticsPropertyReceiver semantics) {
            Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
            SemanticsPropertiesKt.m6444setRolekuIjeqM(semantics, Role.INSTANCE.m6425getButtono7Vup1c());
            SemanticsPropertiesKt.setContentDescription(semantics, str);
            return Unit.INSTANCE;
        }

        public final void invoke(PaddingValues innerPadding, Composer composer, int i) {
            int i2;
            Intrinsics.checkNotNullParameter(innerPadding, "innerPadding");
            if ((i & 6) == 0) {
                i2 = i | (composer.changed(innerPadding) ? 4 : 2);
            } else {
                i2 = i;
            }
            if ((i2 & 19) == 18 && composer.getSkipping()) {
                composer.skipToGroupEnd();
                return;
            }
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(1989791067, i2, -1, "com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreen.<anonymous> (RouteCalculationScreen.kt:88)");
            }
            String strStringResource = StringResourcesKt.stringResource(String0_commonMainKt.getOrigen(Res.string.INSTANCE), composer, 0);
            String strStringResource2 = StringResourcesKt.stringResource(String0_commonMainKt.getDestino(Res.string.INSTANCE), composer, 0);
            String strStringResource3 = StringResourcesKt.stringResource(String0_commonMainKt.getEscribe_aqui(Res.string.INSTANCE), composer, 0);
            final String strStringResource4 = StringResourcesKt.stringResource(String0_commonMainKt.getCalcular_ruta(Res.string.INSTANCE), composer, 0);
            float f = 12;
            Modifier modifierM832padding3ABfNKs = PaddingKt.m832padding3ABfNKs(PaddingKt.padding(SizeKt.fillMaxSize$default(Modifier.INSTANCE, 0.0f, 1, null), innerPadding), Dp.m7215constructorimpl(f));
            Alignment.Horizontal centerHorizontally = Alignment.INSTANCE.getCenterHorizontally();
            Arrangement.HorizontalOrVertical horizontalOrVerticalM691spacedBy0680j_4 = Arrangement.INSTANCE.m691spacedBy0680j_4(Dp.m7215constructorimpl(f));
            final RouteCalculationState routeCalculationState = this.$state;
            final RouteCalculationViewModel routeCalculationViewModel = this.$viewModel;
            final UriHandler uriHandler = this.$uriHandler;
            ComposerKt.sourceInformationMarkerStart(composer, 1341605231, "CC(Column)N(modifier,verticalArrangement,horizontalAlignment,content)87@4443L61,88@4509L134:Column.kt#2w3rfo");
            MeasurePolicy measurePolicyColumnMeasurePolicy = ColumnKt.columnMeasurePolicy(horizontalOrVerticalM691spacedBy0680j_4, centerHorizontally, composer, 54);
            ComposerKt.sourceInformationMarkerStart(composer, -1159599143, "CC(Layout)P(!1,2)80@3267L27,83@3433L360:Layout.kt#80mrfh");
            int iHashCode = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composer, 0));
            CompositionLocalMap currentCompositionLocalMap = composer.getCurrentCompositionLocalMap();
            Modifier modifierMaterializeModifier = ComposedModifierKt.materializeModifier(composer, modifierM832padding3ABfNKs);
            Function0<ComposeUiNode> constructor = ComposeUiNode.INSTANCE.getConstructor();
            ComposerKt.sourceInformationMarkerStart(composer, -553112988, "CC(ReusableComposeNode)N(factory,update,content)399@15590L9:Composables.kt#9igjgp");
            if (!(composer.getApplier() instanceof Applier)) {
                ComposablesKt.invalidApplier();
            }
            composer.startReusableNode();
            if (composer.getInserting()) {
                composer.createNode(constructor);
            } else {
                composer.useNode();
            }
            Composer composerM3820constructorimpl = Updater.m3820constructorimpl(composer);
            Updater.m3827setimpl(composerM3820constructorimpl, measurePolicyColumnMeasurePolicy, 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(composer, 2093002350, "C89@4557L9:Column.kt#2w3rfo");
            ColumnScopeInstance columnScopeInstance = ColumnScopeInstance.INSTANCE;
            String originQuery = routeCalculationState.getOriginQuery();
            List<Prediction> originPredictions = routeCalculationState.getOriginPredictions();
            composer.startReplaceGroup(5004770);
            boolean zChangedInstance = composer.changedInstance(routeCalculationViewModel);
            Object objRememberedValue = composer.rememberedValue();
            if (zChangedInstance || objRememberedValue == Composer.INSTANCE.getEmpty()) {
                objRememberedValue = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt$RouteCalculationScreen$2$$ExternalSyntheticLambda0
                    @Override // kotlin.jvm.functions.Function1
                    public final Object invoke(Object obj) {
                        return RouteCalculationScreenKt.AnonymousClass2.invoke$lambda$12$lambda$1$lambda$0(routeCalculationViewModel, (String) obj);
                    }
                };
                composer.updateRememberedValue(objRememberedValue);
            }
            Function1 function1 = (Function1) objRememberedValue;
            composer.endReplaceGroup();
            composer.startReplaceGroup(5004770);
            boolean zChangedInstance2 = composer.changedInstance(routeCalculationViewModel);
            Object objRememberedValue2 = composer.rememberedValue();
            if (zChangedInstance2 || objRememberedValue2 == Composer.INSTANCE.getEmpty()) {
                objRememberedValue2 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt$RouteCalculationScreen$2$$ExternalSyntheticLambda1
                    @Override // kotlin.jvm.functions.Function1
                    public final Object invoke(Object obj) {
                        return RouteCalculationScreenKt.AnonymousClass2.invoke$lambda$12$lambda$3$lambda$2(routeCalculationViewModel, (Prediction) obj);
                    }
                };
                composer.updateRememberedValue(objRememberedValue2);
            }
            composer.endReplaceGroup();
            RouteCalculationScreenKt.AutoCompleteTextField(strStringResource, originQuery, originPredictions, function1, (Function1) objRememberedValue2, strStringResource + ", " + strStringResource3, "Sugerencias de " + strStringResource, composer, 0, 0);
            String destinationQuery = routeCalculationState.getDestinationQuery();
            List<Prediction> destinationPredictions = routeCalculationState.getDestinationPredictions();
            composer.startReplaceGroup(5004770);
            boolean zChangedInstance3 = composer.changedInstance(routeCalculationViewModel);
            Object objRememberedValue3 = composer.rememberedValue();
            if (zChangedInstance3 || objRememberedValue3 == Composer.INSTANCE.getEmpty()) {
                objRememberedValue3 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt$RouteCalculationScreen$2$$ExternalSyntheticLambda2
                    @Override // kotlin.jvm.functions.Function1
                    public final Object invoke(Object obj) {
                        return RouteCalculationScreenKt.AnonymousClass2.invoke$lambda$12$lambda$5$lambda$4(routeCalculationViewModel, (String) obj);
                    }
                };
                composer.updateRememberedValue(objRememberedValue3);
            }
            Function1 function12 = (Function1) objRememberedValue3;
            composer.endReplaceGroup();
            composer.startReplaceGroup(5004770);
            boolean zChangedInstance4 = composer.changedInstance(routeCalculationViewModel);
            Object objRememberedValue4 = composer.rememberedValue();
            if (zChangedInstance4 || objRememberedValue4 == Composer.INSTANCE.getEmpty()) {
                objRememberedValue4 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt$RouteCalculationScreen$2$$ExternalSyntheticLambda3
                    @Override // kotlin.jvm.functions.Function1
                    public final Object invoke(Object obj) {
                        return RouteCalculationScreenKt.AnonymousClass2.invoke$lambda$12$lambda$7$lambda$6(routeCalculationViewModel, (Prediction) obj);
                    }
                };
                composer.updateRememberedValue(objRememberedValue4);
            }
            composer.endReplaceGroup();
            RouteCalculationScreenKt.AutoCompleteTextField(strStringResource2, destinationQuery, destinationPredictions, function12, (Function1) objRememberedValue4, strStringResource2 + ", " + strStringResource3, "Sugerencias de " + strStringResource2, composer, 0, 0);
            TextKt.m2803Text4IGK_g(StringResourcesKt.stringResource(String0_commonMainKt.getMensaje_redireccion(Res.string.INSTANCE), composer, 0), PaddingKt.m834paddingVpY3zN4$default(Modifier.INSTANCE, Dp.m7215constructorimpl(4), 0.0f, 2, 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, composer, 197040, 0, 131032);
            Modifier modifierFillMaxWidth$default = SizeKt.fillMaxWidth$default(Modifier.INSTANCE, 0.0f, 1, null);
            composer.startReplaceGroup(5004770);
            boolean zChanged = composer.changed(strStringResource4);
            Object objRememberedValue5 = composer.rememberedValue();
            if (zChanged || objRememberedValue5 == Composer.INSTANCE.getEmpty()) {
                objRememberedValue5 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt$RouteCalculationScreen$2$$ExternalSyntheticLambda4
                    @Override // kotlin.jvm.functions.Function1
                    public final Object invoke(Object obj) {
                        return RouteCalculationScreenKt.AnonymousClass2.invoke$lambda$12$lambda$9$lambda$8(strStringResource4, (SemanticsPropertyReceiver) obj);
                    }
                };
                composer.updateRememberedValue(objRememberedValue5);
            }
            composer.endReplaceGroup();
            boolean z = false;
            Modifier modifierSemantics$default = SemanticsModifierKt.semantics$default(modifierFillMaxWidth$default, false, (Function1) objRememberedValue5, 1, null);
            RoundedCornerShape roundedCornerShapeM1197RoundedCornerShape0680j_4 = RoundedCornerShapeKt.m1197RoundedCornerShape0680j_4(Dp.m7215constructorimpl(8));
            if (routeCalculationState.getSelectedOrigin() != null && routeCalculationState.getSelectedDestination() != null) {
                z = true;
            }
            composer.startReplaceGroup(-1633490746);
            boolean zChangedInstance5 = composer.changedInstance(routeCalculationState) | composer.changedInstance(uriHandler);
            Object objRememberedValue6 = composer.rememberedValue();
            if (zChangedInstance5 || objRememberedValue6 == Composer.INSTANCE.getEmpty()) {
                objRememberedValue6 = new Function0() { // from class: com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt$RouteCalculationScreen$2$$ExternalSyntheticLambda5
                    @Override // kotlin.jvm.functions.Function0
                    public final Object invoke() {
                        return RouteCalculationScreenKt.AnonymousClass2.invoke$lambda$12$lambda$11$lambda$10(routeCalculationState, uriHandler);
                    }
                };
                composer.updateRememberedValue(objRememberedValue6);
            }
            composer.endReplaceGroup();
            ButtonKt.Button((Function0) objRememberedValue6, modifierSemantics$default, z, roundedCornerShapeM1197RoundedCornerShape0680j_4, null, null, null, null, null, ComposableLambdaKt.rememberComposableLambda(2084982453, true, new Function3<RowScope, Composer, Integer, Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt$RouteCalculationScreen$2$1$7
                @Override // kotlin.jvm.functions.Function3
                public /* bridge */ /* synthetic */ Unit invoke(RowScope rowScope, Composer composer2, Integer num) {
                    invoke(rowScope, composer2, num.intValue());
                    return Unit.INSTANCE;
                }

                public final void invoke(RowScope Button, Composer composer2, int i3) {
                    Intrinsics.checkNotNullParameter(Button, "$this$Button");
                    if ((i3 & 17) == 16 && composer2.getSkipping()) {
                        composer2.skipToGroupEnd();
                        return;
                    }
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventStart(2084982453, i3, -1, "com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreen.<anonymous>.<anonymous>.<anonymous> (RouteCalculationScreen.kt:147)");
                    }
                    TextKt.m2803Text4IGK_g(strStringResource4, (Modifier) null, 0L, 0L, (FontStyle) null, (FontWeight) null, (FontFamily) null, 0L, (TextDecoration) null, (TextAlign) null, 0L, 0, false, 0, 0, (Function1<? super TextLayoutResult, Unit>) null, (TextStyle) null, composer2, 0, 0, 131070);
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventEnd();
                    }
                }
            }, composer, 54), composer, 805306368, 496);
            ComposerKt.sourceInformationMarkerEnd(composer);
            composer.endNode();
            ComposerKt.sourceInformationMarkerEnd(composer);
            ComposerKt.sourceInformationMarkerEnd(composer);
            ComposerKt.sourceInformationMarkerEnd(composer);
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:101:0x0144  */
    /* JADX WARN: Removed duplicated region for block: B:104:0x0161  */
    /* JADX WARN: Removed duplicated region for block: B:107:0x0181  */
    /* JADX WARN: Removed duplicated region for block: B:110:0x01a7  */
    /* JADX WARN: Removed duplicated region for block: B:113:0x01d1  */
    /* JADX WARN: Removed duplicated region for block: B:116:0x023a  */
    /* JADX WARN: Removed duplicated region for block: B:119:0x0246  */
    /* JADX WARN: Removed duplicated region for block: B:120:0x024a  */
    /* JADX WARN: Removed duplicated region for block: B:125:0x027d  */
    /* JADX WARN: Removed duplicated region for block: B:128:0x02cc  */
    /* JADX WARN: Removed duplicated region for block: B:131:0x0394  */
    /* JADX WARN: Removed duplicated region for block: B:134:0x03a0  */
    /* JADX WARN: Removed duplicated region for block: B:135:0x03a4  */
    /* JADX WARN: Removed duplicated region for block: B:140:0x03d7  */
    /* JADX WARN: Removed duplicated region for block: B:143:0x0414  */
    /* JADX WARN: Removed duplicated region for block: B:146:0x0435  */
    /* JADX WARN: Removed duplicated region for block: B:149:0x043e  */
    /* JADX WARN: Removed duplicated region for block: B:152:0x0444 A[PHI: r3
  0x0444: PHI (r3v57 java.lang.String) = (r3v43 java.lang.String), (r3v58 java.lang.String) binds: [B:151:0x0442, B:147:0x043b] A[DONT_GENERATE, DONT_INLINE]] */
    /* JADX WARN: Removed duplicated region for block: B:153:0x0446  */
    /* JADX WARN: Removed duplicated region for block: B:156:0x044d  */
    /* JADX WARN: Removed duplicated region for block: B:158:0x0455  */
    /* JADX WARN: Removed duplicated region for block: B:161:0x0472  */
    /* JADX WARN: Removed duplicated region for block: B:162:0x0475  */
    /* JADX WARN: Removed duplicated region for block: B:169:0x048b  */
    /* JADX WARN: Removed duplicated region for block: B:215:0x06d0  */
    /* JADX WARN: Removed duplicated region for block: B:218:0x06fb  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct code enable 'Show inconsistent code' option in preferences
    */
    public static final void AutoCompleteTextField(final java.lang.String r52, final java.lang.String r53, final java.util.List<com.sistemasolton.itranvias.home.data.remote.Prediction> r54, final kotlin.jvm.functions.Function1<? super java.lang.String, kotlin.Unit> r55, final kotlin.jvm.functions.Function1<? super com.sistemasolton.itranvias.home.data.remote.Prediction, kotlin.Unit> r56, java.lang.String r57, java.lang.String r58, androidx.compose.runtime.Composer r59, final int r60, final int r61) {
        /*
            Method dump skipped, instruction units count: 1824
            To view this dump change 'Code comments level' option to 'DEBUG'
        */
        throw new UnsupportedOperationException("Method not decompiled: com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt.AutoCompleteTextField(java.lang.String, java.lang.String, java.util.List, kotlin.jvm.functions.Function1, kotlin.jvm.functions.Function1, java.lang.String, java.lang.String, androidx.compose.runtime.Composer, int, int):void");
    }

    private static final boolean AutoCompleteTextField$lambda$2(MutableState<Boolean> mutableState) {
        return mutableState.getValue().booleanValue();
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final void AutoCompleteTextField$lambda$3(MutableState<Boolean> mutableState, boolean z) {
        mutableState.setValue(Boolean.valueOf(z));
    }

    private static final void AutoCompleteTextField$lambda$6(MutableState<Size> mutableState, long j) {
        mutableState.setValue(Size.m4314boximpl(j));
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit AutoCompleteTextField$lambda$9$lambda$8(MutableState mutableState) {
        AutoCompleteTextField$lambda$3(mutableState, false);
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit AutoCompleteTextField$lambda$29$lambda$11$lambda$10(SemanticsPropertyReceiver semantics) {
        Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
        SemanticsPropertiesKt.heading(semantics);
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit AutoCompleteTextField$lambda$29$lambda$28$lambda$17$lambda$16(Function1 function1, MutableState mutableState, String it) {
        Intrinsics.checkNotNullParameter(it, "it");
        function1.invoke(it);
        AutoCompleteTextField$lambda$3(mutableState, true);
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit AutoCompleteTextField$lambda$29$lambda$28$lambda$13$lambda$12(MutableState mutableState, LayoutCoordinates coordinates) {
        Intrinsics.checkNotNullParameter(coordinates, "coordinates");
        AutoCompleteTextField$lambda$6(mutableState, IntSizeKt.m7398toSizeozmzZPI(coordinates.mo5926getSizeYbymL2g()));
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit AutoCompleteTextField$lambda$29$lambda$28$lambda$15$lambda$14(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 AutoCompleteTextField$lambda$29$lambda$28$lambda$19$lambda$18(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 AutoCompleteTextField$lambda$29$lambda$28$lambda$27$lambda$26$lambda$25(final List list, final Function1 function1, final Function1 function12, final MutableState mutableState, LazyListScope LazyColumn) {
        Intrinsics.checkNotNullParameter(LazyColumn, "$this$LazyColumn");
        final RouteCalculationScreenKt$AutoCompleteTextField$lambda$29$lambda$28$lambda$27$lambda$26$lambda$25$$inlined$items$default$1 routeCalculationScreenKt$AutoCompleteTextField$lambda$29$lambda$28$lambda$27$lambda$26$lambda$25$$inlined$items$default$1 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt$AutoCompleteTextField$lambda$29$lambda$28$lambda$27$lambda$26$lambda$25$$inlined$items$default$1
            @Override // kotlin.jvm.functions.Function1
            public final Void invoke(Prediction prediction) {
                return null;
            }

            @Override // kotlin.jvm.functions.Function1
            public /* bridge */ /* synthetic */ Object invoke(Object obj) {
                return invoke((Prediction) obj);
            }
        };
        LazyColumn.items(list.size(), null, new Function1<Integer, Object>() { // from class: com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt$AutoCompleteTextField$lambda$29$lambda$28$lambda$27$lambda$26$lambda$25$$inlined$items$default$3
            @Override // kotlin.jvm.functions.Function1
            public /* bridge */ /* synthetic */ Object invoke(Integer num) {
                return invoke(num.intValue());
            }

            public final Object invoke(int i) {
                return routeCalculationScreenKt$AutoCompleteTextField$lambda$29$lambda$28$lambda$27$lambda$26$lambda$25$$inlined$items$default$1.invoke(list.get(i));
            }
        }, ComposableLambdaKt.composableLambdaInstance(802480018, true, new Function4<LazyItemScope, Integer, Composer, Integer, Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt$AutoCompleteTextField$lambda$29$lambda$28$lambda$27$lambda$26$lambda$25$$inlined$items$default$4
            @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 lazyItemScope, int i, Composer composer, int i2) {
                int i3;
                ComposerKt.sourceInformation(composer, "CN(it)178@8834L22:LazyDsl.kt#428nma");
                if ((i2 & 6) == 0) {
                    i3 = i2 | (composer.changed(lazyItemScope) ? 4 : 2);
                } else {
                    i3 = i2;
                }
                if ((i2 & 48) == 0) {
                    i3 |= composer.changed(i) ? 32 : 16;
                }
                if (!composer.shouldExecute((i3 & 147) != 146, i3 & 1)) {
                    composer.skipToGroupEnd();
                    return;
                }
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventStart(802480018, i3, -1, "androidx.compose.foundation.lazy.items.<anonymous> (LazyDsl.kt:178)");
                }
                final Prediction prediction = (Prediction) list.get(i);
                composer.startReplaceGroup(1492112760);
                Modifier modifierFillMaxWidth$default = SizeKt.fillMaxWidth$default(Modifier.INSTANCE, 0.0f, 1, null);
                Role roleM6418boximpl = Role.m6418boximpl(Role.INSTANCE.m6425getButtono7Vup1c());
                composer.startReplaceGroup(-1224400529);
                boolean zChanged = composer.changed(function1) | composer.changed(prediction) | composer.changed(function12);
                Object objRememberedValue = composer.rememberedValue();
                if (zChanged || objRememberedValue == Composer.INSTANCE.getEmpty()) {
                    final Function1 function13 = function1;
                    final Function1 function14 = function12;
                    final MutableState mutableState2 = mutableState;
                    objRememberedValue = (Function0) new Function0<Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt$AutoCompleteTextField$2$2$5$1$1$1$1$1
                        @Override // kotlin.jvm.functions.Function0
                        public /* bridge */ /* synthetic */ Unit invoke() {
                            invoke2();
                            return Unit.INSTANCE;
                        }

                        /* JADX INFO: renamed from: invoke, reason: avoid collision after fix types in other method */
                        public final void invoke2() {
                            function13.invoke(prediction);
                            function14.invoke(prediction.getDescription());
                            RouteCalculationScreenKt.AutoCompleteTextField$lambda$3(mutableState2, false);
                        }
                    };
                    composer.updateRememberedValue(objRememberedValue);
                }
                composer.endReplaceGroup();
                Modifier modifierM832padding3ABfNKs = PaddingKt.m832padding3ABfNKs(ClickableKt.m298clickableoSLSa3U$default(modifierFillMaxWidth$default, false, null, roleM6418boximpl, null, (Function0) objRememberedValue, 11, null), Dp.m7215constructorimpl(12));
                composer.startReplaceGroup(5004770);
                boolean zChanged2 = composer.changed(prediction);
                Object objRememberedValue2 = composer.rememberedValue();
                if (zChanged2 || objRememberedValue2 == Composer.INSTANCE.getEmpty()) {
                    objRememberedValue2 = (Function1) new Function1<SemanticsPropertyReceiver, Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt$AutoCompleteTextField$2$2$5$1$1$1$2$1
                        @Override // kotlin.jvm.functions.Function1
                        public /* bridge */ /* synthetic */ Unit invoke(SemanticsPropertyReceiver semanticsPropertyReceiver) {
                            invoke2(semanticsPropertyReceiver);
                            return Unit.INSTANCE;
                        }

                        /* JADX INFO: renamed from: invoke, reason: avoid collision after fix types in other method */
                        public final void invoke2(SemanticsPropertyReceiver semantics) {
                            Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
                            SemanticsPropertiesKt.setContentDescription(semantics, prediction.getDescription());
                            SemanticsPropertiesKt.m6444setRolekuIjeqM(semantics, Role.INSTANCE.m6425getButtono7Vup1c());
                        }
                    };
                    composer.updateRememberedValue(objRememberedValue2);
                }
                composer.endReplaceGroup();
                Modifier modifierSemantics$default = SemanticsModifierKt.semantics$default(modifierM832padding3ABfNKs, false, (Function1) objRememberedValue2, 1, null);
                ComposerKt.sourceInformationMarkerStart(composer, 1042775818, "CC(Box)N(modifier,contentAlignment,propagateMinConstraints,content)71@3424L131:Box.kt#2w3rfo");
                MeasurePolicy measurePolicyMaybeCachedBoxMeasurePolicy = BoxKt.maybeCachedBoxMeasurePolicy(Alignment.INSTANCE.getTopStart(), false);
                ComposerKt.sourceInformationMarkerStart(composer, -1159599143, "CC(Layout)P(!1,2)80@3267L27,83@3433L360:Layout.kt#80mrfh");
                int iHashCode = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composer, 0));
                CompositionLocalMap currentCompositionLocalMap = composer.getCurrentCompositionLocalMap();
                Modifier modifierMaterializeModifier = ComposedModifierKt.materializeModifier(composer, modifierSemantics$default);
                Function0<ComposeUiNode> constructor = ComposeUiNode.INSTANCE.getConstructor();
                ComposerKt.sourceInformationMarkerStart(composer, -553112988, "CC(ReusableComposeNode)N(factory,update,content)399@15590L9:Composables.kt#9igjgp");
                if (!(composer.getApplier() instanceof Applier)) {
                    ComposablesKt.invalidApplier();
                }
                composer.startReusableNode();
                if (composer.getInserting()) {
                    composer.createNode(constructor);
                } else {
                    composer.useNode();
                }
                Composer composerM3820constructorimpl = Updater.m3820constructorimpl(composer);
                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(composer, 1833054614, "C72@3469L9:Box.kt#2w3rfo");
                BoxScopeInstance boxScopeInstance = BoxScopeInstance.INSTANCE;
                String description = prediction.getDescription();
                long onSurface = MaterialTheme.INSTANCE.getColorScheme(composer, MaterialTheme.$stable).getOnSurface();
                Modifier.Companion companion = Modifier.INSTANCE;
                composer.startReplaceGroup(1849434622);
                Object objRememberedValue3 = composer.rememberedValue();
                if (objRememberedValue3 == Composer.INSTANCE.getEmpty()) {
                    objRememberedValue3 = (Function1) new Function1<SemanticsPropertyReceiver, Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.routecalculation.RouteCalculationScreenKt$AutoCompleteTextField$2$2$5$1$1$1$3$1$1
                        /* JADX INFO: renamed from: invoke, reason: avoid collision after fix types in other method */
                        public final void invoke2(SemanticsPropertyReceiver clearAndSetSemantics) {
                            Intrinsics.checkNotNullParameter(clearAndSetSemantics, "$this$clearAndSetSemantics");
                        }

                        @Override // kotlin.jvm.functions.Function1
                        public /* bridge */ /* synthetic */ Unit invoke(SemanticsPropertyReceiver semanticsPropertyReceiver) {
                            invoke2(semanticsPropertyReceiver);
                            return Unit.INSTANCE;
                        }
                    };
                    composer.updateRememberedValue(objRememberedValue3);
                }
                composer.endReplaceGroup();
                TextKt.m2803Text4IGK_g(description, SemanticsModifierKt.clearAndSetSemantics(companion, (Function1) objRememberedValue3), onSurface, 0L, (FontStyle) null, (FontWeight) null, (FontFamily) null, 0L, (TextDecoration) null, (TextAlign) null, 0L, 0, false, 0, 0, (Function1<? super TextLayoutResult, Unit>) null, (TextStyle) null, composer, 0, 0, 131064);
                ComposerKt.sourceInformationMarkerEnd(composer);
                composer.endNode();
                ComposerKt.sourceInformationMarkerEnd(composer);
                ComposerKt.sourceInformationMarkerEnd(composer);
                ComposerKt.sourceInformationMarkerEnd(composer);
                composer.endReplaceGroup();
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventEnd();
                }
            }
        }));
        return Unit.INSTANCE;
    }
}