package com.revenuecat.purchases.paywalls.components;

import androidx.compose.runtime.Immutable;
import com.revenuecat.purchases.InternalRevenueCatAPI;
import com.revenuecat.purchases.paywalls.components.common.Background;
import com.revenuecat.purchases.paywalls.components.common.BackgroundDeserializer;
import com.revenuecat.purchases.paywalls.components.common.ComponentOverride;
import com.revenuecat.purchases.paywalls.components.properties.Border;
import com.revenuecat.purchases.paywalls.components.properties.Border$$serializer;
import com.revenuecat.purchases.paywalls.components.properties.ColorScheme;
import com.revenuecat.purchases.paywalls.components.properties.ColorScheme$$serializer;
import com.revenuecat.purchases.paywalls.components.properties.Padding;
import com.revenuecat.purchases.paywalls.components.properties.Padding$$serializer;
import com.revenuecat.purchases.paywalls.components.properties.Shadow;
import com.revenuecat.purchases.paywalls.components.properties.Shadow$$serializer;
import com.revenuecat.purchases.paywalls.components.properties.Shape;
import com.revenuecat.purchases.paywalls.components.properties.ShapeDeserializer;
import com.revenuecat.purchases.paywalls.components.properties.Size;
import com.revenuecat.purchases.paywalls.components.properties.Size$$serializer;
import com.revenuecat.purchases.paywalls.components.properties.SizeConstraint;
import com.revenuecat.purchases.paywalls.components.properties.VerticalAlignment;
import com.revenuecat.purchases.paywalls.components.properties.VerticalAlignmentDeserializer;
import g5.a;
import i5.g;
import j5.b;
import java.util.List;
import k5.C2416d;
import k5.C2419g;
import k5.C2437z;
import k5.F;
import k5.P;
import k5.a0;
import k5.k0;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.o;
import w4.InterfaceC3141c;
import w4.t;
import x4.y;

/* JADX INFO: loaded from: classes3.dex */
@Immutable
@InternalRevenueCatAPI
public final class CarouselComponent implements PaywallComponent {
    private final AutoAdvancePages autoAdvance;
    private final Background background;
    private final ColorScheme backgroundColor;
    private final Border border;
    private final Integer initialPageIndex;
    private final Boolean loop;
    private final Padding margin;
    private final List<ComponentOverride<PartialCarouselComponent>> overrides;
    private final Padding padding;
    private final VerticalAlignment pageAlignment;
    private final PageControl pageControl;
    private final Integer pagePeek;
    private final Float pageSpacing;
    private final List<StackComponent> pages;
    private final Shadow shadow;
    private final Shape shape;
    private final Size size;
    private final Boolean visible;
    public static final Companion Companion = new Companion(null);
    private static final a[] $childSerializers = {new C2416d(StackComponent$$serializer.INSTANCE), null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, new C2416d(ComponentOverride.Companion.serializer(PartialCarouselComponent$$serializer.INSTANCE))};

    public static final class AutoAdvancePages {
        public static final Companion Companion = new Companion(null);
        private final int msTimePerPage;
        private final int msTransitionTime;
        private final TransitionType transitionType;

        public static final class Companion {
            public /* synthetic */ Companion(h hVar) {
                this();
            }

            public final a serializer() {
                return CarouselComponent$AutoAdvancePages$$serializer.INSTANCE;
            }

            private Companion() {
            }
        }

        public enum TransitionType {
            FADE,
            SLIDE;

            public static final Companion Companion = new Companion(null);

            public static final class Companion {
                public /* synthetic */ Companion(h hVar) {
                    this();
                }

                public final a serializer() {
                    return CarouselTransitionTypeDeserializer.INSTANCE;
                }

                private Companion() {
                }
            }
        }

        @InterfaceC3141c
        public /* synthetic */ AutoAdvancePages(int i6, int i7, int i8, TransitionType transitionType, a0 a0Var) {
            if (7 != (i6 & 7)) {
                P.h(i6, 7, CarouselComponent$AutoAdvancePages$$serializer.INSTANCE.getDescriptor());
                throw null;
            }
            this.msTimePerPage = i7;
            this.msTransitionTime = i8;
            this.transitionType = transitionType;
        }

        public static /* synthetic */ void getMsTimePerPage$annotations() {
        }

        public static /* synthetic */ void getMsTransitionTime$annotations() {
        }

        public static /* synthetic */ void getTransitionType$annotations() {
        }

        public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(AutoAdvancePages autoAdvancePages, b bVar, g gVar) {
            bVar.w(0, autoAdvancePages.msTimePerPage, gVar);
            bVar.w(1, autoAdvancePages.msTransitionTime, gVar);
            bVar.E(gVar, 2, CarouselTransitionTypeDeserializer.INSTANCE, autoAdvancePages.transitionType);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof AutoAdvancePages)) {
                return false;
            }
            AutoAdvancePages autoAdvancePages = (AutoAdvancePages) obj;
            return this.msTimePerPage == autoAdvancePages.msTimePerPage && this.msTransitionTime == autoAdvancePages.msTransitionTime && this.transitionType == autoAdvancePages.transitionType;
        }

        public final /* synthetic */ int getMsTimePerPage() {
            return this.msTimePerPage;
        }

        public final /* synthetic */ int getMsTransitionTime() {
            return this.msTransitionTime;
        }

        public final /* synthetic */ TransitionType getTransitionType() {
            return this.transitionType;
        }

        public int hashCode() {
            int i6 = ((this.msTimePerPage * 31) + this.msTransitionTime) * 31;
            TransitionType transitionType = this.transitionType;
            return i6 + (transitionType == null ? 0 : transitionType.hashCode());
        }

        public String toString() {
            return "AutoAdvancePages(msTimePerPage=" + this.msTimePerPage + ", msTransitionTime=" + this.msTransitionTime + ", transitionType=" + this.transitionType + ')';
        }

        public AutoAdvancePages(int i6, int i7, TransitionType transitionType) {
            this.msTimePerPage = i6;
            this.msTransitionTime = i7;
            this.transitionType = transitionType;
        }
    }

    public static final class Companion {
        public /* synthetic */ Companion(h hVar) {
            this();
        }

        public final a serializer() {
            return CarouselComponent$$serializer.INSTANCE;
        }

        private Companion() {
        }
    }

    @InterfaceC3141c
    public /* synthetic */ CarouselComponent(int i6, List list, Boolean bool, Integer num, VerticalAlignment verticalAlignment, Size size, Integer num2, Float f6, ColorScheme colorScheme, Background background, Padding padding, Padding padding2, Shape shape, Border border, Shadow shadow, PageControl pageControl, Boolean bool2, AutoAdvancePages autoAdvancePages, List list2, a0 a0Var) {
        if (9 != (i6 & 9)) {
            P.h(i6, 9, CarouselComponent$$serializer.INSTANCE.getDescriptor());
            throw null;
        }
        this.pages = list;
        if ((i6 & 2) == 0) {
            this.visible = null;
        } else {
            this.visible = bool;
        }
        if ((i6 & 4) == 0) {
            this.initialPageIndex = null;
        } else {
            this.initialPageIndex = num;
        }
        this.pageAlignment = verticalAlignment;
        if ((i6 & 16) == 0) {
            SizeConstraint.Fit fit = SizeConstraint.Fit.INSTANCE;
            this.size = new Size(fit, fit);
        } else {
            this.size = size;
        }
        if ((i6 & 32) == 0) {
            this.pagePeek = null;
        } else {
            this.pagePeek = num2;
        }
        if ((i6 & 64) == 0) {
            this.pageSpacing = null;
        } else {
            this.pageSpacing = f6;
        }
        if ((i6 & 128) == 0) {
            this.backgroundColor = null;
        } else {
            this.backgroundColor = colorScheme;
        }
        if ((i6 & 256) == 0) {
            this.background = null;
        } else {
            this.background = background;
        }
        if ((i6 & 512) == 0) {
            this.padding = Padding.Companion.getZero();
        } else {
            this.padding = padding;
        }
        if ((i6 & 1024) == 0) {
            this.margin = Padding.Companion.getZero();
        } else {
            this.margin = padding2;
        }
        if ((i6 & 2048) == 0) {
            this.shape = null;
        } else {
            this.shape = shape;
        }
        if ((i6 & 4096) == 0) {
            this.border = null;
        } else {
            this.border = border;
        }
        if ((i6 & 8192) == 0) {
            this.shadow = null;
        } else {
            this.shadow = shadow;
        }
        if ((i6 & 16384) == 0) {
            this.pageControl = null;
        } else {
            this.pageControl = pageControl;
        }
        if ((32768 & i6) == 0) {
            this.loop = null;
        } else {
            this.loop = bool2;
        }
        if ((65536 & i6) == 0) {
            this.autoAdvance = null;
        } else {
            this.autoAdvance = autoAdvancePages;
        }
        this.overrides = (i6 & 131072) == 0 ? y.f26065a : list2;
    }

    public static /* synthetic */ void getAutoAdvance$annotations() {
    }

    public static /* synthetic */ void getBackgroundColor$annotations() {
    }

    public static /* synthetic */ void getInitialPageIndex$annotations() {
    }

    public static /* synthetic */ void getPageAlignment$annotations() {
    }

    public static /* synthetic */ void getPageControl$annotations() {
    }

    public static /* synthetic */ void getPagePeek$annotations() {
    }

    public static /* synthetic */ void getPageSpacing$annotations() {
    }

    /* JADX WARN: Removed duplicated region for block: B:19:0x0050  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(CarouselComponent carouselComponent, b bVar, g gVar) {
        a[] aVarArr = $childSerializers;
        bVar.z(gVar, 0, aVarArr[0], carouselComponent.pages);
        if (bVar.g(gVar) || carouselComponent.visible != null) {
            bVar.E(gVar, 1, C2419g.f20053a, carouselComponent.visible);
        }
        if (bVar.g(gVar) || carouselComponent.initialPageIndex != null) {
            bVar.E(gVar, 2, F.f19995a, carouselComponent.initialPageIndex);
        }
        bVar.z(gVar, 3, VerticalAlignmentDeserializer.INSTANCE, carouselComponent.pageAlignment);
        if (bVar.g(gVar)) {
            bVar.z(gVar, 4, Size$$serializer.INSTANCE, carouselComponent.size);
        } else {
            Size size = carouselComponent.size;
            SizeConstraint.Fit fit = SizeConstraint.Fit.INSTANCE;
            if (!o.c(size, new Size(fit, fit))) {
            }
        }
        if (bVar.g(gVar) || carouselComponent.pagePeek != null) {
            bVar.E(gVar, 5, F.f19995a, carouselComponent.pagePeek);
        }
        if (bVar.g(gVar) || carouselComponent.pageSpacing != null) {
            bVar.E(gVar, 6, C2437z.f20111a, carouselComponent.pageSpacing);
        }
        if (bVar.g(gVar) || carouselComponent.backgroundColor != null) {
            bVar.E(gVar, 7, ColorScheme$$serializer.INSTANCE, carouselComponent.backgroundColor);
        }
        if (bVar.g(gVar) || carouselComponent.background != null) {
            bVar.E(gVar, 8, BackgroundDeserializer.INSTANCE, carouselComponent.background);
        }
        if (bVar.g(gVar) || !o.c(carouselComponent.padding, Padding.Companion.getZero())) {
            bVar.z(gVar, 9, Padding$$serializer.INSTANCE, carouselComponent.padding);
        }
        if (bVar.g(gVar) || !o.c(carouselComponent.margin, Padding.Companion.getZero())) {
            bVar.z(gVar, 10, Padding$$serializer.INSTANCE, carouselComponent.margin);
        }
        if (bVar.g(gVar) || carouselComponent.shape != null) {
            bVar.E(gVar, 11, ShapeDeserializer.INSTANCE, carouselComponent.shape);
        }
        if (bVar.g(gVar) || carouselComponent.border != null) {
            bVar.E(gVar, 12, Border$$serializer.INSTANCE, carouselComponent.border);
        }
        if (bVar.g(gVar) || carouselComponent.shadow != null) {
            bVar.E(gVar, 13, Shadow$$serializer.INSTANCE, carouselComponent.shadow);
        }
        if (bVar.g(gVar) || carouselComponent.pageControl != null) {
            bVar.E(gVar, 14, CarouselComponent$PageControl$$serializer.INSTANCE, carouselComponent.pageControl);
        }
        if (bVar.g(gVar) || carouselComponent.loop != null) {
            bVar.E(gVar, 15, C2419g.f20053a, carouselComponent.loop);
        }
        if (bVar.g(gVar) || carouselComponent.autoAdvance != null) {
            bVar.E(gVar, 16, CarouselComponent$AutoAdvancePages$$serializer.INSTANCE, carouselComponent.autoAdvance);
        }
        if (!bVar.g(gVar) && o.c(carouselComponent.overrides, y.f26065a)) {
            return;
        }
        bVar.z(gVar, 17, aVarArr[17], carouselComponent.overrides);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof CarouselComponent)) {
            return false;
        }
        CarouselComponent carouselComponent = (CarouselComponent) obj;
        return o.c(this.pages, carouselComponent.pages) && o.c(this.visible, carouselComponent.visible) && o.c(this.initialPageIndex, carouselComponent.initialPageIndex) && this.pageAlignment == carouselComponent.pageAlignment && o.c(this.size, carouselComponent.size) && o.c(this.pagePeek, carouselComponent.pagePeek) && o.c(this.pageSpacing, carouselComponent.pageSpacing) && o.c(this.backgroundColor, carouselComponent.backgroundColor) && o.c(this.background, carouselComponent.background) && o.c(this.padding, carouselComponent.padding) && o.c(this.margin, carouselComponent.margin) && o.c(this.shape, carouselComponent.shape) && o.c(this.border, carouselComponent.border) && o.c(this.shadow, carouselComponent.shadow) && o.c(this.pageControl, carouselComponent.pageControl) && o.c(this.loop, carouselComponent.loop) && o.c(this.autoAdvance, carouselComponent.autoAdvance) && o.c(this.overrides, carouselComponent.overrides);
    }

    public final /* synthetic */ AutoAdvancePages getAutoAdvance() {
        return this.autoAdvance;
    }

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

    public final /* synthetic */ ColorScheme getBackgroundColor() {
        return this.backgroundColor;
    }

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

    public final /* synthetic */ Integer getInitialPageIndex() {
        return this.initialPageIndex;
    }

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

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

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

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

    public final /* synthetic */ VerticalAlignment getPageAlignment() {
        return this.pageAlignment;
    }

    public final /* synthetic */ PageControl getPageControl() {
        return this.pageControl;
    }

    public final /* synthetic */ Integer getPagePeek() {
        return this.pagePeek;
    }

    public final /* synthetic */ Float getPageSpacing() {
        return this.pageSpacing;
    }

    public final /* synthetic */ List getPages() {
        return this.pages;
    }

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

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

    public final /* synthetic */ Size getSize() {
        return this.size;
    }

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

    public int hashCode() {
        int iHashCode = this.pages.hashCode() * 31;
        Boolean bool = this.visible;
        int iHashCode2 = (iHashCode + (bool == null ? 0 : bool.hashCode())) * 31;
        Integer num = this.initialPageIndex;
        int iHashCode3 = (this.size.hashCode() + ((this.pageAlignment.hashCode() + ((iHashCode2 + (num == null ? 0 : num.hashCode())) * 31)) * 31)) * 31;
        Integer num2 = this.pagePeek;
        int iHashCode4 = (iHashCode3 + (num2 == null ? 0 : num2.hashCode())) * 31;
        Float f6 = this.pageSpacing;
        int iHashCode5 = (iHashCode4 + (f6 == null ? 0 : f6.hashCode())) * 31;
        ColorScheme colorScheme = this.backgroundColor;
        int iHashCode6 = (iHashCode5 + (colorScheme == null ? 0 : colorScheme.hashCode())) * 31;
        Background background = this.background;
        int iHashCode7 = (this.margin.hashCode() + ((this.padding.hashCode() + ((iHashCode6 + (background == null ? 0 : background.hashCode())) * 31)) * 31)) * 31;
        Shape shape = this.shape;
        int iHashCode8 = (iHashCode7 + (shape == null ? 0 : shape.hashCode())) * 31;
        Border border = this.border;
        int iHashCode9 = (iHashCode8 + (border == null ? 0 : border.hashCode())) * 31;
        Shadow shadow = this.shadow;
        int iHashCode10 = (iHashCode9 + (shadow == null ? 0 : shadow.hashCode())) * 31;
        PageControl pageControl = this.pageControl;
        int iHashCode11 = (iHashCode10 + (pageControl == null ? 0 : pageControl.hashCode())) * 31;
        Boolean bool2 = this.loop;
        int iHashCode12 = (iHashCode11 + (bool2 == null ? 0 : bool2.hashCode())) * 31;
        AutoAdvancePages autoAdvancePages = this.autoAdvance;
        return this.overrides.hashCode() + ((iHashCode12 + (autoAdvancePages != null ? autoAdvancePages.hashCode() : 0)) * 31);
    }

    public String toString() {
        StringBuilder sb = new StringBuilder("CarouselComponent(pages=");
        sb.append(this.pages);
        sb.append(", visible=");
        sb.append(this.visible);
        sb.append(", initialPageIndex=");
        sb.append(this.initialPageIndex);
        sb.append(", pageAlignment=");
        sb.append(this.pageAlignment);
        sb.append(", size=");
        sb.append(this.size);
        sb.append(", pagePeek=");
        sb.append(this.pagePeek);
        sb.append(", pageSpacing=");
        sb.append(this.pageSpacing);
        sb.append(", backgroundColor=");
        sb.append(this.backgroundColor);
        sb.append(", 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(", pageControl=");
        sb.append(this.pageControl);
        sb.append(", loop=");
        sb.append(this.loop);
        sb.append(", autoAdvance=");
        sb.append(this.autoAdvance);
        sb.append(", overrides=");
        return A0.a.o(sb, this.overrides, ')');
    }

    @Immutable
    public static final class PageControl {
        public static final Companion Companion = new Companion(null);
        private final Indicator active;
        private final ColorScheme backgroundColor;
        private final Border border;

        /* JADX INFO: renamed from: default, reason: not valid java name */
        private final Indicator f3default;
        private final Padding margin;
        private final Padding padding;
        private final Position position;
        private final Shadow shadow;
        private final Shape shape;
        private final Integer spacing;

        public static final class Companion {
            public /* synthetic */ Companion(h hVar) {
                this();
            }

            public final a serializer() {
                return CarouselComponent$PageControl$$serializer.INSTANCE;
            }

            private Companion() {
            }
        }

        public static final class Indicator {
            public static final Companion Companion = new Companion(null);
            private final ColorScheme color;
            private final int height;
            private final ColorScheme strokeColor;
            private final t strokeWidth;
            private final int width;

            public static final class Companion {
                public /* synthetic */ Companion(h hVar) {
                    this();
                }

                public final a serializer() {
                    return CarouselComponent$PageControl$Indicator$$serializer.INSTANCE;
                }

                private Companion() {
                }
            }

            public /* synthetic */ Indicator(int i6, int i7, ColorScheme colorScheme, ColorScheme colorScheme2, t tVar, h hVar) {
                this(i6, i7, colorScheme, colorScheme2, tVar);
            }

            public static /* synthetic */ void getStrokeColor$annotations() {
            }

            /* JADX INFO: renamed from: getStrokeWidth-0hXNFcg$annotations, reason: not valid java name */
            public static /* synthetic */ void m545getStrokeWidth0hXNFcg$annotations() {
            }

            public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(Indicator indicator, b bVar, g gVar) {
                k0 k0Var = k0.f20066a;
                bVar.z(gVar, 0, k0Var, new t(indicator.width));
                bVar.z(gVar, 1, k0Var, new t(indicator.height));
                ColorScheme$$serializer colorScheme$$serializer = ColorScheme$$serializer.INSTANCE;
                bVar.z(gVar, 2, colorScheme$$serializer, indicator.color);
                if (bVar.g(gVar) || indicator.strokeColor != null) {
                    bVar.E(gVar, 3, colorScheme$$serializer, indicator.strokeColor);
                }
                if (!bVar.g(gVar) && indicator.strokeWidth == null) {
                    return;
                }
                bVar.E(gVar, 4, k0Var, indicator.strokeWidth);
            }

            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
                if (!(obj instanceof Indicator)) {
                    return false;
                }
                Indicator indicator = (Indicator) obj;
                return this.width == indicator.width && this.height == indicator.height && o.c(this.color, indicator.color) && o.c(this.strokeColor, indicator.strokeColor) && o.c(this.strokeWidth, indicator.strokeWidth);
            }

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

            /* JADX INFO: renamed from: getHeight-pVg5ArA, reason: not valid java name */
            public final /* synthetic */ int m546getHeightpVg5ArA() {
                return this.height;
            }

            public final /* synthetic */ ColorScheme getStrokeColor() {
                return this.strokeColor;
            }

            /* JADX INFO: renamed from: getStrokeWidth-0hXNFcg, reason: not valid java name */
            public final /* synthetic */ t m547getStrokeWidth0hXNFcg() {
                return this.strokeWidth;
            }

            /* JADX INFO: renamed from: getWidth-pVg5ArA, reason: not valid java name */
            public final /* synthetic */ int m548getWidthpVg5ArA() {
                return this.width;
            }

            public int hashCode() {
                int iHashCode = (this.color.hashCode() + (((this.width * 31) + this.height) * 31)) * 31;
                ColorScheme colorScheme = this.strokeColor;
                int iHashCode2 = (iHashCode + (colorScheme == null ? 0 : colorScheme.hashCode())) * 31;
                t tVar = this.strokeWidth;
                return iHashCode2 + (tVar != null ? Integer.hashCode(tVar.f25484a) : 0);
            }

            public String toString() {
                return "Indicator(width=" + ((Object) t.a(this.width)) + ", height=" + ((Object) t.a(this.height)) + ", color=" + this.color + ", strokeColor=" + this.strokeColor + ", strokeWidth=" + this.strokeWidth + ')';
            }

            @InterfaceC3141c
            public /* synthetic */ Indicator(int i6, t tVar, t tVar2, ColorScheme colorScheme, ColorScheme colorScheme2, t tVar3, a0 a0Var, h hVar) {
                this(i6, tVar, tVar2, colorScheme, colorScheme2, tVar3, a0Var);
            }

            private Indicator(int i6, int i7, ColorScheme color, ColorScheme colorScheme, t tVar) {
                o.h(color, "color");
                this.width = i6;
                this.height = i7;
                this.color = color;
                this.strokeColor = colorScheme;
                this.strokeWidth = tVar;
            }

            private Indicator(int i6, t tVar, t tVar2, ColorScheme colorScheme, ColorScheme colorScheme2, t tVar3, a0 a0Var) {
                if (7 != (i6 & 7)) {
                    P.h(i6, 7, CarouselComponent$PageControl$Indicator$$serializer.INSTANCE.getDescriptor());
                    throw null;
                }
                this.width = tVar.f25484a;
                this.height = tVar2.f25484a;
                this.color = colorScheme;
                if ((i6 & 8) == 0) {
                    this.strokeColor = null;
                } else {
                    this.strokeColor = colorScheme2;
                }
                if ((i6 & 16) == 0) {
                    this.strokeWidth = null;
                } else {
                    this.strokeWidth = tVar3;
                }
            }

            public /* synthetic */ Indicator(int i6, int i7, ColorScheme colorScheme, ColorScheme colorScheme2, t tVar, int i8, h hVar) {
                this(i6, i7, colorScheme, (i8 & 8) != 0 ? null : colorScheme2, (i8 & 16) != 0 ? null : tVar, null);
            }
        }

        public enum Position {
            TOP,
            BOTTOM;

            public static final Companion Companion = new Companion(null);

            public static final class Companion {
                public /* synthetic */ Companion(h hVar) {
                    this();
                }

                public final a serializer() {
                    return CarouselPageControlPositionDeserializer.INSTANCE;
                }

                private Companion() {
                }
            }
        }

        @InterfaceC3141c
        public /* synthetic */ PageControl(int i6, Position position, Integer num, Padding padding, Padding padding2, ColorScheme colorScheme, Shape shape, Border border, Shadow shadow, Indicator indicator, Indicator indicator2, a0 a0Var) {
            if (769 != (i6 & 769)) {
                P.h(i6, 769, CarouselComponent$PageControl$$serializer.INSTANCE.getDescriptor());
                throw null;
            }
            this.position = position;
            if ((i6 & 2) == 0) {
                this.spacing = null;
            } else {
                this.spacing = num;
            }
            if ((i6 & 4) == 0) {
                this.padding = Padding.Companion.getZero();
            } else {
                this.padding = padding;
            }
            if ((i6 & 8) == 0) {
                this.margin = Padding.Companion.getZero();
            } else {
                this.margin = padding2;
            }
            if ((i6 & 16) == 0) {
                this.backgroundColor = null;
            } else {
                this.backgroundColor = colorScheme;
            }
            if ((i6 & 32) == 0) {
                this.shape = null;
            } else {
                this.shape = shape;
            }
            if ((i6 & 64) == 0) {
                this.border = null;
            } else {
                this.border = border;
            }
            if ((i6 & 128) == 0) {
                this.shadow = null;
            } else {
                this.shadow = shadow;
            }
            this.active = indicator;
            this.f3default = indicator2;
        }

        public static /* synthetic */ void getBackgroundColor$annotations() {
        }

        public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(PageControl pageControl, b bVar, g gVar) {
            bVar.z(gVar, 0, CarouselPageControlPositionDeserializer.INSTANCE, pageControl.position);
            if (bVar.g(gVar) || pageControl.spacing != null) {
                bVar.E(gVar, 1, F.f19995a, pageControl.spacing);
            }
            if (bVar.g(gVar) || !o.c(pageControl.padding, Padding.Companion.getZero())) {
                bVar.z(gVar, 2, Padding$$serializer.INSTANCE, pageControl.padding);
            }
            if (bVar.g(gVar) || !o.c(pageControl.margin, Padding.Companion.getZero())) {
                bVar.z(gVar, 3, Padding$$serializer.INSTANCE, pageControl.margin);
            }
            if (bVar.g(gVar) || pageControl.backgroundColor != null) {
                bVar.E(gVar, 4, ColorScheme$$serializer.INSTANCE, pageControl.backgroundColor);
            }
            if (bVar.g(gVar) || pageControl.shape != null) {
                bVar.E(gVar, 5, ShapeDeserializer.INSTANCE, pageControl.shape);
            }
            if (bVar.g(gVar) || pageControl.border != null) {
                bVar.E(gVar, 6, Border$$serializer.INSTANCE, pageControl.border);
            }
            if (bVar.g(gVar) || pageControl.shadow != null) {
                bVar.E(gVar, 7, Shadow$$serializer.INSTANCE, pageControl.shadow);
            }
            CarouselComponent$PageControl$Indicator$$serializer carouselComponent$PageControl$Indicator$$serializer = CarouselComponent$PageControl$Indicator$$serializer.INSTANCE;
            bVar.z(gVar, 8, carouselComponent$PageControl$Indicator$$serializer, pageControl.active);
            bVar.z(gVar, 9, carouselComponent$PageControl$Indicator$$serializer, pageControl.f3default);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof PageControl)) {
                return false;
            }
            PageControl pageControl = (PageControl) obj;
            return this.position == pageControl.position && o.c(this.spacing, pageControl.spacing) && o.c(this.padding, pageControl.padding) && o.c(this.margin, pageControl.margin) && o.c(this.backgroundColor, pageControl.backgroundColor) && o.c(this.shape, pageControl.shape) && o.c(this.border, pageControl.border) && o.c(this.shadow, pageControl.shadow) && o.c(this.active, pageControl.active) && o.c(this.f3default, pageControl.f3default);
        }

        public final /* synthetic */ Indicator getActive() {
            return this.active;
        }

        public final /* synthetic */ ColorScheme getBackgroundColor() {
            return this.backgroundColor;
        }

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

        public final /* synthetic */ Indicator getDefault() {
            return this.f3default;
        }

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

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

        public final /* synthetic */ Position getPosition() {
            return this.position;
        }

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

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

        public final /* synthetic */ Integer getSpacing() {
            return this.spacing;
        }

        public int hashCode() {
            int iHashCode = this.position.hashCode() * 31;
            Integer num = this.spacing;
            int iHashCode2 = (this.margin.hashCode() + ((this.padding.hashCode() + ((iHashCode + (num == null ? 0 : num.hashCode())) * 31)) * 31)) * 31;
            ColorScheme colorScheme = this.backgroundColor;
            int iHashCode3 = (iHashCode2 + (colorScheme == null ? 0 : colorScheme.hashCode())) * 31;
            Shape shape = this.shape;
            int iHashCode4 = (iHashCode3 + (shape == null ? 0 : shape.hashCode())) * 31;
            Border border = this.border;
            int iHashCode5 = (iHashCode4 + (border == null ? 0 : border.hashCode())) * 31;
            Shadow shadow = this.shadow;
            return this.f3default.hashCode() + ((this.active.hashCode() + ((iHashCode5 + (shadow != null ? shadow.hashCode() : 0)) * 31)) * 31);
        }

        public String toString() {
            return "PageControl(position=" + this.position + ", spacing=" + this.spacing + ", padding=" + this.padding + ", margin=" + this.margin + ", backgroundColor=" + this.backgroundColor + ", shape=" + this.shape + ", border=" + this.border + ", shadow=" + this.shadow + ", active=" + this.active + ", default=" + this.f3default + ')';
        }

        public PageControl(Position position, Integer num, Padding padding, Padding margin, ColorScheme colorScheme, Shape shape, Border border, Shadow shadow, Indicator active, Indicator indicator) {
            o.h(position, "position");
            o.h(padding, "padding");
            o.h(margin, "margin");
            o.h(active, "active");
            o.h(indicator, "default");
            this.position = position;
            this.spacing = num;
            this.padding = padding;
            this.margin = margin;
            this.backgroundColor = colorScheme;
            this.shape = shape;
            this.border = border;
            this.shadow = shadow;
            this.active = active;
            this.f3default = indicator;
        }

        /* JADX WARN: Illegal instructions before constructor call */
        public /* synthetic */ PageControl(Position position, Integer num, Padding padding, Padding padding2, ColorScheme colorScheme, Shape shape, Border border, Shadow shadow, Indicator indicator, Indicator indicator2, int i6, h hVar) {
            Indicator indicator3;
            Indicator indicator4;
            Shadow shadow2;
            num = (i6 & 2) != 0 ? null : num;
            padding = (i6 & 4) != 0 ? Padding.Companion.getZero() : padding;
            padding2 = (i6 & 8) != 0 ? Padding.Companion.getZero() : padding2;
            colorScheme = (i6 & 16) != 0 ? null : colorScheme;
            shape = (i6 & 32) != 0 ? null : shape;
            border = (i6 & 64) != 0 ? null : border;
            if ((i6 & 128) != 0) {
                indicator3 = indicator2;
                indicator4 = indicator;
                shadow2 = null;
            } else {
                indicator3 = indicator2;
                indicator4 = indicator;
                shadow2 = shadow;
            }
            this(position, num, padding, padding2, colorScheme, shape, border, shadow2, indicator4, indicator3);
        }
    }

    public CarouselComponent(List<StackComponent> pages, Boolean bool, Integer num, VerticalAlignment pageAlignment, Size size, Integer num2, Float f6, ColorScheme colorScheme, Background background, Padding padding, Padding margin, Shape shape, Border border, Shadow shadow, PageControl pageControl, Boolean bool2, AutoAdvancePages autoAdvancePages, List<ComponentOverride<PartialCarouselComponent>> overrides) {
        o.h(pages, "pages");
        o.h(pageAlignment, "pageAlignment");
        o.h(size, "size");
        o.h(padding, "padding");
        o.h(margin, "margin");
        o.h(overrides, "overrides");
        this.pages = pages;
        this.visible = bool;
        this.initialPageIndex = num;
        this.pageAlignment = pageAlignment;
        this.size = size;
        this.pagePeek = num2;
        this.pageSpacing = f6;
        this.backgroundColor = colorScheme;
        this.background = background;
        this.padding = padding;
        this.margin = margin;
        this.shape = shape;
        this.border = border;
        this.shadow = shadow;
        this.pageControl = pageControl;
        this.loop = bool2;
        this.autoAdvance = autoAdvancePages;
        this.overrides = overrides;
    }

    public /* synthetic */ CarouselComponent(List list, Boolean bool, Integer num, VerticalAlignment verticalAlignment, Size size, Integer num2, Float f6, ColorScheme colorScheme, Background background, Padding padding, Padding padding2, Shape shape, Border border, Shadow shadow, PageControl pageControl, Boolean bool2, AutoAdvancePages autoAdvancePages, List list2, int i6, h hVar) {
        Size size2;
        Boolean bool3 = (i6 & 2) != 0 ? null : bool;
        Integer num3 = (i6 & 4) != 0 ? null : num;
        if ((i6 & 16) != 0) {
            SizeConstraint.Fit fit = SizeConstraint.Fit.INSTANCE;
            size2 = new Size(fit, fit);
        } else {
            size2 = size;
        }
        this(list, bool3, num3, verticalAlignment, size2, (i6 & 32) != 0 ? null : num2, (i6 & 64) != 0 ? null : f6, (i6 & 128) != 0 ? null : colorScheme, (i6 & 256) != 0 ? null : background, (i6 & 512) != 0 ? Padding.Companion.getZero() : padding, (i6 & 1024) != 0 ? Padding.Companion.getZero() : padding2, (i6 & 2048) != 0 ? null : shape, (i6 & 4096) != 0 ? null : border, (i6 & 8192) != 0 ? null : shadow, (i6 & 16384) != 0 ? null : pageControl, (32768 & i6) != 0 ? null : bool2, (65536 & i6) != 0 ? null : autoAdvancePages, (i6 & 131072) != 0 ? y.f26065a : list2);
    }
}
