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

import androidx.compose.material3.TabKt;
import androidx.compose.material3.TextKt;
import androidx.compose.runtime.Composer;
import androidx.compose.runtime.ComposerKt;
import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.internal.ComposableLambdaKt;
import androidx.compose.ui.Modifier;
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 com.sistemasolton.itranvias.ui.theme.ColorKt;
import java.util.List;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;

/* JADX INFO: compiled from: LineDetailScreen.kt */
/* JADX INFO: loaded from: classes2.dex */
@Metadata(k = 3, mv = {2, 1, 0}, xi = 48)
final class LineDetailScreenKt$LineDetailScreen$3$1$6 implements Function2<Composer, Integer, Unit> {
    final /* synthetic */ MutableState<Integer> $selectedTabIndex$delegate;
    final /* synthetic */ List<String> $tabs;

    LineDetailScreenKt$LineDetailScreen$3$1$6(List<String> list, MutableState<Integer> mutableState) {
        this.$tabs = list;
        this.$selectedTabIndex$delegate = mutableState;
    }

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

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit invoke$lambda$4$lambda$1$lambda$0(int i, MutableState mutableState) {
        LineDetailScreenKt.LineDetailScreen$lambda$5(mutableState, i);
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit invoke$lambda$4$lambda$3$lambda$2(String str, SemanticsPropertyReceiver semantics) {
        Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
        SemanticsPropertiesKt.setContentDescription(semantics, str);
        SemanticsPropertiesKt.m6444setRolekuIjeqM(semantics, Role.INSTANCE.m6432getTabo7Vup1c());
        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(-16877992, i, -1, "com.sistemasolton.itranvias.home.presentation.linedetail.LineDetailScreen.<anonymous>.<anonymous>.<anonymous> (LineDetailScreen.kt:269)");
        }
        List<String> list = this.$tabs;
        final MutableState<Integer> mutableState = this.$selectedTabIndex$delegate;
        boolean z = false;
        final int i2 = 0;
        for (Object obj : list) {
            int i3 = i2 + 1;
            if (i2 < 0) {
                CollectionsKt.throwIndexOverflow();
            }
            final String str = (String) obj;
            boolean z2 = LineDetailScreenKt.LineDetailScreen$lambda$4(mutableState) == i2 ? true : z;
            composer.startReplaceGroup(-1633490746);
            boolean zChanged = composer.changed(i2);
            Object objRememberedValue = composer.rememberedValue();
            if (zChanged || objRememberedValue == Composer.INSTANCE.getEmpty()) {
                objRememberedValue = new Function0() { // from class: com.sistemasolton.itranvias.home.presentation.linedetail.LineDetailScreenKt$LineDetailScreen$3$1$6$$ExternalSyntheticLambda0
                    @Override // kotlin.jvm.functions.Function0
                    public final Object invoke() {
                        return LineDetailScreenKt$LineDetailScreen$3$1$6.invoke$lambda$4$lambda$1$lambda$0(i2, mutableState);
                    }
                };
                composer.updateRememberedValue(objRememberedValue);
            }
            Function0 function0 = (Function0) objRememberedValue;
            composer.endReplaceGroup();
            Modifier.Companion companion = Modifier.INSTANCE;
            composer.startReplaceGroup(5004770);
            boolean zChanged2 = composer.changed(str);
            Object objRememberedValue2 = composer.rememberedValue();
            if (zChanged2 || objRememberedValue2 == Composer.INSTANCE.getEmpty()) {
                objRememberedValue2 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.linedetail.LineDetailScreenKt$LineDetailScreen$3$1$6$$ExternalSyntheticLambda1
                    @Override // kotlin.jvm.functions.Function1
                    public final Object invoke(Object obj2) {
                        return LineDetailScreenKt$LineDetailScreen$3$1$6.invoke$lambda$4$lambda$3$lambda$2(str, (SemanticsPropertyReceiver) obj2);
                    }
                };
                composer.updateRememberedValue(objRememberedValue2);
            }
            composer.endReplaceGroup();
            TabKt.m2689TabwqdebIU(z2, function0, SemanticsModifierKt.semantics$default(companion, z, (Function1) objRememberedValue2, 1, null), false, ComposableLambdaKt.rememberComposableLambda(-240435292, true, new Function2<Composer, Integer, Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.linedetail.LineDetailScreenKt$LineDetailScreen$3$1$6$1$3
                @Override // kotlin.jvm.functions.Function2
                public /* bridge */ /* synthetic */ Unit invoke(Composer composer2, Integer num) {
                    invoke(composer2, num.intValue());
                    return Unit.INSTANCE;
                }

                public final void invoke(Composer composer2, int i4) {
                    if ((i4 & 3) == 2 && composer2.getSkipping()) {
                        composer2.skipToGroupEnd();
                        return;
                    }
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventStart(-240435292, i4, -1, "com.sistemasolton.itranvias.home.presentation.linedetail.LineDetailScreen.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous> (LineDetailScreen.kt:279)");
                    }
                    TextKt.m2803Text4IGK_g(str, (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, composer2, 384, 0, 131066);
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventEnd();
                    }
                }
            }, composer, 54), null, ColorKt.getWhiteTranvias(), ColorKt.getWhiteTranvias(), null, composer, 14180352, 296);
            i2 = i3;
            mutableState = mutableState;
            z = z;
        }
        if (ComposerKt.isTraceInProgress()) {
            ComposerKt.traceEventEnd();
        }
    }
}