package com.revenuecat.purchases.ui.revenuecatui;

import J4.a;
import J4.c;
import androidx.compose.runtime.State;
import com.revenuecat.purchases.Offering;
import com.revenuecat.purchases.ui.revenuecatui.OfferingSelection;
import kotlin.jvm.internal.o;
import kotlin.jvm.internal.p;
import w4.C3137A;

/* JADX INFO: loaded from: classes3.dex */
public final class PaywallDialogKt$PaywallDialogContent$handleCloseRequest$1$1 extends p implements a {
    final /* synthetic */ c $onDismissRequest;
    final /* synthetic */ State<Offering> $preloadedExitOffering$delegate;
    final /* synthetic */ State<Boolean> $purchaseCompleted$delegate;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public PaywallDialogKt$PaywallDialogContent$handleCloseRequest$1$1(c cVar, State<Boolean> state, State<Offering> state2) {
        super(0);
        this.$onDismissRequest = cVar;
        this.$purchaseCompleted$delegate = state;
        this.$preloadedExitOffering$delegate = state2;
    }

    @Override // J4.a
    public /* bridge */ /* synthetic */ Object invoke() {
        m643invoke();
        return C3137A.f25453a;
    }

    /* JADX INFO: renamed from: invoke, reason: collision with other method in class */
    public final void m643invoke() {
        OfferingSelection.OfferingType offeringType;
        if (PaywallDialogKt.PaywallDialogContent$lambda$17(this.$purchaseCompleted$delegate) || PaywallDialogKt.PaywallDialogContent$lambda$18(this.$preloadedExitOffering$delegate) == null) {
            offeringType = null;
        } else {
            Offering offeringPaywallDialogContent$lambda$18 = PaywallDialogKt.PaywallDialogContent$lambda$18(this.$preloadedExitOffering$delegate);
            o.e(offeringPaywallDialogContent$lambda$18);
            offeringType = new OfferingSelection.OfferingType(offeringPaywallDialogContent$lambda$18);
        }
        this.$onDismissRequest.invoke(offeringType);
    }
}
