package androidx.compose.foundation.text.modifiers; import androidx.compose.ui.graphics.Path; import androidx.compose.ui.layout.LayoutCoordinates; import androidx.compose.ui.text.TextLayoutInput; import androidx.compose.ui.text.TextLayoutResult; import androidx.compose.ui.text.style.TextOverflow; import kotlin.Metadata; import kotlin.jvm.internal.DefaultConstructorMarker; /* compiled from: SelectionController.kt */ @Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\b\u0010\u0018\u0000 \u00152\u00020\u0001:\u0001\u0015B\u0019\u0012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0005¢\u0006\u0002\u0010\u0006J\u001e\u0010\u000f\u001a\u00020\u00002\n\b\u0002\u0010\u0002\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u0005J\u001a\u0010\u0010\u001a\u0004\u0018\u00010\u00112\u0006\u0010\u0012\u001a\u00020\u00132\u0006\u0010\u0014\u001a\u00020\u0013H\u0016R\u0013\u0010\u0002\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0014\u0010\t\u001a\u00020\n8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u000b\u0010\fR\u0013\u0010\u0004\u001a\u0004\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000e¨\u0006\u0016"}, d2 = {"Landroidx/compose/foundation/text/modifiers/StaticTextSelectionParams;", "", "layoutCoordinates", "Landroidx/compose/ui/layout/LayoutCoordinates;", "textLayoutResult", "Landroidx/compose/ui/text/TextLayoutResult;", "(Landroidx/compose/ui/layout/LayoutCoordinates;Landroidx/compose/ui/text/TextLayoutResult;)V", "getLayoutCoordinates", "()Landroidx/compose/ui/layout/LayoutCoordinates;", "shouldClip", "", "getShouldClip", "()Z", "getTextLayoutResult", "()Landroidx/compose/ui/text/TextLayoutResult;", "copy", "getPathForRange", "Landroidx/compose/ui/graphics/Path;", "start", "", "end", "Companion", "foundation_release"}, k = 1, mv = {1, 8, 0}, xi = 48) /* loaded from: classes.dex */ public class StaticTextSelectionParams { /* renamed from: Companion, reason: from kotlin metadata */ public static final Companion INSTANCE = new Companion(null); private static final StaticTextSelectionParams Empty = new StaticTextSelectionParams(null, null); private final LayoutCoordinates layoutCoordinates; private final TextLayoutResult textLayoutResult; public final LayoutCoordinates getLayoutCoordinates() { return this.layoutCoordinates; } public final TextLayoutResult getTextLayoutResult() { return this.textLayoutResult; } public StaticTextSelectionParams(LayoutCoordinates layoutCoordinates, TextLayoutResult textLayoutResult) { this.layoutCoordinates = layoutCoordinates; this.textLayoutResult = textLayoutResult; } /* compiled from: SelectionController.kt */ @Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0011\u0010\u0003\u001a\u00020\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"Landroidx/compose/foundation/text/modifiers/StaticTextSelectionParams$Companion;", "", "()V", "Empty", "Landroidx/compose/foundation/text/modifiers/StaticTextSelectionParams;", "getEmpty", "()Landroidx/compose/foundation/text/modifiers/StaticTextSelectionParams;", "foundation_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 StaticTextSelectionParams getEmpty() { return StaticTextSelectionParams.Empty; } } public Path getPathForRange(int start, int end) { TextLayoutResult textLayoutResult = this.textLayoutResult; if (textLayoutResult != null) { return textLayoutResult.getPathForRange(start, end); } return null; } public boolean getShouldClip() { TextLayoutInput layoutInput; TextLayoutResult textLayoutResult = this.textLayoutResult; TextOverflow m4814boximpl = (textLayoutResult == null || (layoutInput = textLayoutResult.getLayoutInput()) == null) ? null : TextOverflow.m4814boximpl(layoutInput.getOverflow()); int m4826getVisiblegIe3tQ8 = TextOverflow.INSTANCE.m4826getVisiblegIe3tQ8(); if (m4814boximpl == null) { return false; } return TextOverflow.m4817equalsimpl0(m4814boximpl.getValue(), m4826getVisiblegIe3tQ8); } public static /* synthetic */ StaticTextSelectionParams copy$default(StaticTextSelectionParams staticTextSelectionParams, LayoutCoordinates layoutCoordinates, TextLayoutResult textLayoutResult, int i, Object obj) { if (obj != null) { throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: copy"); } if ((i & 1) != 0) { layoutCoordinates = staticTextSelectionParams.layoutCoordinates; } if ((i & 2) != 0) { textLayoutResult = staticTextSelectionParams.textLayoutResult; } return staticTextSelectionParams.copy(layoutCoordinates, textLayoutResult); } public final StaticTextSelectionParams copy(LayoutCoordinates layoutCoordinates, TextLayoutResult textLayoutResult) { return new StaticTextSelectionParams(layoutCoordinates, textLayoutResult); } }