导航菜单

页面标题

页面副标题

Perplexity v2.48.1 - a.java 源代码

正在查看: Perplexity v2.48.1 应用的 a.java JAVA 源代码文件

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


package Kh;

import Gc.o;
import Mh.b;
import Mh.c;
import Mh.d;
import Ri.EnumC0402h;
import android.os.Parcel;
import android.os.Parcelable;
import com.mapbox.common.location.e;
import e.q;
import gm.AbstractC0834i;
import gm.AbstractC0835j;
import java.util.Iterator;
import java.util.List;
import kotlin.NoWhenBranchMatchedException;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.Regex;
import wj.AbstractC1733n0;
import wj.C1709f0;
import wj.C1718i0;
import wj.C1742q0;
import wj.C1744r0;
import wj.C1746s0;
import wj.C1750u0;
import wj.C1756x0;
import wj.G0;
import wj.InterfaceC1748t0;
import xj.C1800a;

public final class a implements Parcelable {
    public static final Parcelable.Creator<a> CREATOR = new o(11);
    public final C1709f0 X;
    public final C1800a Y;
    public final boolean Z;
    public final boolean r0;
    public final C1718i0 s0;
    public final List t0;
    public final boolean u0;
    public final List v0;
    public final String w;
    public final List w0;
    public final C1750u0 x;
    public final AbstractC1733n0 x0;
    public final C1756x0 y;
    public final List y0;
    public final G0 z;

    public a(String merchantDisplayName, C1750u0 c1750u0, C1756x0 c1756x0, G0 link, C1709f0 c1709f0, C1800a c1800a, boolean z, boolean z2, C1718i0 billingDetailsCollectionConfiguration, List preferredNetworks, boolean z3, List paymentMethodOrder, List externalPaymentMethods, AbstractC1733n0 cardBrandAcceptance, List customPaymentMethods) {
        Intrinsics.h(merchantDisplayName, "merchantDisplayName");
        Intrinsics.h(link, "link");
        Intrinsics.h(billingDetailsCollectionConfiguration, "billingDetailsCollectionConfiguration");
        Intrinsics.h(preferredNetworks, "preferredNetworks");
        Intrinsics.h(paymentMethodOrder, "paymentMethodOrder");
        Intrinsics.h(externalPaymentMethods, "externalPaymentMethods");
        Intrinsics.h(cardBrandAcceptance, "cardBrandAcceptance");
        Intrinsics.h(customPaymentMethods, "customPaymentMethods");
        this.w = merchantDisplayName;
        this.x = c1750u0;
        this.y = c1756x0;
        this.z = link;
        this.X = c1709f0;
        this.Y = c1800a;
        this.Z = z;
        this.r0 = z2;
        this.s0 = billingDetailsCollectionConfiguration;
        this.t0 = preferredNetworks;
        this.u0 = z3;
        this.v0 = paymentMethodOrder;
        this.w0 = externalPaymentMethods;
        this.x0 = cardBrandAcceptance;
        this.y0 = customPaymentMethods;
    }

    public final void b() {
        InterfaceC1748t0 interfaceC1748t0;
        String str;
        if (AbstractC0835j.b0(this.w)) {
            throw new IllegalArgumentException("When a Configuration is passed to PaymentSheet, the Merchant display name cannot be an empty string.");
        }
        C1750u0 c1750u0 = this.x;
        if (c1750u0 != null && (str = c1750u0.w) != null && AbstractC0835j.b0(str)) {
            throw new IllegalArgumentException("When a CustomerConfiguration is passed to PaymentSheet, the Customer ID cannot be an empty string.");
        }
        if (c1750u0 == null || (interfaceC1748t0 = c1750u0.y) == null) {
            return;
        }
        if (interfaceC1748t0 instanceof C1746s0) {
            String str2 = ((C1746s0) interfaceC1748t0).w;
            String str3 = c1750u0.x;
            if (!Intrinsics.c(str2, str3)) {
                throw new IllegalArgumentException("Conflicting ephemeralKeySecrets between CustomerConfiguration and CustomerConfiguration.customerAccessType");
            }
            if (AbstractC0835j.b0(str2) || AbstractC0835j.b0(str3)) {
                throw new IllegalArgumentException("When a CustomerConfiguration is passed to PaymentSheet, the ephemeralKeySecret cannot be an empty string.");
            }
            if (!new Regex("^ek_[^_](.)+$").d(str2) || !new Regex("^ek_[^_](.)+$").d(str3)) {
                throw new IllegalArgumentException("`ephemeralKeySecret` format does not match expected client secret formatting");
            }
            return;
        }
        if (!(interfaceC1748t0 instanceof C1744r0)) {
            throw new NoWhenBranchMatchedException();
        }
        String customerSessionClientSecret = ((C1744r0) interfaceC1748t0).w;
        Intrinsics.h(customerSessionClientSecret, "customerSessionClientSecret");
        Object obj = AbstractC0835j.b0(customerSessionClientSecret) ? Mh.a.a : AbstractC0834i.P(customerSessionClientSecret, "ek_", false) ? b.a : !AbstractC0834i.P(customerSessionClientSecret, "cuss_", false) ? c.a : d.a;
        if (obj instanceof Mh.a) {
            throw new IllegalArgumentException("When a CustomerConfiguration is passed to PaymentSheet, the customerSessionClientSecret cannot be an empty string.");
        }
        if (obj instanceof b) {
            throw new IllegalArgumentException("Argument looks like an Ephemeral Key secret, but expecting a CustomerSession client secret. See CustomerSession API: https://docs.stripe.com/api/customer_sessions/create");
        }
        if (obj instanceof c) {
            throw new IllegalArgumentException("Argument does not look like a CustomerSession client secret. See CustomerSession API: https://docs.stripe.com/api/customer_sessions/create");
        }
        if (!(obj instanceof d)) {
            throw new NoWhenBranchMatchedException();
        }
    }

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

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof a)) {
            return false;
        }
        a aVar = (a) obj;
        return Intrinsics.c(this.w, aVar.w) && Intrinsics.c(this.x, aVar.x) && Intrinsics.c(this.y, aVar.y) && Intrinsics.c(this.z, aVar.z) && Intrinsics.c(this.X, aVar.X) && Intrinsics.c(this.Y, aVar.Y) && this.Z == aVar.Z && this.r0 == aVar.r0 && Intrinsics.c(this.s0, aVar.s0) && Intrinsics.c(this.t0, aVar.t0) && this.u0 == aVar.u0 && Intrinsics.c(this.v0, aVar.v0) && Intrinsics.c(this.w0, aVar.w0) && Intrinsics.c(this.x0, aVar.x0) && Intrinsics.c(this.y0, aVar.y0);
    }

    public final int hashCode() {
        int hashCode = this.w.hashCode() * 31;
        C1750u0 c1750u0 = this.x;
        int hashCode2 = (hashCode + (c1750u0 == null ? 0 : c1750u0.hashCode())) * 31;
        C1756x0 c1756x0 = this.y;
        int hashCode3 = (this.z.w.hashCode() + ((hashCode2 + (c1756x0 == null ? 0 : c1756x0.hashCode())) * 31)) * 31;
        C1709f0 c1709f0 = this.X;
        int hashCode4 = (hashCode3 + (c1709f0 == null ? 0 : c1709f0.hashCode())) * 31;
        C1800a c1800a = this.Y;
        return this.y0.hashCode() + ((this.x0.hashCode() + e.c(e.c(e.d(e.c((this.s0.hashCode() + e.d(e.d((hashCode4 + (c1800a != null ? c1800a.hashCode() : 0)) * 31, 31, this.Z), 31, this.r0)) * 31, 31, this.t0), 31, this.u0), 31, this.v0), 31, this.w0)) * 31);
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("CommonConfiguration(merchantDisplayName=");
        sb.append(this.w);
        sb.append(", customer=");
        sb.append(this.x);
        sb.append(", googlePay=");
        sb.append(this.y);
        sb.append(", link=");
        sb.append(this.z);
        sb.append(", defaultBillingDetails=");
        sb.append(this.X);
        sb.append(", shippingDetails=");
        sb.append(this.Y);
        sb.append(", allowsDelayedPaymentMethods=");
        sb.append(this.Z);
        sb.append(", allowsPaymentMethodsRequiringShippingAddress=");
        sb.append(this.r0);
        sb.append(", billingDetailsCollectionConfiguration=");
        sb.append(this.s0);
        sb.append(", preferredNetworks=");
        sb.append(this.t0);
        sb.append(", allowsRemovalOfLastSavedPaymentMethod=");
        sb.append(this.u0);
        sb.append(", paymentMethodOrder=");
        sb.append(this.v0);
        sb.append(", externalPaymentMethods=");
        sb.append(this.w0);
        sb.append(", cardBrandAcceptance=");
        sb.append(this.x0);
        sb.append(", customPaymentMethods=");
        return q.n(sb, this.y0, ")");
    }

    @Override
    public final void writeToParcel(Parcel dest, int i) {
        Intrinsics.h(dest, "dest");
        dest.writeString(this.w);
        C1750u0 c1750u0 = this.x;
        if (c1750u0 == null) {
            dest.writeInt(0);
        } else {
            dest.writeInt(1);
            c1750u0.writeToParcel(dest, i);
        }
        C1756x0 c1756x0 = this.y;
        if (c1756x0 == null) {
            dest.writeInt(0);
        } else {
            dest.writeInt(1);
            c1756x0.writeToParcel(dest, i);
        }
        this.z.writeToParcel(dest, i);
        C1709f0 c1709f0 = this.X;
        if (c1709f0 == null) {
            dest.writeInt(0);
        } else {
            dest.writeInt(1);
            c1709f0.writeToParcel(dest, i);
        }
        C1800a c1800a = this.Y;
        if (c1800a == null) {
            dest.writeInt(0);
        } else {
            dest.writeInt(1);
            c1800a.writeToParcel(dest, i);
        }
        dest.writeInt(this.Z ? 1 : 0);
        dest.writeInt(this.r0 ? 1 : 0);
        this.s0.writeToParcel(dest, i);
        Iterator j = u2.a.j(this.t0, dest);
        while (j.hasNext()) {
            dest.writeString(((EnumC0402h) j.next()).name());
        }
        dest.writeInt(this.u0 ? 1 : 0);
        dest.writeStringList(this.v0);
        dest.writeStringList(this.w0);
        dest.writeParcelable(this.x0, i);
        Iterator j2 = u2.a.j(this.y0, dest);
        while (j2.hasNext()) {
            ((C1742q0) j2.next()).writeToParcel(dest, i);
        }
    }
}