Rabbit-R1/original r1/java/sources/androidx/compose/material3/NavigationBarKt.java

532 lines
42 KiB
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package androidx.compose.material3;
import androidx.compose.foundation.layout.BoxKt;
import androidx.compose.foundation.layout.BoxScopeInstance;
import androidx.compose.foundation.layout.PaddingKt;
import androidx.compose.material3.tokens.NavigationBarTokens;
import androidx.compose.runtime.Applier;
import androidx.compose.runtime.ComposablesKt;
import androidx.compose.runtime.Composer;
import androidx.compose.runtime.ComposerKt;
import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.ProvidableCompositionLocal;
import androidx.compose.runtime.RecomposeScopeImplKt;
import androidx.compose.runtime.ScopeUpdateScope;
import androidx.compose.runtime.SkippableUpdater;
import androidx.compose.runtime.State;
import androidx.compose.runtime.Updater;
import androidx.compose.ui.Alignment;
import androidx.compose.ui.Modifier;
import androidx.compose.ui.draw.AlphaKt;
import androidx.compose.ui.layout.LayoutIdKt;
import androidx.compose.ui.layout.LayoutKt;
import androidx.compose.ui.layout.Measurable;
import androidx.compose.ui.layout.MeasurePolicy;
import androidx.compose.ui.layout.MeasureResult;
import androidx.compose.ui.layout.MeasureScope;
import androidx.compose.ui.layout.Placeable;
import androidx.compose.ui.node.ComposeUiNode;
import androidx.compose.ui.platform.CompositionLocalsKt;
import androidx.compose.ui.platform.ViewConfiguration;
import androidx.compose.ui.unit.Constraints;
import androidx.compose.ui.unit.Density;
import androidx.compose.ui.unit.Dp;
import androidx.compose.ui.unit.LayoutDirection;
import java.util.Iterator;
import java.util.List;
import java.util.NoSuchElementException;
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.internal.Intrinsics;
import kotlin.math.MathKt;
/* compiled from: NavigationBar.kt */
@Metadata(d1 = {"\u0000\u0084\u0001\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\b\n\u0002\b\b\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0007\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0007\u001ae\u0010\u0012\u001a\u00020\u00132\b\b\u0002\u0010\u0014\u001a\u00020\u00152\b\b\u0002\u0010\u0016\u001a\u00020\u00172\b\b\u0002\u0010\u0018\u001a\u00020\u00172\b\b\u0002\u0010\u0019\u001a\u00020\u00032\b\b\u0002\u0010\u001a\u001a\u00020\u001b2\u001c\u0010\u001c\u001a\u0018\u0012\u0004\u0012\u00020\u001e\u0012\u0004\u0012\u00020\u00130\u001d¢\u0006\u0002\b\u001f¢\u0006\u0002\b H\u0007ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b!\u0010\"\u001ak\u0010#\u001a\u00020\u00132\u0011\u0010$\u001a\r\u0012\u0004\u0012\u00020\u00130%¢\u0006\u0002\b\u001f2\u0011\u0010&\u001a\r\u0012\u0004\u0012\u00020\u00130%¢\u0006\u0002\b\u001f2\u0011\u0010'\u001a\r\u0012\u0004\u0012\u00020\u00130%¢\u0006\u0002\b\u001f2\u0013\u0010(\u001a\u000f\u0012\u0004\u0012\u00020\u0013\u0018\u00010%¢\u0006\u0002\b\u001f2\u0006\u0010)\u001a\u00020*2\u0006\u0010+\u001a\u00020,H\u0003¢\u0006\u0002\u0010-\u001a\u0083\u0001\u0010.\u001a\u00020\u0013*\u00020\u001e2\u0006\u0010/\u001a\u00020*2\f\u00100\u001a\b\u0012\u0004\u0012\u00020\u00130%2\u0011\u0010'\u001a\r\u0012\u0004\u0012\u00020\u00130%¢\u0006\u0002\b\u001f2\b\b\u0002\u0010\u0014\u001a\u00020\u00152\b\b\u0002\u00101\u001a\u00020*2\u0015\b\u0002\u0010(\u001a\u000f\u0012\u0004\u0012\u00020\u0013\u0018\u00010%¢\u0006\u0002\b\u001f2\b\b\u0002\u0010)\u001a\u00020*2\b\b\u0002\u00102\u001a\u0002032\b\b\u0002\u00104\u001a\u000205H\u0007¢\u0006\u0002\u00106\u001a;\u00107\u001a\u000208*\u0002092\u0006\u0010:\u001a\u00020;2\u0006\u0010<\u001a\u00020;2\b\u0010=\u001a\u0004\u0018\u00010;2\u0006\u0010>\u001a\u00020?H\u0002ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b@\u0010A\u001aS\u0010B\u001a\u000208*\u0002092\u0006\u0010C\u001a\u00020;2\u0006\u0010:\u001a\u00020;2\u0006\u0010<\u001a\u00020;2\b\u0010=\u001a\u0004\u0018\u00010;2\u0006\u0010>\u001a\u00020?2\u0006\u0010)\u001a\u00020*2\u0006\u0010+\u001a\u00020,H\u0002ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\bD\u0010E\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0082T¢\u0006\u0002\n\u0000\"\u0013\u0010\u0002\u001a\u00020\u0003X\u0082\u0004ø\u0001\u0000¢\u0006\u0004\n\u0002\u0010\u0004\"\u000e\u0010\u0005\u001a\u00020\u0001X\u0082T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0006\u001a\u00020\u0001X\u0082T¢\u0006\u0002\n\u0000\"\u0013\u0010\u0007\u001a\u00020\u0003X\u0082\u0004ø\u0001\u0000¢\u0006\u0004\n\u0002\u0010\u0004\"\u0013\u0010\b\u001a\u00020\u0003X\u0082\u0004ø\u0001\u0000¢\u0006\u0004\n\u0002\u0010\u0004\"\u000e\u0010\t\u001a\u00020\nX\u0082T¢\u0006\u0002\n\u0000\"\u000e\u0010\u000b\u001a\u00020\u0001X\u0082T¢\u0006\u0002\n\u0000\"\u0013\u0010\f\u001a\u00020\u0003X\u0082\u0004ø\u0001\u0000¢\u0006\u0004\n\u0002\u0010\u0004\"\u0019\u0010\r\u001a\u00020\u0003X\u0080\u0004ø\u0001\u0000¢\u0006\n\n\u0002\u0010\u0004\u001a\u0004\b\u000e\u0010\u000f\"\u0019\u0010\u0010\u001a\u00020\u0003X\u0080\u0004ø\u0001\u0000¢\u0006\n\n\u0002\u0010\u0004\u001a\u0004\b\u0011\u0010\u000f\u0082\u0002\u000b\n\u0002\b\u0019\n\u0005\\u001e0\u0001¨\u0006F"}, d2 = {"IconLayoutIdTag", "", "IndicatorHorizontalPadding", "Landroidx/compose/ui/unit/Dp;", "F", "IndicatorLayoutIdTag", "IndicatorRippleLayoutIdTag", "IndicatorVerticalOffset", "IndicatorVerticalPadding", "ItemAnimationDurationMillis", "", "LabelLayoutIdTag", "NavigationBarHeight", "NavigationBarItemHorizontalPadding", "getNavigationBarItemHorizontalPadding", "()F", "NavigationBarItemVerticalPadding", "getNavigationBarItemVerticalPadding", "NavigationBar", "", "modifier", "Landroidx/c
/* loaded from: classes.dex */
public final class NavigationBarKt {
private static final String IconLayoutIdTag = "icon";
private static final float IndicatorHorizontalPadding;
private static final String IndicatorLayoutIdTag = "indicator";
private static final String IndicatorRippleLayoutIdTag = "indicatorRipple";
private static final float IndicatorVerticalPadding;
private static final int ItemAnimationDurationMillis = 100;
private static final String LabelLayoutIdTag = "label";
private static final float NavigationBarHeight = NavigationBarTokens.INSTANCE.m1976getContainerHeightD9Ej5fM();
private static final float NavigationBarItemHorizontalPadding = Dp.m4883constructorimpl(8);
private static final float NavigationBarItemVerticalPadding = Dp.m4883constructorimpl(16);
private static final float IndicatorVerticalOffset = Dp.m4883constructorimpl(12);
public static final float getNavigationBarItemHorizontalPadding() {
return NavigationBarItemHorizontalPadding;
}
public static final float getNavigationBarItemVerticalPadding() {
return NavigationBarItemVerticalPadding;
}
/* JADX WARN: Removed duplicated region for block: B:26:0x008c */
/* JADX WARN: Removed duplicated region for block: B:34:0x00a7 */
/* JADX WARN: Removed duplicated region for block: B:38:0x00c5 */
/* JADX WARN: Removed duplicated region for block: B:43:0x0193 */
/* JADX WARN: Removed duplicated region for block: B:46:? A[RETURN, SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:49:0x00dd */
/* JADX WARN: Removed duplicated region for block: B:64:0x0145 */
/* JADX WARN: Removed duplicated region for block: B:67:0x0187 */
/* JADX WARN: Removed duplicated region for block: B:70:0x0102 */
/* JADX WARN: Removed duplicated region for block: B:73:0x010d */
/* JADX WARN: Removed duplicated region for block: B:76:0x0119 */
/* JADX WARN: Removed duplicated region for block: B:78:0x0128 */
/* JADX WARN: Removed duplicated region for block: B:81:0x0133 */
/* JADX WARN: Removed duplicated region for block: B:82:0x0107 */
/* JADX WARN: Removed duplicated region for block: B:83:0x00ab */
/* JADX WARN: Removed duplicated region for block: B:91:0x00a1 */
/* renamed from: NavigationBar-HsRjFd4, reason: not valid java name */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static final void m1301NavigationBarHsRjFd4(androidx.compose.ui.Modifier r25, long r26, long r28, float r30, androidx.compose.foundation.layout.WindowInsets r31, final kotlin.jvm.functions.Function3<? super androidx.compose.foundation.layout.RowScope, ? super androidx.compose.runtime.Composer, ? super java.lang.Integer, kotlin.Unit> r32, androidx.compose.runtime.Composer r33, final int r34, final int r35) {
/*
Method dump skipped, instructions count: 426
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.compose.material3.NavigationBarKt.m1301NavigationBarHsRjFd4(androidx.compose.ui.Modifier, long, long, float, androidx.compose.foundation.layout.WindowInsets, kotlin.jvm.functions.Function3, androidx.compose.runtime.Composer, int, int):void");
}
/* JADX WARN: Removed duplicated region for block: B:101:0x019a */
/* JADX WARN: Removed duplicated region for block: B:104:0x019f */
/* JADX WARN: Removed duplicated region for block: B:106:0x01c0 */
/* JADX WARN: Removed duplicated region for block: B:111:0x01e3 */
/* JADX WARN: Removed duplicated region for block: B:112:0x01bc */
/* JADX WARN: Removed duplicated region for block: B:113:0x0197 */
/* JADX WARN: Removed duplicated region for block: B:114:0x018e */
/* JADX WARN: Removed duplicated region for block: B:115:0x012b */
/* JADX WARN: Removed duplicated region for block: B:124:0x011e */
/* JADX WARN: Removed duplicated region for block: B:125:0x00ed */
/* JADX WARN: Removed duplicated region for block: B:132:0x00cb */
/* JADX WARN: Removed duplicated region for block: B:139:0x00ad */
/* JADX WARN: Removed duplicated region for block: B:19:0x00a9 */
/* JADX WARN: Removed duplicated region for block: B:23:0x00c7 */
/* JADX WARN: Removed duplicated region for block: B:27:0x00e6 */
/* JADX WARN: Removed duplicated region for block: B:30:0x0108 */
/* JADX WARN: Removed duplicated region for block: B:38:0x0124 */
/* JADX WARN: Removed duplicated region for block: B:41:0x014a */
/* JADX WARN: Removed duplicated region for block: B:46:0x04a0 */
/* JADX WARN: Removed duplicated region for block: B:49:? A[RETURN, SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:52:0x016b */
/* JADX WARN: Removed duplicated region for block: B:60:0x01f4 */
/* JADX WARN: Removed duplicated region for block: B:63:0x0222 */
/* JADX WARN: Removed duplicated region for block: B:66:0x025c */
/* JADX WARN: Removed duplicated region for block: B:69:0x02b8 */
/* JADX WARN: Removed duplicated region for block: B:73:0x0346 */
/* JADX WARN: Removed duplicated region for block: B:76:0x0352 */
/* JADX WARN: Removed duplicated region for block: B:79:0x03b2 */
/* JADX WARN: Removed duplicated region for block: B:82:0x0428 */
/* JADX WARN: Removed duplicated region for block: B:86:0x048f */
/* JADX WARN: Removed duplicated region for block: B:89:0x03b5 */
/* JADX WARN: Removed duplicated region for block: B:90:0x0356 */
/* JADX WARN: Removed duplicated region for block: B:92:0x026a */
/* JADX WARN: Removed duplicated region for block: B:93:0x0242 */
/* JADX WARN: Removed duplicated region for block: B:95:0x0189 */
/* JADX WARN: Removed duplicated region for block: B:97:0x0192 */
/* JADX WARN: Removed duplicated region for block: B:99:0x0195 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static final void NavigationBarItem(final androidx.compose.foundation.layout.RowScope r36, final boolean r37, final kotlin.jvm.functions.Function0<kotlin.Unit> r38, final kotlin.jvm.functions.Function2<? super androidx.compose.runtime.Composer, ? super java.lang.Integer, kotlin.Unit> r39, androidx.compose.ui.Modifier r40, boolean r41, kotlin.jvm.functions.Function2<? super androidx.compose.runtime.Composer, ? super java.lang.Integer, kotlin.Unit> r42, boolean r43, androidx.compose.material3.NavigationBarItemColors r44, androidx.compose.foundation.interaction.MutableInteractionSource r45, androidx.compose.runtime.Composer r46, final int r47, final int r48) {
/*
Method dump skipped, instructions count: 1209
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.compose.material3.NavigationBarKt.NavigationBarItem(androidx.compose.foundation.layout.RowScope, boolean, kotlin.jvm.functions.Function0, kotlin.jvm.functions.Function2, androidx.compose.ui.Modifier, boolean, kotlin.jvm.functions.Function2, boolean, androidx.compose.material3.NavigationBarItemColors, androidx.compose.foundation.interaction.MutableInteractionSource, androidx.compose.runtime.Composer, int, int):void");
}
private static final int NavigationBarItem$lambda$3(MutableState<Integer> mutableState) {
return mutableState.getValue().intValue();
}
/* JADX INFO: Access modifiers changed from: private */
public static final void NavigationBarItem$lambda$4(MutableState<Integer> mutableState, int i) {
mutableState.setValue(Integer.valueOf(i));
}
/* JADX INFO: Access modifiers changed from: private */
public static final void NavigationBarItemBaselineLayout(final Function2<? super Composer, ? super Integer, Unit> function2, final Function2<? super Composer, ? super Integer, Unit> function22, final Function2<? super Composer, ? super Integer, Unit> function23, final Function2<? super Composer, ? super Integer, Unit> function24, final boolean z, final float f, Composer composer, final int i) {
int i2;
Composer startRestartGroup = composer.startRestartGroup(591111291);
ComposerKt.sourceInformation(startRestartGroup, "C(NavigationBarItemBaselineLayout)P(4,3,2,5)434@18867L2465:NavigationBar.kt#uh7d8r");
if ((i & 14) == 0) {
i2 = (startRestartGroup.changedInstance(function2) ? 4 : 2) | i;
} else {
i2 = i;
}
if ((i & 112) == 0) {
i2 |= startRestartGroup.changedInstance(function22) ? 32 : 16;
}
if ((i & 896) == 0) {
i2 |= startRestartGroup.changedInstance(function23) ? 256 : 128;
}
if ((i & 7168) == 0) {
i2 |= startRestartGroup.changedInstance(function24) ? 2048 : 1024;
}
if ((57344 & i) == 0) {
i2 |= startRestartGroup.changed(z) ? 16384 : 8192;
}
if ((458752 & i) == 0) {
i2 |= startRestartGroup.changed(f) ? 131072 : 65536;
}
if ((374491 & i2) != 74898 || !startRestartGroup.getSkipping()) {
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventStart(591111291, i2, -1, "androidx.compose.material3.NavigationBarItemBaselineLayout (NavigationBar.kt:426)");
}
MeasurePolicy measurePolicy = new MeasurePolicy() { // from class: androidx.compose.material3.NavigationBarKt$NavigationBarItemBaselineLayout$2
@Override // androidx.compose.ui.layout.MeasurePolicy
/* renamed from: measure-3p2s80s */
public final MeasureResult mo21measure3p2s80s(MeasureScope Layout, List<? extends Measurable> measurables, long j) {
float f2;
float f3;
Object obj;
Placeable placeable;
MeasureResult m1305placeLabelAndIconzUg2_y0;
MeasureResult m1304placeIconX9ElhV4;
Intrinsics.checkNotNullParameter(Layout, "$this$Layout");
Intrinsics.checkNotNullParameter(measurables, "measurables");
List<? extends Measurable> list = measurables;
for (Measurable measurable : list) {
if (Intrinsics.areEqual(LayoutIdKt.getLayoutId(measurable), "icon")) {
Placeable mo3876measureBRTryo0 = measurable.mo3876measureBRTryo0(j);
int width = mo3876measureBRTryo0.getWidth();
f2 = NavigationBarKt.IndicatorHorizontalPadding;
float f4 = 2;
int i3 = width + Layout.mo329roundToPx0680j_4(Dp.m4883constructorimpl(f2 * f4));
int roundToInt = MathKt.roundToInt(i3 * f);
int height = mo3876measureBRTryo0.getHeight();
f3 = NavigationBarKt.IndicatorVerticalPadding;
int i4 = height + Layout.mo329roundToPx0680j_4(Dp.m4883constructorimpl(f3 * f4));
for (Measurable measurable2 : list) {
if (Intrinsics.areEqual(LayoutIdKt.getLayoutId(measurable2), "indicatorRipple")) {
Placeable mo3876measureBRTryo02 = measurable2.mo3876measureBRTryo0(Constraints.INSTANCE.m4847fixedJhjzzOo(i3, i4));
Iterator<T> it = list.iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
if (Intrinsics.areEqual(LayoutIdKt.getLayoutId((Measurable) obj), "indicator")) {
break;
}
}
Measurable measurable3 = (Measurable) obj;
Placeable mo3876measureBRTryo03 = measurable3 != null ? measurable3.mo3876measureBRTryo0(Constraints.INSTANCE.m4847fixedJhjzzOo(roundToInt, i4)) : null;
if (function24 != null) {
for (Measurable measurable4 : list) {
if (Intrinsics.areEqual(LayoutIdKt.getLayoutId(measurable4), "label")) {
placeable = measurable4.mo3876measureBRTryo0(Constraints.m4830copyZbe2FdA$default(j, 0, 0, 0, 0, 11, null));
}
}
throw new NoSuchElementException("Collection contains no element matching the predicate.");
}
placeable = null;
if (function24 == null) {
m1304placeIconX9ElhV4 = NavigationBarKt.m1304placeIconX9ElhV4(Layout, mo3876measureBRTryo0, mo3876measureBRTryo02, mo3876measureBRTryo03, j);
return m1304placeIconX9ElhV4;
}
Intrinsics.checkNotNull(placeable);
m1305placeLabelAndIconzUg2_y0 = NavigationBarKt.m1305placeLabelAndIconzUg2_y0(Layout, placeable, mo3876measureBRTryo0, mo3876measureBRTryo02, mo3876measureBRTryo03, j, z, f);
return m1305placeLabelAndIconzUg2_y0;
}
}
throw new NoSuchElementException("Collection contains no element matching the predicate.");
}
}
throw new NoSuchElementException("Collection contains no element matching the predicate.");
}
};
startRestartGroup.startReplaceableGroup(-1323940314);
ComposerKt.sourceInformation(startRestartGroup, "CC(Layout)P(!1,2)73@2855L7,74@2910L7,75@2969L7,76@2981L460:Layout.kt#80mrfh");
Modifier.Companion companion = Modifier.INSTANCE;
ProvidableCompositionLocal<Density> localDensity = CompositionLocalsKt.getLocalDensity();
ComposerKt.sourceInformationMarkerStart(startRestartGroup, 2023513938, "CC:CompositionLocal.kt#9igjgp");
Object consume = startRestartGroup.consume(localDensity);
ComposerKt.sourceInformationMarkerEnd(startRestartGroup);
Density density = (Density) consume;
ProvidableCompositionLocal<LayoutDirection> localLayoutDirection = CompositionLocalsKt.getLocalLayoutDirection();
ComposerKt.sourceInformationMarkerStart(startRestartGroup, 2023513938, "CC:CompositionLocal.kt#9igjgp");
Object consume2 = startRestartGroup.consume(localLayoutDirection);
ComposerKt.sourceInformationMarkerEnd(startRestartGroup);
LayoutDirection layoutDirection = (LayoutDirection) consume2;
ProvidableCompositionLocal<ViewConfiguration> localViewConfiguration = CompositionLocalsKt.getLocalViewConfiguration();
ComposerKt.sourceInformationMarkerStart(startRestartGroup, 2023513938, "CC:CompositionLocal.kt#9igjgp");
Object consume3 = startRestartGroup.consume(localViewConfiguration);
ComposerKt.sourceInformationMarkerEnd(startRestartGroup);
ViewConfiguration viewConfiguration = (ViewConfiguration) consume3;
Function0<ComposeUiNode> constructor = ComposeUiNode.INSTANCE.getConstructor();
Function3<SkippableUpdater<ComposeUiNode>, Composer, Integer, Unit> materializerOf = LayoutKt.materializerOf(companion);
if (!(startRestartGroup.getApplier() instanceof Applier)) {
ComposablesKt.invalidApplier();
}
startRestartGroup.startReusableNode();
if (startRestartGroup.getInserting()) {
startRestartGroup.createNode(constructor);
} else {
startRestartGroup.useNode();
}
Composer m2273constructorimpl = Updater.m2273constructorimpl(startRestartGroup);
Updater.m2280setimpl(m2273constructorimpl, measurePolicy, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
Updater.m2280setimpl(m2273constructorimpl, density, ComposeUiNode.INSTANCE.getSetDensity());
Updater.m2280setimpl(m2273constructorimpl, layoutDirection, ComposeUiNode.INSTANCE.getSetLayoutDirection());
Updater.m2280setimpl(m2273constructorimpl, viewConfiguration, ComposeUiNode.INSTANCE.getSetViewConfiguration());
materializerOf.invoke(SkippableUpdater.m2264boximpl(SkippableUpdater.m2265constructorimpl(startRestartGroup)), startRestartGroup, 0);
startRestartGroup.startReplaceableGroup(2058660585);
ComposerKt.sourceInformationMarkerStart(startRestartGroup, -311734425, "C435@18884L17,440@18982L50:NavigationBar.kt#uh7d8r");
function2.invoke(startRestartGroup, Integer.valueOf(i2 & 14));
startRestartGroup.startReplaceableGroup(-311734399);
ComposerKt.sourceInformation(startRestartGroup, "437@18951L11");
if (f > 0.0f) {
function22.invoke(startRestartGroup, Integer.valueOf((i2 >> 3) & 14));
}
startRestartGroup.endReplaceableGroup();
Modifier layoutId = LayoutIdKt.layoutId(Modifier.INSTANCE, IconLayoutIdTag);
startRestartGroup.startReplaceableGroup(733328855);
ComposerKt.sourceInformation(startRestartGroup, "CC(Box)P(2,1,3)70@3267L67,71@3339L130:Box.kt#2w3rfo");
MeasurePolicy rememberBoxMeasurePolicy = BoxKt.rememberBoxMeasurePolicy(Alignment.INSTANCE.getTopStart(), false, startRestartGroup, 0);
startRestartGroup.startReplaceableGroup(-1323940314);
ComposerKt.sourceInformation(startRestartGroup, "C(Layout)P(!1,2)74@2915L7,75@2970L7,76@3029L7,77@3041L460:Layout.kt#80mrfh");
ProvidableCompositionLocal<Density> localDensity2 = CompositionLocalsKt.getLocalDensity();
ComposerKt.sourceInformationMarkerStart(startRestartGroup, 2023513938, "C:CompositionLocal.kt#9igjgp");
Object consume4 = startRestartGroup.consume(localDensity2);
ComposerKt.sourceInformationMarkerEnd(startRestartGroup);
Density density2 = (Density) consume4;
ProvidableCompositionLocal<LayoutDirection> localLayoutDirection2 = CompositionLocalsKt.getLocalLayoutDirection();
ComposerKt.sourceInformationMarkerStart(startRestartGroup, 2023513938, "C:CompositionLocal.kt#9igjgp");
Object consume5 = startRestartGroup.consume(localLayoutDirection2);
ComposerKt.sourceInformationMarkerEnd(startRestartGroup);
LayoutDirection layoutDirection2 = (LayoutDirection) consume5;
ProvidableCompositionLocal<ViewConfiguration> localViewConfiguration2 = CompositionLocalsKt.getLocalViewConfiguration();
ComposerKt.sourceInformationMarkerStart(startRestartGroup, 2023513938, "C:CompositionLocal.kt#9igjgp");
Object consume6 = startRestartGroup.consume(localViewConfiguration2);
ComposerKt.sourceInformationMarkerEnd(startRestartGroup);
ViewConfiguration viewConfiguration2 = (ViewConfiguration) consume6;
Function0<ComposeUiNode> constructor2 = ComposeUiNode.INSTANCE.getConstructor();
Function3<SkippableUpdater<ComposeUiNode>, Composer, Integer, Unit> materializerOf2 = LayoutKt.materializerOf(layoutId);
if (!(startRestartGroup.getApplier() instanceof Applier)) {
ComposablesKt.invalidApplier();
}
startRestartGroup.startReusableNode();
if (startRestartGroup.getInserting()) {
startRestartGroup.createNode(constructor2);
} else {
startRestartGroup.useNode();
}
startRestartGroup.disableReusing();
Composer m2273constructorimpl2 = Updater.m2273constructorimpl(startRestartGroup);
Updater.m2280setimpl(m2273constructorimpl2, rememberBoxMeasurePolicy, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
Updater.m2280setimpl(m2273constructorimpl2, density2, ComposeUiNode.INSTANCE.getSetDensity());
Updater.m2280setimpl(m2273constructorimpl2, layoutDirection2, ComposeUiNode.INSTANCE.getSetLayoutDirection());
Updater.m2280setimpl(m2273constructorimpl2, viewConfiguration2, ComposeUiNode.INSTANCE.getSetViewConfiguration());
startRestartGroup.enableReusing();
materializerOf2.invoke(SkippableUpdater.m2264boximpl(SkippableUpdater.m2265constructorimpl(startRestartGroup)), startRestartGroup, 0);
startRestartGroup.startReplaceableGroup(2058660585);
ComposerKt.sourceInformationMarkerStart(startRestartGroup, -1253629305, "C72@3384L9:Box.kt#2w3rfo");
BoxScopeInstance boxScopeInstance = BoxScopeInstance.INSTANCE;
ComposerKt.sourceInformationMarkerStart(startRestartGroup, 1248851348, "C440@19024L6:NavigationBar.kt#uh7d8r");
function23.invoke(startRestartGroup, Integer.valueOf((i2 >> 6) & 14));
ComposerKt.sourceInformationMarkerEnd(startRestartGroup);
ComposerKt.sourceInformationMarkerEnd(startRestartGroup);
startRestartGroup.endReplaceableGroup();
startRestartGroup.endNode();
startRestartGroup.endReplaceableGroup();
startRestartGroup.endReplaceableGroup();
startRestartGroup.startReplaceableGroup(1204551908);
ComposerKt.sourceInformation(startRestartGroup, "443@19075L260");
if (function24 != null) {
Modifier m492paddingVpY3zN4$default = PaddingKt.m492paddingVpY3zN4$default(AlphaKt.alpha(LayoutIdKt.layoutId(Modifier.INSTANCE, LabelLayoutIdTag), z ? 1.0f : f), Dp.m4883constructorimpl(NavigationBarItemHorizontalPadding / 2), 0.0f, 2, null);
startRestartGroup.startReplaceableGroup(733328855);
ComposerKt.sourceInformation(startRestartGroup, "CC(Box)P(2,1,3)70@3267L67,71@3339L130:Box.kt#2w3rfo");
MeasurePolicy rememberBoxMeasurePolicy2 = BoxKt.rememberBoxMeasurePolicy(Alignment.INSTANCE.getTopStart(), false, startRestartGroup, 0);
startRestartGroup.startReplaceableGroup(-1323940314);
ComposerKt.sourceInformation(startRestartGroup, "C(Layout)P(!1,2)74@2915L7,75@2970L7,76@3029L7,77@3041L460:Layout.kt#80mrfh");
ProvidableCompositionLocal<Density> localDensity3 = CompositionLocalsKt.getLocalDensity();
ComposerKt.sourceInformationMarkerStart(startRestartGroup, 2023513938, "C:CompositionLocal.kt#9igjgp");
Object consume7 = startRestartGroup.consume(localDensity3);
ComposerKt.sourceInformationMarkerEnd(startRestartGroup);
Density density3 = (Density) consume7;
ProvidableCompositionLocal<LayoutDirection> localLayoutDirection3 = CompositionLocalsKt.getLocalLayoutDirection();
ComposerKt.sourceInformationMarkerStart(startRestartGroup, 2023513938, "C:CompositionLocal.kt#9igjgp");
Object consume8 = startRestartGroup.consume(localLayoutDirection3);
ComposerKt.sourceInformationMarkerEnd(startRestartGroup);
LayoutDirection layoutDirection3 = (LayoutDirection) consume8;
ProvidableCompositionLocal<ViewConfiguration> localViewConfiguration3 = CompositionLocalsKt.getLocalViewConfiguration();
ComposerKt.sourceInformationMarkerStart(startRestartGroup, 2023513938, "C:CompositionLocal.kt#9igjgp");
Object consume9 = startRestartGroup.consume(localViewConfiguration3);
ComposerKt.sourceInformationMarkerEnd(startRestartGroup);
ViewConfiguration viewConfiguration3 = (ViewConfiguration) consume9;
Function0<ComposeUiNode> constructor3 = ComposeUiNode.INSTANCE.getConstructor();
Function3<SkippableUpdater<ComposeUiNode>, Composer, Integer, Unit> materializerOf3 = LayoutKt.materializerOf(m492paddingVpY3zN4$default);
if (!(startRestartGroup.getApplier() instanceof Applier)) {
ComposablesKt.invalidApplier();
}
startRestartGroup.startReusableNode();
if (startRestartGroup.getInserting()) {
startRestartGroup.createNode(constructor3);
} else {
startRestartGroup.useNode();
}
startRestartGroup.disableReusing();
Composer m2273constructorimpl3 = Updater.m2273constructorimpl(startRestartGroup);
Updater.m2280setimpl(m2273constructorimpl3, rememberBoxMeasurePolicy2, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
Updater.m2280setimpl(m2273constructorimpl3, density3, ComposeUiNode.INSTANCE.getSetDensity());
Updater.m2280setimpl(m2273constructorimpl3, layoutDirection3, ComposeUiNode.INSTANCE.getSetLayoutDirection());
Updater.m2280setimpl(m2273constructorimpl3, viewConfiguration3, ComposeUiNode.INSTANCE.getSetViewConfiguration());
startRestartGroup.enableReusing();
materializerOf3.invoke(SkippableUpdater.m2264boximpl(SkippableUpdater.m2265constructorimpl(startRestartGroup)), startRestartGroup, 0);
startRestartGroup.startReplaceableGroup(2058660585);
ComposerKt.sourceInformationMarkerStart(startRestartGroup, -1253629305, "C72@3384L9:Box.kt#2w3rfo");
BoxScopeInstance boxScopeInstance2 = BoxScopeInstance.INSTANCE;
ComposerKt.sourceInformationMarkerStart(startRestartGroup, 1248851650, "C448@19326L7:NavigationBar.kt#uh7d8r");
function24.invoke(startRestartGroup, Integer.valueOf((i2 >> 9) & 14));
ComposerKt.sourceInformationMarkerEnd(startRestartGroup);
ComposerKt.sourceInformationMarkerEnd(startRestartGroup);
startRestartGroup.endReplaceableGroup();
startRestartGroup.endNode();
startRestartGroup.endReplaceableGroup();
startRestartGroup.endReplaceableGroup();
}
startRestartGroup.endReplaceableGroup();
ComposerKt.sourceInformationMarkerEnd(startRestartGroup);
startRestartGroup.endReplaceableGroup();
startRestartGroup.endNode();
startRestartGroup.endReplaceableGroup();
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventEnd();
}
} else {
startRestartGroup.skipToGroupEnd();
}
ScopeUpdateScope endRestartGroup = startRestartGroup.endRestartGroup();
if (endRestartGroup == null) {
return;
}
endRestartGroup.updateScope(new Function2<Composer, Integer, Unit>() { // from class: androidx.compose.material3.NavigationBarKt$NavigationBarItemBaselineLayout$3
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(2);
}
@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 i3) {
NavigationBarKt.NavigationBarItemBaselineLayout(function2, function22, function23, function24, z, f, composer2, RecomposeScopeImplKt.updateChangedFlags(i | 1));
}
});
}
/* JADX INFO: Access modifiers changed from: private */
/* renamed from: placeIcon-X9ElhV4, reason: not valid java name */
public static final MeasureResult m1304placeIconX9ElhV4(MeasureScope measureScope, final Placeable placeable, final Placeable placeable2, final Placeable placeable3, long j) {
final int m4839getMaxWidthimpl = Constraints.m4839getMaxWidthimpl(j);
final int m4838getMaxHeightimpl = Constraints.m4838getMaxHeightimpl(j);
final int width = (m4839getMaxWidthimpl - placeable.getWidth()) / 2;
final int height = (m4838getMaxHeightimpl - placeable.getHeight()) / 2;
final int width2 = (m4839getMaxWidthimpl - placeable2.getWidth()) / 2;
final int height2 = (m4838getMaxHeightimpl - placeable2.getHeight()) / 2;
return MeasureScope.layout$default(measureScope, m4839getMaxWidthimpl, m4838getMaxHeightimpl, null, new Function1<Placeable.PlacementScope, Unit>() { // from class: androidx.compose.material3.NavigationBarKt$placeIcon$1
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(1);
}
@Override // kotlin.jvm.functions.Function1
public /* bridge */ /* synthetic */ Unit invoke(Placeable.PlacementScope placementScope) {
invoke2(placementScope);
return Unit.INSTANCE;
}
/* renamed from: invoke, reason: avoid collision after fix types in other method */
public final void invoke2(Placeable.PlacementScope layout) {
Intrinsics.checkNotNullParameter(layout, "$this$layout");
Placeable placeable4 = Placeable.this;
if (placeable4 != null) {
Placeable.PlacementScope.placeRelative$default(layout, placeable4, (m4839getMaxWidthimpl - placeable4.getWidth()) / 2, (m4838getMaxHeightimpl - placeable4.getHeight()) / 2, 0.0f, 4, null);
}
Placeable.PlacementScope.placeRelative$default(layout, placeable, width, height, 0.0f, 4, null);
Placeable.PlacementScope.placeRelative$default(layout, placeable2, width2, height2, 0.0f, 4, null);
}
}, 4, null);
}
/* JADX INFO: Access modifiers changed from: private */
/* renamed from: placeLabelAndIcon-zUg2_y0, reason: not valid java name */
public static final MeasureResult m1305placeLabelAndIconzUg2_y0(final MeasureScope measureScope, final Placeable placeable, final Placeable placeable2, final Placeable placeable3, final Placeable placeable4, long j, final boolean z, final float f) {
int m4838getMaxHeightimpl = Constraints.m4838getMaxHeightimpl(j);
int height = m4838getMaxHeightimpl - placeable.getHeight();
float f2 = NavigationBarItemVerticalPadding;
final int i = height - measureScope.mo329roundToPx0680j_4(f2);
final int i2 = measureScope.mo329roundToPx0680j_4(f2);
final int roundToInt = MathKt.roundToInt(((z ? i2 : (m4838getMaxHeightimpl - placeable2.getHeight()) / 2) - i2) * (1 - f));
final int m4839getMaxWidthimpl = Constraints.m4839getMaxWidthimpl(j);
final int width = (m4839getMaxWidthimpl - placeable.getWidth()) / 2;
final int width2 = (m4839getMaxWidthimpl - placeable2.getWidth()) / 2;
final int width3 = (m4839getMaxWidthimpl - placeable3.getWidth()) / 2;
final int i3 = i2 - measureScope.mo329roundToPx0680j_4(IndicatorVerticalPadding);
return MeasureScope.layout$default(measureScope, m4839getMaxWidthimpl, m4838getMaxHeightimpl, null, new Function1<Placeable.PlacementScope, Unit>() { // from class: androidx.compose.material3.NavigationBarKt$placeLabelAndIcon$1
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(1);
}
@Override // kotlin.jvm.functions.Function1
public /* bridge */ /* synthetic */ Unit invoke(Placeable.PlacementScope placementScope) {
invoke2(placementScope);
return Unit.INSTANCE;
}
/* renamed from: invoke, reason: avoid collision after fix types in other method */
public final void invoke2(Placeable.PlacementScope layout) {
float f3;
Intrinsics.checkNotNullParameter(layout, "$this$layout");
Placeable placeable5 = Placeable.this;
if (placeable5 != null) {
int i4 = m4839getMaxWidthimpl;
int i5 = i2;
MeasureScope measureScope2 = measureScope;
int i6 = roundToInt;
int width4 = (i4 - placeable5.getWidth()) / 2;
f3 = NavigationBarKt.IndicatorVerticalPadding;
Placeable.PlacementScope.placeRelative$default(layout, placeable5, width4, i6 + (i5 - measureScope2.mo329roundToPx0680j_4(f3)), 0.0f, 4, null);
}
if (z || f != 0.0f) {
Placeable.PlacementScope.placeRelative$default(layout, placeable, width, i + roundToInt, 0.0f, 4, null);
}
Placeable.PlacementScope.placeRelative$default(layout, placeable2, width2, i2 + roundToInt, 0.0f, 4, null);
Placeable.PlacementScope.placeRelative$default(layout, placeable3, width3, i3 + roundToInt, 0.0f, 4, null);
}
}, 4, null);
}
static {
float f = 2;
IndicatorHorizontalPadding = Dp.m4883constructorimpl(Dp.m4883constructorimpl(NavigationBarTokens.INSTANCE.m1974getActiveIndicatorWidthD9Ej5fM() - NavigationBarTokens.INSTANCE.m1977getIconSizeD9Ej5fM()) / f);
IndicatorVerticalPadding = Dp.m4883constructorimpl(Dp.m4883constructorimpl(NavigationBarTokens.INSTANCE.m1973getActiveIndicatorHeightD9Ej5fM() - NavigationBarTokens.INSTANCE.m1977getIconSizeD9Ej5fM()) / f);
}
/* JADX INFO: Access modifiers changed from: private */
public static final float NavigationBarItem$lambda$9$lambda$6(State<Float> state) {
return state.getValue().floatValue();
}
}