package com.revenuecat.purchases;

import android.os.Parcel;
import android.os.Parcelable;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.o;
import q.AbstractC2761L;

/* JADX INFO: loaded from: classes3.dex */
public final class DangerousSettings implements Parcelable {
    private final boolean autoSyncPurchases;
    private final boolean customEntitlementComputation;
    private final boolean uiPreviewMode;
    public static final Companion Companion = new Companion(null);
    public static final Parcelable.Creator<DangerousSettings> CREATOR = new Creator();

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

        @InternalRevenueCatAPI
        public final DangerousSettings forPreviewMode() {
            return new DangerousSettings(false, false, true);
        }

        private Companion() {
        }
    }

    public static final class Creator implements Parcelable.Creator<DangerousSettings> {
        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        public final DangerousSettings createFromParcel(Parcel parcel) {
            o.h(parcel, "parcel");
            return new DangerousSettings(parcel.readInt() != 0, parcel.readInt() != 0, parcel.readInt() != 0);
        }

        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        public final DangerousSettings[] newArray(int i6) {
            return new DangerousSettings[i6];
        }
    }

    public DangerousSettings() {
        this(false, false, false, 7, null);
    }

    @InternalRevenueCatAPI
    public static final DangerousSettings forPreviewMode() {
        return Companion.forPreviewMode();
    }

    @Override // android.os.Parcelable
    public int describeContents() {
        return 0;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof DangerousSettings)) {
            return false;
        }
        DangerousSettings dangerousSettings = (DangerousSettings) obj;
        return this.autoSyncPurchases == dangerousSettings.autoSyncPurchases && this.customEntitlementComputation == dangerousSettings.customEntitlementComputation && this.uiPreviewMode == dangerousSettings.uiPreviewMode;
    }

    public final boolean getAutoSyncPurchases() {
        return this.autoSyncPurchases;
    }

    public final boolean getCustomEntitlementComputation$purchases_defaultsBc8Release() {
        return this.customEntitlementComputation;
    }

    public final boolean getUiPreviewMode$purchases_defaultsBc8Release() {
        return this.uiPreviewMode;
    }

    public int hashCode() {
        return Boolean.hashCode(this.uiPreviewMode) + com.google.android.recaptcha.internal.a.f(Boolean.hashCode(this.autoSyncPurchases) * 31, 31, this.customEntitlementComputation);
    }

    public String toString() {
        StringBuilder sb = new StringBuilder("DangerousSettings(autoSyncPurchases=");
        sb.append(this.autoSyncPurchases);
        sb.append(", customEntitlementComputation=");
        sb.append(this.customEntitlementComputation);
        sb.append(", uiPreviewMode=");
        return AbstractC2761L.h(sb, this.uiPreviewMode, ')');
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel out, int i6) {
        o.h(out, "out");
        out.writeInt(this.autoSyncPurchases ? 1 : 0);
        out.writeInt(this.customEntitlementComputation ? 1 : 0);
        out.writeInt(this.uiPreviewMode ? 1 : 0);
    }

    public DangerousSettings(boolean z6, boolean z7, boolean z8) {
        this.autoSyncPurchases = z6;
        this.customEntitlementComputation = z7;
        this.uiPreviewMode = z8;
    }

    public /* synthetic */ DangerousSettings(boolean z6, boolean z7, boolean z8, int i6, h hVar) {
        this((i6 & 1) != 0 ? true : z6, (i6 & 2) != 0 ? false : z7, (i6 & 4) != 0 ? false : z8);
    }

    public DangerousSettings(boolean z6) {
        this(z6, false, false);
    }

    public /* synthetic */ DangerousSettings(boolean z6, int i6, h hVar) {
        this((i6 & 1) != 0 ? true : z6);
    }
}
