package com.revenuecat.purchases.paywalls;

import W.b;
import com.revenuecat.purchases.paywalls.PaywallData;
import g5.a;
import i5.g;
import j5.c;
import j5.d;
import java.util.List;
import java.util.Map;
import k5.A;
import k5.P;
import k5.S;
import k5.a0;
import k5.e0;
import kotlin.jvm.internal.o;
import w4.InterfaceC3141c;

/* JADX INFO: loaded from: classes3.dex */
@InterfaceC3141c
public final class PaywallData$LocalizedConfiguration$$serializer implements A {
    public static final PaywallData$LocalizedConfiguration$$serializer INSTANCE;
    private static final /* synthetic */ S descriptor;

    static {
        PaywallData$LocalizedConfiguration$$serializer paywallData$LocalizedConfiguration$$serializer = new PaywallData$LocalizedConfiguration$$serializer();
        INSTANCE = paywallData$LocalizedConfiguration$$serializer;
        S s6 = new S("com.revenuecat.purchases.paywalls.PaywallData.LocalizedConfiguration", paywallData$LocalizedConfiguration$$serializer, 12);
        s6.k("title", false);
        s6.k("subtitle", true);
        s6.k("call_to_action", false);
        s6.k("call_to_action_with_intro_offer", true);
        s6.k("call_to_action_with_multiple_intro_offers", true);
        s6.k("offer_details", true);
        s6.k("offer_details_with_intro_offer", true);
        s6.k("offer_details_with_multiple_intro_offers", true);
        s6.k("offer_name", true);
        s6.k("features", true);
        s6.k("tier_name", true);
        s6.k("offer_overrides", true);
        descriptor = s6;
    }

    private PaywallData$LocalizedConfiguration$$serializer() {
    }

    @Override // k5.A
    public a[] childSerializers() {
        a[] aVarArr = PaywallData.LocalizedConfiguration.$childSerializers;
        EmptyStringToNullSerializer emptyStringToNullSerializer = EmptyStringToNullSerializer.INSTANCE;
        a aVarH0 = b.h0(emptyStringToNullSerializer);
        a aVarH02 = b.h0(emptyStringToNullSerializer);
        a aVarH03 = b.h0(emptyStringToNullSerializer);
        a aVarH04 = b.h0(emptyStringToNullSerializer);
        a aVarH05 = b.h0(emptyStringToNullSerializer);
        a aVarH06 = b.h0(emptyStringToNullSerializer);
        a aVarH07 = b.h0(emptyStringToNullSerializer);
        a aVar = aVarArr[9];
        a aVarH08 = b.h0(emptyStringToNullSerializer);
        a aVar2 = aVarArr[11];
        e0 e0Var = e0.f20048a;
        return new a[]{e0Var, aVarH0, e0Var, aVarH02, aVarH03, aVarH04, aVarH05, aVarH06, aVarH07, aVar, aVarH08, aVar2};
    }

    @Override // g5.a
    public PaywallData.LocalizedConfiguration deserialize(c decoder) {
        String str;
        o.h(decoder, "decoder");
        g descriptor2 = getDescriptor();
        j5.a aVarB = decoder.b(descriptor2);
        a[] aVarArr = PaywallData.LocalizedConfiguration.$childSerializers;
        String str2 = null;
        Map map = null;
        List list = null;
        String str3 = null;
        String strC = null;
        String str4 = null;
        String strC2 = null;
        String str5 = null;
        String str6 = null;
        String str7 = null;
        String str8 = null;
        String str9 = null;
        int i6 = 0;
        boolean z6 = true;
        while (z6) {
            a[] aVarArr2 = aVarArr;
            int iK = aVarB.k(descriptor2);
            switch (iK) {
                case -1:
                    z6 = false;
                    aVarArr = aVarArr2;
                    break;
                case 0:
                    i6 |= 1;
                    strC = aVarB.C(descriptor2, 0);
                    aVarArr = aVarArr2;
                    break;
                case 1:
                    str = strC;
                    str4 = (String) aVarB.r(descriptor2, 1, EmptyStringToNullSerializer.INSTANCE, str4);
                    i6 |= 2;
                    aVarArr = aVarArr2;
                    strC = str;
                    break;
                case 2:
                    strC2 = aVarB.C(descriptor2, 2);
                    i6 |= 4;
                    aVarArr = aVarArr2;
                    break;
                case 3:
                    str = strC;
                    str5 = (String) aVarB.r(descriptor2, 3, EmptyStringToNullSerializer.INSTANCE, str5);
                    i6 |= 8;
                    aVarArr = aVarArr2;
                    strC = str;
                    break;
                case 4:
                    str = strC;
                    str6 = (String) aVarB.r(descriptor2, 4, EmptyStringToNullSerializer.INSTANCE, str6);
                    i6 |= 16;
                    aVarArr = aVarArr2;
                    strC = str;
                    break;
                case 5:
                    str = strC;
                    str7 = (String) aVarB.r(descriptor2, 5, EmptyStringToNullSerializer.INSTANCE, str7);
                    i6 |= 32;
                    aVarArr = aVarArr2;
                    strC = str;
                    break;
                case 6:
                    str = strC;
                    str8 = (String) aVarB.r(descriptor2, 6, EmptyStringToNullSerializer.INSTANCE, str8);
                    i6 |= 64;
                    aVarArr = aVarArr2;
                    strC = str;
                    break;
                case 7:
                    str = strC;
                    str9 = (String) aVarB.r(descriptor2, 7, EmptyStringToNullSerializer.INSTANCE, str9);
                    i6 |= 128;
                    aVarArr = aVarArr2;
                    strC = str;
                    break;
                case 8:
                    str = strC;
                    str2 = (String) aVarB.r(descriptor2, 8, EmptyStringToNullSerializer.INSTANCE, str2);
                    i6 |= 256;
                    aVarArr = aVarArr2;
                    strC = str;
                    break;
                case 9:
                    str = strC;
                    list = (List) aVarB.p(descriptor2, 9, aVarArr2[9], list);
                    i6 |= 512;
                    aVarArr = aVarArr2;
                    strC = str;
                    break;
                case 10:
                    str = strC;
                    str3 = (String) aVarB.r(descriptor2, 10, EmptyStringToNullSerializer.INSTANCE, str3);
                    i6 |= 1024;
                    aVarArr = aVarArr2;
                    strC = str;
                    break;
                case 11:
                    str = strC;
                    map = (Map) aVarB.p(descriptor2, 11, aVarArr2[11], map);
                    i6 |= 2048;
                    aVarArr = aVarArr2;
                    strC = str;
                    break;
                default:
                    throw new g5.g(iK);
            }
        }
        aVarB.c(descriptor2);
        return new PaywallData.LocalizedConfiguration(i6, strC, str4, strC2, str5, str6, str7, str8, str9, str2, list, str3, map, (a0) null);
    }

    @Override // g5.a
    public g getDescriptor() {
        return descriptor;
    }

    @Override // g5.a
    public void serialize(d encoder, PaywallData.LocalizedConfiguration value) {
        o.h(encoder, "encoder");
        o.h(value, "value");
        g descriptor2 = getDescriptor();
        j5.b bVarB = encoder.b(descriptor2);
        PaywallData.LocalizedConfiguration.write$Self$purchases_defaultsBc8Release(value, bVarB, descriptor2);
        bVarB.c(descriptor2);
    }

    @Override // k5.A
    public a[] typeParametersSerializers() {
        return P.f20015b;
    }
}
