package com.revenuecat.purchases.customercenter;

import W.b;
import com.revenuecat.purchases.customercenter.CustomerCenterConfigData;
import g5.a;
import i5.g;
import j5.c;
import j5.d;
import k5.A;
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$Appearance$$serializer implements A {
    public static final CustomerCenterConfigData$Appearance$$serializer INSTANCE;
    private static final /* synthetic */ S descriptor;

    static {
        CustomerCenterConfigData$Appearance$$serializer customerCenterConfigData$Appearance$$serializer = new CustomerCenterConfigData$Appearance$$serializer();
        INSTANCE = customerCenterConfigData$Appearance$$serializer;
        S s6 = new S("com.revenuecat.purchases.customercenter.CustomerCenterConfigData.Appearance", customerCenterConfigData$Appearance$$serializer, 2);
        s6.k("light", true);
        s6.k("dark", true);
        descriptor = s6;
    }

    private CustomerCenterConfigData$Appearance$$serializer() {
    }

    @Override // k5.A
    public a[] childSerializers() {
        CustomerCenterConfigData$Appearance$ColorInformation$$serializer customerCenterConfigData$Appearance$ColorInformation$$serializer = CustomerCenterConfigData$Appearance$ColorInformation$$serializer.INSTANCE;
        return new a[]{b.h0(customerCenterConfigData$Appearance$ColorInformation$$serializer), b.h0(customerCenterConfigData$Appearance$ColorInformation$$serializer)};
    }

    @Override // g5.a
    public CustomerCenterConfigData.Appearance deserialize(c decoder) {
        o.h(decoder, "decoder");
        g descriptor2 = getDescriptor();
        j5.a aVarB = decoder.b(descriptor2);
        boolean z6 = true;
        int i6 = 0;
        CustomerCenterConfigData.Appearance.ColorInformation colorInformation = null;
        CustomerCenterConfigData.Appearance.ColorInformation colorInformation2 = null;
        while (z6) {
            int iK = aVarB.k(descriptor2);
            if (iK == -1) {
                z6 = false;
            } else if (iK == 0) {
                colorInformation = (CustomerCenterConfigData.Appearance.ColorInformation) aVarB.r(descriptor2, 0, CustomerCenterConfigData$Appearance$ColorInformation$$serializer.INSTANCE, colorInformation);
                i6 |= 1;
            } else {
                if (iK != 1) {
                    throw new g5.g(iK);
                }
                colorInformation2 = (CustomerCenterConfigData.Appearance.ColorInformation) aVarB.r(descriptor2, 1, CustomerCenterConfigData$Appearance$ColorInformation$$serializer.INSTANCE, colorInformation2);
                i6 |= 2;
            }
        }
        aVarB.c(descriptor2);
        return new CustomerCenterConfigData.Appearance(i6, colorInformation, colorInformation2, (a0) null);
    }

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

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

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