package com.revenuecat.purchases.paywalls.events;

import com.revenuecat.purchases.utils.JsonElementExtensionsKt;
import com.revenuecat.purchases.utils.MapExtensionsKt;
import g5.a;
import i5.g;
import j5.b;
import java.util.Map;
import k5.P;
import k5.a0;
import k5.e0;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.o;
import l5.AbstractC2458c;
import l5.C2457b;
import q.AbstractC2761L;
import w4.InterfaceC3141c;

/* JADX INFO: loaded from: classes3.dex */
public final class PaywallPostReceiptData {
    public static final Companion Companion = new Companion(null);
    private static final C2457b json = AbstractC2458c.f20332d;
    private final boolean darkMode;
    private final String displayMode;
    private final String localeIdentifier;
    private final String offeringId;
    private final String paywallID;
    private final int revision;
    private final String sessionID;

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

        public final C2457b getJson() {
            return PaywallPostReceiptData.json;
        }

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

        private Companion() {
        }
    }

    @InterfaceC3141c
    public /* synthetic */ PaywallPostReceiptData(int i6, String str, String str2, int i7, String str3, boolean z6, String str4, String str5, a0 a0Var) {
        if (127 != (i6 & 127)) {
            P.h(i6, 127, PaywallPostReceiptData$$serializer.INSTANCE.getDescriptor());
            throw null;
        }
        this.paywallID = str;
        this.sessionID = str2;
        this.revision = i7;
        this.displayMode = str3;
        this.darkMode = z6;
        this.localeIdentifier = str4;
        this.offeringId = str5;
    }

    public static /* synthetic */ PaywallPostReceiptData copy$default(PaywallPostReceiptData paywallPostReceiptData, String str, String str2, int i6, String str3, boolean z6, String str4, String str5, int i7, Object obj) {
        if ((i7 & 1) != 0) {
            str = paywallPostReceiptData.paywallID;
        }
        if ((i7 & 2) != 0) {
            str2 = paywallPostReceiptData.sessionID;
        }
        if ((i7 & 4) != 0) {
            i6 = paywallPostReceiptData.revision;
        }
        if ((i7 & 8) != 0) {
            str3 = paywallPostReceiptData.displayMode;
        }
        if ((i7 & 16) != 0) {
            z6 = paywallPostReceiptData.darkMode;
        }
        if ((i7 & 32) != 0) {
            str4 = paywallPostReceiptData.localeIdentifier;
        }
        if ((i7 & 64) != 0) {
            str5 = paywallPostReceiptData.offeringId;
        }
        String str6 = str4;
        String str7 = str5;
        boolean z7 = z6;
        int i8 = i6;
        return paywallPostReceiptData.copy(str, str2, i8, str3, z7, str6, str7);
    }

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

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

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

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

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

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

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

    public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(PaywallPostReceiptData paywallPostReceiptData, b bVar, g gVar) {
        bVar.E(gVar, 0, e0.f20048a, paywallPostReceiptData.paywallID);
        bVar.A(gVar, 1, paywallPostReceiptData.sessionID);
        bVar.w(2, paywallPostReceiptData.revision, gVar);
        bVar.A(gVar, 3, paywallPostReceiptData.displayMode);
        bVar.v(gVar, 4, paywallPostReceiptData.darkMode);
        bVar.A(gVar, 5, paywallPostReceiptData.localeIdentifier);
        bVar.A(gVar, 6, paywallPostReceiptData.offeringId);
    }

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

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

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

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

    public final boolean component5() {
        return this.darkMode;
    }

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

    public final String component7() {
        return this.offeringId;
    }

    public final PaywallPostReceiptData copy(String str, String sessionID, int i6, String displayMode, boolean z6, String localeIdentifier, String offeringId) {
        o.h(sessionID, "sessionID");
        o.h(displayMode, "displayMode");
        o.h(localeIdentifier, "localeIdentifier");
        o.h(offeringId, "offeringId");
        return new PaywallPostReceiptData(str, sessionID, i6, displayMode, z6, localeIdentifier, offeringId);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof PaywallPostReceiptData)) {
            return false;
        }
        PaywallPostReceiptData paywallPostReceiptData = (PaywallPostReceiptData) obj;
        return o.c(this.paywallID, paywallPostReceiptData.paywallID) && o.c(this.sessionID, paywallPostReceiptData.sessionID) && this.revision == paywallPostReceiptData.revision && o.c(this.displayMode, paywallPostReceiptData.displayMode) && this.darkMode == paywallPostReceiptData.darkMode && o.c(this.localeIdentifier, paywallPostReceiptData.localeIdentifier) && o.c(this.offeringId, paywallPostReceiptData.offeringId);
    }

    public final boolean getDarkMode() {
        return this.darkMode;
    }

    public final String getDisplayMode() {
        return this.displayMode;
    }

    public final String getLocaleIdentifier() {
        return this.localeIdentifier;
    }

    public final String getOfferingId() {
        return this.offeringId;
    }

    public final String getPaywallID() {
        return this.paywallID;
    }

    public final int getRevision() {
        return this.revision;
    }

    public final String getSessionID() {
        return this.sessionID;
    }

    public int hashCode() {
        String str = this.paywallID;
        return this.offeringId.hashCode() + AbstractC2761L.b(com.google.android.recaptcha.internal.a.f(AbstractC2761L.b(AbstractC2761L.a(this.revision, AbstractC2761L.b((str == null ? 0 : str.hashCode()) * 31, 31, this.sessionID), 31), 31, this.displayMode), 31, this.darkMode), 31, this.localeIdentifier);
    }

    public final Map<String, Object> toMap() {
        C2457b c2457b = json;
        c2457b.getClass();
        Map<String, Object> mapAsMap = JsonElementExtensionsKt.asMap(c2457b.c(Companion.serializer(), this));
        if (mapAsMap == null) {
            return null;
        }
        return MapExtensionsKt.filterNotNullValues(mapAsMap);
    }

    public String toString() {
        StringBuilder sb = new StringBuilder("PaywallPostReceiptData(paywallID=");
        sb.append(this.paywallID);
        sb.append(", sessionID=");
        sb.append(this.sessionID);
        sb.append(", revision=");
        sb.append(this.revision);
        sb.append(", displayMode=");
        sb.append(this.displayMode);
        sb.append(", darkMode=");
        sb.append(this.darkMode);
        sb.append(", localeIdentifier=");
        sb.append(this.localeIdentifier);
        sb.append(", offeringId=");
        return Z0.o.r(sb, this.offeringId, ')');
    }

    public PaywallPostReceiptData(String str, String sessionID, int i6, String displayMode, boolean z6, String localeIdentifier, String offeringId) {
        o.h(sessionID, "sessionID");
        o.h(displayMode, "displayMode");
        o.h(localeIdentifier, "localeIdentifier");
        o.h(offeringId, "offeringId");
        this.paywallID = str;
        this.sessionID = sessionID;
        this.revision = i6;
        this.displayMode = displayMode;
        this.darkMode = z6;
        this.localeIdentifier = localeIdentifier;
        this.offeringId = offeringId;
    }
}
