package com.revenuecat.purchases.paywalls.components;

import Q4.c;
import androidx.compose.runtime.Immutable;
import androidx.compose.runtime.Stable;
import com.revenuecat.purchases.InternalRevenueCatAPI;
import com.revenuecat.purchases.paywalls.components.common.LocalizationKey;
import com.revenuecat.purchases.paywalls.components.common.LocalizationKey$$serializer;
import com.revenuecat.purchases.paywalls.components.properties.Size;
import com.revenuecat.purchases.paywalls.components.properties.Size$$serializer;
import g5.a;
import g5.e;
import j5.b;
import java.lang.annotation.Annotation;
import k5.C2434w;
import k5.P;
import k5.a0;
import k5.e0;
import kotlin.jvm.internal.D;
import kotlin.jvm.internal.o;
import kotlin.jvm.internal.p;
import m1.g;
import w4.InterfaceC3141c;
import w4.h;
import w4.i;

/* JADX INFO: loaded from: classes3.dex */
@Immutable
@InternalRevenueCatAPI
public final class ButtonComponent implements PaywallComponent {
    public static final Companion Companion = new Companion(null);
    private final Action action;
    private final StackComponent stack;
    private final PaywallTransition transition;

    @InternalRevenueCatAPI
    @Stable
    public interface Action {
        public static final Companion Companion = Companion.$$INSTANCE;

        public static final class Companion {
            static final /* synthetic */ Companion $$INSTANCE = new Companion();

            private Companion() {
            }

            public final a serializer() {
                return ActionSerializer.INSTANCE;
            }
        }

        public static final class NavigateBack implements Action {
            public static final NavigateBack INSTANCE = new NavigateBack();
            private static final /* synthetic */ h $cachedSerializer$delegate = g.j(i.f25466b, AnonymousClass1.INSTANCE);

            /* JADX INFO: renamed from: com.revenuecat.purchases.paywalls.components.ButtonComponent$Action$NavigateBack$1, reason: invalid class name */
            public static final class AnonymousClass1 extends p implements J4.a {
                public static final AnonymousClass1 INSTANCE = new AnonymousClass1();

                public AnonymousClass1() {
                    super(0);
                }

                @Override // J4.a
                public final a invoke() {
                    return new C2434w("com.revenuecat.purchases.paywalls.components.ButtonComponent.Action.NavigateBack", NavigateBack.INSTANCE, new Annotation[0]);
                }
            }

            private NavigateBack() {
            }

            private final /* synthetic */ a get$cachedSerializer() {
                return (a) $cachedSerializer$delegate.getValue();
            }

            public final a serializer() {
                return get$cachedSerializer();
            }
        }

        @Immutable
        public static final class NavigateTo implements Action {
            private final Destination destination;
            public static final Companion Companion = new Companion(null);
            private static final a[] $childSerializers = {new e("com.revenuecat.purchases.paywalls.components.ButtonComponent.Destination", D.a(Destination.class), new c[]{D.a(Destination.CustomerCenter.class), D.a(Destination.PrivacyPolicy.class), D.a(Destination.Sheet.class), D.a(Destination.Terms.class), D.a(Destination.Unknown.class), D.a(Destination.Url.class)}, new a[]{new C2434w("com.revenuecat.purchases.paywalls.components.ButtonComponent.Destination.CustomerCenter", Destination.CustomerCenter.INSTANCE, new Annotation[0]), ButtonComponent$Destination$PrivacyPolicy$$serializer.INSTANCE, ButtonComponent$Destination$Sheet$$serializer.INSTANCE, ButtonComponent$Destination$Terms$$serializer.INSTANCE, new C2434w("com.revenuecat.purchases.paywalls.components.ButtonComponent.Destination.Unknown", Destination.Unknown.INSTANCE, new Annotation[0]), ButtonComponent$Destination$Url$$serializer.INSTANCE}, new Annotation[0])};

            public static final class Companion {
                public /* synthetic */ Companion(kotlin.jvm.internal.h hVar) {
                    this();
                }

                public final a serializer() {
                    return ButtonComponent$Action$NavigateTo$$serializer.INSTANCE;
                }

                private Companion() {
                }
            }

            @InterfaceC3141c
            public /* synthetic */ NavigateTo(int i6, Destination destination, a0 a0Var) {
                if (1 == (i6 & 1)) {
                    this.destination = destination;
                } else {
                    P.h(i6, 1, ButtonComponent$Action$NavigateTo$$serializer.INSTANCE.getDescriptor());
                    throw null;
                }
            }

            public static /* synthetic */ NavigateTo copy$default(NavigateTo navigateTo, Destination destination, int i6, Object obj) {
                if ((i6 & 1) != 0) {
                    destination = navigateTo.destination;
                }
                return navigateTo.copy(destination);
            }

            public final Destination component1() {
                return this.destination;
            }

            public final NavigateTo copy(Destination destination) {
                o.h(destination, "destination");
                return new NavigateTo(destination);
            }

            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
                return (obj instanceof NavigateTo) && o.c(this.destination, ((NavigateTo) obj).destination);
            }

            public final /* synthetic */ Destination getDestination() {
                return this.destination;
            }

            public int hashCode() {
                return this.destination.hashCode();
            }

            public String toString() {
                return "NavigateTo(destination=" + this.destination + ')';
            }

            public NavigateTo(Destination destination) {
                o.h(destination, "destination");
                this.destination = destination;
            }
        }

        public static final class RestorePurchases implements Action {
            public static final RestorePurchases INSTANCE = new RestorePurchases();
            private static final /* synthetic */ h $cachedSerializer$delegate = g.j(i.f25466b, AnonymousClass1.INSTANCE);

            /* JADX INFO: renamed from: com.revenuecat.purchases.paywalls.components.ButtonComponent$Action$RestorePurchases$1, reason: invalid class name */
            public static final class AnonymousClass1 extends p implements J4.a {
                public static final AnonymousClass1 INSTANCE = new AnonymousClass1();

                public AnonymousClass1() {
                    super(0);
                }

                @Override // J4.a
                public final a invoke() {
                    return new C2434w("com.revenuecat.purchases.paywalls.components.ButtonComponent.Action.RestorePurchases", RestorePurchases.INSTANCE, new Annotation[0]);
                }
            }

            private RestorePurchases() {
            }

            private final /* synthetic */ a get$cachedSerializer() {
                return (a) $cachedSerializer$delegate.getValue();
            }

            public final a serializer() {
                return get$cachedSerializer();
            }
        }

        public static final class Unknown implements Action {
            public static final Unknown INSTANCE = new Unknown();
            private static final /* synthetic */ h $cachedSerializer$delegate = g.j(i.f25466b, AnonymousClass1.INSTANCE);

            /* JADX INFO: renamed from: com.revenuecat.purchases.paywalls.components.ButtonComponent$Action$Unknown$1, reason: invalid class name */
            public static final class AnonymousClass1 extends p implements J4.a {
                public static final AnonymousClass1 INSTANCE = new AnonymousClass1();

                public AnonymousClass1() {
                    super(0);
                }

                @Override // J4.a
                public final a invoke() {
                    return new C2434w("com.revenuecat.purchases.paywalls.components.ButtonComponent.Action.Unknown", Unknown.INSTANCE, new Annotation[0]);
                }
            }

            private Unknown() {
            }

            private final /* synthetic */ a get$cachedSerializer() {
                return (a) $cachedSerializer$delegate.getValue();
            }

            public final a serializer() {
                return get$cachedSerializer();
            }
        }
    }

    public static final class Companion {
        public /* synthetic */ Companion(kotlin.jvm.internal.h hVar) {
            this();
        }

        public final a serializer() {
            return ButtonComponent$$serializer.INSTANCE;
        }

        private Companion() {
        }
    }

    @InternalRevenueCatAPI
    @Stable
    public interface Destination {
        public static final Companion Companion = Companion.$$INSTANCE;

        public static final class Companion {
            static final /* synthetic */ Companion $$INSTANCE = new Companion();

            private Companion() {
            }

            public final a serializer() {
                return new e("com.revenuecat.purchases.paywalls.components.ButtonComponent.Destination", D.a(Destination.class), new c[]{D.a(CustomerCenter.class), D.a(PrivacyPolicy.class), D.a(Sheet.class), D.a(Terms.class), D.a(Unknown.class), D.a(Url.class)}, new a[]{new C2434w("com.revenuecat.purchases.paywalls.components.ButtonComponent.Destination.CustomerCenter", CustomerCenter.INSTANCE, new Annotation[0]), ButtonComponent$Destination$PrivacyPolicy$$serializer.INSTANCE, ButtonComponent$Destination$Sheet$$serializer.INSTANCE, ButtonComponent$Destination$Terms$$serializer.INSTANCE, new C2434w("com.revenuecat.purchases.paywalls.components.ButtonComponent.Destination.Unknown", Unknown.INSTANCE, new Annotation[0]), ButtonComponent$Destination$Url$$serializer.INSTANCE}, new Annotation[0]);
            }
        }

        public static final class CustomerCenter implements Destination {
            public static final CustomerCenter INSTANCE = new CustomerCenter();
            private static final /* synthetic */ h $cachedSerializer$delegate = g.j(i.f25466b, AnonymousClass1.INSTANCE);

            /* JADX INFO: renamed from: com.revenuecat.purchases.paywalls.components.ButtonComponent$Destination$CustomerCenter$1, reason: invalid class name */
            public static final class AnonymousClass1 extends p implements J4.a {
                public static final AnonymousClass1 INSTANCE = new AnonymousClass1();

                public AnonymousClass1() {
                    super(0);
                }

                @Override // J4.a
                public final a invoke() {
                    return new C2434w("com.revenuecat.purchases.paywalls.components.ButtonComponent.Destination.CustomerCenter", CustomerCenter.INSTANCE, new Annotation[0]);
                }
            }

            private CustomerCenter() {
            }

            private final /* synthetic */ a get$cachedSerializer() {
                return (a) $cachedSerializer$delegate.getValue();
            }

            public final a serializer() {
                return get$cachedSerializer();
            }
        }

        @Immutable
        public static final class PrivacyPolicy implements Destination {
            public static final Companion Companion = new Companion(null);
            private final UrlMethod method;
            private final String urlLid;

            public static final class Companion {
                public /* synthetic */ Companion(kotlin.jvm.internal.h hVar) {
                    this();
                }

                public final a serializer() {
                    return ButtonComponent$Destination$PrivacyPolicy$$serializer.INSTANCE;
                }

                private Companion() {
                }
            }

            @InterfaceC3141c
            public /* synthetic */ PrivacyPolicy(int i6, String str, UrlMethod urlMethod, a0 a0Var, kotlin.jvm.internal.h hVar) {
                this(i6, str, urlMethod, a0Var);
            }

            /* JADX INFO: renamed from: copy-26kQY28$default, reason: not valid java name */
            public static /* synthetic */ PrivacyPolicy m533copy26kQY28$default(PrivacyPolicy privacyPolicy, String str, UrlMethod urlMethod, int i6, Object obj) {
                if ((i6 & 1) != 0) {
                    str = privacyPolicy.urlLid;
                }
                if ((i6 & 2) != 0) {
                    urlMethod = privacyPolicy.method;
                }
                return privacyPolicy.m535copy26kQY28(str, urlMethod);
            }

            public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(PrivacyPolicy privacyPolicy, b bVar, i5.g gVar) {
                bVar.z(gVar, 0, LocalizationKey$$serializer.INSTANCE, LocalizationKey.m607boximpl(privacyPolicy.urlLid));
                bVar.z(gVar, 1, UrlMethodDeserializer.INSTANCE, privacyPolicy.method);
            }

            /* JADX INFO: renamed from: component1-z7Tp-4o, reason: not valid java name */
            public final String m534component1z7Tp4o() {
                return this.urlLid;
            }

            public final UrlMethod component2() {
                return this.method;
            }

            /* JADX INFO: renamed from: copy-26kQY28, reason: not valid java name */
            public final PrivacyPolicy m535copy26kQY28(String urlLid, UrlMethod method) {
                o.h(urlLid, "urlLid");
                o.h(method, "method");
                return new PrivacyPolicy(urlLid, method, null);
            }

            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
                if (!(obj instanceof PrivacyPolicy)) {
                    return false;
                }
                PrivacyPolicy privacyPolicy = (PrivacyPolicy) obj;
                return LocalizationKey.m610equalsimpl0(this.urlLid, privacyPolicy.urlLid) && this.method == privacyPolicy.method;
            }

            public final /* synthetic */ UrlMethod getMethod() {
                return this.method;
            }

            /* JADX INFO: renamed from: getUrlLid-z7Tp-4o, reason: not valid java name */
            public final /* synthetic */ String m536getUrlLidz7Tp4o() {
                return this.urlLid;
            }

            public int hashCode() {
                return this.method.hashCode() + (LocalizationKey.m611hashCodeimpl(this.urlLid) * 31);
            }

            public String toString() {
                return "PrivacyPolicy(urlLid=" + ((Object) LocalizationKey.m612toStringimpl(this.urlLid)) + ", method=" + this.method + ')';
            }

            public /* synthetic */ PrivacyPolicy(String str, UrlMethod urlMethod, kotlin.jvm.internal.h hVar) {
                this(str, urlMethod);
            }

            private PrivacyPolicy(int i6, String str, UrlMethod urlMethod, a0 a0Var) {
                if (3 != (i6 & 3)) {
                    P.h(i6, 3, ButtonComponent$Destination$PrivacyPolicy$$serializer.INSTANCE.getDescriptor());
                    throw null;
                }
                this.urlLid = str;
                this.method = urlMethod;
            }

            private PrivacyPolicy(String urlLid, UrlMethod method) {
                o.h(urlLid, "urlLid");
                o.h(method, "method");
                this.urlLid = urlLid;
                this.method = method;
            }
        }

        @Immutable
        public static final class Sheet implements Destination {
            public static final Companion Companion = new Companion(null);
            private final boolean backgroundBlur;
            private final String id;
            private final String name;
            private final Size size;
            private final StackComponent stack;

            public static final class Companion {
                public /* synthetic */ Companion(kotlin.jvm.internal.h hVar) {
                    this();
                }

                public final a serializer() {
                    return ButtonComponent$Destination$Sheet$$serializer.INSTANCE;
                }

                private Companion() {
                }
            }

            @InterfaceC3141c
            public /* synthetic */ Sheet(int i6, String str, String str2, StackComponent stackComponent, boolean z6, Size size, a0 a0Var) {
                if (31 != (i6 & 31)) {
                    P.h(i6, 31, ButtonComponent$Destination$Sheet$$serializer.INSTANCE.getDescriptor());
                    throw null;
                }
                this.id = str;
                this.name = str2;
                this.stack = stackComponent;
                this.backgroundBlur = z6;
                this.size = size;
            }

            public static /* synthetic */ Sheet copy$default(Sheet sheet, String str, String str2, StackComponent stackComponent, boolean z6, Size size, int i6, Object obj) {
                if ((i6 & 1) != 0) {
                    str = sheet.id;
                }
                if ((i6 & 2) != 0) {
                    str2 = sheet.name;
                }
                if ((i6 & 4) != 0) {
                    stackComponent = sheet.stack;
                }
                if ((i6 & 8) != 0) {
                    z6 = sheet.backgroundBlur;
                }
                if ((i6 & 16) != 0) {
                    size = sheet.size;
                }
                Size size2 = size;
                StackComponent stackComponent2 = stackComponent;
                return sheet.copy(str, str2, stackComponent2, z6, size2);
            }

            public static /* synthetic */ void getBackgroundBlur$annotations() {
            }

            public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(Sheet sheet, b bVar, i5.g gVar) {
                bVar.A(gVar, 0, sheet.id);
                bVar.E(gVar, 1, e0.f20048a, sheet.name);
                bVar.z(gVar, 2, StackComponent$$serializer.INSTANCE, sheet.stack);
                bVar.v(gVar, 3, sheet.backgroundBlur);
                bVar.E(gVar, 4, Size$$serializer.INSTANCE, sheet.size);
            }

            public final String component1() {
                return this.id;
            }

            public final String component2() {
                return this.name;
            }

            public final StackComponent component3() {
                return this.stack;
            }

            public final boolean component4() {
                return this.backgroundBlur;
            }

            public final Size component5() {
                return this.size;
            }

            public final Sheet copy(String id, String str, StackComponent stack, boolean z6, Size size) {
                o.h(id, "id");
                o.h(stack, "stack");
                return new Sheet(id, str, stack, z6, size);
            }

            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
                if (!(obj instanceof Sheet)) {
                    return false;
                }
                Sheet sheet = (Sheet) obj;
                return o.c(this.id, sheet.id) && o.c(this.name, sheet.name) && o.c(this.stack, sheet.stack) && this.backgroundBlur == sheet.backgroundBlur && o.c(this.size, sheet.size);
            }

            public final /* synthetic */ boolean getBackgroundBlur() {
                return this.backgroundBlur;
            }

            public final /* synthetic */ String getId() {
                return this.id;
            }

            public final /* synthetic */ String getName() {
                return this.name;
            }

            public final /* synthetic */ Size getSize() {
                return this.size;
            }

            public final /* synthetic */ StackComponent getStack() {
                return this.stack;
            }

            public int hashCode() {
                int iHashCode = this.id.hashCode() * 31;
                String str = this.name;
                int iF = com.google.android.recaptcha.internal.a.f((this.stack.hashCode() + ((iHashCode + (str == null ? 0 : str.hashCode())) * 31)) * 31, 31, this.backgroundBlur);
                Size size = this.size;
                return iF + (size != null ? size.hashCode() : 0);
            }

            public String toString() {
                return "Sheet(id=" + this.id + ", name=" + this.name + ", stack=" + this.stack + ", backgroundBlur=" + this.backgroundBlur + ", size=" + this.size + ')';
            }

            public Sheet(String id, String str, StackComponent stack, boolean z6, Size size) {
                o.h(id, "id");
                o.h(stack, "stack");
                this.id = id;
                this.name = str;
                this.stack = stack;
                this.backgroundBlur = z6;
                this.size = size;
            }
        }

        @Immutable
        public static final class Terms implements Destination {
            public static final Companion Companion = new Companion(null);
            private final UrlMethod method;
            private final String urlLid;

            public static final class Companion {
                public /* synthetic */ Companion(kotlin.jvm.internal.h hVar) {
                    this();
                }

                public final a serializer() {
                    return ButtonComponent$Destination$Terms$$serializer.INSTANCE;
                }

                private Companion() {
                }
            }

            @InterfaceC3141c
            public /* synthetic */ Terms(int i6, String str, UrlMethod urlMethod, a0 a0Var, kotlin.jvm.internal.h hVar) {
                this(i6, str, urlMethod, a0Var);
            }

            /* JADX INFO: renamed from: copy-26kQY28$default, reason: not valid java name */
            public static /* synthetic */ Terms m537copy26kQY28$default(Terms terms, String str, UrlMethod urlMethod, int i6, Object obj) {
                if ((i6 & 1) != 0) {
                    str = terms.urlLid;
                }
                if ((i6 & 2) != 0) {
                    urlMethod = terms.method;
                }
                return terms.m539copy26kQY28(str, urlMethod);
            }

            public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(Terms terms, b bVar, i5.g gVar) {
                bVar.z(gVar, 0, LocalizationKey$$serializer.INSTANCE, LocalizationKey.m607boximpl(terms.urlLid));
                bVar.z(gVar, 1, UrlMethodDeserializer.INSTANCE, terms.method);
            }

            /* JADX INFO: renamed from: component1-z7Tp-4o, reason: not valid java name */
            public final String m538component1z7Tp4o() {
                return this.urlLid;
            }

            public final UrlMethod component2() {
                return this.method;
            }

            /* JADX INFO: renamed from: copy-26kQY28, reason: not valid java name */
            public final Terms m539copy26kQY28(String urlLid, UrlMethod method) {
                o.h(urlLid, "urlLid");
                o.h(method, "method");
                return new Terms(urlLid, method, null);
            }

            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
                if (!(obj instanceof Terms)) {
                    return false;
                }
                Terms terms = (Terms) obj;
                return LocalizationKey.m610equalsimpl0(this.urlLid, terms.urlLid) && this.method == terms.method;
            }

            public final /* synthetic */ UrlMethod getMethod() {
                return this.method;
            }

            /* JADX INFO: renamed from: getUrlLid-z7Tp-4o, reason: not valid java name */
            public final /* synthetic */ String m540getUrlLidz7Tp4o() {
                return this.urlLid;
            }

            public int hashCode() {
                return this.method.hashCode() + (LocalizationKey.m611hashCodeimpl(this.urlLid) * 31);
            }

            public String toString() {
                return "Terms(urlLid=" + ((Object) LocalizationKey.m612toStringimpl(this.urlLid)) + ", method=" + this.method + ')';
            }

            public /* synthetic */ Terms(String str, UrlMethod urlMethod, kotlin.jvm.internal.h hVar) {
                this(str, urlMethod);
            }

            private Terms(int i6, String str, UrlMethod urlMethod, a0 a0Var) {
                if (3 != (i6 & 3)) {
                    P.h(i6, 3, ButtonComponent$Destination$Terms$$serializer.INSTANCE.getDescriptor());
                    throw null;
                }
                this.urlLid = str;
                this.method = urlMethod;
            }

            private Terms(String urlLid, UrlMethod method) {
                o.h(urlLid, "urlLid");
                o.h(method, "method");
                this.urlLid = urlLid;
                this.method = method;
            }
        }

        public static final class Unknown implements Destination {
            public static final Unknown INSTANCE = new Unknown();
            private static final /* synthetic */ h $cachedSerializer$delegate = g.j(i.f25466b, AnonymousClass1.INSTANCE);

            /* JADX INFO: renamed from: com.revenuecat.purchases.paywalls.components.ButtonComponent$Destination$Unknown$1, reason: invalid class name */
            public static final class AnonymousClass1 extends p implements J4.a {
                public static final AnonymousClass1 INSTANCE = new AnonymousClass1();

                public AnonymousClass1() {
                    super(0);
                }

                @Override // J4.a
                public final a invoke() {
                    return new C2434w("com.revenuecat.purchases.paywalls.components.ButtonComponent.Destination.Unknown", Unknown.INSTANCE, new Annotation[0]);
                }
            }

            private Unknown() {
            }

            private final /* synthetic */ a get$cachedSerializer() {
                return (a) $cachedSerializer$delegate.getValue();
            }

            public final a serializer() {
                return get$cachedSerializer();
            }
        }

        @Immutable
        public static final class Url implements Destination {
            public static final Companion Companion = new Companion(null);
            private final UrlMethod method;
            private final String urlLid;

            public static final class Companion {
                public /* synthetic */ Companion(kotlin.jvm.internal.h hVar) {
                    this();
                }

                public final a serializer() {
                    return ButtonComponent$Destination$Url$$serializer.INSTANCE;
                }

                private Companion() {
                }
            }

            @InterfaceC3141c
            public /* synthetic */ Url(int i6, String str, UrlMethod urlMethod, a0 a0Var, kotlin.jvm.internal.h hVar) {
                this(i6, str, urlMethod, a0Var);
            }

            /* JADX INFO: renamed from: copy-26kQY28$default, reason: not valid java name */
            public static /* synthetic */ Url m541copy26kQY28$default(Url url, String str, UrlMethod urlMethod, int i6, Object obj) {
                if ((i6 & 1) != 0) {
                    str = url.urlLid;
                }
                if ((i6 & 2) != 0) {
                    urlMethod = url.method;
                }
                return url.m543copy26kQY28(str, urlMethod);
            }

            public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(Url url, b bVar, i5.g gVar) {
                bVar.z(gVar, 0, LocalizationKey$$serializer.INSTANCE, LocalizationKey.m607boximpl(url.urlLid));
                bVar.z(gVar, 1, UrlMethodDeserializer.INSTANCE, url.method);
            }

            /* JADX INFO: renamed from: component1-z7Tp-4o, reason: not valid java name */
            public final String m542component1z7Tp4o() {
                return this.urlLid;
            }

            public final UrlMethod component2() {
                return this.method;
            }

            /* JADX INFO: renamed from: copy-26kQY28, reason: not valid java name */
            public final Url m543copy26kQY28(String urlLid, UrlMethod method) {
                o.h(urlLid, "urlLid");
                o.h(method, "method");
                return new Url(urlLid, method, null);
            }

            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
                if (!(obj instanceof Url)) {
                    return false;
                }
                Url url = (Url) obj;
                return LocalizationKey.m610equalsimpl0(this.urlLid, url.urlLid) && this.method == url.method;
            }

            public final /* synthetic */ UrlMethod getMethod() {
                return this.method;
            }

            /* JADX INFO: renamed from: getUrlLid-z7Tp-4o, reason: not valid java name */
            public final /* synthetic */ String m544getUrlLidz7Tp4o() {
                return this.urlLid;
            }

            public int hashCode() {
                return this.method.hashCode() + (LocalizationKey.m611hashCodeimpl(this.urlLid) * 31);
            }

            public String toString() {
                return "Url(urlLid=" + ((Object) LocalizationKey.m612toStringimpl(this.urlLid)) + ", method=" + this.method + ')';
            }

            public /* synthetic */ Url(String str, UrlMethod urlMethod, kotlin.jvm.internal.h hVar) {
                this(str, urlMethod);
            }

            private Url(int i6, String str, UrlMethod urlMethod, a0 a0Var) {
                if (3 != (i6 & 3)) {
                    P.h(i6, 3, ButtonComponent$Destination$Url$$serializer.INSTANCE.getDescriptor());
                    throw null;
                }
                this.urlLid = str;
                this.method = urlMethod;
            }

            private Url(String urlLid, UrlMethod method) {
                o.h(urlLid, "urlLid");
                o.h(method, "method");
                this.urlLid = urlLid;
                this.method = method;
            }
        }
    }

    @InternalRevenueCatAPI
    public enum UrlMethod {
        IN_APP_BROWSER,
        EXTERNAL_BROWSER,
        DEEP_LINK,
        UNKNOWN;

        public static final Companion Companion = new Companion(null);

        public static final class Companion {
            public /* synthetic */ Companion(kotlin.jvm.internal.h hVar) {
                this();
            }

            public final a serializer() {
                return UrlMethodDeserializer.INSTANCE;
            }

            private Companion() {
            }
        }
    }

    @InterfaceC3141c
    public /* synthetic */ ButtonComponent(int i6, Action action, StackComponent stackComponent, PaywallTransition paywallTransition, a0 a0Var) {
        if (3 != (i6 & 3)) {
            P.h(i6, 3, ButtonComponent$$serializer.INSTANCE.getDescriptor());
            throw null;
        }
        this.action = action;
        this.stack = stackComponent;
        if ((i6 & 4) == 0) {
            this.transition = null;
        } else {
            this.transition = paywallTransition;
        }
    }

    public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(ButtonComponent buttonComponent, b bVar, i5.g gVar) {
        bVar.z(gVar, 0, ActionSerializer.INSTANCE, buttonComponent.action);
        bVar.z(gVar, 1, StackComponent$$serializer.INSTANCE, buttonComponent.stack);
        if (!bVar.g(gVar) && buttonComponent.transition == null) {
            return;
        }
        bVar.E(gVar, 2, PaywallTransition$$serializer.INSTANCE, buttonComponent.transition);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof ButtonComponent)) {
            return false;
        }
        ButtonComponent buttonComponent = (ButtonComponent) obj;
        return o.c(this.action, buttonComponent.action) && o.c(this.stack, buttonComponent.stack) && o.c(this.transition, buttonComponent.transition);
    }

    public final /* synthetic */ Action getAction() {
        return this.action;
    }

    public final /* synthetic */ StackComponent getStack() {
        return this.stack;
    }

    public final /* synthetic */ PaywallTransition getTransition() {
        return this.transition;
    }

    public int hashCode() {
        int iHashCode = (this.stack.hashCode() + (this.action.hashCode() * 31)) * 31;
        PaywallTransition paywallTransition = this.transition;
        return iHashCode + (paywallTransition == null ? 0 : paywallTransition.hashCode());
    }

    public String toString() {
        return "ButtonComponent(action=" + this.action + ", stack=" + this.stack + ", transition=" + this.transition + ')';
    }

    public ButtonComponent(Action action, StackComponent stack, PaywallTransition paywallTransition) {
        o.h(action, "action");
        o.h(stack, "stack");
        this.action = action;
        this.stack = stack;
        this.transition = paywallTransition;
    }

    public /* synthetic */ ButtonComponent(Action action, StackComponent stackComponent, PaywallTransition paywallTransition, int i6, kotlin.jvm.internal.h hVar) {
        this(action, stackComponent, (i6 & 4) != 0 ? null : paywallTransition);
    }
}
