package com.vinfast.companion.corecompose.compose;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes15.dex */
@kotlin.Metadata(d1 = {"\u00000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\u001aY\u0010\u000e\u001a\u00020\u00032\b\b\u0002\u0010\u0001\u001a\u00020\u00002\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u00022\u0006\u0010\u0006\u001a\u00020\u00052\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\u00072\u001c\u0010\r\u001a\u0018\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\u00030\t¢\u0006\u0002\b\u000b¢\u0006\u0002\b\fH\u0007¢\u0006\u0004\b\u000e\u0010\u000f\u001a\u001b\u0010\u0010\u001a\u00020\u0003*\u00020\n2\u0006\u0010\b\u001a\u00020\u0007H\u0003¢\u0006\u0004\b\u0010\u0010\u0011¨\u0006\u0012"}, d2 = {"Landroidx/compose/ui/Modifier;", "modifier", "Lkotlin/Function0;", "", "onDismissRequest", "Landroidx/compose/material3/SheetState;", "sheetState", "", "title", "Lkotlin/Function1;", "Landroidx/compose/foundation/layout/ColumnScope;", "Landroidx/compose/runtime/Composable;", "Lkotlin/ExtensionFunctionType;", "content", "e", "(Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function0;Landroidx/compose/material3/SheetState;Ljava/lang/String;Lkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;II)V", "i", "(Landroidx/compose/foundation/layout/ColumnScope;Ljava/lang/String;Landroidx/compose/runtime/Composer;I)V", "core-compose_release"}, k = 2, mv = {2, 2, 0}, xi = 48)
@kotlin.jvm.internal.SourceDebugExtension
public final class BottomSheetKt {
    /* JADX WARN: Code duplicated, block: B:40:0x007e  */
    /* JADX WARN: Code duplicated, block: B:42:0x0084  */
    /* JADX WARN: Code duplicated, block: B:43:0x0087  */
    /* JADX WARN: Code duplicated, block: B:47:0x0092  */
    /* JADX WARN: Code duplicated, block: B:48:0x0094  */
    /* JADX WARN: Code duplicated, block: B:51:0x009d A[DONT_INVERT] */
    /* JADX WARN: Code duplicated, block: B:52:0x009f  */
    /* JADX WARN: Code duplicated, block: B:53:0x00a2  */
    /* JADX WARN: Code duplicated, block: B:55:0x00a5  */
    /* JADX WARN: Code duplicated, block: B:56:0x00a7  */
    /* JADX WARN: Code duplicated, block: B:59:0x00ae  */
    /* JADX WARN: Code duplicated, block: B:62:0x0113  */
    /* JADX WARN: Code duplicated, block: B:64:0x0119  */
    /* JADX WARN: Code duplicated, block: B:67:0x0126  */
    /* JADX WARN: Code duplicated, block: B:69:? A[RETURN, SYNTHETIC] */
    public static final void e(androidx.compose.ui.Modifier modifier, final kotlin.jvm.functions.Function0 function0, final androidx.compose.material3.SheetState sheetState, java.lang.String str, final kotlin.jvm.functions.Function3 function3, androidx.compose.runtime.Composer composer, final int i, final int i2) {
        androidx.compose.ui.Modifier modifier2;
        int i3;
        java.lang.String str2;
        boolean z;
        androidx.compose.runtime.Composer composer2;
        final androidx.compose.ui.Modifier modifier3;
        final java.lang.String str3;
        androidx.compose.runtime.ScopeUpdateScope scopeUpdateScopeD;
        androidx.compose.ui.Modifier modifier4;
        final java.lang.String str4;
        int i4;
        kotlin.jvm.internal.Intrinsics.l(function0, "onDismissRequest");
        kotlin.jvm.internal.Intrinsics.l(sheetState, "sheetState");
        kotlin.jvm.internal.Intrinsics.l(function3, "content");
        androidx.compose.runtime.Composer composerB = composer.B(1964738689);
        int i5 = i2 & 1;
        if (i5 != 0) {
            i3 = i | 6;
            modifier2 = modifier;
        } else if ((i & 6) == 0) {
            modifier2 = modifier;
            i3 = (composerB.s(modifier2) ? 4 : 2) | i;
        } else {
            modifier2 = modifier;
            i3 = i;
        }
        if ((i & 48) == 0) {
            i3 |= composerB.P(function0) ? 32 : 16;
        }
        if ((i & 384) == 0) {
            i3 |= composerB.s(sheetState) ? 256 : 128;
        }
        int i6 = i2 & 8;
        if (i6 == 0) {
            if ((i & 3072) == 0) {
                str2 = str;
                i3 |= composerB.s(str2) ? 2048 : 1024;
            }
            if ((i & 24576) == 0) {
                if (composerB.P(function3)) {
                    i4 = 16384;
                } else {
                    i4 = 8192;
                }
                i3 |= i4;
            }
            if ((i3 & 9363) != 9362) {
                z = true;
            } else {
                z = false;
            }
            if (composerB.f(z, i3 & 1)) {
                if (i5 != 0) {
                    modifier4 = androidx.compose.ui.Modifier.c0;
                } else {
                    modifier4 = modifier2;
                }
                if (i6 != 0) {
                    str4 = null;
                } else {
                    str4 = str2;
                }
                if (androidx.compose.runtime.ComposerKt.m()) {
                    androidx.compose.runtime.ComposerKt.q(1964738689, i3, -1, "com.vinfast.companion.corecompose.compose.MakeBottomSheet (BottomSheet.kt:30)");
                }
                float f = 16;
                java.lang.String str5 = str4;
                composer2 = composerB;
                modifier3 = modifier4;
                androidx.compose.material3.ModalBottomSheetKt.u(function0, modifier3, sheetState, 0.0f, androidx.compose.foundation.shape.RoundedCornerShapeKt.f(androidx.compose.ui.unit.Dp.g(f), androidx.compose.ui.unit.Dp.g(f), 0.0f, 0.0f, 12, (java.lang.Object) null), com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.b(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composerB, 0)), 0L, 0.0f, 0L, com.vinfast.companion.corecompose.compose.ComposableSingletons$BottomSheetKt.a.b(), (kotlin.jvm.functions.Function2) null, (androidx.compose.material3.ModalBottomSheetProperties) null, androidx.compose.runtime.internal.ComposableLambdaKt.e(-1536494946, true, new kotlin.jvm.functions.Function3() { // from class: com.vinfast.companion.corecompose.compose.l
                    public final java.lang.Object invoke(java.lang.Object obj, java.lang.Object obj2, java.lang.Object obj3) {
                        return com.vinfast.companion.corecompose.compose.BottomSheetKt.f(str4, function3, (androidx.compose.foundation.layout.ColumnScope) obj, (androidx.compose.runtime.Composer) obj2, ((java.lang.Integer) obj3).intValue());
                    }
                }, composerB, 54), composer2, ((i3 >> 3) & 14) | 805306368 | ((i3 << 3) & 112) | (i3 & 896), 384, 3528);
                if (androidx.compose.runtime.ComposerKt.m()) {
                    androidx.compose.runtime.ComposerKt.p();
                }
                str3 = str5;
            } else {
                composer2 = composerB;
                composer2.n();
                modifier3 = modifier2;
                str3 = str2;
            }
            scopeUpdateScopeD = composer2.D();
            if (scopeUpdateScopeD != null) {
                scopeUpdateScopeD.a(new kotlin.jvm.functions.Function2() { // from class: com.vinfast.companion.corecompose.compose.m
                    public final java.lang.Object invoke(java.lang.Object obj, java.lang.Object obj2) {
                        return com.vinfast.companion.corecompose.compose.BottomSheetKt.h(modifier3, function0, sheetState, str3, function3, i, i2, (androidx.compose.runtime.Composer) obj, ((java.lang.Integer) obj2).intValue());
                    }
                });
            }
        }
        i3 |= 3072;
        str2 = str;
        if ((i & 24576) == 0) {
            if (composerB.P(function3)) {
                i4 = 16384;
            } else {
                i4 = 8192;
            }
            i3 |= i4;
        }
        if ((i3 & 9363) != 9362) {
            z = true;
        } else {
            z = false;
        }
        if (composerB.f(z, i3 & 1)) {
            if (i5 != 0) {
                modifier4 = androidx.compose.ui.Modifier.c0;
            } else {
                modifier4 = modifier2;
            }
            if (i6 != 0) {
                str4 = null;
            } else {
                str4 = str2;
            }
            if (androidx.compose.runtime.ComposerKt.m()) {
                androidx.compose.runtime.ComposerKt.q(1964738689, i3, -1, "com.vinfast.companion.corecompose.compose.MakeBottomSheet (BottomSheet.kt:30)");
            }
            float f2 = 16;
            java.lang.String str6 = str4;
            composer2 = composerB;
            modifier3 = modifier4;
            androidx.compose.material3.ModalBottomSheetKt.u(function0, modifier3, sheetState, 0.0f, androidx.compose.foundation.shape.RoundedCornerShapeKt.f(androidx.compose.ui.unit.Dp.g(f2), androidx.compose.ui.unit.Dp.g(f2), 0.0f, 0.0f, 12, (java.lang.Object) null), com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.b(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composerB, 0)), 0L, 0.0f, 0L, com.vinfast.companion.corecompose.compose.ComposableSingletons$BottomSheetKt.a.b(), (kotlin.jvm.functions.Function2) null, (androidx.compose.material3.ModalBottomSheetProperties) null, androidx.compose.runtime.internal.ComposableLambdaKt.e(-1536494946, true, new kotlin.jvm.functions.Function3() { // from class: com.vinfast.companion.corecompose.compose.l
                public final java.lang.Object invoke(java.lang.Object obj, java.lang.Object obj2, java.lang.Object obj3) {
                    return com.vinfast.companion.corecompose.compose.BottomSheetKt.f(str4, function3, (androidx.compose.foundation.layout.ColumnScope) obj, (androidx.compose.runtime.Composer) obj2, ((java.lang.Integer) obj3).intValue());
                }
            }, composerB, 54), composer2, ((i3 >> 3) & 14) | 805306368 | ((i3 << 3) & 112) | (i3 & 896), 384, 3528);
            if (androidx.compose.runtime.ComposerKt.m()) {
                androidx.compose.runtime.ComposerKt.p();
            }
            str3 = str6;
        } else {
            composer2 = composerB;
            composer2.n();
            modifier3 = modifier2;
            str3 = str2;
        }
        scopeUpdateScopeD = composer2.D();
        if (scopeUpdateScopeD != null) {
            scopeUpdateScopeD.a(new kotlin.jvm.functions.Function2() { // from class: com.vinfast.companion.corecompose.compose.m
                public final java.lang.Object invoke(java.lang.Object obj, java.lang.Object obj2) {
                    return com.vinfast.companion.corecompose.compose.BottomSheetKt.h(modifier3, function0, sheetState, str3, function3, i, i2, (androidx.compose.runtime.Composer) obj, ((java.lang.Integer) obj2).intValue());
                }
            });
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit f(java.lang.String str, kotlin.jvm.functions.Function3 function3, androidx.compose.foundation.layout.ColumnScope columnScope, androidx.compose.runtime.Composer composer, int i) {
        kotlin.jvm.internal.Intrinsics.l(columnScope, "$this$ModalBottomSheet");
        if ((i & 6) == 0) {
            i |= composer.s(columnScope) ? 4 : 2;
        }
        if (composer.f((i & 19) != 18, i & 1)) {
            if (androidx.compose.runtime.ComposerKt.m()) {
                androidx.compose.runtime.ComposerKt.q(-1536494946, i, -1, "com.vinfast.companion.corecompose.compose.MakeBottomSheet.<anonymous> (BottomSheet.kt:54)");
            }
            final android.view.View view = (android.view.View) composer.F(androidx.compose.ui.platform.AndroidCompositionLocals_androidKt.h());
            androidx.compose.ui.window.DialogWindowProvider parent = view.getParent();
            androidx.compose.ui.window.DialogWindowProvider dialogWindowProvider = parent instanceof androidx.compose.ui.window.DialogWindowProvider ? parent : null;
            final android.view.Window window = dialogWindowProvider != null ? dialogWindowProvider.getWindow() : null;
            if (window == null) {
                composer.t(2040618377);
            } else {
                composer.t(2040618378);
                boolean zP = composer.P(window) | composer.P(view);
                java.lang.Object objN = composer.N();
                if (zP || objN == androidx.compose.runtime.Composer.a.a()) {
                    objN = new kotlin.jvm.functions.Function0() { // from class: com.vinfast.companion.corecompose.compose.n
                        public final java.lang.Object invoke() {
                            return com.vinfast.companion.corecompose.compose.BottomSheetKt.g(window, view);
                        }
                    };
                    composer.H(objN);
                }
                androidx.compose.runtime.EffectsKt.i((kotlin.jvm.functions.Function0) objN, composer, 0);
            }
            composer.q();
            if (str == null) {
                composer.t(2041003304);
            } else {
                composer.t(2041003305);
                i(columnScope, str, composer, i & 14);
            }
            composer.q();
            function3.invoke(columnScope, composer, java.lang.Integer.valueOf(i & 14));
            if (androidx.compose.runtime.ComposerKt.m()) {
                androidx.compose.runtime.ComposerKt.p();
            }
        } else {
            composer.n();
        }
        return kotlin.Unit.a;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit g(android.view.Window window, android.view.View view) {
        androidx.core.view.WindowCompat.a(window, view).f(false);
        androidx.core.view.WindowCompat.a(window, view).e(false);
        return kotlin.Unit.a;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit h(androidx.compose.ui.Modifier modifier, kotlin.jvm.functions.Function0 function0, androidx.compose.material3.SheetState sheetState, java.lang.String str, kotlin.jvm.functions.Function3 function3, int i, int i2, androidx.compose.runtime.Composer composer, int i3) {
        e(modifier, function0, sheetState, str, function3, composer, androidx.compose.runtime.RecomposeScopeImplKt.a(i | 1), i2);
        return kotlin.Unit.a;
    }

    private static final void i(final androidx.compose.foundation.layout.ColumnScope columnScope, final java.lang.String str, androidx.compose.runtime.Composer composer, final int i) {
        int i2;
        androidx.compose.runtime.Composer composer2;
        androidx.compose.runtime.Composer composerB = composer.B(1633126173);
        if ((i & 48) == 0) {
            i2 = i | (composerB.s(str) ? 32 : 16);
        } else {
            i2 = i;
        }
        if (composerB.f((i2 & 17) != 16, i2 & 1)) {
            if (androidx.compose.runtime.ComposerKt.m()) {
                androidx.compose.runtime.ComposerKt.q(1633126173, i2, -1, "com.vinfast.companion.corecompose.compose.TitleOfBottomSheet (BottomSheet.kt:72)");
            }
            androidx.compose.ui.Modifier.Companion companion = androidx.compose.ui.Modifier.c0;
            float f = 8;
            androidx.compose.foundation.layout.BoxKt.b(com.vinfast.companion.corecompose.extensions.ModifierExtensionKt.C(androidx.compose.foundation.BackgroundKt.d(androidx.compose.foundation.layout.PaddingKt.r(androidx.compose.foundation.layout.SizeKt.v(companion, androidx.compose.ui.unit.Dp.g(40), androidx.compose.ui.unit.Dp.g(4)), 0.0f, androidx.compose.ui.unit.Dp.g(f), 0.0f, 0.0f, 13, (java.lang.Object) null), com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.u(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composerB, 0)), (androidx.compose.ui.graphics.Shape) null, 2, (java.lang.Object) null), androidx.compose.ui.unit.Dp.g(20)), composerB, 0);
            float f2 = 16;
            composer2 = composerB;
            androidx.compose.material3.TextKt.m(str, androidx.compose.foundation.layout.PaddingKt.q(androidx.compose.foundation.layout.SizeKt.h(companion, 0.0f, 1, (java.lang.Object) null), androidx.compose.ui.unit.Dp.g(f2), androidx.compose.ui.unit.Dp.g(f), androidx.compose.ui.unit.Dp.g(f2), androidx.compose.ui.unit.Dp.g(f2)), 0L, 0L, (androidx.compose.ui.text.font.FontStyle) null, (androidx.compose.ui.text.font.FontWeight) null, (androidx.compose.ui.text.font.FontFamily) null, 0L, (androidx.compose.ui.text.style.TextDecoration) null, (androidx.compose.ui.text.style.TextAlign) null, 0L, 0, false, 0, 0, (kotlin.jvm.functions.Function1) null, com.vinfast.companion.corecompose.ui.theme.TypographyKt.n(com.vinfast.companion.corecompose.ui.theme.TypographyKt.q(composerB, 0)), composer2, ((i2 >> 3) & 14) | 48, 0, 65532);
            androidx.compose.material3.DividerKt.e((androidx.compose.ui.Modifier) null, 0.0f, com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.k(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composer2, 0)), composer2, 0, 3);
            if (androidx.compose.runtime.ComposerKt.m()) {
                androidx.compose.runtime.ComposerKt.p();
            }
        } else {
            composer2 = composerB;
            composer2.n();
        }
        androidx.compose.runtime.ScopeUpdateScope scopeUpdateScopeD = composer2.D();
        if (scopeUpdateScopeD != null) {
            scopeUpdateScopeD.a(new kotlin.jvm.functions.Function2() { // from class: com.vinfast.companion.corecompose.compose.o
                public final java.lang.Object invoke(java.lang.Object obj, java.lang.Object obj2) {
                    return com.vinfast.companion.corecompose.compose.BottomSheetKt.j(columnScope, str, i, (androidx.compose.runtime.Composer) obj, ((java.lang.Integer) obj2).intValue());
                }
            });
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit j(androidx.compose.foundation.layout.ColumnScope columnScope, java.lang.String str, int i, androidx.compose.runtime.Composer composer, int i2) {
        i(columnScope, str, composer, androidx.compose.runtime.RecomposeScopeImplKt.a(i | 1));
        return kotlin.Unit.a;
    }
}
