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

import J4.c;
import androidx.compose.runtime.MutableState;
import com.revenuecat.purchases.ui.revenuecatui.data.PaywallState;
import com.revenuecat.purchases.ui.revenuecatui.data.processed.TemplateConfiguration;
import kotlin.jvm.internal.o;
import kotlin.jvm.internal.p;
import w4.C3137A;

/* JADX INFO: loaded from: classes3.dex */
public final class Template7Kt$Template7$2$1$1 extends p implements c {
    final /* synthetic */ MutableState<TemplateConfiguration.TierInfo> $selectedTier$delegate;
    final /* synthetic */ PaywallState.Loaded.Legacy $state;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public Template7Kt$Template7$2$1$1(PaywallState.Loaded.Legacy legacy, MutableState<TemplateConfiguration.TierInfo> mutableState) {
        super(1);
        this.$state = legacy;
        this.$selectedTier$delegate = mutableState;
    }

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

    public final void invoke(TemplateConfiguration.TierInfo it) {
        o.h(it, "it");
        this.$selectedTier$delegate.setValue(it);
        this.$state.selectPackage(Template7Kt.Template7$lambda$5(this.$selectedTier$delegate).getDefaultPackage());
    }
}
