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

import androidx.compose.foundation.BackgroundKt;
import androidx.compose.foundation.layout.BoxKt;
import androidx.compose.foundation.layout.BoxScopeInstance;
import androidx.compose.foundation.layout.PaddingKt;
import androidx.compose.foundation.layout.PaddingValues;
import androidx.compose.foundation.layout.RowScope;
import androidx.compose.material3.MaterialTheme;
import androidx.compose.material3.NavigationBarItemColors;
import androidx.compose.material3.NavigationBarItemDefaults;
import androidx.compose.material3.NavigationBarKt;
import androidx.compose.material3.ScaffoldKt;
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.RecomposeScopeImplKt;
import androidx.compose.runtime.ScopeUpdateScope;
import androidx.compose.runtime.State;
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.layout.MeasurePolicy;
import androidx.compose.ui.node.ComposeUiNode;
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.navigation.NavBackStackEntry;
import androidx.navigation.NavDestination;
import androidx.navigation.NavHostController;
import androidx.navigation.NavOptionsBuilder;
import androidx.navigation.PopUpToBuilder;
import androidx.navigation.compose.NavHostControllerKt;
import com.sistemasolton.itranvias.data.preferences.SettingsRepository;
import com.sistemasolton.itranvias.home.presentation.home.HomeScreenKt;
import com.sistemasolton.itranvias.navigation.BottomBarItem;
import com.sistemasolton.itranvias.navigation.NavigationBottomWrapperKt;
import com.sistemasolton.itranvias.ui.theme.ColorKt;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.collections.CollectionsKt;
import kotlin.comparisons.ComparisonsKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.functions.Function3;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.sequences.Sequence;
import org.jetbrains.compose.resources.StringResourcesKt;

/* JADX INFO: compiled from: HomeScreen.kt */
/* JADX INFO: loaded from: classes2.dex */
@Metadata(d1 = {"\u0000.\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\u001a\u001f\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u0005H\u0007¢\u0006\u0002\u0010\u0006\u001a%\u0010\u0007\u001a\u00020\u00012\u0006\u0010\b\u001a\u00020\u00032\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\t\u001a\u00020\nH\u0003¢\u0006\u0002\u0010\u000b\u001a#\u0010\f\u001a\u00020\u00012\f\u0010\r\u001a\b\u0012\u0004\u0012\u00020\u000f0\u000e2\u0006\u0010\b\u001a\u00020\u0003H\u0007¢\u0006\u0002\u0010\u0010¨\u0006\u0011²\u0006\f\u0010\u0012\u001a\u0004\u0018\u00010\nX\u008a\u0084\u0002²\u0006\f\u0010\u0013\u001a\u0004\u0018\u00010\u0014X\u008a\u0084\u0002"}, d2 = {"HomeScreen", "", "mainNavController", "Landroidx/navigation/NavHostController;", "settingsRepository", "Lcom/sistemasolton/itranvias/data/preferences/SettingsRepository;", "(Landroidx/navigation/NavHostController;Lcom/sistemasolton/itranvias/data/preferences/SettingsRepository;Landroidx/compose/runtime/Composer;II)V", "HomeScreenContent", "navController", "startDestination", "", "(Landroidx/navigation/NavHostController;Landroidx/navigation/NavHostController;Ljava/lang/String;Landroidx/compose/runtime/Composer;I)V", "BottomNavigation", "items", "", "Lcom/sistemasolton/itranvias/navigation/BottomBarItem;", "(Ljava/util/List;Landroidx/navigation/NavHostController;Landroidx/compose/runtime/Composer;I)V", "composeApp_release", "preferredTab", "navBackStackEntry", "Landroidx/navigation/NavBackStackEntry;"}, k = 2, mv = {2, 1, 0}, xi = 48)
public final class HomeScreenKt {
    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit BottomNavigation$lambda$8(List list, NavHostController navHostController, int i, Composer composer, int i2) {
        BottomNavigation(list, navHostController, composer, RecomposeScopeImplKt.updateChangedFlags(i | 1));
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit HomeScreen$lambda$4(NavHostController navHostController, SettingsRepository settingsRepository, int i, int i2, Composer composer, int i3) {
        HomeScreen(navHostController, settingsRepository, composer, RecomposeScopeImplKt.updateChangedFlags(i | 1), i2);
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit HomeScreenContent$lambda$6(NavHostController navHostController, NavHostController navHostController2, String str, int i, Composer composer, int i2) {
        HomeScreenContent(navHostController, navHostController2, str, composer, RecomposeScopeImplKt.updateChangedFlags(i | 1));
        return Unit.INSTANCE;
    }

    /* JADX WARN: Removed duplicated region for block: B:46:0x00b1  */
    /* JADX WARN: Removed duplicated region for block: B:49:0x00c7  */
    /* JADX WARN: Removed duplicated region for block: B:80:0x01c6  */
    /* JADX WARN: Type inference fix 'apply assigned field type' failed
    java.lang.UnsupportedOperationException: ArgType.getObject(), call class: class jadx.core.dex.instructions.args.ArgType$UnknownArg
    	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)
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct code enable 'Show inconsistent code' option in preferences
    */
    public static final void HomeScreen(final androidx.navigation.NavHostController r11, final com.sistemasolton.itranvias.data.preferences.SettingsRepository r12, androidx.compose.runtime.Composer r13, final int r14, final int r15) {
        /*
            Method dump skipped, instruction units count: 466
            To view this dump change 'Code comments level' option to 'DEBUG'
        */
        throw new UnsupportedOperationException("Method not decompiled: com.sistemasolton.itranvias.home.presentation.home.HomeScreenKt.HomeScreen(androidx.navigation.NavHostController, com.sistemasolton.itranvias.data.preferences.SettingsRepository, androidx.compose.runtime.Composer, int, int):void");
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit HomeScreen$lambda$1$lambda$0(HomeViewModel homeViewModel) {
        homeViewModel.loadInfo();
        return Unit.INSTANCE;
    }

    private static final void HomeScreenContent(final NavHostController navHostController, final NavHostController navHostController2, final String str, Composer composer, final int i) {
        int i2;
        Composer composer2;
        Composer composerStartRestartGroup = composer.startRestartGroup(-1555480939);
        if ((i & 6) == 0) {
            i2 = (composerStartRestartGroup.changedInstance(navHostController) ? 4 : 2) | i;
        } else {
            i2 = i;
        }
        if ((i & 48) == 0) {
            i2 |= composerStartRestartGroup.changedInstance(navHostController2) ? 32 : 16;
        }
        if ((i & 384) == 0) {
            i2 |= composerStartRestartGroup.changed(str) ? 256 : 128;
        }
        if ((i2 & 147) != 146 || !composerStartRestartGroup.getSkipping()) {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(-1555480939, i2, -1, "com.sistemasolton.itranvias.home.presentation.home.HomeScreenContent (HomeScreen.kt:85)");
            }
            int i3 = 7;
            DefaultConstructorMarker defaultConstructorMarker = null;
            Function2 function2 = null;
            final List listSortedWith = CollectionsKt.sortedWith(CollectionsKt.listOf((Object[]) new BottomBarItem[]{new BottomBarItem.Lines(null, null, null, 7, null), new BottomBarItem.Stops(0 == true ? 1 : 0, 0 == true ? 1 : 0, function2, i3, defaultConstructorMarker), new BottomBarItem.Favorites(0 == true ? 1 : 0, 0 == true ? 1 : 0, function2, i3, defaultConstructorMarker), new BottomBarItem.Nearby(null, null, null, 7, null), new BottomBarItem.Utils(0 == true ? 1 : 0, 0 == true ? 1 : 0, function2, i3, defaultConstructorMarker)}), new Comparator() { // from class: com.sistemasolton.itranvias.home.presentation.home.HomeScreenKt$HomeScreenContent$$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(Boolean.valueOf(!Intrinsics.areEqual(((BottomBarItem) t).getRoute(), str)), Boolean.valueOf(!Intrinsics.areEqual(((BottomBarItem) t2).getRoute(), str)));
                }
            });
            composer2 = composerStartRestartGroup;
            ScaffoldKt.m2518ScaffoldTvnljyQ(null, ComposableSingletons$HomeScreenKt.INSTANCE.m7953getLambda$1681003431$composeApp_release(), ComposableLambdaKt.rememberComposableLambda(800171162, true, new Function2<Composer, Integer, Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.home.HomeScreenKt.HomeScreenContent.1
                @Override // kotlin.jvm.functions.Function2
                public /* bridge */ /* synthetic */ Unit invoke(Composer composer3, Integer num) {
                    invoke(composer3, num.intValue());
                    return Unit.INSTANCE;
                }

                public final void invoke(Composer composer3, int i4) {
                    if ((i4 & 3) == 2 && composer3.getSkipping()) {
                        composer3.skipToGroupEnd();
                        return;
                    }
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventStart(800171162, i4, -1, "com.sistemasolton.itranvias.home.presentation.home.HomeScreenContent.<anonymous> (HomeScreen.kt:116)");
                    }
                    HomeScreenKt.BottomNavigation(listSortedWith, navHostController, composer3, 0);
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventEnd();
                    }
                }
            }, composerStartRestartGroup, 54), null, null, 0, 0L, 0L, null, ComposableLambdaKt.rememberComposableLambda(1845070820, true, new Function3<PaddingValues, Composer, Integer, Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.home.HomeScreenKt.HomeScreenContent.2
                @Override // kotlin.jvm.functions.Function3
                public /* bridge */ /* synthetic */ Unit invoke(PaddingValues paddingValues, Composer composer3, Integer num) {
                    invoke(paddingValues, composer3, num.intValue());
                    return Unit.INSTANCE;
                }

                public final void invoke(PaddingValues padding, Composer composer3, int i4) {
                    Intrinsics.checkNotNullParameter(padding, "padding");
                    if ((i4 & 6) == 0) {
                        i4 |= composer3.changed(padding) ? 4 : 2;
                    }
                    if ((i4 & 19) == 18 && composer3.getSkipping()) {
                        composer3.skipToGroupEnd();
                        return;
                    }
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventStart(1845070820, i4, -1, "com.sistemasolton.itranvias.home.presentation.home.HomeScreenContent.<anonymous> (HomeScreen.kt:118)");
                    }
                    Modifier modifierM257backgroundbw27NRU$default = BackgroundKt.m257backgroundbw27NRU$default(PaddingKt.padding(Modifier.INSTANCE, padding), MaterialTheme.INSTANCE.getColorScheme(composer3, MaterialTheme.$stable).getInverseSurface(), null, 2, null);
                    NavHostController navHostController3 = navHostController;
                    NavHostController navHostController4 = navHostController2;
                    String str2 = str;
                    ComposerKt.sourceInformationMarkerStart(composer3, 1042775818, "CC(Box)N(modifier,contentAlignment,propagateMinConstraints,content)71@3424L131:Box.kt#2w3rfo");
                    MeasurePolicy measurePolicyMaybeCachedBoxMeasurePolicy = BoxKt.maybeCachedBoxMeasurePolicy(Alignment.INSTANCE.getTopStart(), false);
                    ComposerKt.sourceInformationMarkerStart(composer3, -1159599143, "CC(Layout)P(!1,2)80@3267L27,83@3433L360:Layout.kt#80mrfh");
                    int iHashCode = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composer3, 0));
                    CompositionLocalMap currentCompositionLocalMap = composer3.getCurrentCompositionLocalMap();
                    Modifier modifierMaterializeModifier = ComposedModifierKt.materializeModifier(composer3, modifierM257backgroundbw27NRU$default);
                    Function0<ComposeUiNode> constructor = 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(constructor);
                    } else {
                        composer3.useNode();
                    }
                    Composer composerM3820constructorimpl = Updater.m3820constructorimpl(composer3);
                    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(composer3, 1833054614, "C72@3469L9:Box.kt#2w3rfo");
                    BoxScopeInstance boxScopeInstance = BoxScopeInstance.INSTANCE;
                    NavigationBottomWrapperKt.NavigationBottomWrapper(navHostController3, navHostController4, str2, composer3, 0);
                    ComposerKt.sourceInformationMarkerEnd(composer3);
                    composer3.endNode();
                    ComposerKt.sourceInformationMarkerEnd(composer3);
                    ComposerKt.sourceInformationMarkerEnd(composer3);
                    ComposerKt.sourceInformationMarkerEnd(composer3);
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventEnd();
                    }
                }
            }, composerStartRestartGroup, 54), composer2, 805306800, 505);
            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.home.HomeScreenKt$$ExternalSyntheticLambda0
                @Override // kotlin.jvm.functions.Function2
                public final Object invoke(Object obj, Object obj2) {
                    return HomeScreenKt.HomeScreenContent$lambda$6(navHostController, navHostController2, str, i, (Composer) obj, ((Integer) obj2).intValue());
                }
            });
        }
    }

    public static final void BottomNavigation(final List<? extends BottomBarItem> items, final NavHostController navController, Composer composer, final int i) {
        int i2;
        Intrinsics.checkNotNullParameter(items, "items");
        Intrinsics.checkNotNullParameter(navController, "navController");
        Composer composerStartRestartGroup = composer.startRestartGroup(-1519658332);
        if ((i & 6) == 0) {
            i2 = (composerStartRestartGroup.changedInstance(items) ? 4 : 2) | i;
        } else {
            i2 = i;
        }
        if ((i & 48) == 0) {
            i2 |= composerStartRestartGroup.changedInstance(navController) ? 32 : 16;
        }
        if ((i2 & 19) != 18 || !composerStartRestartGroup.getSkipping()) {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(-1519658332, i2, -1, "com.sistemasolton.itranvias.home.presentation.home.BottomNavigation (HomeScreen.kt:132)");
            }
            NavBackStackEntry navBackStackEntryBottomNavigation$lambda$7 = BottomNavigation$lambda$7(NavHostControllerKt.currentBackStackEntryAsState(navController, composerStartRestartGroup, (i2 >> 3) & 14));
            NavigationBarKt.m2383NavigationBarHsRjFd4(null, MaterialTheme.INSTANCE.getColorScheme(composerStartRestartGroup, MaterialTheme.$stable).getInversePrimary(), ColorKt.getWhiteTranvias(), 0.0f, null, ComposableLambdaKt.rememberComposableLambda(1455255517, true, new AnonymousClass1(items, navBackStackEntryBottomNavigation$lambda$7 != null ? navBackStackEntryBottomNavigation$lambda$7.getDestination() : null, navController), composerStartRestartGroup, 54), composerStartRestartGroup, 196992, 25);
            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.home.HomeScreenKt$$ExternalSyntheticLambda1
                @Override // kotlin.jvm.functions.Function2
                public final Object invoke(Object obj, Object obj2) {
                    return HomeScreenKt.BottomNavigation$lambda$8(items, navController, i, (Composer) obj, ((Integer) obj2).intValue());
                }
            });
        }
    }

    /* JADX INFO: renamed from: com.sistemasolton.itranvias.home.presentation.home.HomeScreenKt$BottomNavigation$1, reason: invalid class name */
    /* JADX INFO: compiled from: HomeScreen.kt */
    @Metadata(k = 3, mv = {2, 1, 0}, xi = 48)
    static final class AnonymousClass1 implements Function3<RowScope, Composer, Integer, Unit> {
        final /* synthetic */ NavDestination $currentDestination;
        final /* synthetic */ List<BottomBarItem> $items;
        final /* synthetic */ NavHostController $navController;

        /* JADX WARN: Multi-variable type inference failed */
        AnonymousClass1(List<? extends BottomBarItem> list, NavDestination navDestination, NavHostController navHostController) {
            this.$items = list;
            this.$currentDestination = navDestination;
            this.$navController = navHostController;
        }

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

        /* JADX INFO: Access modifiers changed from: private */
        public static final Unit invoke$lambda$7$lambda$6$lambda$5(final NavHostController navHostController, BottomBarItem bottomBarItem) {
            navHostController.navigate(bottomBarItem.getRoute(), new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.home.HomeScreenKt$BottomNavigation$1$$ExternalSyntheticLambda3
                @Override // kotlin.jvm.functions.Function1
                public final Object invoke(Object obj) {
                    return HomeScreenKt.AnonymousClass1.invoke$lambda$7$lambda$6$lambda$5$lambda$4(navHostController, (NavOptionsBuilder) obj);
                }
            });
            return Unit.INSTANCE;
        }

        /* JADX INFO: Access modifiers changed from: private */
        public static final Unit invoke$lambda$7$lambda$6$lambda$5$lambda$4(NavHostController navHostController, NavOptionsBuilder navigate) {
            Intrinsics.checkNotNullParameter(navigate, "$this$navigate");
            navigate.popUpTo(navHostController.getGraph().getStartDestinationId(), new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.home.HomeScreenKt$BottomNavigation$1$$ExternalSyntheticLambda0
                @Override // kotlin.jvm.functions.Function1
                public final Object invoke(Object obj) {
                    return HomeScreenKt.AnonymousClass1.invoke$lambda$7$lambda$6$lambda$5$lambda$4$lambda$3((PopUpToBuilder) obj);
                }
            });
            navigate.setLaunchSingleTop(true);
            navigate.setRestoreState(true);
            return Unit.INSTANCE;
        }

        /* JADX INFO: Access modifiers changed from: private */
        public static final Unit invoke$lambda$7$lambda$6$lambda$5$lambda$4$lambda$3(PopUpToBuilder popUpTo) {
            Intrinsics.checkNotNullParameter(popUpTo, "$this$popUpTo");
            popUpTo.setSaveState(true);
            return Unit.INSTANCE;
        }

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

        public final void invoke(RowScope NavigationBar, Composer composer, int i) {
            boolean z;
            Sequence<NavDestination> hierarchy;
            Composer composer2 = composer;
            Intrinsics.checkNotNullParameter(NavigationBar, "$this$NavigationBar");
            int i2 = (i & 6) == 0 ? i | (composer2.changed(NavigationBar) ? 4 : 2) : i;
            if ((i2 & 19) == 18 && composer.getSkipping()) {
                composer.skipToGroupEnd();
                return;
            }
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(1455255517, i2, -1, "com.sistemasolton.itranvias.home.presentation.home.BottomNavigation.<anonymous> (HomeScreen.kt:140)");
            }
            List<BottomBarItem> list = this.$items;
            NavDestination navDestination = this.$currentDestination;
            final NavHostController navHostController = this.$navController;
            for (final BottomBarItem bottomBarItem : list) {
                if (navDestination == null || (hierarchy = NavDestination.INSTANCE.getHierarchy(navDestination)) == null) {
                    z = false;
                } else {
                    Iterator<NavDestination> it = hierarchy.iterator();
                    while (it.hasNext()) {
                        if (Intrinsics.areEqual(it.next().getRoute(), bottomBarItem.getRoute())) {
                            z = true;
                            break;
                        }
                    }
                    z = false;
                }
                final String strStringResource = StringResourcesKt.stringResource(bottomBarItem.getTitleRes(), composer2, 0);
                NavigationBarItemColors navigationBarItemColorsM2381colors69fazGs = NavigationBarItemDefaults.INSTANCE.m2381colors69fazGs(MaterialTheme.INSTANCE.getColorScheme(composer2, MaterialTheme.$stable).getInversePrimary(), ColorKt.getWhiteTranvias(), ColorKt.getWhiteTranvias(), ColorKt.getWhiteTranvias(), ColorKt.getWhiteTranvias(), 0L, 0L, composer, (NavigationBarItemDefaults.$stable << 21) | 28080, 96);
                Modifier.Companion companion = Modifier.INSTANCE;
                composer2.startReplaceGroup(5004770);
                boolean zChanged = composer2.changed(strStringResource);
                Object objRememberedValue = composer.rememberedValue();
                if (zChanged || objRememberedValue == Composer.INSTANCE.getEmpty()) {
                    objRememberedValue = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.home.HomeScreenKt$BottomNavigation$1$$ExternalSyntheticLambda1
                        @Override // kotlin.jvm.functions.Function1
                        public final Object invoke(Object obj) {
                            return HomeScreenKt.AnonymousClass1.invoke$lambda$7$lambda$2$lambda$1(strStringResource, (SemanticsPropertyReceiver) obj);
                        }
                    };
                    composer2.updateRememberedValue(objRememberedValue);
                }
                composer.endReplaceGroup();
                Modifier modifierSemantics$default = SemanticsModifierKt.semantics$default(companion, false, (Function1) objRememberedValue, 1, null);
                composer2.startReplaceGroup(-1633490746);
                boolean zChangedInstance = composer2.changedInstance(navHostController) | composer2.changed(bottomBarItem);
                Object objRememberedValue2 = composer.rememberedValue();
                if (zChangedInstance || objRememberedValue2 == Composer.INSTANCE.getEmpty()) {
                    objRememberedValue2 = new Function0() { // from class: com.sistemasolton.itranvias.home.presentation.home.HomeScreenKt$BottomNavigation$1$$ExternalSyntheticLambda2
                        @Override // kotlin.jvm.functions.Function0
                        public final Object invoke() {
                            return HomeScreenKt.AnonymousClass1.invoke$lambda$7$lambda$6$lambda$5(navHostController, bottomBarItem);
                        }
                    };
                    composer2.updateRememberedValue(objRememberedValue2);
                }
                composer.endReplaceGroup();
                NavigationBarKt.NavigationBarItem(NavigationBar, z, (Function0) objRememberedValue2, ComposableLambdaKt.rememberComposableLambda(-1720444844, true, new Function2<Composer, Integer, Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.home.HomeScreenKt$BottomNavigation$1$1$3
                    @Override // kotlin.jvm.functions.Function2
                    public /* bridge */ /* synthetic */ Unit invoke(Composer composer3, Integer num) {
                        invoke(composer3, num.intValue());
                        return Unit.INSTANCE;
                    }

                    public final void invoke(Composer composer3, int i3) {
                        if ((i3 & 3) == 2 && composer3.getSkipping()) {
                            composer3.skipToGroupEnd();
                            return;
                        }
                        if (ComposerKt.isTraceInProgress()) {
                            ComposerKt.traceEventStart(-1720444844, i3, -1, "com.sistemasolton.itranvias.home.presentation.home.BottomNavigation.<anonymous>.<anonymous>.<anonymous> (HomeScreen.kt:145)");
                        }
                        bottomBarItem.getIcon().invoke(composer3, 0);
                        if (ComposerKt.isTraceInProgress()) {
                            ComposerKt.traceEventEnd();
                        }
                    }
                }, composer2, 54), modifierSemantics$default, false, ComposableLambdaKt.rememberComposableLambda(1391310935, true, new Function2<Composer, Integer, Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.home.HomeScreenKt$BottomNavigation$1$1$4
                    @Override // kotlin.jvm.functions.Function2
                    public /* bridge */ /* synthetic */ Unit invoke(Composer composer3, Integer num) {
                        invoke(composer3, num.intValue());
                        return Unit.INSTANCE;
                    }

                    public final void invoke(Composer composer3, int i3) {
                        if ((i3 & 3) == 2 && composer3.getSkipping()) {
                            composer3.skipToGroupEnd();
                            return;
                        }
                        if (ComposerKt.isTraceInProgress()) {
                            ComposerKt.traceEventStart(1391310935, i3, -1, "com.sistemasolton.itranvias.home.presentation.home.BottomNavigation.<anonymous>.<anonymous>.<anonymous> (HomeScreen.kt:146)");
                        }
                        TextKt.m2803Text4IGK_g(StringResourcesKt.stringResource(bottomBarItem.getTitleRes(), composer3, 0), (Modifier) null, ColorKt.getWhiteTranvias(), 0L, (FontStyle) null, (FontWeight) null, (FontFamily) null, 0L, (TextDecoration) null, (TextAlign) null, 0L, 0, false, 0, 0, (Function1<? super TextLayoutResult, Unit>) null, (TextStyle) null, composer3, 384, 0, 131066);
                        if (ComposerKt.isTraceInProgress()) {
                            ComposerKt.traceEventEnd();
                        }
                    }
                }, composer2, 54), false, navigationBarItemColorsM2381colors69fazGs, null, composer, (i2 & 14) | 14158848, 272);
                composer2 = composer;
                navHostController = navHostController;
                navDestination = navDestination;
                i2 = i2;
            }
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        }
    }

    private static final String HomeScreen$lambda$3(State<String> state) {
        return state.getValue();
    }

    private static final NavBackStackEntry BottomNavigation$lambda$7(State<NavBackStackEntry> state) {
        return state.getValue();
    }
}