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

import J4.c;
import V4.E;
import android.content.Context;
import androidx.lifecycle.X;
import com.revenuecat.purchases.customercenter.CustomerCenterConfigData;
import com.revenuecat.purchases.ui.revenuecatui.customercenter.data.PurchaseInformation;
import kotlin.jvm.internal.p;
import w4.C3137A;

/* JADX INFO: loaded from: classes3.dex */
public final class CustomerCenterViewModelImpl$pathButtonPressed$1$1 extends p implements c {
    final /* synthetic */ Context $context;
    final /* synthetic */ CustomerCenterConfigData.HelpPath $path;
    final /* synthetic */ PurchaseInformation $purchaseInformation;
    final /* synthetic */ CustomerCenterViewModelImpl this$0;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public CustomerCenterViewModelImpl$pathButtonPressed$1$1(CustomerCenterViewModelImpl customerCenterViewModelImpl, CustomerCenterConfigData.HelpPath helpPath, Context context, PurchaseInformation purchaseInformation) {
        super(1);
        this.this$0 = customerCenterViewModelImpl;
        this.$path = helpPath;
        this.$context = context;
        this.$purchaseInformation = purchaseInformation;
    }

    @Override // J4.c
    public /* bridge */ /* synthetic */ Object invoke(Object obj) {
        invoke((CustomerCenterConfigData.HelpPath.PathDetail.FeedbackSurvey.Option) obj);
        return C3137A.f25453a;
    }

    public final void invoke(CustomerCenterConfigData.HelpPath.PathDetail.FeedbackSurvey.Option option) {
        if (option == null) {
            this.this$0.goBackToMain();
            return;
        }
        CustomerCenterViewModelImpl customerCenterViewModelImpl = this.this$0;
        CustomerCenterConfigData.HelpPath helpPath = this.$path;
        Context context = this.$context;
        PurchaseInformation purchaseInformation = this.$purchaseInformation;
        customerCenterViewModelImpl.trackCustomerCenterEventOptionChosen(helpPath.getType(), helpPath.getUrl(), option.getId());
        customerCenterViewModelImpl.notifyListenersForFeedbackSurveyCompleted(option.getId());
        E.y(X.h(customerCenterViewModelImpl), null, null, new CustomerCenterViewModelImpl$pathButtonPressed$1$1$1$1(customerCenterViewModelImpl, context, purchaseInformation, option, helpPath, null), 3);
    }
}
