package com.revenuecat.purchases.paywalls.components.common;

import com.revenuecat.purchases.InternalRevenueCatAPI;
import com.revenuecat.purchases.paywalls.components.properties.ColorScheme;
import com.revenuecat.purchases.paywalls.components.properties.ColorScheme$$serializer;
import com.revenuecat.purchases.paywalls.components.properties.FitMode;
import com.revenuecat.purchases.paywalls.components.properties.FitModeDeserializer;
import com.revenuecat.purchases.paywalls.components.properties.ThemeImageUrls;
import com.revenuecat.purchases.paywalls.components.properties.ThemeImageUrls$$serializer;
import com.revenuecat.purchases.paywalls.components.properties.ThemeVideoUrls;
import com.revenuecat.purchases.paywalls.components.properties.ThemeVideoUrls$$serializer;
import g5.a;
import i5.g;
import j5.b;
import k5.P;
import k5.a0;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.o;
import w4.InterfaceC3141c;

/* JADX INFO: loaded from: classes3.dex */
@InternalRevenueCatAPI
public interface Background {
    public static final Companion Companion = Companion.$$INSTANCE;

    public static final class Color implements Background {
        public static final Companion Companion = new Companion(null);
        private final ColorScheme value;

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

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

            private Companion() {
            }
        }

        @InterfaceC3141c
        public /* synthetic */ Color(int i6, ColorScheme colorScheme, a0 a0Var) {
            if (1 == (i6 & 1)) {
                this.value = colorScheme;
            } else {
                P.h(i6, 1, Background$Color$$serializer.INSTANCE.getDescriptor());
                throw null;
            }
        }

        public static /* synthetic */ Color copy$default(Color color, ColorScheme colorScheme, int i6, Object obj) {
            if ((i6 & 1) != 0) {
                colorScheme = color.value;
            }
            return color.copy(colorScheme);
        }

        public final ColorScheme component1() {
            return this.value;
        }

        public final Color copy(ColorScheme value) {
            o.h(value, "value");
            return new Color(value);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            return (obj instanceof Color) && o.c(this.value, ((Color) obj).value);
        }

        public final /* synthetic */ ColorScheme getValue() {
            return this.value;
        }

        public int hashCode() {
            return this.value.hashCode();
        }

        public String toString() {
            return "Color(value=" + this.value + ')';
        }

        public Color(ColorScheme value) {
            o.h(value, "value");
            this.value = value;
        }
    }

    public static final class Companion {
        static final /* synthetic */ Companion $$INSTANCE = new Companion();

        private Companion() {
        }

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

    public static final class Unknown implements Background {
        public static final Companion Companion = new Companion(null);
        private final String type;

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

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

            private Companion() {
            }
        }

        @InterfaceC3141c
        public /* synthetic */ Unknown(int i6, String str, a0 a0Var) {
            if (1 == (i6 & 1)) {
                this.type = str;
            } else {
                P.h(i6, 1, Background$Unknown$$serializer.INSTANCE.getDescriptor());
                throw null;
            }
        }

        public static /* synthetic */ Unknown copy$default(Unknown unknown, String str, int i6, Object obj) {
            if ((i6 & 1) != 0) {
                str = unknown.type;
            }
            return unknown.copy(str);
        }

        public final String component1() {
            return this.type;
        }

        public final Unknown copy(String type) {
            o.h(type, "type");
            return new Unknown(type);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            return (obj instanceof Unknown) && o.c(this.type, ((Unknown) obj).type);
        }

        public final /* synthetic */ String getType() {
            return this.type;
        }

        public int hashCode() {
            return this.type.hashCode();
        }

        public String toString() {
            return Z0.o.r(new StringBuilder("Unknown(type="), this.type, ')');
        }

        public Unknown(String type) {
            o.h(type, "type");
            this.type = type;
        }
    }

    public static final class Image implements Background {
        public static final Companion Companion = new Companion(null);
        private final ColorScheme colorOverlay;
        private final FitMode fitMode;
        private final ThemeImageUrls value;

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

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

            private Companion() {
            }
        }

        @InterfaceC3141c
        public /* synthetic */ Image(int i6, ThemeImageUrls themeImageUrls, FitMode fitMode, ColorScheme colorScheme, a0 a0Var) {
            if (1 != (i6 & 1)) {
                P.h(i6, 1, Background$Image$$serializer.INSTANCE.getDescriptor());
                throw null;
            }
            this.value = themeImageUrls;
            if ((i6 & 2) == 0) {
                this.fitMode = FitMode.FILL;
            } else {
                this.fitMode = fitMode;
            }
            if ((i6 & 4) == 0) {
                this.colorOverlay = null;
            } else {
                this.colorOverlay = colorScheme;
            }
        }

        public static /* synthetic */ Image copy$default(Image image, ThemeImageUrls themeImageUrls, FitMode fitMode, ColorScheme colorScheme, int i6, Object obj) {
            if ((i6 & 1) != 0) {
                themeImageUrls = image.value;
            }
            if ((i6 & 2) != 0) {
                fitMode = image.fitMode;
            }
            if ((i6 & 4) != 0) {
                colorScheme = image.colorOverlay;
            }
            return image.copy(themeImageUrls, fitMode, colorScheme);
        }

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

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

        public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(Image image, b bVar, g gVar) {
            bVar.z(gVar, 0, ThemeImageUrls$$serializer.INSTANCE, image.value);
            if (bVar.g(gVar) || image.fitMode != FitMode.FILL) {
                bVar.z(gVar, 1, FitModeDeserializer.INSTANCE, image.fitMode);
            }
            if (!bVar.g(gVar) && image.colorOverlay == null) {
                return;
            }
            bVar.E(gVar, 2, ColorScheme$$serializer.INSTANCE, image.colorOverlay);
        }

        public final ThemeImageUrls component1() {
            return this.value;
        }

        public final FitMode component2() {
            return this.fitMode;
        }

        public final ColorScheme component3() {
            return this.colorOverlay;
        }

        public final Image copy(ThemeImageUrls value, FitMode fitMode, ColorScheme colorScheme) {
            o.h(value, "value");
            o.h(fitMode, "fitMode");
            return new Image(value, fitMode, colorScheme);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof Image)) {
                return false;
            }
            Image image = (Image) obj;
            return o.c(this.value, image.value) && this.fitMode == image.fitMode && o.c(this.colorOverlay, image.colorOverlay);
        }

        public final /* synthetic */ ColorScheme getColorOverlay() {
            return this.colorOverlay;
        }

        public final /* synthetic */ FitMode getFitMode() {
            return this.fitMode;
        }

        public final /* synthetic */ ThemeImageUrls getValue() {
            return this.value;
        }

        public int hashCode() {
            int iHashCode = (this.fitMode.hashCode() + (this.value.hashCode() * 31)) * 31;
            ColorScheme colorScheme = this.colorOverlay;
            return iHashCode + (colorScheme == null ? 0 : colorScheme.hashCode());
        }

        public String toString() {
            return "Image(value=" + this.value + ", fitMode=" + this.fitMode + ", colorOverlay=" + this.colorOverlay + ')';
        }

        public Image(ThemeImageUrls value, FitMode fitMode, ColorScheme colorScheme) {
            o.h(value, "value");
            o.h(fitMode, "fitMode");
            this.value = value;
            this.fitMode = fitMode;
            this.colorOverlay = colorScheme;
        }

        public /* synthetic */ Image(ThemeImageUrls themeImageUrls, FitMode fitMode, ColorScheme colorScheme, int i6, h hVar) {
            this(themeImageUrls, (i6 & 2) != 0 ? FitMode.FILL : fitMode, (i6 & 4) != 0 ? null : colorScheme);
        }
    }

    public static final class Video implements Background {
        public static final Companion Companion = new Companion(null);
        private final ColorScheme colorOverlay;
        private final ThemeImageUrls fallbackImage;
        private final FitMode fitMode;
        private final boolean loop;
        private final boolean muteAudio;
        private final ThemeVideoUrls value;

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

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

            private Companion() {
            }
        }

        @InterfaceC3141c
        public /* synthetic */ Video(int i6, ThemeVideoUrls themeVideoUrls, ThemeImageUrls themeImageUrls, boolean z6, boolean z7, FitMode fitMode, ColorScheme colorScheme, a0 a0Var) {
            if (15 != (i6 & 15)) {
                P.h(i6, 15, Background$Video$$serializer.INSTANCE.getDescriptor());
                throw null;
            }
            this.value = themeVideoUrls;
            this.fallbackImage = themeImageUrls;
            this.loop = z6;
            this.muteAudio = z7;
            if ((i6 & 16) == 0) {
                this.fitMode = FitMode.FILL;
            } else {
                this.fitMode = fitMode;
            }
            if ((i6 & 32) == 0) {
                this.colorOverlay = null;
            } else {
                this.colorOverlay = colorScheme;
            }
        }

        public static /* synthetic */ Video copy$default(Video video, ThemeVideoUrls themeVideoUrls, ThemeImageUrls themeImageUrls, boolean z6, boolean z7, FitMode fitMode, ColorScheme colorScheme, int i6, Object obj) {
            if ((i6 & 1) != 0) {
                themeVideoUrls = video.value;
            }
            if ((i6 & 2) != 0) {
                themeImageUrls = video.fallbackImage;
            }
            if ((i6 & 4) != 0) {
                z6 = video.loop;
            }
            if ((i6 & 8) != 0) {
                z7 = video.muteAudio;
            }
            if ((i6 & 16) != 0) {
                fitMode = video.fitMode;
            }
            if ((i6 & 32) != 0) {
                colorScheme = video.colorOverlay;
            }
            FitMode fitMode2 = fitMode;
            ColorScheme colorScheme2 = colorScheme;
            return video.copy(themeVideoUrls, themeImageUrls, z6, z7, fitMode2, colorScheme2);
        }

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

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

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

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

        public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(Video video, b bVar, g gVar) {
            bVar.z(gVar, 0, ThemeVideoUrls$$serializer.INSTANCE, video.value);
            bVar.z(gVar, 1, ThemeImageUrls$$serializer.INSTANCE, video.fallbackImage);
            bVar.v(gVar, 2, video.loop);
            bVar.v(gVar, 3, video.muteAudio);
            if (bVar.g(gVar) || video.fitMode != FitMode.FILL) {
                bVar.z(gVar, 4, FitModeDeserializer.INSTANCE, video.fitMode);
            }
            if (!bVar.g(gVar) && video.colorOverlay == null) {
                return;
            }
            bVar.E(gVar, 5, ColorScheme$$serializer.INSTANCE, video.colorOverlay);
        }

        public final ThemeVideoUrls component1() {
            return this.value;
        }

        public final ThemeImageUrls component2() {
            return this.fallbackImage;
        }

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

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

        public final FitMode component5() {
            return this.fitMode;
        }

        public final ColorScheme component6() {
            return this.colorOverlay;
        }

        public final Video copy(ThemeVideoUrls value, ThemeImageUrls fallbackImage, boolean z6, boolean z7, FitMode fitMode, ColorScheme colorScheme) {
            o.h(value, "value");
            o.h(fallbackImage, "fallbackImage");
            o.h(fitMode, "fitMode");
            return new Video(value, fallbackImage, z6, z7, fitMode, colorScheme);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof Video)) {
                return false;
            }
            Video video = (Video) obj;
            return o.c(this.value, video.value) && o.c(this.fallbackImage, video.fallbackImage) && this.loop == video.loop && this.muteAudio == video.muteAudio && this.fitMode == video.fitMode && o.c(this.colorOverlay, video.colorOverlay);
        }

        public final /* synthetic */ ColorScheme getColorOverlay() {
            return this.colorOverlay;
        }

        public final /* synthetic */ ThemeImageUrls getFallbackImage() {
            return this.fallbackImage;
        }

        public final /* synthetic */ FitMode getFitMode() {
            return this.fitMode;
        }

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

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

        public final /* synthetic */ ThemeVideoUrls getValue() {
            return this.value;
        }

        public int hashCode() {
            int iHashCode = (this.fitMode.hashCode() + com.google.android.recaptcha.internal.a.f(com.google.android.recaptcha.internal.a.f((this.fallbackImage.hashCode() + (this.value.hashCode() * 31)) * 31, 31, this.loop), 31, this.muteAudio)) * 31;
            ColorScheme colorScheme = this.colorOverlay;
            return iHashCode + (colorScheme == null ? 0 : colorScheme.hashCode());
        }

        public String toString() {
            return "Video(value=" + this.value + ", fallbackImage=" + this.fallbackImage + ", loop=" + this.loop + ", muteAudio=" + this.muteAudio + ", fitMode=" + this.fitMode + ", colorOverlay=" + this.colorOverlay + ')';
        }

        public Video(ThemeVideoUrls value, ThemeImageUrls fallbackImage, boolean z6, boolean z7, FitMode fitMode, ColorScheme colorScheme) {
            o.h(value, "value");
            o.h(fallbackImage, "fallbackImage");
            o.h(fitMode, "fitMode");
            this.value = value;
            this.fallbackImage = fallbackImage;
            this.loop = z6;
            this.muteAudio = z7;
            this.fitMode = fitMode;
            this.colorOverlay = colorScheme;
        }

        public /* synthetic */ Video(ThemeVideoUrls themeVideoUrls, ThemeImageUrls themeImageUrls, boolean z6, boolean z7, FitMode fitMode, ColorScheme colorScheme, int i6, h hVar) {
            this(themeVideoUrls, themeImageUrls, z6, z7, (i6 & 16) != 0 ? FitMode.FILL : fitMode, (i6 & 32) != 0 ? null : colorScheme);
        }
    }
}
