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

import A4.d;
import C4.e;
import C4.j;
import J4.a;
import V4.C;
import a0.Q1;
import androidx.compose.runtime.State;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes3.dex */
@e(c = "com.revenuecat.purchases.ui.revenuecatui.customercenter.views.CreateSupportTicketViewKt$ErrorSnackbar$1$1", f = "CreateSupportTicketView.kt", l = {353}, m = "invokeSuspend")
public final class CreateSupportTicketViewKt$ErrorSnackbar$1$1 extends j implements J4.e {
    final /* synthetic */ State<a> $currentOnErrorShow$delegate;
    final /* synthetic */ String $errorMessage;
    final /* synthetic */ Q1 $errorSnackbarHostState;
    final /* synthetic */ boolean $hasError;
    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 CreateSupportTicketViewKt$ErrorSnackbar$1$1(boolean z6, Q1 q12, String str, State<? extends a> state, d dVar) {
        super(2, dVar);
        this.$hasError = z6;
        this.$errorSnackbarHostState = q12;
        this.$errorMessage = str;
        this.$currentOnErrorShow$delegate = state;
    }

    @Override // C4.a
    public final d create(Object obj, d dVar) {
        return new CreateSupportTicketViewKt$ErrorSnackbar$1$1(this.$hasError, this.$errorSnackbarHostState, this.$errorMessage, this.$currentOnErrorShow$delegate, dVar);
    }

    @Override // J4.e
    public final Object invoke(C c6, d dVar) {
        return ((CreateSupportTicketViewKt$ErrorSnackbar$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.$hasError) {
                Q1 q12 = this.$errorSnackbarHostState;
                String str = this.$errorMessage;
                this.label = 1;
                if (Q1.b(q12, str, this) == aVar) {
                    return aVar;
                }
            }
            return C3137A.f25453a;
        }
        if (i6 != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        AbstractC2467b.l(obj);
        CreateSupportTicketViewKt.ErrorSnackbar$lambda$26(this.$currentOnErrorShow$delegate).invoke();
        return C3137A.f25453a;
    }
}
