package com.revenuecat.purchases.customercenter;

import W.b;
import com.google.android.gms.common.Scopes;
import com.revenuecat.purchases.customercenter.CustomerCenterConfigData;
import com.revenuecat.purchases.paywalls.EmptyStringToNullSerializer;
import g5.a;
import i5.g;
import j5.c;
import j5.d;
import k5.A;
import k5.C2419g;
import k5.P;
import k5.S;
import k5.a0;
import kotlin.jvm.internal.o;
import w4.InterfaceC3141c;

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

    static {
        CustomerCenterConfigData$Support$$serializer customerCenterConfigData$Support$$serializer = new CustomerCenterConfigData$Support$$serializer();
        INSTANCE = customerCenterConfigData$Support$$serializer;
        S s6 = new S("com.revenuecat.purchases.customercenter.CustomerCenterConfigData.Support", customerCenterConfigData$Support$$serializer, 4);
        s6.k(Scopes.EMAIL, true);
        s6.k("should_warn_customer_to_update", true);
        s6.k("display_virtual_currencies", true);
        s6.k("support_tickets", true);
        descriptor = s6;
    }

    private CustomerCenterConfigData$Support$$serializer() {
    }

    @Override // k5.A
    public a[] childSerializers() {
        a aVarH0 = b.h0(EmptyStringToNullSerializer.INSTANCE);
        C2419g c2419g = C2419g.f20053a;
        return new a[]{aVarH0, b.h0(c2419g), b.h0(c2419g), CustomerCenterConfigData$Support$SupportTickets$$serializer.INSTANCE};
    }

    @Override // g5.a
    public CustomerCenterConfigData.Support deserialize(c decoder) {
        o.h(decoder, "decoder");
        g descriptor2 = getDescriptor();
        j5.a aVarB = decoder.b(descriptor2);
        int i6 = 0;
        String str = null;
        Boolean bool = null;
        Boolean bool2 = null;
        CustomerCenterConfigData.Support.SupportTickets supportTickets = null;
        boolean z6 = true;
        while (z6) {
            int iK = aVarB.k(descriptor2);
            if (iK == -1) {
                z6 = false;
            } else if (iK == 0) {
                str = (String) aVarB.r(descriptor2, 0, EmptyStringToNullSerializer.INSTANCE, str);
                i6 |= 1;
            } else if (iK == 1) {
                bool = (Boolean) aVarB.r(descriptor2, 1, C2419g.f20053a, bool);
                i6 |= 2;
            } else if (iK == 2) {
                bool2 = (Boolean) aVarB.r(descriptor2, 2, C2419g.f20053a, bool2);
                i6 |= 4;
            } else {
                if (iK != 3) {
                    throw new g5.g(iK);
                }
                supportTickets = (CustomerCenterConfigData.Support.SupportTickets) aVarB.p(descriptor2, 3, CustomerCenterConfigData$Support$SupportTickets$$serializer.INSTANCE, supportTickets);
                i6 |= 8;
            }
        }
        aVarB.c(descriptor2);
        return new CustomerCenterConfigData.Support(i6, str, bool, bool2, supportTickets, (a0) null);
    }

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

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

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