mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
199 lines
11 KiB
Java
199 lines
11 KiB
Java
|
package androidx.compose.foundation;
|
||
|
|
||
|
import androidx.compose.foundation.interaction.HoverInteraction;
|
||
|
import androidx.compose.foundation.interaction.MutableInteractionSource;
|
||
|
import androidx.compose.ui.Modifier;
|
||
|
import androidx.compose.ui.input.pointer.PointerEvent;
|
||
|
import androidx.compose.ui.input.pointer.PointerEventPass;
|
||
|
import androidx.compose.ui.input.pointer.PointerEventType;
|
||
|
import androidx.compose.ui.node.PointerInputModifierNode;
|
||
|
import kotlin.Metadata;
|
||
|
import kotlin.jvm.internal.Intrinsics;
|
||
|
import kotlinx.coroutines.BuildersKt__Builders_commonKt;
|
||
|
|
||
|
/* compiled from: Hoverable.kt */
|
||
|
@Metadata(d1 = {"\u00008\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0002\u0018\u00002\u00020\u00012\u00020\u0002B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005J\u0011\u0010\b\u001a\u00020\tH\u0086@ø\u0001\u0000¢\u0006\u0002\u0010\nJ\u0011\u0010\u000b\u001a\u00020\tH\u0086@ø\u0001\u0000¢\u0006\u0002\u0010\nJ\b\u0010\f\u001a\u00020\tH\u0016J\b\u0010\r\u001a\u00020\tH\u0016J-\u0010\u000e\u001a\u00020\t2\u0006\u0010\u000f\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0013\u001a\u00020\u0014H\u0016ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b\u0015\u0010\u0016J\u0006\u0010\u0017\u001a\u00020\tJ\u000e\u0010\u0018\u001a\u00020\t2\u0006\u0010\u0003\u001a\u00020\u0004R\u0010\u0010\u0006\u001a\u0004\u0018\u00010\u0007X\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u000e¢\u0006\u0002\n\u0000\u0082\u0002\u000b\n\u0002\b\u0019\n\u0005\b¡\u001e0\u0001¨\u0006\u0019"}, d2 = {"Landroidx/compose/foundation/HoverableNode;", "Landroidx/compose/ui/node/PointerInputModifierNode;", "Landroidx/compose/ui/Modifier$Node;", "interactionSource", "Landroidx/compose/foundation/interaction/MutableInteractionSource;", "(Landroidx/compose/foundation/interaction/MutableInteractionSource;)V", "hoverInteraction", "Landroidx/compose/foundation/interaction/HoverInteraction$Enter;", "emitEnter", "", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "emitExit", "onCancelPointerInput", "onDetach", "onPointerEvent", "pointerEvent", "Landroidx/compose/ui/input/pointer/PointerEvent;", "pass", "Landroidx/compose/ui/input/pointer/PointerEventPass;", "bounds", "Landroidx/compose/ui/unit/IntSize;", "onPointerEvent-H0pRuoY", "(Landroidx/compose/ui/input/pointer/PointerEvent;Landroidx/compose/ui/input/pointer/PointerEventPass;J)V", "tryEmitExit", "updateInteractionSource", "foundation_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||
|
/* loaded from: classes.dex */
|
||
|
final class HoverableNode extends Modifier.Node implements PointerInputModifierNode {
|
||
|
private HoverInteraction.Enter hoverInteraction;
|
||
|
private MutableInteractionSource interactionSource;
|
||
|
|
||
|
public HoverableNode(MutableInteractionSource interactionSource) {
|
||
|
Intrinsics.checkNotNullParameter(interactionSource, "interactionSource");
|
||
|
this.interactionSource = interactionSource;
|
||
|
}
|
||
|
|
||
|
public final void updateInteractionSource(MutableInteractionSource interactionSource) {
|
||
|
Intrinsics.checkNotNullParameter(interactionSource, "interactionSource");
|
||
|
if (Intrinsics.areEqual(this.interactionSource, interactionSource)) {
|
||
|
return;
|
||
|
}
|
||
|
tryEmitExit();
|
||
|
this.interactionSource = interactionSource;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.compose.ui.node.PointerInputModifierNode
|
||
|
/* renamed from: onPointerEvent-H0pRuoY */
|
||
|
public void mo152onPointerEventH0pRuoY(PointerEvent pointerEvent, PointerEventPass pass, long bounds) {
|
||
|
Intrinsics.checkNotNullParameter(pointerEvent, "pointerEvent");
|
||
|
Intrinsics.checkNotNullParameter(pass, "pass");
|
||
|
if (pass == PointerEventPass.Main) {
|
||
|
int type = pointerEvent.getType();
|
||
|
if (PointerEventType.m3708equalsimpl0(type, PointerEventType.INSTANCE.m3712getEnter7fucELk())) {
|
||
|
BuildersKt__Builders_commonKt.launch$default(getCoroutineScope(), null, null, new HoverableNode$onPointerEvent$1(this, null), 3, null);
|
||
|
} else if (PointerEventType.m3708equalsimpl0(type, PointerEventType.INSTANCE.m3713getExit7fucELk())) {
|
||
|
BuildersKt__Builders_commonKt.launch$default(getCoroutineScope(), null, null, new HoverableNode$onPointerEvent$2(this, null), 3, null);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.compose.ui.node.PointerInputModifierNode
|
||
|
public void onCancelPointerInput() {
|
||
|
tryEmitExit();
|
||
|
}
|
||
|
|
||
|
@Override // androidx.compose.ui.Modifier.Node
|
||
|
public void onDetach() {
|
||
|
tryEmitExit();
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:16:0x003c */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public final java.lang.Object emitEnter(kotlin.coroutines.Continuation<? super kotlin.Unit> r6) {
|
||
|
/*
|
||
|
r5 = this;
|
||
|
boolean r0 = r6 instanceof androidx.compose.foundation.HoverableNode$emitEnter$1
|
||
|
if (r0 == 0) goto L14
|
||
|
r0 = r6
|
||
|
androidx.compose.foundation.HoverableNode$emitEnter$1 r0 = (androidx.compose.foundation.HoverableNode$emitEnter$1) r0
|
||
|
int r1 = r0.label
|
||
|
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||
|
r1 = r1 & r2
|
||
|
if (r1 == 0) goto L14
|
||
|
int r6 = r0.label
|
||
|
int r6 = r6 - r2
|
||
|
r0.label = r6
|
||
|
goto L19
|
||
|
L14:
|
||
|
androidx.compose.foundation.HoverableNode$emitEnter$1 r0 = new androidx.compose.foundation.HoverableNode$emitEnter$1
|
||
|
r0.<init>(r5, r6)
|
||
|
L19:
|
||
|
java.lang.Object r6 = r0.result
|
||
|
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||
|
int r2 = r0.label
|
||
|
r3 = 1
|
||
|
if (r2 == 0) goto L3c
|
||
|
if (r2 != r3) goto L34
|
||
|
java.lang.Object r5 = r0.L$1
|
||
|
androidx.compose.foundation.interaction.HoverInteraction$Enter r5 = (androidx.compose.foundation.interaction.HoverInteraction.Enter) r5
|
||
|
java.lang.Object r0 = r0.L$0
|
||
|
androidx.compose.foundation.HoverableNode r0 = (androidx.compose.foundation.HoverableNode) r0
|
||
|
kotlin.ResultKt.throwOnFailure(r6)
|
||
|
r6 = r5
|
||
|
r5 = r0
|
||
|
goto L5a
|
||
|
L34:
|
||
|
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||
|
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||
|
r5.<init>(r6)
|
||
|
throw r5
|
||
|
L3c:
|
||
|
kotlin.ResultKt.throwOnFailure(r6)
|
||
|
androidx.compose.foundation.interaction.HoverInteraction$Enter r6 = r5.hoverInteraction
|
||
|
if (r6 != 0) goto L5c
|
||
|
androidx.compose.foundation.interaction.HoverInteraction$Enter r6 = new androidx.compose.foundation.interaction.HoverInteraction$Enter
|
||
|
r6.<init>()
|
||
|
androidx.compose.foundation.interaction.MutableInteractionSource r2 = r5.interactionSource
|
||
|
r4 = r6
|
||
|
androidx.compose.foundation.interaction.Interaction r4 = (androidx.compose.foundation.interaction.Interaction) r4
|
||
|
r0.L$0 = r5
|
||
|
r0.L$1 = r6
|
||
|
r0.label = r3
|
||
|
java.lang.Object r0 = r2.emit(r4, r0)
|
||
|
if (r0 != r1) goto L5a
|
||
|
return r1
|
||
|
L5a:
|
||
|
r5.hoverInteraction = r6
|
||
|
L5c:
|
||
|
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||
|
return r5
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: androidx.compose.foundation.HoverableNode.emitEnter(kotlin.coroutines.Continuation):java.lang.Object");
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:16:0x0036 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public final java.lang.Object emitExit(kotlin.coroutines.Continuation<? super kotlin.Unit> r5) {
|
||
|
/*
|
||
|
r4 = this;
|
||
|
boolean r0 = r5 instanceof androidx.compose.foundation.HoverableNode$emitExit$1
|
||
|
if (r0 == 0) goto L14
|
||
|
r0 = r5
|
||
|
androidx.compose.foundation.HoverableNode$emitExit$1 r0 = (androidx.compose.foundation.HoverableNode$emitExit$1) r0
|
||
|
int r1 = r0.label
|
||
|
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||
|
r1 = r1 & r2
|
||
|
if (r1 == 0) goto L14
|
||
|
int r5 = r0.label
|
||
|
int r5 = r5 - r2
|
||
|
r0.label = r5
|
||
|
goto L19
|
||
|
L14:
|
||
|
androidx.compose.foundation.HoverableNode$emitExit$1 r0 = new androidx.compose.foundation.HoverableNode$emitExit$1
|
||
|
r0.<init>(r4, r5)
|
||
|
L19:
|
||
|
java.lang.Object r5 = r0.result
|
||
|
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||
|
int r2 = r0.label
|
||
|
r3 = 1
|
||
|
if (r2 == 0) goto L36
|
||
|
if (r2 != r3) goto L2e
|
||
|
java.lang.Object r4 = r0.L$0
|
||
|
androidx.compose.foundation.HoverableNode r4 = (androidx.compose.foundation.HoverableNode) r4
|
||
|
kotlin.ResultKt.throwOnFailure(r5)
|
||
|
goto L51
|
||
|
L2e:
|
||
|
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||
|
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||
|
r4.<init>(r5)
|
||
|
throw r4
|
||
|
L36:
|
||
|
kotlin.ResultKt.throwOnFailure(r5)
|
||
|
androidx.compose.foundation.interaction.HoverInteraction$Enter r5 = r4.hoverInteraction
|
||
|
if (r5 == 0) goto L54
|
||
|
androidx.compose.foundation.interaction.HoverInteraction$Exit r2 = new androidx.compose.foundation.interaction.HoverInteraction$Exit
|
||
|
r2.<init>(r5)
|
||
|
androidx.compose.foundation.interaction.MutableInteractionSource r5 = r4.interactionSource
|
||
|
androidx.compose.foundation.interaction.Interaction r2 = (androidx.compose.foundation.interaction.Interaction) r2
|
||
|
r0.L$0 = r4
|
||
|
r0.label = r3
|
||
|
java.lang.Object r5 = r5.emit(r2, r0)
|
||
|
if (r5 != r1) goto L51
|
||
|
return r1
|
||
|
L51:
|
||
|
r5 = 0
|
||
|
r4.hoverInteraction = r5
|
||
|
L54:
|
||
|
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||
|
return r4
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: androidx.compose.foundation.HoverableNode.emitExit(kotlin.coroutines.Continuation):java.lang.Object");
|
||
|
}
|
||
|
|
||
|
public final void tryEmitExit() {
|
||
|
HoverInteraction.Enter enter = this.hoverInteraction;
|
||
|
if (enter != null) {
|
||
|
this.interactionSource.tryEmit(new HoverInteraction.Exit(enter));
|
||
|
this.hoverInteraction = null;
|
||
|
}
|
||
|
}
|
||
|
}
|