mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-17 03:17:17 +01:00
104 lines
6.6 KiB
Java
104 lines
6.6 KiB
Java
package androidx.compose.animation;
|
|
|
|
import androidx.compose.animation.core.Transition;
|
|
import androidx.compose.runtime.Composable;
|
|
import androidx.compose.runtime.Composer;
|
|
import androidx.compose.runtime.ComposerKt;
|
|
import androidx.compose.ui.ComposedModifierKt;
|
|
import androidx.compose.ui.Modifier;
|
|
import androidx.compose.ui.platform.InspectableValueKt;
|
|
import androidx.compose.ui.platform.InspectorInfo;
|
|
import kotlin.Metadata;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.functions.Function3;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import okio.Buffer$$ExternalSyntheticBUOutline0;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\bf\u0018\u00002\u00020\u0001J*\u0010\u0007\u001a\u00020\b*\u00020\b2\b\b\u0002\u0010\t\u001a\u00020\n2\b\b\u0002\u0010\u000b\u001a\u00020\f2\b\b\u0002\u0010\r\u001a\u00020\u000eH\u0016R\u0018\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006ø\u0001\u0000\u0082\u0002\u0006\n\u0004\b!0\u0001¨\u0006\u000fÀ\u0006\u0003"}, d2 = {"Landroidx/compose/animation/AnimatedVisibilityScope;", "", "transition", "Landroidx/compose/animation/core/Transition;", "Landroidx/compose/animation/EnterExitState;", "getTransition", "()Landroidx/compose/animation/core/Transition;", "animateEnterExit", "Landroidx/compose/ui/Modifier;", "enter", "Landroidx/compose/animation/EnterTransition;", "exit", "Landroidx/compose/animation/ExitTransition;", "label", "", "animation_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
@SourceDebugExtension({"SMAP\nAnimatedVisibility.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AnimatedVisibility.kt\nandroidx/compose/animation/AnimatedVisibilityScope\n+ 2 InspectableValue.kt\nandroidx/compose/ui/platform/InspectableValueKt\n*L\n1#1,885:1\n135#2:886\n*S KotlinDebug\n*F\n+ 1 AnimatedVisibility.kt\nandroidx/compose/animation/AnimatedVisibilityScope\n*L\n662#1:886\n*E\n"})
|
|
/* loaded from: classes.dex */
|
|
public interface AnimatedVisibilityScope {
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
|
public static final class DefaultImpls {
|
|
@Deprecated
|
|
@NotNull
|
|
public static Modifier animateEnterExit(@NotNull AnimatedVisibilityScope animatedVisibilityScope, @NotNull Modifier modifier, @NotNull EnterTransition enterTransition, @NotNull ExitTransition exitTransition, @NotNull String str) {
|
|
return AnimatedVisibilityScope.super.animateEnterExit(modifier, enterTransition, exitTransition, str);
|
|
}
|
|
}
|
|
|
|
static /* synthetic */ Modifier animateEnterExit$default(AnimatedVisibilityScope animatedVisibilityScope, Modifier modifier, EnterTransition enterTransition, ExitTransition exitTransition, String str, int i, Object obj) {
|
|
if (obj != null) {
|
|
Buffer$$ExternalSyntheticBUOutline0.m$1("Super calls with default arguments not supported in this target, function: animateEnterExit");
|
|
return null;
|
|
}
|
|
if ((i & 1) != 0) {
|
|
enterTransition = EnterExitTransitionKt.fadeIn$default(null, 0.0f, 3, null);
|
|
}
|
|
if ((i & 2) != 0) {
|
|
exitTransition = EnterExitTransitionKt.fadeOut$default(null, 0.0f, 3, null);
|
|
}
|
|
if ((i & 4) != 0) {
|
|
str = "animateEnterExit";
|
|
}
|
|
return animatedVisibilityScope.animateEnterExit(modifier, enterTransition, exitTransition, str);
|
|
}
|
|
|
|
@NotNull
|
|
default Modifier animateEnterExit(@NotNull Modifier modifier, @NotNull final EnterTransition enterTransition, @NotNull final ExitTransition exitTransition, @NotNull final String str) {
|
|
return ComposedModifierKt.composed(modifier, InspectableValueKt.isDebugInspectorInfoEnabled() ? new Function1<InspectorInfo, Unit>() { // from class: androidx.compose.animation.AnimatedVisibilityScope$animateEnterExit$$inlined$debugInspectorInfo$1
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
{
|
|
super(1);
|
|
}
|
|
|
|
/* renamed from: invoke, reason: avoid collision after fix types in other method */
|
|
public final void invoke2(@NotNull InspectorInfo inspectorInfo) {
|
|
inspectorInfo.setName("animateEnterExit");
|
|
inspectorInfo.getProperties().set("enter", EnterTransition.this);
|
|
inspectorInfo.getProperties().set("exit", exitTransition);
|
|
inspectorInfo.getProperties().set("label", str);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(InspectorInfo inspectorInfo) {
|
|
invoke2(inspectorInfo);
|
|
return Unit.INSTANCE;
|
|
}
|
|
} : InspectableValueKt.getNoInspectorInfo(), new Function3<Modifier, Composer, Integer, Modifier>() { // from class: androidx.compose.animation.AnimatedVisibilityScope$animateEnterExit$2
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
{
|
|
super(3);
|
|
}
|
|
|
|
@Composable
|
|
@NotNull
|
|
public final Modifier invoke(@NotNull Modifier modifier2, @Nullable Composer composer, int i) {
|
|
composer.startReplaceGroup(1840112047);
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventStart(1840112047, i, -1, "androidx.compose.animation.AnimatedVisibilityScope.animateEnterExit.<anonymous> (AnimatedVisibility.kt:668)");
|
|
}
|
|
Modifier then = modifier2.then(EnterExitTransitionKt.createModifier(AnimatedVisibilityScope.this.getTransition(), enterTransition, exitTransition, null, str, composer, 0, 4));
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventEnd();
|
|
}
|
|
composer.endReplaceGroup();
|
|
return then;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function3
|
|
public /* bridge */ /* synthetic */ Modifier invoke(Modifier modifier2, Composer composer, Integer num) {
|
|
return invoke(modifier2, composer, num.intValue());
|
|
}
|
|
});
|
|
}
|
|
|
|
@NotNull
|
|
Transition<EnterExitState> getTransition();
|
|
}
|