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

import A4.d;
import B4.a;
import C4.e;
import C4.j;
import com.revenuecat.purchases.ui.revenuecatui.data.PaywallState;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes3.dex */
@e(c = "com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$LoadedPaywallComponents$onClick$1$1", f = "LoadedPaywallComponents.kt", l = {78}, m = "invokeSuspend")
public final class LoadedPaywallComponentsKt$LoadedPaywallComponents$onClick$1$1 extends j implements J4.e {
    final /* synthetic */ J4.e $clickHandler;
    final /* synthetic */ PaywallState.Loaded.Components $state;
    /* synthetic */ Object L$0;
    int label;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public LoadedPaywallComponentsKt$LoadedPaywallComponents$onClick$1$1(PaywallState.Loaded.Components components, J4.e eVar, d dVar) {
        super(2, dVar);
        this.$state = components;
        this.$clickHandler = eVar;
    }

    @Override // C4.a
    public final d create(Object obj, d dVar) {
        LoadedPaywallComponentsKt$LoadedPaywallComponents$onClick$1$1 loadedPaywallComponentsKt$LoadedPaywallComponents$onClick$1$1 = new LoadedPaywallComponentsKt$LoadedPaywallComponents$onClick$1$1(this.$state, this.$clickHandler, dVar);
        loadedPaywallComponentsKt$LoadedPaywallComponents$onClick$1$1.L$0 = obj;
        return loadedPaywallComponentsKt$LoadedPaywallComponents$onClick$1$1;
    }

    @Override // J4.e
    public final Object invoke(PaywallAction paywallAction, d dVar) {
        return ((LoadedPaywallComponentsKt$LoadedPaywallComponents$onClick$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;
            PaywallState.Loaded.Components components = this.$state;
            J4.e eVar = this.$clickHandler;
            this.label = 1;
            if (LoadedPaywallComponentsKt.handleClick(paywallAction, components, eVar, this) == aVar) {
                return aVar;
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        return C3137A.f25453a;
    }
}
