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

import B.H0;
import androidx.compose.runtime.Immutable;
import com.google.android.recaptcha.internal.a;
import com.revenuecat.purchases.Package;
import com.revenuecat.purchases.paywalls.components.TimelineComponent;
import com.revenuecat.purchases.paywalls.components.properties.Size;
import com.revenuecat.purchases.ui.revenuecatui.components.PresentedOverride;
import com.revenuecat.purchases.ui.revenuecatui.components.PresentedTimelineItemPartial;
import com.revenuecat.purchases.ui.revenuecatui.components.PresentedTimelinePartial;
import com.revenuecat.purchases.ui.revenuecatui.components.properties.ColorStyles;
import com.revenuecat.purchases.ui.revenuecatui.components.state.PackageContext;
import com.revenuecat.purchases.ui.revenuecatui.composables.OfferEligibility;
import com.revenuecat.purchases.ui.revenuecatui.data.PaywallState;
import com.revenuecat.purchases.ui.revenuecatui.helpers.ResolvedOffer;
import java.util.List;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.o;
import q.AbstractC2761L;

/* JADX INFO: loaded from: classes3.dex */
@Immutable
public final class TimelineComponentStyle implements ComponentStyle, PackageContext {
    public static final int $stable = 0;
    private final int columnGutter;
    private final TimelineComponent.IconAlignment iconAlignment;
    private final int itemSpacing;
    private final List<ItemStyle> items;
    private final H0 margin;
    private final OfferEligibility offerEligibility;
    private final List<PresentedOverride<PresentedTimelinePartial>> overrides;
    private final H0 padding;
    private final Package rcPackage;
    private final ResolvedOffer resolvedOffer;
    private final Size size;
    private final Integer tabIndex;
    private final int textSpacing;
    private final boolean visible;

    @Immutable
    public static final class ConnectorStyle {
        public static final int $stable = 0;
        private final ColorStyles color;
        private final H0 margin;
        private final int width;

        public ConnectorStyle(int i6, H0 margin, ColorStyles color) {
            o.h(margin, "margin");
            o.h(color, "color");
            this.width = i6;
            this.margin = margin;
            this.color = color;
        }

        public static /* synthetic */ ConnectorStyle copy$default(ConnectorStyle connectorStyle, int i6, H0 h0, ColorStyles colorStyles, int i7, Object obj) {
            if ((i7 & 1) != 0) {
                i6 = connectorStyle.width;
            }
            if ((i7 & 2) != 0) {
                h0 = connectorStyle.margin;
            }
            if ((i7 & 4) != 0) {
                colorStyles = connectorStyle.color;
            }
            return connectorStyle.copy(i6, h0, colorStyles);
        }

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

        public final H0 component2() {
            return this.margin;
        }

        public final ColorStyles component3() {
            return this.color;
        }

        public final ConnectorStyle copy(int i6, H0 margin, ColorStyles color) {
            o.h(margin, "margin");
            o.h(color, "color");
            return new ConnectorStyle(i6, margin, color);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof ConnectorStyle)) {
                return false;
            }
            ConnectorStyle connectorStyle = (ConnectorStyle) obj;
            return this.width == connectorStyle.width && o.c(this.margin, connectorStyle.margin) && o.c(this.color, connectorStyle.color);
        }

        public final /* synthetic */ ColorStyles getColor() {
            return this.color;
        }

        public final /* synthetic */ H0 getMargin() {
            return this.margin;
        }

        public final /* synthetic */ int getWidth() {
            return this.width;
        }

        public int hashCode() {
            return this.color.hashCode() + ((this.margin.hashCode() + (Integer.hashCode(this.width) * 31)) * 31);
        }

        public String toString() {
            return "ConnectorStyle(width=" + this.width + ", margin=" + this.margin + ", color=" + this.color + ')';
        }
    }

    public TimelineComponentStyle(int i6, int i7, int i8, TimelineComponent.IconAlignment iconAlignment, boolean z6, Size size, H0 padding, H0 margin, List<ItemStyle> items, Package r11, ResolvedOffer resolvedOffer, Integer num, OfferEligibility offerEligibility, List<PresentedOverride<PresentedTimelinePartial>> overrides) {
        o.h(iconAlignment, "iconAlignment");
        o.h(size, "size");
        o.h(padding, "padding");
        o.h(margin, "margin");
        o.h(items, "items");
        o.h(overrides, "overrides");
        this.itemSpacing = i6;
        this.textSpacing = i7;
        this.columnGutter = i8;
        this.iconAlignment = iconAlignment;
        this.visible = z6;
        this.size = size;
        this.padding = padding;
        this.margin = margin;
        this.items = items;
        this.rcPackage = r11;
        this.resolvedOffer = resolvedOffer;
        this.tabIndex = num;
        this.offerEligibility = offerEligibility;
        this.overrides = overrides;
    }

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

    public final Package component10() {
        return this.rcPackage;
    }

    public final ResolvedOffer component11() {
        return this.resolvedOffer;
    }

    public final Integer component12() {
        return this.tabIndex;
    }

    public final OfferEligibility component13() {
        return this.offerEligibility;
    }

    public final List<PresentedOverride<PresentedTimelinePartial>> component14() {
        return this.overrides;
    }

    public final int component2() {
        return this.textSpacing;
    }

    public final int component3() {
        return this.columnGutter;
    }

    public final TimelineComponent.IconAlignment component4() {
        return this.iconAlignment;
    }

    public final boolean component5() {
        return this.visible;
    }

    public final Size component6() {
        return this.size;
    }

    public final H0 component7() {
        return this.padding;
    }

    public final H0 component8() {
        return this.margin;
    }

    public final List<ItemStyle> component9() {
        return this.items;
    }

    @Override // com.revenuecat.purchases.ui.revenuecatui.components.state.PackageContext
    public /* synthetic */ boolean computeIsSelected(PaywallState.Loaded.Components.SelectedPackageInfo selectedPackageInfo, int i6) {
        return PackageContext.DefaultImpls.computeIsSelected(this, selectedPackageInfo, i6);
    }

    public final TimelineComponentStyle copy(int i6, int i7, int i8, TimelineComponent.IconAlignment iconAlignment, boolean z6, Size size, H0 padding, H0 margin, List<ItemStyle> items, Package r26, ResolvedOffer resolvedOffer, Integer num, OfferEligibility offerEligibility, List<PresentedOverride<PresentedTimelinePartial>> overrides) {
        o.h(iconAlignment, "iconAlignment");
        o.h(size, "size");
        o.h(padding, "padding");
        o.h(margin, "margin");
        o.h(items, "items");
        o.h(overrides, "overrides");
        return new TimelineComponentStyle(i6, i7, i8, iconAlignment, z6, size, padding, margin, items, r26, resolvedOffer, num, offerEligibility, overrides);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof TimelineComponentStyle)) {
            return false;
        }
        TimelineComponentStyle timelineComponentStyle = (TimelineComponentStyle) obj;
        return this.itemSpacing == timelineComponentStyle.itemSpacing && this.textSpacing == timelineComponentStyle.textSpacing && this.columnGutter == timelineComponentStyle.columnGutter && this.iconAlignment == timelineComponentStyle.iconAlignment && this.visible == timelineComponentStyle.visible && o.c(this.size, timelineComponentStyle.size) && o.c(this.padding, timelineComponentStyle.padding) && o.c(this.margin, timelineComponentStyle.margin) && o.c(this.items, timelineComponentStyle.items) && o.c(this.rcPackage, timelineComponentStyle.rcPackage) && o.c(this.resolvedOffer, timelineComponentStyle.resolvedOffer) && o.c(this.tabIndex, timelineComponentStyle.tabIndex) && o.c(this.offerEligibility, timelineComponentStyle.offerEligibility) && o.c(this.overrides, timelineComponentStyle.overrides);
    }

    public final /* synthetic */ int getColumnGutter() {
        return this.columnGutter;
    }

    public final /* synthetic */ TimelineComponent.IconAlignment getIconAlignment() {
        return this.iconAlignment;
    }

    public final /* synthetic */ int getItemSpacing() {
        return this.itemSpacing;
    }

    public final /* synthetic */ List getItems() {
        return this.items;
    }

    public final /* synthetic */ H0 getMargin() {
        return this.margin;
    }

    @Override // com.revenuecat.purchases.ui.revenuecatui.components.state.PackageContext
    public /* synthetic */ OfferEligibility getOfferEligibility() {
        return this.offerEligibility;
    }

    public final /* synthetic */ List getOverrides() {
        return this.overrides;
    }

    @Override // com.revenuecat.purchases.ui.revenuecatui.components.state.PackageContext
    public String getPackageUniqueId() {
        return PackageContext.DefaultImpls.getPackageUniqueId(this);
    }

    public final /* synthetic */ H0 getPadding() {
        return this.padding;
    }

    @Override // com.revenuecat.purchases.ui.revenuecatui.components.state.PackageContext
    public /* synthetic */ Package getRcPackage() {
        return this.rcPackage;
    }

    @Override // com.revenuecat.purchases.ui.revenuecatui.components.state.PackageContext
    public /* synthetic */ ResolvedOffer getResolvedOffer() {
        return this.resolvedOffer;
    }

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

    @Override // com.revenuecat.purchases.ui.revenuecatui.components.state.PackageContext
    public /* synthetic */ Integer getTabIndex() {
        return this.tabIndex;
    }

    public final /* synthetic */ int getTextSpacing() {
        return this.textSpacing;
    }

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

    public int hashCode() {
        int iC = AbstractC2761L.c(this.items, (this.margin.hashCode() + ((this.padding.hashCode() + ((this.size.hashCode() + a.f((this.iconAlignment.hashCode() + AbstractC2761L.a(this.columnGutter, AbstractC2761L.a(this.textSpacing, Integer.hashCode(this.itemSpacing) * 31, 31), 31)) * 31, 31, this.visible)) * 31)) * 31)) * 31, 31);
        Package r22 = this.rcPackage;
        int iHashCode = (iC + (r22 == null ? 0 : r22.hashCode())) * 31;
        ResolvedOffer resolvedOffer = this.resolvedOffer;
        int iHashCode2 = (iHashCode + (resolvedOffer == null ? 0 : resolvedOffer.hashCode())) * 31;
        Integer num = this.tabIndex;
        int iHashCode3 = (iHashCode2 + (num == null ? 0 : num.hashCode())) * 31;
        OfferEligibility offerEligibility = this.offerEligibility;
        return this.overrides.hashCode() + ((iHashCode3 + (offerEligibility != null ? offerEligibility.hashCode() : 0)) * 31);
    }

    @Override // com.revenuecat.purchases.ui.revenuecatui.components.state.PackageContext
    public /* synthetic */ OfferEligibility resolveOfferEligibility(OfferEligibility offerEligibility) {
        return PackageContext.DefaultImpls.resolveOfferEligibility(this, offerEligibility);
    }

    public String toString() {
        StringBuilder sb = new StringBuilder("TimelineComponentStyle(itemSpacing=");
        sb.append(this.itemSpacing);
        sb.append(", textSpacing=");
        sb.append(this.textSpacing);
        sb.append(", columnGutter=");
        sb.append(this.columnGutter);
        sb.append(", iconAlignment=");
        sb.append(this.iconAlignment);
        sb.append(", visible=");
        sb.append(this.visible);
        sb.append(", size=");
        sb.append(this.size);
        sb.append(", padding=");
        sb.append(this.padding);
        sb.append(", margin=");
        sb.append(this.margin);
        sb.append(", items=");
        sb.append(this.items);
        sb.append(", rcPackage=");
        sb.append(this.rcPackage);
        sb.append(", resolvedOffer=");
        sb.append(this.resolvedOffer);
        sb.append(", tabIndex=");
        sb.append(this.tabIndex);
        sb.append(", offerEligibility=");
        sb.append(this.offerEligibility);
        sb.append(", overrides=");
        return A0.a.o(sb, this.overrides, ')');
    }

    @Immutable
    public static final class ItemStyle implements PackageContext {
        public static final int $stable = 0;
        private final ConnectorStyle connector;
        private final TextComponentStyle description;
        private final IconComponentStyle icon;
        private final OfferEligibility offerEligibility;
        private final List<PresentedOverride<PresentedTimelineItemPartial>> overrides;
        private final Package rcPackage;
        private final ResolvedOffer resolvedOffer;
        private final Integer tabIndex;
        private final TextComponentStyle title;
        private final boolean visible;

        public ItemStyle(TextComponentStyle title, boolean z6, TextComponentStyle textComponentStyle, IconComponentStyle icon, ConnectorStyle connectorStyle, Package r7, ResolvedOffer resolvedOffer, Integer num, OfferEligibility offerEligibility, List<PresentedOverride<PresentedTimelineItemPartial>> overrides) {
            o.h(title, "title");
            o.h(icon, "icon");
            o.h(overrides, "overrides");
            this.title = title;
            this.visible = z6;
            this.description = textComponentStyle;
            this.icon = icon;
            this.connector = connectorStyle;
            this.rcPackage = r7;
            this.resolvedOffer = resolvedOffer;
            this.tabIndex = num;
            this.offerEligibility = offerEligibility;
            this.overrides = overrides;
        }

        /* JADX WARN: Multi-variable type inference failed */
        public static /* synthetic */ ItemStyle copy$default(ItemStyle itemStyle, TextComponentStyle textComponentStyle, boolean z6, TextComponentStyle textComponentStyle2, IconComponentStyle iconComponentStyle, ConnectorStyle connectorStyle, Package r6, ResolvedOffer resolvedOffer, Integer num, OfferEligibility offerEligibility, List list, int i6, Object obj) {
            if ((i6 & 1) != 0) {
                textComponentStyle = itemStyle.title;
            }
            if ((i6 & 2) != 0) {
                z6 = itemStyle.visible;
            }
            if ((i6 & 4) != 0) {
                textComponentStyle2 = itemStyle.description;
            }
            if ((i6 & 8) != 0) {
                iconComponentStyle = itemStyle.icon;
            }
            if ((i6 & 16) != 0) {
                connectorStyle = itemStyle.connector;
            }
            if ((i6 & 32) != 0) {
                r6 = itemStyle.rcPackage;
            }
            if ((i6 & 64) != 0) {
                resolvedOffer = itemStyle.resolvedOffer;
            }
            if ((i6 & 128) != 0) {
                num = itemStyle.tabIndex;
            }
            if ((i6 & 256) != 0) {
                offerEligibility = itemStyle.offerEligibility;
            }
            if ((i6 & 512) != 0) {
                list = itemStyle.overrides;
            }
            OfferEligibility offerEligibility2 = offerEligibility;
            List list2 = list;
            ResolvedOffer resolvedOffer2 = resolvedOffer;
            Integer num2 = num;
            ConnectorStyle connectorStyle2 = connectorStyle;
            Package r8 = r6;
            return itemStyle.copy(textComponentStyle, z6, textComponentStyle2, iconComponentStyle, connectorStyle2, r8, resolvedOffer2, num2, offerEligibility2, list2);
        }

        public final TextComponentStyle component1() {
            return this.title;
        }

        public final List<PresentedOverride<PresentedTimelineItemPartial>> component10() {
            return this.overrides;
        }

        public final boolean component2() {
            return this.visible;
        }

        public final TextComponentStyle component3() {
            return this.description;
        }

        public final IconComponentStyle component4() {
            return this.icon;
        }

        public final ConnectorStyle component5() {
            return this.connector;
        }

        public final Package component6() {
            return this.rcPackage;
        }

        public final ResolvedOffer component7() {
            return this.resolvedOffer;
        }

        public final Integer component8() {
            return this.tabIndex;
        }

        public final OfferEligibility component9() {
            return this.offerEligibility;
        }

        @Override // com.revenuecat.purchases.ui.revenuecatui.components.state.PackageContext
        public /* synthetic */ boolean computeIsSelected(PaywallState.Loaded.Components.SelectedPackageInfo selectedPackageInfo, int i6) {
            return PackageContext.DefaultImpls.computeIsSelected(this, selectedPackageInfo, i6);
        }

        public final ItemStyle copy(TextComponentStyle title, boolean z6, TextComponentStyle textComponentStyle, IconComponentStyle icon, ConnectorStyle connectorStyle, Package r18, ResolvedOffer resolvedOffer, Integer num, OfferEligibility offerEligibility, List<PresentedOverride<PresentedTimelineItemPartial>> overrides) {
            o.h(title, "title");
            o.h(icon, "icon");
            o.h(overrides, "overrides");
            return new ItemStyle(title, z6, textComponentStyle, icon, connectorStyle, r18, resolvedOffer, num, offerEligibility, overrides);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof ItemStyle)) {
                return false;
            }
            ItemStyle itemStyle = (ItemStyle) obj;
            return o.c(this.title, itemStyle.title) && this.visible == itemStyle.visible && o.c(this.description, itemStyle.description) && o.c(this.icon, itemStyle.icon) && o.c(this.connector, itemStyle.connector) && o.c(this.rcPackage, itemStyle.rcPackage) && o.c(this.resolvedOffer, itemStyle.resolvedOffer) && o.c(this.tabIndex, itemStyle.tabIndex) && o.c(this.offerEligibility, itemStyle.offerEligibility) && o.c(this.overrides, itemStyle.overrides);
        }

        public final /* synthetic */ ConnectorStyle getConnector() {
            return this.connector;
        }

        public final /* synthetic */ TextComponentStyle getDescription() {
            return this.description;
        }

        public final /* synthetic */ IconComponentStyle getIcon() {
            return this.icon;
        }

        @Override // com.revenuecat.purchases.ui.revenuecatui.components.state.PackageContext
        public /* synthetic */ OfferEligibility getOfferEligibility() {
            return this.offerEligibility;
        }

        public final /* synthetic */ List getOverrides() {
            return this.overrides;
        }

        @Override // com.revenuecat.purchases.ui.revenuecatui.components.state.PackageContext
        public String getPackageUniqueId() {
            return PackageContext.DefaultImpls.getPackageUniqueId(this);
        }

        @Override // com.revenuecat.purchases.ui.revenuecatui.components.state.PackageContext
        public /* synthetic */ Package getRcPackage() {
            return this.rcPackage;
        }

        @Override // com.revenuecat.purchases.ui.revenuecatui.components.state.PackageContext
        public /* synthetic */ ResolvedOffer getResolvedOffer() {
            return this.resolvedOffer;
        }

        @Override // com.revenuecat.purchases.ui.revenuecatui.components.state.PackageContext
        public /* synthetic */ Integer getTabIndex() {
            return this.tabIndex;
        }

        public final /* synthetic */ TextComponentStyle getTitle() {
            return this.title;
        }

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

        public int hashCode() {
            int iF = a.f(this.title.hashCode() * 31, 31, this.visible);
            TextComponentStyle textComponentStyle = this.description;
            int iHashCode = (this.icon.hashCode() + ((iF + (textComponentStyle == null ? 0 : textComponentStyle.hashCode())) * 31)) * 31;
            ConnectorStyle connectorStyle = this.connector;
            int iHashCode2 = (iHashCode + (connectorStyle == null ? 0 : connectorStyle.hashCode())) * 31;
            Package r02 = this.rcPackage;
            int iHashCode3 = (iHashCode2 + (r02 == null ? 0 : r02.hashCode())) * 31;
            ResolvedOffer resolvedOffer = this.resolvedOffer;
            int iHashCode4 = (iHashCode3 + (resolvedOffer == null ? 0 : resolvedOffer.hashCode())) * 31;
            Integer num = this.tabIndex;
            int iHashCode5 = (iHashCode4 + (num == null ? 0 : num.hashCode())) * 31;
            OfferEligibility offerEligibility = this.offerEligibility;
            return this.overrides.hashCode() + ((iHashCode5 + (offerEligibility != null ? offerEligibility.hashCode() : 0)) * 31);
        }

        @Override // com.revenuecat.purchases.ui.revenuecatui.components.state.PackageContext
        public /* synthetic */ OfferEligibility resolveOfferEligibility(OfferEligibility offerEligibility) {
            return PackageContext.DefaultImpls.resolveOfferEligibility(this, offerEligibility);
        }

        public String toString() {
            StringBuilder sb = new StringBuilder("ItemStyle(title=");
            sb.append(this.title);
            sb.append(", visible=");
            sb.append(this.visible);
            sb.append(", description=");
            sb.append(this.description);
            sb.append(", icon=");
            sb.append(this.icon);
            sb.append(", connector=");
            sb.append(this.connector);
            sb.append(", rcPackage=");
            sb.append(this.rcPackage);
            sb.append(", resolvedOffer=");
            sb.append(this.resolvedOffer);
            sb.append(", tabIndex=");
            sb.append(this.tabIndex);
            sb.append(", offerEligibility=");
            sb.append(this.offerEligibility);
            sb.append(", overrides=");
            return A0.a.o(sb, this.overrides, ')');
        }

        /* JADX WARN: Illegal instructions before constructor call */
        public /* synthetic */ ItemStyle(TextComponentStyle textComponentStyle, boolean z6, TextComponentStyle textComponentStyle2, IconComponentStyle iconComponentStyle, ConnectorStyle connectorStyle, Package r7, ResolvedOffer resolvedOffer, Integer num, OfferEligibility offerEligibility, List list, int i6, h hVar) {
            List list2;
            OfferEligibility offerEligibility2;
            resolvedOffer = (i6 & 64) != 0 ? null : resolvedOffer;
            if ((i6 & 256) != 0) {
                list2 = list;
                offerEligibility2 = null;
            } else {
                list2 = list;
                offerEligibility2 = offerEligibility;
            }
            this(textComponentStyle, z6, textComponentStyle2, iconComponentStyle, connectorStyle, r7, resolvedOffer, num, offerEligibility2, list2);
        }
    }

    public /* synthetic */ TimelineComponentStyle(int i6, int i7, int i8, TimelineComponent.IconAlignment iconAlignment, boolean z6, Size size, H0 h0, H0 h02, List list, Package r28, ResolvedOffer resolvedOffer, Integer num, OfferEligibility offerEligibility, List list2, int i9, h hVar) {
        this(i6, i7, i8, iconAlignment, z6, size, h0, h02, list, r28, (i9 & 1024) != 0 ? null : resolvedOffer, num, (i9 & 4096) != 0 ? null : offerEligibility, list2);
    }
}
