package d3;

import androidx.compose.runtime.MutableState;
import j$.time.format.DateTimeFormatter;
import java.util.List;
import w4.C3137A;
import x4.AbstractC3252r;

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

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ n0.x f15255a;

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ n0.x f15257c;

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

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

    public O0(n0.x xVar, int i6, n0.x xVar2, List list, MutableState mutableState) {
        this.f15255a = xVar;
        this.f15256b = i6;
        this.f15257c = xVar2;
        this.f15258d = list;
        this.f15259e = mutableState;
    }

    @Override // J4.c
    public final Object invoke(Object obj) {
        n0.q focusProperties = (n0.q) obj;
        kotlin.jvm.internal.o.h(focusProperties, "$this$focusProperties");
        n0.x xVar = this.f15255a;
        focusProperties.i(xVar);
        focusProperties.b(xVar);
        List list = this.f15258d;
        int i6 = this.f15256b;
        focusProperties.e(i6 == 0 ? this.f15257c : (n0.x) list.get(i6 - 1));
        DateTimeFormatter dateTimeFormatter = v2.f16084a;
        if (i6 != AbstractC3252r.A((List) this.f15259e.getValue())) {
            xVar = (n0.x) list.get(i6 + 1);
        }
        focusProperties.g(xVar);
        return C3137A.f25453a;
    }
}
