package com.revenuecat.purchases.ui.revenuecatui.composables;

import H4.f;
import I0.AbstractC0303l;
import I0.Z;
import J0.L0;
import J4.c;
import J4.e;
import i0.InterfaceC2255s;
import kotlin.jvm.internal.o;
import q.AbstractC2761L;
import z.k;

/* JADX INFO: loaded from: classes3.dex */
final class ThumbElement extends Z {
    private final boolean checked;
    private final k interactionSource;

    public ThumbElement(k interactionSource, boolean z6) {
        o.h(interactionSource, "interactionSource");
        this.interactionSource = interactionSource;
        this.checked = z6;
    }

    public static /* synthetic */ ThumbElement copy$default(ThumbElement thumbElement, k kVar, boolean z6, int i6, Object obj) {
        if ((i6 & 1) != 0) {
            kVar = thumbElement.interactionSource;
        }
        if ((i6 & 2) != 0) {
            z6 = thumbElement.checked;
        }
        return thumbElement.copy(kVar, z6);
    }

    @Override // i0.InterfaceC2253q, i0.InterfaceC2255s
    public /* bridge */ /* synthetic */ boolean all(c cVar) {
        return super.all(cVar);
    }

    public boolean any(c cVar) {
        return ((Boolean) cVar.invoke(this)).booleanValue();
    }

    public final k component1() {
        return this.interactionSource;
    }

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

    public final ThumbElement copy(k interactionSource, boolean z6) {
        o.h(interactionSource, "interactionSource");
        return new ThumbElement(interactionSource, z6);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof ThumbElement)) {
            return false;
        }
        ThumbElement thumbElement = (ThumbElement) obj;
        return o.c(this.interactionSource, thumbElement.interactionSource) && this.checked == thumbElement.checked;
    }

    @Override // i0.InterfaceC2253q, i0.InterfaceC2255s
    public Object foldIn(Object obj, e eVar) {
        return eVar.invoke(obj, this);
    }

    public Object foldOut(Object obj, e eVar) {
        return eVar.invoke(this, obj);
    }

    public final boolean getChecked() {
        return this.checked;
    }

    public final k getInteractionSource() {
        return this.interactionSource;
    }

    public int hashCode() {
        return Boolean.hashCode(this.checked) + (this.interactionSource.hashCode() * 31);
    }

    @Override // I0.Z
    public void inspectableProperties(L0 l02) {
        o.h(l02, "<this>");
        l02.f2894a = "switchThumb";
        k kVar = this.interactionSource;
        f fVar = l02.f2896c;
        fVar.c(kVar, "interactionSource");
        fVar.c(Boolean.valueOf(this.checked), "checked");
    }

    @Override // i0.InterfaceC2255s
    public /* bridge */ /* synthetic */ InterfaceC2255s then(InterfaceC2255s interfaceC2255s) {
        return super.then(interfaceC2255s);
    }

    public String toString() {
        StringBuilder sb = new StringBuilder("ThumbElement(interactionSource=");
        sb.append(this.interactionSource);
        sb.append(", checked=");
        return AbstractC2761L.h(sb, this.checked, ')');
    }

    @Override // I0.Z
    public ThumbNode create() {
        return new ThumbNode(this.interactionSource, this.checked);
    }

    @Override // I0.Z
    public void update(ThumbNode node) {
        o.h(node, "node");
        node.setInteractionSource(this.interactionSource);
        if (node.getChecked() != this.checked) {
            AbstractC0303l.t(node).C();
        }
        node.setChecked(this.checked);
        node.update();
    }
}
