mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 08:32:38 -06:00
148 lines
13 KiB
Java
148 lines
13 KiB
Java
|
package androidx.compose.ui;
|
||
|
|
||
|
import androidx.compose.runtime.Composer;
|
||
|
import androidx.compose.ui.Modifier;
|
||
|
import androidx.compose.ui.platform.InspectableValueKt;
|
||
|
import androidx.compose.ui.platform.InspectorInfo;
|
||
|
import kotlin.Deprecated;
|
||
|
import kotlin.DeprecationLevel;
|
||
|
import kotlin.Metadata;
|
||
|
import kotlin.ReplaceWith;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.jvm.functions.Function1;
|
||
|
import kotlin.jvm.functions.Function2;
|
||
|
import kotlin.jvm.functions.Function3;
|
||
|
import kotlin.jvm.internal.Intrinsics;
|
||
|
import kotlin.jvm.internal.TypeIntrinsics;
|
||
|
|
||
|
/* compiled from: ComposedModifier.kt */
|
||
|
@Metadata(d1 = {"\u0000@\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0006\n\u0002\u0010\u0011\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\u001aH\u0010\u0000\u001a\u00020\u0001*\u00020\u00012\u0019\b\u0002\u0010\u0002\u001a\u0013\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00050\u0003¢\u0006\u0002\b\u00062\u001c\u0010\u0007\u001a\u0018\u0012\u0004\u0012\u00020\u0001\u0012\u0004\u0012\u00020\u00010\u0003¢\u0006\u0002\b\b¢\u0006\u0002\b\u0006¢\u0006\u0002\u0010\t\u001a\\\u0010\u0000\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\n\u001a\u00020\u000b2\b\u0010\f\u001a\u0004\u0018\u00010\r2\u0019\b\u0002\u0010\u0002\u001a\u0013\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00050\u0003¢\u0006\u0002\b\u00062\u001c\u0010\u0007\u001a\u0018\u0012\u0004\u0012\u00020\u0001\u0012\u0004\u0012\u00020\u00010\u0003¢\u0006\u0002\b\b¢\u0006\u0002\b\u0006H\u0007¢\u0006\u0002\u0010\u000e\u001af\u0010\u0000\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\n\u001a\u00020\u000b2\b\u0010\f\u001a\u0004\u0018\u00010\r2\b\u0010\u000f\u001a\u0004\u0018\u00010\r2\u0019\b\u0002\u0010\u0002\u001a\u0013\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00050\u0003¢\u0006\u0002\b\u00062\u001c\u0010\u0007\u001a\u0018\u0012\u0004\u0012\u00020\u0001\u0012\u0004\u0012\u00020\u00010\u0003¢\u0006\u0002\b\b¢\u0006\u0002\b\u0006H\u0007¢\u0006\u0002\u0010\u0010\u001ap\u0010\u0000\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\n\u001a\u00020\u000b2\b\u0010\f\u001a\u0004\u0018\u00010\r2\b\u0010\u000f\u001a\u0004\u0018\u00010\r2\b\u0010\u0011\u001a\u0004\u0018\u00010\r2\u0019\b\u0002\u0010\u0002\u001a\u0013\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00050\u0003¢\u0006\u0002\b\u00062\u001c\u0010\u0007\u001a\u0018\u0012\u0004\u0012\u00020\u0001\u0012\u0004\u0012\u00020\u00010\u0003¢\u0006\u0002\b\b¢\u0006\u0002\b\u0006H\u0007¢\u0006\u0002\u0010\u0012\u001aj\u0010\u0000\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\n\u001a\u00020\u000b2\u0016\u0010\u0013\u001a\f\u0012\b\b\u0001\u0012\u0004\u0018\u00010\r0\u0014\"\u0004\u0018\u00010\r2\u0019\b\u0002\u0010\u0002\u001a\u0013\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00050\u0003¢\u0006\u0002\b\u00062\u001c\u0010\u0007\u001a\u0018\u0012\u0004\u0012\u00020\u0001\u0012\u0004\u0012\u00020\u00010\u0003¢\u0006\u0002\b\b¢\u0006\u0002\b\u0006H\u0007¢\u0006\u0002\u0010\u0015\u001a\u0019\u0010\u0016\u001a\u00020\u0001*\u00020\u00172\u0006\u0010\u0018\u001a\u00020\u0001H\u0007¢\u0006\u0002\b\u0019\u001a\u0019\u0010\u001a\u001a\u00020\u0001*\u00020\u00172\u0006\u0010\u0018\u001a\u00020\u0001H\u0007¢\u0006\u0002\b\u0016\u001a\u0014\u0010\u001b\u001a\u00020\u0001*\u00020\u00172\u0006\u0010\u0018\u001a\u00020\u0001H\u0000¨\u0006\u001c"}, d2 = {"composed", "Landroidx/compose/ui/Modifier;", "inspectorInfo", "Lkotlin/Function1;", "Landroidx/compose/ui/platform/InspectorInfo;", "", "Lkotlin/ExtensionFunctionType;", "factory", "Landroidx/compose/runtime/Composable;", "(Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function3;)Landroidx/compose/ui/Modifier;", "fullyQualifiedName", "", "key1", "", "(Landroidx/compose/ui/Modifier;Ljava/lang/String;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function3;)Landroidx/compose/ui/Modifier;", "key2", "(Landroidx/compose/ui/Modifier;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function3;)Landroidx/compose/ui/Modifier;", "key3", "(Landroidx/compose/ui/Modifier;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function3;)Landroidx/compose/ui/Modifier;", "keys", "", "(Landroidx/compose/ui/Modifier;Ljava/lang/String;[Ljava/lang/Object;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function3;)Landroidx/compose/ui/Modifier;", "materialize", "Landro
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class ComposedModifierKt {
|
||
|
public static /* synthetic */ Modifier composed$default(Modifier modifier, Function1 function1, Function3 function3, int i, Object obj) {
|
||
|
if ((i & 1) != 0) {
|
||
|
function1 = InspectableValueKt.getNoInspectorInfo();
|
||
|
}
|
||
|
return composed(modifier, function1, function3);
|
||
|
}
|
||
|
|
||
|
public static final Modifier composed(Modifier modifier, Function1<? super InspectorInfo, Unit> inspectorInfo, Function3<? super Modifier, ? super Composer, ? super Integer, ? extends Modifier> factory) {
|
||
|
Intrinsics.checkNotNullParameter(modifier, "<this>");
|
||
|
Intrinsics.checkNotNullParameter(inspectorInfo, "inspectorInfo");
|
||
|
Intrinsics.checkNotNullParameter(factory, "factory");
|
||
|
return modifier.then(new ComposedModifier(inspectorInfo, factory));
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ Modifier composed$default(Modifier modifier, String str, Object obj, Function1 function1, Function3 function3, int i, Object obj2) {
|
||
|
if ((i & 4) != 0) {
|
||
|
function1 = InspectableValueKt.getNoInspectorInfo();
|
||
|
}
|
||
|
return composed(modifier, str, obj, (Function1<? super InspectorInfo, Unit>) function1, (Function3<? super Modifier, ? super Composer, ? super Integer, ? extends Modifier>) function3);
|
||
|
}
|
||
|
|
||
|
public static final Modifier composed(Modifier modifier, String fullyQualifiedName, Object obj, Function1<? super InspectorInfo, Unit> inspectorInfo, Function3<? super Modifier, ? super Composer, ? super Integer, ? extends Modifier> factory) {
|
||
|
Intrinsics.checkNotNullParameter(modifier, "<this>");
|
||
|
Intrinsics.checkNotNullParameter(fullyQualifiedName, "fullyQualifiedName");
|
||
|
Intrinsics.checkNotNullParameter(inspectorInfo, "inspectorInfo");
|
||
|
Intrinsics.checkNotNullParameter(factory, "factory");
|
||
|
return modifier.then(new KeyedComposedModifier1(fullyQualifiedName, obj, inspectorInfo, factory));
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ Modifier composed$default(Modifier modifier, String str, Object obj, Object obj2, Function1 function1, Function3 function3, int i, Object obj3) {
|
||
|
if ((i & 8) != 0) {
|
||
|
function1 = InspectableValueKt.getNoInspectorInfo();
|
||
|
}
|
||
|
return composed(modifier, str, obj, obj2, function1, function3);
|
||
|
}
|
||
|
|
||
|
public static final Modifier composed(Modifier modifier, String fullyQualifiedName, Object obj, Object obj2, Function1<? super InspectorInfo, Unit> inspectorInfo, Function3<? super Modifier, ? super Composer, ? super Integer, ? extends Modifier> factory) {
|
||
|
Intrinsics.checkNotNullParameter(modifier, "<this>");
|
||
|
Intrinsics.checkNotNullParameter(fullyQualifiedName, "fullyQualifiedName");
|
||
|
Intrinsics.checkNotNullParameter(inspectorInfo, "inspectorInfo");
|
||
|
Intrinsics.checkNotNullParameter(factory, "factory");
|
||
|
return modifier.then(new KeyedComposedModifier2(fullyQualifiedName, obj, obj2, inspectorInfo, factory));
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ Modifier composed$default(Modifier modifier, String str, Object obj, Object obj2, Object obj3, Function1 function1, Function3 function3, int i, Object obj4) {
|
||
|
if ((i & 16) != 0) {
|
||
|
function1 = InspectableValueKt.getNoInspectorInfo();
|
||
|
}
|
||
|
return composed(modifier, str, obj, obj2, obj3, function1, function3);
|
||
|
}
|
||
|
|
||
|
public static final Modifier composed(Modifier modifier, String fullyQualifiedName, Object obj, Object obj2, Object obj3, Function1<? super InspectorInfo, Unit> inspectorInfo, Function3<? super Modifier, ? super Composer, ? super Integer, ? extends Modifier> factory) {
|
||
|
Intrinsics.checkNotNullParameter(modifier, "<this>");
|
||
|
Intrinsics.checkNotNullParameter(fullyQualifiedName, "fullyQualifiedName");
|
||
|
Intrinsics.checkNotNullParameter(inspectorInfo, "inspectorInfo");
|
||
|
Intrinsics.checkNotNullParameter(factory, "factory");
|
||
|
return modifier.then(new KeyedComposedModifier3(fullyQualifiedName, obj, obj2, obj3, inspectorInfo, factory));
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ Modifier composed$default(Modifier modifier, String str, Object[] objArr, Function1 function1, Function3 function3, int i, Object obj) {
|
||
|
if ((i & 4) != 0) {
|
||
|
function1 = InspectableValueKt.getNoInspectorInfo();
|
||
|
}
|
||
|
return composed(modifier, str, objArr, (Function1<? super InspectorInfo, Unit>) function1, (Function3<? super Modifier, ? super Composer, ? super Integer, ? extends Modifier>) function3);
|
||
|
}
|
||
|
|
||
|
public static final Modifier composed(Modifier modifier, String fullyQualifiedName, Object[] keys, Function1<? super InspectorInfo, Unit> inspectorInfo, Function3<? super Modifier, ? super Composer, ? super Integer, ? extends Modifier> factory) {
|
||
|
Intrinsics.checkNotNullParameter(modifier, "<this>");
|
||
|
Intrinsics.checkNotNullParameter(fullyQualifiedName, "fullyQualifiedName");
|
||
|
Intrinsics.checkNotNullParameter(keys, "keys");
|
||
|
Intrinsics.checkNotNullParameter(inspectorInfo, "inspectorInfo");
|
||
|
Intrinsics.checkNotNullParameter(factory, "factory");
|
||
|
return modifier.then(new KeyedComposedModifierN(fullyQualifiedName, keys, inspectorInfo, factory));
|
||
|
}
|
||
|
|
||
|
public static final Modifier materializeModifier(final Composer composer, Modifier modifier) {
|
||
|
Intrinsics.checkNotNullParameter(composer, "<this>");
|
||
|
Intrinsics.checkNotNullParameter(modifier, "modifier");
|
||
|
if (modifier.all(new Function1<Modifier.Element, Boolean>() { // from class: androidx.compose.ui.ComposedModifierKt$materialize$1
|
||
|
@Override // kotlin.jvm.functions.Function1
|
||
|
public final Boolean invoke(Modifier.Element it) {
|
||
|
Intrinsics.checkNotNullParameter(it, "it");
|
||
|
return Boolean.valueOf(!(it instanceof ComposedModifier));
|
||
|
}
|
||
|
})) {
|
||
|
return modifier;
|
||
|
}
|
||
|
composer.startReplaceableGroup(1219399079);
|
||
|
Modifier modifier2 = (Modifier) modifier.foldIn(Modifier.INSTANCE, new Function2<Modifier, Modifier.Element, Modifier>() { // from class: androidx.compose.ui.ComposedModifierKt$materialize$result$1
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
{
|
||
|
super(2);
|
||
|
}
|
||
|
|
||
|
@Override // kotlin.jvm.functions.Function2
|
||
|
public final Modifier invoke(Modifier acc, Modifier.Element element) {
|
||
|
Modifier.Element element2;
|
||
|
Intrinsics.checkNotNullParameter(acc, "acc");
|
||
|
Intrinsics.checkNotNullParameter(element, "element");
|
||
|
if (element instanceof ComposedModifier) {
|
||
|
Function3<Modifier, Composer, Integer, Modifier> factory = ((ComposedModifier) element).getFactory();
|
||
|
Intrinsics.checkNotNull(factory, "null cannot be cast to non-null type @[ExtensionFunctionType] kotlin.Function3<androidx.compose.ui.Modifier, androidx.compose.runtime.Composer, kotlin.Int, androidx.compose.ui.Modifier>");
|
||
|
element2 = ComposedModifierKt.materializeModifier(Composer.this, (Modifier) ((Function3) TypeIntrinsics.beforeCheckcastToFunctionOfArity(factory, 3)).invoke(Modifier.INSTANCE, Composer.this, 0));
|
||
|
} else {
|
||
|
element2 = element;
|
||
|
}
|
||
|
return acc.then(element2);
|
||
|
}
|
||
|
});
|
||
|
composer.endReplaceableGroup();
|
||
|
return modifier2;
|
||
|
}
|
||
|
|
||
|
@Deprecated(level = DeprecationLevel.HIDDEN, message = "Kept for backwards compatibility only. If you are recompiling, use materialize.", replaceWith = @ReplaceWith(expression = "materialize", imports = {}))
|
||
|
public static final /* synthetic */ Modifier materialize(Composer composer, Modifier modifier) {
|
||
|
Intrinsics.checkNotNullParameter(composer, "<this>");
|
||
|
Intrinsics.checkNotNullParameter(modifier, "modifier");
|
||
|
return materializeWithCompositionLocalInjectionInternal(composer, modifier);
|
||
|
}
|
||
|
|
||
|
public static final Modifier materializeWithCompositionLocalInjectionInternal(Composer composer, Modifier modifier) {
|
||
|
Intrinsics.checkNotNullParameter(composer, "<this>");
|
||
|
Intrinsics.checkNotNullParameter(modifier, "modifier");
|
||
|
return modifier == Modifier.INSTANCE ? modifier : materializeModifier(composer, new CompositionLocalMapInjectionElement(composer.getCurrentCompositionLocalMap()).then(modifier));
|
||
|
}
|
||
|
}
|