package com.revenuecat.purchases.paywalls.components.properties;

import androidx.compose.runtime.Immutable;
import com.revenuecat.purchases.InternalRevenueCatAPI;
import g5.a;
import i5.g;
import j5.b;
import k5.a0;
import kotlin.jvm.internal.h;
import w4.InterfaceC3141c;

/* JADX INFO: loaded from: classes3.dex */
@Immutable
@InternalRevenueCatAPI
public final class Padding {
    private final double bottom;
    private final double leading;
    private final double top;
    private final double trailing;
    public static final Companion Companion = new Companion(null);
    private static final Padding zero = new Padding(0.0d, 0.0d, 0.0d, 0.0d);

    /* JADX INFO: renamed from: default, reason: not valid java name */
    private static final Padding f5default = new Padding(10.0d, 10.0d, 20.0d, 20.0d);

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

        public final /* synthetic */ Padding getDefault() {
            return Padding.f5default;
        }

        public final /* synthetic */ Padding getZero() {
            return Padding.zero;
        }

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

        private Companion() {
        }
    }

    public Padding() {
        this(0.0d, 0.0d, 0.0d, 0.0d, 15, (h) null);
    }

    public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(Padding padding, b bVar, g gVar) {
        if (bVar.g(gVar) || Double.compare(padding.top, 0.0d) != 0) {
            bVar.r(gVar, 0, padding.top);
        }
        if (bVar.g(gVar) || Double.compare(padding.bottom, 0.0d) != 0) {
            bVar.r(gVar, 1, padding.bottom);
        }
        if (bVar.g(gVar) || Double.compare(padding.leading, 0.0d) != 0) {
            bVar.r(gVar, 2, padding.leading);
        }
        if (!bVar.g(gVar) && Double.compare(padding.trailing, 0.0d) == 0) {
            return;
        }
        bVar.r(gVar, 3, padding.trailing);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof Padding)) {
            return false;
        }
        Padding padding = (Padding) obj;
        return Double.compare(this.top, padding.top) == 0 && Double.compare(this.bottom, padding.bottom) == 0 && Double.compare(this.leading, padding.leading) == 0 && Double.compare(this.trailing, padding.trailing) == 0;
    }

    public final /* synthetic */ double getBottom() {
        return this.bottom;
    }

    public final /* synthetic */ double getLeading() {
        return this.leading;
    }

    public final /* synthetic */ double getTop() {
        return this.top;
    }

    public final /* synthetic */ double getTrailing() {
        return this.trailing;
    }

    public int hashCode() {
        return Double.hashCode(this.trailing) + ((Double.hashCode(this.leading) + ((Double.hashCode(this.bottom) + (Double.hashCode(this.top) * 31)) * 31)) * 31);
    }

    public String toString() {
        return "Padding(top=" + this.top + ", bottom=" + this.bottom + ", leading=" + this.leading + ", trailing=" + this.trailing + ')';
    }

    public Padding(double d6, double d7, double d8, double d9) {
        this.top = d6;
        this.bottom = d7;
        this.leading = d8;
        this.trailing = d9;
    }

    @InterfaceC3141c
    public /* synthetic */ Padding(int i6, double d6, double d7, double d8, double d9, a0 a0Var) {
        if ((i6 & 1) == 0) {
            this.top = 0.0d;
        } else {
            this.top = d6;
        }
        if ((i6 & 2) == 0) {
            this.bottom = 0.0d;
        } else {
            this.bottom = d7;
        }
        if ((i6 & 4) == 0) {
            this.leading = 0.0d;
        } else {
            this.leading = d8;
        }
        if ((i6 & 8) == 0) {
            this.trailing = 0.0d;
        } else {
            this.trailing = d9;
        }
    }

    public /* synthetic */ Padding(double d6, double d7, double d8, double d9, int i6, h hVar) {
        this((i6 & 1) != 0 ? 0.0d : d6, (i6 & 2) != 0 ? 0.0d : d7, (i6 & 4) != 0 ? 0.0d : d8, (i6 & 8) != 0 ? 0.0d : d9);
    }
}
