package com.revenuecat.purchases.ui.revenuecatui.components.style;

import androidx.compose.runtime.Immutable;
import androidx.compose.runtime.internal.StabilityInferred;
import com.google.android.recaptcha.internal.a;
import com.revenuecat.purchases.Package;
import com.revenuecat.purchases.paywalls.components.ButtonComponent;
import com.revenuecat.purchases.paywalls.components.PaywallTransition;
import com.revenuecat.purchases.paywalls.components.common.LocaleId;
import com.revenuecat.purchases.paywalls.components.properties.Size;
import com.revenuecat.purchases.ui.revenuecatui.helpers.NonEmptyMap;
import com.revenuecat.purchases.ui.revenuecatui.helpers.ResolvedOffer;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.o;

/* JADX INFO: loaded from: classes3.dex */
@Immutable
public final class ButtonComponentStyle implements ComponentStyle {
    public static final int $stable = 0;
    private final Action action;
    private final Size size;
    private final StackComponentStyle stackComponentStyle;
    private final PaywallTransition transition;
    private final boolean visible;

    public ButtonComponentStyle(StackComponentStyle stackComponentStyle, Action action, PaywallTransition paywallTransition) {
        o.h(stackComponentStyle, "stackComponentStyle");
        o.h(action, "action");
        this.stackComponentStyle = stackComponentStyle;
        this.action = action;
        this.transition = paywallTransition;
        this.visible = stackComponentStyle.getVisible();
        this.size = stackComponentStyle.getSize();
    }

    public static /* synthetic */ ButtonComponentStyle copy$default(ButtonComponentStyle buttonComponentStyle, StackComponentStyle stackComponentStyle, Action action, PaywallTransition paywallTransition, int i6, Object obj) {
        if ((i6 & 1) != 0) {
            stackComponentStyle = buttonComponentStyle.stackComponentStyle;
        }
        if ((i6 & 2) != 0) {
            action = buttonComponentStyle.action;
        }
        if ((i6 & 4) != 0) {
            paywallTransition = buttonComponentStyle.transition;
        }
        return buttonComponentStyle.copy(stackComponentStyle, action, paywallTransition);
    }

    public final StackComponentStyle component1() {
        return this.stackComponentStyle;
    }

    public final Action component2() {
        return this.action;
    }

    public final PaywallTransition component3() {
        return this.transition;
    }

    public final ButtonComponentStyle copy(StackComponentStyle stackComponentStyle, Action action, PaywallTransition paywallTransition) {
        o.h(stackComponentStyle, "stackComponentStyle");
        o.h(action, "action");
        return new ButtonComponentStyle(stackComponentStyle, action, paywallTransition);
    }

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

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

    @Override // com.revenuecat.purchases.ui.revenuecatui.components.style.ComponentStyle
    public Size getSize() {
        return this.size;
    }

    public final /* synthetic */ StackComponentStyle getStackComponentStyle() {
        return this.stackComponentStyle;
    }

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

    @Override // com.revenuecat.purchases.ui.revenuecatui.components.style.ComponentStyle
    public boolean getVisible() {
        return this.visible;
    }

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

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

    public interface Action {

        @StabilityInferred(parameters = 0)
        public static final class CustomWebCheckout implements Action {
            public static final int $stable = 8;
            private final boolean autoDismiss;
            private final ButtonComponent.UrlMethod openMethod;
            private final String packageParam;
            private final Package rcPackage;
            private final NonEmptyMap<LocaleId, String> urls;

            public CustomWebCheckout(NonEmptyMap<LocaleId, String> urls, boolean z6, ButtonComponent.UrlMethod openMethod, Package r5, String str) {
                o.h(urls, "urls");
                o.h(openMethod, "openMethod");
                this.urls = urls;
                this.autoDismiss = z6;
                this.openMethod = openMethod;
                this.rcPackage = r5;
                this.packageParam = str;
            }

            /* JADX WARN: Multi-variable type inference failed */
            public static /* synthetic */ CustomWebCheckout copy$default(CustomWebCheckout customWebCheckout, NonEmptyMap nonEmptyMap, boolean z6, ButtonComponent.UrlMethod urlMethod, Package r42, String str, int i6, Object obj) {
                if ((i6 & 1) != 0) {
                    nonEmptyMap = customWebCheckout.urls;
                }
                if ((i6 & 2) != 0) {
                    z6 = customWebCheckout.autoDismiss;
                }
                if ((i6 & 4) != 0) {
                    urlMethod = customWebCheckout.openMethod;
                }
                if ((i6 & 8) != 0) {
                    r42 = customWebCheckout.rcPackage;
                }
                if ((i6 & 16) != 0) {
                    str = customWebCheckout.packageParam;
                }
                String str2 = str;
                ButtonComponent.UrlMethod urlMethod2 = urlMethod;
                return customWebCheckout.copy(nonEmptyMap, z6, urlMethod2, r42, str2);
            }

            public final NonEmptyMap<LocaleId, String> component1() {
                return this.urls;
            }

            public final boolean component2() {
                return this.autoDismiss;
            }

            public final ButtonComponent.UrlMethod component3() {
                return this.openMethod;
            }

            public final Package component4() {
                return this.rcPackage;
            }

            public final String component5() {
                return this.packageParam;
            }

            public final CustomWebCheckout copy(NonEmptyMap<LocaleId, String> urls, boolean z6, ButtonComponent.UrlMethod openMethod, Package r11, String str) {
                o.h(urls, "urls");
                o.h(openMethod, "openMethod");
                return new CustomWebCheckout(urls, z6, openMethod, r11, str);
            }

            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
                if (!(obj instanceof CustomWebCheckout)) {
                    return false;
                }
                CustomWebCheckout customWebCheckout = (CustomWebCheckout) obj;
                return o.c(this.urls, customWebCheckout.urls) && this.autoDismiss == customWebCheckout.autoDismiss && this.openMethod == customWebCheckout.openMethod && o.c(this.rcPackage, customWebCheckout.rcPackage) && o.c(this.packageParam, customWebCheckout.packageParam);
            }

            public final boolean getAutoDismiss() {
                return this.autoDismiss;
            }

            public final ButtonComponent.UrlMethod getOpenMethod() {
                return this.openMethod;
            }

            public final String getPackageParam() {
                return this.packageParam;
            }

            public final Package getRcPackage() {
                return this.rcPackage;
            }

            public final NonEmptyMap<LocaleId, String> getUrls() {
                return this.urls;
            }

            public int hashCode() {
                int iHashCode = (this.openMethod.hashCode() + a.f(this.urls.hashCode() * 31, 31, this.autoDismiss)) * 31;
                Package r02 = this.rcPackage;
                int iHashCode2 = (iHashCode + (r02 == null ? 0 : r02.hashCode())) * 31;
                String str = this.packageParam;
                return iHashCode2 + (str != null ? str.hashCode() : 0);
            }

            public String toString() {
                StringBuilder sb = new StringBuilder("CustomWebCheckout(urls=");
                sb.append(this.urls);
                sb.append(", autoDismiss=");
                sb.append(this.autoDismiss);
                sb.append(", openMethod=");
                sb.append(this.openMethod);
                sb.append(", rcPackage=");
                sb.append(this.rcPackage);
                sb.append(", packageParam=");
                return Z0.o.r(sb, this.packageParam, ')');
            }
        }

        @StabilityInferred(parameters = 1)
        public static final class NavigateBack implements Action {
            public static final int $stable = 0;
            public static final NavigateBack INSTANCE = new NavigateBack();

            private NavigateBack() {
            }
        }

        @StabilityInferred(parameters = 0)
        public static final class NavigateTo implements Action {
            public static final int $stable = 8;
            private final Destination destination;

            public interface Destination {

                @StabilityInferred(parameters = 1)
                public static final class CustomerCenter implements Destination {
                    public static final int $stable = 0;
                    public static final CustomerCenter INSTANCE = new CustomerCenter();

                    private CustomerCenter() {
                    }
                }

                @Immutable
                public static final class Sheet implements Destination {
                    public static final int $stable = 0;
                    private final boolean backgroundBlur;
                    private final String id;
                    private final String name;
                    private final Size size;
                    private final ComponentStyle stack;

                    public Sheet(String id, String str, ComponentStyle 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;
                    }

                    public static /* synthetic */ Sheet copy$default(Sheet sheet, String str, String str2, ComponentStyle componentStyle, 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) {
                            componentStyle = sheet.stack;
                        }
                        if ((i6 & 8) != 0) {
                            z6 = sheet.backgroundBlur;
                        }
                        if ((i6 & 16) != 0) {
                            size = sheet.size;
                        }
                        Size size2 = size;
                        ComponentStyle componentStyle2 = componentStyle;
                        return sheet.copy(str, str2, componentStyle2, z6, size2);
                    }

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

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

                    public final ComponentStyle 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, ComponentStyle 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 */ ComponentStyle getStack() {
                        return this.stack;
                    }

                    public int hashCode() {
                        int iHashCode = this.id.hashCode() * 31;
                        String str = this.name;
                        int iF = 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 + ')';
                    }
                }

                @StabilityInferred(parameters = 0)
                public static final class Url implements Destination {
                    public static final int $stable = 8;
                    private final ButtonComponent.UrlMethod method;
                    private final NonEmptyMap<LocaleId, String> urls;

                    public Url(NonEmptyMap<LocaleId, String> urls, ButtonComponent.UrlMethod method) {
                        o.h(urls, "urls");
                        o.h(method, "method");
                        this.urls = urls;
                        this.method = method;
                    }

                    /* JADX WARN: Multi-variable type inference failed */
                    public static /* synthetic */ Url copy$default(Url url, NonEmptyMap nonEmptyMap, ButtonComponent.UrlMethod urlMethod, int i6, Object obj) {
                        if ((i6 & 1) != 0) {
                            nonEmptyMap = url.urls;
                        }
                        if ((i6 & 2) != 0) {
                            urlMethod = url.method;
                        }
                        return url.copy(nonEmptyMap, urlMethod);
                    }

                    public final NonEmptyMap<LocaleId, String> component1() {
                        return this.urls;
                    }

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

                    public final Url copy(NonEmptyMap<LocaleId, String> urls, ButtonComponent.UrlMethod method) {
                        o.h(urls, "urls");
                        o.h(method, "method");
                        return new Url(urls, method);
                    }

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

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

                    public final /* synthetic */ NonEmptyMap getUrls() {
                        return this.urls;
                    }

                    public int hashCode() {
                        return this.method.hashCode() + (this.urls.hashCode() * 31);
                    }

                    public String toString() {
                        return "Url(urls=" + this.urls + ", method=" + this.method + ')';
                    }
                }
            }

            public NavigateTo(Destination destination) {
                o.h(destination, "destination");
                this.destination = 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 + ')';
            }
        }

        @StabilityInferred(parameters = 1)
        public static final class RestorePurchases implements Action {
            public static final int $stable = 0;
            public static final RestorePurchases INSTANCE = new RestorePurchases();

            private RestorePurchases() {
            }
        }

        @StabilityInferred(parameters = 0)
        public static final class WebCheckout implements Action {
            public static final int $stable = 8;
            private final boolean autoDismiss;
            private final ButtonComponent.UrlMethod openMethod;
            private final Package rcPackage;

            public WebCheckout(Package r22, boolean z6, ButtonComponent.UrlMethod openMethod) {
                o.h(openMethod, "openMethod");
                this.rcPackage = r22;
                this.autoDismiss = z6;
                this.openMethod = openMethod;
            }

            public static /* synthetic */ WebCheckout copy$default(WebCheckout webCheckout, Package r12, boolean z6, ButtonComponent.UrlMethod urlMethod, int i6, Object obj) {
                if ((i6 & 1) != 0) {
                    r12 = webCheckout.rcPackage;
                }
                if ((i6 & 2) != 0) {
                    z6 = webCheckout.autoDismiss;
                }
                if ((i6 & 4) != 0) {
                    urlMethod = webCheckout.openMethod;
                }
                return webCheckout.copy(r12, z6, urlMethod);
            }

            public final Package component1() {
                return this.rcPackage;
            }

            public final boolean component2() {
                return this.autoDismiss;
            }

            public final ButtonComponent.UrlMethod component3() {
                return this.openMethod;
            }

            public final WebCheckout copy(Package r22, boolean z6, ButtonComponent.UrlMethod openMethod) {
                o.h(openMethod, "openMethod");
                return new WebCheckout(r22, z6, openMethod);
            }

            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
                if (!(obj instanceof WebCheckout)) {
                    return false;
                }
                WebCheckout webCheckout = (WebCheckout) obj;
                return o.c(this.rcPackage, webCheckout.rcPackage) && this.autoDismiss == webCheckout.autoDismiss && this.openMethod == webCheckout.openMethod;
            }

            public final boolean getAutoDismiss() {
                return this.autoDismiss;
            }

            public final ButtonComponent.UrlMethod getOpenMethod() {
                return this.openMethod;
            }

            public final Package getRcPackage() {
                return this.rcPackage;
            }

            public int hashCode() {
                Package r02 = this.rcPackage;
                return this.openMethod.hashCode() + a.f((r02 == null ? 0 : r02.hashCode()) * 31, 31, this.autoDismiss);
            }

            public String toString() {
                return "WebCheckout(rcPackage=" + this.rcPackage + ", autoDismiss=" + this.autoDismiss + ", openMethod=" + this.openMethod + ')';
            }
        }

        @StabilityInferred(parameters = 1)
        public static final class WebProductSelection implements Action {
            public static final int $stable = 0;
            private final boolean autoDismiss;
            private final ButtonComponent.UrlMethod openMethod;

            public WebProductSelection(boolean z6, ButtonComponent.UrlMethod openMethod) {
                o.h(openMethod, "openMethod");
                this.autoDismiss = z6;
                this.openMethod = openMethod;
            }

            public static /* synthetic */ WebProductSelection copy$default(WebProductSelection webProductSelection, boolean z6, ButtonComponent.UrlMethod urlMethod, int i6, Object obj) {
                if ((i6 & 1) != 0) {
                    z6 = webProductSelection.autoDismiss;
                }
                if ((i6 & 2) != 0) {
                    urlMethod = webProductSelection.openMethod;
                }
                return webProductSelection.copy(z6, urlMethod);
            }

            public final boolean component1() {
                return this.autoDismiss;
            }

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

            public final WebProductSelection copy(boolean z6, ButtonComponent.UrlMethod openMethod) {
                o.h(openMethod, "openMethod");
                return new WebProductSelection(z6, openMethod);
            }

            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
                if (!(obj instanceof WebProductSelection)) {
                    return false;
                }
                WebProductSelection webProductSelection = (WebProductSelection) obj;
                return this.autoDismiss == webProductSelection.autoDismiss && this.openMethod == webProductSelection.openMethod;
            }

            public final boolean getAutoDismiss() {
                return this.autoDismiss;
            }

            public final ButtonComponent.UrlMethod getOpenMethod() {
                return this.openMethod;
            }

            public int hashCode() {
                return this.openMethod.hashCode() + (Boolean.hashCode(this.autoDismiss) * 31);
            }

            public String toString() {
                return "WebProductSelection(autoDismiss=" + this.autoDismiss + ", openMethod=" + this.openMethod + ')';
            }
        }

        @StabilityInferred(parameters = 0)
        public static final class PurchasePackage implements Action {
            public static final int $stable = 8;
            private final Package rcPackage;
            private final ResolvedOffer resolvedOffer;

            public PurchasePackage(Package r12, ResolvedOffer resolvedOffer) {
                this.rcPackage = r12;
                this.resolvedOffer = resolvedOffer;
            }

            public static /* synthetic */ PurchasePackage copy$default(PurchasePackage purchasePackage, Package r12, ResolvedOffer resolvedOffer, int i6, Object obj) {
                if ((i6 & 1) != 0) {
                    r12 = purchasePackage.rcPackage;
                }
                if ((i6 & 2) != 0) {
                    resolvedOffer = purchasePackage.resolvedOffer;
                }
                return purchasePackage.copy(r12, resolvedOffer);
            }

            public final Package component1() {
                return this.rcPackage;
            }

            public final ResolvedOffer component2() {
                return this.resolvedOffer;
            }

            public final PurchasePackage copy(Package r22, ResolvedOffer resolvedOffer) {
                return new PurchasePackage(r22, resolvedOffer);
            }

            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
                if (!(obj instanceof PurchasePackage)) {
                    return false;
                }
                PurchasePackage purchasePackage = (PurchasePackage) obj;
                return o.c(this.rcPackage, purchasePackage.rcPackage) && o.c(this.resolvedOffer, purchasePackage.resolvedOffer);
            }

            public final Package getRcPackage() {
                return this.rcPackage;
            }

            public final ResolvedOffer getResolvedOffer() {
                return this.resolvedOffer;
            }

            public int hashCode() {
                Package r02 = this.rcPackage;
                int iHashCode = (r02 == null ? 0 : r02.hashCode()) * 31;
                ResolvedOffer resolvedOffer = this.resolvedOffer;
                return iHashCode + (resolvedOffer != null ? resolvedOffer.hashCode() : 0);
            }

            public String toString() {
                return "PurchasePackage(rcPackage=" + this.rcPackage + ", resolvedOffer=" + this.resolvedOffer + ')';
            }

            public /* synthetic */ PurchasePackage(Package r12, ResolvedOffer resolvedOffer, int i6, h hVar) {
                this(r12, (i6 & 2) != 0 ? null : resolvedOffer);
            }
        }
    }

    public /* synthetic */ ButtonComponentStyle(StackComponentStyle stackComponentStyle, Action action, PaywallTransition paywallTransition, int i6, h hVar) {
        this(stackComponentStyle, action, (i6 & 4) != 0 ? null : paywallTransition);
    }
}
