package com.revenuecat.purchases.customercenter;

import W.b;
import com.google.android.gms.common.internal.ImagesContract;
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 k5.e0;
import kotlin.jvm.internal.o;
import w4.InterfaceC3141c;

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

    static {
        CustomerCenterConfigData$HelpPath$$serializer customerCenterConfigData$HelpPath$$serializer = new CustomerCenterConfigData$HelpPath$$serializer();
        INSTANCE = customerCenterConfigData$HelpPath$$serializer;
        S s6 = new S("com.revenuecat.purchases.customercenter.CustomerCenterConfigData.HelpPath", customerCenterConfigData$HelpPath$$serializer, 8);
        s6.k("id", false);
        s6.k("title", false);
        s6.k("type", false);
        s6.k("promotional_offer", true);
        s6.k("feedback_survey", true);
        s6.k(ImagesContract.URL, true);
        s6.k("open_method", true);
        s6.k("action_identifier", true);
        descriptor = s6;
    }

    private CustomerCenterConfigData$HelpPath$$serializer() {
    }

    @Override // k5.A
    public a[] childSerializers() {
        a[] aVarArr = CustomerCenterConfigData.HelpPath.$childSerializers;
        e0 e0Var = e0.f20048a;
        return new a[]{e0Var, e0Var, aVarArr[2], b.h0(CustomerCenterConfigData$HelpPath$PathDetail$PromotionalOffer$$serializer.INSTANCE), b.h0(CustomerCenterConfigData$HelpPath$PathDetail$FeedbackSurvey$$serializer.INSTANCE), b.h0(e0Var), b.h0(aVarArr[6]), b.h0(e0Var)};
    }

    @Override // g5.a
    public CustomerCenterConfigData.HelpPath deserialize(c decoder) {
        o.h(decoder, "decoder");
        g descriptor2 = getDescriptor();
        j5.a aVarB = decoder.b(descriptor2);
        a[] aVarArr = CustomerCenterConfigData.HelpPath.$childSerializers;
        String strC = null;
        String strC2 = null;
        CustomerCenterConfigData.HelpPath.PathType pathType = null;
        CustomerCenterConfigData.HelpPath.PathDetail.PromotionalOffer promotionalOffer = null;
        CustomerCenterConfigData.HelpPath.PathDetail.FeedbackSurvey feedbackSurvey = null;
        String str = null;
        CustomerCenterConfigData.HelpPath.OpenMethod openMethod = null;
        String str2 = null;
        int i6 = 0;
        boolean z6 = true;
        while (z6) {
            int iK = aVarB.k(descriptor2);
            switch (iK) {
                case -1:
                    z6 = false;
                    break;
                case 0:
                    strC = aVarB.C(descriptor2, 0);
                    i6 |= 1;
                    break;
                case 1:
                    strC2 = aVarB.C(descriptor2, 1);
                    i6 |= 2;
                    break;
                case 2:
                    pathType = (CustomerCenterConfigData.HelpPath.PathType) aVarB.p(descriptor2, 2, aVarArr[2], pathType);
                    i6 |= 4;
                    break;
                case 3:
                    promotionalOffer = (CustomerCenterConfigData.HelpPath.PathDetail.PromotionalOffer) aVarB.r(descriptor2, 3, CustomerCenterConfigData$HelpPath$PathDetail$PromotionalOffer$$serializer.INSTANCE, promotionalOffer);
                    i6 |= 8;
                    break;
                case 4:
                    feedbackSurvey = (CustomerCenterConfigData.HelpPath.PathDetail.FeedbackSurvey) aVarB.r(descriptor2, 4, CustomerCenterConfigData$HelpPath$PathDetail$FeedbackSurvey$$serializer.INSTANCE, feedbackSurvey);
                    i6 |= 16;
                    break;
                case 5:
                    str = (String) aVarB.r(descriptor2, 5, e0.f20048a, str);
                    i6 |= 32;
                    break;
                case 6:
                    openMethod = (CustomerCenterConfigData.HelpPath.OpenMethod) aVarB.r(descriptor2, 6, aVarArr[6], openMethod);
                    i6 |= 64;
                    break;
                case 7:
                    str2 = (String) aVarB.r(descriptor2, 7, e0.f20048a, str2);
                    i6 |= 128;
                    break;
                default:
                    throw new g5.g(iK);
            }
        }
        aVarB.c(descriptor2);
        return new CustomerCenterConfigData.HelpPath(i6, strC, strC2, pathType, promotionalOffer, feedbackSurvey, str, openMethod, str2, (a0) null);
    }

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

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

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