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

import androidx.compose.runtime.internal.StabilityInferred;
import com.google.android.recaptcha.internal.a;
import kotlin.jvm.internal.h;
import q.AbstractC2761L;

/* JADX INFO: loaded from: classes3.dex */
@StabilityInferred(parameters = 1)
public final class CountdownTime {
    public static final int $stable = 0;
    public static final Companion Companion = new Companion(null);
    private static final CountdownTime ZERO = new CountdownTime(0, 0, 0, 0);
    private final int days;
    private final int hours;
    private final int minutes;
    private final int seconds;

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

        public final CountdownTime fromInterval(long j4) {
            long jMax = Math.max(0L, j4 / ((long) 1000));
            long j6 = 86400;
            long j7 = 3600;
            long j8 = 60;
            return new CountdownTime((int) (jMax / j6), (int) ((jMax % j6) / j7), (int) ((jMax % j7) / j8), (int) (jMax % j8));
        }

        public final CountdownTime getZERO() {
            return CountdownTime.ZERO;
        }

        private Companion() {
        }
    }

    public CountdownTime(int i6, int i7, int i8, int i9) {
        this.days = i6;
        this.hours = i7;
        this.minutes = i8;
        this.seconds = i9;
    }

    public static /* synthetic */ CountdownTime copy$default(CountdownTime countdownTime, int i6, int i7, int i8, int i9, int i10, Object obj) {
        if ((i10 & 1) != 0) {
            i6 = countdownTime.days;
        }
        if ((i10 & 2) != 0) {
            i7 = countdownTime.hours;
        }
        if ((i10 & 4) != 0) {
            i8 = countdownTime.minutes;
        }
        if ((i10 & 8) != 0) {
            i9 = countdownTime.seconds;
        }
        return countdownTime.copy(i6, i7, i8, i9);
    }

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

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

    public final int component1() {
        return this.days;
    }

    public final int component2() {
        return this.hours;
    }

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

    public final int component4() {
        return this.seconds;
    }

    public final CountdownTime copy(int i6, int i7, int i8, int i9) {
        return new CountdownTime(i6, i7, i8, i9);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof CountdownTime)) {
            return false;
        }
        CountdownTime countdownTime = (CountdownTime) obj;
        return this.days == countdownTime.days && this.hours == countdownTime.hours && this.minutes == countdownTime.minutes && this.seconds == countdownTime.seconds;
    }

    public final int getDays() {
        return this.days;
    }

    public final int getHours() {
        return this.hours;
    }

    public final int getMinutes() {
        return this.minutes;
    }

    public final int getSeconds() {
        return this.seconds;
    }

    public final int getTotalHours() {
        return (this.days * 24) + this.hours;
    }

    public final int getTotalMinutes() {
        return (this.hours * 60) + (this.days * 1440) + this.minutes;
    }

    public int hashCode() {
        return Integer.hashCode(this.seconds) + AbstractC2761L.a(this.minutes, AbstractC2761L.a(this.hours, Integer.hashCode(this.days) * 31, 31), 31);
    }

    public String toString() {
        StringBuilder sb = new StringBuilder("CountdownTime(days=");
        sb.append(this.days);
        sb.append(", hours=");
        sb.append(this.hours);
        sb.append(", minutes=");
        sb.append(this.minutes);
        sb.append(", seconds=");
        return a.m(sb, this.seconds, ')');
    }
}
