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

import B.H0;
import G0.InterfaceC0262j;
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.common.LocaleId;
import com.revenuecat.purchases.paywalls.components.properties.Size;
import com.revenuecat.purchases.paywalls.components.properties.ThemeImageUrls;
import com.revenuecat.purchases.paywalls.components.properties.ThemeVideoUrls;
import com.revenuecat.purchases.ui.revenuecatui.components.PresentedOverride;
import com.revenuecat.purchases.ui.revenuecatui.components.PresentedVideoPartial;
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;

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

    public VideoComponentStyle(NonEmptyMap<LocaleId, ThemeVideoUrls> sources, NonEmptyMap<LocaleId, ThemeImageUrls> nonEmptyMap, boolean z6, boolean z7, boolean z8, boolean z9, Size size, boolean z10, H0 padding, H0 margin, X x6, BorderStyles borderStyles, ShadowStyles shadowStyles, ColorStyles colorStyles, InterfaceC0262j contentScale, Package r19, ResolvedOffer resolvedOffer, Integer num, OfferEligibility offerEligibility, boolean z11, List<PresentedOverride<PresentedVideoPartial>> overrides) {
        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.fallbackSources = nonEmptyMap;
        this.showControls = z6;
        this.autoplay = z7;
        this.loop = z8;
        this.muteAudio = z9;
        this.size = size;
        this.visible = z10;
        this.padding = padding;
        this.margin = margin;
        this.shape = x6;
        this.border = borderStyles;
        this.shadow = shadowStyles;
        this.overlay = colorStyles;
        this.contentScale = contentScale;
        this.rcPackage = r19;
        this.resolvedOffer = resolvedOffer;
        this.tabIndex = num;
        this.offerEligibility = offerEligibility;
        this.ignoreTopWindowInsets = z11;
        this.overrides = overrides;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ VideoComponentStyle copy$default(VideoComponentStyle videoComponentStyle, NonEmptyMap nonEmptyMap, NonEmptyMap nonEmptyMap2, boolean z6, boolean z7, boolean z8, boolean z9, Size size, boolean z10, H0 h0, H0 h02, X x6, BorderStyles borderStyles, ShadowStyles shadowStyles, ColorStyles colorStyles, InterfaceC0262j interfaceC0262j, Package r33, ResolvedOffer resolvedOffer, Integer num, OfferEligibility offerEligibility, boolean z11, List list, int i6, Object obj) {
        List list2;
        boolean z12;
        NonEmptyMap nonEmptyMap3 = (i6 & 1) != 0 ? videoComponentStyle.sources : nonEmptyMap;
        NonEmptyMap nonEmptyMap4 = (i6 & 2) != 0 ? videoComponentStyle.fallbackSources : nonEmptyMap2;
        boolean z13 = (i6 & 4) != 0 ? videoComponentStyle.showControls : z6;
        boolean z14 = (i6 & 8) != 0 ? videoComponentStyle.autoplay : z7;
        boolean z15 = (i6 & 16) != 0 ? videoComponentStyle.loop : z8;
        boolean z16 = (i6 & 32) != 0 ? videoComponentStyle.muteAudio : z9;
        Size size2 = (i6 & 64) != 0 ? videoComponentStyle.size : size;
        boolean z17 = (i6 & 128) != 0 ? videoComponentStyle.visible : z10;
        H0 h03 = (i6 & 256) != 0 ? videoComponentStyle.padding : h0;
        H0 h04 = (i6 & 512) != 0 ? videoComponentStyle.margin : h02;
        X x7 = (i6 & 1024) != 0 ? videoComponentStyle.shape : x6;
        BorderStyles borderStyles2 = (i6 & 2048) != 0 ? videoComponentStyle.border : borderStyles;
        ShadowStyles shadowStyles2 = (i6 & 4096) != 0 ? videoComponentStyle.shadow : shadowStyles;
        ColorStyles colorStyles2 = (i6 & 8192) != 0 ? videoComponentStyle.overlay : colorStyles;
        NonEmptyMap nonEmptyMap5 = nonEmptyMap3;
        InterfaceC0262j interfaceC0262j2 = (i6 & 16384) != 0 ? videoComponentStyle.contentScale : interfaceC0262j;
        Package r19 = (i6 & DecoderReuseEvaluation.DISCARD_REASON_AUDIO_BYPASS_POSSIBLE) != 0 ? videoComponentStyle.rcPackage : r33;
        ResolvedOffer resolvedOffer2 = (i6 & C.DEFAULT_BUFFER_SEGMENT_SIZE) != 0 ? videoComponentStyle.resolvedOffer : resolvedOffer;
        Integer num2 = (i6 & 131072) != 0 ? videoComponentStyle.tabIndex : num;
        OfferEligibility offerEligibility2 = (i6 & 262144) != 0 ? videoComponentStyle.offerEligibility : offerEligibility;
        boolean z18 = (i6 & 524288) != 0 ? videoComponentStyle.ignoreTopWindowInsets : z11;
        if ((i6 & ProgressiveMediaSource.DEFAULT_LOADING_CHECK_INTERVAL_BYTES) != 0) {
            z12 = z18;
            list2 = videoComponentStyle.overrides;
        } else {
            list2 = list;
            z12 = z18;
        }
        return videoComponentStyle.copy(nonEmptyMap5, nonEmptyMap4, z13, z14, z15, z16, size2, z17, h03, h04, x7, borderStyles2, shadowStyles2, colorStyles2, interfaceC0262j2, r19, resolvedOffer2, num2, offerEligibility2, z12, list2);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

    public final List<PresentedOverride<PresentedVideoPartial>> component21() {
        return this.overrides;
    }

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

    public final boolean component4() {
        return this.autoplay;
    }

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

    public final boolean component6() {
        return this.muteAudio;
    }

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

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

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

    @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 VideoComponentStyle copy(NonEmptyMap<LocaleId, ThemeVideoUrls> sources, NonEmptyMap<LocaleId, ThemeImageUrls> nonEmptyMap, boolean z6, boolean z7, boolean z8, boolean z9, Size size, boolean z10, H0 padding, H0 margin, X x6, BorderStyles borderStyles, ShadowStyles shadowStyles, ColorStyles colorStyles, InterfaceC0262j contentScale, Package r39, ResolvedOffer resolvedOffer, Integer num, OfferEligibility offerEligibility, boolean z11, List<PresentedOverride<PresentedVideoPartial>> overrides) {
        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 VideoComponentStyle(sources, nonEmptyMap, z6, z7, z8, z9, size, z10, padding, margin, x6, borderStyles, shadowStyles, colorStyles, contentScale, r39, resolvedOffer, num, offerEligibility, z11, overrides);
    }

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

    public final /* synthetic */ boolean getAutoplay() {
        return this.autoplay;
    }

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

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

    public final /* synthetic */ NonEmptyMap getFallbackSources() {
        return this.fallbackSources;
    }

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

    public final /* synthetic */ boolean getLoop() {
        return this.loop;
    }

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

    public final /* synthetic */ boolean getMuteAudio() {
        return this.muteAudio;
    }

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

    public final /* synthetic */ boolean getShowControls() {
        return this.showControls;
    }

    @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.sources.hashCode() * 31;
        NonEmptyMap<LocaleId, ThemeImageUrls> nonEmptyMap = this.fallbackSources;
        int iHashCode2 = (this.margin.hashCode() + ((this.padding.hashCode() + a.f((this.size.hashCode() + a.f(a.f(a.f(a.f((iHashCode + (nonEmptyMap == null ? 0 : nonEmptyMap.hashCode())) * 31, 31, this.showControls), 31, this.autoplay), 31, this.loop), 31, this.muteAudio)) * 31, 31, this.visible)) * 31)) * 31;
        X x6 = this.shape;
        int iHashCode3 = (iHashCode2 + (x6 == null ? 0 : x6.hashCode())) * 31;
        BorderStyles borderStyles = this.border;
        int iHashCode4 = (iHashCode3 + (borderStyles == null ? 0 : borderStyles.hashCode())) * 31;
        ShadowStyles shadowStyles = this.shadow;
        int iHashCode5 = (iHashCode4 + (shadowStyles == null ? 0 : shadowStyles.hashCode())) * 31;
        ColorStyles colorStyles = this.overlay;
        int iHashCode6 = (this.contentScale.hashCode() + ((iHashCode5 + (colorStyles == null ? 0 : colorStyles.hashCode())) * 31)) * 31;
        Package r02 = this.rcPackage;
        int iHashCode7 = (iHashCode6 + (r02 == null ? 0 : r02.hashCode())) * 31;
        ResolvedOffer resolvedOffer = this.resolvedOffer;
        int iHashCode8 = (iHashCode7 + (resolvedOffer == null ? 0 : resolvedOffer.hashCode())) * 31;
        Integer num = this.tabIndex;
        int iHashCode9 = (iHashCode8 + (num == null ? 0 : num.hashCode())) * 31;
        OfferEligibility offerEligibility = this.offerEligibility;
        return this.overrides.hashCode() + a.f((iHashCode9 + (offerEligibility != null ? offerEligibility.hashCode() : 0)) * 31, 31, this.ignoreTopWindowInsets);
    }

    @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("VideoComponentStyle(sources=");
        sb.append(this.sources);
        sb.append(", fallbackSources=");
        sb.append(this.fallbackSources);
        sb.append(", showControls=");
        sb.append(this.showControls);
        sb.append(", autoplay=");
        sb.append(this.autoplay);
        sb.append(", loop=");
        sb.append(this.loop);
        sb.append(", muteAudio=");
        sb.append(this.muteAudio);
        sb.append(", size=");
        sb.append(this.size);
        sb.append(", visible=");
        sb.append(this.visible);
        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(", ignoreTopWindowInsets=");
        sb.append(this.ignoreTopWindowInsets);
        sb.append(", overrides=");
        return A0.a.o(sb, this.overrides, ')');
    }

    public /* synthetic */ VideoComponentStyle(NonEmptyMap nonEmptyMap, NonEmptyMap nonEmptyMap2, boolean z6, boolean z7, boolean z8, boolean z9, Size size, boolean z10, H0 h0, H0 h02, X x6, BorderStyles borderStyles, ShadowStyles shadowStyles, ColorStyles colorStyles, InterfaceC0262j interfaceC0262j, Package r40, ResolvedOffer resolvedOffer, Integer num, OfferEligibility offerEligibility, boolean z11, List list, int i6, h hVar) {
        this(nonEmptyMap, nonEmptyMap2, z6, z7, z8, z9, size, z10, h0, h02, x6, borderStyles, shadowStyles, colorStyles, interfaceC0262j, r40, (i6 & C.DEFAULT_BUFFER_SEGMENT_SIZE) != 0 ? null : resolvedOffer, num, (i6 & 262144) != 0 ? null : offerEligibility, (i6 & 524288) != 0 ? false : z11, list);
    }
}
