package androidx.compose.material3; import android.graphics.Rect; import android.view.View; import androidx.compose.runtime.Composer; import androidx.compose.runtime.ComposerKt; import androidx.compose.runtime.MutableState; import androidx.compose.ui.Modifier; import androidx.compose.ui.input.pointer.PointerInputScope; import androidx.compose.ui.input.pointer.SuspendingPointerInputFilterKt; import androidx.compose.ui.layout.LayoutCoordinates; import androidx.compose.ui.layout.LayoutCoordinatesKt; import androidx.compose.ui.semantics.SemanticsModifierKt; import androidx.compose.ui.semantics.SemanticsPropertiesKt; import androidx.compose.ui.semantics.SemanticsPropertyReceiver; import androidx.compose.ui.unit.Dp; import kotlin.Metadata; import kotlin.Unit; import kotlin.coroutines.Continuation; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; import kotlin.jvm.functions.Function2; import kotlin.jvm.internal.Intrinsics; /* compiled from: ExposedDropdownMenu.kt */ @Metadata(d1 = {"\u0000T\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0004\u001aQ\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0012\u0010\u0007\u001a\u000e\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\u00040\b2\b\b\u0002\u0010\t\u001a\u00020\n2\u001c\u0010\u000b\u001a\u0018\u0012\u0004\u0012\u00020\f\u0012\u0004\u0012\u00020\u00040\b¢\u0006\u0002\b\r¢\u0006\u0002\b\u000eH\u0007¢\u0006\u0002\u0010\u000f\u001a6\u0010\u0010\u001a\u00020\u00042\u0006\u0010\u0011\u001a\u00020\u00122\b\u0010\u0013\u001a\u0004\u0018\u00010\u00142\u0006\u0010\u0015\u001a\u00020\u00162\u0012\u0010\u0017\u001a\u000e\u0012\u0004\u0012\u00020\u0016\u0012\u0004\u0012\u00020\u00040\bH\u0002\u001aE\u0010\u0018\u001a\u00020\n*\u00020\n2\u0006\u0010\u0005\u001a\u00020\u00062\f\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\u00040\u00192\b\b\u0002\u0010\u001a\u001a\u00020\u001b2\b\b\u0002\u0010\u001c\u001a\u00020\u001b2\b\b\u0002\u0010\u001d\u001a\u00020\u001bH\u0003¢\u0006\u0002\u0010\u001e\"\u0013\u0010\u0000\u001a\u00020\u0001X\u0082\u0004ø\u0001\u0000¢\u0006\u0004\n\u0002\u0010\u0002\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u001f"}, d2 = {"ExposedDropdownMenuItemHorizontalPadding", "Landroidx/compose/ui/unit/Dp;", "F", "ExposedDropdownMenuBox", "", "expanded", "", "onExpandedChange", "Lkotlin/Function1;", "modifier", "Landroidx/compose/ui/Modifier;", "content", "Landroidx/compose/material3/ExposedDropdownMenuBoxScope;", "Landroidx/compose/runtime/Composable;", "Lkotlin/ExtensionFunctionType;", "(ZLkotlin/jvm/functions/Function1;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;II)V", "updateHeight", "view", "Landroid/view/View;", "coordinates", "Landroidx/compose/ui/layout/LayoutCoordinates;", "verticalMarginInPx", "", "onHeightUpdate", "expandable", "Lkotlin/Function0;", "menuDescription", "", "expandedDescription", "collapsedDescription", "(Landroidx/compose/ui/Modifier;ZLkotlin/jvm/functions/Function0;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroidx/compose/runtime/Composer;II)Landroidx/compose/ui/Modifier;", "material3_release"}, k = 2, mv = {1, 8, 0}, xi = 48) /* loaded from: classes.dex */ public final class ExposedDropdownMenuKt { private static final float ExposedDropdownMenuItemHorizontalPadding = Dp.m4883constructorimpl(16); /* JADX WARN: Removed duplicated region for block: B:13:0x006f */ /* JADX WARN: Removed duplicated region for block: B:21:0x0361 */ /* JADX WARN: Removed duplicated region for block: B:24:? A[RETURN, SYNTHETIC] */ /* JADX WARN: Removed duplicated region for block: B:26:0x0099 */ /* JADX WARN: Removed duplicated region for block: B:29:0x00a8 */ /* JADX WARN: Removed duplicated region for block: B:32:0x00f2 */ /* JADX WARN: Removed duplicated region for block: B:35:0x0116 */ /* JADX WARN: Removed duplicated region for block: B:38:0x0141 */ /* JADX WARN: Removed duplicated region for block: B:41:0x0161 */ /* JADX WARN: Removed duplicated region for block: B:45:0x0197 A[LOOP:0: B:43:0x0194->B:45:0x0197, LOOP_END] */ /* JADX WARN: Removed duplicated region for block: B:54:0x0272 */ /* JADX WARN: Removed duplicated region for block: B:57:0x027e */ /* JADX WARN: Removed duplicated region for block: B:65:0x0355 */ /* JADX WARN: Removed duplicated region for block: B:68:0x0282 */ /* JADX WARN: Removed duplicated region for block: B:70:0x00a0 */ /* JADX WARN: Removed duplicated region for block: B:71:0x0072 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public static final void ExposedDropdownMenuBox(final boolean r23, final kotlin.jvm.functions.Function1 r24, androidx.compose.ui.Modifier r25, final kotlin.jvm.functions.Function3 r26, androidx.compose.runtime.Composer r27, final int r28, final int r29) { /* Method dump skipped, instructions count: 887 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: androidx.compose.material3.ExposedDropdownMenuKt.ExposedDropdownMenuBox(boolean, kotlin.jvm.functions.Function1, androidx.compose.ui.Modifier, kotlin.jvm.functions.Function3, androidx.compose.runtime.Composer, int, int):void"); } /* JADX INFO: Access modifiers changed from: private */ public static final int ExposedDropdownMenuBox$lambda$1(MutableState mutableState) { return mutableState.getValue().intValue(); } /* JADX INFO: Access modifiers changed from: private */ public static final void ExposedDropdownMenuBox$lambda$2(MutableState mutableState, int i) { mutableState.setValue(Integer.valueOf(i)); } /* JADX INFO: Access modifiers changed from: private */ public static final int ExposedDropdownMenuBox$lambda$4(MutableState mutableState) { return mutableState.getValue().intValue(); } /* JADX INFO: Access modifiers changed from: private */ public static final void ExposedDropdownMenuBox$lambda$5(MutableState mutableState, int i) { mutableState.setValue(Integer.valueOf(i)); } /* JADX INFO: Access modifiers changed from: private */ public static final Modifier expandable(Modifier modifier, final boolean z, final Function0 function0, String str, String str2, String str3, Composer composer, int i, int i2) { composer.startReplaceableGroup(1006563320); ComposerKt.sourceInformation(composer, "C(expandable)P(1,4,3,2)1017@60116L38,1018@60190L31,1019@60258L32,1020@60315L365,1030@60691L187:ExposedDropdownMenu.kt#uh7d8r"); final String m1475getStringNWtq28 = (i2 & 4) != 0 ? Strings_androidKt.m1475getStringNWtq28(Strings.INSTANCE.m1452getExposedDropdownMenuadMyvUU(), composer, 6) : str; String m1475getStringNWtq282 = (i2 & 8) != 0 ? Strings_androidKt.m1475getStringNWtq28(Strings.INSTANCE.m1454getMenuExpandedadMyvUU(), composer, 6) : str2; String m1475getStringNWtq283 = (i2 & 16) != 0 ? Strings_androidKt.m1475getStringNWtq28(Strings.INSTANCE.m1453getMenuCollapsedadMyvUU(), composer, 6) : str3; if (ComposerKt.isTraceInProgress()) { ComposerKt.traceEventStart(1006563320, i, -1, "androidx.compose.material3.expandable (ExposedDropdownMenu.kt:1014)"); } Unit unit = Unit.INSTANCE; composer.startReplaceableGroup(1157296644); ComposerKt.sourceInformation(composer, "CC(remember)P(1):Composables.kt#9igjgp"); boolean changed = composer.changed(function0); ExposedDropdownMenuKt$expandable$1$1 rememberedValue = composer.rememberedValue(); if (changed || rememberedValue == Composer.INSTANCE.getEmpty()) { rememberedValue = new ExposedDropdownMenuKt$expandable$1$1(function0, null); composer.updateRememberedValue(rememberedValue); } composer.endReplaceableGroup(); Modifier pointerInput = SuspendingPointerInputFilterKt.pointerInput(modifier, unit, (Function2, ? extends Object>) rememberedValue); Object[] objArr = {Boolean.valueOf(z), m1475getStringNWtq282, m1475getStringNWtq283, m1475getStringNWtq28, function0}; composer.startReplaceableGroup(-568225417); ComposerKt.sourceInformation(composer, "CC(remember)P(1):Composables.kt#9igjgp"); boolean z2 = false; for (int i3 = 0; i3 < 5; i3++) { z2 |= composer.changed(objArr[i3]); } Object rememberedValue2 = composer.rememberedValue(); if (z2 || rememberedValue2 == Composer.INSTANCE.getEmpty()) { final String str4 = m1475getStringNWtq282; final String str5 = m1475getStringNWtq283; rememberedValue2 = (Function1) new Function1() { // from class: androidx.compose.material3.ExposedDropdownMenuKt$expandable$2$1 /* JADX INFO: Access modifiers changed from: package-private */ /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ { super(1); } @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(SemanticsPropertyReceiver semanticsPropertyReceiver) { invoke2(semanticsPropertyReceiver); return Unit.INSTANCE; } /* renamed from: invoke, reason: avoid collision after fix types in other method */ public final void invoke2(SemanticsPropertyReceiver semantics) { Intrinsics.checkNotNullParameter(semantics, "$this$semantics"); SemanticsPropertiesKt.setStateDescription(semantics, z ? str4 : str5); SemanticsPropertiesKt.setContentDescription(semantics, m1475getStringNWtq28); final Function0 function02 = function0; SemanticsPropertiesKt.onClick$default(semantics, null, new Function0() { // from class: androidx.compose.material3.ExposedDropdownMenuKt$expandable$2$1.1 /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ { super(0); } /* JADX WARN: Can't rename method to resolve collision */ @Override // kotlin.jvm.functions.Function0 public final Boolean invoke() { function02.invoke(); return true; } }, 1, null); } }; composer.updateRememberedValue(rememberedValue2); } composer.endReplaceableGroup(); Modifier semantics$default = SemanticsModifierKt.semantics$default(pointerInput, false, (Function1) rememberedValue2, 1, null); if (ComposerKt.isTraceInProgress()) { ComposerKt.traceEventEnd(); } composer.endReplaceableGroup(); return semantics$default; } /* JADX INFO: Access modifiers changed from: private */ public static final void updateHeight(View view, LayoutCoordinates layoutCoordinates, int i, Function1 function1) { if (layoutCoordinates == null) { return; } view.getWindowVisibleDisplayFrame(new Rect()); function1.invoke(Integer.valueOf(((int) Math.max(LayoutCoordinatesKt.boundsInWindow(layoutCoordinates).getTop() - r0.top, (r0.bottom - r0.top) - LayoutCoordinatesKt.boundsInWindow(layoutCoordinates).getBottom())) - i)); } }