package com.revenuecat.purchases.ui.revenuecatui.fonts;

import X0.I;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.compose.runtime.Immutable;
import androidx.compose.runtime.Stable;
import com.google.android.recaptcha.internal.a;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.o;

/* JADX INFO: loaded from: classes3.dex */
@Stable
public abstract class PaywallFont implements Parcelable {
    public static final int $stable = 0;

    public /* synthetic */ PaywallFont(h hVar) {
        this();
    }

    private PaywallFont() {
    }

    @Immutable
    public static final class AssetFont extends PaywallFont {
        public static final int $stable = 0;
        public static final Parcelable.Creator<AssetFont> CREATOR = new Creator();
        private final int fontStyle;
        private final I fontWeight;
        private final String path;

        public static final class Creator implements Parcelable.Creator<AssetFont> {
            /* JADX WARN: Can't rename method to resolve collision */
            @Override // android.os.Parcelable.Creator
            public final AssetFont createFromParcel(Parcel parcel) {
                o.h(parcel, "parcel");
                return new AssetFont(parcel.readString(), FontWeightParceler.INSTANCE.m1119create(parcel), parcel.readInt());
            }

            /* JADX WARN: Can't rename method to resolve collision */
            @Override // android.os.Parcelable.Creator
            public final AssetFont[] newArray(int i6) {
                return new AssetFont[i6];
            }
        }

        /* JADX WARN: Illegal instructions before constructor call */
        public AssetFont(String str, I i6, int i7, int i8, h hVar) {
            if ((i8 & 2) != 0) {
                I i9 = I.f8440b;
                i6 = I.f8446k;
            }
            this(str, i6, (i8 & 4) != 0 ? 0 : i7);
        }

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

        @Override // android.os.Parcelable
        public int describeContents() {
            return 0;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof AssetFont)) {
                return false;
            }
            AssetFont assetFont = (AssetFont) obj;
            return o.c(this.path, assetFont.path) && o.c(this.fontWeight, assetFont.fontWeight) && this.fontStyle == assetFont.fontStyle;
        }

        public final int getFontStyle() {
            return this.fontStyle;
        }

        public final I getFontWeight() {
            return this.fontWeight;
        }

        public final String getPath() {
            return this.path;
        }

        public int hashCode() {
            return (((this.path.hashCode() * 31) + this.fontWeight.f8452a) * 31) + this.fontStyle;
        }

        public String toString() {
            StringBuilder sb = new StringBuilder("AssetFont(path=");
            sb.append(this.path);
            sb.append(", fontWeight=");
            sb.append(this.fontWeight);
            sb.append(", fontStyle=");
            return a.m(sb, this.fontStyle, ')');
        }

        @Override // android.os.Parcelable
        public void writeToParcel(Parcel out, int i6) {
            o.h(out, "out");
            out.writeString(this.path);
            FontWeightParceler.INSTANCE.write(this.fontWeight, out, i6);
            out.writeInt(this.fontStyle);
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public AssetFont(String path, I fontWeight, int i6) {
            super(null);
            o.h(path, "path");
            o.h(fontWeight, "fontWeight");
            this.path = path;
            this.fontWeight = fontWeight;
            this.fontStyle = i6;
        }
    }

    @Immutable
    public static final class GoogleFont extends PaywallFont {
        public static final int $stable = 0;
        public static final Parcelable.Creator<GoogleFont> CREATOR = new Creator();
        private final String fontName;
        private final GoogleFontProvider fontProvider;
        private final int fontStyle;
        private final I fontWeight;

        public static final class Creator implements Parcelable.Creator<GoogleFont> {
            /* JADX WARN: Can't rename method to resolve collision */
            @Override // android.os.Parcelable.Creator
            public final GoogleFont createFromParcel(Parcel parcel) {
                o.h(parcel, "parcel");
                return new GoogleFont(parcel.readString(), GoogleFontProvider.CREATOR.createFromParcel(parcel), FontWeightParceler.INSTANCE.m1119create(parcel), parcel.readInt());
            }

            /* JADX WARN: Can't rename method to resolve collision */
            @Override // android.os.Parcelable.Creator
            public final GoogleFont[] newArray(int i6) {
                return new GoogleFont[i6];
            }
        }

        /* JADX WARN: Illegal instructions before constructor call */
        public GoogleFont(String str, GoogleFontProvider googleFontProvider, I i6, int i7, int i8, h hVar) {
            if ((i8 & 4) != 0) {
                I i9 = I.f8440b;
                i6 = I.f8446k;
            }
            this(str, googleFontProvider, i6, (i8 & 8) != 0 ? 0 : i7);
        }

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

        @Override // android.os.Parcelable
        public int describeContents() {
            return 0;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof GoogleFont)) {
                return false;
            }
            GoogleFont googleFont = (GoogleFont) obj;
            return o.c(this.fontName, googleFont.fontName) && o.c(this.fontProvider, googleFont.fontProvider) && o.c(this.fontWeight, googleFont.fontWeight) && this.fontStyle == googleFont.fontStyle;
        }

        public final String getFontName() {
            return this.fontName;
        }

        public final GoogleFontProvider getFontProvider() {
            return this.fontProvider;
        }

        public final int getFontStyle() {
            return this.fontStyle;
        }

        public final I getFontWeight() {
            return this.fontWeight;
        }

        public int hashCode() {
            return ((((this.fontProvider.hashCode() + (this.fontName.hashCode() * 31)) * 31) + this.fontWeight.f8452a) * 31) + this.fontStyle;
        }

        public String toString() {
            StringBuilder sb = new StringBuilder("GoogleFont(fontName=");
            sb.append(this.fontName);
            sb.append(", fontProvider=");
            sb.append(this.fontProvider);
            sb.append(", fontWeight=");
            sb.append(this.fontWeight);
            sb.append(", fontStyle=");
            return a.m(sb, this.fontStyle, ')');
        }

        @Override // android.os.Parcelable
        public void writeToParcel(Parcel out, int i6) {
            o.h(out, "out");
            out.writeString(this.fontName);
            this.fontProvider.writeToParcel(out, i6);
            FontWeightParceler.INSTANCE.write(this.fontWeight, out, i6);
            out.writeInt(this.fontStyle);
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public GoogleFont(String fontName, GoogleFontProvider fontProvider, I fontWeight, int i6) {
            super(null);
            o.h(fontName, "fontName");
            o.h(fontProvider, "fontProvider");
            o.h(fontWeight, "fontWeight");
            this.fontName = fontName;
            this.fontProvider = fontProvider;
            this.fontWeight = fontWeight;
            this.fontStyle = i6;
        }
    }

    @Immutable
    public static final class ResourceFont extends PaywallFont {
        public static final int $stable = 0;
        public static final Parcelable.Creator<ResourceFont> CREATOR = new Creator();
        private final int fontStyle;
        private final I fontWeight;
        private final int resourceId;

        public static final class Creator implements Parcelable.Creator<ResourceFont> {
            /* JADX WARN: Can't rename method to resolve collision */
            @Override // android.os.Parcelable.Creator
            public final ResourceFont createFromParcel(Parcel parcel) {
                o.h(parcel, "parcel");
                return new ResourceFont(parcel.readInt(), FontWeightParceler.INSTANCE.m1119create(parcel), parcel.readInt());
            }

            /* JADX WARN: Can't rename method to resolve collision */
            @Override // android.os.Parcelable.Creator
            public final ResourceFont[] newArray(int i6) {
                return new ResourceFont[i6];
            }
        }

        /* JADX WARN: Illegal instructions before constructor call */
        public ResourceFont(int i6, I i7, int i8, int i9, h hVar) {
            if ((i9 & 2) != 0) {
                I i10 = I.f8440b;
                i7 = I.f8446k;
            }
            this(i6, i7, (i9 & 4) != 0 ? 0 : i8);
        }

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

        @Override // android.os.Parcelable
        public int describeContents() {
            return 0;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof ResourceFont)) {
                return false;
            }
            ResourceFont resourceFont = (ResourceFont) obj;
            return this.resourceId == resourceFont.resourceId && o.c(this.fontWeight, resourceFont.fontWeight) && this.fontStyle == resourceFont.fontStyle;
        }

        public final int getFontStyle() {
            return this.fontStyle;
        }

        public final I getFontWeight() {
            return this.fontWeight;
        }

        public final int getResourceId() {
            return this.resourceId;
        }

        public int hashCode() {
            return (((this.resourceId * 31) + this.fontWeight.f8452a) * 31) + this.fontStyle;
        }

        public String toString() {
            StringBuilder sb = new StringBuilder("ResourceFont(resourceId=");
            sb.append(this.resourceId);
            sb.append(", fontWeight=");
            sb.append(this.fontWeight);
            sb.append(", fontStyle=");
            return a.m(sb, this.fontStyle, ')');
        }

        @Override // android.os.Parcelable
        public void writeToParcel(Parcel out, int i6) {
            o.h(out, "out");
            out.writeInt(this.resourceId);
            FontWeightParceler.INSTANCE.write(this.fontWeight, out, i6);
            out.writeInt(this.fontStyle);
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public ResourceFont(int i6, I fontWeight, int i7) {
            super(null);
            o.h(fontWeight, "fontWeight");
            this.resourceId = i6;
            this.fontWeight = fontWeight;
            this.fontStyle = i7;
        }
    }
}
