package com.revenuecat.purchases.paywalls.events;

import com.revenuecat.purchases.common.events.FeatureEvent;
import java.util.Date;
import java.util.UUID;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.o;

/* JADX INFO: loaded from: classes3.dex */
public abstract class CustomPaywallEvent implements FeatureEvent {
    public /* synthetic */ CustomPaywallEvent(h hVar) {
        this();
    }

    @Override // com.revenuecat.purchases.common.events.FeatureEvent
    public boolean isPriorityEvent() {
        return true;
    }

    public static final class Impression extends CustomPaywallEvent {
        private final CreationData creationData;
        private final Data data;

        public static final class CreationData {
            private final Date date;
            private final UUID id;

            /* JADX WARN: Multi-variable type inference failed */
            public CreationData() {
                this(null, 0 == true ? 1 : 0, 3, 0 == true ? 1 : 0);
            }

            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
                if (!(obj instanceof CreationData)) {
                    return false;
                }
                CreationData creationData = (CreationData) obj;
                return o.c(this.id, creationData.id) && o.c(this.date, creationData.date);
            }

            public final Date getDate() {
                return this.date;
            }

            public final UUID getId() {
                return this.id;
            }

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

            public String toString() {
                return "CreationData(id=" + this.id + ", date=" + this.date + ')';
            }

            public CreationData(UUID id, Date date) {
                o.h(id, "id");
                o.h(date, "date");
                this.id = id;
                this.date = date;
            }

            /* JADX WARN: Illegal instructions before constructor call */
            public /* synthetic */ CreationData(UUID uuid, Date date, int i6, h hVar) {
                if ((i6 & 1) != 0) {
                    uuid = UUID.randomUUID();
                    o.g(uuid, "randomUUID()");
                }
                this(uuid, (i6 & 2) != 0 ? new Date() : date);
            }
        }

        /* JADX WARN: Multi-variable type inference failed */
        public /* synthetic */ Impression(CreationData creationData, Data data, int i6, h hVar) {
            if ((i6 & 1) != 0) {
                creationData = new CreationData(null, 0 == true ? 1 : 0, 3, 0 == true ? 1 : 0);
            }
            this(creationData, data);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof Impression)) {
                return false;
            }
            Impression impression = (Impression) obj;
            return o.c(this.creationData, impression.creationData) && o.c(this.data, impression.data);
        }

        public final CreationData getCreationData() {
            return this.creationData;
        }

        public final Data getData() {
            return this.data;
        }

        public int hashCode() {
            return this.data.hashCode() + (this.creationData.hashCode() * 31);
        }

        public String toString() {
            return "Impression(creationData=" + this.creationData + ", data=" + this.data + ')';
        }

        public static final class Data {
            private final String offeringId;
            private final String paywallId;

            public Data(String str, String str2) {
                this.paywallId = str;
                this.offeringId = str2;
            }

            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
                if (!(obj instanceof Data)) {
                    return false;
                }
                Data data = (Data) obj;
                return o.c(this.paywallId, data.paywallId) && o.c(this.offeringId, data.offeringId);
            }

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

            public final String getPaywallId() {
                return this.paywallId;
            }

            public int hashCode() {
                String str = this.paywallId;
                int iHashCode = (str == null ? 0 : str.hashCode()) * 31;
                String str2 = this.offeringId;
                return iHashCode + (str2 != null ? str2.hashCode() : 0);
            }

            public String toString() {
                StringBuilder sb = new StringBuilder("Data(paywallId=");
                sb.append(this.paywallId);
                sb.append(", offeringId=");
                return Z0.o.r(sb, this.offeringId, ')');
            }

            public /* synthetic */ Data(String str, String str2, int i6, h hVar) {
                this(str, (i6 & 2) != 0 ? null : str2);
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public Impression(CreationData creationData, Data data) {
            super(null);
            o.h(creationData, "creationData");
            o.h(data, "data");
            this.creationData = creationData;
            this.data = data;
        }
    }

    private CustomPaywallEvent() {
    }
}
