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

import A4.d;
import B4.a;
import C4.e;
import C4.j;
import com.revenuecat.purchases.ui.revenuecatui.components.PaywallAction;
import com.revenuecat.purchases.ui.revenuecatui.components.style.PackageComponentStyle;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes3.dex */
@e(c = "com.revenuecat.purchases.ui.revenuecatui.components.pkg.PackageComponentViewKt$PackageComponentView$1$1", f = "PackageComponentView.kt", l = {27}, m = "invokeSuspend")
public final class PackageComponentViewKt$PackageComponentView$1$1 extends j implements J4.e {
    final /* synthetic */ J4.e $clickHandler;
    final /* synthetic */ PackageComponentStyle $style;
    /* synthetic */ Object L$0;
    int label;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public PackageComponentViewKt$PackageComponentView$1$1(PackageComponentStyle packageComponentStyle, J4.e eVar, d dVar) {
        super(2, dVar);
        this.$style = packageComponentStyle;
        this.$clickHandler = eVar;
    }

    @Override // C4.a
    public final d create(Object obj, d dVar) {
        PackageComponentViewKt$PackageComponentView$1$1 packageComponentViewKt$PackageComponentView$1$1 = new PackageComponentViewKt$PackageComponentView$1$1(this.$style, this.$clickHandler, dVar);
        packageComponentViewKt$PackageComponentView$1$1.L$0 = obj;
        return packageComponentViewKt$PackageComponentView$1$1;
    }

    @Override // J4.e
    public final Object invoke(PaywallAction paywallAction, d dVar) {
        return ((PackageComponentViewKt$PackageComponentView$1$1) create(paywallAction, dVar)).invokeSuspend(C3137A.f25453a);
    }

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        a aVar = a.f492a;
        int i6 = this.label;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            PaywallAction paywallAction = (PaywallAction) this.L$0;
            if (!this.$style.isSelectable()) {
                J4.e eVar = this.$clickHandler;
                this.label = 1;
                if (eVar.invoke(paywallAction, this) == aVar) {
                    return aVar;
                }
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        return C3137A.f25453a;
    }
}
