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

import A4.d;
import C4.e;
import C4.j;
import J4.c;
import V4.C;
import a0.Q1;
import androidx.compose.runtime.State;
import com.revenuecat.purchases.ui.revenuecatui.customercenter.actions.CustomerCenterAction;
import com.revenuecat.purchases.ui.revenuecatui.customercenter.data.CustomerCenterState;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes3.dex */
@e(c = "com.revenuecat.purchases.ui.revenuecatui.customercenter.InternalCustomerCenterKt$CustomerCenterLoaded$1$1", f = "InternalCustomerCenter.kt", l = {423}, m = "invokeSuspend")
public final class InternalCustomerCenterKt$CustomerCenterLoaded$1$1 extends j implements J4.e {
    final /* synthetic */ State<String> $latestMessage$delegate;
    final /* synthetic */ State<c> $latestOnAction$delegate;
    final /* synthetic */ Q1 $snackbarHostState;
    final /* synthetic */ CustomerCenterState.Success $state;
    int label;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    /* JADX WARN: Multi-variable type inference failed */
    public InternalCustomerCenterKt$CustomerCenterLoaded$1$1(CustomerCenterState.Success success, Q1 q12, State<String> state, State<? extends c> state2, d dVar) {
        super(2, dVar);
        this.$state = success;
        this.$snackbarHostState = q12;
        this.$latestMessage$delegate = state;
        this.$latestOnAction$delegate = state2;
    }

    @Override // C4.a
    public final d create(Object obj, d dVar) {
        return new InternalCustomerCenterKt$CustomerCenterLoaded$1$1(this.$state, this.$snackbarHostState, this.$latestMessage$delegate, this.$latestOnAction$delegate, dVar);
    }

    @Override // J4.e
    public final Object invoke(C c6, d dVar) {
        return ((InternalCustomerCenterKt$CustomerCenterLoaded$1$1) create(c6, dVar)).invokeSuspend(C3137A.f25453a);
    }

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.label;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            if (this.$state.getShowSupportTicketSuccessSnackbar()) {
                Q1 q12 = this.$snackbarHostState;
                String strCustomerCenterLoaded$lambda$14 = InternalCustomerCenterKt.CustomerCenterLoaded$lambda$14(this.$latestMessage$delegate);
                this.label = 1;
                if (Q1.b(q12, strCustomerCenterLoaded$lambda$14, this) == aVar) {
                    return aVar;
                }
            }
            return C3137A.f25453a;
        }
        if (i6 != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        AbstractC2467b.l(obj);
        InternalCustomerCenterKt.CustomerCenterLoaded$lambda$13(this.$latestOnAction$delegate).invoke(CustomerCenterAction.DismissSupportTicketSuccessSnackbar.INSTANCE);
        return C3137A.f25453a;
    }
}
