mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 01:52:26 -06:00
144 lines
9.2 KiB
Java
144 lines
9.2 KiB
Java
package androidx.compose.material3;
|
|
|
|
import androidx.compose.animation.core.AnimateAsStateKt;
|
|
import androidx.compose.animation.core.AnimationSpecKt;
|
|
import androidx.compose.animation.core.EasingKt;
|
|
import androidx.compose.foundation.layout.OffsetKt;
|
|
import androidx.compose.foundation.layout.SizeKt;
|
|
import androidx.compose.material3.tokens.PrimaryNavigationTabTokens;
|
|
import androidx.compose.runtime.Composer;
|
|
import androidx.compose.runtime.ComposerKt;
|
|
import androidx.compose.runtime.State;
|
|
import androidx.compose.ui.Alignment;
|
|
import androidx.compose.ui.ComposedModifierKt;
|
|
import androidx.compose.ui.Modifier;
|
|
import androidx.compose.ui.platform.InspectableValueKt;
|
|
import androidx.compose.ui.platform.InspectorInfo;
|
|
import androidx.compose.ui.unit.Dp;
|
|
import androidx.recyclerview.widget.ItemTouchHelper;
|
|
import io.sentry.protocol.ViewHierarchyNode;
|
|
import kotlin.Metadata;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.functions.Function3;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: TabRow.kt */
|
|
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\bÇ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J3\u0010\t\u001a\u00020\n2\b\b\u0002\u0010\u000b\u001a\u00020\f2\b\b\u0002\u0010\r\u001a\u00020\u000e2\b\b\u0002\u0010\u000f\u001a\u00020\u0004H\u0007ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b\u0010\u0010\u0011J\u0012\u0010\u0012\u001a\u00020\f*\u00020\f2\u0006\u0010\u0013\u001a\u00020\u0014R\u001a\u0010\u0003\u001a\u00020\u00048Gø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006R\u001a\u0010\u0007\u001a\u00020\u00048Gø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0006\u001a\u0004\b\b\u0010\u0006\u0082\u0002\u000f\n\u0002\b\u0019\n\u0005\b¡\u001e0\u0001\n\u0002\b!¨\u0006\u0015"}, d2 = {"Landroidx/compose/material3/TabRowDefaults;", "", "()V", "containerColor", "Landroidx/compose/ui/graphics/Color;", "getContainerColor", "(Landroidx/compose/runtime/Composer;I)J", "contentColor", "getContentColor", "Indicator", "", "modifier", "Landroidx/compose/ui/Modifier;", ViewHierarchyNode.JsonKeys.HEIGHT, "Landroidx/compose/ui/unit/Dp;", "color", "Indicator-9IZ8Weo", "(Landroidx/compose/ui/Modifier;FJLandroidx/compose/runtime/Composer;II)V", "tabIndicatorOffset", "currentTabPosition", "Landroidx/compose/material3/TabPosition;", "material3_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class TabRowDefaults {
|
|
public static final int $stable = 0;
|
|
public static final TabRowDefaults INSTANCE = new TabRowDefaults();
|
|
|
|
private TabRowDefaults() {
|
|
}
|
|
|
|
public final long getContainerColor(Composer composer, int i) {
|
|
composer.startReplaceableGroup(-2026555673);
|
|
ComposerKt.sourceInformation(composer, "C367@16033L9:TabRow.kt#uh7d8r");
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventStart(-2026555673, i, -1, "androidx.compose.material3.TabRowDefaults.<get-containerColor> (TabRow.kt:366)");
|
|
}
|
|
long color = ColorSchemeKt.toColor(PrimaryNavigationTabTokens.INSTANCE.getContainerColor(), composer, 6);
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventEnd();
|
|
}
|
|
composer.endReplaceableGroup();
|
|
return color;
|
|
}
|
|
|
|
public final long getContentColor(Composer composer, int i) {
|
|
composer.startReplaceableGroup(1163072359);
|
|
ComposerKt.sourceInformation(composer, "C371@16195L9:TabRow.kt#uh7d8r");
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventStart(1163072359, i, -1, "androidx.compose.material3.TabRowDefaults.<get-contentColor> (TabRow.kt:370)");
|
|
}
|
|
long color = ColorSchemeKt.toColor(PrimaryNavigationTabTokens.INSTANCE.getActiveLabelTextColor(), composer, 6);
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventEnd();
|
|
}
|
|
composer.endReplaceableGroup();
|
|
return color;
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0049 */
|
|
/* JADX WARN: Removed duplicated region for block: B:23:0x00e7 */
|
|
/* JADX WARN: Removed duplicated region for block: B:26:? A[RETURN, SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:35:0x00ba */
|
|
/* JADX WARN: Removed duplicated region for block: B:38:0x00dd */
|
|
/* JADX WARN: Removed duplicated region for block: B:40:0x008c */
|
|
/* JADX WARN: Removed duplicated region for block: B:42:0x0094 */
|
|
/* JADX WARN: Removed duplicated region for block: B:45:0x00a0 */
|
|
/* JADX WARN: Removed duplicated region for block: B:46:0x009b */
|
|
/* JADX WARN: Removed duplicated region for block: B:47:0x0091 */
|
|
/* JADX WARN: Removed duplicated region for block: B:50:0x005e */
|
|
/* renamed from: Indicator-9IZ8Weo, reason: not valid java name */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void m1517Indicator9IZ8Weo(androidx.compose.ui.Modifier r14, float r15, long r16, androidx.compose.runtime.Composer r18, final int r19, final int r20) {
|
|
/*
|
|
Method dump skipped, instructions count: 248
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.compose.material3.TabRowDefaults.m1517Indicator9IZ8Weo(androidx.compose.ui.Modifier, float, long, androidx.compose.runtime.Composer, int, int):void");
|
|
}
|
|
|
|
public final Modifier tabIndicatorOffset(Modifier modifier, final TabPosition currentTabPosition) {
|
|
Intrinsics.checkNotNullParameter(modifier, "<this>");
|
|
Intrinsics.checkNotNullParameter(currentTabPosition, "currentTabPosition");
|
|
return ComposedModifierKt.composed(modifier, InspectableValueKt.isDebugInspectorInfoEnabled() ? new Function1<InspectorInfo, Unit>() { // from class: androidx.compose.material3.TabRowDefaults$tabIndicatorOffset$$inlined$debugInspectorInfo$1
|
|
{
|
|
super(1);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(InspectorInfo inspectorInfo) {
|
|
invoke2(inspectorInfo);
|
|
return Unit.INSTANCE;
|
|
}
|
|
|
|
/* renamed from: invoke, reason: avoid collision after fix types in other method */
|
|
public final void invoke2(InspectorInfo inspectorInfo) {
|
|
Intrinsics.checkNotNullParameter(inspectorInfo, "$this$null");
|
|
inspectorInfo.setName("tabIndicatorOffset");
|
|
inspectorInfo.setValue(TabPosition.this);
|
|
}
|
|
} : InspectableValueKt.getNoInspectorInfo(), new Function3<Modifier, Composer, Integer, Modifier>() { // from class: androidx.compose.material3.TabRowDefaults$tabIndicatorOffset$2
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
{
|
|
super(3);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function3
|
|
public /* bridge */ /* synthetic */ Modifier invoke(Modifier modifier2, Composer composer, Integer num) {
|
|
return invoke(modifier2, composer, num.intValue());
|
|
}
|
|
|
|
public final Modifier invoke(Modifier composed, Composer composer, int i) {
|
|
Intrinsics.checkNotNullParameter(composed, "$this$composed");
|
|
composer.startReplaceableGroup(-1541271084);
|
|
ComposerKt.sourceInformation(composer, "C411@17597L165,415@17794L164:TabRow.kt#uh7d8r");
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventStart(-1541271084, i, -1, "androidx.compose.material3.TabRowDefaults.tabIndicatorOffset.<anonymous> (TabRow.kt:410)");
|
|
}
|
|
State<Dp> m90animateDpAsStateAjpBEmI = AnimateAsStateKt.m90animateDpAsStateAjpBEmI(TabPosition.this.getWidth(), AnimationSpecKt.tween$default(ItemTouchHelper.Callback.DEFAULT_SWIPE_ANIMATION_DURATION, 0, EasingKt.getFastOutSlowInEasing(), 2, null), null, null, composer, 0, 12);
|
|
Modifier m542width3ABfNKs = SizeKt.m542width3ABfNKs(OffsetKt.m451offsetVpY3zN4$default(SizeKt.wrapContentSize$default(SizeKt.fillMaxWidth$default(composed, 0.0f, 1, null), Alignment.INSTANCE.getBottomStart(), false, 2, null), invoke$lambda$1(AnimateAsStateKt.m90animateDpAsStateAjpBEmI(TabPosition.this.getLeft(), AnimationSpecKt.tween$default(ItemTouchHelper.Callback.DEFAULT_SWIPE_ANIMATION_DURATION, 0, EasingKt.getFastOutSlowInEasing(), 2, null), null, null, composer, 0, 12)), 0.0f, 2, null), invoke$lambda$0(m90animateDpAsStateAjpBEmI));
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventEnd();
|
|
}
|
|
composer.endReplaceableGroup();
|
|
return m542width3ABfNKs;
|
|
}
|
|
|
|
private static final float invoke$lambda$0(State<Dp> state) {
|
|
return state.getValue().m4897unboximpl();
|
|
}
|
|
|
|
private static final float invoke$lambda$1(State<Dp> state) {
|
|
return state.getValue().m4897unboximpl();
|
|
}
|
|
});
|
|
}
|
|
}
|