package com.revenuecat.purchases.ui.revenuecatui.components.style;

import androidx.compose.runtime.Immutable;
import com.revenuecat.purchases.paywalls.components.properties.Size;
import kotlin.jvm.internal.o;

/* JADX INFO: loaded from: classes3.dex */
@Immutable
public final class TabControlButtonComponentStyle implements ComponentStyle {
    public static final int $stable = 0;
    private final Size size;
    private final StackComponentStyle stack;
    private final int tabIndex;
    private final boolean visible;

    public TabControlButtonComponentStyle(int i6, StackComponentStyle stack) {
        o.h(stack, "stack");
        this.tabIndex = i6;
        this.stack = stack;
        this.visible = stack.getVisible();
        this.size = stack.getSize();
    }

    public static /* synthetic */ TabControlButtonComponentStyle copy$default(TabControlButtonComponentStyle tabControlButtonComponentStyle, int i6, StackComponentStyle stackComponentStyle, int i7, Object obj) {
        if ((i7 & 1) != 0) {
            i6 = tabControlButtonComponentStyle.tabIndex;
        }
        if ((i7 & 2) != 0) {
            stackComponentStyle = tabControlButtonComponentStyle.stack;
        }
        return tabControlButtonComponentStyle.copy(i6, stackComponentStyle);
    }

    public final int component1() {
        return this.tabIndex;
    }

    public final StackComponentStyle component2() {
        return this.stack;
    }

    public final TabControlButtonComponentStyle copy(int i6, StackComponentStyle stack) {
        o.h(stack, "stack");
        return new TabControlButtonComponentStyle(i6, stack);
    }

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

    @Override // com.revenuecat.purchases.ui.revenuecatui.components.style.ComponentStyle
    public Size getSize() {
        return this.size;
    }

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

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

    @Override // com.revenuecat.purchases.ui.revenuecatui.components.style.ComponentStyle
    public boolean getVisible() {
        return this.visible;
    }

    public int hashCode() {
        return this.stack.hashCode() + (Integer.hashCode(this.tabIndex) * 31);
    }

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