package androidx.compose.foundation.layout; import androidx.compose.ui.node.ModifierNodeElement; import androidx.compose.ui.platform.InspectorInfo; import io.sentry.protocol.ViewHierarchyNode; import kotlin.Metadata; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.jvm.internal.Intrinsics; /* compiled from: Size.kt */ @Metadata(d1 = {"\u0000D\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0007\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0002\u0018\u0000 \u00162\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0001\u0016B\u001d\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\u0007\u001a\u00020\b¢\u0006\u0002\u0010\tJ\b\u0010\n\u001a\u00020\u0002H\u0016J\u0013\u0010\u000b\u001a\u00020\f2\b\u0010\r\u001a\u0004\u0018\u00010\u000eH\u0096\u0002J\b\u0010\u000f\u001a\u00020\u0010H\u0016J\u0010\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0013\u001a\u00020\u0002H\u0016J\f\u0010\u0014\u001a\u00020\u0012*\u00020\u0015H\u0016R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\bX\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0017"}, d2 = {"Landroidx/compose/foundation/layout/FillElement;", "Landroidx/compose/ui/node/ModifierNodeElement;", "Landroidx/compose/foundation/layout/FillNode;", "direction", "Landroidx/compose/foundation/layout/Direction;", "fraction", "", "inspectorName", "", "(Landroidx/compose/foundation/layout/Direction;FLjava/lang/String;)V", "create", "equals", "", "other", "", "hashCode", "", "update", "", "node", "inspectableProperties", "Landroidx/compose/ui/platform/InspectorInfo;", "Companion", "foundation-layout_release"}, k = 1, mv = {1, 8, 0}, xi = 48) /* loaded from: classes.dex */ final class FillElement extends ModifierNodeElement { /* renamed from: Companion, reason: from kotlin metadata */ public static final Companion INSTANCE = new Companion(null); private final Direction direction; private final float fraction; private final String inspectorName; public FillElement(Direction direction, float f, String inspectorName) { Intrinsics.checkNotNullParameter(direction, "direction"); Intrinsics.checkNotNullParameter(inspectorName, "inspectorName"); this.direction = direction; this.fraction = f; this.inspectorName = inspectorName; } /* JADX WARN: Can't rename method to resolve collision */ @Override // androidx.compose.ui.node.ModifierNodeElement public FillNode create() { return new FillNode(this.direction, this.fraction); } @Override // androidx.compose.ui.node.ModifierNodeElement public void update(FillNode node) { Intrinsics.checkNotNullParameter(node, "node"); node.setDirection(this.direction); node.setFraction(this.fraction); } @Override // androidx.compose.ui.node.ModifierNodeElement public void inspectableProperties(InspectorInfo inspectorInfo) { Intrinsics.checkNotNullParameter(inspectorInfo, ""); inspectorInfo.setName(this.inspectorName); inspectorInfo.getProperties().set("fraction", Float.valueOf(this.fraction)); } @Override // androidx.compose.ui.node.ModifierNodeElement public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof FillElement)) { return false; } FillElement fillElement = (FillElement) other; return this.direction == fillElement.direction && this.fraction == fillElement.fraction; } @Override // androidx.compose.ui.node.ModifierNodeElement public int hashCode() { return (this.direction.hashCode() * 31) + Float.hashCode(this.fraction); } /* compiled from: Size.kt */ @Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0007\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0010\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0007J\u0010\u0010\u0007\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0007J\u0010\u0010\b\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0007¨\u0006\t"}, d2 = {"Landroidx/compose/foundation/layout/FillElement$Companion;", "", "()V", ViewHierarchyNode.JsonKeys.HEIGHT, "Landroidx/compose/foundation/layout/FillElement;", "fraction", "", "size", ViewHierarchyNode.JsonKeys.WIDTH, "foundation-layout_release"}, k = 1, mv = {1, 8, 0}, xi = 48) /* loaded from: classes.dex */ public static final class Companion { public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) { this(); } private Companion() { } public final FillElement width(float fraction) { return new FillElement(Direction.Horizontal, fraction, "fillMaxWidth"); } public final FillElement height(float fraction) { return new FillElement(Direction.Vertical, fraction, "fillMaxHeight"); } public final FillElement size(float fraction) { return new FillElement(Direction.Both, fraction, "fillMaxSize"); } } }