mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-30 11:02:31 -06:00
147 lines
10 KiB
Java
147 lines
10 KiB
Java
|
package androidx.compose.material3;
|
||
|
|
||
|
import androidx.compose.animation.core.Animatable;
|
||
|
import androidx.compose.animation.core.VectorConvertersKt;
|
||
|
import androidx.compose.foundation.interaction.FocusInteraction;
|
||
|
import androidx.compose.foundation.interaction.HoverInteraction;
|
||
|
import androidx.compose.foundation.interaction.Interaction;
|
||
|
import androidx.compose.foundation.interaction.InteractionSource;
|
||
|
import androidx.compose.foundation.interaction.PressInteraction;
|
||
|
import androidx.compose.runtime.Composer;
|
||
|
import androidx.compose.runtime.ComposerKt;
|
||
|
import androidx.compose.runtime.EffectsKt;
|
||
|
import androidx.compose.runtime.SnapshotStateKt;
|
||
|
import androidx.compose.runtime.State;
|
||
|
import androidx.compose.runtime.snapshots.SnapshotStateList;
|
||
|
import androidx.compose.ui.unit.Dp;
|
||
|
import java.util.List;
|
||
|
import kotlin.Metadata;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.collections.CollectionsKt;
|
||
|
import kotlin.coroutines.Continuation;
|
||
|
import kotlin.jvm.functions.Function2;
|
||
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||
|
import kotlin.jvm.internal.Intrinsics;
|
||
|
import kotlinx.coroutines.CoroutineScope;
|
||
|
|
||
|
/* compiled from: FloatingActionButton.kt */
|
||
|
@Metadata(d1 = {"\u00000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0005\b\u0017\u0018\u00002\u00020\u0001B*\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0003\u0012\u0006\u0010\u0006\u001a\u00020\u0003ø\u0001\u0000¢\u0006\u0002\u0010\u0007J\u001e\u0010\t\u001a\b\u0012\u0004\u0012\u00020\u00030\n2\u0006\u0010\u000b\u001a\u00020\fH\u0003ø\u0001\u0000¢\u0006\u0002\u0010\rJ\u0013\u0010\u000e\u001a\u00020\u000f2\b\u0010\u0010\u001a\u0004\u0018\u00010\u0001H\u0096\u0002J\b\u0010\u0011\u001a\u00020\u0012H\u0016J \u0010\u0013\u001a\b\u0012\u0004\u0012\u00020\u00030\n2\u0006\u0010\u000b\u001a\u00020\fH\u0001ø\u0001\u0000¢\u0006\u0004\b\u0014\u0010\rJ \u0010\u0015\u001a\b\u0012\u0004\u0012\u00020\u00030\n2\u0006\u0010\u000b\u001a\u00020\fH\u0001ø\u0001\u0000¢\u0006\u0004\b\u0016\u0010\rR\u0019\u0010\u0002\u001a\u00020\u0003X\u0082\u0004ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0004\n\u0002\u0010\bR\u0019\u0010\u0005\u001a\u00020\u0003X\u0082\u0004ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0004\n\u0002\u0010\bR\u0019\u0010\u0006\u001a\u00020\u0003X\u0082\u0004ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0004\n\u0002\u0010\bR\u0019\u0010\u0004\u001a\u00020\u0003X\u0082\u0004ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0004\n\u0002\u0010\b\u0082\u0002\u000f\n\u0002\b\u0019\n\u0005\b¡\u001e0\u0001\n\u0002\b!¨\u0006\u0017"}, d2 = {"Landroidx/compose/material3/FloatingActionButtonElevation;", "", "defaultElevation", "Landroidx/compose/ui/unit/Dp;", "pressedElevation", "focusedElevation", "hoveredElevation", "(FFFFLkotlin/jvm/internal/DefaultConstructorMarker;)V", "F", "animateElevation", "Landroidx/compose/runtime/State;", "interactionSource", "Landroidx/compose/foundation/interaction/InteractionSource;", "(Landroidx/compose/foundation/interaction/InteractionSource;Landroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State;", "equals", "", "other", "hashCode", "", "shadowElevation", "shadowElevation$material3_release", "tonalElevation", "tonalElevation$material3_release", "material3_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||
|
/* loaded from: classes.dex */
|
||
|
public class FloatingActionButtonElevation {
|
||
|
public static final int $stable = 0;
|
||
|
private final float defaultElevation;
|
||
|
private final float focusedElevation;
|
||
|
private final float hoveredElevation;
|
||
|
private final float pressedElevation;
|
||
|
|
||
|
public /* synthetic */ FloatingActionButtonElevation(float f, float f2, float f3, float f4, DefaultConstructorMarker defaultConstructorMarker) {
|
||
|
this(f, f2, f3, f4);
|
||
|
}
|
||
|
|
||
|
private FloatingActionButtonElevation(float f, float f2, float f3, float f4) {
|
||
|
this.defaultElevation = f;
|
||
|
this.pressedElevation = f2;
|
||
|
this.focusedElevation = f3;
|
||
|
this.hoveredElevation = f4;
|
||
|
}
|
||
|
|
||
|
public final State<Dp> shadowElevation$material3_release(InteractionSource interactionSource, Composer composer, int i) {
|
||
|
Intrinsics.checkNotNullParameter(interactionSource, "interactionSource");
|
||
|
composer.startReplaceableGroup(-424810125);
|
||
|
ComposerKt.sourceInformation(composer, "C(shadowElevation)496@24108L55:FloatingActionButton.kt#uh7d8r");
|
||
|
if (ComposerKt.isTraceInProgress()) {
|
||
|
ComposerKt.traceEventStart(-424810125, i, -1, "androidx.compose.material3.FloatingActionButtonElevation.shadowElevation (FloatingActionButton.kt:495)");
|
||
|
}
|
||
|
State<Dp> animateElevation = animateElevation(interactionSource, composer, (i & 112) | (i & 14));
|
||
|
if (ComposerKt.isTraceInProgress()) {
|
||
|
ComposerKt.traceEventEnd();
|
||
|
}
|
||
|
composer.endReplaceableGroup();
|
||
|
return animateElevation;
|
||
|
}
|
||
|
|
||
|
public final State<Dp> tonalElevation$material3_release(InteractionSource interactionSource, Composer composer, int i) {
|
||
|
Intrinsics.checkNotNullParameter(interactionSource, "interactionSource");
|
||
|
composer.startReplaceableGroup(-550096911);
|
||
|
ComposerKt.sourceInformation(composer, "C(tonalElevation)501@24285L55:FloatingActionButton.kt#uh7d8r");
|
||
|
if (ComposerKt.isTraceInProgress()) {
|
||
|
ComposerKt.traceEventStart(-550096911, i, -1, "androidx.compose.material3.FloatingActionButtonElevation.tonalElevation (FloatingActionButton.kt:500)");
|
||
|
}
|
||
|
State<Dp> animateElevation = animateElevation(interactionSource, composer, (i & 112) | (i & 14));
|
||
|
if (ComposerKt.isTraceInProgress()) {
|
||
|
ComposerKt.traceEventEnd();
|
||
|
}
|
||
|
composer.endReplaceableGroup();
|
||
|
return animateElevation;
|
||
|
}
|
||
|
|
||
|
private final State<Dp> animateElevation(InteractionSource interactionSource, Composer composer, int i) {
|
||
|
float f;
|
||
|
composer.startReplaceableGroup(-1845106002);
|
||
|
ComposerKt.sourceInformation(composer, "C(animateElevation)506@24475L46,508@24565L1077,508@24531L1111,545@25986L51,547@26047L499:FloatingActionButton.kt#uh7d8r");
|
||
|
if (ComposerKt.isTraceInProgress()) {
|
||
|
ComposerKt.traceEventStart(-1845106002, i, -1, "androidx.compose.material3.FloatingActionButtonElevation.animateElevation (FloatingActionButton.kt:505)");
|
||
|
}
|
||
|
composer.startReplaceableGroup(-492369756);
|
||
|
ComposerKt.sourceInformation(composer, "CC(remember):Composables.kt#9igjgp");
|
||
|
Object rememberedValue = composer.rememberedValue();
|
||
|
if (rememberedValue == Composer.INSTANCE.getEmpty()) {
|
||
|
rememberedValue = SnapshotStateKt.mutableStateListOf();
|
||
|
composer.updateRememberedValue(rememberedValue);
|
||
|
}
|
||
|
composer.endReplaceableGroup();
|
||
|
SnapshotStateList snapshotStateList = (SnapshotStateList) rememberedValue;
|
||
|
int i2 = i & 14;
|
||
|
composer.startReplaceableGroup(511388516);
|
||
|
ComposerKt.sourceInformation(composer, "CC(remember)P(1,2):Composables.kt#9igjgp");
|
||
|
boolean changed = composer.changed(interactionSource) | composer.changed(snapshotStateList);
|
||
|
Object rememberedValue2 = composer.rememberedValue();
|
||
|
if (changed || rememberedValue2 == Composer.INSTANCE.getEmpty()) {
|
||
|
rememberedValue2 = (Function2) new FloatingActionButtonElevation$animateElevation$1$1(interactionSource, snapshotStateList, null);
|
||
|
composer.updateRememberedValue(rememberedValue2);
|
||
|
}
|
||
|
composer.endReplaceableGroup();
|
||
|
EffectsKt.LaunchedEffect(interactionSource, (Function2<? super CoroutineScope, ? super Continuation<? super Unit>, ? extends Object>) rememberedValue2, composer, i2 | 64);
|
||
|
Interaction interaction = (Interaction) CollectionsKt.lastOrNull((List) snapshotStateList);
|
||
|
if (interaction instanceof PressInteraction.Press) {
|
||
|
f = this.pressedElevation;
|
||
|
} else if (interaction instanceof HoverInteraction.Enter) {
|
||
|
f = this.hoveredElevation;
|
||
|
} else {
|
||
|
f = interaction instanceof FocusInteraction.Focus ? this.focusedElevation : this.defaultElevation;
|
||
|
}
|
||
|
float f2 = f;
|
||
|
composer.startReplaceableGroup(-492369756);
|
||
|
ComposerKt.sourceInformation(composer, "CC(remember):Composables.kt#9igjgp");
|
||
|
Object rememberedValue3 = composer.rememberedValue();
|
||
|
if (rememberedValue3 == Composer.INSTANCE.getEmpty()) {
|
||
|
rememberedValue3 = new Animatable(Dp.m4881boximpl(f2), VectorConvertersKt.getVectorConverter(Dp.INSTANCE), null, null, 12, null);
|
||
|
composer.updateRememberedValue(rememberedValue3);
|
||
|
}
|
||
|
composer.endReplaceableGroup();
|
||
|
Animatable animatable = (Animatable) rememberedValue3;
|
||
|
EffectsKt.LaunchedEffect(Dp.m4881boximpl(f2), new FloatingActionButtonElevation$animateElevation$2(animatable, this, f2, interaction, null), composer, 64);
|
||
|
State<Dp> asState = animatable.asState();
|
||
|
if (ComposerKt.isTraceInProgress()) {
|
||
|
ComposerKt.traceEventEnd();
|
||
|
}
|
||
|
composer.endReplaceableGroup();
|
||
|
return asState;
|
||
|
}
|
||
|
|
||
|
public boolean equals(Object other) {
|
||
|
if (this == other) {
|
||
|
return true;
|
||
|
}
|
||
|
if (other == null || !(other instanceof FloatingActionButtonElevation)) {
|
||
|
return false;
|
||
|
}
|
||
|
FloatingActionButtonElevation floatingActionButtonElevation = (FloatingActionButtonElevation) other;
|
||
|
return Dp.m4888equalsimpl0(this.defaultElevation, floatingActionButtonElevation.defaultElevation) && Dp.m4888equalsimpl0(this.pressedElevation, floatingActionButtonElevation.pressedElevation) && Dp.m4888equalsimpl0(this.focusedElevation, floatingActionButtonElevation.focusedElevation) && Dp.m4888equalsimpl0(this.hoveredElevation, floatingActionButtonElevation.hoveredElevation);
|
||
|
}
|
||
|
|
||
|
public int hashCode() {
|
||
|
return (((((Dp.m4889hashCodeimpl(this.defaultElevation) * 31) + Dp.m4889hashCodeimpl(this.pressedElevation)) * 31) + Dp.m4889hashCodeimpl(this.focusedElevation)) * 31) + Dp.m4889hashCodeimpl(this.hoveredElevation);
|
||
|
}
|
||
|
}
|