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

import J4.c;
import androidx.compose.runtime.MutableState;
import coil.compose.AsyncImagePainter;
import coil.request.CachePolicy;
import com.revenuecat.purchases.ui.revenuecatui.helpers.Logger;
import kotlin.jvm.internal.o;
import kotlin.jvm.internal.p;
import w4.C3137A;

/* JADX INFO: loaded from: classes3.dex */
public final class RemoteImageKt$Image$2$1 extends p implements c {
    final /* synthetic */ MutableState<CachePolicy> $cachePolicy$delegate;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public RemoteImageKt$Image$2$1(MutableState<CachePolicy> mutableState) {
        super(1);
        this.$cachePolicy$delegate = mutableState;
    }

    @Override // J4.c
    public /* bridge */ /* synthetic */ Object invoke(Object obj) {
        invoke((AsyncImagePainter.State.Error) obj);
        return C3137A.f25453a;
    }

    public final void invoke(AsyncImagePainter.State.Error it) {
        o.h(it, "it");
        Logger.INSTANCE.w("Image failed to load. Will try again disabling cache");
        this.$cachePolicy$delegate.setValue(CachePolicy.WRITE_ONLY);
    }
}
