mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-30 11:02:31 -06:00
102 lines
7.9 KiB
Java
102 lines
7.9 KiB
Java
package androidx.compose.foundation.text;
|
|
|
|
import androidx.compose.foundation.text.selection.TextFieldSelectionManager;
|
|
import androidx.compose.foundation.text.selection.TextPreparedSelectionState;
|
|
import androidx.compose.runtime.Composer;
|
|
import androidx.compose.runtime.ComposerKt;
|
|
import androidx.compose.ui.ComposedModifierKt;
|
|
import androidx.compose.ui.Modifier;
|
|
import androidx.compose.ui.input.key.KeyEvent;
|
|
import androidx.compose.ui.input.key.KeyInputModifierKt;
|
|
import androidx.compose.ui.text.input.OffsetMapping;
|
|
import androidx.compose.ui.text.input.TextFieldValue;
|
|
import io.sentry.protocol.SentryThread;
|
|
import kotlin.Metadata;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.functions.Function3;
|
|
import kotlin.jvm.internal.FunctionReferenceImpl;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: TextFieldKeyInput.kt */
|
|
@Metadata(d1 = {"\u0000@\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u001ao\u0010\u0000\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u00072\u0014\b\u0002\u0010\b\u001a\u000e\u0012\u0004\u0012\u00020\u0007\u0012\u0004\u0012\u00020\n0\t2\u0006\u0010\u000b\u001a\u00020\f2\u0006\u0010\r\u001a\u00020\f2\u0006\u0010\u000e\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u00112\u0006\u0010\u0012\u001a\u00020\u0013H\u0000ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u0014\u0010\u0015\u0082\u0002\u000b\n\u0005\b¡\u001e0\u0001\n\u0002\b\u0019¨\u0006\u0016"}, d2 = {"textFieldKeyInput", "Landroidx/compose/ui/Modifier;", SentryThread.JsonKeys.STATE, "Landroidx/compose/foundation/text/TextFieldState;", "manager", "Landroidx/compose/foundation/text/selection/TextFieldSelectionManager;", "value", "Landroidx/compose/ui/text/input/TextFieldValue;", "onValueChange", "Lkotlin/Function1;", "", "editable", "", "singleLine", "offsetMapping", "Landroidx/compose/ui/text/input/OffsetMapping;", "undoManager", "Landroidx/compose/foundation/text/UndoManager;", "imeAction", "Landroidx/compose/ui/text/input/ImeAction;", "textFieldKeyInput-2WJ9YEU", "(Landroidx/compose/ui/Modifier;Landroidx/compose/foundation/text/TextFieldState;Landroidx/compose/foundation/text/selection/TextFieldSelectionManager;Landroidx/compose/ui/text/input/TextFieldValue;Lkotlin/jvm/functions/Function1;ZZLandroidx/compose/ui/text/input/OffsetMapping;Landroidx/compose/foundation/text/UndoManager;I)Landroidx/compose/ui/Modifier;", "foundation_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class TextFieldKeyInputKt {
|
|
/* renamed from: textFieldKeyInput-2WJ9YEU, reason: not valid java name */
|
|
public static final Modifier m825textFieldKeyInput2WJ9YEU(Modifier textFieldKeyInput, final TextFieldState state, final TextFieldSelectionManager manager, final TextFieldValue value, final Function1<? super TextFieldValue, Unit> onValueChange, final boolean z, final boolean z2, final OffsetMapping offsetMapping, final UndoManager undoManager, final int i) {
|
|
Intrinsics.checkNotNullParameter(textFieldKeyInput, "$this$textFieldKeyInput");
|
|
Intrinsics.checkNotNullParameter(state, "state");
|
|
Intrinsics.checkNotNullParameter(manager, "manager");
|
|
Intrinsics.checkNotNullParameter(value, "value");
|
|
Intrinsics.checkNotNullParameter(onValueChange, "onValueChange");
|
|
Intrinsics.checkNotNullParameter(offsetMapping, "offsetMapping");
|
|
Intrinsics.checkNotNullParameter(undoManager, "undoManager");
|
|
return ComposedModifierKt.composed$default(textFieldKeyInput, null, new Function3<Modifier, Composer, Integer, Modifier>() { // from class: androidx.compose.foundation.text.TextFieldKeyInputKt$textFieldKeyInput$2
|
|
/* 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(3);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function3
|
|
public /* bridge */ /* synthetic */ Modifier invoke(Modifier modifier, Composer composer, Integer num) {
|
|
return invoke(modifier, composer, num.intValue());
|
|
}
|
|
|
|
public final Modifier invoke(Modifier composed, Composer composer, int i2) {
|
|
Intrinsics.checkNotNullParameter(composed, "$this$composed");
|
|
composer.startReplaceableGroup(2057323757);
|
|
ComposerKt.sourceInformation(composer, "C245@11258L41,246@11322L30:TextFieldKeyInput.kt#423gt5");
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventStart(2057323757, i2, -1, "androidx.compose.foundation.text.textFieldKeyInput.<anonymous> (TextFieldKeyInput.kt:244)");
|
|
}
|
|
composer.startReplaceableGroup(-492369756);
|
|
ComposerKt.sourceInformation(composer, "CC(remember):Composables.kt#9igjgp");
|
|
Object rememberedValue = composer.rememberedValue();
|
|
if (rememberedValue == Composer.INSTANCE.getEmpty()) {
|
|
rememberedValue = new TextPreparedSelectionState();
|
|
composer.updateRememberedValue(rememberedValue);
|
|
}
|
|
composer.endReplaceableGroup();
|
|
TextPreparedSelectionState textPreparedSelectionState = (TextPreparedSelectionState) rememberedValue;
|
|
composer.startReplaceableGroup(-492369756);
|
|
ComposerKt.sourceInformation(composer, "CC(remember):Composables.kt#9igjgp");
|
|
Object rememberedValue2 = composer.rememberedValue();
|
|
if (rememberedValue2 == Composer.INSTANCE.getEmpty()) {
|
|
rememberedValue2 = new DeadKeyCombiner();
|
|
composer.updateRememberedValue(rememberedValue2);
|
|
}
|
|
composer.endReplaceableGroup();
|
|
Modifier onKeyEvent = KeyInputModifierKt.onKeyEvent(Modifier.INSTANCE, new AnonymousClass1(new TextFieldKeyInput(TextFieldState.this, manager, value, z, z2, textPreparedSelectionState, offsetMapping, undoManager, (DeadKeyCombiner) rememberedValue2, null, onValueChange, i, 512, null)));
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventEnd();
|
|
}
|
|
composer.endReplaceableGroup();
|
|
return onKeyEvent;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* compiled from: TextFieldKeyInput.kt */
|
|
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
|
/* renamed from: androidx.compose.foundation.text.TextFieldKeyInputKt$textFieldKeyInput$2$1, reason: invalid class name */
|
|
/* loaded from: classes.dex */
|
|
public /* synthetic */ class AnonymousClass1 extends FunctionReferenceImpl implements Function1<KeyEvent, Boolean> {
|
|
AnonymousClass1(Object obj) {
|
|
super(1, obj, TextFieldKeyInput.class, "process", "process-ZmokQxo(Landroid/view/KeyEvent;)Z", 0);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Boolean invoke(KeyEvent keyEvent) {
|
|
return m827invokeZmokQxo(keyEvent.m3614unboximpl());
|
|
}
|
|
|
|
/* renamed from: invoke-ZmokQxo, reason: not valid java name */
|
|
public final Boolean m827invokeZmokQxo(android.view.KeyEvent p0) {
|
|
Intrinsics.checkNotNullParameter(p0, "p0");
|
|
return Boolean.valueOf(((TextFieldKeyInput) this.receiver).m824processZmokQxo(p0));
|
|
}
|
|
}
|
|
}, 1, null);
|
|
}
|
|
}
|