package com.revenuecat.purchases.paywalls;

import com.revenuecat.purchases.InternalRevenueCatAPI;
import com.revenuecat.purchases.paywalls.PaywallColor;
import com.revenuecat.purchases.utils.LocaleExtensionsKt;
import com.revenuecat.purchases.utils.serializers.GoogleListSerializer;
import com.revenuecat.purchases.utils.serializers.OptionalURLSerializer;
import com.revenuecat.purchases.utils.serializers.URLSerializer;
import g5.a;
import i5.g;
import j5.b;
import java.net.URL;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import k5.C2416d;
import k5.H;
import k5.P;
import k5.a0;
import k5.e0;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.o;
import q.AbstractC2761L;
import w4.InterfaceC3141c;
import w4.k;
import x4.AbstractC3250p;
import x4.AbstractC3251q;
import x4.y;
import x4.z;

/* JADX INFO: loaded from: classes3.dex */
@InternalRevenueCatAPI
public final class PaywallData {
    private static final a[] $childSerializers;
    public static final Companion Companion = new Companion(null);
    private final URL assetBaseURL;
    private final Configuration config;
    private final String defaultLocale;
    private final String id;
    private final Map<String, LocalizedConfiguration> localization;
    private final Map<String, Map<String, LocalizedConfiguration>> localizationByTier;
    private final int revision;
    private final String templateName;
    private final List<String> zeroDecimalPlaceCountries;

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

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

        private Companion() {
        }
    }

    static {
        e0 e0Var = e0.f20048a;
        PaywallData$LocalizedConfiguration$$serializer paywallData$LocalizedConfiguration$$serializer = PaywallData$LocalizedConfiguration$$serializer.INSTANCE;
        $childSerializers = new a[]{null, null, null, null, null, new H(e0Var, paywallData$LocalizedConfiguration$$serializer), new H(e0Var, new H(e0Var, paywallData$LocalizedConfiguration$$serializer)), null, null};
    }

    @InterfaceC3141c
    public /* synthetic */ PaywallData(int i6, String str, String str2, Configuration configuration, URL url, int i7, Map map, Map map2, List list, String str3, a0 a0Var) {
        if (46 != (i6 & 46)) {
            P.h(i6, 46, PaywallData$$serializer.INSTANCE.getDescriptor());
            throw null;
        }
        if ((i6 & 1) == 0) {
            this.id = null;
        } else {
            this.id = str;
        }
        this.templateName = str2;
        this.config = configuration;
        this.assetBaseURL = url;
        if ((i6 & 16) == 0) {
            this.revision = 0;
        } else {
            this.revision = i7;
        }
        this.localization = map;
        if ((i6 & 64) == 0) {
            this.localizationByTier = z.f26066a;
        } else {
            this.localizationByTier = map2;
        }
        if ((i6 & 128) == 0) {
            this.zeroDecimalPlaceCountries = y.f26065a;
        } else {
            this.zeroDecimalPlaceCountries = list;
        }
        if ((i6 & 256) == 0) {
            this.defaultLocale = null;
        } else {
            this.defaultLocale = str3;
        }
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ PaywallData copy$default(PaywallData paywallData, String str, Configuration configuration, URL url, int i6, Map map, Map map2, List list, String str2, int i7, Object obj) {
        if ((i7 & 1) != 0) {
            str = paywallData.templateName;
        }
        if ((i7 & 2) != 0) {
            configuration = paywallData.config;
        }
        if ((i7 & 4) != 0) {
            url = paywallData.assetBaseURL;
        }
        if ((i7 & 8) != 0) {
            i6 = paywallData.revision;
        }
        if ((i7 & 16) != 0) {
            map = paywallData.localization;
        }
        if ((i7 & 32) != 0) {
            map2 = paywallData.localizationByTier;
        }
        if ((i7 & 64) != 0) {
            list = paywallData.zeroDecimalPlaceCountries;
        }
        if ((i7 & 128) != 0) {
            str2 = paywallData.defaultLocale;
        }
        List list2 = list;
        String str3 = str2;
        Map map3 = map;
        Map map4 = map2;
        return paywallData.copy(str, configuration, url, i6, map3, map4, list2, str3);
    }

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

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

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

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

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

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

    private final k tieredConfigForLocales(List<Locale> list) {
        Object next;
        Iterator<Locale> it = list.iterator();
        while (it.hasNext()) {
            Locale localeConvertToCorrectlyFormattedLocale = LocaleExtensionsKt.convertToCorrectlyFormattedLocale(it.next());
            Map<String, LocalizedConfiguration> mapTieredConfigForLocale = tieredConfigForLocale(localeConvertToCorrectlyFormattedLocale);
            if (mapTieredConfigForLocale != null) {
                return new k(localeConvertToCorrectlyFormattedLocale, mapTieredConfigForLocale);
            }
        }
        String str = this.defaultLocale;
        if (str != null) {
            Iterator<T> it2 = this.localizationByTier.entrySet().iterator();
            while (true) {
                if (!it2.hasNext()) {
                    next = null;
                    break;
                }
                next = it2.next();
                if (o.c(LocaleExtensionsKt.toLocale((String) ((Map.Entry) next).getKey()), LocaleExtensionsKt.toLocale(str))) {
                    break;
                }
            }
            Map.Entry entry = (Map.Entry) next;
            if (entry != null) {
                return new k(LocaleExtensionsKt.toLocale((String) entry.getKey()), entry.getValue());
            }
        }
        Map.Entry entry2 = (Map.Entry) AbstractC3251q.d0(this.localizationByTier.entrySet());
        return new k(LocaleExtensionsKt.toLocale((String) entry2.getKey()), entry2.getValue());
    }

    public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(PaywallData paywallData, b bVar, g gVar) {
        a[] aVarArr = $childSerializers;
        if (bVar.g(gVar) || paywallData.id != null) {
            bVar.E(gVar, 0, e0.f20048a, paywallData.id);
        }
        bVar.A(gVar, 1, paywallData.templateName);
        bVar.z(gVar, 2, PaywallData$Configuration$$serializer.INSTANCE, paywallData.config);
        bVar.z(gVar, 3, URLSerializer.INSTANCE, paywallData.assetBaseURL);
        if (bVar.g(gVar) || paywallData.revision != 0) {
            bVar.w(4, paywallData.revision, gVar);
        }
        bVar.z(gVar, 5, aVarArr[5], paywallData.localization);
        if (bVar.g(gVar) || !o.c(paywallData.localizationByTier, z.f26066a)) {
            bVar.z(gVar, 6, aVarArr[6], paywallData.localizationByTier);
        }
        if (bVar.g(gVar) || !o.c(paywallData.zeroDecimalPlaceCountries, y.f26065a)) {
            bVar.z(gVar, 7, GoogleListSerializer.INSTANCE, paywallData.zeroDecimalPlaceCountries);
        }
        if (!bVar.g(gVar) && paywallData.defaultLocale == null) {
            return;
        }
        bVar.E(gVar, 8, e0.f20048a, paywallData.defaultLocale);
    }

    public final LocalizedConfiguration configForLocale(Locale requiredLocale) {
        Object next;
        o.h(requiredLocale, "requiredLocale");
        LocalizedConfiguration localizedConfiguration = this.localization.get(requiredLocale.toString());
        if (localizedConfiguration != null) {
            return localizedConfiguration;
        }
        Iterator<T> it = this.localization.entrySet().iterator();
        while (true) {
            if (!it.hasNext()) {
                next = null;
                break;
            }
            next = it.next();
            if (LocaleExtensionsKt.sharedLanguageCodeWith(requiredLocale, LocaleExtensionsKt.toLocale((String) ((Map.Entry) next).getKey()))) {
                break;
            }
        }
        Map.Entry entry = (Map.Entry) next;
        if (entry != null) {
            return (LocalizedConfiguration) entry.getValue();
        }
        return null;
    }

    @InternalRevenueCatAPI
    public final PaywallData copy(String templateName, Configuration config, URL assetBaseURL, int i6, Map<String, LocalizedConfiguration> localization, Map<String, ? extends Map<String, LocalizedConfiguration>> localizationByTier, List<String> zeroDecimalPlaceCountries, String str) {
        o.h(templateName, "templateName");
        o.h(config, "config");
        o.h(assetBaseURL, "assetBaseURL");
        o.h(localization, "localization");
        o.h(localizationByTier, "localizationByTier");
        o.h(zeroDecimalPlaceCountries, "zeroDecimalPlaceCountries");
        return new PaywallData((String) null, templateName, config, assetBaseURL, i6, localization, localizationByTier, zeroDecimalPlaceCountries, str, 1, (h) null);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof PaywallData)) {
            return false;
        }
        PaywallData paywallData = (PaywallData) obj;
        return o.c(this.id, paywallData.id) && o.c(this.templateName, paywallData.templateName) && o.c(this.config, paywallData.config) && o.c(this.assetBaseURL, paywallData.assetBaseURL) && this.revision == paywallData.revision && o.c(this.localization, paywallData.localization) && o.c(this.localizationByTier, paywallData.localizationByTier) && o.c(this.zeroDecimalPlaceCountries, paywallData.zeroDecimalPlaceCountries) && o.c(this.defaultLocale, paywallData.defaultLocale);
    }

    public final URL getAssetBaseURL() {
        return this.assetBaseURL;
    }

    public final Configuration getConfig() {
        return this.config;
    }

    public final String getDefaultLocale() {
        return this.defaultLocale;
    }

    public final String getId() {
        return this.id;
    }

    public final Map<String, LocalizedConfiguration> getLocalization$purchases_defaultsBc8Release() {
        return this.localization;
    }

    public final Map<String, Map<String, LocalizedConfiguration>> getLocalizationByTier$purchases_defaultsBc8Release() {
        return this.localizationByTier;
    }

    public final k getLocalizedConfiguration() {
        return localizedConfiguration(LocaleExtensionsKt.getDefaultLocales());
    }

    public final int getRevision() {
        return this.revision;
    }

    public final String getTemplateName() {
        return this.templateName;
    }

    public final k getTieredLocalizedConfiguration() {
        return tieredConfigForLocales(LocaleExtensionsKt.getDefaultLocales());
    }

    public final List<String> getZeroDecimalPlaceCountries() {
        return this.zeroDecimalPlaceCountries;
    }

    public int hashCode() {
        String str = this.id;
        int iC = AbstractC2761L.c(this.zeroDecimalPlaceCountries, A0.a.d(this.localizationByTier, A0.a.d(this.localization, (((this.assetBaseURL.hashCode() + ((this.config.hashCode() + AbstractC2761L.b((str == null ? 0 : str.hashCode()) * 31, 31, this.templateName)) * 31)) * 31) + this.revision) * 31, 31), 31), 31);
        String str2 = this.defaultLocale;
        return iC + (str2 != null ? str2.hashCode() : 0);
    }

    public final k localizedConfiguration(List<Locale> locales) {
        Object next;
        o.h(locales, "locales");
        Iterator<Locale> it = locales.iterator();
        while (it.hasNext()) {
            Locale localeConvertToCorrectlyFormattedLocale = LocaleExtensionsKt.convertToCorrectlyFormattedLocale(it.next());
            LocalizedConfiguration localizedConfigurationConfigForLocale = configForLocale(localeConvertToCorrectlyFormattedLocale);
            if (localizedConfigurationConfigForLocale != null) {
                return new k(localeConvertToCorrectlyFormattedLocale, localizedConfigurationConfigForLocale);
            }
        }
        String str = this.defaultLocale;
        if (str != null) {
            Iterator<T> it2 = this.localization.entrySet().iterator();
            while (true) {
                if (!it2.hasNext()) {
                    next = null;
                    break;
                }
                next = it2.next();
                if (o.c(LocaleExtensionsKt.toLocale((String) ((Map.Entry) next).getKey()), LocaleExtensionsKt.toLocale(str))) {
                    break;
                }
            }
            Map.Entry entry = (Map.Entry) next;
            if (entry != null) {
                return new k(LocaleExtensionsKt.toLocale((String) entry.getKey()), entry.getValue());
            }
        }
        Map.Entry entry2 = (Map.Entry) AbstractC3251q.d0(this.localization.entrySet());
        return new k(LocaleExtensionsKt.toLocale((String) entry2.getKey()), entry2.getValue());
    }

    public final Map<String, LocalizedConfiguration> tieredConfigForLocale(Locale requiredLocale) {
        Object next;
        o.h(requiredLocale, "requiredLocale");
        Map<String, LocalizedConfiguration> map = this.localizationByTier.get(requiredLocale.toString());
        if (map != null) {
            return map;
        }
        Iterator<T> it = this.localizationByTier.entrySet().iterator();
        while (true) {
            if (!it.hasNext()) {
                next = null;
                break;
            }
            next = it.next();
            if (LocaleExtensionsKt.sharedLanguageCodeWith(requiredLocale, LocaleExtensionsKt.toLocale((String) ((Map.Entry) next).getKey()))) {
                break;
            }
        }
        Map.Entry entry = (Map.Entry) next;
        if (entry != null) {
            return (Map) entry.getValue();
        }
        return null;
    }

    public String toString() {
        StringBuilder sb = new StringBuilder("PaywallData(id=");
        sb.append(this.id);
        sb.append(", templateName=");
        sb.append(this.templateName);
        sb.append(", config=");
        sb.append(this.config);
        sb.append(", assetBaseURL=");
        sb.append(this.assetBaseURL);
        sb.append(", revision=");
        sb.append(this.revision);
        sb.append(", localization=");
        sb.append(this.localization);
        sb.append(", localizationByTier=");
        sb.append(this.localizationByTier);
        sb.append(", zeroDecimalPlaceCountries=");
        sb.append(this.zeroDecimalPlaceCountries);
        sb.append(", defaultLocale=");
        return Z0.o.r(sb, this.defaultLocale, ')');
    }

    public static final class Configuration {
        private static final a[] $childSerializers;
        public static final Companion Companion = new Companion(null);
        private final boolean blurredBackgroundImage;
        private final ColorInformation colors;
        private final Map<String, ColorInformation> colorsByTier;
        private final String defaultPackage;
        private final String defaultTier;
        private final boolean displayRestorePurchases;
        private final Map<String, Images> imagesByTier;
        private final Images imagesWebp;
        private final Images legacyImages;
        private final List<String> packageIds;
        private final URL privacyURL;
        private final URL termsOfServiceURL;
        private final List<Tier> tiers;

        public static final class ColorInformation {
            public static final Companion Companion = new Companion(null);
            private final Colors dark;
            private final Colors light;

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

                public final a serializer() {
                    return PaywallData$Configuration$ColorInformation$$serializer.INSTANCE;
                }

                private Companion() {
                }
            }

            @InterfaceC3141c
            public /* synthetic */ ColorInformation(int i6, Colors colors, Colors colors2, a0 a0Var) {
                if (1 != (i6 & 1)) {
                    P.h(i6, 1, PaywallData$Configuration$ColorInformation$$serializer.INSTANCE.getDescriptor());
                    throw null;
                }
                this.light = colors;
                if ((i6 & 2) == 0) {
                    this.dark = null;
                } else {
                    this.dark = colors2;
                }
            }

            public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(ColorInformation colorInformation, b bVar, g gVar) {
                PaywallData$Configuration$Colors$$serializer paywallData$Configuration$Colors$$serializer = PaywallData$Configuration$Colors$$serializer.INSTANCE;
                bVar.z(gVar, 0, paywallData$Configuration$Colors$$serializer, colorInformation.light);
                if (!bVar.g(gVar) && colorInformation.dark == null) {
                    return;
                }
                bVar.E(gVar, 1, paywallData$Configuration$Colors$$serializer, colorInformation.dark);
            }

            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
                if (!(obj instanceof ColorInformation)) {
                    return false;
                }
                ColorInformation colorInformation = (ColorInformation) obj;
                return o.c(this.light, colorInformation.light) && o.c(this.dark, colorInformation.dark);
            }

            public final Colors getDark() {
                return this.dark;
            }

            public final Colors getLight() {
                return this.light;
            }

            public int hashCode() {
                int iHashCode = this.light.hashCode() * 31;
                Colors colors = this.dark;
                return iHashCode + (colors == null ? 0 : colors.hashCode());
            }

            public String toString() {
                return "ColorInformation(light=" + this.light + ", dark=" + this.dark + ')';
            }

            public ColorInformation(Colors light, Colors colors) {
                o.h(light, "light");
                this.light = light;
                this.dark = colors;
            }

            public /* synthetic */ ColorInformation(Colors colors, Colors colors2, int i6, h hVar) {
                this(colors, (i6 & 2) != 0 ? null : colors2);
            }
        }

        public static final class Colors {
            public static final Companion Companion = new Companion(null);
            private final PaywallColor accent1;
            private final PaywallColor accent2;
            private final PaywallColor accent3;
            private final PaywallColor background;
            private final PaywallColor callToActionBackground;
            private final PaywallColor callToActionForeground;
            private final PaywallColor callToActionSecondaryBackground;
            private final PaywallColor closeButton;
            private final PaywallColor text1;
            private final PaywallColor text2;
            private final PaywallColor text3;
            private final PaywallColor tierControlBackground;
            private final PaywallColor tierControlForeground;
            private final PaywallColor tierControlSelectedBackground;
            private final PaywallColor tierControlSelectedForeground;

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

                public final a serializer() {
                    return PaywallData$Configuration$Colors$$serializer.INSTANCE;
                }

                private Companion() {
                }
            }

            @InterfaceC3141c
            public /* synthetic */ Colors(int i6, PaywallColor paywallColor, PaywallColor paywallColor2, PaywallColor paywallColor3, PaywallColor paywallColor4, PaywallColor paywallColor5, PaywallColor paywallColor6, PaywallColor paywallColor7, PaywallColor paywallColor8, PaywallColor paywallColor9, PaywallColor paywallColor10, PaywallColor paywallColor11, PaywallColor paywallColor12, PaywallColor paywallColor13, PaywallColor paywallColor14, PaywallColor paywallColor15, a0 a0Var) {
                if (51 != (i6 & 51)) {
                    P.h(i6, 51, PaywallData$Configuration$Colors$$serializer.INSTANCE.getDescriptor());
                    throw null;
                }
                this.background = paywallColor;
                this.text1 = paywallColor2;
                if ((i6 & 4) == 0) {
                    this.text2 = null;
                } else {
                    this.text2 = paywallColor3;
                }
                if ((i6 & 8) == 0) {
                    this.text3 = null;
                } else {
                    this.text3 = paywallColor4;
                }
                this.callToActionBackground = paywallColor5;
                this.callToActionForeground = paywallColor6;
                if ((i6 & 64) == 0) {
                    this.callToActionSecondaryBackground = null;
                } else {
                    this.callToActionSecondaryBackground = paywallColor7;
                }
                if ((i6 & 128) == 0) {
                    this.accent1 = null;
                } else {
                    this.accent1 = paywallColor8;
                }
                if ((i6 & 256) == 0) {
                    this.accent2 = null;
                } else {
                    this.accent2 = paywallColor9;
                }
                if ((i6 & 512) == 0) {
                    this.accent3 = null;
                } else {
                    this.accent3 = paywallColor10;
                }
                if ((i6 & 1024) == 0) {
                    this.closeButton = null;
                } else {
                    this.closeButton = paywallColor11;
                }
                if ((i6 & 2048) == 0) {
                    this.tierControlBackground = null;
                } else {
                    this.tierControlBackground = paywallColor12;
                }
                if ((i6 & 4096) == 0) {
                    this.tierControlForeground = null;
                } else {
                    this.tierControlForeground = paywallColor13;
                }
                if ((i6 & 8192) == 0) {
                    this.tierControlSelectedBackground = null;
                } else {
                    this.tierControlSelectedBackground = paywallColor14;
                }
                if ((i6 & 16384) == 0) {
                    this.tierControlSelectedForeground = null;
                } else {
                    this.tierControlSelectedForeground = paywallColor15;
                }
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(Colors colors, b bVar, g gVar) {
                PaywallColor.Serializer serializer = PaywallColor.Serializer.INSTANCE;
                bVar.z(gVar, 0, serializer, colors.background);
                bVar.z(gVar, 1, serializer, colors.text1);
                if (bVar.g(gVar) || colors.text2 != null) {
                    bVar.E(gVar, 2, serializer, colors.text2);
                }
                if (bVar.g(gVar) || colors.text3 != null) {
                    bVar.E(gVar, 3, serializer, colors.text3);
                }
                bVar.z(gVar, 4, serializer, colors.callToActionBackground);
                bVar.z(gVar, 5, serializer, colors.callToActionForeground);
                if (bVar.g(gVar) || colors.callToActionSecondaryBackground != null) {
                    bVar.E(gVar, 6, serializer, colors.callToActionSecondaryBackground);
                }
                if (bVar.g(gVar) || colors.accent1 != null) {
                    bVar.E(gVar, 7, serializer, colors.accent1);
                }
                if (bVar.g(gVar) || colors.accent2 != null) {
                    bVar.E(gVar, 8, serializer, colors.accent2);
                }
                if (bVar.g(gVar) || colors.accent3 != null) {
                    bVar.E(gVar, 9, serializer, colors.accent3);
                }
                if (bVar.g(gVar) || colors.closeButton != null) {
                    bVar.E(gVar, 10, serializer, colors.closeButton);
                }
                if (bVar.g(gVar) || colors.tierControlBackground != null) {
                    bVar.E(gVar, 11, serializer, colors.tierControlBackground);
                }
                if (bVar.g(gVar) || colors.tierControlForeground != null) {
                    bVar.E(gVar, 12, serializer, colors.tierControlForeground);
                }
                if (bVar.g(gVar) || colors.tierControlSelectedBackground != null) {
                    bVar.E(gVar, 13, serializer, colors.tierControlSelectedBackground);
                }
                if (!bVar.g(gVar) && colors.tierControlSelectedForeground == null) {
                    return;
                }
                bVar.E(gVar, 14, serializer, colors.tierControlSelectedForeground);
            }

            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
                if (!(obj instanceof Colors)) {
                    return false;
                }
                Colors colors = (Colors) obj;
                return o.c(this.background, colors.background) && o.c(this.text1, colors.text1) && o.c(this.text2, colors.text2) && o.c(this.text3, colors.text3) && o.c(this.callToActionBackground, colors.callToActionBackground) && o.c(this.callToActionForeground, colors.callToActionForeground) && o.c(this.callToActionSecondaryBackground, colors.callToActionSecondaryBackground) && o.c(this.accent1, colors.accent1) && o.c(this.accent2, colors.accent2) && o.c(this.accent3, colors.accent3) && o.c(this.closeButton, colors.closeButton) && o.c(this.tierControlBackground, colors.tierControlBackground) && o.c(this.tierControlForeground, colors.tierControlForeground) && o.c(this.tierControlSelectedBackground, colors.tierControlSelectedBackground) && o.c(this.tierControlSelectedForeground, colors.tierControlSelectedForeground);
            }

            public final PaywallColor getAccent1() {
                return this.accent1;
            }

            public final PaywallColor getAccent2() {
                return this.accent2;
            }

            public final PaywallColor getAccent3() {
                return this.accent3;
            }

            public final PaywallColor getBackground() {
                return this.background;
            }

            public final PaywallColor getCallToActionBackground() {
                return this.callToActionBackground;
            }

            public final PaywallColor getCallToActionForeground() {
                return this.callToActionForeground;
            }

            public final PaywallColor getCallToActionSecondaryBackground() {
                return this.callToActionSecondaryBackground;
            }

            public final PaywallColor getCloseButton() {
                return this.closeButton;
            }

            public final PaywallColor getText1() {
                return this.text1;
            }

            public final PaywallColor getText2() {
                return this.text2;
            }

            public final PaywallColor getText3() {
                return this.text3;
            }

            public final PaywallColor getTierControlBackground() {
                return this.tierControlBackground;
            }

            public final PaywallColor getTierControlForeground() {
                return this.tierControlForeground;
            }

            public final PaywallColor getTierControlSelectedBackground() {
                return this.tierControlSelectedBackground;
            }

            public final PaywallColor getTierControlSelectedForeground() {
                return this.tierControlSelectedForeground;
            }

            public int hashCode() {
                int iHashCode = (this.text1.hashCode() + (this.background.hashCode() * 31)) * 31;
                PaywallColor paywallColor = this.text2;
                int iHashCode2 = (iHashCode + (paywallColor == null ? 0 : paywallColor.hashCode())) * 31;
                PaywallColor paywallColor2 = this.text3;
                int iHashCode3 = (this.callToActionForeground.hashCode() + ((this.callToActionBackground.hashCode() + ((iHashCode2 + (paywallColor2 == null ? 0 : paywallColor2.hashCode())) * 31)) * 31)) * 31;
                PaywallColor paywallColor3 = this.callToActionSecondaryBackground;
                int iHashCode4 = (iHashCode3 + (paywallColor3 == null ? 0 : paywallColor3.hashCode())) * 31;
                PaywallColor paywallColor4 = this.accent1;
                int iHashCode5 = (iHashCode4 + (paywallColor4 == null ? 0 : paywallColor4.hashCode())) * 31;
                PaywallColor paywallColor5 = this.accent2;
                int iHashCode6 = (iHashCode5 + (paywallColor5 == null ? 0 : paywallColor5.hashCode())) * 31;
                PaywallColor paywallColor6 = this.accent3;
                int iHashCode7 = (iHashCode6 + (paywallColor6 == null ? 0 : paywallColor6.hashCode())) * 31;
                PaywallColor paywallColor7 = this.closeButton;
                int iHashCode8 = (iHashCode7 + (paywallColor7 == null ? 0 : paywallColor7.hashCode())) * 31;
                PaywallColor paywallColor8 = this.tierControlBackground;
                int iHashCode9 = (iHashCode8 + (paywallColor8 == null ? 0 : paywallColor8.hashCode())) * 31;
                PaywallColor paywallColor9 = this.tierControlForeground;
                int iHashCode10 = (iHashCode9 + (paywallColor9 == null ? 0 : paywallColor9.hashCode())) * 31;
                PaywallColor paywallColor10 = this.tierControlSelectedBackground;
                int iHashCode11 = (iHashCode10 + (paywallColor10 == null ? 0 : paywallColor10.hashCode())) * 31;
                PaywallColor paywallColor11 = this.tierControlSelectedForeground;
                return iHashCode11 + (paywallColor11 != null ? paywallColor11.hashCode() : 0);
            }

            public String toString() {
                return "Colors(background=" + this.background + ", text1=" + this.text1 + ", text2=" + this.text2 + ", text3=" + this.text3 + ", callToActionBackground=" + this.callToActionBackground + ", callToActionForeground=" + this.callToActionForeground + ", callToActionSecondaryBackground=" + this.callToActionSecondaryBackground + ", accent1=" + this.accent1 + ", accent2=" + this.accent2 + ", accent3=" + this.accent3 + ", closeButton=" + this.closeButton + ", tierControlBackground=" + this.tierControlBackground + ", tierControlForeground=" + this.tierControlForeground + ", tierControlSelectedBackground=" + this.tierControlSelectedBackground + ", tierControlSelectedForeground=" + this.tierControlSelectedForeground + ')';
            }

            public Colors(PaywallColor background, PaywallColor text1, PaywallColor paywallColor, PaywallColor paywallColor2, PaywallColor callToActionBackground, PaywallColor callToActionForeground, PaywallColor paywallColor3, PaywallColor paywallColor4, PaywallColor paywallColor5, PaywallColor paywallColor6, PaywallColor paywallColor7, PaywallColor paywallColor8, PaywallColor paywallColor9, PaywallColor paywallColor10, PaywallColor paywallColor11) {
                o.h(background, "background");
                o.h(text1, "text1");
                o.h(callToActionBackground, "callToActionBackground");
                o.h(callToActionForeground, "callToActionForeground");
                this.background = background;
                this.text1 = text1;
                this.text2 = paywallColor;
                this.text3 = paywallColor2;
                this.callToActionBackground = callToActionBackground;
                this.callToActionForeground = callToActionForeground;
                this.callToActionSecondaryBackground = paywallColor3;
                this.accent1 = paywallColor4;
                this.accent2 = paywallColor5;
                this.accent3 = paywallColor6;
                this.closeButton = paywallColor7;
                this.tierControlBackground = paywallColor8;
                this.tierControlForeground = paywallColor9;
                this.tierControlSelectedBackground = paywallColor10;
                this.tierControlSelectedForeground = paywallColor11;
            }

            public /* synthetic */ Colors(PaywallColor paywallColor, PaywallColor paywallColor2, PaywallColor paywallColor3, PaywallColor paywallColor4, PaywallColor paywallColor5, PaywallColor paywallColor6, PaywallColor paywallColor7, PaywallColor paywallColor8, PaywallColor paywallColor9, PaywallColor paywallColor10, PaywallColor paywallColor11, PaywallColor paywallColor12, PaywallColor paywallColor13, PaywallColor paywallColor14, PaywallColor paywallColor15, int i6, h hVar) {
                this(paywallColor, paywallColor2, (i6 & 4) != 0 ? null : paywallColor3, (i6 & 8) != 0 ? null : paywallColor4, paywallColor5, paywallColor6, (i6 & 64) != 0 ? null : paywallColor7, (i6 & 128) != 0 ? null : paywallColor8, (i6 & 256) != 0 ? null : paywallColor9, (i6 & 512) != 0 ? null : paywallColor10, (i6 & 1024) != 0 ? null : paywallColor11, (i6 & 2048) != 0 ? null : paywallColor12, (i6 & 4096) != 0 ? null : paywallColor13, (i6 & 8192) != 0 ? null : paywallColor14, (i6 & 16384) != 0 ? null : paywallColor15);
            }
        }

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

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

            private Companion() {
            }
        }

        public static final class Images {
            public static final Companion Companion = new Companion(null);
            private final String background;
            private final String header;
            private final String icon;

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

                public final a serializer() {
                    return PaywallData$Configuration$Images$$serializer.INSTANCE;
                }

                private Companion() {
                }
            }

            public Images() {
                this((String) null, (String) null, (String) null, 7, (h) null);
            }

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

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

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

            public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(Images images, b bVar, g gVar) {
                if (bVar.g(gVar) || images.header != null) {
                    bVar.E(gVar, 0, EmptyStringToNullSerializer.INSTANCE, images.header);
                }
                if (bVar.g(gVar) || images.background != null) {
                    bVar.E(gVar, 1, EmptyStringToNullSerializer.INSTANCE, images.background);
                }
                if (!bVar.g(gVar) && images.icon == null) {
                    return;
                }
                bVar.E(gVar, 2, EmptyStringToNullSerializer.INSTANCE, images.icon);
            }

            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
                if (!(obj instanceof Images)) {
                    return false;
                }
                Images images = (Images) obj;
                return o.c(this.header, images.header) && o.c(this.background, images.background) && o.c(this.icon, images.icon);
            }

            public final List<String> getAll$purchases_defaultsBc8Release() {
                return AbstractC3250p.K(new String[]{this.header, this.background, this.icon});
            }

            public final String getBackground() {
                return this.background;
            }

            public final String getHeader() {
                return this.header;
            }

            public final String getIcon() {
                return this.icon;
            }

            public int hashCode() {
                String str = this.header;
                int iHashCode = (str == null ? 0 : str.hashCode()) * 31;
                String str2 = this.background;
                int iHashCode2 = (iHashCode + (str2 == null ? 0 : str2.hashCode())) * 31;
                String str3 = this.icon;
                return iHashCode2 + (str3 != null ? str3.hashCode() : 0);
            }

            public String toString() {
                StringBuilder sb = new StringBuilder("Images(header=");
                sb.append(this.header);
                sb.append(", background=");
                sb.append(this.background);
                sb.append(", icon=");
                return Z0.o.r(sb, this.icon, ')');
            }

            @InterfaceC3141c
            public /* synthetic */ Images(int i6, String str, String str2, String str3, a0 a0Var) {
                if ((i6 & 1) == 0) {
                    this.header = null;
                } else {
                    this.header = str;
                }
                if ((i6 & 2) == 0) {
                    this.background = null;
                } else {
                    this.background = str2;
                }
                if ((i6 & 4) == 0) {
                    this.icon = null;
                } else {
                    this.icon = str3;
                }
            }

            public Images(String str, String str2, String str3) {
                this.header = str;
                this.background = str2;
                this.icon = str3;
            }

            public /* synthetic */ Images(String str, String str2, String str3, int i6, h hVar) {
                this((i6 & 1) != 0 ? null : str, (i6 & 2) != 0 ? null : str2, (i6 & 4) != 0 ? null : str3);
            }
        }

        public static final class Tier {
            private final String defaultPackageId;
            private final String id;
            private final List<String> packageIds;
            public static final Companion Companion = new Companion(null);
            private static final a[] $childSerializers = {null, new C2416d(e0.f20048a), null};

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

                public final a serializer() {
                    return PaywallData$Configuration$Tier$$serializer.INSTANCE;
                }

                private Companion() {
                }
            }

            @InterfaceC3141c
            public /* synthetic */ Tier(int i6, String str, List list, String str2, a0 a0Var) {
                if (7 != (i6 & 7)) {
                    P.h(i6, 7, PaywallData$Configuration$Tier$$serializer.INSTANCE.getDescriptor());
                    throw null;
                }
                this.id = str;
                this.packageIds = list;
                this.defaultPackageId = str2;
            }

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

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

            public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(Tier tier, b bVar, g gVar) {
                a[] aVarArr = $childSerializers;
                bVar.A(gVar, 0, tier.id);
                bVar.z(gVar, 1, aVarArr[1], tier.packageIds);
                bVar.A(gVar, 2, tier.defaultPackageId);
            }

            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
                if (!(obj instanceof Tier)) {
                    return false;
                }
                Tier tier = (Tier) obj;
                return o.c(this.id, tier.id) && o.c(this.packageIds, tier.packageIds) && o.c(this.defaultPackageId, tier.defaultPackageId);
            }

            public final String getDefaultPackageId() {
                return this.defaultPackageId;
            }

            public final String getId() {
                return this.id;
            }

            public final List<String> getPackageIds() {
                return this.packageIds;
            }

            public int hashCode() {
                return this.defaultPackageId.hashCode() + AbstractC2761L.c(this.packageIds, this.id.hashCode() * 31, 31);
            }

            public String toString() {
                StringBuilder sb = new StringBuilder("Tier(id=");
                sb.append(this.id);
                sb.append(", packageIds=");
                sb.append(this.packageIds);
                sb.append(", defaultPackageId=");
                return Z0.o.r(sb, this.defaultPackageId, ')');
            }

            public Tier(String id, List<String> packageIds, String defaultPackageId) {
                o.h(id, "id");
                o.h(packageIds, "packageIds");
                o.h(defaultPackageId, "defaultPackageId");
                this.id = id;
                this.packageIds = packageIds;
                this.defaultPackageId = defaultPackageId;
            }
        }

        static {
            e0 e0Var = e0.f20048a;
            $childSerializers = new a[]{new C2416d(e0Var), null, null, null, new H(e0Var, PaywallData$Configuration$Images$$serializer.INSTANCE), null, null, null, null, null, new H(e0Var, PaywallData$Configuration$ColorInformation$$serializer.INSTANCE), new C2416d(PaywallData$Configuration$Tier$$serializer.INSTANCE), null};
        }

        @InterfaceC3141c
        public /* synthetic */ Configuration(int i6, List list, String str, Images images, Images images2, Map map, boolean z6, boolean z7, URL url, URL url2, ColorInformation colorInformation, Map map2, List list2, String str2, a0 a0Var) {
            if (512 != (i6 & 512)) {
                P.h(i6, 512, PaywallData$Configuration$$serializer.INSTANCE.getDescriptor());
                throw null;
            }
            this.packageIds = (i6 & 1) == 0 ? y.f26065a : list;
            if ((i6 & 2) == 0) {
                this.defaultPackage = null;
            } else {
                this.defaultPackage = str;
            }
            if ((i6 & 4) == 0) {
                this.imagesWebp = null;
            } else {
                this.imagesWebp = images;
            }
            if ((i6 & 8) == 0) {
                this.legacyImages = null;
            } else {
                this.legacyImages = images2;
            }
            if ((i6 & 16) == 0) {
                this.imagesByTier = null;
            } else {
                this.imagesByTier = map;
            }
            if ((i6 & 32) == 0) {
                this.blurredBackgroundImage = false;
            } else {
                this.blurredBackgroundImage = z6;
            }
            if ((i6 & 64) == 0) {
                this.displayRestorePurchases = true;
            } else {
                this.displayRestorePurchases = z7;
            }
            if ((i6 & 128) == 0) {
                this.termsOfServiceURL = null;
            } else {
                this.termsOfServiceURL = url;
            }
            if ((i6 & 256) == 0) {
                this.privacyURL = null;
            } else {
                this.privacyURL = url2;
            }
            this.colors = colorInformation;
            if ((i6 & 1024) == 0) {
                this.colorsByTier = null;
            } else {
                this.colorsByTier = map2;
            }
            if ((i6 & 2048) == 0) {
                this.tiers = null;
            } else {
                this.tiers = list2;
            }
            if ((i6 & 4096) == 0) {
                this.defaultTier = null;
            } else {
                this.defaultTier = str2;
            }
        }

        /* JADX WARN: Multi-variable type inference failed */
        public static /* synthetic */ Configuration copy$default(Configuration configuration, List list, String str, Images images, Images images2, Map map, boolean z6, boolean z7, URL url, URL url2, ColorInformation colorInformation, Map map2, List list2, String str2, int i6, Object obj) {
            if ((i6 & 1) != 0) {
                list = configuration.packageIds;
            }
            return configuration.copy(list, (i6 & 2) != 0 ? configuration.defaultPackage : str, (i6 & 4) != 0 ? configuration.imagesWebp : images, (i6 & 8) != 0 ? configuration.legacyImages : images2, (i6 & 16) != 0 ? configuration.imagesByTier : map, (i6 & 32) != 0 ? configuration.blurredBackgroundImage : z6, (i6 & 64) != 0 ? configuration.displayRestorePurchases : z7, (i6 & 128) != 0 ? configuration.termsOfServiceURL : url, (i6 & 256) != 0 ? configuration.privacyURL : url2, (i6 & 512) != 0 ? configuration.colors : colorInformation, (i6 & 1024) != 0 ? configuration.colorsByTier : map2, (i6 & 2048) != 0 ? configuration.tiers : list2, (i6 & 4096) != 0 ? configuration.defaultTier : str2);
        }

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

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

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

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

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

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

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

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

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

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

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

        public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(Configuration configuration, b bVar, g gVar) {
            a[] aVarArr = $childSerializers;
            if (bVar.g(gVar) || !o.c(configuration.packageIds, y.f26065a)) {
                bVar.z(gVar, 0, aVarArr[0], configuration.packageIds);
            }
            if (bVar.g(gVar) || configuration.defaultPackage != null) {
                bVar.E(gVar, 1, e0.f20048a, configuration.defaultPackage);
            }
            if (bVar.g(gVar) || configuration.imagesWebp != null) {
                bVar.E(gVar, 2, PaywallData$Configuration$Images$$serializer.INSTANCE, configuration.imagesWebp);
            }
            if (bVar.g(gVar) || configuration.legacyImages != null) {
                bVar.E(gVar, 3, PaywallData$Configuration$Images$$serializer.INSTANCE, configuration.legacyImages);
            }
            if (bVar.g(gVar) || configuration.imagesByTier != null) {
                bVar.E(gVar, 4, aVarArr[4], configuration.imagesByTier);
            }
            if (bVar.g(gVar) || configuration.blurredBackgroundImage) {
                bVar.v(gVar, 5, configuration.blurredBackgroundImage);
            }
            if (bVar.g(gVar) || !configuration.displayRestorePurchases) {
                bVar.v(gVar, 6, configuration.displayRestorePurchases);
            }
            if (bVar.g(gVar) || configuration.termsOfServiceURL != null) {
                bVar.E(gVar, 7, OptionalURLSerializer.INSTANCE, configuration.termsOfServiceURL);
            }
            if (bVar.g(gVar) || configuration.privacyURL != null) {
                bVar.E(gVar, 8, OptionalURLSerializer.INSTANCE, configuration.privacyURL);
            }
            bVar.z(gVar, 9, PaywallData$Configuration$ColorInformation$$serializer.INSTANCE, configuration.colors);
            if (bVar.g(gVar) || configuration.colorsByTier != null) {
                bVar.E(gVar, 10, aVarArr[10], configuration.colorsByTier);
            }
            if (bVar.g(gVar) || configuration.tiers != null) {
                bVar.E(gVar, 11, aVarArr[11], configuration.tiers);
            }
            if (!bVar.g(gVar) && configuration.defaultTier == null) {
                return;
            }
            bVar.E(gVar, 12, e0.f20048a, configuration.defaultTier);
        }

        @InternalRevenueCatAPI
        public final Configuration copy(List<String> packageIds, String str, Images images, Images images2, Map<String, Images> map, boolean z6, boolean z7, URL url, URL url2, ColorInformation colors, Map<String, ColorInformation> map2, List<Tier> list, String str2) {
            o.h(packageIds, "packageIds");
            o.h(colors, "colors");
            return new Configuration(packageIds, str, images, images2, map, z6, z7, url, url2, colors, map2, list, str2);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof Configuration)) {
                return false;
            }
            Configuration configuration = (Configuration) obj;
            return o.c(this.packageIds, configuration.packageIds) && o.c(this.defaultPackage, configuration.defaultPackage) && o.c(this.imagesWebp, configuration.imagesWebp) && o.c(this.legacyImages, configuration.legacyImages) && o.c(this.imagesByTier, configuration.imagesByTier) && this.blurredBackgroundImage == configuration.blurredBackgroundImage && this.displayRestorePurchases == configuration.displayRestorePurchases && o.c(this.termsOfServiceURL, configuration.termsOfServiceURL) && o.c(this.privacyURL, configuration.privacyURL) && o.c(this.colors, configuration.colors) && o.c(this.colorsByTier, configuration.colorsByTier) && o.c(this.tiers, configuration.tiers) && o.c(this.defaultTier, configuration.defaultTier);
        }

        public final boolean getBlurredBackgroundImage() {
            return this.blurredBackgroundImage;
        }

        public final ColorInformation getColors() {
            return this.colors;
        }

        public final Map<String, ColorInformation> getColorsByTier() {
            return this.colorsByTier;
        }

        public final String getDefaultPackage() {
            return this.defaultPackage;
        }

        public final String getDefaultTier() {
            return this.defaultTier;
        }

        public final boolean getDisplayRestorePurchases() {
            return this.displayRestorePurchases;
        }

        public final Images getImages() {
            String header;
            String background;
            String icon;
            Images images = this.imagesWebp;
            String icon2 = null;
            if (images == null || (header = images.getHeader()) == null) {
                Images images2 = this.legacyImages;
                header = images2 != null ? images2.getHeader() : null;
            }
            Images images3 = this.imagesWebp;
            if (images3 == null || (background = images3.getBackground()) == null) {
                Images images4 = this.legacyImages;
                background = images4 != null ? images4.getBackground() : null;
            }
            Images images5 = this.imagesWebp;
            if (images5 == null || (icon = images5.getIcon()) == null) {
                Images images6 = this.legacyImages;
                if (images6 != null) {
                    icon2 = images6.getIcon();
                }
            } else {
                icon2 = icon;
            }
            return new Images(header, background, icon2);
        }

        public final Map<String, Images> getImagesByTier() {
            return this.imagesByTier;
        }

        public final Images getImagesWebp$purchases_defaultsBc8Release() {
            return this.imagesWebp;
        }

        public final Images getLegacyImages$purchases_defaultsBc8Release() {
            return this.legacyImages;
        }

        public final List<String> getPackageIds() {
            return this.packageIds;
        }

        public final URL getPrivacyURL() {
            return this.privacyURL;
        }

        public final URL getTermsOfServiceURL() {
            return this.termsOfServiceURL;
        }

        public final List<Tier> getTiers() {
            return this.tiers;
        }

        public int hashCode() {
            int iHashCode = this.packageIds.hashCode() * 31;
            String str = this.defaultPackage;
            int iHashCode2 = (iHashCode + (str == null ? 0 : str.hashCode())) * 31;
            Images images = this.imagesWebp;
            int iHashCode3 = (iHashCode2 + (images == null ? 0 : images.hashCode())) * 31;
            Images images2 = this.legacyImages;
            int iHashCode4 = (iHashCode3 + (images2 == null ? 0 : images2.hashCode())) * 31;
            Map<String, Images> map = this.imagesByTier;
            int iF = com.google.android.recaptcha.internal.a.f(com.google.android.recaptcha.internal.a.f((iHashCode4 + (map == null ? 0 : map.hashCode())) * 31, 31, this.blurredBackgroundImage), 31, this.displayRestorePurchases);
            URL url = this.termsOfServiceURL;
            int iHashCode5 = (iF + (url == null ? 0 : url.hashCode())) * 31;
            URL url2 = this.privacyURL;
            int iHashCode6 = (this.colors.hashCode() + ((iHashCode5 + (url2 == null ? 0 : url2.hashCode())) * 31)) * 31;
            Map<String, ColorInformation> map2 = this.colorsByTier;
            int iHashCode7 = (iHashCode6 + (map2 == null ? 0 : map2.hashCode())) * 31;
            List<Tier> list = this.tiers;
            int iHashCode8 = (iHashCode7 + (list == null ? 0 : list.hashCode())) * 31;
            String str2 = this.defaultTier;
            return iHashCode8 + (str2 != null ? str2.hashCode() : 0);
        }

        public String toString() {
            StringBuilder sb = new StringBuilder("Configuration(packageIds=");
            sb.append(this.packageIds);
            sb.append(", defaultPackage=");
            sb.append(this.defaultPackage);
            sb.append(", imagesWebp=");
            sb.append(this.imagesWebp);
            sb.append(", legacyImages=");
            sb.append(this.legacyImages);
            sb.append(", imagesByTier=");
            sb.append(this.imagesByTier);
            sb.append(", blurredBackgroundImage=");
            sb.append(this.blurredBackgroundImage);
            sb.append(", displayRestorePurchases=");
            sb.append(this.displayRestorePurchases);
            sb.append(", termsOfServiceURL=");
            sb.append(this.termsOfServiceURL);
            sb.append(", privacyURL=");
            sb.append(this.privacyURL);
            sb.append(", colors=");
            sb.append(this.colors);
            sb.append(", colorsByTier=");
            sb.append(this.colorsByTier);
            sb.append(", tiers=");
            sb.append(this.tiers);
            sb.append(", defaultTier=");
            return Z0.o.r(sb, this.defaultTier, ')');
        }

        public Configuration(List<String> packageIds, String str, Images images, Images images2, Map<String, Images> map, boolean z6, boolean z7, URL url, URL url2, ColorInformation colors, Map<String, ColorInformation> map2, List<Tier> list, String str2) {
            o.h(packageIds, "packageIds");
            o.h(colors, "colors");
            this.packageIds = packageIds;
            this.defaultPackage = str;
            this.imagesWebp = images;
            this.legacyImages = images2;
            this.imagesByTier = map;
            this.blurredBackgroundImage = z6;
            this.displayRestorePurchases = z7;
            this.termsOfServiceURL = url;
            this.privacyURL = url2;
            this.colors = colors;
            this.colorsByTier = map2;
            this.tiers = list;
            this.defaultTier = str2;
        }

        /*  JADX ERROR: NullPointerException in pass: InitCodeVariables
            java.lang.NullPointerException: Cannot invoke "jadx.core.dex.instructions.args.SSAVar.getPhiList()" because "resultVar" is null
            	at jadx.core.dex.visitors.InitCodeVariables.collectConnectedVars(InitCodeVariables.java:119)
            	at jadx.core.dex.visitors.InitCodeVariables.setCodeVar(InitCodeVariables.java:82)
            	at jadx.core.dex.visitors.InitCodeVariables.initCodeVar(InitCodeVariables.java:74)
            	at jadx.core.dex.visitors.InitCodeVariables.initCodeVars(InitCodeVariables.java:48)
            	at jadx.core.dex.visitors.InitCodeVariables.visit(InitCodeVariables.java:29)
            */
        public /* synthetic */ Configuration(java.util.List r17, java.lang.String r18, com.revenuecat.purchases.paywalls.PaywallData.Configuration.Images r19, com.revenuecat.purchases.paywalls.PaywallData.Configuration.Images r20, java.util.Map r21, boolean r22, boolean r23, java.net.URL r24, java.net.URL r25, com.revenuecat.purchases.paywalls.PaywallData.Configuration.ColorInformation r26, java.util.Map r27, java.util.List r28, java.lang.String r29, int r30, kotlin.jvm.internal.h r31) {
            /*
                r16 = this;
                r0 = r30
                r1 = r0 & 1
                if (r1 == 0) goto La
                x4.y r1 = x4.y.f26065a
                r3 = r1
                goto Lc
            La:
                r3 = r17
            Lc:
                r1 = r0 & 2
                r2 = 0
                if (r1 == 0) goto L13
                r4 = r2
                goto L15
            L13:
                r4 = r18
            L15:
                r1 = r0 & 4
                if (r1 == 0) goto L1b
                r5 = r2
                goto L1d
            L1b:
                r5 = r19
            L1d:
                r1 = r0 & 8
                if (r1 == 0) goto L23
                r6 = r2
                goto L25
            L23:
                r6 = r20
            L25:
                r1 = r0 & 16
                if (r1 == 0) goto L2b
                r7 = r2
                goto L2d
            L2b:
                r7 = r21
            L2d:
                r1 = r0 & 32
                if (r1 == 0) goto L34
                r1 = 0
                r8 = r1
                goto L36
            L34:
                r8 = r22
            L36:
                r1 = r0 & 64
                if (r1 == 0) goto L3d
                r1 = 1
                r9 = r1
                goto L3f
            L3d:
                r9 = r23
            L3f:
                r1 = r0 & 128(0x80, float:1.8E-43)
                if (r1 == 0) goto L45
                r10 = r2
                goto L47
            L45:
                r10 = r24
            L47:
                r1 = r0 & 256(0x100, float:3.59E-43)
                if (r1 == 0) goto L4d
                r11 = r2
                goto L4f
            L4d:
                r11 = r25
            L4f:
                r1 = r0 & 1024(0x400, float:1.435E-42)
                if (r1 == 0) goto L55
                r13 = r2
                goto L57
            L55:
                r13 = r27
            L57:
                r1 = r0 & 2048(0x800, float:2.87E-42)
                if (r1 == 0) goto L5d
                r14 = r2
                goto L5f
            L5d:
                r14 = r28
            L5f:
                r0 = r0 & 4096(0x1000, float:5.74E-42)
                if (r0 == 0) goto L69
                r15 = r2
                r12 = r26
                r2 = r16
                goto L6f
            L69:
                r15 = r29
                r2 = r16
                r12 = r26
            L6f:
                r2.<init>(r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15)
                return
            */
            throw new UnsupportedOperationException("Method not decompiled: com.revenuecat.purchases.paywalls.PaywallData.Configuration.<init>(java.util.List, java.lang.String, com.revenuecat.purchases.paywalls.PaywallData$Configuration$Images, com.revenuecat.purchases.paywalls.PaywallData$Configuration$Images, java.util.Map, boolean, boolean, java.net.URL, java.net.URL, com.revenuecat.purchases.paywalls.PaywallData$Configuration$ColorInformation, java.util.Map, java.util.List, java.lang.String, int, kotlin.jvm.internal.h):void");
        }

        public /* synthetic */ Configuration(List list, String str, Images images, Map map, ColorInformation colorInformation, Map map2, List list2, boolean z6, boolean z7, URL url, URL url2, int i6, h hVar) {
            this(list, (i6 & 2) != 0 ? null : str, images, (i6 & 8) != 0 ? null : map, colorInformation, (i6 & 32) != 0 ? null : map2, (i6 & 64) != 0 ? null : list2, (i6 & 128) != 0 ? false : z6, (i6 & 256) != 0 ? true : z7, (i6 & 512) != 0 ? null : url, (i6 & 1024) != 0 ? null : url2);
        }

        /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
        public Configuration(List<String> packageIds, String str, Images images, Map<String, Images> map, ColorInformation colors, Map<String, ColorInformation> map2, List<Tier> list, boolean z6, boolean z7, URL url, URL url2) {
            this(packageIds, str, images, (Images) null, map, z6, z7, url, url2, colors, map2, list, (String) null, 4104, (h) null);
            o.h(packageIds, "packageIds");
            o.h(images, "images");
            o.h(colors, "colors");
        }
    }

    public static final class LocalizedConfiguration {
        private final String callToAction;
        private final String callToActionWithIntroOffer;
        private final String callToActionWithMultipleIntroOffers;
        private final List<Feature> features;
        private final String offerDetails;
        private final String offerDetailsWithIntroOffer;
        private final String offerDetailsWithMultipleIntroOffers;
        private final String offerName;
        private final Map<String, OfferOverride> offerOverrides;
        private final String subtitle;
        private final String tierName;
        private final String title;
        public static final Companion Companion = new Companion(null);
        private static final a[] $childSerializers = {null, null, null, null, null, null, null, null, null, new C2416d(PaywallData$LocalizedConfiguration$Feature$$serializer.INSTANCE), null, new H(e0.f20048a, PaywallData$LocalizedConfiguration$OfferOverride$$serializer.INSTANCE)};

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

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

            private Companion() {
            }
        }

        public static final class Feature {
            public static final Companion Companion = new Companion(null);
            private final String content;
            private final String iconID;
            private final String title;

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

                public final a serializer() {
                    return PaywallData$LocalizedConfiguration$Feature$$serializer.INSTANCE;
                }

                private Companion() {
                }
            }

            @InterfaceC3141c
            public /* synthetic */ Feature(int i6, String str, String str2, String str3, a0 a0Var) {
                if (1 != (i6 & 1)) {
                    P.h(i6, 1, PaywallData$LocalizedConfiguration$Feature$$serializer.INSTANCE.getDescriptor());
                    throw null;
                }
                this.title = str;
                if ((i6 & 2) == 0) {
                    this.content = null;
                } else {
                    this.content = str2;
                }
                if ((i6 & 4) == 0) {
                    this.iconID = null;
                } else {
                    this.iconID = str3;
                }
            }

            public static /* synthetic */ Feature copy$default(Feature feature, String str, String str2, String str3, int i6, Object obj) {
                if ((i6 & 1) != 0) {
                    str = feature.title;
                }
                if ((i6 & 2) != 0) {
                    str2 = feature.content;
                }
                if ((i6 & 4) != 0) {
                    str3 = feature.iconID;
                }
                return feature.copy(str, str2, str3);
            }

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

            public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(Feature feature, b bVar, g gVar) {
                bVar.A(gVar, 0, feature.title);
                if (bVar.g(gVar) || feature.content != null) {
                    bVar.E(gVar, 1, e0.f20048a, feature.content);
                }
                if (!bVar.g(gVar) && feature.iconID == null) {
                    return;
                }
                bVar.E(gVar, 2, e0.f20048a, feature.iconID);
            }

            @InternalRevenueCatAPI
            public final /* synthetic */ Feature copy(String title, String str, String str2) {
                o.h(title, "title");
                return new Feature(title, str, str2);
            }

            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
                if (!(obj instanceof Feature)) {
                    return false;
                }
                Feature feature = (Feature) obj;
                return o.c(this.title, feature.title) && o.c(this.content, feature.content) && o.c(this.iconID, feature.iconID);
            }

            public final String getContent() {
                return this.content;
            }

            public final String getIconID() {
                return this.iconID;
            }

            public final String getTitle() {
                return this.title;
            }

            public int hashCode() {
                int iHashCode = this.title.hashCode() * 31;
                String str = this.content;
                int iHashCode2 = (iHashCode + (str == null ? 0 : str.hashCode())) * 31;
                String str2 = this.iconID;
                return iHashCode2 + (str2 != null ? str2.hashCode() : 0);
            }

            public String toString() {
                StringBuilder sb = new StringBuilder("Feature(title=");
                sb.append(this.title);
                sb.append(", content=");
                sb.append(this.content);
                sb.append(", iconID=");
                return Z0.o.r(sb, this.iconID, ')');
            }

            public Feature(String title, String str, String str2) {
                o.h(title, "title");
                this.title = title;
                this.content = str;
                this.iconID = str2;
            }

            public /* synthetic */ Feature(String str, String str2, String str3, int i6, h hVar) {
                this(str, (i6 & 2) != 0 ? null : str2, (i6 & 4) != 0 ? null : str3);
            }
        }

        public static final class OfferOverride {
            public static final Companion Companion = new Companion(null);
            private final String offerBadge;
            private final String offerDetails;
            private final String offerDetailsWithIntroOffer;
            private final String offerDetailsWithMultipleIntroOffers;
            private final String offerName;

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

                public final a serializer() {
                    return PaywallData$LocalizedConfiguration$OfferOverride$$serializer.INSTANCE;
                }

                private Companion() {
                }
            }

            @InterfaceC3141c
            public /* synthetic */ OfferOverride(int i6, String str, String str2, String str3, String str4, String str5, a0 a0Var) {
                if (3 != (i6 & 3)) {
                    P.h(i6, 3, PaywallData$LocalizedConfiguration$OfferOverride$$serializer.INSTANCE.getDescriptor());
                    throw null;
                }
                this.offerName = str;
                this.offerDetails = str2;
                if ((i6 & 4) == 0) {
                    this.offerDetailsWithIntroOffer = null;
                } else {
                    this.offerDetailsWithIntroOffer = str3;
                }
                if ((i6 & 8) == 0) {
                    this.offerDetailsWithMultipleIntroOffers = null;
                } else {
                    this.offerDetailsWithMultipleIntroOffers = str4;
                }
                if ((i6 & 16) == 0) {
                    this.offerBadge = null;
                } else {
                    this.offerBadge = str5;
                }
            }

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

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

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

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

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

            public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(OfferOverride offerOverride, b bVar, g gVar) {
                bVar.A(gVar, 0, offerOverride.offerName);
                bVar.A(gVar, 1, offerOverride.offerDetails);
                if (bVar.g(gVar) || offerOverride.offerDetailsWithIntroOffer != null) {
                    bVar.E(gVar, 2, EmptyStringToNullSerializer.INSTANCE, offerOverride.offerDetailsWithIntroOffer);
                }
                if (bVar.g(gVar) || offerOverride.offerDetailsWithMultipleIntroOffers != null) {
                    bVar.E(gVar, 3, EmptyStringToNullSerializer.INSTANCE, offerOverride.offerDetailsWithMultipleIntroOffers);
                }
                if (!bVar.g(gVar) && offerOverride.offerBadge == null) {
                    return;
                }
                bVar.E(gVar, 4, EmptyStringToNullSerializer.INSTANCE, offerOverride.offerBadge);
            }

            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
                if (!(obj instanceof OfferOverride)) {
                    return false;
                }
                OfferOverride offerOverride = (OfferOverride) obj;
                return o.c(this.offerName, offerOverride.offerName) && o.c(this.offerDetails, offerOverride.offerDetails) && o.c(this.offerDetailsWithIntroOffer, offerOverride.offerDetailsWithIntroOffer) && o.c(this.offerDetailsWithMultipleIntroOffers, offerOverride.offerDetailsWithMultipleIntroOffers) && o.c(this.offerBadge, offerOverride.offerBadge);
            }

            public final String getOfferBadge() {
                return this.offerBadge;
            }

            public final String getOfferDetails() {
                return this.offerDetails;
            }

            public final String getOfferDetailsWithIntroOffer() {
                return this.offerDetailsWithIntroOffer;
            }

            public final String getOfferDetailsWithMultipleIntroOffers() {
                return this.offerDetailsWithMultipleIntroOffers;
            }

            public final String getOfferName() {
                return this.offerName;
            }

            public int hashCode() {
                int iB = AbstractC2761L.b(this.offerName.hashCode() * 31, 31, this.offerDetails);
                String str = this.offerDetailsWithIntroOffer;
                int iHashCode = (iB + (str == null ? 0 : str.hashCode())) * 31;
                String str2 = this.offerDetailsWithMultipleIntroOffers;
                int iHashCode2 = (iHashCode + (str2 == null ? 0 : str2.hashCode())) * 31;
                String str3 = this.offerBadge;
                return iHashCode2 + (str3 != null ? str3.hashCode() : 0);
            }

            public String toString() {
                StringBuilder sb = new StringBuilder("OfferOverride(offerName=");
                sb.append(this.offerName);
                sb.append(", offerDetails=");
                sb.append(this.offerDetails);
                sb.append(", offerDetailsWithIntroOffer=");
                sb.append(this.offerDetailsWithIntroOffer);
                sb.append(", offerDetailsWithMultipleIntroOffers=");
                sb.append(this.offerDetailsWithMultipleIntroOffers);
                sb.append(", offerBadge=");
                return Z0.o.r(sb, this.offerBadge, ')');
            }

            public OfferOverride(String offerName, String offerDetails, String str, String str2, String str3) {
                o.h(offerName, "offerName");
                o.h(offerDetails, "offerDetails");
                this.offerName = offerName;
                this.offerDetails = offerDetails;
                this.offerDetailsWithIntroOffer = str;
                this.offerDetailsWithMultipleIntroOffers = str2;
                this.offerBadge = str3;
            }

            public /* synthetic */ OfferOverride(String str, String str2, String str3, String str4, String str5, int i6, h hVar) {
                this(str, str2, (i6 & 4) != 0 ? null : str3, (i6 & 8) != 0 ? null : str4, (i6 & 16) != 0 ? null : str5);
            }
        }

        @InterfaceC3141c
        public /* synthetic */ LocalizedConfiguration(int i6, String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, List list, String str10, Map map, a0 a0Var) {
            if (5 != (i6 & 5)) {
                P.h(i6, 5, PaywallData$LocalizedConfiguration$$serializer.INSTANCE.getDescriptor());
                throw null;
            }
            this.title = str;
            if ((i6 & 2) == 0) {
                this.subtitle = null;
            } else {
                this.subtitle = str2;
            }
            this.callToAction = str3;
            if ((i6 & 8) == 0) {
                this.callToActionWithIntroOffer = null;
            } else {
                this.callToActionWithIntroOffer = str4;
            }
            if ((i6 & 16) == 0) {
                this.callToActionWithMultipleIntroOffers = null;
            } else {
                this.callToActionWithMultipleIntroOffers = str5;
            }
            if ((i6 & 32) == 0) {
                this.offerDetails = null;
            } else {
                this.offerDetails = str6;
            }
            if ((i6 & 64) == 0) {
                this.offerDetailsWithIntroOffer = null;
            } else {
                this.offerDetailsWithIntroOffer = str7;
            }
            if ((i6 & 128) == 0) {
                this.offerDetailsWithMultipleIntroOffers = null;
            } else {
                this.offerDetailsWithMultipleIntroOffers = str8;
            }
            if ((i6 & 256) == 0) {
                this.offerName = null;
            } else {
                this.offerName = str9;
            }
            if ((i6 & 512) == 0) {
                this.features = y.f26065a;
            } else {
                this.features = list;
            }
            if ((i6 & 1024) == 0) {
                this.tierName = null;
            } else {
                this.tierName = str10;
            }
            this.offerOverrides = (i6 & 2048) == 0 ? z.f26066a : map;
        }

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

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

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

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

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

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

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

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

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

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

        public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(LocalizedConfiguration localizedConfiguration, b bVar, g gVar) {
            a[] aVarArr = $childSerializers;
            bVar.A(gVar, 0, localizedConfiguration.title);
            if (bVar.g(gVar) || localizedConfiguration.subtitle != null) {
                bVar.E(gVar, 1, EmptyStringToNullSerializer.INSTANCE, localizedConfiguration.subtitle);
            }
            bVar.A(gVar, 2, localizedConfiguration.callToAction);
            if (bVar.g(gVar) || localizedConfiguration.callToActionWithIntroOffer != null) {
                bVar.E(gVar, 3, EmptyStringToNullSerializer.INSTANCE, localizedConfiguration.callToActionWithIntroOffer);
            }
            if (bVar.g(gVar) || localizedConfiguration.callToActionWithMultipleIntroOffers != null) {
                bVar.E(gVar, 4, EmptyStringToNullSerializer.INSTANCE, localizedConfiguration.callToActionWithMultipleIntroOffers);
            }
            if (bVar.g(gVar) || localizedConfiguration.offerDetails != null) {
                bVar.E(gVar, 5, EmptyStringToNullSerializer.INSTANCE, localizedConfiguration.offerDetails);
            }
            if (bVar.g(gVar) || localizedConfiguration.offerDetailsWithIntroOffer != null) {
                bVar.E(gVar, 6, EmptyStringToNullSerializer.INSTANCE, localizedConfiguration.offerDetailsWithIntroOffer);
            }
            if (bVar.g(gVar) || localizedConfiguration.offerDetailsWithMultipleIntroOffers != null) {
                bVar.E(gVar, 7, EmptyStringToNullSerializer.INSTANCE, localizedConfiguration.offerDetailsWithMultipleIntroOffers);
            }
            if (bVar.g(gVar) || localizedConfiguration.offerName != null) {
                bVar.E(gVar, 8, EmptyStringToNullSerializer.INSTANCE, localizedConfiguration.offerName);
            }
            if (bVar.g(gVar) || !o.c(localizedConfiguration.features, y.f26065a)) {
                bVar.z(gVar, 9, aVarArr[9], localizedConfiguration.features);
            }
            if (bVar.g(gVar) || localizedConfiguration.tierName != null) {
                bVar.E(gVar, 10, EmptyStringToNullSerializer.INSTANCE, localizedConfiguration.tierName);
            }
            if (!bVar.g(gVar) && o.c(localizedConfiguration.offerOverrides, z.f26066a)) {
                return;
            }
            bVar.z(gVar, 11, aVarArr[11], localizedConfiguration.offerOverrides);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof LocalizedConfiguration)) {
                return false;
            }
            LocalizedConfiguration localizedConfiguration = (LocalizedConfiguration) obj;
            return o.c(this.title, localizedConfiguration.title) && o.c(this.subtitle, localizedConfiguration.subtitle) && o.c(this.callToAction, localizedConfiguration.callToAction) && o.c(this.callToActionWithIntroOffer, localizedConfiguration.callToActionWithIntroOffer) && o.c(this.callToActionWithMultipleIntroOffers, localizedConfiguration.callToActionWithMultipleIntroOffers) && o.c(this.offerDetails, localizedConfiguration.offerDetails) && o.c(this.offerDetailsWithIntroOffer, localizedConfiguration.offerDetailsWithIntroOffer) && o.c(this.offerDetailsWithMultipleIntroOffers, localizedConfiguration.offerDetailsWithMultipleIntroOffers) && o.c(this.offerName, localizedConfiguration.offerName) && o.c(this.features, localizedConfiguration.features) && o.c(this.tierName, localizedConfiguration.tierName) && o.c(this.offerOverrides, localizedConfiguration.offerOverrides);
        }

        public final String getCallToAction() {
            return this.callToAction;
        }

        public final String getCallToActionWithIntroOffer() {
            return this.callToActionWithIntroOffer;
        }

        public final String getCallToActionWithMultipleIntroOffers() {
            return this.callToActionWithMultipleIntroOffers;
        }

        public final List<Feature> getFeatures() {
            return this.features;
        }

        public final String getOfferDetails() {
            return this.offerDetails;
        }

        public final String getOfferDetailsWithIntroOffer() {
            return this.offerDetailsWithIntroOffer;
        }

        public final String getOfferDetailsWithMultipleIntroOffers() {
            return this.offerDetailsWithMultipleIntroOffers;
        }

        public final String getOfferName() {
            return this.offerName;
        }

        public final Map<String, OfferOverride> getOfferOverrides() {
            return this.offerOverrides;
        }

        public final String getSubtitle() {
            return this.subtitle;
        }

        public final String getTierName() {
            return this.tierName;
        }

        public final String getTitle() {
            return this.title;
        }

        public int hashCode() {
            int iHashCode = this.title.hashCode() * 31;
            String str = this.subtitle;
            int iB = AbstractC2761L.b((iHashCode + (str == null ? 0 : str.hashCode())) * 31, 31, this.callToAction);
            String str2 = this.callToActionWithIntroOffer;
            int iHashCode2 = (iB + (str2 == null ? 0 : str2.hashCode())) * 31;
            String str3 = this.callToActionWithMultipleIntroOffers;
            int iHashCode3 = (iHashCode2 + (str3 == null ? 0 : str3.hashCode())) * 31;
            String str4 = this.offerDetails;
            int iHashCode4 = (iHashCode3 + (str4 == null ? 0 : str4.hashCode())) * 31;
            String str5 = this.offerDetailsWithIntroOffer;
            int iHashCode5 = (iHashCode4 + (str5 == null ? 0 : str5.hashCode())) * 31;
            String str6 = this.offerDetailsWithMultipleIntroOffers;
            int iHashCode6 = (iHashCode5 + (str6 == null ? 0 : str6.hashCode())) * 31;
            String str7 = this.offerName;
            int iC = AbstractC2761L.c(this.features, (iHashCode6 + (str7 == null ? 0 : str7.hashCode())) * 31, 31);
            String str8 = this.tierName;
            return this.offerOverrides.hashCode() + ((iC + (str8 != null ? str8.hashCode() : 0)) * 31);
        }

        public String toString() {
            return "LocalizedConfiguration(title=" + this.title + ", subtitle=" + this.subtitle + ", callToAction=" + this.callToAction + ", callToActionWithIntroOffer=" + this.callToActionWithIntroOffer + ", callToActionWithMultipleIntroOffers=" + this.callToActionWithMultipleIntroOffers + ", offerDetails=" + this.offerDetails + ", offerDetailsWithIntroOffer=" + this.offerDetailsWithIntroOffer + ", offerDetailsWithMultipleIntroOffers=" + this.offerDetailsWithMultipleIntroOffers + ", offerName=" + this.offerName + ", features=" + this.features + ", tierName=" + this.tierName + ", offerOverrides=" + this.offerOverrides + ')';
        }

        public LocalizedConfiguration(String title, String str, String callToAction, String str2, String str3, String str4, String str5, String str6, String str7, List<Feature> features, String str8, Map<String, OfferOverride> offerOverrides) {
            o.h(title, "title");
            o.h(callToAction, "callToAction");
            o.h(features, "features");
            o.h(offerOverrides, "offerOverrides");
            this.title = title;
            this.subtitle = str;
            this.callToAction = callToAction;
            this.callToActionWithIntroOffer = str2;
            this.callToActionWithMultipleIntroOffers = str3;
            this.offerDetails = str4;
            this.offerDetailsWithIntroOffer = str5;
            this.offerDetailsWithMultipleIntroOffers = str6;
            this.offerName = str7;
            this.features = features;
            this.tierName = str8;
            this.offerOverrides = offerOverrides;
        }

        public /* synthetic */ LocalizedConfiguration(String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, List list, String str10, Map map, int i6, h hVar) {
            this(str, (i6 & 2) != 0 ? null : str2, str3, (i6 & 8) != 0 ? null : str4, (i6 & 16) != 0 ? null : str5, (i6 & 32) != 0 ? null : str6, (i6 & 64) != 0 ? null : str7, (i6 & 128) != 0 ? null : str8, (i6 & 256) != 0 ? null : str9, (i6 & 512) != 0 ? y.f26065a : list, (i6 & 1024) != 0 ? null : str10, (i6 & 2048) != 0 ? z.f26066a : map);
        }
    }

    /* JADX WARN: Multi-variable type inference failed */
    public PaywallData(String str, String templateName, Configuration config, URL assetBaseURL, int i6, Map<String, LocalizedConfiguration> localization, Map<String, ? extends Map<String, LocalizedConfiguration>> localizationByTier, List<String> zeroDecimalPlaceCountries, String str2) {
        o.h(templateName, "templateName");
        o.h(config, "config");
        o.h(assetBaseURL, "assetBaseURL");
        o.h(localization, "localization");
        o.h(localizationByTier, "localizationByTier");
        o.h(zeroDecimalPlaceCountries, "zeroDecimalPlaceCountries");
        this.id = str;
        this.templateName = templateName;
        this.config = config;
        this.assetBaseURL = assetBaseURL;
        this.revision = i6;
        this.localization = localization;
        this.localizationByTier = localizationByTier;
        this.zeroDecimalPlaceCountries = zeroDecimalPlaceCountries;
        this.defaultLocale = str2;
    }

    public /* synthetic */ PaywallData(String str, String str2, Configuration configuration, URL url, int i6, Map map, Map map2, List list, String str3, int i7, h hVar) {
        this((i7 & 1) != 0 ? null : str, str2, configuration, url, (i7 & 16) != 0 ? 0 : i6, map, (i7 & 64) != 0 ? z.f26066a : map2, (i7 & 128) != 0 ? y.f26065a : list, (i7 & 256) != 0 ? null : str3);
    }
}
