package com.revenuecat.purchases.ui.revenuecatui.components.timeline;

import J4.a;
import com.revenuecat.purchases.ui.revenuecatui.components.style.TimelineComponentStyle;
import com.revenuecat.purchases.ui.revenuecatui.components.timeline.TimelineComponentState;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.jvm.internal.p;
import x4.AbstractC3253s;

/* JADX INFO: loaded from: classes3.dex */
public final class TimelineComponentState$items$2 extends p implements a {
    final /* synthetic */ TimelineComponentState this$0;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public TimelineComponentState$items$2(TimelineComponentState timelineComponentState) {
        super(0);
        this.this$0 = timelineComponentState;
    }

    @Override // J4.a
    public final List<TimelineComponentState.ItemState> invoke() {
        List items = this.this$0.style.getItems();
        TimelineComponentState timelineComponentState = this.this$0;
        ArrayList arrayList = new ArrayList(AbstractC3253s.G(items, 10));
        Iterator it = items.iterator();
        while (it.hasNext()) {
            arrayList.add(new TimelineComponentState.ItemState(timelineComponentState.getWindowSize(), (TimelineComponentStyle.ItemStyle) it.next(), timelineComponentState.selectedPackageInfoProvider, timelineComponentState.selectedTabIndexProvider, timelineComponentState.selectedOfferEligibilityProvider, timelineComponentState.customVariablesProvider));
        }
        return arrayList;
    }
}
