package o0;

import androidx.compose.ui.platform.p2;
import androidx.compose.ui.platform.y2;

/* loaded from: classes.dex */
public abstract class p1 implements w2.l0 {

    /* renamed from: a, reason: collision with root package name */
    private a f30492a;

    /* loaded from: classes.dex */
    public interface a {
        h2.s S0();

        p2 getSoftwareKeyboardController();

        y2 getViewConfiguration();

        tp.u1 n0(dn.p pVar);

        r0.f0 o0();

        l0.z u1();
    }

    @Override // w2.l0
    public final void d() {
        p2 softwareKeyboardController;
        a aVar = this.f30492a;
        if (aVar == null || (softwareKeyboardController = aVar.getSoftwareKeyboardController()) == null) {
            return;
        }
        softwareKeyboardController.a();
    }

    @Override // w2.l0
    public final void g() {
        p2 softwareKeyboardController;
        a aVar = this.f30492a;
        if (aVar == null || (softwareKeyboardController = aVar.getSoftwareKeyboardController()) == null) {
            return;
        }
        softwareKeyboardController.b();
    }

    /* JADX INFO: Access modifiers changed from: protected */
    public final a i() {
        return this.f30492a;
    }

    public final void j(a aVar) {
        if (!(this.f30492a == null)) {
            throw new IllegalStateException("Expected textInputModifierNode to be null".toString());
        }
        this.f30492a = aVar;
    }

    public abstract void k();

    public final void l(a aVar) {
        if (this.f30492a == aVar) {
            this.f30492a = null;
            return;
        }
        throw new IllegalStateException(("Expected textInputModifierNode to be " + aVar + " but was " + this.f30492a).toString());
    }
}
