package com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes6.dex */
@kotlin.Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\u001aU\u0010\f\u001a\u00020\b2\b\b\u0002\u0010\u0001\u001a\u00020\u00002\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0004\u001a\u00020\u00022\b\b\u0002\u0010\u0006\u001a\u00020\u00052\f\u0010\t\u001a\b\u0012\u0004\u0012\u00020\b0\u00072\u0012\u0010\u000b\u001a\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\b0\nH\u0003¢\u0006\u0004\b\f\u0010\r¨\u0006\u0012²\u0006\u000e\u0010\u000f\u001a\u00020\u000e8\n@\nX\u008a\u008e\u0002²\u0006\u000e\u0010\u0010\u001a\u00020\u00058\n@\nX\u008a\u008e\u0002²\u0006\u000e\u0010\u0011\u001a\u00020\u00028\n@\nX\u008a\u008e\u0002"}, d2 = {"Landroidx/compose/ui/Modifier;", "modifier", "", "title", "initialName", "", "showCancel", "Lkotlin/Function0;", "", "onCancel", "Lkotlin/Function1;", "onSave", "h", "(Landroidx/compose/ui/Modifier;Ljava/lang/String;Ljava/lang/String;ZLkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;II)V", "Landroidx/compose/ui/text/input/TextFieldValue;", "textFieldValue", "hasValidationError", "errorMessage", "settings_release"}, k = 2, mv = {2, 2, 0}, xi = 48)
@kotlin.jvm.internal.SourceDebugExtension
public final class SetVoiceNameDialogKt {
    /* JADX INFO: Access modifiers changed from: private */
    /* JADX WARN: Code duplicated, block: B:101:0x01e8  */
    /* JADX WARN: Code duplicated, block: B:104:0x023e  */
    /* JADX WARN: Code duplicated, block: B:107:0x024a  */
    /* JADX WARN: Code duplicated, block: B:108:0x024e  */
    /* JADX WARN: Code duplicated, block: B:113:0x027d  */
    /* JADX WARN: Code duplicated, block: B:116:0x02ce  */
    /* JADX WARN: Code duplicated, block: B:119:0x02da  */
    /* JADX WARN: Code duplicated, block: B:120:0x02de  */
    /* JADX WARN: Code duplicated, block: B:125:0x030d  */
    /* JADX WARN: Code duplicated, block: B:128:0x0351  */
    /* JADX WARN: Code duplicated, block: B:131:0x035d  */
    /* JADX WARN: Code duplicated, block: B:132:0x0361  */
    /* JADX WARN: Code duplicated, block: B:137:0x0390  */
    /* JADX WARN: Code duplicated, block: B:140:0x03eb  */
    /* JADX WARN: Code duplicated, block: B:143:0x03f7  */
    /* JADX WARN: Code duplicated, block: B:144:0x03fb  */
    /* JADX WARN: Code duplicated, block: B:149:0x042a  */
    /* JADX WARN: Code duplicated, block: B:152:0x0569  */
    /* JADX WARN: Code duplicated, block: B:155:0x0575  */
    /* JADX WARN: Code duplicated, block: B:156:0x0579  */
    /* JADX WARN: Code duplicated, block: B:161:0x05a6  */
    /* JADX WARN: Code duplicated, block: B:164:0x05e5  */
    /* JADX WARN: Code duplicated, block: B:166:0x05f7  */
    /* JADX WARN: Code duplicated, block: B:169:0x063c  */
    /* JADX WARN: Code duplicated, block: B:172:0x0648  */
    /* JADX WARN: Code duplicated, block: B:173:0x064c  */
    /* JADX WARN: Code duplicated, block: B:178:0x0679  */
    /* JADX WARN: Code duplicated, block: B:181:0x072a  */
    /* JADX WARN: Code duplicated, block: B:182:0x072c  */
    /* JADX WARN: Code duplicated, block: B:187:0x073a  */
    /* JADX WARN: Code duplicated, block: B:190:0x0767  */
    /* JADX WARN: Code duplicated, block: B:191:0x0772  */
    /* JADX WARN: Code duplicated, block: B:197:0x07f6  */
    /* JADX WARN: Code duplicated, block: B:200:0x085d  */
    /* JADX WARN: Code duplicated, block: B:203:0x0869  */
    /* JADX WARN: Code duplicated, block: B:204:0x086d  */
    /* JADX WARN: Code duplicated, block: B:209:0x089a  */
    /* JADX WARN: Code duplicated, block: B:212:0x08b7  */
    /* JADX WARN: Code duplicated, block: B:214:0x092a  */
    /* JADX WARN: Code duplicated, block: B:217:0x0940  */
    /* JADX WARN: Code duplicated, block: B:218:0x0942  */
    /* JADX WARN: Code duplicated, block: B:223:0x0950  */
    /* JADX WARN: Code duplicated, block: B:226:0x09c4  */
    /* JADX WARN: Code duplicated, block: B:228:0x09cc  */
    /* JADX WARN: Code duplicated, block: B:231:0x09d9  */
    /* JADX WARN: Code duplicated, block: B:233:? A[RETURN, SYNTHETIC] */
    /* JADX WARN: Code duplicated, block: B:42:0x0075  */
    /* JADX WARN: Code duplicated, block: B:44:0x007d  */
    /* JADX WARN: Code duplicated, block: B:45:0x0080  */
    /* JADX WARN: Code duplicated, block: B:47:0x0084  */
    /* JADX WARN: Code duplicated, block: B:50:0x008b  */
    /* JADX WARN: Code duplicated, block: B:52:0x0091  */
    /* JADX WARN: Code duplicated, block: B:53:0x0094  */
    /* JADX WARN: Code duplicated, block: B:57:0x00a2  */
    /* JADX WARN: Code duplicated, block: B:58:0x00a4  */
    /* JADX WARN: Code duplicated, block: B:61:0x00ad A[DONT_INVERT] */
    /* JADX WARN: Code duplicated, block: B:62:0x00af  */
    /* JADX WARN: Code duplicated, block: B:63:0x00b2  */
    /* JADX WARN: Code duplicated, block: B:65:0x00b5  */
    /* JADX WARN: Code duplicated, block: B:66:0x00b7  */
    /* JADX WARN: Code duplicated, block: B:69:0x00be  */
    /* JADX WARN: Code duplicated, block: B:72:0x00db  */
    /* JADX WARN: Code duplicated, block: B:74:0x00e1  */
    /* JADX WARN: Code duplicated, block: B:75:0x00ef  */
    /* JADX WARN: Code duplicated, block: B:79:0x0129  */
    /* JADX WARN: Code duplicated, block: B:82:0x013f  */
    /* JADX WARN: Code duplicated, block: B:85:0x0155  */
    /* JADX WARN: Code duplicated, block: B:90:0x0179  */
    /* JADX WARN: Code duplicated, block: B:93:0x0192  */
    /* JADX WARN: Code duplicated, block: B:96:0x01cd  */
    public static final void h(androidx.compose.ui.Modifier modifier, final java.lang.String str, final java.lang.String str2, boolean z, final kotlin.jvm.functions.Function0 function0, final kotlin.jvm.functions.Function1 function1, androidx.compose.runtime.Composer composer, final int i, final int i2) {
        androidx.compose.ui.Modifier modifier2;
        int i3;
        java.lang.String str3;
        boolean z2;
        boolean z3;
        androidx.compose.runtime.Composer composer2;
        final androidx.compose.ui.Modifier modifier3;
        final boolean z5;
        androidx.compose.runtime.ScopeUpdateScope scopeUpdateScopeD;
        androidx.compose.ui.Modifier modifier4;
        boolean z6;
        final android.content.Context context;
        java.lang.Object objN;
        androidx.compose.runtime.Composer.Companion companion;
        final androidx.compose.runtime.MutableState mutableState;
        java.lang.Object objN2;
        final androidx.compose.runtime.MutableState mutableState2;
        java.lang.Object objN3;
        final androidx.compose.runtime.MutableState mutableState3;
        java.lang.Object objN4;
        final androidx.compose.ui.focus.FocusRequester focusRequester;
        final androidx.compose.ui.platform.SoftwareKeyboardController softwareKeyboardController;
        boolean zP;
        java.lang.Object objN5;
        final kotlin.jvm.functions.Function1 function2;
        java.lang.Object objN6;
        boolean z7;
        java.lang.Object objN7;
        boolean zS;
        java.lang.Object objN8;
        int iHashCode;
        int i4;
        kotlin.jvm.functions.Function0 function0B;
        androidx.compose.runtime.Composer composerC;
        kotlin.jvm.functions.Function2 function2C;
        androidx.compose.ui.Modifier modifier5;
        int iHashCode2;
        kotlin.jvm.functions.Function0 function0B2;
        androidx.compose.runtime.Composer composerC2;
        kotlin.jvm.functions.Function2 function2C2;
        int iHashCode3;
        kotlin.jvm.functions.Function0 function0B3;
        androidx.compose.runtime.Composer composerC3;
        kotlin.jvm.functions.Function2 function2C3;
        androidx.compose.ui.graphics.Color.Companion companion2;
        int iHashCode4;
        kotlin.jvm.functions.Function0 function0B4;
        androidx.compose.runtime.Composer composerC4;
        kotlin.jvm.functions.Function2 function2C4;
        int iHashCode5;
        kotlin.jvm.functions.Function0 function0B5;
        androidx.compose.runtime.Composer composerC5;
        kotlin.jvm.functions.Function2 function2C5;
        float f;
        long jV;
        int iHashCode6;
        kotlin.jvm.functions.Function0 function0B6;
        androidx.compose.runtime.Composer composerC6;
        kotlin.jvm.functions.Function2 function2C6;
        int i5;
        boolean z8;
        boolean z9;
        java.lang.Object objN9;
        java.lang.Object objN10;
        final androidx.compose.runtime.MutableState mutableState4;
        androidx.compose.runtime.MutableState mutableState5;
        boolean z10;
        androidx.compose.runtime.Composer composer3;
        int iHashCode7;
        kotlin.jvm.functions.Function0 function0B7;
        androidx.compose.runtime.Composer composerC7;
        kotlin.jvm.functions.Function2 function2C7;
        androidx.compose.foundation.layout.RowScopeInstance rowScopeInstance;
        androidx.compose.ui.Modifier modifier6;
        boolean z11;
        boolean z12;
        java.lang.Object objN11;
        java.lang.String str4;
        int i6;
        int i7;
        androidx.compose.runtime.Composer composerB = composer.B(-695161097);
        int i8 = i2 & 1;
        if (i8 != 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.s(str) ? 32 : 16;
        }
        if ((i & 384) == 0) {
            str3 = str2;
            i3 |= composerB.s(str3) ? 256 : 128;
        } else {
            str3 = str2;
        }
        int i9 = i2 & 8;
        if (i9 == 0) {
            if ((i & 3072) == 0) {
                z2 = z;
                i3 |= composerB.v(z2) ? 2048 : 1024;
            }
            if ((i & 24576) != 0) {
                if (composerB.P(function0)) {
                    i7 = 16384;
                } else {
                    i7 = 8192;
                }
                i3 |= i7;
            }
            if ((196608 & i) == 0) {
                if (composerB.P(function1)) {
                    i6 = 131072;
                } else {
                    i6 = 65536;
                }
                i3 |= i6;
            }
            if ((74899 & i3) != 74898) {
                z3 = true;
            } else {
                z3 = false;
            }
            if (composerB.f(z3, i3 & 1)) {
                if (i8 != 0) {
                    modifier4 = androidx.compose.ui.Modifier.c0;
                } else {
                    modifier4 = modifier2;
                }
                if (i9 != 0) {
                    z6 = false;
                } else {
                    z6 = z2;
                }
                if (androidx.compose.runtime.ComposerKt.m()) {
                    androidx.compose.runtime.ComposerKt.q(-695161097, i3, -1, "com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogContent (SetVoiceNameDialog.kt:105)");
                }
                context = (android.content.Context) composerB.F(androidx.compose.ui.platform.AndroidCompositionLocals_androidKt.d());
                objN = composerB.N();
                companion = androidx.compose.runtime.Composer.a;
                if (objN == companion.a()) {
                    if (kotlin.text.StringsKt.v0(str3)) {
                        java.lang.String string = context.getString(com.vinfast.settings.R.string.feature_voicecloning_066);
                        kotlin.jvm.internal.Intrinsics.k(string, "getString(...)");
                        str4 = string;
                    } else {
                        str4 = str3;
                    }
                    androidx.compose.ui.text.input.TextFieldValue textFieldValue = new androidx.compose.ui.text.input.TextFieldValue(str4, 0L, (androidx.compose.ui.text.TextRange) null, 6, (kotlin.jvm.internal.DefaultConstructorMarker) null);
                    objN = androidx.compose.runtime.SnapshotStateKt.j(androidx.compose.ui.text.input.TextFieldValue.h(textFieldValue, (androidx.compose.ui.text.AnnotatedString) null, androidx.compose.ui.text.TextRangeKt.a(textFieldValue.m().length()), (androidx.compose.ui.text.TextRange) null, 5, (java.lang.Object) null), (androidx.compose.runtime.SnapshotMutationPolicy) null, 2, (java.lang.Object) null);
                    composerB.H(objN);
                }
                mutableState = (androidx.compose.runtime.MutableState) objN;
                objN2 = composerB.N();
                if (objN2 == companion.a()) {
                    objN2 = androidx.compose.runtime.SnapshotStateKt.j(java.lang.Boolean.FALSE, (androidx.compose.runtime.SnapshotMutationPolicy) null, 2, (java.lang.Object) null);
                    composerB.H(objN2);
                }
                mutableState2 = (androidx.compose.runtime.MutableState) objN2;
                objN3 = composerB.N();
                if (objN3 == companion.a()) {
                    objN3 = androidx.compose.runtime.SnapshotStateKt.j("", (androidx.compose.runtime.SnapshotMutationPolicy) null, 2, (java.lang.Object) null);
                    composerB.H(objN3);
                }
                mutableState3 = (androidx.compose.runtime.MutableState) objN3;
                objN4 = composerB.N();
                if (objN4 == companion.a()) {
                    objN4 = new androidx.compose.ui.focus.FocusRequester();
                    composerB.H(objN4);
                }
                focusRequester = (androidx.compose.ui.focus.FocusRequester) objN4;
                softwareKeyboardController = (androidx.compose.ui.platform.SoftwareKeyboardController) composerB.F(androidx.compose.ui.platform.CompositionLocalsKt.s());
                zP = composerB.P(context);
                objN5 = composerB.N();
                if (zP || objN5 == companion.a()) {
                    objN5 = new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.p0
                        public final java.lang.Object invoke(java.lang.Object obj) {
                            return java.lang.Boolean.valueOf(com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogKt.j(context, mutableState2, mutableState3, (java.lang.String) obj));
                        }
                    };
                    composerB.H(objN5);
                }
                function2 = (kotlin.jvm.functions.Function1) objN5;
                kotlin.Unit unit = kotlin.Unit.a;
                objN6 = composerB.N();
                z7 = z6;
                if (objN6 == companion.a()) {
                    objN6 = new com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogKt$SetVoiceNameDialogContent$1$1(focusRequester, null);
                    composerB.H(objN6);
                }
                androidx.compose.runtime.EffectsKt.g(unit, (kotlin.jvm.functions.Function2) objN6, composerB, 6);
                float f2 = 12;
                androidx.compose.ui.Modifier modifierD = androidx.compose.foundation.BackgroundKt.d(androidx.compose.ui.draw.ClipKt.a(modifier4, androidx.compose.foundation.shape.RoundedCornerShapeKt.d(androidx.compose.ui.unit.Dp.g(f2))), com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.b(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composerB, 0)), (androidx.compose.ui.graphics.Shape) null, 2, (java.lang.Object) null);
                objN7 = composerB.N();
                if (objN7 == companion.a()) {
                    objN7 = androidx.compose.foundation.interaction.InteractionSourceKt.a();
                    composerB.H(objN7);
                }
                androidx.compose.foundation.interaction.MutableInteractionSource mutableInteractionSource = (androidx.compose.foundation.interaction.MutableInteractionSource) objN7;
                zS = composerB.s(softwareKeyboardController);
                objN8 = composerB.N();
                if (zS || objN8 == companion.a()) {
                    objN8 = new kotlin.jvm.functions.Function0() { // from class: com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.q0
                        public final java.lang.Object invoke() {
                            return com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogKt.k(softwareKeyboardController, focusRequester);
                        }
                    };
                    composerB.H(objN8);
                }
                androidx.compose.ui.Modifier modifierL = androidx.compose.foundation.ClickableKt.l(modifierD, mutableInteractionSource, (androidx.compose.foundation.Indication) null, false, (java.lang.String) null, (androidx.compose.ui.semantics.Role) null, (kotlin.jvm.functions.Function0) objN8, 28, (java.lang.Object) null);
                float f3 = 16;
                androidx.compose.ui.Modifier modifier7 = modifier4;
                androidx.compose.ui.Modifier modifierN = androidx.compose.foundation.layout.PaddingKt.n(modifierL, androidx.compose.ui.unit.Dp.g(f3));
                androidx.compose.ui.Alignment.Companion companion3 = androidx.compose.ui.Alignment.a;
                androidx.compose.ui.layout.MeasurePolicy measurePolicyI = androidx.compose.foundation.layout.BoxKt.i(companion3.o(), false);
                iHashCode = java.lang.Long.hashCode(androidx.compose.runtime.ComposablesKt.b(composerB, 0));
                androidx.compose.runtime.CompositionLocalMap compositionLocalMapG = composerB.g();
                androidx.compose.ui.Modifier modifierE = androidx.compose.ui.ComposedModifierKt.e(composerB, modifierN);
                androidx.compose.ui.node.ComposeUiNode.Companion companion4 = androidx.compose.ui.node.ComposeUiNode.f0;
                i4 = i3;
                function0B = companion4.b();
                if (composerB.C() == null) {
                    androidx.compose.runtime.ComposablesKt.d();
                }
                composerB.l();
                if (composerB.A()) {
                    composerB.T(function0B);
                } else {
                    composerB.h();
                }
                composerC = androidx.compose.runtime.Updater.c(composerB);
                androidx.compose.runtime.Updater.k(composerC, measurePolicyI, companion4.d());
                androidx.compose.runtime.Updater.k(composerC, compositionLocalMapG, companion4.f());
                function2C = companion4.c();
                if (composerC.A() || !kotlin.jvm.internal.Intrinsics.g(composerC.N(), java.lang.Integer.valueOf(iHashCode))) {
                    composerC.H(java.lang.Integer.valueOf(iHashCode));
                    composerC.d(java.lang.Integer.valueOf(iHashCode), function2C);
                }
                androidx.compose.runtime.Updater.k(composerC, modifierE, companion4.e());
                androidx.compose.foundation.layout.BoxScopeInstance boxScopeInstance = androidx.compose.foundation.layout.BoxScopeInstance.a;
                androidx.compose.ui.Alignment.Horizontal horizontalG = companion3.g();
                androidx.compose.foundation.layout.Arrangement arrangement = androidx.compose.foundation.layout.Arrangement.a;
                float f4 = 8;
                androidx.compose.foundation.layout.Arrangement.HorizontalOrVertical horizontalOrVerticalR = arrangement.r(androidx.compose.ui.unit.Dp.g(f4));
                modifier5 = androidx.compose.ui.Modifier.c0;
                androidx.compose.ui.layout.MeasurePolicy measurePolicyA = androidx.compose.foundation.layout.ColumnKt.a(horizontalOrVerticalR, horizontalG, composerB, 54);
                iHashCode2 = java.lang.Long.hashCode(androidx.compose.runtime.ComposablesKt.b(composerB, 0));
                androidx.compose.runtime.CompositionLocalMap compositionLocalMapG2 = composerB.g();
                androidx.compose.ui.Modifier modifierE2 = androidx.compose.ui.ComposedModifierKt.e(composerB, modifier5);
                function0B2 = companion4.b();
                if (composerB.C() == null) {
                    androidx.compose.runtime.ComposablesKt.d();
                }
                composerB.l();
                if (composerB.A()) {
                    composerB.T(function0B2);
                } else {
                    composerB.h();
                }
                composerC2 = androidx.compose.runtime.Updater.c(composerB);
                androidx.compose.runtime.Updater.k(composerC2, measurePolicyA, companion4.d());
                androidx.compose.runtime.Updater.k(composerC2, compositionLocalMapG2, companion4.f());
                function2C2 = companion4.c();
                if (composerC2.A() || !kotlin.jvm.internal.Intrinsics.g(composerC2.N(), java.lang.Integer.valueOf(iHashCode2))) {
                    composerC2.H(java.lang.Integer.valueOf(iHashCode2));
                    composerC2.d(java.lang.Integer.valueOf(iHashCode2), function2C2);
                }
                androidx.compose.runtime.Updater.k(composerC2, modifierE2, companion4.e());
                androidx.compose.foundation.layout.ColumnScopeInstance columnScopeInstance = androidx.compose.foundation.layout.ColumnScopeInstance.a;
                androidx.compose.ui.layout.MeasurePolicy measurePolicyA2 = androidx.compose.foundation.layout.ColumnKt.a(arrangement.r(androidx.compose.ui.unit.Dp.g(f3)), companion3.g(), composerB, 54);
                iHashCode3 = java.lang.Long.hashCode(androidx.compose.runtime.ComposablesKt.b(composerB, 0));
                androidx.compose.runtime.CompositionLocalMap compositionLocalMapG3 = composerB.g();
                androidx.compose.ui.Modifier modifierE3 = androidx.compose.ui.ComposedModifierKt.e(composerB, modifier5);
                function0B3 = companion4.b();
                if (composerB.C() == null) {
                    androidx.compose.runtime.ComposablesKt.d();
                }
                composerB.l();
                if (composerB.A()) {
                    composerB.T(function0B3);
                } else {
                    composerB.h();
                }
                composerC3 = androidx.compose.runtime.Updater.c(composerB);
                androidx.compose.runtime.Updater.k(composerC3, measurePolicyA2, companion4.d());
                androidx.compose.runtime.Updater.k(composerC3, compositionLocalMapG3, companion4.f());
                function2C3 = companion4.c();
                if (composerC3.A() || !kotlin.jvm.internal.Intrinsics.g(composerC3.N(), java.lang.Integer.valueOf(iHashCode3))) {
                    composerC3.H(java.lang.Integer.valueOf(iHashCode3));
                    composerC3.d(java.lang.Integer.valueOf(iHashCode3), function2C3);
                }
                androidx.compose.runtime.Updater.k(composerC3, modifierE3, companion4.e());
                androidx.compose.ui.Modifier modifierH = androidx.compose.foundation.layout.SizeKt.h(modifier5, 0.0f, 1, (java.lang.Object) null);
                companion2 = androidx.compose.ui.graphics.Color.b;
                androidx.compose.ui.Modifier modifierD2 = androidx.compose.foundation.BackgroundKt.d(modifierH, companion2.g(), (androidx.compose.ui.graphics.Shape) null, 2, (java.lang.Object) null);
                androidx.compose.ui.layout.MeasurePolicy measurePolicyA3 = androidx.compose.foundation.layout.ColumnKt.a(arrangement.r(androidx.compose.ui.unit.Dp.g(10)), companion3.k(), composerB, 6);
                iHashCode4 = java.lang.Long.hashCode(androidx.compose.runtime.ComposablesKt.b(composerB, 0));
                androidx.compose.runtime.CompositionLocalMap compositionLocalMapG4 = composerB.g();
                androidx.compose.ui.Modifier modifierE4 = androidx.compose.ui.ComposedModifierKt.e(composerB, modifierD2);
                function0B4 = companion4.b();
                if (composerB.C() == null) {
                    androidx.compose.runtime.ComposablesKt.d();
                }
                composerB.l();
                if (composerB.A()) {
                    composerB.T(function0B4);
                } else {
                    composerB.h();
                }
                composerC4 = androidx.compose.runtime.Updater.c(composerB);
                androidx.compose.runtime.Updater.k(composerC4, measurePolicyA3, companion4.d());
                androidx.compose.runtime.Updater.k(composerC4, compositionLocalMapG4, companion4.f());
                function2C4 = companion4.c();
                if (composerC4.A() || !kotlin.jvm.internal.Intrinsics.g(composerC4.N(), java.lang.Integer.valueOf(iHashCode4))) {
                    composerC4.H(java.lang.Integer.valueOf(iHashCode4));
                    composerC4.d(java.lang.Integer.valueOf(iHashCode4), function2C4);
                }
                androidx.compose.runtime.Updater.k(composerC4, modifierE4, companion4.e());
                androidx.compose.ui.text.TextStyle textStyleH = com.vinfast.companion.corecompose.ui.theme.TypographyKt.h(com.vinfast.companion.corecompose.ui.theme.TypographyKt.q(composerB, 0));
                androidx.compose.ui.text.font.FontWeight.Companion companion5 = androidx.compose.ui.text.font.FontWeight.b;
                androidx.compose.ui.text.TextStyle textStyleC = androidx.compose.ui.text.TextStyle.c(textStyleH, 0L, 0L, companion5.b(), (androidx.compose.ui.text.font.FontStyle) null, (androidx.compose.ui.text.font.FontSynthesis) null, (androidx.compose.ui.text.font.FontFamily) null, (java.lang.String) null, 0L, (androidx.compose.ui.text.style.BaselineShift) null, (androidx.compose.ui.text.style.TextGeometricTransform) null, (androidx.compose.ui.text.intl.LocaleList) null, 0L, (androidx.compose.ui.text.style.TextDecoration) null, (androidx.compose.ui.graphics.Shadow) null, (androidx.compose.ui.graphics.drawscope.DrawStyle) null, 0, 0, 0L, (androidx.compose.ui.text.style.TextIndent) null, (androidx.compose.ui.text.PlatformTextStyle) null, (androidx.compose.ui.text.style.LineHeightStyle) null, 0, 0, (androidx.compose.ui.text.style.TextMotion) null, 16777211, (java.lang.Object) null);
                long jT = com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.t(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composerB, 0));
                androidx.compose.ui.text.style.TextAlign.Companion companion6 = androidx.compose.ui.text.style.TextAlign.b;
                androidx.compose.material3.TextKt.m(str, (androidx.compose.ui.Modifier) null, jT, 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.h(companion6.f()), 0L, 0, false, 0, 0, (kotlin.jvm.functions.Function1) null, textStyleC, composerB, (i4 >> 3) & 14, 0, 65018);
                androidx.compose.material3.TextKt.m(kotlin.collections.CollectionsKt.A0(kotlin.collections.CollectionsKt.r(new java.lang.String[]{androidx.compose.ui.res.StringResources_androidKt.a(com.vinfast.settings.R.string.feature_voicecloning_009, composerB, 0), androidx.compose.ui.res.StringResources_androidKt.a(com.vinfast.settings.R.string.feature_voicecloning_010, composerB, 0)}), "\n • ", " • ", (java.lang.CharSequence) null, 0, (java.lang.CharSequence) null, (kotlin.jvm.functions.Function1) null, 60, (java.lang.Object) null), (androidx.compose.ui.Modifier) null, com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.t(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composerB, 0)), 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.h(companion6.f()), 0L, 0, false, 0, 0, (kotlin.jvm.functions.Function1) null, com.vinfast.companion.corecompose.ui.theme.TypographyKt.b(com.vinfast.companion.corecompose.ui.theme.TypographyKt.q(composerB, 0)), composerB, 0, 0, 65018);
                composerB.j();
                androidx.compose.ui.layout.MeasurePolicy measurePolicyA4 = androidx.compose.foundation.layout.ColumnKt.a(arrangement.r(androidx.compose.ui.unit.Dp.g(4)), companion3.j(), composerB, 54);
                iHashCode5 = java.lang.Long.hashCode(androidx.compose.runtime.ComposablesKt.b(composerB, 0));
                androidx.compose.runtime.CompositionLocalMap compositionLocalMapG5 = composerB.g();
                androidx.compose.ui.Modifier modifierE5 = androidx.compose.ui.ComposedModifierKt.e(composerB, modifier5);
                function0B5 = companion4.b();
                if (composerB.C() == null) {
                    androidx.compose.runtime.ComposablesKt.d();
                }
                composerB.l();
                if (composerB.A()) {
                    composerB.T(function0B5);
                } else {
                    composerB.h();
                }
                composerC5 = androidx.compose.runtime.Updater.c(composerB);
                androidx.compose.runtime.Updater.k(composerC5, measurePolicyA4, companion4.d());
                androidx.compose.runtime.Updater.k(composerC5, compositionLocalMapG5, companion4.f());
                function2C5 = companion4.c();
                if (composerC5.A() || !kotlin.jvm.internal.Intrinsics.g(composerC5.N(), java.lang.Integer.valueOf(iHashCode5))) {
                    composerC5.H(java.lang.Integer.valueOf(iHashCode5));
                    composerC5.d(java.lang.Integer.valueOf(iHashCode5), function2C5);
                }
                androidx.compose.runtime.Updater.k(composerC5, modifierE5, companion4.e());
                androidx.compose.ui.Modifier modifierD3 = androidx.compose.foundation.BackgroundKt.d(androidx.compose.ui.draw.ClipKt.a(modifier5, androidx.compose.foundation.shape.RoundedCornerShapeKt.d(androidx.compose.ui.unit.Dp.g(f4))), com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.d(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composerB, 0)), (androidx.compose.ui.graphics.Shape) null, 2, (java.lang.Object) null);
                f = 1;
                float fG = androidx.compose.ui.unit.Dp.g(f);
                if (r(mutableState2)) {
                    composerB.t(1324155971);
                    jV = com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.r(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composerB, 0));
                } else {
                    composerB.t(1324156606);
                    jV = com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.v(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composerB, 0));
                }
                composerB.q();
                androidx.compose.ui.Modifier modifierN2 = androidx.compose.foundation.layout.PaddingKt.n(androidx.compose.foundation.BorderKt.h(modifierD3, fG, jV, androidx.compose.foundation.shape.RoundedCornerShapeKt.d(androidx.compose.ui.unit.Dp.g(f4))), androidx.compose.ui.unit.Dp.g(f2));
                androidx.compose.ui.layout.MeasurePolicy measurePolicyI2 = androidx.compose.foundation.layout.BoxKt.i(companion3.o(), false);
                iHashCode6 = java.lang.Long.hashCode(androidx.compose.runtime.ComposablesKt.b(composerB, 0));
                androidx.compose.runtime.CompositionLocalMap compositionLocalMapG6 = composerB.g();
                androidx.compose.ui.Modifier modifierE6 = androidx.compose.ui.ComposedModifierKt.e(composerB, modifierN2);
                function0B6 = companion4.b();
                if (composerB.C() == null) {
                    androidx.compose.runtime.ComposablesKt.d();
                }
                composerB.l();
                if (composerB.A()) {
                    composerB.T(function0B6);
                } else {
                    composerB.h();
                }
                composerC6 = androidx.compose.runtime.Updater.c(composerB);
                androidx.compose.runtime.Updater.k(composerC6, measurePolicyI2, companion4.d());
                androidx.compose.runtime.Updater.k(composerC6, compositionLocalMapG6, companion4.f());
                function2C6 = companion4.c();
                if (composerC6.A() || !kotlin.jvm.internal.Intrinsics.g(composerC6.N(), java.lang.Integer.valueOf(iHashCode6))) {
                    composerC6.H(java.lang.Integer.valueOf(iHashCode6));
                    composerC6.d(java.lang.Integer.valueOf(iHashCode6), function2C6);
                }
                androidx.compose.runtime.Updater.k(composerC6, modifierE6, companion4.e());
                androidx.compose.ui.text.input.TextFieldValue textFieldValueI = i(mutableState);
                androidx.compose.ui.Modifier modifierA = androidx.compose.ui.focus.FocusRequesterModifierKt.a(androidx.compose.foundation.layout.SizeKt.h(modifier5, 0.0f, 1, (java.lang.Object) null), focusRequester);
                androidx.compose.ui.text.TextStyle textStyleC2 = androidx.compose.ui.text.TextStyle.c(com.vinfast.companion.corecompose.ui.theme.TypographyKt.a(com.vinfast.companion.corecompose.ui.theme.TypographyKt.q(composerB, 0)), com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.t(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composerB, 0)), 0L, companion5.g(), (androidx.compose.ui.text.font.FontStyle) null, (androidx.compose.ui.text.font.FontSynthesis) null, (androidx.compose.ui.text.font.FontFamily) null, (java.lang.String) null, 0L, (androidx.compose.ui.text.style.BaselineShift) null, (androidx.compose.ui.text.style.TextGeometricTransform) null, (androidx.compose.ui.text.intl.LocaleList) null, 0L, (androidx.compose.ui.text.style.TextDecoration) null, (androidx.compose.ui.graphics.Shadow) null, (androidx.compose.ui.graphics.drawscope.DrawStyle) null, 0, 0, 0L, (androidx.compose.ui.text.style.TextIndent) null, (androidx.compose.ui.text.PlatformTextStyle) null, (androidx.compose.ui.text.style.LineHeightStyle) null, 0, 0, (androidx.compose.ui.text.style.TextMotion) null, 16777210, (java.lang.Object) null);
                androidx.compose.ui.graphics.SolidColor solidColor = new androidx.compose.ui.graphics.SolidColor(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.v(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composerB, 0)), (kotlin.jvm.internal.DefaultConstructorMarker) null);
                androidx.compose.foundation.text.KeyboardOptions keyboardOptions = new androidx.compose.foundation.text.KeyboardOptions(0, (java.lang.Boolean) null, 0, androidx.compose.ui.text.input.ImeAction.b.b(), (androidx.compose.ui.text.input.PlatformImeOptions) null, (java.lang.Boolean) null, (androidx.compose.ui.text.intl.LocaleList) null, 119, (kotlin.jvm.internal.DefaultConstructorMarker) null);
                boolean zS2 = composerB.s(softwareKeyboardController) | composerB.s(function2);
                i5 = i4 & 458752;
                if (i5 == 131072) {
                    z8 = true;
                } else {
                    z8 = false;
                }
                z9 = z8 | zS2;
                objN9 = composerB.N();
                if (z9 || objN9 == companion.a()) {
                    objN9 = new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.r0
                        public final java.lang.Object invoke(java.lang.Object obj) {
                            return com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogKt.l(softwareKeyboardController, function2, function1, mutableState, (androidx.compose.foundation.text.KeyboardActionScope) obj);
                        }
                    };
                    composerB.H(objN9);
                }
                androidx.compose.foundation.text.KeyboardActions keyboardActions = new androidx.compose.foundation.text.KeyboardActions((kotlin.jvm.functions.Function1) objN9, (kotlin.jvm.functions.Function1) null, (kotlin.jvm.functions.Function1) null, (kotlin.jvm.functions.Function1) null, (kotlin.jvm.functions.Function1) null, (kotlin.jvm.functions.Function1) null, 62, (kotlin.jvm.internal.DefaultConstructorMarker) null);
                objN10 = composerB.N();
                if (objN10 == companion.a()) {
                    mutableState4 = mutableState2;
                    objN10 = new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.s0
                        public final java.lang.Object invoke(java.lang.Object obj) {
                            return com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogKt.m(mutableState, mutableState4, mutableState3, (androidx.compose.ui.text.input.TextFieldValue) obj);
                        }
                    };
                    composerB.H(objN10);
                } else {
                    mutableState4 = mutableState2;
                }
                mutableState5 = mutableState4;
                androidx.compose.foundation.text.BasicTextFieldKt.y(textFieldValueI, (kotlin.jvm.functions.Function1) objN10, modifierA, false, false, textStyleC2, keyboardOptions, keyboardActions, true, 0, 0, (androidx.compose.ui.text.input.VisualTransformation) null, (kotlin.jvm.functions.Function1) null, (androidx.compose.foundation.interaction.MutableInteractionSource) null, solidColor, androidx.compose.runtime.internal.ComposableLambdaKt.e(-884732651, true, new kotlin.jvm.functions.Function3() { // from class: com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.t0
                    public final java.lang.Object invoke(java.lang.Object obj, java.lang.Object obj2, java.lang.Object obj3) {
                        return com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogKt.n(mutableState, (kotlin.jvm.functions.Function2) obj, (androidx.compose.runtime.Composer) obj2, ((java.lang.Integer) obj3).intValue());
                    }
                }, composerB, 54), composerB, 102236208, 196608, 15896);
                composerB.j();
                java.lang.String strT = t(mutableState3);
                androidx.compose.ui.text.TextStyle textStyleC3 = com.vinfast.companion.corecompose.ui.theme.TypographyKt.c(com.vinfast.companion.corecompose.ui.theme.TypographyKt.q(composerB, 0));
                long jR = com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.r(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composerB, 0));
                androidx.compose.ui.Modifier modifierH2 = androidx.compose.foundation.layout.SizeKt.h(modifier5, 0.0f, 1, (java.lang.Object) null);
                if (r(mutableState5) || t(mutableState3).length() <= 0) {
                    z10 = false;
                } else {
                    z10 = true;
                }
                androidx.compose.material3.TextKt.m(strT, com.vinfast.companion.corecompose.extensions.ModifierExtensionKt.L(modifierH2, z10), jR, 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, textStyleC3, composerB, 0, 0, 65528);
                composer3 = composerB;
                composer3.j();
                composer3.j();
                androidx.compose.ui.Modifier modifierH3 = androidx.compose.foundation.layout.SizeKt.h(modifier5, 0.0f, 1, (java.lang.Object) null);
                androidx.compose.ui.layout.MeasurePolicy measurePolicyB = androidx.compose.foundation.layout.RowKt.b(arrangement.r(androidx.compose.ui.unit.Dp.g(f3)), companion3.l(), composer3, 6);
                iHashCode7 = java.lang.Long.hashCode(androidx.compose.runtime.ComposablesKt.b(composer3, 0));
                androidx.compose.runtime.CompositionLocalMap compositionLocalMapG7 = composer3.g();
                androidx.compose.ui.Modifier modifierE7 = androidx.compose.ui.ComposedModifierKt.e(composer3, modifierH3);
                function0B7 = companion4.b();
                if (composer3.C() == null) {
                    androidx.compose.runtime.ComposablesKt.d();
                }
                composer3.l();
                if (composer3.A()) {
                    composer3.T(function0B7);
                } else {
                    composer3.h();
                }
                composerC7 = androidx.compose.runtime.Updater.c(composer3);
                androidx.compose.runtime.Updater.k(composerC7, measurePolicyB, companion4.d());
                androidx.compose.runtime.Updater.k(composerC7, compositionLocalMapG7, companion4.f());
                function2C7 = companion4.c();
                if (composerC7.A() || !kotlin.jvm.internal.Intrinsics.g(composerC7.N(), java.lang.Integer.valueOf(iHashCode7))) {
                    composerC7.H(java.lang.Integer.valueOf(iHashCode7));
                    composerC7.d(java.lang.Integer.valueOf(iHashCode7), function2C7);
                }
                androidx.compose.runtime.Updater.k(composerC7, modifierE7, companion4.e());
                rowScopeInstance = androidx.compose.foundation.layout.RowScopeInstance.a;
                if (z7) {
                    composer3.t(764028282);
                    modifier6 = modifier5;
                    androidx.compose.material3.ButtonKt.e(function0, androidx.compose.foundation.layout.SizeKt.i(androidx.compose.foundation.layout.RowScope.c(rowScopeInstance, modifier6, 1.0f, false, 2, (java.lang.Object) null), androidx.compose.ui.unit.Dp.g(44)), false, androidx.compose.foundation.shape.RoundedCornerShapeKt.d(androidx.compose.ui.unit.Dp.g(26)), androidx.compose.material3.ButtonDefaults.a.b(companion2.g(), 0L, 0L, 0L, composer3, (androidx.compose.material3.ButtonDefaults.r << 12) | 6, 14), (androidx.compose.material3.ButtonElevation) null, androidx.compose.foundation.BorderStrokeKt.a(androidx.compose.ui.unit.Dp.g(f), companion2.i()), (androidx.compose.foundation.layout.PaddingValues) null, (androidx.compose.foundation.interaction.MutableInteractionSource) null, com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.ComposableSingletons$SetVoiceNameDialogKt.a.i(), composer3, ((i4 >> 12) & 14) | 806879232, 420);
                    composer3 = composer3;
                } else {
                    modifier6 = modifier5;
                    composer3.t(752836011);
                }
                composer3.q();
                boolean zS3 = composer3.s(softwareKeyboardController) | composer3.s(function2);
                if (i5 == 131072) {
                    z11 = true;
                } else {
                    z11 = false;
                }
                z12 = zS3 | z11;
                objN11 = composer3.N();
                if (z12 || objN11 == companion.a()) {
                    objN11 = new kotlin.jvm.functions.Function0() { // from class: com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.u0
                        public final java.lang.Object invoke() {
                            return com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogKt.o(softwareKeyboardController, function2, function1, mutableState);
                        }
                    };
                    composer3.H(objN11);
                }
                androidx.compose.runtime.Composer composer4 = composer3;
                composer2 = composer4;
                androidx.compose.material3.ButtonKt.e(com.vinfast.companion.corecompose.compose.ButtonKt.l((kotlin.jvm.functions.Function0) objN11), androidx.compose.foundation.layout.SizeKt.i(androidx.compose.foundation.layout.RowScope.c(rowScopeInstance, modifier6, 1.0f, false, 2, (java.lang.Object) null), androidx.compose.ui.unit.Dp.g(44)), false, androidx.compose.foundation.shape.RoundedCornerShapeKt.d(androidx.compose.ui.unit.Dp.g(26)), androidx.compose.material3.ButtonDefaults.a.b(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.v(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composer3, 0)), 0L, 0L, 0L, composer4, androidx.compose.material3.ButtonDefaults.r << 12, 14), (androidx.compose.material3.ButtonElevation) null, (androidx.compose.foundation.BorderStroke) null, (androidx.compose.foundation.layout.PaddingValues) null, (androidx.compose.foundation.interaction.MutableInteractionSource) null, com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.ComposableSingletons$SetVoiceNameDialogKt.a.j(), composer2, 805306368, 484);
                composer2.j();
                composer2.j();
                composer2.j();
                if (androidx.compose.runtime.ComposerKt.m()) {
                    androidx.compose.runtime.ComposerKt.p();
                }
                z5 = z7;
                modifier3 = modifier7;
            } else {
                composer2 = composerB;
                composer2.n();
                modifier3 = modifier2;
                z5 = z2;
            }
            scopeUpdateScopeD = composer2.D();
            if (scopeUpdateScopeD != null) {
                scopeUpdateScopeD.a(new kotlin.jvm.functions.Function2() { // from class: com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.v0
                    public final java.lang.Object invoke(java.lang.Object obj, java.lang.Object obj2) {
                        return com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogKt.p(modifier3, str, str2, z5, function0, function1, i, i2, (androidx.compose.runtime.Composer) obj, ((java.lang.Integer) obj2).intValue());
                    }
                });
            }
        }
        i3 |= 3072;
        z2 = z;
        if ((i & 24576) != 0) {
            if (composerB.P(function0)) {
                i7 = 16384;
            } else {
                i7 = 8192;
            }
            i3 |= i7;
        }
        if ((196608 & i) == 0) {
            if (composerB.P(function1)) {
                i6 = 131072;
            } else {
                i6 = 65536;
            }
            i3 |= i6;
        }
        if ((74899 & i3) != 74898) {
            z3 = true;
        } else {
            z3 = false;
        }
        if (composerB.f(z3, i3 & 1)) {
            if (i8 != 0) {
                modifier4 = androidx.compose.ui.Modifier.c0;
            } else {
                modifier4 = modifier2;
            }
            if (i9 != 0) {
                z6 = false;
            } else {
                z6 = z2;
            }
            if (androidx.compose.runtime.ComposerKt.m()) {
                androidx.compose.runtime.ComposerKt.q(-695161097, i3, -1, "com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogContent (SetVoiceNameDialog.kt:105)");
            }
            context = (android.content.Context) composerB.F(androidx.compose.ui.platform.AndroidCompositionLocals_androidKt.d());
            objN = composerB.N();
            companion = androidx.compose.runtime.Composer.a;
            if (objN == companion.a()) {
                if (kotlin.text.StringsKt.v0(str3)) {
                    java.lang.String string2 = context.getString(com.vinfast.settings.R.string.feature_voicecloning_066);
                    kotlin.jvm.internal.Intrinsics.k(string2, "getString(...)");
                    str4 = string2;
                } else {
                    str4 = str3;
                }
                androidx.compose.ui.text.input.TextFieldValue textFieldValue2 = new androidx.compose.ui.text.input.TextFieldValue(str4, 0L, (androidx.compose.ui.text.TextRange) null, 6, (kotlin.jvm.internal.DefaultConstructorMarker) null);
                objN = androidx.compose.runtime.SnapshotStateKt.j(androidx.compose.ui.text.input.TextFieldValue.h(textFieldValue2, (androidx.compose.ui.text.AnnotatedString) null, androidx.compose.ui.text.TextRangeKt.a(textFieldValue2.m().length()), (androidx.compose.ui.text.TextRange) null, 5, (java.lang.Object) null), (androidx.compose.runtime.SnapshotMutationPolicy) null, 2, (java.lang.Object) null);
                composerB.H(objN);
            }
            mutableState = (androidx.compose.runtime.MutableState) objN;
            objN2 = composerB.N();
            if (objN2 == companion.a()) {
                objN2 = androidx.compose.runtime.SnapshotStateKt.j(java.lang.Boolean.FALSE, (androidx.compose.runtime.SnapshotMutationPolicy) null, 2, (java.lang.Object) null);
                composerB.H(objN2);
            }
            mutableState2 = (androidx.compose.runtime.MutableState) objN2;
            objN3 = composerB.N();
            if (objN3 == companion.a()) {
                objN3 = androidx.compose.runtime.SnapshotStateKt.j("", (androidx.compose.runtime.SnapshotMutationPolicy) null, 2, (java.lang.Object) null);
                composerB.H(objN3);
            }
            mutableState3 = (androidx.compose.runtime.MutableState) objN3;
            objN4 = composerB.N();
            if (objN4 == companion.a()) {
                objN4 = new androidx.compose.ui.focus.FocusRequester();
                composerB.H(objN4);
            }
            focusRequester = (androidx.compose.ui.focus.FocusRequester) objN4;
            softwareKeyboardController = (androidx.compose.ui.platform.SoftwareKeyboardController) composerB.F(androidx.compose.ui.platform.CompositionLocalsKt.s());
            zP = composerB.P(context);
            objN5 = composerB.N();
            if (zP) {
                objN5 = new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.p0
                    public final java.lang.Object invoke(java.lang.Object obj) {
                        return java.lang.Boolean.valueOf(com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogKt.j(context, mutableState2, mutableState3, (java.lang.String) obj));
                    }
                };
                composerB.H(objN5);
            } else {
                objN5 = new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.p0
                    public final java.lang.Object invoke(java.lang.Object obj) {
                        return java.lang.Boolean.valueOf(com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogKt.j(context, mutableState2, mutableState3, (java.lang.String) obj));
                    }
                };
                composerB.H(objN5);
            }
            function2 = (kotlin.jvm.functions.Function1) objN5;
            kotlin.Unit unit2 = kotlin.Unit.a;
            objN6 = composerB.N();
            z7 = z6;
            if (objN6 == companion.a()) {
                objN6 = new com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogKt$SetVoiceNameDialogContent$1$1(focusRequester, null);
                composerB.H(objN6);
            }
            androidx.compose.runtime.EffectsKt.g(unit2, (kotlin.jvm.functions.Function2) objN6, composerB, 6);
            float f6 = 12;
            androidx.compose.ui.Modifier modifierD4 = androidx.compose.foundation.BackgroundKt.d(androidx.compose.ui.draw.ClipKt.a(modifier4, androidx.compose.foundation.shape.RoundedCornerShapeKt.d(androidx.compose.ui.unit.Dp.g(f6))), com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.b(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composerB, 0)), (androidx.compose.ui.graphics.Shape) null, 2, (java.lang.Object) null);
            objN7 = composerB.N();
            if (objN7 == companion.a()) {
                objN7 = androidx.compose.foundation.interaction.InteractionSourceKt.a();
                composerB.H(objN7);
            }
            androidx.compose.foundation.interaction.MutableInteractionSource mutableInteractionSource2 = (androidx.compose.foundation.interaction.MutableInteractionSource) objN7;
            zS = composerB.s(softwareKeyboardController);
            objN8 = composerB.N();
            if (zS) {
                objN8 = new kotlin.jvm.functions.Function0() { // from class: com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.q0
                    public final java.lang.Object invoke() {
                        return com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogKt.k(softwareKeyboardController, focusRequester);
                    }
                };
                composerB.H(objN8);
            } else {
                objN8 = new kotlin.jvm.functions.Function0() { // from class: com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.q0
                    public final java.lang.Object invoke() {
                        return com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogKt.k(softwareKeyboardController, focusRequester);
                    }
                };
                composerB.H(objN8);
            }
            androidx.compose.ui.Modifier modifierL2 = androidx.compose.foundation.ClickableKt.l(modifierD4, mutableInteractionSource2, (androidx.compose.foundation.Indication) null, false, (java.lang.String) null, (androidx.compose.ui.semantics.Role) null, (kotlin.jvm.functions.Function0) objN8, 28, (java.lang.Object) null);
            float f7 = 16;
            androidx.compose.ui.Modifier modifier8 = modifier4;
            androidx.compose.ui.Modifier modifierN3 = androidx.compose.foundation.layout.PaddingKt.n(modifierL2, androidx.compose.ui.unit.Dp.g(f7));
            androidx.compose.ui.Alignment.Companion companion7 = androidx.compose.ui.Alignment.a;
            androidx.compose.ui.layout.MeasurePolicy measurePolicyI3 = androidx.compose.foundation.layout.BoxKt.i(companion7.o(), false);
            iHashCode = java.lang.Long.hashCode(androidx.compose.runtime.ComposablesKt.b(composerB, 0));
            androidx.compose.runtime.CompositionLocalMap compositionLocalMapG8 = composerB.g();
            androidx.compose.ui.Modifier modifierE8 = androidx.compose.ui.ComposedModifierKt.e(composerB, modifierN3);
            androidx.compose.ui.node.ComposeUiNode.Companion companion8 = androidx.compose.ui.node.ComposeUiNode.f0;
            i4 = i3;
            function0B = companion8.b();
            if (composerB.C() == null) {
                androidx.compose.runtime.ComposablesKt.d();
            }
            composerB.l();
            if (composerB.A()) {
                composerB.T(function0B);
            } else {
                composerB.h();
            }
            composerC = androidx.compose.runtime.Updater.c(composerB);
            androidx.compose.runtime.Updater.k(composerC, measurePolicyI3, companion8.d());
            androidx.compose.runtime.Updater.k(composerC, compositionLocalMapG8, companion8.f());
            function2C = companion8.c();
            if (composerC.A()) {
                composerC.H(java.lang.Integer.valueOf(iHashCode));
                composerC.d(java.lang.Integer.valueOf(iHashCode), function2C);
            } else {
                composerC.H(java.lang.Integer.valueOf(iHashCode));
                composerC.d(java.lang.Integer.valueOf(iHashCode), function2C);
            }
            androidx.compose.runtime.Updater.k(composerC, modifierE8, companion8.e());
            androidx.compose.foundation.layout.BoxScopeInstance boxScopeInstance2 = androidx.compose.foundation.layout.BoxScopeInstance.a;
            androidx.compose.ui.Alignment.Horizontal horizontalG2 = companion7.g();
            androidx.compose.foundation.layout.Arrangement arrangement2 = androidx.compose.foundation.layout.Arrangement.a;
            float f8 = 8;
            androidx.compose.foundation.layout.Arrangement.HorizontalOrVertical horizontalOrVerticalR2 = arrangement2.r(androidx.compose.ui.unit.Dp.g(f8));
            modifier5 = androidx.compose.ui.Modifier.c0;
            androidx.compose.ui.layout.MeasurePolicy measurePolicyA5 = androidx.compose.foundation.layout.ColumnKt.a(horizontalOrVerticalR2, horizontalG2, composerB, 54);
            iHashCode2 = java.lang.Long.hashCode(androidx.compose.runtime.ComposablesKt.b(composerB, 0));
            androidx.compose.runtime.CompositionLocalMap compositionLocalMapG9 = composerB.g();
            androidx.compose.ui.Modifier modifierE9 = androidx.compose.ui.ComposedModifierKt.e(composerB, modifier5);
            function0B2 = companion8.b();
            if (composerB.C() == null) {
                androidx.compose.runtime.ComposablesKt.d();
            }
            composerB.l();
            if (composerB.A()) {
                composerB.T(function0B2);
            } else {
                composerB.h();
            }
            composerC2 = androidx.compose.runtime.Updater.c(composerB);
            androidx.compose.runtime.Updater.k(composerC2, measurePolicyA5, companion8.d());
            androidx.compose.runtime.Updater.k(composerC2, compositionLocalMapG9, companion8.f());
            function2C2 = companion8.c();
            if (composerC2.A()) {
                composerC2.H(java.lang.Integer.valueOf(iHashCode2));
                composerC2.d(java.lang.Integer.valueOf(iHashCode2), function2C2);
            } else {
                composerC2.H(java.lang.Integer.valueOf(iHashCode2));
                composerC2.d(java.lang.Integer.valueOf(iHashCode2), function2C2);
            }
            androidx.compose.runtime.Updater.k(composerC2, modifierE9, companion8.e());
            androidx.compose.foundation.layout.ColumnScopeInstance columnScopeInstance2 = androidx.compose.foundation.layout.ColumnScopeInstance.a;
            androidx.compose.ui.layout.MeasurePolicy measurePolicyA6 = androidx.compose.foundation.layout.ColumnKt.a(arrangement2.r(androidx.compose.ui.unit.Dp.g(f7)), companion7.g(), composerB, 54);
            iHashCode3 = java.lang.Long.hashCode(androidx.compose.runtime.ComposablesKt.b(composerB, 0));
            androidx.compose.runtime.CompositionLocalMap compositionLocalMapG10 = composerB.g();
            androidx.compose.ui.Modifier modifierE10 = androidx.compose.ui.ComposedModifierKt.e(composerB, modifier5);
            function0B3 = companion8.b();
            if (composerB.C() == null) {
                androidx.compose.runtime.ComposablesKt.d();
            }
            composerB.l();
            if (composerB.A()) {
                composerB.T(function0B3);
            } else {
                composerB.h();
            }
            composerC3 = androidx.compose.runtime.Updater.c(composerB);
            androidx.compose.runtime.Updater.k(composerC3, measurePolicyA6, companion8.d());
            androidx.compose.runtime.Updater.k(composerC3, compositionLocalMapG10, companion8.f());
            function2C3 = companion8.c();
            if (composerC3.A()) {
                composerC3.H(java.lang.Integer.valueOf(iHashCode3));
                composerC3.d(java.lang.Integer.valueOf(iHashCode3), function2C3);
            } else {
                composerC3.H(java.lang.Integer.valueOf(iHashCode3));
                composerC3.d(java.lang.Integer.valueOf(iHashCode3), function2C3);
            }
            androidx.compose.runtime.Updater.k(composerC3, modifierE10, companion8.e());
            androidx.compose.ui.Modifier modifierH4 = androidx.compose.foundation.layout.SizeKt.h(modifier5, 0.0f, 1, (java.lang.Object) null);
            companion2 = androidx.compose.ui.graphics.Color.b;
            androidx.compose.ui.Modifier modifierD5 = androidx.compose.foundation.BackgroundKt.d(modifierH4, companion2.g(), (androidx.compose.ui.graphics.Shape) null, 2, (java.lang.Object) null);
            androidx.compose.ui.layout.MeasurePolicy measurePolicyA7 = androidx.compose.foundation.layout.ColumnKt.a(arrangement2.r(androidx.compose.ui.unit.Dp.g(10)), companion7.k(), composerB, 6);
            iHashCode4 = java.lang.Long.hashCode(androidx.compose.runtime.ComposablesKt.b(composerB, 0));
            androidx.compose.runtime.CompositionLocalMap compositionLocalMapG11 = composerB.g();
            androidx.compose.ui.Modifier modifierE11 = androidx.compose.ui.ComposedModifierKt.e(composerB, modifierD5);
            function0B4 = companion8.b();
            if (composerB.C() == null) {
                androidx.compose.runtime.ComposablesKt.d();
            }
            composerB.l();
            if (composerB.A()) {
                composerB.T(function0B4);
            } else {
                composerB.h();
            }
            composerC4 = androidx.compose.runtime.Updater.c(composerB);
            androidx.compose.runtime.Updater.k(composerC4, measurePolicyA7, companion8.d());
            androidx.compose.runtime.Updater.k(composerC4, compositionLocalMapG11, companion8.f());
            function2C4 = companion8.c();
            if (composerC4.A()) {
                composerC4.H(java.lang.Integer.valueOf(iHashCode4));
                composerC4.d(java.lang.Integer.valueOf(iHashCode4), function2C4);
            } else {
                composerC4.H(java.lang.Integer.valueOf(iHashCode4));
                composerC4.d(java.lang.Integer.valueOf(iHashCode4), function2C4);
            }
            androidx.compose.runtime.Updater.k(composerC4, modifierE11, companion8.e());
            androidx.compose.ui.text.TextStyle textStyleH2 = com.vinfast.companion.corecompose.ui.theme.TypographyKt.h(com.vinfast.companion.corecompose.ui.theme.TypographyKt.q(composerB, 0));
            androidx.compose.ui.text.font.FontWeight.Companion companion9 = androidx.compose.ui.text.font.FontWeight.b;
            androidx.compose.ui.text.TextStyle textStyleC4 = androidx.compose.ui.text.TextStyle.c(textStyleH2, 0L, 0L, companion9.b(), (androidx.compose.ui.text.font.FontStyle) null, (androidx.compose.ui.text.font.FontSynthesis) null, (androidx.compose.ui.text.font.FontFamily) null, (java.lang.String) null, 0L, (androidx.compose.ui.text.style.BaselineShift) null, (androidx.compose.ui.text.style.TextGeometricTransform) null, (androidx.compose.ui.text.intl.LocaleList) null, 0L, (androidx.compose.ui.text.style.TextDecoration) null, (androidx.compose.ui.graphics.Shadow) null, (androidx.compose.ui.graphics.drawscope.DrawStyle) null, 0, 0, 0L, (androidx.compose.ui.text.style.TextIndent) null, (androidx.compose.ui.text.PlatformTextStyle) null, (androidx.compose.ui.text.style.LineHeightStyle) null, 0, 0, (androidx.compose.ui.text.style.TextMotion) null, 16777211, (java.lang.Object) null);
            long jT2 = com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.t(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composerB, 0));
            androidx.compose.ui.text.style.TextAlign.Companion companion10 = androidx.compose.ui.text.style.TextAlign.b;
            androidx.compose.material3.TextKt.m(str, (androidx.compose.ui.Modifier) null, jT2, 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.h(companion10.f()), 0L, 0, false, 0, 0, (kotlin.jvm.functions.Function1) null, textStyleC4, composerB, (i4 >> 3) & 14, 0, 65018);
            androidx.compose.material3.TextKt.m(kotlin.collections.CollectionsKt.A0(kotlin.collections.CollectionsKt.r(new java.lang.String[]{androidx.compose.ui.res.StringResources_androidKt.a(com.vinfast.settings.R.string.feature_voicecloning_009, composerB, 0), androidx.compose.ui.res.StringResources_androidKt.a(com.vinfast.settings.R.string.feature_voicecloning_010, composerB, 0)}), "\n • ", " • ", (java.lang.CharSequence) null, 0, (java.lang.CharSequence) null, (kotlin.jvm.functions.Function1) null, 60, (java.lang.Object) null), (androidx.compose.ui.Modifier) null, com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.t(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composerB, 0)), 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.h(companion10.f()), 0L, 0, false, 0, 0, (kotlin.jvm.functions.Function1) null, com.vinfast.companion.corecompose.ui.theme.TypographyKt.b(com.vinfast.companion.corecompose.ui.theme.TypographyKt.q(composerB, 0)), composerB, 0, 0, 65018);
            composerB.j();
            androidx.compose.ui.layout.MeasurePolicy measurePolicyA8 = androidx.compose.foundation.layout.ColumnKt.a(arrangement2.r(androidx.compose.ui.unit.Dp.g(4)), companion7.j(), composerB, 54);
            iHashCode5 = java.lang.Long.hashCode(androidx.compose.runtime.ComposablesKt.b(composerB, 0));
            androidx.compose.runtime.CompositionLocalMap compositionLocalMapG12 = composerB.g();
            androidx.compose.ui.Modifier modifierE12 = androidx.compose.ui.ComposedModifierKt.e(composerB, modifier5);
            function0B5 = companion8.b();
            if (composerB.C() == null) {
                androidx.compose.runtime.ComposablesKt.d();
            }
            composerB.l();
            if (composerB.A()) {
                composerB.T(function0B5);
            } else {
                composerB.h();
            }
            composerC5 = androidx.compose.runtime.Updater.c(composerB);
            androidx.compose.runtime.Updater.k(composerC5, measurePolicyA8, companion8.d());
            androidx.compose.runtime.Updater.k(composerC5, compositionLocalMapG12, companion8.f());
            function2C5 = companion8.c();
            if (composerC5.A()) {
                composerC5.H(java.lang.Integer.valueOf(iHashCode5));
                composerC5.d(java.lang.Integer.valueOf(iHashCode5), function2C5);
            } else {
                composerC5.H(java.lang.Integer.valueOf(iHashCode5));
                composerC5.d(java.lang.Integer.valueOf(iHashCode5), function2C5);
            }
            androidx.compose.runtime.Updater.k(composerC5, modifierE12, companion8.e());
            androidx.compose.ui.Modifier modifierD6 = androidx.compose.foundation.BackgroundKt.d(androidx.compose.ui.draw.ClipKt.a(modifier5, androidx.compose.foundation.shape.RoundedCornerShapeKt.d(androidx.compose.ui.unit.Dp.g(f8))), com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.d(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composerB, 0)), (androidx.compose.ui.graphics.Shape) null, 2, (java.lang.Object) null);
            f = 1;
            float fG2 = androidx.compose.ui.unit.Dp.g(f);
            if (r(mutableState2)) {
                composerB.t(1324155971);
                jV = com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.r(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composerB, 0));
            } else {
                composerB.t(1324156606);
                jV = com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.v(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composerB, 0));
            }
            composerB.q();
            androidx.compose.ui.Modifier modifierN4 = androidx.compose.foundation.layout.PaddingKt.n(androidx.compose.foundation.BorderKt.h(modifierD6, fG2, jV, androidx.compose.foundation.shape.RoundedCornerShapeKt.d(androidx.compose.ui.unit.Dp.g(f8))), androidx.compose.ui.unit.Dp.g(f6));
            androidx.compose.ui.layout.MeasurePolicy measurePolicyI4 = androidx.compose.foundation.layout.BoxKt.i(companion7.o(), false);
            iHashCode6 = java.lang.Long.hashCode(androidx.compose.runtime.ComposablesKt.b(composerB, 0));
            androidx.compose.runtime.CompositionLocalMap compositionLocalMapG13 = composerB.g();
            androidx.compose.ui.Modifier modifierE13 = androidx.compose.ui.ComposedModifierKt.e(composerB, modifierN4);
            function0B6 = companion8.b();
            if (composerB.C() == null) {
                androidx.compose.runtime.ComposablesKt.d();
            }
            composerB.l();
            if (composerB.A()) {
                composerB.T(function0B6);
            } else {
                composerB.h();
            }
            composerC6 = androidx.compose.runtime.Updater.c(composerB);
            androidx.compose.runtime.Updater.k(composerC6, measurePolicyI4, companion8.d());
            androidx.compose.runtime.Updater.k(composerC6, compositionLocalMapG13, companion8.f());
            function2C6 = companion8.c();
            if (composerC6.A()) {
                composerC6.H(java.lang.Integer.valueOf(iHashCode6));
                composerC6.d(java.lang.Integer.valueOf(iHashCode6), function2C6);
            } else {
                composerC6.H(java.lang.Integer.valueOf(iHashCode6));
                composerC6.d(java.lang.Integer.valueOf(iHashCode6), function2C6);
            }
            androidx.compose.runtime.Updater.k(composerC6, modifierE13, companion8.e());
            androidx.compose.ui.text.input.TextFieldValue textFieldValueI2 = i(mutableState);
            androidx.compose.ui.Modifier modifierA2 = androidx.compose.ui.focus.FocusRequesterModifierKt.a(androidx.compose.foundation.layout.SizeKt.h(modifier5, 0.0f, 1, (java.lang.Object) null), focusRequester);
            androidx.compose.ui.text.TextStyle textStyleC5 = androidx.compose.ui.text.TextStyle.c(com.vinfast.companion.corecompose.ui.theme.TypographyKt.a(com.vinfast.companion.corecompose.ui.theme.TypographyKt.q(composerB, 0)), com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.t(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composerB, 0)), 0L, companion9.g(), (androidx.compose.ui.text.font.FontStyle) null, (androidx.compose.ui.text.font.FontSynthesis) null, (androidx.compose.ui.text.font.FontFamily) null, (java.lang.String) null, 0L, (androidx.compose.ui.text.style.BaselineShift) null, (androidx.compose.ui.text.style.TextGeometricTransform) null, (androidx.compose.ui.text.intl.LocaleList) null, 0L, (androidx.compose.ui.text.style.TextDecoration) null, (androidx.compose.ui.graphics.Shadow) null, (androidx.compose.ui.graphics.drawscope.DrawStyle) null, 0, 0, 0L, (androidx.compose.ui.text.style.TextIndent) null, (androidx.compose.ui.text.PlatformTextStyle) null, (androidx.compose.ui.text.style.LineHeightStyle) null, 0, 0, (androidx.compose.ui.text.style.TextMotion) null, 16777210, (java.lang.Object) null);
            androidx.compose.ui.graphics.SolidColor solidColor2 = new androidx.compose.ui.graphics.SolidColor(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.v(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composerB, 0)), (kotlin.jvm.internal.DefaultConstructorMarker) null);
            androidx.compose.foundation.text.KeyboardOptions keyboardOptions2 = new androidx.compose.foundation.text.KeyboardOptions(0, (java.lang.Boolean) null, 0, androidx.compose.ui.text.input.ImeAction.b.b(), (androidx.compose.ui.text.input.PlatformImeOptions) null, (java.lang.Boolean) null, (androidx.compose.ui.text.intl.LocaleList) null, 119, (kotlin.jvm.internal.DefaultConstructorMarker) null);
            boolean zS4 = composerB.s(softwareKeyboardController) | composerB.s(function2);
            i5 = i4 & 458752;
            if (i5 == 131072) {
                z8 = true;
            } else {
                z8 = false;
            }
            z9 = z8 | zS4;
            objN9 = composerB.N();
            if (z9) {
                objN9 = new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.r0
                    public final java.lang.Object invoke(java.lang.Object obj) {
                        return com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogKt.l(softwareKeyboardController, function2, function1, mutableState, (androidx.compose.foundation.text.KeyboardActionScope) obj);
                    }
                };
                composerB.H(objN9);
            } else {
                objN9 = new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.r0
                    public final java.lang.Object invoke(java.lang.Object obj) {
                        return com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogKt.l(softwareKeyboardController, function2, function1, mutableState, (androidx.compose.foundation.text.KeyboardActionScope) obj);
                    }
                };
                composerB.H(objN9);
            }
            androidx.compose.foundation.text.KeyboardActions keyboardActions2 = new androidx.compose.foundation.text.KeyboardActions((kotlin.jvm.functions.Function1) objN9, (kotlin.jvm.functions.Function1) null, (kotlin.jvm.functions.Function1) null, (kotlin.jvm.functions.Function1) null, (kotlin.jvm.functions.Function1) null, (kotlin.jvm.functions.Function1) null, 62, (kotlin.jvm.internal.DefaultConstructorMarker) null);
            objN10 = composerB.N();
            if (objN10 == companion.a()) {
                mutableState4 = mutableState2;
                objN10 = new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.s0
                    public final java.lang.Object invoke(java.lang.Object obj) {
                        return com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogKt.m(mutableState, mutableState4, mutableState3, (androidx.compose.ui.text.input.TextFieldValue) obj);
                    }
                };
                composerB.H(objN10);
            } else {
                mutableState4 = mutableState2;
            }
            mutableState5 = mutableState4;
            androidx.compose.foundation.text.BasicTextFieldKt.y(textFieldValueI2, (kotlin.jvm.functions.Function1) objN10, modifierA2, false, false, textStyleC5, keyboardOptions2, keyboardActions2, true, 0, 0, (androidx.compose.ui.text.input.VisualTransformation) null, (kotlin.jvm.functions.Function1) null, (androidx.compose.foundation.interaction.MutableInteractionSource) null, solidColor2, androidx.compose.runtime.internal.ComposableLambdaKt.e(-884732651, true, new kotlin.jvm.functions.Function3() { // from class: com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.t0
                public final java.lang.Object invoke(java.lang.Object obj, java.lang.Object obj2, java.lang.Object obj3) {
                    return com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogKt.n(mutableState, (kotlin.jvm.functions.Function2) obj, (androidx.compose.runtime.Composer) obj2, ((java.lang.Integer) obj3).intValue());
                }
            }, composerB, 54), composerB, 102236208, 196608, 15896);
            composerB.j();
            java.lang.String strT2 = t(mutableState3);
            androidx.compose.ui.text.TextStyle textStyleC6 = com.vinfast.companion.corecompose.ui.theme.TypographyKt.c(com.vinfast.companion.corecompose.ui.theme.TypographyKt.q(composerB, 0));
            long jR2 = com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.r(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composerB, 0));
            androidx.compose.ui.Modifier modifierH5 = androidx.compose.foundation.layout.SizeKt.h(modifier5, 0.0f, 1, (java.lang.Object) null);
            if (r(mutableState5)) {
                z10 = false;
            } else {
                z10 = false;
            }
            androidx.compose.material3.TextKt.m(strT2, com.vinfast.companion.corecompose.extensions.ModifierExtensionKt.L(modifierH5, z10), jR2, 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, textStyleC6, composerB, 0, 0, 65528);
            composer3 = composerB;
            composer3.j();
            composer3.j();
            androidx.compose.ui.Modifier modifierH6 = androidx.compose.foundation.layout.SizeKt.h(modifier5, 0.0f, 1, (java.lang.Object) null);
            androidx.compose.ui.layout.MeasurePolicy measurePolicyB2 = androidx.compose.foundation.layout.RowKt.b(arrangement2.r(androidx.compose.ui.unit.Dp.g(f7)), companion7.l(), composer3, 6);
            iHashCode7 = java.lang.Long.hashCode(androidx.compose.runtime.ComposablesKt.b(composer3, 0));
            androidx.compose.runtime.CompositionLocalMap compositionLocalMapG14 = composer3.g();
            androidx.compose.ui.Modifier modifierE14 = androidx.compose.ui.ComposedModifierKt.e(composer3, modifierH6);
            function0B7 = companion8.b();
            if (composer3.C() == null) {
                androidx.compose.runtime.ComposablesKt.d();
            }
            composer3.l();
            if (composer3.A()) {
                composer3.T(function0B7);
            } else {
                composer3.h();
            }
            composerC7 = androidx.compose.runtime.Updater.c(composer3);
            androidx.compose.runtime.Updater.k(composerC7, measurePolicyB2, companion8.d());
            androidx.compose.runtime.Updater.k(composerC7, compositionLocalMapG14, companion8.f());
            function2C7 = companion8.c();
            if (composerC7.A()) {
                composerC7.H(java.lang.Integer.valueOf(iHashCode7));
                composerC7.d(java.lang.Integer.valueOf(iHashCode7), function2C7);
            } else {
                composerC7.H(java.lang.Integer.valueOf(iHashCode7));
                composerC7.d(java.lang.Integer.valueOf(iHashCode7), function2C7);
            }
            androidx.compose.runtime.Updater.k(composerC7, modifierE14, companion8.e());
            rowScopeInstance = androidx.compose.foundation.layout.RowScopeInstance.a;
            if (z7) {
                composer3.t(764028282);
                modifier6 = modifier5;
                androidx.compose.material3.ButtonKt.e(function0, androidx.compose.foundation.layout.SizeKt.i(androidx.compose.foundation.layout.RowScope.c(rowScopeInstance, modifier6, 1.0f, false, 2, (java.lang.Object) null), androidx.compose.ui.unit.Dp.g(44)), false, androidx.compose.foundation.shape.RoundedCornerShapeKt.d(androidx.compose.ui.unit.Dp.g(26)), androidx.compose.material3.ButtonDefaults.a.b(companion2.g(), 0L, 0L, 0L, composer3, (androidx.compose.material3.ButtonDefaults.r << 12) | 6, 14), (androidx.compose.material3.ButtonElevation) null, androidx.compose.foundation.BorderStrokeKt.a(androidx.compose.ui.unit.Dp.g(f), companion2.i()), (androidx.compose.foundation.layout.PaddingValues) null, (androidx.compose.foundation.interaction.MutableInteractionSource) null, com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.ComposableSingletons$SetVoiceNameDialogKt.a.i(), composer3, ((i4 >> 12) & 14) | 806879232, 420);
                composer3 = composer3;
            } else {
                modifier6 = modifier5;
                composer3.t(752836011);
            }
            composer3.q();
            boolean zS5 = composer3.s(softwareKeyboardController) | composer3.s(function2);
            if (i5 == 131072) {
                z11 = true;
            } else {
                z11 = false;
            }
            z12 = zS5 | z11;
            objN11 = composer3.N();
            if (z12) {
                objN11 = new kotlin.jvm.functions.Function0() { // from class: com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.u0
                    public final java.lang.Object invoke() {
                        return com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogKt.o(softwareKeyboardController, function2, function1, mutableState);
                    }
                };
                composer3.H(objN11);
            } else {
                objN11 = new kotlin.jvm.functions.Function0() { // from class: com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.u0
                    public final java.lang.Object invoke() {
                        return com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogKt.o(softwareKeyboardController, function2, function1, mutableState);
                    }
                };
                composer3.H(objN11);
            }
            androidx.compose.runtime.Composer composer5 = composer3;
            composer2 = composer5;
            androidx.compose.material3.ButtonKt.e(com.vinfast.companion.corecompose.compose.ButtonKt.l((kotlin.jvm.functions.Function0) objN11), androidx.compose.foundation.layout.SizeKt.i(androidx.compose.foundation.layout.RowScope.c(rowScopeInstance, modifier6, 1.0f, false, 2, (java.lang.Object) null), androidx.compose.ui.unit.Dp.g(44)), false, androidx.compose.foundation.shape.RoundedCornerShapeKt.d(androidx.compose.ui.unit.Dp.g(26)), androidx.compose.material3.ButtonDefaults.a.b(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.v(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composer3, 0)), 0L, 0L, 0L, composer5, androidx.compose.material3.ButtonDefaults.r << 12, 14), (androidx.compose.material3.ButtonElevation) null, (androidx.compose.foundation.BorderStroke) null, (androidx.compose.foundation.layout.PaddingValues) null, (androidx.compose.foundation.interaction.MutableInteractionSource) null, com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.ComposableSingletons$SetVoiceNameDialogKt.a.j(), composer2, 805306368, 484);
            composer2.j();
            composer2.j();
            composer2.j();
            if (androidx.compose.runtime.ComposerKt.m()) {
                androidx.compose.runtime.ComposerKt.p();
            }
            z5 = z7;
            modifier3 = modifier8;
        } else {
            composer2 = composerB;
            composer2.n();
            modifier3 = modifier2;
            z5 = z2;
        }
        scopeUpdateScopeD = composer2.D();
        if (scopeUpdateScopeD != null) {
            scopeUpdateScopeD.a(new kotlin.jvm.functions.Function2() { // from class: com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.v0
                public final java.lang.Object invoke(java.lang.Object obj, java.lang.Object obj2) {
                    return com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogKt.p(modifier3, str, str2, z5, function0, function1, i, i2, (androidx.compose.runtime.Composer) obj, ((java.lang.Integer) obj2).intValue());
                }
            });
        }
    }

    private static final androidx.compose.ui.text.input.TextFieldValue i(androidx.compose.runtime.MutableState mutableState) {
        return (androidx.compose.ui.text.input.TextFieldValue) mutableState.getValue();
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final boolean j(android.content.Context context, androidx.compose.runtime.MutableState mutableState, androidx.compose.runtime.MutableState mutableState2, java.lang.String str) {
        kotlin.jvm.internal.Intrinsics.l(str, "text");
        java.lang.String string = kotlin.text.StringsKt.x1(str).toString();
        if (string.length() > 25) {
            s(mutableState, true);
            java.lang.String string2 = context.getString(com.vinfast.settings.R.string.feature_voicecloning_009);
            kotlin.jvm.internal.Intrinsics.k(string2, "getString(...)");
            u(mutableState2, string2);
            return false;
        }
        if (string.length() == 0) {
            s(mutableState, true);
            java.lang.String string3 = context.getString(com.vinfast.settings.R.string.common_msg_field_cannot_empty, context.getString(com.vinfast.settings.R.string.common_name));
            kotlin.jvm.internal.Intrinsics.k(string3, "getString(...)");
            u(mutableState2, string3);
            return false;
        }
        for (int i = 0; i < string.length(); i++) {
            char cCharAt = string.charAt(i);
            if (!java.lang.Character.isLetter(cCharAt) && !java.lang.Character.isDigit(cCharAt) && !kotlin.text.CharsKt.c(cCharAt)) {
                s(mutableState, true);
                java.lang.String string4 = context.getString(com.vinfast.settings.R.string.feature_voicecloning_010);
                kotlin.jvm.internal.Intrinsics.k(string4, "getString(...)");
                u(mutableState2, string4);
                return false;
            }
        }
        s(mutableState, false);
        u(mutableState2, "");
        return true;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit k(androidx.compose.ui.platform.SoftwareKeyboardController softwareKeyboardController, androidx.compose.ui.focus.FocusRequester focusRequester) {
        if (softwareKeyboardController != null) {
            softwareKeyboardController.hide();
        }
        focusRequester.e();
        return kotlin.Unit.a;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit l(androidx.compose.ui.platform.SoftwareKeyboardController softwareKeyboardController, kotlin.jvm.functions.Function1 function1, kotlin.jvm.functions.Function1 function2, androidx.compose.runtime.MutableState mutableState, androidx.compose.foundation.text.KeyboardActionScope keyboardActionScope) {
        kotlin.jvm.internal.Intrinsics.l(keyboardActionScope, "$this$KeyboardActions");
        if (softwareKeyboardController != null) {
            softwareKeyboardController.hide();
        }
        if (((java.lang.Boolean) function1.invoke(i(mutableState).m())).booleanValue()) {
            function2.invoke(kotlin.text.StringsKt.x1(i(mutableState).m()).toString());
        }
        return kotlin.Unit.a;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit m(androidx.compose.runtime.MutableState mutableState, androidx.compose.runtime.MutableState mutableState2, androidx.compose.runtime.MutableState mutableState3, androidx.compose.ui.text.input.TextFieldValue textFieldValue) {
        kotlin.jvm.internal.Intrinsics.l(textFieldValue, "newValue");
        q(mutableState, textFieldValue);
        if (r(mutableState2)) {
            s(mutableState2, false);
            u(mutableState3, "");
        }
        return kotlin.Unit.a;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit n(androidx.compose.runtime.MutableState mutableState, kotlin.jvm.functions.Function2 function2, androidx.compose.runtime.Composer composer, int i) {
        int i2;
        int i3;
        androidx.compose.runtime.Composer composer2 = composer;
        kotlin.jvm.internal.Intrinsics.l(function2, "innerTextField");
        if ((i & 6) == 0) {
            i2 = i | (composer2.P(function2) ? 4 : 2);
        } else {
            i2 = i;
        }
        if (composer2.f((i2 & 19) != 18, i2 & 1)) {
            if (androidx.compose.runtime.ComposerKt.m()) {
                androidx.compose.runtime.ComposerKt.q(-884732651, i2, -1, "com.vinfast.companion.settings.ui.virtualAssistant.voicecloning.screen.dialog.SetVoiceNameDialogContent.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous> (SetVoiceNameDialog.kt:259)");
            }
            if (i(mutableState).m().length() == 0) {
                composer2.t(1143990332);
                i3 = i2;
                androidx.compose.material3.TextKt.m(androidx.compose.ui.res.StringResources_androidKt.a(com.vinfast.settings.R.string.feature_voicecloning_067, composer2, 0), (androidx.compose.ui.Modifier) null, 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, androidx.compose.ui.text.TextStyle.c(com.vinfast.companion.corecompose.ui.theme.TypographyKt.a(com.vinfast.companion.corecompose.ui.theme.TypographyKt.q(composer2, 0)), com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.u(com.vinfast.companion.corecompose.ui.theme.ColorSchemeKt.j(composer2, 0)), 0L, androidx.compose.ui.text.font.FontWeight.b.g(), (androidx.compose.ui.text.font.FontStyle) null, (androidx.compose.ui.text.font.FontSynthesis) null, (androidx.compose.ui.text.font.FontFamily) null, (java.lang.String) null, 0L, (androidx.compose.ui.text.style.BaselineShift) null, (androidx.compose.ui.text.style.TextGeometricTransform) null, (androidx.compose.ui.text.intl.LocaleList) null, 0L, (androidx.compose.ui.text.style.TextDecoration) null, (androidx.compose.ui.graphics.Shadow) null, (androidx.compose.ui.graphics.drawscope.DrawStyle) null, 0, 0, 0L, (androidx.compose.ui.text.style.TextIndent) null, (androidx.compose.ui.text.PlatformTextStyle) null, (androidx.compose.ui.text.style.LineHeightStyle) null, 0, 0, (androidx.compose.ui.text.style.TextMotion) null, 16777210, (java.lang.Object) null), composer, 0, 0, 65534);
                composer2 = composer;
            } else {
                i3 = i2;
                composer2.t(1134117421);
            }
            composer2.q();
            function2.invoke(composer2, java.lang.Integer.valueOf(i3 & 14));
            if (androidx.compose.runtime.ComposerKt.m()) {
                androidx.compose.runtime.ComposerKt.p();
            }
        } else {
            composer2.n();
        }
        return kotlin.Unit.a;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit o(androidx.compose.ui.platform.SoftwareKeyboardController softwareKeyboardController, kotlin.jvm.functions.Function1 function1, kotlin.jvm.functions.Function1 function2, androidx.compose.runtime.MutableState mutableState) {
        if (softwareKeyboardController != null) {
            softwareKeyboardController.hide();
        }
        if (((java.lang.Boolean) function1.invoke(i(mutableState).m())).booleanValue()) {
            function2.invoke(kotlin.text.StringsKt.x1(i(mutableState).m()).toString());
        }
        return kotlin.Unit.a;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit p(androidx.compose.ui.Modifier modifier, java.lang.String str, java.lang.String str2, boolean z, kotlin.jvm.functions.Function0 function0, kotlin.jvm.functions.Function1 function1, int i, int i2, androidx.compose.runtime.Composer composer, int i3) {
        h(modifier, str, str2, z, function0, function1, composer, androidx.compose.runtime.RecomposeScopeImplKt.a(i | 1), i2);
        return kotlin.Unit.a;
    }

    private static final void q(androidx.compose.runtime.MutableState mutableState, androidx.compose.ui.text.input.TextFieldValue textFieldValue) {
        mutableState.setValue(textFieldValue);
    }

    private static final boolean r(androidx.compose.runtime.MutableState mutableState) {
        return ((java.lang.Boolean) mutableState.getValue()).booleanValue();
    }

    private static final void s(androidx.compose.runtime.MutableState mutableState, boolean z) {
        mutableState.setValue(java.lang.Boolean.valueOf(z));
    }

    private static final java.lang.String t(androidx.compose.runtime.MutableState mutableState) {
        return (java.lang.String) mutableState.getValue();
    }

    private static final void u(androidx.compose.runtime.MutableState mutableState, java.lang.String str) {
        mutableState.setValue(str);
    }
}
