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

import androidx.compose.foundation.layout.Arrangement;
import androidx.compose.foundation.layout.ColumnKt;
import androidx.compose.foundation.layout.ColumnScope;
import androidx.compose.foundation.layout.ColumnScopeInstance;
import androidx.compose.foundation.layout.PaddingKt;
import androidx.compose.foundation.layout.RowKt;
import androidx.compose.foundation.layout.RowScope;
import androidx.compose.foundation.layout.RowScopeInstance;
import androidx.compose.foundation.layout.SizeKt;
import androidx.compose.foundation.layout.SpacerKt;
import androidx.compose.foundation.lazy.LazyItemScope;
import androidx.compose.foundation.shape.RoundedCornerShape;
import androidx.compose.foundation.shape.RoundedCornerShapeKt;
import androidx.compose.material.icons.Icons;
import androidx.compose.material.icons.filled.EditCalendarKt;
import androidx.compose.material3.ButtonKt;
import androidx.compose.material3.CardColors;
import androidx.compose.material3.CardDefaults;
import androidx.compose.material3.CardKt;
import androidx.compose.material3.IconKt;
import androidx.compose.material3.MaterialTheme;
import androidx.compose.material3.TextKt;
import androidx.compose.runtime.Applier;
import androidx.compose.runtime.ComposablesKt;
import androidx.compose.runtime.Composer;
import androidx.compose.runtime.ComposerKt;
import androidx.compose.runtime.CompositionLocalMap;
import androidx.compose.runtime.MutableState;
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.graphics.Color;
import androidx.compose.ui.layout.MeasurePolicy;
import androidx.compose.ui.node.ComposeUiNode;
import androidx.compose.ui.semantics.Role;
import androidx.compose.ui.semantics.SemanticsModifierKt;
import androidx.compose.ui.semantics.SemanticsPropertiesKt;
import androidx.compose.ui.semantics.SemanticsPropertyReceiver;
import androidx.compose.ui.text.TextLayoutResult;
import androidx.compose.ui.text.TextStyle;
import androidx.compose.ui.text.font.FontFamily;
import androidx.compose.ui.text.font.FontStyle;
import androidx.compose.ui.text.font.FontWeight;
import androidx.compose.ui.text.style.TextAlign;
import androidx.compose.ui.text.style.TextDecoration;
import androidx.compose.ui.unit.Dp;
import androidx.profileinstaller.ProfileVerifier;
import com.sistemasolton.itranvias.home.data.remote.dto.horariodto.ServicioDto;
import com.sistemasolton.itranvias.home.data.remote.dto.infodto.LineaDto;
import itranvias.composeapp.generated.resources.Res;
import itranvias.composeapp.generated.resources.String0_commonMainKt;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
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.functions.Function3;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.compose.resources.StringResourcesKt;

/* JADX INFO: compiled from: LineDetailScreen.kt */
/* JADX INFO: loaded from: classes2.dex */
@Metadata(k = 3, mv = {2, 1, 0}, xi = 48)
final class LineDetailScreenKt$ScheduleTabContent$2$8$1$1$1 implements Function3<LazyItemScope, Composer, Integer, Unit> {
    final /* synthetic */ LineaDto $linea;
    final /* synthetic */ ServicioDto $servicio;
    final /* synthetic */ MutableState<Boolean> $showDatePicker$delegate;

    LineDetailScreenKt$ScheduleTabContent$2$8$1$1$1(ServicioDto servicioDto, LineaDto lineaDto, MutableState<Boolean> mutableState) {
        this.$servicio = servicioDto;
        this.$linea = lineaDto;
        this.$showDatePicker$delegate = mutableState;
    }

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

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit invoke$lambda$4$lambda$3$lambda$2(MutableState mutableState) {
        LineDetailScreenKt.ScheduleTabContent$lambda$40(mutableState, true);
        return Unit.INSTANCE;
    }

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

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit invoke$lambda$9$lambda$8(ServicioDto servicioDto, LineaDto lineaDto, SemanticsPropertyReceiver semantics) {
        Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
        List<Integer> ida = servicioDto.getIda();
        ArrayList arrayList = new ArrayList(CollectionsKt.collectionSizeOrDefault(ida, 10));
        Iterator<T> it = ida.iterator();
        while (it.hasNext()) {
            arrayList.add(LineDetailScreenKt.formatHour(((Number) it.next()).intValue()));
        }
        ArrayList arrayList2 = new ArrayList();
        for (Object obj : arrayList) {
            if (!Intrinsics.areEqual((String) obj, "--:--")) {
                arrayList2.add(obj);
            }
        }
        String strJoinToString$default = CollectionsKt.joinToString$default(CollectionsKt.take(arrayList2, 3), ", ", null, null, 0, null, null, 62, null);
        List<Integer> ida2 = servicioDto.getIda();
        int i = 0;
        if (!(ida2 instanceof Collection) || !ida2.isEmpty()) {
            Iterator<T> it2 = ida2.iterator();
            while (it2.hasNext()) {
                if (((Number) it2.next()).intValue() != 9999 && (i = i + 1) < 0) {
                    CollectionsKt.throwCountOverflow();
                }
            }
        }
        SemanticsPropertiesKt.setContentDescription(semantics, "Horarios desde " + lineaDto.getNombreOrig() + ". " + i + " salidas. Primeras salidas: " + strJoinToString$default);
        return Unit.INSTANCE;
    }

    public final void invoke(LazyItemScope item, Composer composer, int i) {
        Intrinsics.checkNotNullParameter(item, "$this$item");
        if ((i & 17) == 16 && composer.getSkipping()) {
            composer.skipToGroupEnd();
            return;
        }
        if (ComposerKt.isTraceInProgress()) {
            ComposerKt.traceEventStart(-2020671929, i, -1, "com.sistemasolton.itranvias.home.presentation.linedetail.ScheduleTabContent.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous> (LineDetailScreen.kt:706)");
        }
        String fecha = this.$servicio.getFecha();
        String strSubstring = fecha.substring(6, 8);
        Intrinsics.checkNotNullExpressionValue(strSubstring, "substring(...)");
        String strSubstring2 = fecha.substring(4, 6);
        Intrinsics.checkNotNullExpressionValue(strSubstring2, "substring(...)");
        String strSubstring3 = fecha.substring(0, 4);
        Intrinsics.checkNotNullExpressionValue(strSubstring3, "substring(...)");
        final String str = strSubstring + "/" + strSubstring2 + "/" + strSubstring3;
        float f = 8;
        Modifier modifierM836paddingqDBjuR0$default = PaddingKt.m836paddingqDBjuR0$default(SizeKt.fillMaxWidth$default(Modifier.INSTANCE, 0.0f, 1, null), 0.0f, 0.0f, 0.0f, Dp.m7215constructorimpl(f), 7, null);
        Arrangement.HorizontalOrVertical center = Arrangement.INSTANCE.getCenter();
        final MutableState<Boolean> mutableState = this.$showDatePicker$delegate;
        ComposerKt.sourceInformationMarkerStart(composer, 844473419, "CC(Row)N(modifier,horizontalArrangement,verticalAlignment,content)99@5125L58,100@5188L131:Row.kt#2w3rfo");
        MeasurePolicy measurePolicyRowMeasurePolicy = RowKt.rowMeasurePolicy(center, Alignment.INSTANCE.getTop(), composer, 6);
        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, modifierM836paddingqDBjuR0$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, measurePolicyRowMeasurePolicy, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
        Updater.m3827setimpl(composerM3820constructorimpl, currentCompositionLocalMap, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
        Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
        if (composerM3820constructorimpl.getInserting() || !Intrinsics.areEqual(composerM3820constructorimpl.rememberedValue(), Integer.valueOf(iHashCode))) {
            composerM3820constructorimpl.updateRememberedValue(Integer.valueOf(iHashCode));
            composerM3820constructorimpl.apply(Integer.valueOf(iHashCode), setCompositeKeyHash);
        }
        Updater.m3827setimpl(composerM3820constructorimpl, modifierMaterializeModifier, ComposeUiNode.INSTANCE.getSetModifier());
        ComposerKt.sourceInformationMarkerStart(composer, 1456264949, "C101@5233L9:Row.kt#2w3rfo");
        RowScopeInstance rowScopeInstance = RowScopeInstance.INSTANCE;
        RoundedCornerShape roundedCornerShapeM1197RoundedCornerShape0680j_4 = RoundedCornerShapeKt.m1197RoundedCornerShape0680j_4(Dp.m7215constructorimpl(f));
        Modifier.Companion companion = Modifier.INSTANCE;
        composer.startReplaceGroup(5004770);
        boolean zChanged = composer.changed(str);
        Object objRememberedValue = composer.rememberedValue();
        if (zChanged || objRememberedValue == Composer.INSTANCE.getEmpty()) {
            objRememberedValue = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.linedetail.LineDetailScreenKt$ScheduleTabContent$2$8$1$1$1$$ExternalSyntheticLambda0
                @Override // kotlin.jvm.functions.Function1
                public final Object invoke(Object obj) {
                    return LineDetailScreenKt$ScheduleTabContent$2$8$1$1$1.invoke$lambda$4$lambda$1$lambda$0(str, (SemanticsPropertyReceiver) obj);
                }
            };
            composer.updateRememberedValue(objRememberedValue);
        }
        composer.endReplaceGroup();
        Modifier modifierSemantics$default = SemanticsModifierKt.semantics$default(companion, false, (Function1) objRememberedValue, 1, null);
        composer.startReplaceGroup(5004770);
        Object objRememberedValue2 = composer.rememberedValue();
        if (objRememberedValue2 == Composer.INSTANCE.getEmpty()) {
            objRememberedValue2 = new Function0() { // from class: com.sistemasolton.itranvias.home.presentation.linedetail.LineDetailScreenKt$ScheduleTabContent$2$8$1$1$1$$ExternalSyntheticLambda1
                @Override // kotlin.jvm.functions.Function0
                public final Object invoke() {
                    return LineDetailScreenKt$ScheduleTabContent$2$8$1$1$1.invoke$lambda$4$lambda$3$lambda$2(mutableState);
                }
            };
            composer.updateRememberedValue(objRememberedValue2);
        }
        composer.endReplaceGroup();
        ButtonKt.Button((Function0) objRememberedValue2, modifierSemantics$default, false, roundedCornerShapeM1197RoundedCornerShape0680j_4, null, null, null, null, null, ComposableLambdaKt.rememberComposableLambda(-743292813, true, new Function3<RowScope, Composer, Integer, Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.linedetail.LineDetailScreenKt$ScheduleTabContent$2$8$1$1$1$1$3
            @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 i2) {
                Intrinsics.checkNotNullParameter(Button, "$this$Button");
                if ((i2 & 17) == 16 && composer2.getSkipping()) {
                    composer2.skipToGroupEnd();
                    return;
                }
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventStart(-743292813, i2, -1, "com.sistemasolton.itranvias.home.presentation.linedetail.ScheduleTabContent.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous> (LineDetailScreen.kt:726)");
                }
                IconKt.m2260Iconww6aTOc(EditCalendarKt.getEditCalendar(Icons.INSTANCE.getDefault()), (String) null, SizeKt.m884size3ABfNKs(Modifier.INSTANCE, Dp.m7215constructorimpl(20)), 0L, composer2, 432, 8);
                SpacerKt.Spacer(SizeKt.m889width3ABfNKs(Modifier.INSTANCE, Dp.m7215constructorimpl(8)), composer2, 6);
                TextKt.m2803Text4IGK_g(StringResourcesKt.stringResource(String0_commonMainKt.getSchedule_for_day(Res.string.INSTANCE), new Object[]{str}, composer2, 0), (Modifier) null, Color.INSTANCE.m4538getWhite0d7_KjU(), 0L, (FontStyle) null, FontWeight.INSTANCE.getBold(), (FontFamily) null, 0L, (TextDecoration) null, (TextAlign) null, 0L, 0, false, 0, 0, (Function1<? super TextLayoutResult, Unit>) null, (TextStyle) null, composer2, 196992, 0, 131034);
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventEnd();
                }
            }
        }, composer, 54), composer, 805306374, 500);
        ComposerKt.sourceInformationMarkerEnd(composer);
        composer.endNode();
        ComposerKt.sourceInformationMarkerEnd(composer);
        ComposerKt.sourceInformationMarkerEnd(composer);
        ComposerKt.sourceInformationMarkerEnd(composer);
        Modifier modifierFillMaxWidth$default = SizeKt.fillMaxWidth$default(Modifier.INSTANCE, 0.0f, 1, null);
        composer.startReplaceGroup(-1633490746);
        boolean zChangedInstance = composer.changedInstance(this.$servicio) | composer.changedInstance(this.$linea);
        final ServicioDto servicioDto = this.$servicio;
        final LineaDto lineaDto = this.$linea;
        Object objRememberedValue3 = composer.rememberedValue();
        if (zChangedInstance || objRememberedValue3 == Composer.INSTANCE.getEmpty()) {
            objRememberedValue3 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.linedetail.LineDetailScreenKt$ScheduleTabContent$2$8$1$1$1$$ExternalSyntheticLambda2
                @Override // kotlin.jvm.functions.Function1
                public final Object invoke(Object obj) {
                    return LineDetailScreenKt$ScheduleTabContent$2$8$1$1$1.invoke$lambda$9$lambda$8(servicioDto, lineaDto, (SemanticsPropertyReceiver) obj);
                }
            };
            composer.updateRememberedValue(objRememberedValue3);
        }
        composer.endReplaceGroup();
        Modifier modifierSemantics$default2 = SemanticsModifierKt.semantics$default(modifierFillMaxWidth$default, false, (Function1) objRememberedValue3, 1, null);
        RoundedCornerShape roundedCornerShapeM1197RoundedCornerShape0680j_42 = RoundedCornerShapeKt.m1197RoundedCornerShape0680j_4(Dp.m7215constructorimpl(f));
        CardColors cardColorsM1938cardColorsro_MJ88 = CardDefaults.INSTANCE.m1938cardColorsro_MJ88(MaterialTheme.INSTANCE.getColorScheme(composer, MaterialTheme.$stable).getSurface(), 0L, 0L, 0L, composer, CardDefaults.$stable << 12, 14);
        final LineaDto lineaDto2 = this.$linea;
        final ServicioDto servicioDto2 = this.$servicio;
        CardKt.Card(modifierSemantics$default2, roundedCornerShapeM1197RoundedCornerShape0680j_42, cardColorsM1938cardColorsro_MJ88, null, null, ComposableLambdaKt.rememberComposableLambda(791671573, true, new Function3<ColumnScope, Composer, Integer, Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.linedetail.LineDetailScreenKt$ScheduleTabContent$2$8$1$1$1.3
            @Override // kotlin.jvm.functions.Function3
            public /* bridge */ /* synthetic */ Unit invoke(ColumnScope columnScope, Composer composer2, Integer num) {
                invoke(columnScope, composer2, num.intValue());
                return Unit.INSTANCE;
            }

            public final void invoke(ColumnScope Card, Composer composer2, int i2) {
                Intrinsics.checkNotNullParameter(Card, "$this$Card");
                if ((i2 & 17) == 16 && composer2.getSkipping()) {
                    composer2.skipToGroupEnd();
                    return;
                }
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventStart(791671573, i2, -1, "com.sistemasolton.itranvias.home.presentation.linedetail.ScheduleTabContent.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous> (LineDetailScreen.kt:757)");
                }
                Modifier modifierM832padding3ABfNKs = PaddingKt.m832padding3ABfNKs(Modifier.INSTANCE, Dp.m7215constructorimpl(12));
                Alignment.Horizontal centerHorizontally = Alignment.INSTANCE.getCenterHorizontally();
                LineaDto lineaDto3 = lineaDto2;
                ServicioDto servicioDto3 = servicioDto2;
                ComposerKt.sourceInformationMarkerStart(composer2, 1341605231, "CC(Column)N(modifier,verticalArrangement,horizontalAlignment,content)87@4443L61,88@4509L134:Column.kt#2w3rfo");
                MeasurePolicy measurePolicyColumnMeasurePolicy = ColumnKt.columnMeasurePolicy(Arrangement.INSTANCE.getTop(), centerHorizontally, composer2, 48);
                ComposerKt.sourceInformationMarkerStart(composer2, -1159599143, "CC(Layout)P(!1,2)80@3267L27,83@3433L360:Layout.kt#80mrfh");
                int iHashCode2 = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composer2, 0));
                CompositionLocalMap currentCompositionLocalMap2 = composer2.getCurrentCompositionLocalMap();
                Modifier modifierMaterializeModifier2 = ComposedModifierKt.materializeModifier(composer2, modifierM832padding3ABfNKs);
                Function0<ComposeUiNode> constructor2 = ComposeUiNode.INSTANCE.getConstructor();
                ComposerKt.sourceInformationMarkerStart(composer2, -553112988, "CC(ReusableComposeNode)N(factory,update,content)399@15590L9:Composables.kt#9igjgp");
                if (!(composer2.getApplier() instanceof Applier)) {
                    ComposablesKt.invalidApplier();
                }
                composer2.startReusableNode();
                if (composer2.getInserting()) {
                    composer2.createNode(constructor2);
                } else {
                    composer2.useNode();
                }
                Composer composerM3820constructorimpl2 = Updater.m3820constructorimpl(composer2);
                Updater.m3827setimpl(composerM3820constructorimpl2, measurePolicyColumnMeasurePolicy, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
                Updater.m3827setimpl(composerM3820constructorimpl2, currentCompositionLocalMap2, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
                Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash2 = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
                if (composerM3820constructorimpl2.getInserting() || !Intrinsics.areEqual(composerM3820constructorimpl2.rememberedValue(), Integer.valueOf(iHashCode2))) {
                    composerM3820constructorimpl2.updateRememberedValue(Integer.valueOf(iHashCode2));
                    composerM3820constructorimpl2.apply(Integer.valueOf(iHashCode2), setCompositeKeyHash2);
                }
                Updater.m3827setimpl(composerM3820constructorimpl2, modifierMaterializeModifier2, ComposeUiNode.INSTANCE.getSetModifier());
                ComposerKt.sourceInformationMarkerStart(composer2, 2093002350, "C89@4557L9:Column.kt#2w3rfo");
                ColumnScopeInstance columnScopeInstance = ColumnScopeInstance.INSTANCE;
                TextKt.m2803Text4IGK_g(StringResourcesKt.stringResource(String0_commonMainKt.getSchedule_from_origin(Res.string.INSTANCE), new Object[]{lineaDto3.getNombreOrig()}, composer2, 0), PaddingKt.m836paddingqDBjuR0$default(Modifier.INSTANCE, 0.0f, 0.0f, 0.0f, Dp.m7215constructorimpl(4), 7, null), MaterialTheme.INSTANCE.getColorScheme(composer2, MaterialTheme.$stable).getOnSurface(), 0L, (FontStyle) null, FontWeight.INSTANCE.getSemiBold(), (FontFamily) null, 0L, (TextDecoration) null, TextAlign.m7092boximpl(TextAlign.INSTANCE.m7099getCentere0LSkKk()), 0L, 0, false, 0, 0, (Function1<? super TextLayoutResult, Unit>) null, (TextStyle) null, composer2, 196656, 0, 130520);
                List<Integer> ida = servicioDto3.getIda();
                ArrayList arrayList = new ArrayList(CollectionsKt.collectionSizeOrDefault(ida, 10));
                Iterator<T> it = ida.iterator();
                while (it.hasNext()) {
                    arrayList.add(LineDetailScreenKt.formatHour(((Number) it.next()).intValue()));
                }
                LineDetailScreenKt.m7972FlowRow6a0pyJM(arrayList, 0, 0.0f, composer2, 0, 6);
                ComposerKt.sourceInformationMarkerEnd(composer2);
                composer2.endNode();
                ComposerKt.sourceInformationMarkerEnd(composer2);
                ComposerKt.sourceInformationMarkerEnd(composer2);
                ComposerKt.sourceInformationMarkerEnd(composer2);
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventEnd();
                }
            }
        }, composer, 54), composer, ProfileVerifier.CompilationStatus.RESULT_CODE_ERROR_CANT_WRITE_PROFILE_VERIFICATION_RESULT_CACHE_FILE, 24);
        Modifier modifierM836paddingqDBjuR0$default2 = PaddingKt.m836paddingqDBjuR0$default(SizeKt.fillMaxWidth$default(Modifier.INSTANCE, 0.0f, 1, null), 0.0f, Dp.m7215constructorimpl(f), 0.0f, 0.0f, 13, null);
        composer.startReplaceGroup(-1633490746);
        boolean zChangedInstance2 = composer.changedInstance(this.$servicio) | composer.changedInstance(this.$linea);
        final ServicioDto servicioDto3 = this.$servicio;
        final LineaDto lineaDto3 = this.$linea;
        Object objRememberedValue4 = composer.rememberedValue();
        if (zChangedInstance2 || objRememberedValue4 == Composer.INSTANCE.getEmpty()) {
            objRememberedValue4 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.linedetail.LineDetailScreenKt$ScheduleTabContent$2$8$1$1$1$$ExternalSyntheticLambda3
                @Override // kotlin.jvm.functions.Function1
                public final Object invoke(Object obj) {
                    return LineDetailScreenKt$ScheduleTabContent$2$8$1$1$1.invoke$lambda$14$lambda$13(servicioDto3, lineaDto3, (SemanticsPropertyReceiver) obj);
                }
            };
            composer.updateRememberedValue(objRememberedValue4);
        }
        composer.endReplaceGroup();
        Modifier modifierSemantics$default3 = SemanticsModifierKt.semantics$default(modifierM836paddingqDBjuR0$default2, false, (Function1) objRememberedValue4, 1, null);
        RoundedCornerShape roundedCornerShapeM1197RoundedCornerShape0680j_43 = RoundedCornerShapeKt.m1197RoundedCornerShape0680j_4(Dp.m7215constructorimpl(f));
        CardColors cardColorsM1938cardColorsro_MJ882 = CardDefaults.INSTANCE.m1938cardColorsro_MJ88(MaterialTheme.INSTANCE.getColorScheme(composer, MaterialTheme.$stable).getSurface(), 0L, 0L, 0L, composer, CardDefaults.$stable << 12, 14);
        final LineaDto lineaDto4 = this.$linea;
        final ServicioDto servicioDto4 = this.$servicio;
        CardKt.Card(modifierSemantics$default3, roundedCornerShapeM1197RoundedCornerShape0680j_43, cardColorsM1938cardColorsro_MJ882, null, null, ComposableLambdaKt.rememberComposableLambda(159727806, true, new Function3<ColumnScope, Composer, Integer, Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.linedetail.LineDetailScreenKt$ScheduleTabContent$2$8$1$1$1.5
            @Override // kotlin.jvm.functions.Function3
            public /* bridge */ /* synthetic */ Unit invoke(ColumnScope columnScope, Composer composer2, Integer num) {
                invoke(columnScope, composer2, num.intValue());
                return Unit.INSTANCE;
            }

            public final void invoke(ColumnScope Card, Composer composer2, int i2) {
                Intrinsics.checkNotNullParameter(Card, "$this$Card");
                if ((i2 & 17) == 16 && composer2.getSkipping()) {
                    composer2.skipToGroupEnd();
                    return;
                }
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventStart(159727806, i2, -1, "com.sistemasolton.itranvias.home.presentation.linedetail.ScheduleTabContent.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous> (LineDetailScreen.kt:790)");
                }
                Modifier modifierM832padding3ABfNKs = PaddingKt.m832padding3ABfNKs(Modifier.INSTANCE, Dp.m7215constructorimpl(12));
                Alignment.Horizontal centerHorizontally = Alignment.INSTANCE.getCenterHorizontally();
                LineaDto lineaDto5 = lineaDto4;
                ServicioDto servicioDto5 = servicioDto4;
                ComposerKt.sourceInformationMarkerStart(composer2, 1341605231, "CC(Column)N(modifier,verticalArrangement,horizontalAlignment,content)87@4443L61,88@4509L134:Column.kt#2w3rfo");
                MeasurePolicy measurePolicyColumnMeasurePolicy = ColumnKt.columnMeasurePolicy(Arrangement.INSTANCE.getTop(), centerHorizontally, composer2, 48);
                ComposerKt.sourceInformationMarkerStart(composer2, -1159599143, "CC(Layout)P(!1,2)80@3267L27,83@3433L360:Layout.kt#80mrfh");
                int iHashCode2 = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composer2, 0));
                CompositionLocalMap currentCompositionLocalMap2 = composer2.getCurrentCompositionLocalMap();
                Modifier modifierMaterializeModifier2 = ComposedModifierKt.materializeModifier(composer2, modifierM832padding3ABfNKs);
                Function0<ComposeUiNode> constructor2 = ComposeUiNode.INSTANCE.getConstructor();
                ComposerKt.sourceInformationMarkerStart(composer2, -553112988, "CC(ReusableComposeNode)N(factory,update,content)399@15590L9:Composables.kt#9igjgp");
                if (!(composer2.getApplier() instanceof Applier)) {
                    ComposablesKt.invalidApplier();
                }
                composer2.startReusableNode();
                if (composer2.getInserting()) {
                    composer2.createNode(constructor2);
                } else {
                    composer2.useNode();
                }
                Composer composerM3820constructorimpl2 = Updater.m3820constructorimpl(composer2);
                Updater.m3827setimpl(composerM3820constructorimpl2, measurePolicyColumnMeasurePolicy, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
                Updater.m3827setimpl(composerM3820constructorimpl2, currentCompositionLocalMap2, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
                Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash2 = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
                if (composerM3820constructorimpl2.getInserting() || !Intrinsics.areEqual(composerM3820constructorimpl2.rememberedValue(), Integer.valueOf(iHashCode2))) {
                    composerM3820constructorimpl2.updateRememberedValue(Integer.valueOf(iHashCode2));
                    composerM3820constructorimpl2.apply(Integer.valueOf(iHashCode2), setCompositeKeyHash2);
                }
                Updater.m3827setimpl(composerM3820constructorimpl2, modifierMaterializeModifier2, ComposeUiNode.INSTANCE.getSetModifier());
                ComposerKt.sourceInformationMarkerStart(composer2, 2093002350, "C89@4557L9:Column.kt#2w3rfo");
                ColumnScopeInstance columnScopeInstance = ColumnScopeInstance.INSTANCE;
                TextKt.m2803Text4IGK_g(StringResourcesKt.stringResource(String0_commonMainKt.getSchedule_from_origin(Res.string.INSTANCE), new Object[]{lineaDto5.getNombreDest()}, composer2, 0), PaddingKt.m836paddingqDBjuR0$default(Modifier.INSTANCE, 0.0f, 0.0f, 0.0f, Dp.m7215constructorimpl(4), 7, null), MaterialTheme.INSTANCE.getColorScheme(composer2, MaterialTheme.$stable).getOnSurface(), 0L, (FontStyle) null, FontWeight.INSTANCE.getSemiBold(), (FontFamily) null, 0L, (TextDecoration) null, TextAlign.m7092boximpl(TextAlign.INSTANCE.m7099getCentere0LSkKk()), 0L, 0, false, 0, 0, (Function1<? super TextLayoutResult, Unit>) null, (TextStyle) null, composer2, 196656, 0, 130520);
                List<Integer> vuelta = servicioDto5.getVuelta();
                ArrayList arrayList = new ArrayList(CollectionsKt.collectionSizeOrDefault(vuelta, 10));
                Iterator<T> it = vuelta.iterator();
                while (it.hasNext()) {
                    arrayList.add(LineDetailScreenKt.formatHour(((Number) it.next()).intValue()));
                }
                LineDetailScreenKt.m7972FlowRow6a0pyJM(arrayList, 0, 0.0f, composer2, 0, 6);
                ComposerKt.sourceInformationMarkerEnd(composer2);
                composer2.endNode();
                ComposerKt.sourceInformationMarkerEnd(composer2);
                ComposerKt.sourceInformationMarkerEnd(composer2);
                ComposerKt.sourceInformationMarkerEnd(composer2);
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventEnd();
                }
            }
        }, composer, 54), composer, ProfileVerifier.CompilationStatus.RESULT_CODE_ERROR_CANT_WRITE_PROFILE_VERIFICATION_RESULT_CACHE_FILE, 24);
        if (ComposerKt.isTraceInProgress()) {
            ComposerKt.traceEventEnd();
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit invoke$lambda$14$lambda$13(ServicioDto servicioDto, LineaDto lineaDto, SemanticsPropertyReceiver semantics) {
        Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
        List<Integer> vuelta = servicioDto.getVuelta();
        ArrayList arrayList = new ArrayList(CollectionsKt.collectionSizeOrDefault(vuelta, 10));
        Iterator<T> it = vuelta.iterator();
        while (it.hasNext()) {
            arrayList.add(LineDetailScreenKt.formatHour(((Number) it.next()).intValue()));
        }
        ArrayList arrayList2 = new ArrayList();
        for (Object obj : arrayList) {
            if (!Intrinsics.areEqual((String) obj, "--:--")) {
                arrayList2.add(obj);
            }
        }
        String strJoinToString$default = CollectionsKt.joinToString$default(CollectionsKt.take(arrayList2, 3), ", ", null, null, 0, null, null, 62, null);
        List<Integer> vuelta2 = servicioDto.getVuelta();
        int i = 0;
        if (!(vuelta2 instanceof Collection) || !vuelta2.isEmpty()) {
            Iterator<T> it2 = vuelta2.iterator();
            while (it2.hasNext()) {
                if (((Number) it2.next()).intValue() != 9999 && (i = i + 1) < 0) {
                    CollectionsKt.throwCountOverflow();
                }
            }
        }
        SemanticsPropertiesKt.setContentDescription(semantics, "Horarios desde " + lineaDto.getNombreDest() + ". " + i + " salidas. Primeras salidas: " + strJoinToString$default);
        return Unit.INSTANCE;
    }
}