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

import J4.a;
import J4.e;
import androidx.compose.runtime.Composable;
import androidx.compose.runtime.ComposableTarget;
import androidx.compose.runtime.Composer;
import androidx.compose.runtime.ComposerKt;
import com.revenuecat.purchases.ui.revenuecatui.data.processed.TemplateConfiguration;
import java.util.List;
import kotlin.jvm.internal.p;
import w4.C3137A;

/* JADX INFO: loaded from: classes3.dex */
public final class DefaultPaywallViewKt$DefaultPaywallView$2$1 extends p implements e {
    final /* synthetic */ long $foregroundOnAccentColor;
    final /* synthetic */ long $mainColor;
    final /* synthetic */ a $onPurchase;
    final /* synthetic */ a $onRestore;
    final /* synthetic */ List<TemplateConfiguration.PackageInfo> $packages;
    final /* synthetic */ TemplateConfiguration.PackageInfo $selectedPackage;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public DefaultPaywallViewKt$DefaultPaywallView$2$1(List<TemplateConfiguration.PackageInfo> list, a aVar, a aVar2, TemplateConfiguration.PackageInfo packageInfo, long j4, long j6) {
        super(2);
        this.$packages = list;
        this.$onPurchase = aVar;
        this.$onRestore = aVar2;
        this.$selectedPackage = packageInfo;
        this.$mainColor = j4;
        this.$foregroundOnAccentColor = j6;
    }

    @Override // J4.e
    public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
        invoke((Composer) obj, ((Number) obj2).intValue());
        return C3137A.f25453a;
    }

    @ComposableTarget(applier = "androidx.compose.ui.UiComposable")
    @Composable
    public final void invoke(Composer composer, int i6) {
        if ((i6 & 3) == 2 && composer.getSkipping()) {
            composer.skipToGroupEnd();
            return;
        }
        if (ComposerKt.isTraceInProgress()) {
            ComposerKt.traceEventStart(-1275945433, i6, -1, "com.revenuecat.purchases.ui.revenuecatui.defaultpaywall.DefaultPaywallView.<anonymous>.<anonymous> (DefaultPaywallView.kt:153)");
        }
        if (!this.$packages.isEmpty()) {
            DefaultPaywallViewKt.m1064DefaultPaywallFooterZkgLGzA(this.$onPurchase, this.$onRestore, this.$selectedPackage != null, this.$mainColor, this.$foregroundOnAccentColor, composer, 0);
        }
        if (ComposerKt.isTraceInProgress()) {
            ComposerKt.traceEventEnd();
        }
    }
}
