package com.revenuecat.purchases.paywalls.components;

import androidx.compose.runtime.Immutable;
import com.revenuecat.purchases.InternalRevenueCatAPI;
import g5.a;
import i5.g;
import j5.b;
import k5.P;
import k5.a0;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.o;
import q.AbstractC2761L;
import w4.InterfaceC3141c;

/* JADX INFO: loaded from: classes3.dex */
@Immutable
@InternalRevenueCatAPI
public final class TabControlButtonComponent implements PaywallComponent {
    public static final Companion Companion = new Companion(null);
    private final StackComponent stack;
    private final String tabId;
    private final int tabIndex;

    public static final class Companion {
        public /* synthetic */ Companion(h hVar) {
            this();
        }

        public final a serializer() {
            return TabControlButtonComponent$$serializer.INSTANCE;
        }

        private Companion() {
        }
    }

    @InterfaceC3141c
    public /* synthetic */ TabControlButtonComponent(int i6, int i7, String str, StackComponent stackComponent, a0 a0Var) {
        if (7 != (i6 & 7)) {
            P.h(i6, 7, TabControlButtonComponent$$serializer.INSTANCE.getDescriptor());
            throw null;
        }
        this.tabIndex = i7;
        this.tabId = str;
        this.stack = stackComponent;
    }

    public static /* synthetic */ void getTabId$annotations() {
    }

    public static /* synthetic */ void getTabIndex$annotations() {
    }

    public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(TabControlButtonComponent tabControlButtonComponent, b bVar, g gVar) {
        bVar.w(0, tabControlButtonComponent.tabIndex, gVar);
        bVar.A(gVar, 1, tabControlButtonComponent.tabId);
        bVar.z(gVar, 2, StackComponent$$serializer.INSTANCE, tabControlButtonComponent.stack);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof TabControlButtonComponent)) {
            return false;
        }
        TabControlButtonComponent tabControlButtonComponent = (TabControlButtonComponent) obj;
        return this.tabIndex == tabControlButtonComponent.tabIndex && o.c(this.tabId, tabControlButtonComponent.tabId) && o.c(this.stack, tabControlButtonComponent.stack);
    }

    public final /* synthetic */ StackComponent getStack() {
        return this.stack;
    }

    public final String getTabId() {
        return this.tabId;
    }

    public final /* synthetic */ int getTabIndex() {
        return this.tabIndex;
    }

    public int hashCode() {
        return this.stack.hashCode() + AbstractC2761L.b(this.tabIndex * 31, 31, this.tabId);
    }

    public String toString() {
        return "TabControlButtonComponent(tabIndex=" + this.tabIndex + ", tabId=" + this.tabId + ", stack=" + this.stack + ')';
    }

    public TabControlButtonComponent(int i6, String tabId, StackComponent stack) {
        o.h(tabId, "tabId");
        o.h(stack, "stack");
        this.tabIndex = i6;
        this.tabId = tabId;
        this.stack = stack;
    }
}
