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

import B.H0;
import G0.InterfaceC0262j;
import androidx.compose.runtime.Immutable;
import androidx.media3.exoplayer.DecoderReuseEvaluation;
import com.google.android.recaptcha.internal.a;
import com.revenuecat.purchases.Package;
import com.revenuecat.purchases.paywalls.components.common.LocaleId;
import com.revenuecat.purchases.paywalls.components.properties.Size;
import com.revenuecat.purchases.paywalls.components.properties.ThemeImageUrls;
import com.revenuecat.purchases.ui.revenuecatui.components.PresentedImagePartial;
import com.revenuecat.purchases.ui.revenuecatui.components.PresentedOverride;
import com.revenuecat.purchases.ui.revenuecatui.components.properties.BorderStyles;
import com.revenuecat.purchases.ui.revenuecatui.components.properties.ColorStyles;
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.NonEmptyMap;
import com.revenuecat.purchases.ui.revenuecatui.helpers.ResolvedOffer;
import java.util.List;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.o;
import p0.X;
import q.AbstractC2761L;

/* JADX INFO: loaded from: classes3.dex */
@Immutable
public final class ImageComponentStyle implements ComponentStyle, PackageContext {
    public static final int $stable = 0;
    private final BorderStyles border;
    private final InterfaceC0262j contentScale;
    private final boolean ignoreTopWindowInsets;
    private final H0 margin;
    private final OfferEligibility offerEligibility;
    private final ColorStyles overlay;
    private final List<PresentedOverride<PresentedImagePartial>> overrides;
    private final H0 padding;
    private final Package rcPackage;
    private final ResolvedOffer resolvedOffer;
    private final ShadowStyles shadow;
    private final X shape;
    private final Size size;
    private final NonEmptyMap<LocaleId, ThemeImageUrls> sources;
    private final Integer tabIndex;
    private final boolean visible;

    public ImageComponentStyle(NonEmptyMap<LocaleId, ThemeImageUrls> sources, boolean z6, Size size, H0 padding, H0 margin, X x6, BorderStyles borderStyles, ShadowStyles shadowStyles, ColorStyles colorStyles, InterfaceC0262j contentScale, Package r13, ResolvedOffer resolvedOffer, Integer num, OfferEligibility offerEligibility, List<PresentedOverride<PresentedImagePartial>> overrides, boolean z7) {
        o.h(sources, "sources");
        o.h(size, "size");
        o.h(padding, "padding");
        o.h(margin, "margin");
        o.h(contentScale, "contentScale");
        o.h(overrides, "overrides");
        this.sources = sources;
        this.visible = z6;
        this.size = size;
        this.padding = padding;
        this.margin = margin;
        this.shape = x6;
        this.border = borderStyles;
        this.shadow = shadowStyles;
        this.overlay = colorStyles;
        this.contentScale = contentScale;
        this.rcPackage = r13;
        this.resolvedOffer = resolvedOffer;
        this.tabIndex = num;
        this.offerEligibility = offerEligibility;
        this.overrides = overrides;
        this.ignoreTopWindowInsets = z7;
    }

    public final NonEmptyMap<LocaleId, ThemeImageUrls> component1() {
        return this.sources;
    }

    public final InterfaceC0262j component10() {
        return this.contentScale;
    }

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

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

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

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

    public final List<PresentedOverride<PresentedImagePartial>> component15() {
        return this.overrides;
    }

    public final boolean component16() {
        return this.ignoreTopWindowInsets;
    }

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

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

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

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

    public final X component6() {
        return this.shape;
    }

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

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

    public final ColorStyles component9() {
        return this.overlay;
    }

    @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 ImageComponentStyle copy(NonEmptyMap<LocaleId, ThemeImageUrls> sources, boolean z6, Size size, H0 padding, H0 margin, X x6, BorderStyles borderStyles, ShadowStyles shadowStyles, ColorStyles colorStyles, InterfaceC0262j contentScale, Package r29, ResolvedOffer resolvedOffer, Integer num, OfferEligibility offerEligibility, List<PresentedOverride<PresentedImagePartial>> overrides, boolean z7) {
        o.h(sources, "sources");
        o.h(size, "size");
        o.h(padding, "padding");
        o.h(margin, "margin");
        o.h(contentScale, "contentScale");
        o.h(overrides, "overrides");
        return new ImageComponentStyle(sources, z6, size, padding, margin, x6, borderStyles, shadowStyles, colorStyles, contentScale, r29, resolvedOffer, num, offerEligibility, overrides, z7);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof ImageComponentStyle)) {
            return false;
        }
        ImageComponentStyle imageComponentStyle = (ImageComponentStyle) obj;
        return o.c(this.sources, imageComponentStyle.sources) && this.visible == imageComponentStyle.visible && o.c(this.size, imageComponentStyle.size) && o.c(this.padding, imageComponentStyle.padding) && o.c(this.margin, imageComponentStyle.margin) && o.c(this.shape, imageComponentStyle.shape) && o.c(this.border, imageComponentStyle.border) && o.c(this.shadow, imageComponentStyle.shadow) && o.c(this.overlay, imageComponentStyle.overlay) && o.c(this.contentScale, imageComponentStyle.contentScale) && o.c(this.rcPackage, imageComponentStyle.rcPackage) && o.c(this.resolvedOffer, imageComponentStyle.resolvedOffer) && o.c(this.tabIndex, imageComponentStyle.tabIndex) && o.c(this.offerEligibility, imageComponentStyle.offerEligibility) && o.c(this.overrides, imageComponentStyle.overrides) && this.ignoreTopWindowInsets == imageComponentStyle.ignoreTopWindowInsets;
    }

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

    public final /* synthetic */ InterfaceC0262j getContentScale() {
        return this.contentScale;
    }

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

    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 */ ColorStyles getOverlay() {
        return this.overlay;
    }

    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 */ ShadowStyles getShadow() {
        return this.shadow;
    }

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

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

    public final /* synthetic */ NonEmptyMap getSources() {
        return this.sources;
    }

    @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 iHashCode = (this.margin.hashCode() + ((this.padding.hashCode() + ((this.size.hashCode() + a.f(this.sources.hashCode() * 31, 31, this.visible)) * 31)) * 31)) * 31;
        X x6 = this.shape;
        int iHashCode2 = (iHashCode + (x6 == null ? 0 : x6.hashCode())) * 31;
        BorderStyles borderStyles = this.border;
        int iHashCode3 = (iHashCode2 + (borderStyles == null ? 0 : borderStyles.hashCode())) * 31;
        ShadowStyles shadowStyles = this.shadow;
        int iHashCode4 = (iHashCode3 + (shadowStyles == null ? 0 : shadowStyles.hashCode())) * 31;
        ColorStyles colorStyles = this.overlay;
        int iHashCode5 = (this.contentScale.hashCode() + ((iHashCode4 + (colorStyles == null ? 0 : colorStyles.hashCode())) * 31)) * 31;
        Package r22 = this.rcPackage;
        int iHashCode6 = (iHashCode5 + (r22 == null ? 0 : r22.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;
        return Boolean.hashCode(this.ignoreTopWindowInsets) + AbstractC2761L.c(this.overrides, (iHashCode8 + (offerEligibility != null ? offerEligibility.hashCode() : 0)) * 31, 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("ImageComponentStyle(sources=");
        sb.append(this.sources);
        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(", shape=");
        sb.append(this.shape);
        sb.append(", border=");
        sb.append(this.border);
        sb.append(", shadow=");
        sb.append(this.shadow);
        sb.append(", overlay=");
        sb.append(this.overlay);
        sb.append(", contentScale=");
        sb.append(this.contentScale);
        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=");
        sb.append(this.overrides);
        sb.append(", ignoreTopWindowInsets=");
        return AbstractC2761L.h(sb, this.ignoreTopWindowInsets, ')');
    }

    public /* synthetic */ ImageComponentStyle(NonEmptyMap nonEmptyMap, boolean z6, Size size, H0 h0, H0 h02, X x6, BorderStyles borderStyles, ShadowStyles shadowStyles, ColorStyles colorStyles, InterfaceC0262j interfaceC0262j, Package r31, ResolvedOffer resolvedOffer, Integer num, OfferEligibility offerEligibility, List list, boolean z7, int i6, h hVar) {
        this(nonEmptyMap, z6, size, h0, h02, x6, borderStyles, shadowStyles, colorStyles, interfaceC0262j, r31, (i6 & 2048) != 0 ? null : resolvedOffer, num, (i6 & 8192) != 0 ? null : offerEligibility, list, (i6 & DecoderReuseEvaluation.DISCARD_REASON_AUDIO_BYPASS_POSSIBLE) != 0 ? false : z7);
    }
}
