package com.debridstream.tv;

import androidx.compose.runtime.internal.StabilityInferred;
import com.google.android.recaptcha.internal.a;
import java.util.List;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.o;
import x4.y;

/* JADX INFO: loaded from: classes.dex */
@StabilityInferred(parameters = 0)
public final class HomeUiState {
    public static final int $stable = 8;
    private final String error;
    private final boolean isLoading;
    private final List<HomeSection> sections;

    public HomeUiState() {
        this(null, false, null, 7, null);
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ HomeUiState copy$default(HomeUiState homeUiState, List list, boolean z6, String str, int i6, Object obj) {
        if ((i6 & 1) != 0) {
            list = homeUiState.sections;
        }
        if ((i6 & 2) != 0) {
            z6 = homeUiState.isLoading;
        }
        if ((i6 & 4) != 0) {
            str = homeUiState.error;
        }
        return homeUiState.copy(list, z6, str);
    }

    public final List<HomeSection> component1() {
        return this.sections;
    }

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

    public final String component3() {
        return this.error;
    }

    public final HomeUiState copy(List<HomeSection> sections, boolean z6, String str) {
        o.h(sections, "sections");
        return new HomeUiState(sections, z6, str);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof HomeUiState)) {
            return false;
        }
        HomeUiState homeUiState = (HomeUiState) obj;
        return o.c(this.sections, homeUiState.sections) && this.isLoading == homeUiState.isLoading && o.c(this.error, homeUiState.error);
    }

    public final String getError() {
        return this.error;
    }

    public final List<HomeSection> getSections() {
        return this.sections;
    }

    public int hashCode() {
        int iF = a.f(this.sections.hashCode() * 31, 31, this.isLoading);
        String str = this.error;
        return iF + (str == null ? 0 : str.hashCode());
    }

    public final boolean isLoading() {
        return this.isLoading;
    }

    public String toString() {
        List<HomeSection> list = this.sections;
        boolean z6 = this.isLoading;
        String str = this.error;
        StringBuilder sb = new StringBuilder("HomeUiState(sections=");
        sb.append(list);
        sb.append(", isLoading=");
        sb.append(z6);
        sb.append(", error=");
        return a.n(sb, str, ")");
    }

    public HomeUiState(List<HomeSection> sections, boolean z6, String str) {
        o.h(sections, "sections");
        this.sections = sections;
        this.isLoading = z6;
        this.error = str;
    }

    public /* synthetic */ HomeUiState(List list, boolean z6, String str, int i6, h hVar) {
        this((i6 & 1) != 0 ? y.f26065a : list, (i6 & 2) != 0 ? true : z6, (i6 & 4) != 0 ? null : str);
    }
}
