package com.revenuecat.purchases.paywalls.components;

import com.revenuecat.purchases.paywalls.components.ButtonComponent;
import g5.a;
import i5.g;
import j5.b;
import j5.c;
import j5.d;
import k5.A;
import k5.P;
import k5.S;
import kotlin.jvm.internal.o;
import w4.InterfaceC3141c;

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

    static {
        ButtonComponent$Action$NavigateTo$$serializer buttonComponent$Action$NavigateTo$$serializer = new ButtonComponent$Action$NavigateTo$$serializer();
        INSTANCE = buttonComponent$Action$NavigateTo$$serializer;
        S s6 = new S("com.revenuecat.purchases.paywalls.components.ButtonComponent.Action.NavigateTo", buttonComponent$Action$NavigateTo$$serializer, 1);
        s6.k("destination", false);
        descriptor = s6;
    }

    private ButtonComponent$Action$NavigateTo$$serializer() {
    }

    @Override // k5.A
    public a[] childSerializers() {
        return new a[]{ButtonComponent.Action.NavigateTo.$childSerializers[0]};
    }

    @Override // g5.a
    public ButtonComponent.Action.NavigateTo deserialize(c decoder) {
        o.h(decoder, "decoder");
        g descriptor2 = getDescriptor();
        j5.a aVarB = decoder.b(descriptor2);
        a[] aVarArr = ButtonComponent.Action.NavigateTo.$childSerializers;
        boolean z6 = true;
        int i6 = 0;
        ButtonComponent.Destination destination = null;
        while (z6) {
            int iK = aVarB.k(descriptor2);
            if (iK == -1) {
                z6 = false;
            } else {
                if (iK != 0) {
                    throw new g5.g(iK);
                }
                destination = (ButtonComponent.Destination) aVarB.p(descriptor2, 0, aVarArr[0], destination);
                i6 = 1;
            }
        }
        aVarB.c(descriptor2);
        return new ButtonComponent.Action.NavigateTo(i6, destination, null);
    }

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

    @Override // g5.a
    public void serialize(d encoder, ButtonComponent.Action.NavigateTo value) {
        o.h(encoder, "encoder");
        o.h(value, "value");
        g descriptor2 = getDescriptor();
        b bVarB = encoder.b(descriptor2);
        bVarB.z(descriptor2, 0, ButtonComponent.Action.NavigateTo.$childSerializers[0], value.destination);
        bVarB.c(descriptor2);
    }

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