package M2;

import androidx.compose.runtime.MutableState;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class O1 implements J4.c {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f4488a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ MutableState f4489b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ MutableState f4490c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ MutableState f4491d;

    public /* synthetic */ O1(MutableState mutableState, MutableState mutableState2, MutableState mutableState3, int i6) {
        this.f4488a = i6;
        this.f4489b = mutableState;
        this.f4490c = mutableState2;
        this.f4491d = mutableState3;
    }

    @Override // J4.c
    public final Object invoke(Object obj) {
        String it = (String) obj;
        switch (this.f4488a) {
            case 0:
                kotlin.jvm.internal.o.h(it, "it");
                StringBuilder sb = new StringBuilder();
                int length = it.length();
                for (int i6 = 0; i6 < length; i6++) {
                    char cCharAt = it.charAt(i6);
                    if (Character.isDigit(cCharAt)) {
                        sb.append(cCharAt);
                    }
                }
                this.f4489b.setValue(sb.toString());
                this.f4490c.setValue(null);
                this.f4491d.setValue(0);
                break;
            default:
                kotlin.jvm.internal.o.h(it, "pin");
                this.f4489b.setValue(it);
                this.f4490c.setValue(Boolean.TRUE);
                this.f4491d.setValue(Boolean.FALSE);
                break;
        }
        return C3137A.f25453a;
    }
}
