package com.revenuecat.purchases.ui.revenuecatui.customercenter;

import J4.c;
import com.revenuecat.purchases.ui.revenuecatui.customercenter.actions.CustomerCenterAction;
import com.revenuecat.purchases.ui.revenuecatui.customercenter.data.CustomerCenterState;
import com.revenuecat.purchases.ui.revenuecatui.customercenter.data.PurchaseInformation;
import kotlin.jvm.internal.o;
import kotlin.jvm.internal.p;
import w4.C3137A;

/* JADX INFO: loaded from: classes3.dex */
public final class InternalCustomerCenterKt$MainScreenContent$1$1$1 extends p implements c {
    final /* synthetic */ c $onAction;
    final /* synthetic */ CustomerCenterState.Success $state;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public InternalCustomerCenterKt$MainScreenContent$1$1$1(CustomerCenterState.Success success, c cVar) {
        super(1);
        this.$state = success;
        this.$onAction = cVar;
    }

    @Override // J4.c
    public /* bridge */ /* synthetic */ Object invoke(Object obj) {
        invoke((PurchaseInformation) obj);
        return C3137A.f25453a;
    }

    public final void invoke(PurchaseInformation purchase) {
        o.h(purchase, "purchase");
        if (this.$state.getPurchases().size() > 1) {
            this.$onAction.invoke(new CustomerCenterAction.SelectPurchase(purchase));
        }
    }
}
