导航菜单

页面标题

页面副标题

Crafto v9.3.3 - PaymentSheet.java 源代码

正在查看: Crafto v9.3.3 应用的 PaymentSheet.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.stripe.android.paymentsheet;

import K.N;
import P2.K;
import P2.L;
import android.content.Context;
import android.content.res.ColorStateList;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.activity.ComponentActivity;
import androidx.fragment.app.Fragment;
import c0.u0;
import com.stripe.android.paymentsheet.analytics.PaymentSheetEvent;
import com.stripe.android.paymentsheet.flowcontroller.FlowControllerFactory;
import com.stripe.android.paymentsheet.model.PaymentOption;
import com.stripe.android.ui.core.PaymentsThemeDefaults;
import com.stripe.android.ui.core.PaymentsThemeKt;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import w0.T;
import w0.V;

@Metadata
public final class PaymentSheet {
    public static final int $stable = 8;

    @NotNull
    private final PaymentSheetLauncher paymentSheetLauncher;

    @Metadata
    public static final class Address implements Parcelable {
        private final String city;
        private final String country;
        private final String line1;
        private final String line2;
        private final String postalCode;
        private final String state;

        @NotNull
        public static final Parcelable.Creator<Address> CREATOR = new Creator();
        public static final int $stable = 8;

        @Metadata
        public static final class Builder {
            public static final int $stable = 8;
            private String city;
            private String country;
            private String line1;
            private String line2;
            private String postalCode;
            private String state;

            @NotNull
            public final Address build() {
                return new Address(this.city, this.country, this.line1, this.line2, this.postalCode, this.state);
            }

            @NotNull
            public final Builder city(String str) {
                this.city = str;
                return this;
            }

            @NotNull
            public final Builder country(String str) {
                this.country = str;
                return this;
            }

            @NotNull
            public final Builder line1(String str) {
                this.line1 = str;
                return this;
            }

            @NotNull
            public final Builder line2(String str) {
                this.line2 = str;
                return this;
            }

            @NotNull
            public final Builder postalCode(String str) {
                this.postalCode = str;
                return this;
            }

            @NotNull
            public final Builder state(String str) {
                this.state = str;
                return this;
            }
        }

        @Metadata
        public static final class Creator implements Parcelable.Creator<Address> {
            @Override
            @NotNull
            public final Address createFromParcel(@NotNull Parcel parcel) {
                Intrinsics.checkNotNullParameter(parcel, "parcel");
                return new Address(parcel.readString(), parcel.readString(), parcel.readString(), parcel.readString(), parcel.readString(), parcel.readString());
            }

            @Override
            @NotNull
            public final Address[] newArray(int i) {
                return new Address[i];
            }
        }

        public Address() {
            this(null, null, null, null, null, null, 63, null);
        }

        public static Address copy$default(Address address, String str, String str2, String str3, String str4, String str5, String str6, int i, Object obj) {
            if ((i & 1) != 0) {
                str = address.city;
            }
            if ((i & 2) != 0) {
                str2 = address.country;
            }
            String str7 = str2;
            if ((i & 4) != 0) {
                str3 = address.line1;
            }
            String str8 = str3;
            if ((i & 8) != 0) {
                str4 = address.line2;
            }
            String str9 = str4;
            if ((i & 16) != 0) {
                str5 = address.postalCode;
            }
            String str10 = str5;
            if ((i & 32) != 0) {
                str6 = address.state;
            }
            return address.copy(str, str7, str8, str9, str10, str6);
        }

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

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

        public final String component3() {
            return this.line1;
        }

        public final String component4() {
            return this.line2;
        }

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

        public final String component6() {
            return this.state;
        }

        @NotNull
        public final Address copy(String str, String str2, String str3, String str4, String str5, String str6) {
            return new Address(str, str2, str3, str4, str5, str6);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof Address)) {
                return false;
            }
            Address address = (Address) obj;
            return Intrinsics.areEqual(this.city, address.city) && Intrinsics.areEqual(this.country, address.country) && Intrinsics.areEqual(this.line1, address.line1) && Intrinsics.areEqual(this.line2, address.line2) && Intrinsics.areEqual(this.postalCode, address.postalCode) && Intrinsics.areEqual(this.state, address.state);
        }

        public final String getCity() {
            return this.city;
        }

        public final String getCountry() {
            return this.country;
        }

        public final String getLine1() {
            return this.line1;
        }

        public final String getLine2() {
            return this.line2;
        }

        public final String getPostalCode() {
            return this.postalCode;
        }

        public final String getState() {
            return this.state;
        }

        public int hashCode() {
            String str = this.city;
            int hashCode = (str == null ? 0 : str.hashCode()) * 31;
            String str2 = this.country;
            int hashCode2 = (hashCode + (str2 == null ? 0 : str2.hashCode())) * 31;
            String str3 = this.line1;
            int hashCode3 = (hashCode2 + (str3 == null ? 0 : str3.hashCode())) * 31;
            String str4 = this.line2;
            int hashCode4 = (hashCode3 + (str4 == null ? 0 : str4.hashCode())) * 31;
            String str5 = this.postalCode;
            int hashCode5 = (hashCode4 + (str5 == null ? 0 : str5.hashCode())) * 31;
            String str6 = this.state;
            return hashCode5 + (str6 != null ? str6.hashCode() : 0);
        }

        @NotNull
        public String toString() {
            StringBuilder sb = new StringBuilder("Address(city=");
            sb.append(this.city);
            sb.append(", country=");
            sb.append(this.country);
            sb.append(", line1=");
            sb.append(this.line1);
            sb.append(", line2=");
            sb.append(this.line2);
            sb.append(", postalCode=");
            sb.append(this.postalCode);
            sb.append(", state=");
            return u0.a(sb, this.state, ')');
        }

        @Override
        public void writeToParcel(@NotNull Parcel parcel, int i) {
            Intrinsics.checkNotNullParameter(parcel, "out");
            parcel.writeString(this.city);
            parcel.writeString(this.country);
            parcel.writeString(this.line1);
            parcel.writeString(this.line2);
            parcel.writeString(this.postalCode);
            parcel.writeString(this.state);
        }

        public Address(String str, String str2, String str3, String str4, String str5, String str6) {
            this.city = str;
            this.country = str2;
            this.line1 = str3;
            this.line2 = str4;
            this.postalCode = str5;
            this.state = str6;
        }

        public Address(String str, String str2, String str3, String str4, String str5, String str6, int i, DefaultConstructorMarker defaultConstructorMarker) {
            this((i & 1) != 0 ? null : str, (i & 2) != 0 ? null : str2, (i & 4) != 0 ? null : str3, (i & 8) != 0 ? null : str4, (i & 16) != 0 ? null : str5, (i & 32) != 0 ? null : str6);
        }
    }

    @Metadata
    public static final class Appearance implements Parcelable {
        public static final int $stable = 0;

        @NotNull
        public static final Parcelable.Creator<Appearance> CREATOR = new Creator();

        @NotNull
        private final Colors colorsDark;

        @NotNull
        private final Colors colorsLight;

        @NotNull
        private final PrimaryButton primaryButton;

        @NotNull
        private final Shapes shapes;

        @NotNull
        private final Typography typography;

        @Metadata
        public static final class Builder {
            public static final int $stable = 8;

            @NotNull
            private Colors colorsDark;

            @NotNull
            private Colors colorsLight;

            @NotNull
            private PrimaryButton primaryButton;

            @NotNull
            private Shapes shapes;

            @NotNull
            private Typography typography;

            public Builder() {
                Colors.Companion companion = Colors.Companion;
                this.colorsLight = companion.getDefaultLight();
                this.colorsDark = companion.getDefaultDark();
                this.shapes = Shapes.Companion.getDefault();
                this.typography = Typography.Companion.getDefault();
                this.primaryButton = new PrimaryButton(null, null, null, null, 15, null);
            }

            @NotNull
            public final Builder colorsDark(@NotNull Colors colors) {
                Intrinsics.checkNotNullParameter(colors, "colors");
                this.colorsDark = colors;
                return this;
            }

            @NotNull
            public final Builder colorsLight(@NotNull Colors colors) {
                Intrinsics.checkNotNullParameter(colors, "colors");
                this.colorsLight = colors;
                return this;
            }

            @NotNull
            public final Builder primaryButton(@NotNull PrimaryButton primaryButton) {
                Intrinsics.checkNotNullParameter(primaryButton, "primaryButton");
                this.primaryButton = primaryButton;
                return this;
            }

            @NotNull
            public final Builder shapes(@NotNull Shapes shapes) {
                Intrinsics.checkNotNullParameter(shapes, "shapes");
                this.shapes = shapes;
                return this;
            }

            @NotNull
            public final Builder typography(@NotNull Typography typography) {
                Intrinsics.checkNotNullParameter(typography, "typography");
                this.typography = typography;
                return this;
            }
        }

        @Metadata
        public static final class Creator implements Parcelable.Creator<Appearance> {
            @Override
            @NotNull
            public final Appearance createFromParcel(@NotNull Parcel parcel) {
                Intrinsics.checkNotNullParameter(parcel, "parcel");
                Parcelable.Creator<Colors> creator = Colors.CREATOR;
                return new Appearance(creator.createFromParcel(parcel), creator.createFromParcel(parcel), Shapes.CREATOR.createFromParcel(parcel), Typography.CREATOR.createFromParcel(parcel), PrimaryButton.CREATOR.createFromParcel(parcel));
            }

            @Override
            @NotNull
            public final Appearance[] newArray(int i) {
                return new Appearance[i];
            }
        }

        public Appearance() {
            this(null, null, null, null, null, 31, null);
        }

        public static Appearance copy$default(Appearance appearance, Colors colors, Colors colors2, Shapes shapes, Typography typography, PrimaryButton primaryButton, int i, Object obj) {
            if ((i & 1) != 0) {
                colors = appearance.colorsLight;
            }
            if ((i & 2) != 0) {
                colors2 = appearance.colorsDark;
            }
            Colors colors3 = colors2;
            if ((i & 4) != 0) {
                shapes = appearance.shapes;
            }
            Shapes shapes2 = shapes;
            if ((i & 8) != 0) {
                typography = appearance.typography;
            }
            Typography typography2 = typography;
            if ((i & 16) != 0) {
                primaryButton = appearance.primaryButton;
            }
            return appearance.copy(colors, colors3, shapes2, typography2, primaryButton);
        }

        @NotNull
        public final Colors component1() {
            return this.colorsLight;
        }

        @NotNull
        public final Colors component2() {
            return this.colorsDark;
        }

        @NotNull
        public final Shapes component3() {
            return this.shapes;
        }

        @NotNull
        public final Typography component4() {
            return this.typography;
        }

        @NotNull
        public final PrimaryButton component5() {
            return this.primaryButton;
        }

        @NotNull
        public final Appearance copy(@NotNull Colors colors, @NotNull Colors colors2, @NotNull Shapes shapes, @NotNull Typography typography, @NotNull PrimaryButton primaryButton) {
            Intrinsics.checkNotNullParameter(colors, PaymentSheetEvent.FIELD_COLORS_LIGHT);
            Intrinsics.checkNotNullParameter(colors2, PaymentSheetEvent.FIELD_COLORS_DARK);
            Intrinsics.checkNotNullParameter(shapes, "shapes");
            Intrinsics.checkNotNullParameter(typography, "typography");
            Intrinsics.checkNotNullParameter(primaryButton, "primaryButton");
            return new Appearance(colors, colors2, shapes, typography, primaryButton);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof Appearance)) {
                return false;
            }
            Appearance appearance = (Appearance) obj;
            return Intrinsics.areEqual(this.colorsLight, appearance.colorsLight) && Intrinsics.areEqual(this.colorsDark, appearance.colorsDark) && Intrinsics.areEqual(this.shapes, appearance.shapes) && Intrinsics.areEqual(this.typography, appearance.typography) && Intrinsics.areEqual(this.primaryButton, appearance.primaryButton);
        }

        @NotNull
        public final Colors getColors(boolean z) {
            return z ? this.colorsDark : this.colorsLight;
        }

        @NotNull
        public final Colors getColorsDark() {
            return this.colorsDark;
        }

        @NotNull
        public final Colors getColorsLight() {
            return this.colorsLight;
        }

        @NotNull
        public final PrimaryButton getPrimaryButton() {
            return this.primaryButton;
        }

        @NotNull
        public final Shapes getShapes() {
            return this.shapes;
        }

        @NotNull
        public final Typography getTypography() {
            return this.typography;
        }

        public int hashCode() {
            return this.primaryButton.hashCode() + ((this.typography.hashCode() + ((this.shapes.hashCode() + ((this.colorsDark.hashCode() + (this.colorsLight.hashCode() * 31)) * 31)) * 31)) * 31);
        }

        @NotNull
        public String toString() {
            return "Appearance(colorsLight=" + this.colorsLight + ", colorsDark=" + this.colorsDark + ", shapes=" + this.shapes + ", typography=" + this.typography + ", primaryButton=" + this.primaryButton + ')';
        }

        @Override
        public void writeToParcel(@NotNull Parcel parcel, int i) {
            Intrinsics.checkNotNullParameter(parcel, "out");
            this.colorsLight.writeToParcel(parcel, i);
            this.colorsDark.writeToParcel(parcel, i);
            this.shapes.writeToParcel(parcel, i);
            this.typography.writeToParcel(parcel, i);
            this.primaryButton.writeToParcel(parcel, i);
        }

        public Appearance(@NotNull Colors colors, @NotNull Colors colors2, @NotNull Shapes shapes, @NotNull Typography typography, @NotNull PrimaryButton primaryButton) {
            Intrinsics.checkNotNullParameter(colors, PaymentSheetEvent.FIELD_COLORS_LIGHT);
            Intrinsics.checkNotNullParameter(colors2, PaymentSheetEvent.FIELD_COLORS_DARK);
            Intrinsics.checkNotNullParameter(shapes, "shapes");
            Intrinsics.checkNotNullParameter(typography, "typography");
            Intrinsics.checkNotNullParameter(primaryButton, "primaryButton");
            this.colorsLight = colors;
            this.colorsDark = colors2;
            this.shapes = shapes;
            this.typography = typography;
            this.primaryButton = primaryButton;
        }

        public Appearance(Colors colors, Colors colors2, Shapes shapes, Typography typography, PrimaryButton primaryButton, int i, DefaultConstructorMarker defaultConstructorMarker) {
            this((i & 1) != 0 ? Colors.Companion.getDefaultLight() : colors, (i & 2) != 0 ? Colors.Companion.getDefaultDark() : colors2, (i & 4) != 0 ? Shapes.Companion.getDefault() : shapes, (i & 8) != 0 ? Typography.Companion.getDefault() : typography, (i & 16) != 0 ? new PrimaryButton(null, null, null, null, 15, null) : primaryButton);
        }
    }

    @Metadata
    public static final class BillingDetails implements Parcelable {
        public static final int $stable = 0;

        @NotNull
        public static final Parcelable.Creator<BillingDetails> CREATOR = new Creator();
        private final Address address;
        private final String email;
        private final String name;
        private final String phone;

        @Metadata
        public static final class Builder {
            public static final int $stable = 8;
            private Address address;
            private String email;
            private String name;
            private String phone;

            @NotNull
            public final Builder address(Address address) {
                this.address = address;
                return this;
            }

            @NotNull
            public final BillingDetails build() {
                return new BillingDetails(this.address, this.email, this.name, this.phone);
            }

            @NotNull
            public final Builder email(String str) {
                this.email = str;
                return this;
            }

            @NotNull
            public final Builder name(String str) {
                this.name = str;
                return this;
            }

            @NotNull
            public final Builder phone(String str) {
                this.phone = str;
                return this;
            }

            @NotNull
            public final Builder address(@NotNull Address.Builder builder) {
                Intrinsics.checkNotNullParameter(builder, "addressBuilder");
                this.address = builder.build();
                return this;
            }
        }

        @Metadata
        public static final class Creator implements Parcelable.Creator<BillingDetails> {
            @Override
            @NotNull
            public final BillingDetails createFromParcel(@NotNull Parcel parcel) {
                Intrinsics.checkNotNullParameter(parcel, "parcel");
                return new BillingDetails(parcel.readInt() == 0 ? null : Address.CREATOR.createFromParcel(parcel), parcel.readString(), parcel.readString(), parcel.readString());
            }

            @Override
            @NotNull
            public final BillingDetails[] newArray(int i) {
                return new BillingDetails[i];
            }
        }

        public BillingDetails() {
            this(null, null, null, null, 15, null);
        }

        public static BillingDetails copy$default(BillingDetails billingDetails, Address address, String str, String str2, String str3, int i, Object obj) {
            if ((i & 1) != 0) {
                address = billingDetails.address;
            }
            if ((i & 2) != 0) {
                str = billingDetails.email;
            }
            if ((i & 4) != 0) {
                str2 = billingDetails.name;
            }
            if ((i & 8) != 0) {
                str3 = billingDetails.phone;
            }
            return billingDetails.copy(address, str, str2, str3);
        }

        public final Address component1() {
            return this.address;
        }

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

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

        public final String component4() {
            return this.phone;
        }

        @NotNull
        public final BillingDetails copy(Address address, String str, String str2, String str3) {
            return new BillingDetails(address, str, str2, str3);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof BillingDetails)) {
                return false;
            }
            BillingDetails billingDetails = (BillingDetails) obj;
            return Intrinsics.areEqual(this.address, billingDetails.address) && Intrinsics.areEqual(this.email, billingDetails.email) && Intrinsics.areEqual(this.name, billingDetails.name) && Intrinsics.areEqual(this.phone, billingDetails.phone);
        }

        public final Address getAddress() {
            return this.address;
        }

        public final String getEmail() {
            return this.email;
        }

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

        public final String getPhone() {
            return this.phone;
        }

        public int hashCode() {
            Address address = this.address;
            int hashCode = (address == null ? 0 : address.hashCode()) * 31;
            String str = this.email;
            int hashCode2 = (hashCode + (str == null ? 0 : str.hashCode())) * 31;
            String str2 = this.name;
            int hashCode3 = (hashCode2 + (str2 == null ? 0 : str2.hashCode())) * 31;
            String str3 = this.phone;
            return hashCode3 + (str3 != null ? str3.hashCode() : 0);
        }

        @NotNull
        public String toString() {
            StringBuilder sb = new StringBuilder("BillingDetails(address=");
            sb.append(this.address);
            sb.append(", email=");
            sb.append(this.email);
            sb.append(", name=");
            sb.append(this.name);
            sb.append(", phone=");
            return u0.a(sb, this.phone, ')');
        }

        @Override
        public void writeToParcel(@NotNull Parcel parcel, int i) {
            Intrinsics.checkNotNullParameter(parcel, "out");
            Address address = this.address;
            if (address == null) {
                parcel.writeInt(0);
            } else {
                parcel.writeInt(1);
                address.writeToParcel(parcel, i);
            }
            parcel.writeString(this.email);
            parcel.writeString(this.name);
            parcel.writeString(this.phone);
        }

        public BillingDetails(Address address, String str, String str2, String str3) {
            this.address = address;
            this.email = str;
            this.name = str2;
            this.phone = str3;
        }

        public BillingDetails(Address address, String str, String str2, String str3, int i, DefaultConstructorMarker defaultConstructorMarker) {
            this((i & 1) != 0 ? null : address, (i & 2) != 0 ? null : str, (i & 4) != 0 ? null : str2, (i & 8) != 0 ? null : str3);
        }
    }

    @Metadata
    public static final class Colors implements Parcelable {

        @NotNull
        private static final Colors defaultDark;

        @NotNull
        private static final Colors defaultLight;
        private final int appBarIcon;
        private final int component;
        private final int componentBorder;
        private final int componentDivider;
        private final int error;
        private final int onComponent;
        private final int onSurface;
        private final int placeholderText;
        private final int primary;
        private final int subtitle;
        private final int surface;

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

        @NotNull
        public static final Parcelable.Creator<Colors> CREATOR = new Creator();
        public static final int $stable = 8;

        @Metadata
        public static final class Companion {
            public Companion(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            @NotNull
            public final Colors getDefaultDark() {
                return Colors.defaultDark;
            }

            @NotNull
            public final Colors getDefaultLight() {
                return Colors.defaultLight;
            }

            private Companion() {
            }
        }

        @Metadata
        public static final class Creator implements Parcelable.Creator<Colors> {
            @Override
            @NotNull
            public final Colors createFromParcel(@NotNull Parcel parcel) {
                Intrinsics.checkNotNullParameter(parcel, "parcel");
                return new Colors(parcel.readInt(), parcel.readInt(), parcel.readInt(), parcel.readInt(), parcel.readInt(), parcel.readInt(), parcel.readInt(), parcel.readInt(), parcel.readInt(), parcel.readInt(), parcel.readInt());
            }

            @Override
            @NotNull
            public final Colors[] newArray(int i) {
                return new Colors[i];
            }
        }

        static {
            PaymentsThemeDefaults paymentsThemeDefaults = PaymentsThemeDefaults.INSTANCE;
            defaultLight = new Colors(paymentsThemeDefaults.getColorsLight().getMaterialColors().g(), paymentsThemeDefaults.getColorsLight().getMaterialColors().i(), paymentsThemeDefaults.getColorsLight().getComponent-0d7_KjU(), paymentsThemeDefaults.getColorsLight().getComponentBorder-0d7_KjU(), paymentsThemeDefaults.getColorsLight().getComponentDivider-0d7_KjU(), paymentsThemeDefaults.getColorsLight().getOnComponent-0d7_KjU(), paymentsThemeDefaults.getColorsLight().getSubtitle-0d7_KjU(), paymentsThemeDefaults.getColorsLight().getPlaceholderText-0d7_KjU(), paymentsThemeDefaults.getColorsLight().getMaterialColors().f(), paymentsThemeDefaults.getColorsLight().getAppBarIcon-0d7_KjU(), paymentsThemeDefaults.getColorsLight().getMaterialColors().c(), null);
            defaultDark = new Colors(paymentsThemeDefaults.getColorsDark().getMaterialColors().g(), paymentsThemeDefaults.getColorsDark().getMaterialColors().i(), paymentsThemeDefaults.getColorsDark().getComponent-0d7_KjU(), paymentsThemeDefaults.getColorsDark().getComponentBorder-0d7_KjU(), paymentsThemeDefaults.getColorsDark().getComponentDivider-0d7_KjU(), paymentsThemeDefaults.getColorsDark().getOnComponent-0d7_KjU(), paymentsThemeDefaults.getColorsDark().getSubtitle-0d7_KjU(), paymentsThemeDefaults.getColorsDark().getPlaceholderText-0d7_KjU(), paymentsThemeDefaults.getColorsDark().getMaterialColors().f(), paymentsThemeDefaults.getColorsDark().getAppBarIcon-0d7_KjU(), paymentsThemeDefaults.getColorsDark().getMaterialColors().c(), null);
        }

        public Colors(long j, long j2, long j3, long j4, long j5, long j6, long j7, long j8, long j9, long j10, long j11, DefaultConstructorMarker defaultConstructorMarker) {
            this(j, j2, j3, j4, j5, j6, j7, j8, j9, j10, j11);
        }

        public final int component1() {
            return this.primary;
        }

        public final int component10() {
            return this.appBarIcon;
        }

        public final int component11() {
            return this.error;
        }

        public final int component2() {
            return this.surface;
        }

        public final int component3() {
            return this.component;
        }

        public final int component4() {
            return this.componentBorder;
        }

        public final int component5() {
            return this.componentDivider;
        }

        public final int component6() {
            return this.onComponent;
        }

        public final int component7() {
            return this.onSurface;
        }

        public final int component8() {
            return this.subtitle;
        }

        public final int component9() {
            return this.placeholderText;
        }

        @NotNull
        public final Colors copy(int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, int i10, int i11) {
            return new Colors(i, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof Colors)) {
                return false;
            }
            Colors colors = (Colors) obj;
            return this.primary == colors.primary && this.surface == colors.surface && this.component == colors.component && this.componentBorder == colors.componentBorder && this.componentDivider == colors.componentDivider && this.onComponent == colors.onComponent && this.onSurface == colors.onSurface && this.subtitle == colors.subtitle && this.placeholderText == colors.placeholderText && this.appBarIcon == colors.appBarIcon && this.error == colors.error;
        }

        public final int getAppBarIcon() {
            return this.appBarIcon;
        }

        public final int getComponent() {
            return this.component;
        }

        public final int getComponentBorder() {
            return this.componentBorder;
        }

        public final int getComponentDivider() {
            return this.componentDivider;
        }

        public final int getError() {
            return this.error;
        }

        public final int getOnComponent() {
            return this.onComponent;
        }

        public final int getOnSurface() {
            return this.onSurface;
        }

        public final int getPlaceholderText() {
            return this.placeholderText;
        }

        public final int getPrimary() {
            return this.primary;
        }

        public final int getSubtitle() {
            return this.subtitle;
        }

        public final int getSurface() {
            return this.surface;
        }

        public int hashCode() {
            return (((((((((((((((((((this.primary * 31) + this.surface) * 31) + this.component) * 31) + this.componentBorder) * 31) + this.componentDivider) * 31) + this.onComponent) * 31) + this.onSurface) * 31) + this.subtitle) * 31) + this.placeholderText) * 31) + this.appBarIcon) * 31) + this.error;
        }

        @NotNull
        public String toString() {
            StringBuilder sb = new StringBuilder("Colors(primary=");
            sb.append(this.primary);
            sb.append(", surface=");
            sb.append(this.surface);
            sb.append(", component=");
            sb.append(this.component);
            sb.append(", componentBorder=");
            sb.append(this.componentBorder);
            sb.append(", componentDivider=");
            sb.append(this.componentDivider);
            sb.append(", onComponent=");
            sb.append(this.onComponent);
            sb.append(", onSurface=");
            sb.append(this.onSurface);
            sb.append(", subtitle=");
            sb.append(this.subtitle);
            sb.append(", placeholderText=");
            sb.append(this.placeholderText);
            sb.append(", appBarIcon=");
            sb.append(this.appBarIcon);
            sb.append(", error=");
            return f.b.a(sb, this.error, ')');
        }

        @Override
        public void writeToParcel(@NotNull Parcel parcel, int i) {
            Intrinsics.checkNotNullParameter(parcel, "out");
            parcel.writeInt(this.primary);
            parcel.writeInt(this.surface);
            parcel.writeInt(this.component);
            parcel.writeInt(this.componentBorder);
            parcel.writeInt(this.componentDivider);
            parcel.writeInt(this.onComponent);
            parcel.writeInt(this.onSurface);
            parcel.writeInt(this.subtitle);
            parcel.writeInt(this.placeholderText);
            parcel.writeInt(this.appBarIcon);
            parcel.writeInt(this.error);
        }

        public Colors(int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, int i10, int i11) {
            this.primary = i;
            this.surface = i2;
            this.component = i3;
            this.componentBorder = i4;
            this.componentDivider = i5;
            this.onComponent = i6;
            this.onSurface = i7;
            this.subtitle = i8;
            this.placeholderText = i9;
            this.appBarIcon = i10;
            this.error = i11;
        }

        private Colors(long j, long j2, long j3, long j4, long j5, long j6, long j7, long j8, long j9, long j10, long j11) {
            this(V.i(j), V.i(j2), V.i(j3), V.i(j4), V.i(j5), V.i(j6), V.i(j9), V.i(j7), V.i(j8), V.i(j10), V.i(j11));
        }
    }

    @Metadata
    public static final class Configuration implements Parcelable {
        private final boolean allowsDelayedPaymentMethods;

        @NotNull
        private final Appearance appearance;
        private final CustomerConfiguration customer;
        private final BillingDetails defaultBillingDetails;
        private final GooglePayConfiguration googlePay;

        @NotNull
        private final String merchantDisplayName;
        private final ColorStateList primaryButtonColor;

        @NotNull
        public static final Parcelable.Creator<Configuration> CREATOR = new Creator();
        public static final int $stable = 8;

        @Metadata
        public static final class Builder {
            public static final int $stable = 8;
            private boolean allowsDelayedPaymentMethods;

            @NotNull
            private Appearance appearance;
            private CustomerConfiguration customer;
            private BillingDetails defaultBillingDetails;
            private GooglePayConfiguration googlePay;

            @NotNull
            private String merchantDisplayName;
            private ColorStateList primaryButtonColor;

            public Builder(@NotNull String str) {
                Intrinsics.checkNotNullParameter(str, "merchantDisplayName");
                this.merchantDisplayName = str;
                this.appearance = new Appearance(null, null, null, null, null, 31, null);
            }

            @NotNull
            public final Builder allowsDelayedPaymentMethods(boolean z) {
                this.allowsDelayedPaymentMethods = z;
                return this;
            }

            @NotNull
            public final Builder appearance(@NotNull Appearance appearance) {
                Intrinsics.checkNotNullParameter(appearance, PaymentSheetEvent.FIELD_APPEARANCE);
                this.appearance = appearance;
                return this;
            }

            @NotNull
            public final Configuration build() {
                return new Configuration(this.merchantDisplayName, this.customer, this.googlePay, this.primaryButtonColor, this.defaultBillingDetails, this.allowsDelayedPaymentMethods, this.appearance);
            }

            @NotNull
            public final Builder customer(CustomerConfiguration customerConfiguration) {
                this.customer = customerConfiguration;
                return this;
            }

            @NotNull
            public final Builder defaultBillingDetails(BillingDetails billingDetails) {
                this.defaultBillingDetails = billingDetails;
                return this;
            }

            @NotNull
            public final Builder googlePay(GooglePayConfiguration googlePayConfiguration) {
                this.googlePay = googlePayConfiguration;
                return this;
            }

            @NotNull
            public final Builder merchantDisplayName(@NotNull String str) {
                Intrinsics.checkNotNullParameter(str, "merchantDisplayName");
                this.merchantDisplayName = str;
                return this;
            }

            @Hk.e
            @NotNull
            public final Builder primaryButtonColor(ColorStateList colorStateList) {
                this.primaryButtonColor = colorStateList;
                return this;
            }
        }

        @Metadata
        public static final class Creator implements Parcelable.Creator<Configuration> {
            @Override
            @NotNull
            public final Configuration createFromParcel(@NotNull Parcel parcel) {
                Intrinsics.checkNotNullParameter(parcel, "parcel");
                return new Configuration(parcel.readString(), parcel.readInt() == 0 ? null : CustomerConfiguration.CREATOR.createFromParcel(parcel), parcel.readInt() == 0 ? null : GooglePayConfiguration.CREATOR.createFromParcel(parcel), (ColorStateList) parcel.readParcelable(Configuration.class.getClassLoader()), parcel.readInt() != 0 ? BillingDetails.CREATOR.createFromParcel(parcel) : null, parcel.readInt() != 0, Appearance.CREATOR.createFromParcel(parcel));
            }

            @Override
            @NotNull
            public final Configuration[] newArray(int i) {
                return new Configuration[i];
            }
        }

        public Configuration(@NotNull String str) {
            this(str, null, null, null, null, false, null, 126, null);
            Intrinsics.checkNotNullParameter(str, "merchantDisplayName");
        }

        public static Configuration copy$default(Configuration configuration, String str, CustomerConfiguration customerConfiguration, GooglePayConfiguration googlePayConfiguration, ColorStateList colorStateList, BillingDetails billingDetails, boolean z, Appearance appearance, int i, Object obj) {
            if ((i & 1) != 0) {
                str = configuration.merchantDisplayName;
            }
            if ((i & 2) != 0) {
                customerConfiguration = configuration.customer;
            }
            CustomerConfiguration customerConfiguration2 = customerConfiguration;
            if ((i & 4) != 0) {
                googlePayConfiguration = configuration.googlePay;
            }
            GooglePayConfiguration googlePayConfiguration2 = googlePayConfiguration;
            if ((i & 8) != 0) {
                colorStateList = configuration.primaryButtonColor;
            }
            ColorStateList colorStateList2 = colorStateList;
            if ((i & 16) != 0) {
                billingDetails = configuration.defaultBillingDetails;
            }
            BillingDetails billingDetails2 = billingDetails;
            if ((i & 32) != 0) {
                z = configuration.allowsDelayedPaymentMethods;
            }
            boolean z2 = z;
            if ((i & 64) != 0) {
                appearance = configuration.appearance;
            }
            return configuration.copy(str, customerConfiguration2, googlePayConfiguration2, colorStateList2, billingDetails2, z2, appearance);
        }

        @NotNull
        public final String component1() {
            return this.merchantDisplayName;
        }

        public final CustomerConfiguration component2() {
            return this.customer;
        }

        public final GooglePayConfiguration component3() {
            return this.googlePay;
        }

        public final ColorStateList component4() {
            return this.primaryButtonColor;
        }

        public final BillingDetails component5() {
            return this.defaultBillingDetails;
        }

        public final boolean component6() {
            return this.allowsDelayedPaymentMethods;
        }

        @NotNull
        public final Appearance component7() {
            return this.appearance;
        }

        @NotNull
        public final Configuration copy(@NotNull String str, CustomerConfiguration customerConfiguration, GooglePayConfiguration googlePayConfiguration, ColorStateList colorStateList, BillingDetails billingDetails, boolean z, @NotNull Appearance appearance) {
            Intrinsics.checkNotNullParameter(str, "merchantDisplayName");
            Intrinsics.checkNotNullParameter(appearance, PaymentSheetEvent.FIELD_APPEARANCE);
            return new Configuration(str, customerConfiguration, googlePayConfiguration, colorStateList, billingDetails, z, appearance);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof Configuration)) {
                return false;
            }
            Configuration configuration = (Configuration) obj;
            return Intrinsics.areEqual(this.merchantDisplayName, configuration.merchantDisplayName) && Intrinsics.areEqual(this.customer, configuration.customer) && Intrinsics.areEqual(this.googlePay, configuration.googlePay) && Intrinsics.areEqual(this.primaryButtonColor, configuration.primaryButtonColor) && Intrinsics.areEqual(this.defaultBillingDetails, configuration.defaultBillingDetails) && this.allowsDelayedPaymentMethods == configuration.allowsDelayedPaymentMethods && Intrinsics.areEqual(this.appearance, configuration.appearance);
        }

        public final boolean getAllowsDelayedPaymentMethods() {
            return this.allowsDelayedPaymentMethods;
        }

        @NotNull
        public final Appearance getAppearance() {
            return this.appearance;
        }

        public final CustomerConfiguration getCustomer() {
            return this.customer;
        }

        public final BillingDetails getDefaultBillingDetails() {
            return this.defaultBillingDetails;
        }

        public final GooglePayConfiguration getGooglePay() {
            return this.googlePay;
        }

        @NotNull
        public final String getMerchantDisplayName() {
            return this.merchantDisplayName;
        }

        public final ColorStateList getPrimaryButtonColor() {
            return this.primaryButtonColor;
        }

        public int hashCode() {
            int hashCode = this.merchantDisplayName.hashCode() * 31;
            CustomerConfiguration customerConfiguration = this.customer;
            int hashCode2 = (hashCode + (customerConfiguration == null ? 0 : customerConfiguration.hashCode())) * 31;
            GooglePayConfiguration googlePayConfiguration = this.googlePay;
            int hashCode3 = (hashCode2 + (googlePayConfiguration == null ? 0 : googlePayConfiguration.hashCode())) * 31;
            ColorStateList colorStateList = this.primaryButtonColor;
            int hashCode4 = (hashCode3 + (colorStateList == null ? 0 : colorStateList.hashCode())) * 31;
            BillingDetails billingDetails = this.defaultBillingDetails;
            int hashCode5 = (hashCode4 + (billingDetails != null ? billingDetails.hashCode() : 0)) * 31;
            boolean z = this.allowsDelayedPaymentMethods;
            int i = z;
            if (z != 0) {
                i = 1;
            }
            return this.appearance.hashCode() + ((hashCode5 + i) * 31);
        }

        @NotNull
        public String toString() {
            return "Configuration(merchantDisplayName=" + this.merchantDisplayName + ", customer=" + this.customer + ", googlePay=" + this.googlePay + ", primaryButtonColor=" + this.primaryButtonColor + ", defaultBillingDetails=" + this.defaultBillingDetails + ", allowsDelayedPaymentMethods=" + this.allowsDelayedPaymentMethods + ", appearance=" + this.appearance + ')';
        }

        @Override
        public void writeToParcel(@NotNull Parcel parcel, int i) {
            Intrinsics.checkNotNullParameter(parcel, "out");
            parcel.writeString(this.merchantDisplayName);
            CustomerConfiguration customerConfiguration = this.customer;
            if (customerConfiguration == null) {
                parcel.writeInt(0);
            } else {
                parcel.writeInt(1);
                customerConfiguration.writeToParcel(parcel, i);
            }
            GooglePayConfiguration googlePayConfiguration = this.googlePay;
            if (googlePayConfiguration == null) {
                parcel.writeInt(0);
            } else {
                parcel.writeInt(1);
                googlePayConfiguration.writeToParcel(parcel, i);
            }
            parcel.writeParcelable(this.primaryButtonColor, i);
            BillingDetails billingDetails = this.defaultBillingDetails;
            if (billingDetails == null) {
                parcel.writeInt(0);
            } else {
                parcel.writeInt(1);
                billingDetails.writeToParcel(parcel, i);
            }
            parcel.writeInt(this.allowsDelayedPaymentMethods ? 1 : 0);
            this.appearance.writeToParcel(parcel, i);
        }

        public Configuration(@NotNull String str, CustomerConfiguration customerConfiguration) {
            this(str, customerConfiguration, null, null, null, false, null, 124, null);
            Intrinsics.checkNotNullParameter(str, "merchantDisplayName");
        }

        public Configuration(@NotNull String str, CustomerConfiguration customerConfiguration, GooglePayConfiguration googlePayConfiguration) {
            this(str, customerConfiguration, googlePayConfiguration, null, null, false, null, 120, null);
            Intrinsics.checkNotNullParameter(str, "merchantDisplayName");
        }

        public Configuration(@NotNull String str, CustomerConfiguration customerConfiguration, GooglePayConfiguration googlePayConfiguration, ColorStateList colorStateList) {
            this(str, customerConfiguration, googlePayConfiguration, colorStateList, null, false, null, 112, null);
            Intrinsics.checkNotNullParameter(str, "merchantDisplayName");
        }

        public Configuration(@NotNull String str, CustomerConfiguration customerConfiguration, GooglePayConfiguration googlePayConfiguration, ColorStateList colorStateList, BillingDetails billingDetails) {
            this(str, customerConfiguration, googlePayConfiguration, colorStateList, billingDetails, false, null, 96, null);
            Intrinsics.checkNotNullParameter(str, "merchantDisplayName");
        }

        public Configuration(@NotNull String str, CustomerConfiguration customerConfiguration, GooglePayConfiguration googlePayConfiguration, ColorStateList colorStateList, BillingDetails billingDetails, boolean z) {
            this(str, customerConfiguration, googlePayConfiguration, colorStateList, billingDetails, z, null, 64, null);
            Intrinsics.checkNotNullParameter(str, "merchantDisplayName");
        }

        public Configuration(@NotNull String str, CustomerConfiguration customerConfiguration, GooglePayConfiguration googlePayConfiguration, ColorStateList colorStateList, BillingDetails billingDetails, boolean z, @NotNull Appearance appearance) {
            Intrinsics.checkNotNullParameter(str, "merchantDisplayName");
            Intrinsics.checkNotNullParameter(appearance, PaymentSheetEvent.FIELD_APPEARANCE);
            this.merchantDisplayName = str;
            this.customer = customerConfiguration;
            this.googlePay = googlePayConfiguration;
            this.primaryButtonColor = colorStateList;
            this.defaultBillingDetails = billingDetails;
            this.allowsDelayedPaymentMethods = z;
            this.appearance = appearance;
        }

        public Configuration(String str, CustomerConfiguration customerConfiguration, GooglePayConfiguration googlePayConfiguration, ColorStateList colorStateList, BillingDetails billingDetails, boolean z, Appearance appearance, int i, DefaultConstructorMarker defaultConstructorMarker) {
            this(str, (i & 2) != 0 ? null : customerConfiguration, (i & 4) != 0 ? null : googlePayConfiguration, (i & 8) != 0 ? null : colorStateList, (i & 16) == 0 ? billingDetails : null, (i & 32) != 0 ? false : z, (i & 64) != 0 ? new Appearance(null, null, null, null, null, 31, null) : appearance);
        }

        @Hk.e
        public static void getPrimaryButtonColor$annotations() {
        }
    }

    @Metadata
    public static final class CustomerConfiguration implements Parcelable {

        @NotNull
        private final String ephemeralKeySecret;

        @NotNull
        private final String id;

        @NotNull
        public static final Parcelable.Creator<CustomerConfiguration> CREATOR = new Creator();
        public static final int $stable = 8;

        @Metadata
        public static final class Creator implements Parcelable.Creator<CustomerConfiguration> {
            @Override
            @NotNull
            public final CustomerConfiguration createFromParcel(@NotNull Parcel parcel) {
                Intrinsics.checkNotNullParameter(parcel, "parcel");
                return new CustomerConfiguration(parcel.readString(), parcel.readString());
            }

            @Override
            @NotNull
            public final CustomerConfiguration[] newArray(int i) {
                return new CustomerConfiguration[i];
            }
        }

        public CustomerConfiguration(@NotNull String str, @NotNull String str2) {
            Intrinsics.checkNotNullParameter(str, "id");
            Intrinsics.checkNotNullParameter(str2, "ephemeralKeySecret");
            this.id = str;
            this.ephemeralKeySecret = str2;
        }

        public static CustomerConfiguration copy$default(CustomerConfiguration customerConfiguration, String str, String str2, int i, Object obj) {
            if ((i & 1) != 0) {
                str = customerConfiguration.id;
            }
            if ((i & 2) != 0) {
                str2 = customerConfiguration.ephemeralKeySecret;
            }
            return customerConfiguration.copy(str, str2);
        }

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

        @NotNull
        public final String component2() {
            return this.ephemeralKeySecret;
        }

        @NotNull
        public final CustomerConfiguration copy(@NotNull String str, @NotNull String str2) {
            Intrinsics.checkNotNullParameter(str, "id");
            Intrinsics.checkNotNullParameter(str2, "ephemeralKeySecret");
            return new CustomerConfiguration(str, str2);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof CustomerConfiguration)) {
                return false;
            }
            CustomerConfiguration customerConfiguration = (CustomerConfiguration) obj;
            return Intrinsics.areEqual(this.id, customerConfiguration.id) && Intrinsics.areEqual(this.ephemeralKeySecret, customerConfiguration.ephemeralKeySecret);
        }

        @NotNull
        public final String getEphemeralKeySecret() {
            return this.ephemeralKeySecret;
        }

        @NotNull
        public final String getId() {
            return this.id;
        }

        public int hashCode() {
            return this.ephemeralKeySecret.hashCode() + (this.id.hashCode() * 31);
        }

        @NotNull
        public String toString() {
            StringBuilder sb = new StringBuilder("CustomerConfiguration(id=");
            sb.append(this.id);
            sb.append(", ephemeralKeySecret=");
            return u0.a(sb, this.ephemeralKeySecret, ')');
        }

        @Override
        public void writeToParcel(@NotNull Parcel parcel, int i) {
            Intrinsics.checkNotNullParameter(parcel, "out");
            parcel.writeString(this.id);
            parcel.writeString(this.ephemeralKeySecret);
        }
    }

    @Metadata
    public interface FlowController {

        @NotNull
        public static final Companion Companion = Companion.$$INSTANCE;

        @Metadata
        public interface ConfigCallback {
            void onConfigured(boolean z, Throwable th);
        }

        @Metadata
        public static final class DefaultImpls {
            public static void configureWithPaymentIntent$default(FlowController flowController, String str, Configuration configuration, ConfigCallback configCallback, int i, Object obj) {
                if (obj != null) {
                    throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: configureWithPaymentIntent");
                }
                if ((i & 2) != 0) {
                    configuration = null;
                }
                flowController.configureWithPaymentIntent(str, configuration, configCallback);
            }

            public static void configureWithSetupIntent$default(FlowController flowController, String str, Configuration configuration, ConfigCallback configCallback, int i, Object obj) {
                if (obj != null) {
                    throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: configureWithSetupIntent");
                }
                if ((i & 2) != 0) {
                    configuration = null;
                }
                flowController.configureWithSetupIntent(str, configuration, configCallback);
            }
        }

        @Metadata
        public static abstract class Result {
            public static final int $stable = 0;

            @Metadata
            public static final class Failure extends Result {
                public static final int $stable = 8;

                @NotNull
                private final Throwable error;

                public Failure(@NotNull Throwable th) {
                    super(null);
                    Intrinsics.checkNotNullParameter(th, "error");
                    this.error = th;
                }

                @NotNull
                public final Throwable getError() {
                    return this.error;
                }
            }

            @Metadata
            public static final class Success extends Result {
                public static final int $stable = 0;

                @NotNull
                public static final Success INSTANCE = new Success();

                private Success() {
                    super(null);
                }
            }

            public Result(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            private Result() {
            }
        }

        void configureWithPaymentIntent(@NotNull String str, Configuration configuration, @NotNull ConfigCallback configCallback);

        void configureWithSetupIntent(@NotNull String str, Configuration configuration, @NotNull ConfigCallback configCallback);

        void confirm();

        PaymentOption getPaymentOption();

        void presentPaymentOptions();

        @Metadata
        public static final class Companion {
            static final Companion $$INSTANCE = new Companion();

            private Companion() {
            }

            @NotNull
            public final FlowController create(@NotNull ComponentActivity componentActivity, @NotNull PaymentOptionCallback paymentOptionCallback, @NotNull PaymentSheetResultCallback paymentSheetResultCallback) {
                Intrinsics.checkNotNullParameter(componentActivity, "activity");
                Intrinsics.checkNotNullParameter(paymentOptionCallback, "paymentOptionCallback");
                Intrinsics.checkNotNullParameter(paymentSheetResultCallback, "paymentResultCallback");
                return new FlowControllerFactory(componentActivity, paymentOptionCallback, paymentSheetResultCallback).create();
            }

            @NotNull
            public final FlowController create(@NotNull Fragment fragment, @NotNull PaymentOptionCallback paymentOptionCallback, @NotNull PaymentSheetResultCallback paymentSheetResultCallback) {
                Intrinsics.checkNotNullParameter(fragment, "fragment");
                Intrinsics.checkNotNullParameter(paymentOptionCallback, "paymentOptionCallback");
                Intrinsics.checkNotNullParameter(paymentSheetResultCallback, "paymentResultCallback");
                return new FlowControllerFactory(fragment, paymentOptionCallback, paymentSheetResultCallback).create();
            }
        }
    }

    @Metadata
    public static final class PrimaryButton implements Parcelable {
        public static final int $stable = 0;

        @NotNull
        public static final Parcelable.Creator<PrimaryButton> CREATOR = new Creator();

        @NotNull
        private final PrimaryButtonColors colorsDark;

        @NotNull
        private final PrimaryButtonColors colorsLight;

        @NotNull
        private final PrimaryButtonShape shape;

        @NotNull
        private final PrimaryButtonTypography typography;

        @Metadata
        public static final class Creator implements Parcelable.Creator<PrimaryButton> {
            @Override
            @NotNull
            public final PrimaryButton createFromParcel(@NotNull Parcel parcel) {
                Intrinsics.checkNotNullParameter(parcel, "parcel");
                Parcelable.Creator<PrimaryButtonColors> creator = PrimaryButtonColors.CREATOR;
                return new PrimaryButton(creator.createFromParcel(parcel), creator.createFromParcel(parcel), PrimaryButtonShape.CREATOR.createFromParcel(parcel), PrimaryButtonTypography.CREATOR.createFromParcel(parcel));
            }

            @Override
            @NotNull
            public final PrimaryButton[] newArray(int i) {
                return new PrimaryButton[i];
            }
        }

        public PrimaryButton() {
            this(null, null, null, null, 15, null);
        }

        public static PrimaryButton copy$default(PrimaryButton primaryButton, PrimaryButtonColors primaryButtonColors, PrimaryButtonColors primaryButtonColors2, PrimaryButtonShape primaryButtonShape, PrimaryButtonTypography primaryButtonTypography, int i, Object obj) {
            if ((i & 1) != 0) {
                primaryButtonColors = primaryButton.colorsLight;
            }
            if ((i & 2) != 0) {
                primaryButtonColors2 = primaryButton.colorsDark;
            }
            if ((i & 4) != 0) {
                primaryButtonShape = primaryButton.shape;
            }
            if ((i & 8) != 0) {
                primaryButtonTypography = primaryButton.typography;
            }
            return primaryButton.copy(primaryButtonColors, primaryButtonColors2, primaryButtonShape, primaryButtonTypography);
        }

        @NotNull
        public final PrimaryButtonColors component1() {
            return this.colorsLight;
        }

        @NotNull
        public final PrimaryButtonColors component2() {
            return this.colorsDark;
        }

        @NotNull
        public final PrimaryButtonShape component3() {
            return this.shape;
        }

        @NotNull
        public final PrimaryButtonTypography component4() {
            return this.typography;
        }

        @NotNull
        public final PrimaryButton copy(@NotNull PrimaryButtonColors primaryButtonColors, @NotNull PrimaryButtonColors primaryButtonColors2, @NotNull PrimaryButtonShape primaryButtonShape, @NotNull PrimaryButtonTypography primaryButtonTypography) {
            Intrinsics.checkNotNullParameter(primaryButtonColors, PaymentSheetEvent.FIELD_COLORS_LIGHT);
            Intrinsics.checkNotNullParameter(primaryButtonColors2, PaymentSheetEvent.FIELD_COLORS_DARK);
            Intrinsics.checkNotNullParameter(primaryButtonShape, "shape");
            Intrinsics.checkNotNullParameter(primaryButtonTypography, "typography");
            return new PrimaryButton(primaryButtonColors, primaryButtonColors2, primaryButtonShape, primaryButtonTypography);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof PrimaryButton)) {
                return false;
            }
            PrimaryButton primaryButton = (PrimaryButton) obj;
            return Intrinsics.areEqual(this.colorsLight, primaryButton.colorsLight) && Intrinsics.areEqual(this.colorsDark, primaryButton.colorsDark) && Intrinsics.areEqual(this.shape, primaryButton.shape) && Intrinsics.areEqual(this.typography, primaryButton.typography);
        }

        @NotNull
        public final PrimaryButtonColors getColorsDark() {
            return this.colorsDark;
        }

        @NotNull
        public final PrimaryButtonColors getColorsLight() {
            return this.colorsLight;
        }

        @NotNull
        public final PrimaryButtonShape getShape() {
            return this.shape;
        }

        @NotNull
        public final PrimaryButtonTypography getTypography() {
            return this.typography;
        }

        public int hashCode() {
            return this.typography.hashCode() + ((this.shape.hashCode() + ((this.colorsDark.hashCode() + (this.colorsLight.hashCode() * 31)) * 31)) * 31);
        }

        @NotNull
        public String toString() {
            return "PrimaryButton(colorsLight=" + this.colorsLight + ", colorsDark=" + this.colorsDark + ", shape=" + this.shape + ", typography=" + this.typography + ')';
        }

        @Override
        public void writeToParcel(@NotNull Parcel parcel, int i) {
            Intrinsics.checkNotNullParameter(parcel, "out");
            this.colorsLight.writeToParcel(parcel, i);
            this.colorsDark.writeToParcel(parcel, i);
            this.shape.writeToParcel(parcel, i);
            this.typography.writeToParcel(parcel, i);
        }

        public PrimaryButton(@NotNull PrimaryButtonColors primaryButtonColors, @NotNull PrimaryButtonColors primaryButtonColors2, @NotNull PrimaryButtonShape primaryButtonShape, @NotNull PrimaryButtonTypography primaryButtonTypography) {
            Intrinsics.checkNotNullParameter(primaryButtonColors, PaymentSheetEvent.FIELD_COLORS_LIGHT);
            Intrinsics.checkNotNullParameter(primaryButtonColors2, PaymentSheetEvent.FIELD_COLORS_DARK);
            Intrinsics.checkNotNullParameter(primaryButtonShape, "shape");
            Intrinsics.checkNotNullParameter(primaryButtonTypography, "typography");
            this.colorsLight = primaryButtonColors;
            this.colorsDark = primaryButtonColors2;
            this.shape = primaryButtonShape;
            this.typography = primaryButtonTypography;
        }

        public PrimaryButton(com.stripe.android.paymentsheet.PaymentSheet.PrimaryButtonColors r3, com.stripe.android.paymentsheet.PaymentSheet.PrimaryButtonColors r4, com.stripe.android.paymentsheet.PaymentSheet.PrimaryButtonShape r5, com.stripe.android.paymentsheet.PaymentSheet.PrimaryButtonTypography r6, int r7, kotlin.jvm.internal.DefaultConstructorMarker r8) {
            throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.paymentsheet.PaymentSheet.PrimaryButton.<init>(com.stripe.android.paymentsheet.PaymentSheet$PrimaryButtonColors, com.stripe.android.paymentsheet.PaymentSheet$PrimaryButtonColors, com.stripe.android.paymentsheet.PaymentSheet$PrimaryButtonShape, com.stripe.android.paymentsheet.PaymentSheet$PrimaryButtonTypography, int, kotlin.jvm.internal.DefaultConstructorMarker):void");
        }
    }

    @Metadata
    public static final class PrimaryButtonColors implements Parcelable {

        @NotNull
        private static final PrimaryButtonColors defaultDark;

        @NotNull
        private static final PrimaryButtonColors defaultLight;
        private final Integer background;
        private final int border;
        private final int onBackground;

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

        @NotNull
        public static final Parcelable.Creator<PrimaryButtonColors> CREATOR = new Creator();
        public static final int $stable = 8;

        @Metadata
        public static final class Companion {
            public Companion(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            @NotNull
            public final PrimaryButtonColors getDefaultDark() {
                return PrimaryButtonColors.defaultDark;
            }

            @NotNull
            public final PrimaryButtonColors getDefaultLight() {
                return PrimaryButtonColors.defaultLight;
            }

            private Companion() {
            }
        }

        @Metadata
        public static final class Creator implements Parcelable.Creator<PrimaryButtonColors> {
            @Override
            @NotNull
            public final PrimaryButtonColors createFromParcel(@NotNull Parcel parcel) {
                Intrinsics.checkNotNullParameter(parcel, "parcel");
                return new PrimaryButtonColors(parcel.readInt() == 0 ? null : Integer.valueOf(parcel.readInt()), parcel.readInt(), parcel.readInt());
            }

            @Override
            @NotNull
            public final PrimaryButtonColors[] newArray(int i) {
                return new PrimaryButtonColors[i];
            }
        }

        static {
            PaymentsThemeDefaults paymentsThemeDefaults = PaymentsThemeDefaults.INSTANCE;
            defaultLight = new PrimaryButtonColors((Integer) null, V.i(paymentsThemeDefaults.getPrimaryButtonStyle().getColorsLight().getOnBackground-0d7_KjU()), V.i(paymentsThemeDefaults.getPrimaryButtonStyle().getColorsLight().getBorder-0d7_KjU()));
            defaultDark = new PrimaryButtonColors((Integer) null, V.i(paymentsThemeDefaults.getPrimaryButtonStyle().getColorsDark().getOnBackground-0d7_KjU()), V.i(paymentsThemeDefaults.getPrimaryButtonStyle().getColorsDark().getBorder-0d7_KjU()));
        }

        public PrimaryButtonColors(T t, long j, long j2, DefaultConstructorMarker defaultConstructorMarker) {
            this(t, j, j2);
        }

        public static PrimaryButtonColors copy$default(PrimaryButtonColors primaryButtonColors, Integer num, int i, int i2, int i3, Object obj) {
            if ((i3 & 1) != 0) {
                num = primaryButtonColors.background;
            }
            if ((i3 & 2) != 0) {
                i = primaryButtonColors.onBackground;
            }
            if ((i3 & 4) != 0) {
                i2 = primaryButtonColors.border;
            }
            return primaryButtonColors.copy(num, i, i2);
        }

        public final Integer component1() {
            return this.background;
        }

        public final int component2() {
            return this.onBackground;
        }

        public final int component3() {
            return this.border;
        }

        @NotNull
        public final PrimaryButtonColors copy(Integer num, int i, int i2) {
            return new PrimaryButtonColors(num, i, i2);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof PrimaryButtonColors)) {
                return false;
            }
            PrimaryButtonColors primaryButtonColors = (PrimaryButtonColors) obj;
            return Intrinsics.areEqual(this.background, primaryButtonColors.background) && this.onBackground == primaryButtonColors.onBackground && this.border == primaryButtonColors.border;
        }

        public final Integer getBackground() {
            return this.background;
        }

        public final int getBorder() {
            return this.border;
        }

        public final int getOnBackground() {
            return this.onBackground;
        }

        public int hashCode() {
            Integer num = this.background;
            return ((((num == null ? 0 : num.hashCode()) * 31) + this.onBackground) * 31) + this.border;
        }

        @NotNull
        public String toString() {
            StringBuilder sb = new StringBuilder("PrimaryButtonColors(background=");
            sb.append(this.background);
            sb.append(", onBackground=");
            sb.append(this.onBackground);
            sb.append(", border=");
            return f.b.a(sb, this.border, ')');
        }

        @Override
        public void writeToParcel(@NotNull Parcel parcel, int i) {
            Intrinsics.checkNotNullParameter(parcel, "out");
            Integer num = this.background;
            if (num == null) {
                parcel.writeInt(0);
            } else {
                L.a(parcel, 1, num);
            }
            parcel.writeInt(this.onBackground);
            parcel.writeInt(this.border);
        }

        public PrimaryButtonColors(Integer num, int i, int i2) {
            this.background = num;
            this.onBackground = i;
            this.border = i2;
        }

        private PrimaryButtonColors(T t, long j, long j2) {
            this(t != null ? Integer.valueOf(V.i(t.a)) : null, V.i(j), V.i(j2));
        }
    }

    @Metadata
    public static final class PrimaryButtonShape implements Parcelable {
        private final Float borderStrokeWidthDp;
        private final Float cornerRadiusDp;

        @NotNull
        public static final Parcelable.Creator<PrimaryButtonShape> CREATOR = new Creator();
        public static final int $stable = 8;

        @Metadata
        public static final class Creator implements Parcelable.Creator<PrimaryButtonShape> {
            @Override
            @NotNull
            public final PrimaryButtonShape createFromParcel(@NotNull Parcel parcel) {
                Intrinsics.checkNotNullParameter(parcel, "parcel");
                return new PrimaryButtonShape(parcel.readInt() == 0 ? null : Float.valueOf(parcel.readFloat()), parcel.readInt() != 0 ? Float.valueOf(parcel.readFloat()) : null);
            }

            @Override
            @NotNull
            public final PrimaryButtonShape[] newArray(int i) {
                return new PrimaryButtonShape[i];
            }
        }

        public PrimaryButtonShape() {
            throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.paymentsheet.PaymentSheet.PrimaryButtonShape.<init>():void");
        }

        public static PrimaryButtonShape copy$default(PrimaryButtonShape primaryButtonShape, Float f, Float f2, int i, Object obj) {
            if ((i & 1) != 0) {
                f = primaryButtonShape.cornerRadiusDp;
            }
            if ((i & 2) != 0) {
                f2 = primaryButtonShape.borderStrokeWidthDp;
            }
            return primaryButtonShape.copy(f, f2);
        }

        public final Float component1() {
            return this.cornerRadiusDp;
        }

        public final Float component2() {
            return this.borderStrokeWidthDp;
        }

        @NotNull
        public final PrimaryButtonShape copy(Float f, Float f2) {
            return new PrimaryButtonShape(f, f2);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof PrimaryButtonShape)) {
                return false;
            }
            PrimaryButtonShape primaryButtonShape = (PrimaryButtonShape) obj;
            return Intrinsics.areEqual(this.cornerRadiusDp, primaryButtonShape.cornerRadiusDp) && Intrinsics.areEqual(this.borderStrokeWidthDp, primaryButtonShape.borderStrokeWidthDp);
        }

        public final Float getBorderStrokeWidthDp() {
            return this.borderStrokeWidthDp;
        }

        public final Float getCornerRadiusDp() {
            return this.cornerRadiusDp;
        }

        public int hashCode() {
            Float f = this.cornerRadiusDp;
            int hashCode = (f == null ? 0 : f.hashCode()) * 31;
            Float f2 = this.borderStrokeWidthDp;
            return hashCode + (f2 != null ? f2.hashCode() : 0);
        }

        @NotNull
        public String toString() {
            return "PrimaryButtonShape(cornerRadiusDp=" + this.cornerRadiusDp + ", borderStrokeWidthDp=" + this.borderStrokeWidthDp + ')';
        }

        @Override
        public void writeToParcel(@NotNull Parcel parcel, int i) {
            Intrinsics.checkNotNullParameter(parcel, "out");
            Float f = this.cornerRadiusDp;
            if (f == null) {
                parcel.writeInt(0);
            } else {
                parcel.writeInt(1);
                parcel.writeFloat(f.floatValue());
            }
            Float f2 = this.borderStrokeWidthDp;
            if (f2 == null) {
                parcel.writeInt(0);
            } else {
                parcel.writeInt(1);
                parcel.writeFloat(f2.floatValue());
            }
        }

        public PrimaryButtonShape(Float f, Float f2) {
            this.cornerRadiusDp = f;
            this.borderStrokeWidthDp = f2;
        }

        public PrimaryButtonShape(Float f, Float f2, int i, DefaultConstructorMarker defaultConstructorMarker) {
            this((i & 1) != 0 ? null : f, (i & 2) != 0 ? null : f2);
        }

        public PrimaryButtonShape(Context context, Integer num, Integer num2, int i, DefaultConstructorMarker defaultConstructorMarker) {
            this(context, (i & 2) != 0 ? null : num, (i & 4) != 0 ? null : num2);
        }

        public PrimaryButtonShape(@NotNull Context context, Integer num, Integer num2) {
            this(num != null ? Float.valueOf(PaymentsThemeKt.getRawValueFromDimenResource(context, num.intValue())) : null, num2 != null ? Float.valueOf(PaymentsThemeKt.getRawValueFromDimenResource(context, num2.intValue())) : null);
            Intrinsics.checkNotNullParameter(context, "context");
        }
    }

    @Metadata
    public static final class PrimaryButtonTypography implements Parcelable {
        private final Integer fontResId;
        private final Float fontSizeSp;

        @NotNull
        public static final Parcelable.Creator<PrimaryButtonTypography> CREATOR = new Creator();
        public static final int $stable = 8;

        @Metadata
        public static final class Creator implements Parcelable.Creator<PrimaryButtonTypography> {
            @Override
            @NotNull
            public final PrimaryButtonTypography createFromParcel(@NotNull Parcel parcel) {
                Intrinsics.checkNotNullParameter(parcel, "parcel");
                return new PrimaryButtonTypography(parcel.readInt() == 0 ? null : Integer.valueOf(parcel.readInt()), parcel.readInt() != 0 ? Float.valueOf(parcel.readFloat()) : null);
            }

            @Override
            @NotNull
            public final PrimaryButtonTypography[] newArray(int i) {
                return new PrimaryButtonTypography[i];
            }
        }

        public PrimaryButtonTypography() {
            this(null, 0 == true ? 1 : 0, 3, 0 == true ? 1 : 0);
        }

        public static PrimaryButtonTypography copy$default(PrimaryButtonTypography primaryButtonTypography, Integer num, Float f, int i, Object obj) {
            if ((i & 1) != 0) {
                num = primaryButtonTypography.fontResId;
            }
            if ((i & 2) != 0) {
                f = primaryButtonTypography.fontSizeSp;
            }
            return primaryButtonTypography.copy(num, f);
        }

        public final Integer component1() {
            return this.fontResId;
        }

        public final Float component2() {
            return this.fontSizeSp;
        }

        @NotNull
        public final PrimaryButtonTypography copy(Integer num, Float f) {
            return new PrimaryButtonTypography(num, f);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof PrimaryButtonTypography)) {
                return false;
            }
            PrimaryButtonTypography primaryButtonTypography = (PrimaryButtonTypography) obj;
            return Intrinsics.areEqual(this.fontResId, primaryButtonTypography.fontResId) && Intrinsics.areEqual(this.fontSizeSp, primaryButtonTypography.fontSizeSp);
        }

        public final Integer getFontResId() {
            return this.fontResId;
        }

        public final Float getFontSizeSp() {
            return this.fontSizeSp;
        }

        public int hashCode() {
            Integer num = this.fontResId;
            int hashCode = (num == null ? 0 : num.hashCode()) * 31;
            Float f = this.fontSizeSp;
            return hashCode + (f != null ? f.hashCode() : 0);
        }

        @NotNull
        public String toString() {
            return "PrimaryButtonTypography(fontResId=" + this.fontResId + ", fontSizeSp=" + this.fontSizeSp + ')';
        }

        @Override
        public void writeToParcel(@NotNull Parcel parcel, int i) {
            Intrinsics.checkNotNullParameter(parcel, "out");
            Integer num = this.fontResId;
            if (num == null) {
                parcel.writeInt(0);
            } else {
                L.a(parcel, 1, num);
            }
            Float f = this.fontSizeSp;
            if (f == null) {
                parcel.writeInt(0);
            } else {
                parcel.writeInt(1);
                parcel.writeFloat(f.floatValue());
            }
        }

        public PrimaryButtonTypography(Integer num, Float f) {
            this.fontResId = num;
            this.fontSizeSp = f;
        }

        public PrimaryButtonTypography(Integer num, Float f, int i, DefaultConstructorMarker defaultConstructorMarker) {
            this((i & 1) != 0 ? null : num, (i & 2) != 0 ? null : f);
        }

        public PrimaryButtonTypography(Context context, Integer num, int i, int i2, DefaultConstructorMarker defaultConstructorMarker) {
            this(context, (i2 & 2) != 0 ? null : num, i);
        }

        public PrimaryButtonTypography(@NotNull Context context, Integer num, int i) {
            this(num, Float.valueOf(PaymentsThemeKt.getRawValueFromDimenResource(context, i)));
            Intrinsics.checkNotNullParameter(context, "context");
        }
    }

    @Metadata
    public static final class Typography implements Parcelable {

        @NotNull
        private static final Typography f25default;
        private final Integer fontResId;
        private final float sizeScaleFactor;

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

        @NotNull
        public static final Parcelable.Creator<Typography> CREATOR = new Creator();
        public static final int $stable = 8;

        @Metadata
        public static final class Companion {
            public Companion(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            @NotNull
            public final Typography getDefault() {
                return Typography.f25default;
            }

            private Companion() {
            }
        }

        @Metadata
        public static final class Creator implements Parcelable.Creator<Typography> {
            @Override
            @NotNull
            public final Typography createFromParcel(@NotNull Parcel parcel) {
                Intrinsics.checkNotNullParameter(parcel, "parcel");
                return new Typography(parcel.readFloat(), parcel.readInt() == 0 ? null : Integer.valueOf(parcel.readInt()));
            }

            @Override
            @NotNull
            public final Typography[] newArray(int i) {
                return new Typography[i];
            }
        }

        static {
            PaymentsThemeDefaults paymentsThemeDefaults = PaymentsThemeDefaults.INSTANCE;
            f25default = new Typography(paymentsThemeDefaults.getTypography().getFontSizeMultiplier(), paymentsThemeDefaults.getTypography().getFontFamily());
        }

        public Typography(float f, Integer num) {
            this.sizeScaleFactor = f;
            this.fontResId = num;
        }

        public static Typography copy$default(Typography typography, float f, Integer num, int i, Object obj) {
            if ((i & 1) != 0) {
                f = typography.sizeScaleFactor;
            }
            if ((i & 2) != 0) {
                num = typography.fontResId;
            }
            return typography.copy(f, num);
        }

        public final float component1() {
            return this.sizeScaleFactor;
        }

        public final Integer component2() {
            return this.fontResId;
        }

        @NotNull
        public final Typography copy(float f, Integer num) {
            return new Typography(f, num);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof Typography)) {
                return false;
            }
            Typography typography = (Typography) obj;
            return Intrinsics.areEqual(Float.valueOf(this.sizeScaleFactor), Float.valueOf(typography.sizeScaleFactor)) && Intrinsics.areEqual(this.fontResId, typography.fontResId);
        }

        public final Integer getFontResId() {
            return this.fontResId;
        }

        public final float getSizeScaleFactor() {
            return this.sizeScaleFactor;
        }

        public int hashCode() {
            int floatToIntBits = Float.floatToIntBits(this.sizeScaleFactor) * 31;
            Integer num = this.fontResId;
            return floatToIntBits + (num == null ? 0 : num.hashCode());
        }

        @NotNull
        public String toString() {
            StringBuilder sb = new StringBuilder("Typography(sizeScaleFactor=");
            sb.append(this.sizeScaleFactor);
            sb.append(", fontResId=");
            return K.a(sb, this.fontResId, ')');
        }

        @Override
        public void writeToParcel(@NotNull Parcel parcel, int i) {
            Intrinsics.checkNotNullParameter(parcel, "out");
            parcel.writeFloat(this.sizeScaleFactor);
            Integer num = this.fontResId;
            if (num == null) {
                parcel.writeInt(0);
            } else {
                L.a(parcel, 1, num);
            }
        }
    }

    public PaymentSheet(@NotNull PaymentSheetLauncher paymentSheetLauncher) {
        Intrinsics.checkNotNullParameter(paymentSheetLauncher, "paymentSheetLauncher");
        this.paymentSheetLauncher = paymentSheetLauncher;
    }

    public static void presentWithPaymentIntent$default(PaymentSheet paymentSheet, String str, Configuration configuration, int i, Object obj) {
        if ((i & 2) != 0) {
            configuration = null;
        }
        paymentSheet.presentWithPaymentIntent(str, configuration);
    }

    public static void presentWithSetupIntent$default(PaymentSheet paymentSheet, String str, Configuration configuration, int i, Object obj) {
        if ((i & 2) != 0) {
            configuration = null;
        }
        paymentSheet.presentWithSetupIntent(str, configuration);
    }

    public final void presentWithPaymentIntent(@NotNull String str) {
        Intrinsics.checkNotNullParameter(str, "paymentIntentClientSecret");
        presentWithPaymentIntent$default(this, str, null, 2, null);
    }

    public final void presentWithSetupIntent(@NotNull String str) {
        Intrinsics.checkNotNullParameter(str, "setupIntentClientSecret");
        presentWithSetupIntent$default(this, str, null, 2, null);
    }

    public final void presentWithPaymentIntent(@NotNull String str, Configuration configuration) {
        Intrinsics.checkNotNullParameter(str, "paymentIntentClientSecret");
        this.paymentSheetLauncher.presentWithPaymentIntent(str, configuration);
    }

    public final void presentWithSetupIntent(@NotNull String str, Configuration configuration) {
        Intrinsics.checkNotNullParameter(str, "setupIntentClientSecret");
        this.paymentSheetLauncher.presentWithSetupIntent(str, configuration);
    }

    @Metadata
    public static final class Shapes implements Parcelable {

        @NotNull
        private static final Shapes f24default;
        private final float borderStrokeWidthDp;
        private final float cornerRadiusDp;

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

        @NotNull
        public static final Parcelable.Creator<Shapes> CREATOR = new Creator();
        public static final int $stable = 8;

        @Metadata
        public static final class Companion {
            public Companion(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            @NotNull
            public final Shapes getDefault() {
                return Shapes.f24default;
            }

            private Companion() {
            }
        }

        @Metadata
        public static final class Creator implements Parcelable.Creator<Shapes> {
            @Override
            @NotNull
            public final Shapes createFromParcel(@NotNull Parcel parcel) {
                Intrinsics.checkNotNullParameter(parcel, "parcel");
                return new Shapes(parcel.readFloat(), parcel.readFloat());
            }

            @Override
            @NotNull
            public final Shapes[] newArray(int i) {
                return new Shapes[i];
            }
        }

        static {
            PaymentsThemeDefaults paymentsThemeDefaults = PaymentsThemeDefaults.INSTANCE;
            f24default = new Shapes(paymentsThemeDefaults.getShapes().getCornerRadius(), paymentsThemeDefaults.getShapes().getBorderStrokeWidth());
        }

        public Shapes(float f, float f2) {
            this.cornerRadiusDp = f;
            this.borderStrokeWidthDp = f2;
        }

        public static Shapes copy$default(Shapes shapes, float f, float f2, int i, Object obj) {
            if ((i & 1) != 0) {
                f = shapes.cornerRadiusDp;
            }
            if ((i & 2) != 0) {
                f2 = shapes.borderStrokeWidthDp;
            }
            return shapes.copy(f, f2);
        }

        public final float component1() {
            return this.cornerRadiusDp;
        }

        public final float component2() {
            return this.borderStrokeWidthDp;
        }

        @NotNull
        public final Shapes copy(float f, float f2) {
            return new Shapes(f, f2);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof Shapes)) {
                return false;
            }
            Shapes shapes = (Shapes) obj;
            return Intrinsics.areEqual(Float.valueOf(this.cornerRadiusDp), Float.valueOf(shapes.cornerRadiusDp)) && Intrinsics.areEqual(Float.valueOf(this.borderStrokeWidthDp), Float.valueOf(shapes.borderStrokeWidthDp));
        }

        public final float getBorderStrokeWidthDp() {
            return this.borderStrokeWidthDp;
        }

        public final float getCornerRadiusDp() {
            return this.cornerRadiusDp;
        }

        public int hashCode() {
            return Float.floatToIntBits(this.borderStrokeWidthDp) + (Float.floatToIntBits(this.cornerRadiusDp) * 31);
        }

        @NotNull
        public String toString() {
            StringBuilder sb = new StringBuilder("Shapes(cornerRadiusDp=");
            sb.append(this.cornerRadiusDp);
            sb.append(", borderStrokeWidthDp=");
            return B.a.b(sb, this.borderStrokeWidthDp, ')');
        }

        @Override
        public void writeToParcel(@NotNull Parcel parcel, int i) {
            Intrinsics.checkNotNullParameter(parcel, "out");
            parcel.writeFloat(this.cornerRadiusDp);
            parcel.writeFloat(this.borderStrokeWidthDp);
        }

        public Shapes(@NotNull Context context, int i, int i2) {
            this(PaymentsThemeKt.getRawValueFromDimenResource(context, i), PaymentsThemeKt.getRawValueFromDimenResource(context, i2));
            Intrinsics.checkNotNullParameter(context, "context");
        }
    }

    public PaymentSheet(@NotNull ComponentActivity componentActivity, @NotNull PaymentSheetResultCallback paymentSheetResultCallback) {
        this(new DefaultPaymentSheetLauncher(componentActivity, paymentSheetResultCallback));
        Intrinsics.checkNotNullParameter(componentActivity, "activity");
        Intrinsics.checkNotNullParameter(paymentSheetResultCallback, "callback");
    }

    @Metadata
    public static final class GooglePayConfiguration implements Parcelable {

        @NotNull
        private final String countryCode;
        private final String currencyCode;

        @NotNull
        private final Environment environment;

        @NotNull
        public static final Parcelable.Creator<GooglePayConfiguration> CREATOR = new Creator();
        public static final int $stable = 8;

        @Metadata
        public static final class Creator implements Parcelable.Creator<GooglePayConfiguration> {
            @Override
            @NotNull
            public final GooglePayConfiguration createFromParcel(@NotNull Parcel parcel) {
                Intrinsics.checkNotNullParameter(parcel, "parcel");
                return new GooglePayConfiguration(Environment.valueOf(parcel.readString()), parcel.readString(), parcel.readString());
            }

            @Override
            @NotNull
            public final GooglePayConfiguration[] newArray(int i) {
                return new GooglePayConfiguration[i];
            }
        }

        @Metadata
        public enum Environment {
            Production,
            Test
        }

        public GooglePayConfiguration(@NotNull Environment environment, @NotNull String str, String str2) {
            Intrinsics.checkNotNullParameter(environment, "environment");
            Intrinsics.checkNotNullParameter(str, "countryCode");
            this.environment = environment;
            this.countryCode = str;
            this.currencyCode = str2;
        }

        public static GooglePayConfiguration copy$default(GooglePayConfiguration googlePayConfiguration, Environment environment, String str, String str2, int i, Object obj) {
            if ((i & 1) != 0) {
                environment = googlePayConfiguration.environment;
            }
            if ((i & 2) != 0) {
                str = googlePayConfiguration.countryCode;
            }
            if ((i & 4) != 0) {
                str2 = googlePayConfiguration.currencyCode;
            }
            return googlePayConfiguration.copy(environment, str, str2);
        }

        @NotNull
        public final Environment component1() {
            return this.environment;
        }

        @NotNull
        public final String component2() {
            return this.countryCode;
        }

        public final String component3() {
            return this.currencyCode;
        }

        @NotNull
        public final GooglePayConfiguration copy(@NotNull Environment environment, @NotNull String str, String str2) {
            Intrinsics.checkNotNullParameter(environment, "environment");
            Intrinsics.checkNotNullParameter(str, "countryCode");
            return new GooglePayConfiguration(environment, str, str2);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof GooglePayConfiguration)) {
                return false;
            }
            GooglePayConfiguration googlePayConfiguration = (GooglePayConfiguration) obj;
            return this.environment == googlePayConfiguration.environment && Intrinsics.areEqual(this.countryCode, googlePayConfiguration.countryCode) && Intrinsics.areEqual(this.currencyCode, googlePayConfiguration.currencyCode);
        }

        @NotNull
        public final String getCountryCode() {
            return this.countryCode;
        }

        public final String getCurrencyCode() {
            return this.currencyCode;
        }

        @NotNull
        public final Environment getEnvironment() {
            return this.environment;
        }

        public int hashCode() {
            int a = N.a(this.environment.hashCode() * 31, 31, this.countryCode);
            String str = this.currencyCode;
            return a + (str == null ? 0 : str.hashCode());
        }

        @NotNull
        public String toString() {
            StringBuilder sb = new StringBuilder("GooglePayConfiguration(environment=");
            sb.append(this.environment);
            sb.append(", countryCode=");
            sb.append(this.countryCode);
            sb.append(", currencyCode=");
            return u0.a(sb, this.currencyCode, ')');
        }

        @Override
        public void writeToParcel(@NotNull Parcel parcel, int i) {
            Intrinsics.checkNotNullParameter(parcel, "out");
            parcel.writeString(this.environment.name());
            parcel.writeString(this.countryCode);
            parcel.writeString(this.currencyCode);
        }

        public GooglePayConfiguration(Environment environment, String str, String str2, int i, DefaultConstructorMarker defaultConstructorMarker) {
            this(environment, str, (i & 4) != 0 ? null : str2);
        }

        public GooglePayConfiguration(@NotNull Environment environment, @NotNull String str) {
            this(environment, str, null);
            Intrinsics.checkNotNullParameter(environment, "environment");
            Intrinsics.checkNotNullParameter(str, "countryCode");
        }
    }

    public PaymentSheet(@NotNull Fragment fragment, @NotNull PaymentSheetResultCallback paymentSheetResultCallback) {
        this(new DefaultPaymentSheetLauncher(fragment, paymentSheetResultCallback));
        Intrinsics.checkNotNullParameter(fragment, "fragment");
        Intrinsics.checkNotNullParameter(paymentSheetResultCallback, "callback");
    }
}