package androidx.compose.ui.semantics; import androidx.compose.ui.node.ModifierNodeElement; import androidx.compose.ui.platform.InspectorInfo; import kotlin.Metadata; import kotlin.Unit; import kotlin.jvm.functions.Function1; import kotlin.jvm.internal.Intrinsics; /* compiled from: SemanticsModifier.kt */ @Metadata(d1 = {"\u0000N\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\b\u0080\b\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u00012\u00020\u0003B\u001e\u0012\u0017\u0010\u0004\u001a\u0013\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\u00070\u0005¢\u0006\u0002\b\b¢\u0006\u0002\u0010\tJ\u001a\u0010\u0010\u001a\u0013\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\u00070\u0005¢\u0006\u0002\b\bHÆ\u0003J$\u0010\u0011\u001a\u00020\u00002\u0019\b\u0002\u0010\u0004\u001a\u0013\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\u00070\u0005¢\u0006\u0002\b\bHÆ\u0001J\b\u0010\u0012\u001a\u00020\u0002H\u0016J\u0013\u0010\u0013\u001a\u00020\u00142\b\u0010\u0015\u001a\u0004\u0018\u00010\u0016HÖ\u0003J\t\u0010\u0017\u001a\u00020\u0018HÖ\u0001J\t\u0010\u0019\u001a\u00020\u001aHÖ\u0001J\u0010\u0010\u001b\u001a\u00020\u00072\u0006\u0010\u001c\u001a\u00020\u0002H\u0016J\f\u0010\u001d\u001a\u00020\u0007*\u00020\u001eH\u0016R\"\u0010\u0004\u001a\u0013\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\u00070\u0005¢\u0006\u0002\b\b¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000bR\u0014\u0010\f\u001a\u00020\r8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u000e\u0010\u000f¨\u0006\u001f"}, d2 = {"Landroidx/compose/ui/semantics/ClearAndSetSemanticsElement;", "Landroidx/compose/ui/node/ModifierNodeElement;", "Landroidx/compose/ui/semantics/CoreSemanticsModifierNode;", "Landroidx/compose/ui/semantics/SemanticsModifier;", "properties", "Lkotlin/Function1;", "Landroidx/compose/ui/semantics/SemanticsPropertyReceiver;", "", "Lkotlin/ExtensionFunctionType;", "(Lkotlin/jvm/functions/Function1;)V", "getProperties", "()Lkotlin/jvm/functions/Function1;", "semanticsConfiguration", "Landroidx/compose/ui/semantics/SemanticsConfiguration;", "getSemanticsConfiguration", "()Landroidx/compose/ui/semantics/SemanticsConfiguration;", "component1", "copy", "create", "equals", "", "other", "", "hashCode", "", "toString", "", "update", "node", "inspectableProperties", "Landroidx/compose/ui/platform/InspectorInfo;", "ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48) /* loaded from: classes.dex */ public final /* data */ class ClearAndSetSemanticsElement extends ModifierNodeElement implements SemanticsModifier { private final Function1 properties; /* JADX WARN: Multi-variable type inference failed */ public static /* synthetic */ ClearAndSetSemanticsElement copy$default(ClearAndSetSemanticsElement clearAndSetSemanticsElement, Function1 function1, int i, Object obj) { if ((i & 1) != 0) { function1 = clearAndSetSemanticsElement.properties; } return clearAndSetSemanticsElement.copy(function1); } public final Function1 component1() { return this.properties; } public final ClearAndSetSemanticsElement copy(Function1 properties) { Intrinsics.checkNotNullParameter(properties, "properties"); return new ClearAndSetSemanticsElement(properties); } @Override // androidx.compose.ui.node.ModifierNodeElement public boolean equals(Object other) { if (this == other) { return true; } return (other instanceof ClearAndSetSemanticsElement) && Intrinsics.areEqual(this.properties, ((ClearAndSetSemanticsElement) other).properties); } public final Function1 getProperties() { return this.properties; } @Override // androidx.compose.ui.node.ModifierNodeElement public int hashCode() { return this.properties.hashCode(); } public String toString() { return "ClearAndSetSemanticsElement(properties=" + this.properties + ')'; } /* JADX WARN: Multi-variable type inference failed */ public ClearAndSetSemanticsElement(Function1 properties) { Intrinsics.checkNotNullParameter(properties, "properties"); this.properties = properties; } @Override // androidx.compose.ui.semantics.SemanticsModifier public SemanticsConfiguration getSemanticsConfiguration() { SemanticsConfiguration semanticsConfiguration = new SemanticsConfiguration(); semanticsConfiguration.setMergingSemanticsOfDescendants(false); semanticsConfiguration.setClearingSemantics(true); this.properties.invoke(semanticsConfiguration); return semanticsConfiguration; } @Override // androidx.compose.ui.node.ModifierNodeElement public CoreSemanticsModifierNode create() { return new CoreSemanticsModifierNode(false, true, this.properties); } @Override // androidx.compose.ui.node.ModifierNodeElement public void update(CoreSemanticsModifierNode node) { Intrinsics.checkNotNullParameter(node, "node"); node.setProperties(this.properties); } @Override // androidx.compose.ui.node.ModifierNodeElement public void inspectableProperties(InspectorInfo inspectorInfo) { Intrinsics.checkNotNullParameter(inspectorInfo, ""); inspectorInfo.setName("clearAndSetSemantics"); SemanticsModifierKt.addSemanticsPropertiesFrom(inspectorInfo, getSemanticsConfiguration()); } }