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

import B.H0;
import androidx.compose.runtime.Immutable;
import androidx.media3.common.C;
import androidx.media3.exoplayer.DecoderReuseEvaluation;
import androidx.media3.exoplayer.source.ProgressiveMediaSource;
import com.google.android.recaptcha.internal.a;
import com.revenuecat.purchases.Package;
import com.revenuecat.purchases.paywalls.components.CountdownComponent;
import com.revenuecat.purchases.paywalls.components.properties.Dimension;
import com.revenuecat.purchases.paywalls.components.properties.Shape;
import com.revenuecat.purchases.paywalls.components.properties.Size;
import com.revenuecat.purchases.ui.revenuecatui.components.PresentedOverride;
import com.revenuecat.purchases.ui.revenuecatui.components.PresentedStackPartial;
import com.revenuecat.purchases.ui.revenuecatui.components.properties.BackgroundStyles;
import com.revenuecat.purchases.ui.revenuecatui.components.properties.BorderStyles;
import com.revenuecat.purchases.ui.revenuecatui.components.properties.ShadowStyles;
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 h1.f;
import java.util.Date;
import java.util.List;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.o;
import q.AbstractC2761L;
import x.EnumC3207z0;

/* JADX INFO: loaded from: classes3.dex */
@Immutable
public final class StackComponentStyle implements ComponentStyle, PackageContext {
    public static final int $stable = 0;
    private final boolean applyBottomWindowInsets;
    private final boolean applyHorizontalWindowInsets;
    private final boolean applyTopWindowInsets;
    private final BackgroundStyles background;
    private final BadgeStyle badge;
    private final BorderStyles border;
    private final List<ComponentStyle> children;
    private final CountdownComponent.CountFrom countFrom;
    private final Date countdownDate;
    private final Dimension dimension;
    private final H0 margin;
    private final OfferEligibility offerEligibility;
    private final List<PresentedOverride<PresentedStackPartial>> overrides;
    private final H0 padding;
    private final Package rcPackage;
    private final ResolvedOffer resolvedOffer;
    private final EnumC3207z0 scrollOrientation;
    private final ShadowStyles shadow;
    private final Shape shape;
    private final Size size;
    private final float spacing;
    private final Integer tabIndex;
    private final boolean visible;

    public /* synthetic */ StackComponentStyle(List list, Dimension dimension, boolean z6, Size size, float f6, BackgroundStyles backgroundStyles, H0 h0, H0 h02, Shape shape, BorderStyles borderStyles, ShadowStyles shadowStyles, BadgeStyle badgeStyle, EnumC3207z0 enumC3207z0, Package r14, ResolvedOffer resolvedOffer, Integer num, OfferEligibility offerEligibility, Date date, CountdownComponent.CountFrom countFrom, List list2, boolean z7, boolean z8, boolean z9, h hVar) {
        this(list, dimension, z6, size, f6, backgroundStyles, h0, h02, shape, borderStyles, shadowStyles, badgeStyle, enumC3207z0, r14, resolvedOffer, num, offerEligibility, date, countFrom, list2, z7, z8, z9);
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX INFO: renamed from: copy-KMZiVUk$default, reason: not valid java name */
    public static /* synthetic */ StackComponentStyle m790copyKMZiVUk$default(StackComponentStyle stackComponentStyle, List list, Dimension dimension, boolean z6, Size size, float f6, BackgroundStyles backgroundStyles, H0 h0, H0 h02, Shape shape, BorderStyles borderStyles, ShadowStyles shadowStyles, BadgeStyle badgeStyle, EnumC3207z0 enumC3207z0, Package r31, ResolvedOffer resolvedOffer, Integer num, OfferEligibility offerEligibility, Date date, CountdownComponent.CountFrom countFrom, List list2, boolean z7, boolean z8, boolean z9, int i6, Object obj) {
        boolean z10;
        boolean z11;
        List list3 = (i6 & 1) != 0 ? stackComponentStyle.children : list;
        Dimension dimension2 = (i6 & 2) != 0 ? stackComponentStyle.dimension : dimension;
        boolean z12 = (i6 & 4) != 0 ? stackComponentStyle.visible : z6;
        Size size2 = (i6 & 8) != 0 ? stackComponentStyle.size : size;
        float f7 = (i6 & 16) != 0 ? stackComponentStyle.spacing : f6;
        BackgroundStyles backgroundStyles2 = (i6 & 32) != 0 ? stackComponentStyle.background : backgroundStyles;
        H0 h03 = (i6 & 64) != 0 ? stackComponentStyle.padding : h0;
        H0 h04 = (i6 & 128) != 0 ? stackComponentStyle.margin : h02;
        Shape shape2 = (i6 & 256) != 0 ? stackComponentStyle.shape : shape;
        BorderStyles borderStyles2 = (i6 & 512) != 0 ? stackComponentStyle.border : borderStyles;
        ShadowStyles shadowStyles2 = (i6 & 1024) != 0 ? stackComponentStyle.shadow : shadowStyles;
        BadgeStyle badgeStyle2 = (i6 & 2048) != 0 ? stackComponentStyle.badge : badgeStyle;
        EnumC3207z0 enumC3207z02 = (i6 & 4096) != 0 ? stackComponentStyle.scrollOrientation : enumC3207z0;
        Package r15 = (i6 & 8192) != 0 ? stackComponentStyle.rcPackage : r31;
        List list4 = list3;
        ResolvedOffer resolvedOffer2 = (i6 & 16384) != 0 ? stackComponentStyle.resolvedOffer : resolvedOffer;
        Integer num2 = (i6 & DecoderReuseEvaluation.DISCARD_REASON_AUDIO_BYPASS_POSSIBLE) != 0 ? stackComponentStyle.tabIndex : num;
        OfferEligibility offerEligibility2 = (i6 & C.DEFAULT_BUFFER_SEGMENT_SIZE) != 0 ? stackComponentStyle.offerEligibility : offerEligibility;
        Date date2 = (i6 & 131072) != 0 ? stackComponentStyle.countdownDate : date;
        CountdownComponent.CountFrom countFrom2 = (i6 & 262144) != 0 ? stackComponentStyle.countFrom : countFrom;
        List list5 = (i6 & 524288) != 0 ? stackComponentStyle.overrides : list2;
        boolean z13 = (i6 & ProgressiveMediaSource.DEFAULT_LOADING_CHECK_INTERVAL_BYTES) != 0 ? stackComponentStyle.applyTopWindowInsets : z7;
        boolean z14 = (i6 & 2097152) != 0 ? stackComponentStyle.applyBottomWindowInsets : z8;
        if ((i6 & 4194304) != 0) {
            z11 = z14;
            z10 = stackComponentStyle.applyHorizontalWindowInsets;
        } else {
            z10 = z9;
            z11 = z14;
        }
        return stackComponentStyle.m792copyKMZiVUk(list4, dimension2, z12, size2, f7, backgroundStyles2, h03, h04, shape2, borderStyles2, shadowStyles2, badgeStyle2, enumC3207z02, r15, resolvedOffer2, num2, offerEligibility2, date2, countFrom2, list5, z13, z11, z10);
    }

    public final List<ComponentStyle> component1() {
        return this.children;
    }

    public final BorderStyles component10() {
        return this.border;
    }

    public final ShadowStyles component11() {
        return this.shadow;
    }

    public final BadgeStyle component12() {
        return this.badge;
    }

    public final EnumC3207z0 component13() {
        return this.scrollOrientation;
    }

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

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

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

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

    public final Date component18() {
        return this.countdownDate;
    }

    public final CountdownComponent.CountFrom component19() {
        return this.countFrom;
    }

    public final Dimension component2() {
        return this.dimension;
    }

    public final List<PresentedOverride<PresentedStackPartial>> component20() {
        return this.overrides;
    }

    public final boolean component21() {
        return this.applyTopWindowInsets;
    }

    public final boolean component22() {
        return this.applyBottomWindowInsets;
    }

    public final boolean component23() {
        return this.applyHorizontalWindowInsets;
    }

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

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

    /* JADX INFO: renamed from: component5-D9Ej5fM, reason: not valid java name */
    public final float m791component5D9Ej5fM() {
        return this.spacing;
    }

    public final BackgroundStyles component6() {
        return this.background;
    }

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

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

    public final Shape component9() {
        return this.shape;
    }

    @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);
    }

    /* JADX INFO: renamed from: copy-KMZiVUk, reason: not valid java name */
    public final StackComponentStyle m792copyKMZiVUk(List<? extends ComponentStyle> children, Dimension dimension, boolean z6, Size size, float f6, BackgroundStyles backgroundStyles, H0 padding, H0 margin, Shape shape, BorderStyles borderStyles, ShadowStyles shadowStyles, BadgeStyle badgeStyle, EnumC3207z0 enumC3207z0, Package r40, ResolvedOffer resolvedOffer, Integer num, OfferEligibility offerEligibility, Date date, CountdownComponent.CountFrom countFrom, List<PresentedOverride<PresentedStackPartial>> overrides, boolean z7, boolean z8, boolean z9) {
        o.h(children, "children");
        o.h(dimension, "dimension");
        o.h(size, "size");
        o.h(padding, "padding");
        o.h(margin, "margin");
        o.h(shape, "shape");
        o.h(countFrom, "countFrom");
        o.h(overrides, "overrides");
        return new StackComponentStyle(children, dimension, z6, size, f6, backgroundStyles, padding, margin, shape, borderStyles, shadowStyles, badgeStyle, enumC3207z0, r40, resolvedOffer, num, offerEligibility, date, countFrom, overrides, z7, z8, z9, null);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof StackComponentStyle)) {
            return false;
        }
        StackComponentStyle stackComponentStyle = (StackComponentStyle) obj;
        return o.c(this.children, stackComponentStyle.children) && o.c(this.dimension, stackComponentStyle.dimension) && this.visible == stackComponentStyle.visible && o.c(this.size, stackComponentStyle.size) && f.c(this.spacing, stackComponentStyle.spacing) && o.c(this.background, stackComponentStyle.background) && o.c(this.padding, stackComponentStyle.padding) && o.c(this.margin, stackComponentStyle.margin) && o.c(this.shape, stackComponentStyle.shape) && o.c(this.border, stackComponentStyle.border) && o.c(this.shadow, stackComponentStyle.shadow) && o.c(this.badge, stackComponentStyle.badge) && this.scrollOrientation == stackComponentStyle.scrollOrientation && o.c(this.rcPackage, stackComponentStyle.rcPackage) && o.c(this.resolvedOffer, stackComponentStyle.resolvedOffer) && o.c(this.tabIndex, stackComponentStyle.tabIndex) && o.c(this.offerEligibility, stackComponentStyle.offerEligibility) && o.c(this.countdownDate, stackComponentStyle.countdownDate) && this.countFrom == stackComponentStyle.countFrom && o.c(this.overrides, stackComponentStyle.overrides) && this.applyTopWindowInsets == stackComponentStyle.applyTopWindowInsets && this.applyBottomWindowInsets == stackComponentStyle.applyBottomWindowInsets && this.applyHorizontalWindowInsets == stackComponentStyle.applyHorizontalWindowInsets;
    }

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

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

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

    public final /* synthetic */ BackgroundStyles getBackground() {
        return this.background;
    }

    public final /* synthetic */ BadgeStyle getBadge() {
        return this.badge;
    }

    public final /* synthetic */ BorderStyles getBorder() {
        return this.border;
    }

    public final /* synthetic */ List getChildren() {
        return this.children;
    }

    public final /* synthetic */ CountdownComponent.CountFrom getCountFrom() {
        return this.countFrom;
    }

    public final /* synthetic */ Date getCountdownDate() {
        return this.countdownDate;
    }

    public final /* synthetic */ Dimension getDimension() {
        return this.dimension;
    }

    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;
    }

    public final /* synthetic */ EnumC3207z0 getScrollOrientation() {
        return this.scrollOrientation;
    }

    public final /* synthetic */ ShadowStyles getShadow() {
        return this.shadow;
    }

    public final /* synthetic */ Shape getShape() {
        return this.shape;
    }

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

    /* JADX INFO: renamed from: getSpacing-D9Ej5fM, reason: not valid java name */
    public final /* synthetic */ float m793getSpacingD9Ej5fM() {
        return this.spacing;
    }

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

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

    public int hashCode() {
        int iB = a.b(this.spacing, (this.size.hashCode() + a.f((this.dimension.hashCode() + (this.children.hashCode() * 31)) * 31, 31, this.visible)) * 31, 31);
        BackgroundStyles backgroundStyles = this.background;
        int iHashCode = (this.shape.hashCode() + ((this.margin.hashCode() + ((this.padding.hashCode() + ((iB + (backgroundStyles == null ? 0 : backgroundStyles.hashCode())) * 31)) * 31)) * 31)) * 31;
        BorderStyles borderStyles = this.border;
        int iHashCode2 = (iHashCode + (borderStyles == null ? 0 : borderStyles.hashCode())) * 31;
        ShadowStyles shadowStyles = this.shadow;
        int iHashCode3 = (iHashCode2 + (shadowStyles == null ? 0 : shadowStyles.hashCode())) * 31;
        BadgeStyle badgeStyle = this.badge;
        int iHashCode4 = (iHashCode3 + (badgeStyle == null ? 0 : badgeStyle.hashCode())) * 31;
        EnumC3207z0 enumC3207z0 = this.scrollOrientation;
        int iHashCode5 = (iHashCode4 + (enumC3207z0 == null ? 0 : enumC3207z0.hashCode())) * 31;
        Package r02 = this.rcPackage;
        int iHashCode6 = (iHashCode5 + (r02 == null ? 0 : r02.hashCode())) * 31;
        ResolvedOffer resolvedOffer = this.resolvedOffer;
        int iHashCode7 = (iHashCode6 + (resolvedOffer == null ? 0 : resolvedOffer.hashCode())) * 31;
        Integer num = this.tabIndex;
        int iHashCode8 = (iHashCode7 + (num == null ? 0 : num.hashCode())) * 31;
        OfferEligibility offerEligibility = this.offerEligibility;
        int iHashCode9 = (iHashCode8 + (offerEligibility == null ? 0 : offerEligibility.hashCode())) * 31;
        Date date = this.countdownDate;
        return Boolean.hashCode(this.applyHorizontalWindowInsets) + a.f(a.f(AbstractC2761L.c(this.overrides, (this.countFrom.hashCode() + ((iHashCode9 + (date != null ? date.hashCode() : 0)) * 31)) * 31, 31), 31, this.applyTopWindowInsets), 31, this.applyBottomWindowInsets);
    }

    @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("StackComponentStyle(children=");
        sb.append(this.children);
        sb.append(", dimension=");
        sb.append(this.dimension);
        sb.append(", visible=");
        sb.append(this.visible);
        sb.append(", size=");
        sb.append(this.size);
        sb.append(", spacing=");
        AbstractC2761L.k(this.spacing, sb, ", background=");
        sb.append(this.background);
        sb.append(", padding=");
        sb.append(this.padding);
        sb.append(", margin=");
        sb.append(this.margin);
        sb.append(", shape=");
        sb.append(this.shape);
        sb.append(", border=");
        sb.append(this.border);
        sb.append(", shadow=");
        sb.append(this.shadow);
        sb.append(", badge=");
        sb.append(this.badge);
        sb.append(", scrollOrientation=");
        sb.append(this.scrollOrientation);
        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(", countdownDate=");
        sb.append(this.countdownDate);
        sb.append(", countFrom=");
        sb.append(this.countFrom);
        sb.append(", overrides=");
        sb.append(this.overrides);
        sb.append(", applyTopWindowInsets=");
        sb.append(this.applyTopWindowInsets);
        sb.append(", applyBottomWindowInsets=");
        sb.append(this.applyBottomWindowInsets);
        sb.append(", applyHorizontalWindowInsets=");
        return AbstractC2761L.h(sb, this.applyHorizontalWindowInsets, ')');
    }

    /* JADX WARN: Multi-variable type inference failed */
    private StackComponentStyle(List<? extends ComponentStyle> children, Dimension dimension, boolean z6, Size size, float f6, BackgroundStyles backgroundStyles, H0 padding, H0 margin, Shape shape, BorderStyles borderStyles, ShadowStyles shadowStyles, BadgeStyle badgeStyle, EnumC3207z0 enumC3207z0, Package r17, ResolvedOffer resolvedOffer, Integer num, OfferEligibility offerEligibility, Date date, CountdownComponent.CountFrom countFrom, List<PresentedOverride<PresentedStackPartial>> overrides, boolean z7, boolean z8, boolean z9) {
        o.h(children, "children");
        o.h(dimension, "dimension");
        o.h(size, "size");
        o.h(padding, "padding");
        o.h(margin, "margin");
        o.h(shape, "shape");
        o.h(countFrom, "countFrom");
        o.h(overrides, "overrides");
        this.children = children;
        this.dimension = dimension;
        this.visible = z6;
        this.size = size;
        this.spacing = f6;
        this.background = backgroundStyles;
        this.padding = padding;
        this.margin = margin;
        this.shape = shape;
        this.border = borderStyles;
        this.shadow = shadowStyles;
        this.badge = badgeStyle;
        this.scrollOrientation = enumC3207z0;
        this.rcPackage = r17;
        this.resolvedOffer = resolvedOffer;
        this.tabIndex = num;
        this.offerEligibility = offerEligibility;
        this.countdownDate = date;
        this.countFrom = countFrom;
        this.overrides = overrides;
        this.applyTopWindowInsets = z7;
        this.applyBottomWindowInsets = z8;
        this.applyHorizontalWindowInsets = z9;
    }

    public /* synthetic */ StackComponentStyle(List list, Dimension dimension, boolean z6, Size size, float f6, BackgroundStyles backgroundStyles, H0 h0, H0 h02, Shape shape, BorderStyles borderStyles, ShadowStyles shadowStyles, BadgeStyle badgeStyle, EnumC3207z0 enumC3207z0, Package r42, ResolvedOffer resolvedOffer, Integer num, OfferEligibility offerEligibility, Date date, CountdownComponent.CountFrom countFrom, List list2, boolean z7, boolean z8, boolean z9, int i6, h hVar) {
        this(list, dimension, z6, size, f6, backgroundStyles, h0, h02, shape, borderStyles, shadowStyles, badgeStyle, enumC3207z0, r42, (i6 & 16384) != 0 ? null : resolvedOffer, num, (65536 & i6) != 0 ? null : offerEligibility, date, countFrom, list2, (1048576 & i6) != 0 ? false : z7, (2097152 & i6) != 0 ? false : z8, (i6 & 4194304) != 0 ? false : z9, null);
    }
}
