package o;

import android.view.DragEvent;
import android.view.View;
import androidx.compose.ui.draganddrop.AndroidDragAndDropManager$modifier$1;
import o.LP;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.i4, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class ViewOnDragListenerC1450i4 implements View.OnDragListener, InterfaceC0278Ks {
    public final C0329Ms a;
    public final C2124p9 b;
    public final AndroidDragAndDropManager$modifier$1 c;

    /* JADX WARN: Type inference failed for: r0v2, types: [androidx.compose.ui.draganddrop.AndroidDragAndDropManager$modifier$1] */
    public ViewOnDragListenerC1450i4() {
        C0329Ms c0329Ms = new C0329Ms();
        c0329Ms.B = 0L;
        this.a = c0329Ms;
        this.b = new C2124p9(0);
        this.c = new RP() { // from class: androidx.compose.ui.draganddrop.AndroidDragAndDropManager$modifier$1
            public final boolean equals(Object obj) {
                return obj == this;
            }

            @Override // o.RP
            public final LP f() {
                return this.a.a;
            }

            public final int hashCode() {
                return this.a.a.hashCode();
            }

            @Override // o.RP
            public final /* bridge */ /* synthetic */ void j(LP lp) {
            }
        };
    }

    @Override // android.view.View.OnDragListener
    public final boolean onDrag(View view, DragEvent dragEvent) {
        C0247Jn c0247Jn = new C0247Jn(12, dragEvent);
        int action = dragEvent.getAction();
        Wg0 wg0 = Wg0.l;
        C2124p9 c2124p9 = this.b;
        C0329Ms c0329Ms = this.a;
        switch (action) {
            case 1:
                C2773w10 c2773w10 = new C2773w10();
                C0303Ls c0303Ls = new C0303Ls(c0247Jn, c0329Ms, c2773w10);
                if (c0303Ls.g(c0329Ms) == wg0) {
                    YT.W(c0329Ms, c0303Ls);
                }
                boolean z = c2773w10.l;
                c2124p9.getClass();
                C1460i9 c1460i9 = new C1460i9(c2124p9);
                while (c1460i9.hasNext()) {
                    ((C0329Ms) c1460i9.next()).L0(c0247Jn);
                }
                break;
            case 2:
                c0329Ms.K0(c0247Jn);
                break;
            case 4:
                C2769w c2769w = new C2769w(16, c0247Jn);
                if (c2769w.g(c0329Ms) == wg0) {
                    YT.W(c0329Ms, c2769w);
                }
                c2124p9.clear();
                break;
            case 5:
                c0329Ms.I0(c0247Jn);
                break;
            case 6:
                c0329Ms.J0(c0247Jn);
                break;
        }
        return false;
    }
}
