package com.revenuecat.purchases.ui.revenuecatui.components.properties;

import androidx.compose.runtime.Immutable;
import h1.f;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.o;
import q.AbstractC2761L;

/* JADX INFO: loaded from: classes3.dex */
@Immutable
public final class BorderStyle {
    public static final int $stable = 0;
    private final ColorStyle color;
    private final float width;

    public /* synthetic */ BorderStyle(float f6, ColorStyle colorStyle, h hVar) {
        this(f6, colorStyle);
    }

    /* JADX INFO: renamed from: copy-D5KLDUw$default, reason: not valid java name */
    public static /* synthetic */ BorderStyle m717copyD5KLDUw$default(BorderStyle borderStyle, float f6, ColorStyle colorStyle, int i6, Object obj) {
        if ((i6 & 1) != 0) {
            f6 = borderStyle.width;
        }
        if ((i6 & 2) != 0) {
            colorStyle = borderStyle.color;
        }
        return borderStyle.m719copyD5KLDUw(f6, colorStyle);
    }

    /* JADX INFO: renamed from: component1-D9Ej5fM, reason: not valid java name */
    public final float m718component1D9Ej5fM() {
        return this.width;
    }

    public final ColorStyle component2() {
        return this.color;
    }

    /* JADX INFO: renamed from: copy-D5KLDUw, reason: not valid java name */
    public final BorderStyle m719copyD5KLDUw(float f6, ColorStyle color) {
        o.h(color, "color");
        return new BorderStyle(f6, color, null);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof BorderStyle)) {
            return false;
        }
        BorderStyle borderStyle = (BorderStyle) obj;
        return f.c(this.width, borderStyle.width) && o.c(this.color, borderStyle.color);
    }

    public final /* synthetic */ ColorStyle getColor() {
        return this.color;
    }

    /* JADX INFO: renamed from: getWidth-D9Ej5fM, reason: not valid java name */
    public final /* synthetic */ float m720getWidthD9Ej5fM() {
        return this.width;
    }

    public int hashCode() {
        return this.color.hashCode() + (Float.hashCode(this.width) * 31);
    }

    public String toString() {
        StringBuilder sb = new StringBuilder("BorderStyle(width=");
        AbstractC2761L.k(this.width, sb, ", color=");
        sb.append(this.color);
        sb.append(')');
        return sb.toString();
    }

    private BorderStyle(float f6, ColorStyle color) {
        o.h(color, "color");
        this.width = f6;
        this.color = color;
    }
}
