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

import androidx.compose.runtime.internal.StabilityInferred;
import com.google.android.recaptcha.internal.a;
import com.revenuecat.purchases.Offering;
import com.revenuecat.purchases.PurchasesError;
import com.revenuecat.purchases.customercenter.CustomerCenterConfigData;
import com.revenuecat.purchases.ui.revenuecatui.customercenter.dialogs.RestorePurchasesState;
import com.revenuecat.purchases.ui.revenuecatui.customercenter.navigation.CustomerCenterDestination;
import com.revenuecat.purchases.ui.revenuecatui.customercenter.navigation.CustomerCenterNavigationState;
import com.revenuecat.purchases.virtualcurrencies.VirtualCurrencies;
import java.util.List;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.o;
import q.AbstractC2761L;
import x4.y;

/* JADX INFO: loaded from: classes3.dex */
@StabilityInferred(parameters = 1)
public abstract class CustomerCenterState {
    public static final int $stable = 0;
    private final NavigationButtonType navigationButtonType;

    @StabilityInferred(parameters = 1)
    public static final class Error extends CustomerCenterState {
        public static final int $stable = 0;
        private final PurchasesError error;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        /* JADX WARN: Multi-variable type inference failed */
        public Error(PurchasesError error) {
            super(null, 1, 0 == true ? 1 : 0);
            o.h(error, "error");
            this.error = error;
        }

        public static /* synthetic */ Error copy$default(Error error, PurchasesError purchasesError, int i6, Object obj) {
            if ((i6 & 1) != 0) {
                purchasesError = error.error;
            }
            return error.copy(purchasesError);
        }

        public final PurchasesError component1() {
            return this.error;
        }

        public final Error copy(PurchasesError error) {
            o.h(error, "error");
            return new Error(error);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            return (obj instanceof Error) && o.c(this.error, ((Error) obj).error);
        }

        public final PurchasesError getError() {
            return this.error;
        }

        public int hashCode() {
            return this.error.hashCode();
        }

        public String toString() {
            return "Error(error=" + this.error + ')';
        }
    }

    @StabilityInferred(parameters = 1)
    public static final class Loading extends CustomerCenterState {
        public static final int $stable = 0;
        public static final Loading INSTANCE = new Loading();

        /* JADX WARN: Multi-variable type inference failed */
        private Loading() {
            super(null, 1, 0 == true ? 1 : 0);
        }
    }

    public enum NavigationButtonType {
        BACK,
        CLOSE
    }

    @StabilityInferred(parameters = 1)
    public static final class NotLoaded extends CustomerCenterState {
        public static final int $stable = 0;
        public static final NotLoaded INSTANCE = new NotLoaded();

        /* JADX WARN: Multi-variable type inference failed */
        private NotLoaded() {
            super(null, 1, 0 == true ? 1 : 0);
        }
    }

    public /* synthetic */ CustomerCenterState(NavigationButtonType navigationButtonType, h hVar) {
        this(navigationButtonType);
    }

    public /* synthetic */ NavigationButtonType getNavigationButtonType() {
        return this.navigationButtonType;
    }

    private CustomerCenterState(NavigationButtonType navigationButtonType) {
        this.navigationButtonType = navigationButtonType;
    }

    public /* synthetic */ CustomerCenterState(NavigationButtonType navigationButtonType, int i6, h hVar) {
        this((i6 & 1) != 0 ? NavigationButtonType.CLOSE : navigationButtonType, null);
    }

    @StabilityInferred(parameters = 0)
    public static final class Success extends CustomerCenterState {
        public static final int $stable = 8;
        private final CustomerCenterConfigData customerCenterConfigData;
        private final List<CustomerCenterConfigData.HelpPath> detailScreenPaths;
        private final boolean isRefreshing;
        private final List<CustomerCenterConfigData.HelpPath> mainScreenPaths;
        private final NavigationButtonType navigationButtonType;
        private final CustomerCenterNavigationState navigationState;
        private final Offering noActiveScreenOffering;
        private final List<PurchaseInformation> purchases;
        private final RestorePurchasesState restorePurchasesState;
        private final boolean showSupportTicketSuccessSnackbar;
        private final VirtualCurrencies virtualCurrencies;

        public /* synthetic */ Success(CustomerCenterConfigData customerCenterConfigData, List list, List list2, List list3, RestorePurchasesState restorePurchasesState, Offering offering, CustomerCenterNavigationState customerCenterNavigationState, NavigationButtonType navigationButtonType, VirtualCurrencies virtualCurrencies, boolean z6, boolean z7, int i6, h hVar) {
            CustomerCenterNavigationState customerCenterNavigationState2;
            int i7 = i6 & 2;
            List list4 = y.f26065a;
            list = i7 != 0 ? list4 : list;
            List list5 = (i6 & 4) != 0 ? list4 : list2;
            list4 = (i6 & 8) == 0 ? list3 : list4;
            RestorePurchasesState restorePurchasesState2 = (i6 & 16) != 0 ? null : restorePurchasesState;
            Offering offering2 = (i6 & 32) != 0 ? null : offering;
            if ((i6 & 64) != 0) {
                boolean z8 = !list.isEmpty();
                CustomerCenterConfigData.Screen managementScreen = customerCenterConfigData.getManagementScreen();
                customerCenterNavigationState2 = new CustomerCenterNavigationState(z8, managementScreen != null ? managementScreen.getTitle() : null, null, 4, null);
            } else {
                customerCenterNavigationState2 = customerCenterNavigationState;
            }
            this(customerCenterConfigData, list, list5, list4, restorePurchasesState2, offering2, customerCenterNavigationState2, (i6 & 128) != 0 ? NavigationButtonType.CLOSE : navigationButtonType, (i6 & 256) == 0 ? virtualCurrencies : null, (i6 & 512) != 0 ? false : z6, (i6 & 1024) != 0 ? false : z7);
        }

        /* JADX WARN: Multi-variable type inference failed */
        public static /* synthetic */ Success copy$default(Success success, CustomerCenterConfigData customerCenterConfigData, List list, List list2, List list3, RestorePurchasesState restorePurchasesState, Offering offering, CustomerCenterNavigationState customerCenterNavigationState, NavigationButtonType navigationButtonType, VirtualCurrencies virtualCurrencies, boolean z6, boolean z7, int i6, Object obj) {
            if ((i6 & 1) != 0) {
                customerCenterConfigData = success.customerCenterConfigData;
            }
            if ((i6 & 2) != 0) {
                list = success.purchases;
            }
            if ((i6 & 4) != 0) {
                list2 = success.mainScreenPaths;
            }
            if ((i6 & 8) != 0) {
                list3 = success.detailScreenPaths;
            }
            if ((i6 & 16) != 0) {
                restorePurchasesState = success.restorePurchasesState;
            }
            if ((i6 & 32) != 0) {
                offering = success.noActiveScreenOffering;
            }
            if ((i6 & 64) != 0) {
                customerCenterNavigationState = success.navigationState;
            }
            if ((i6 & 128) != 0) {
                navigationButtonType = success.navigationButtonType;
            }
            if ((i6 & 256) != 0) {
                virtualCurrencies = success.virtualCurrencies;
            }
            if ((i6 & 512) != 0) {
                z6 = success.showSupportTicketSuccessSnackbar;
            }
            if ((i6 & 1024) != 0) {
                z7 = success.isRefreshing;
            }
            boolean z8 = z6;
            boolean z9 = z7;
            NavigationButtonType navigationButtonType2 = navigationButtonType;
            VirtualCurrencies virtualCurrencies2 = virtualCurrencies;
            Offering offering2 = offering;
            CustomerCenterNavigationState customerCenterNavigationState2 = customerCenterNavigationState;
            RestorePurchasesState restorePurchasesState2 = restorePurchasesState;
            List list4 = list2;
            return success.copy(customerCenterConfigData, list, list4, list3, restorePurchasesState2, offering2, customerCenterNavigationState2, navigationButtonType2, virtualCurrencies2, z8, z9);
        }

        public final CustomerCenterConfigData component1() {
            return this.customerCenterConfigData;
        }

        public final boolean component10() {
            return this.showSupportTicketSuccessSnackbar;
        }

        public final boolean component11() {
            return this.isRefreshing;
        }

        public final List<PurchaseInformation> component2() {
            return this.purchases;
        }

        public final List<CustomerCenterConfigData.HelpPath> component3() {
            return this.mainScreenPaths;
        }

        public final List<CustomerCenterConfigData.HelpPath> component4() {
            return this.detailScreenPaths;
        }

        public final RestorePurchasesState component5() {
            return this.restorePurchasesState;
        }

        public final Offering component6() {
            return this.noActiveScreenOffering;
        }

        public final CustomerCenterNavigationState component7() {
            return this.navigationState;
        }

        public final NavigationButtonType component8() {
            return this.navigationButtonType;
        }

        public final VirtualCurrencies component9() {
            return this.virtualCurrencies;
        }

        public final Success copy(CustomerCenterConfigData customerCenterConfigData, List<PurchaseInformation> purchases, List<CustomerCenterConfigData.HelpPath> mainScreenPaths, List<CustomerCenterConfigData.HelpPath> detailScreenPaths, RestorePurchasesState restorePurchasesState, Offering offering, CustomerCenterNavigationState navigationState, NavigationButtonType navigationButtonType, VirtualCurrencies virtualCurrencies, boolean z6, boolean z7) {
            o.h(customerCenterConfigData, "customerCenterConfigData");
            o.h(purchases, "purchases");
            o.h(mainScreenPaths, "mainScreenPaths");
            o.h(detailScreenPaths, "detailScreenPaths");
            o.h(navigationState, "navigationState");
            o.h(navigationButtonType, "navigationButtonType");
            return new Success(customerCenterConfigData, purchases, mainScreenPaths, detailScreenPaths, restorePurchasesState, offering, navigationState, navigationButtonType, virtualCurrencies, z6, z7);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof Success)) {
                return false;
            }
            Success success = (Success) obj;
            return o.c(this.customerCenterConfigData, success.customerCenterConfigData) && o.c(this.purchases, success.purchases) && o.c(this.mainScreenPaths, success.mainScreenPaths) && o.c(this.detailScreenPaths, success.detailScreenPaths) && this.restorePurchasesState == success.restorePurchasesState && o.c(this.noActiveScreenOffering, success.noActiveScreenOffering) && o.c(this.navigationState, success.navigationState) && this.navigationButtonType == success.navigationButtonType && o.c(this.virtualCurrencies, success.virtualCurrencies) && this.showSupportTicketSuccessSnackbar == success.showSupportTicketSuccessSnackbar && this.isRefreshing == success.isRefreshing;
        }

        public final CustomerCenterDestination getCurrentDestination() {
            return this.navigationState.getCurrentDestination();
        }

        public final /* synthetic */ CustomerCenterConfigData getCustomerCenterConfigData() {
            return this.customerCenterConfigData;
        }

        public final /* synthetic */ List getDetailScreenPaths() {
            return this.detailScreenPaths;
        }

        public final /* synthetic */ List getMainScreenPaths() {
            return this.mainScreenPaths;
        }

        @Override // com.revenuecat.purchases.ui.revenuecatui.customercenter.data.CustomerCenterState
        public /* synthetic */ NavigationButtonType getNavigationButtonType() {
            return this.navigationButtonType;
        }

        public final /* synthetic */ CustomerCenterNavigationState getNavigationState() {
            return this.navigationState;
        }

        public final /* synthetic */ Offering getNoActiveScreenOffering() {
            return this.noActiveScreenOffering;
        }

        public final /* synthetic */ List getPurchases() {
            return this.purchases;
        }

        public final /* synthetic */ RestorePurchasesState getRestorePurchasesState() {
            return this.restorePurchasesState;
        }

        public final /* synthetic */ boolean getShowSupportTicketSuccessSnackbar() {
            return this.showSupportTicketSuccessSnackbar;
        }

        public final /* synthetic */ VirtualCurrencies getVirtualCurrencies() {
            return this.virtualCurrencies;
        }

        public int hashCode() {
            int iC = AbstractC2761L.c(this.detailScreenPaths, AbstractC2761L.c(this.mainScreenPaths, AbstractC2761L.c(this.purchases, this.customerCenterConfigData.hashCode() * 31, 31), 31), 31);
            RestorePurchasesState restorePurchasesState = this.restorePurchasesState;
            int iHashCode = (iC + (restorePurchasesState == null ? 0 : restorePurchasesState.hashCode())) * 31;
            Offering offering = this.noActiveScreenOffering;
            int iHashCode2 = (this.navigationButtonType.hashCode() + ((this.navigationState.hashCode() + ((iHashCode + (offering == null ? 0 : offering.hashCode())) * 31)) * 31)) * 31;
            VirtualCurrencies virtualCurrencies = this.virtualCurrencies;
            return Boolean.hashCode(this.isRefreshing) + a.f((iHashCode2 + (virtualCurrencies != null ? virtualCurrencies.hashCode() : 0)) * 31, 31, this.showSupportTicketSuccessSnackbar);
        }

        public final /* synthetic */ boolean isRefreshing() {
            return this.isRefreshing;
        }

        public String toString() {
            StringBuilder sb = new StringBuilder("Success(customerCenterConfigData=");
            sb.append(this.customerCenterConfigData);
            sb.append(", purchases=");
            sb.append(this.purchases);
            sb.append(", mainScreenPaths=");
            sb.append(this.mainScreenPaths);
            sb.append(", detailScreenPaths=");
            sb.append(this.detailScreenPaths);
            sb.append(", restorePurchasesState=");
            sb.append(this.restorePurchasesState);
            sb.append(", noActiveScreenOffering=");
            sb.append(this.noActiveScreenOffering);
            sb.append(", navigationState=");
            sb.append(this.navigationState);
            sb.append(", navigationButtonType=");
            sb.append(this.navigationButtonType);
            sb.append(", virtualCurrencies=");
            sb.append(this.virtualCurrencies);
            sb.append(", showSupportTicketSuccessSnackbar=");
            sb.append(this.showSupportTicketSuccessSnackbar);
            sb.append(", isRefreshing=");
            return AbstractC2761L.h(sb, this.isRefreshing, ')');
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public Success(CustomerCenterConfigData customerCenterConfigData, List<PurchaseInformation> purchases, List<CustomerCenterConfigData.HelpPath> mainScreenPaths, List<CustomerCenterConfigData.HelpPath> detailScreenPaths, RestorePurchasesState restorePurchasesState, Offering offering, CustomerCenterNavigationState navigationState, NavigationButtonType navigationButtonType, VirtualCurrencies virtualCurrencies, boolean z6, boolean z7) {
            super(navigationButtonType, null);
            o.h(customerCenterConfigData, "customerCenterConfigData");
            o.h(purchases, "purchases");
            o.h(mainScreenPaths, "mainScreenPaths");
            o.h(detailScreenPaths, "detailScreenPaths");
            o.h(navigationState, "navigationState");
            o.h(navigationButtonType, "navigationButtonType");
            this.customerCenterConfigData = customerCenterConfigData;
            this.purchases = purchases;
            this.mainScreenPaths = mainScreenPaths;
            this.detailScreenPaths = detailScreenPaths;
            this.restorePurchasesState = restorePurchasesState;
            this.noActiveScreenOffering = offering;
            this.navigationState = navigationState;
            this.navigationButtonType = navigationButtonType;
            this.virtualCurrencies = virtualCurrencies;
            this.showSupportTicketSuccessSnackbar = z6;
            this.isRefreshing = z7;
        }
    }
}
