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

import androidx.compose.runtime.internal.StabilityInferred;
import kotlin.jvm.internal.o;
import q.AbstractC2761L;

/* JADX INFO: loaded from: classes3.dex */
@StabilityInferred(parameters = 1)
public final class CountdownState {
    public static final int $stable = 0;
    private final CountdownTime countdownTime;
    private final boolean hasEnded;

    public CountdownState(CountdownTime countdownTime, boolean z6) {
        o.h(countdownTime, "countdownTime");
        this.countdownTime = countdownTime;
        this.hasEnded = z6;
    }

    public static /* synthetic */ CountdownState copy$default(CountdownState countdownState, CountdownTime countdownTime, boolean z6, int i6, Object obj) {
        if ((i6 & 1) != 0) {
            countdownTime = countdownState.countdownTime;
        }
        if ((i6 & 2) != 0) {
            z6 = countdownState.hasEnded;
        }
        return countdownState.copy(countdownTime, z6);
    }

    public final CountdownTime component1() {
        return this.countdownTime;
    }

    public final boolean component2() {
        return this.hasEnded;
    }

    public final CountdownState copy(CountdownTime countdownTime, boolean z6) {
        o.h(countdownTime, "countdownTime");
        return new CountdownState(countdownTime, z6);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof CountdownState)) {
            return false;
        }
        CountdownState countdownState = (CountdownState) obj;
        return o.c(this.countdownTime, countdownState.countdownTime) && this.hasEnded == countdownState.hasEnded;
    }

    public final CountdownTime getCountdownTime() {
        return this.countdownTime;
    }

    public final boolean getHasEnded() {
        return this.hasEnded;
    }

    public int hashCode() {
        return Boolean.hashCode(this.hasEnded) + (this.countdownTime.hashCode() * 31);
    }

    public String toString() {
        StringBuilder sb = new StringBuilder("CountdownState(countdownTime=");
        sb.append(this.countdownTime);
        sb.append(", hasEnded=");
        return AbstractC2761L.h(sb, this.hasEnded, ')');
    }
}
